Additional macOS setup instructions

Hey Joel,
thank you for this wonderful library, the pitch tracking results it produces are really impressive. I would like to share my experience in setting up the library and tests and the additional steps that I needed to go through in order to make it work on macOS:

Add /usr/local/Cellar/portmidi/217_2/include to header search path of libqio, when portmidi.h can not be found
Add a "New Link Binary with Libraries Phase" and add libportaudio.a which for me was installed by brew under /usr/local/Cellar/portaudio/19.6.0/lib/libportaudio.a
Also add these frameworks to the phase as described here

CoreAudio.framework
AudioToolbox.framework
AudioUnit.framework
CoreServices.framework
Carbon.framework

When executing tests, make sure to execute them from 1 folder up, otherwise q::wav_reader cannot find the files but will also not file any error

Thanks! I'll look into these. It seems what I need is something like this: https://github.com/supercollider/portaudio/blob/master/CMakeLists.txt#L276
portmidi.h and libportaudio.a should've been taken cared of by portaudio's Cmake though.
And q::wav_reader should give an error.
Thanks for kicking the tires :-)

OK:

updated the cmake file to add the frameworks.
updated the installation guide mentioning the CD to 1 folder up

Could you check if this fixes the build issues for you? The fixes are in the master branch. CMake should pick up the portaudio header and lib just fine. If it still fails, could you post your CMakeCache.txt file here?

Hi Karl.  I'm trying to make the Xcode build modifications per your Feb 11 post.  When I build Q I have unresolved Pa  linker symbols, so I think your second bullet about linking to libportaudio.a might be key to fixing that.
Unfortunately the selection to add a new "New Link Binary with Libraries Phase" is greyed out in my case.
I'm probably in the wrong place.  Any chance you could provide a screenshot showing me where you are adding this?  Which project, which target, what else shows up in the Build Phases pane?
Thank you very much

Hi Karl and Joel.  I'm trying to make the Xcode build modifications per your Feb 11 post. When I build Q I have unresolved Pa linker symbols, so I think your second bullet about linking to libportaudio.a might be key to fixing that.
Unfortunately the selection to add a new "New Link Binary with Libraries Phase" is greyed out in my case.
I'm probably in the wrong place. Any chance you could provide a screenshot showing me where you are adding this? Which project, which target, what else shows up in the Build Phases pane?
Thank you very much

It seems there's some conflict with portaudio version 1 and version 2. I committed a fix that removes the dependency on package manager installations for portaudio and portmidi. We'll just use submodules for these libraries just like we did on windows.
Tested. See if this works for you so we can close this issue. I'll still need to update the instructions (less steps now because we use the portaudio and portmidi cmake submodules). I'll also need to test on windows and linux.


Batch Transcription in Python without swagger-client

I want to use Azure batch transcription rest api without swagger-client. But i did not find any sample code for the same.
Is it bossible to call azure batch transcription in python without swagger-client? If yes, please provide sample code.

I have written the following code but giving error 400.
base_url = 'https://centralindia.api.cognitive.microsoft.com/speechtotext/v3.0/transcriptions'
json_data1 = {
'contentUrls': [
'blob storage audio url'
],
'properties': {
'diarizationEnabled': False,
'wordLevelTimestampsEnabled': True
},
'locale': 'en-US',
'displayName': 'Transcription using default model for en-US'
}
headers = {'accept':'application/json','Content-Type': 'application/json', 'Ocp-Apim-Subscription-Key': key}
    response = requests.post(base_url, data=json_data1, headers=headers)
    print(response)

It is giving error "b'{\r\n  "code": "InvalidPayload",\r\n  "message": "Unexpected character encountered while parsing value: c. Path '', line 0, position 0."\r\n}'
Please help to resolve it.

Hello, @kamrapooja,
have you tried with  "data=json.dump(json_data1)" when calling post?
Thanks,
Zhou

working fine after changing code to data = json.dumps(json_data1).
Thanks a lot


/Remote/

I'm keeping this here as a placeholder for any who come here intending to report it.

This is a bug with the game (bitburner) itself. There's an open issue in the bitburner backlog: https://github.com/danielyxie/bitburner/issues/1714
It happens because there is a race condition in the game code that will cause calls to ns.scp (or write) to not leave the file in a ready state for a short while after it's first copied / written. As such, when we first copy a script to a new remote server and try to run it, the run might fail that first time, but then work a subsequent time.

Still happens sometimes even with the workaround

Just poking this closed issue to let you know I still get it from time to time.

Indeed, it's been a bit worse since I started RAM dodging school. Maybe just a longer sleep will do


fix [ISEEC-4839] PenTesting (v1)

Context
Related Issues(s): ISEEC-4839
Build Number: 3.12.31
PR Review Guidance
Check if Jira issues are fixed
Additional Info
Couldn't test on dev because of this issue on CICD: "Webhook received however it does not match any filter targets." 🤔

@LucasGrimauth can you get the current tag for flow.client.web? We need to make sure we are updating against v3 and not v4

@LucasGrimauth can you get the current tag for flow.client.web? We need to make sure we are updating against v3 and not v4

I pushed tag 3.12.31

yea, but I need the current production tag and we need to make sure we tag against the correct branch. Main branch currently has v4 and we need v3.

Oh okay, I will create another PR against "release-3.11" which is on stage.
Live env has "3.3.0"


Add limit pushdown to the Information Schema Connector

This can be helpful to queries like select * from hive.information_schema.columns limit 1.
Without the limit pushdown, the Connector will fetch metadata of all columns from Hive firstly, which is very expensive.

@linxingyuan1102 thanks for working on this.
One approach is to do limit pushdown (as you do in your PR #999)
Did you consider a different approach, where InternalTable is based on an Iterator or Stream, and loads metadata lazily?
Such approach is not as good as explicit limit pushdown, but should be advantageous also in case of queries without a limit, as it should decrease latency of the first query result.
While we can implement both approaches, I am not sure both are needed.
@linxingyuan1102  What do you think?
@electrum and you?

@findepi Making the tables lazy is a good approach, but will be more work. Are there plan shapes where removing the limit is advantageous? When we move to the lazy model, it should be easy to move the limit code there, so I'm fine with merging this for now.
@linxingyuan1102 Do you want to make the tables lazy as a follow up task?

@findepi @electrum
Thanks for the review. I'll update #999 first and then work on to make InternalTable lazy.

@findepi @electrum
I'm thinking about the implementation of lazy data loading in the information schema connector. So the current implementation preloads all the data and builds a FixedPageSource instance as a ConnectorPageSource. I think what we want is to implement a specific ConnnectorPageSource which build Pages lazily. Is this correct?

Yes, that sounds correct. I think a good solution is to add a new constructor to FixedPageSource that takes an Iterator<Page>. It would be similar to the existing constructor except it won't calculate the memory usage up front (it would set that to zero).


App no longer works- no text visible

iOS 15.3.1
When opened, app shows no text, just blank screen.

Hi Jennajont,
Thank you for your comment. I fix the issue.
Best regards,
Ken
2022年2月11日(金) 20:42 jennajont @.***>:

iOS 15.3.1
When opened, app shows no text, just blank screen.
—
Reply to this email directly, view it on GitHub
https://github.com/kkomazaw/MAP/issues/1, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABKCBYHPHD75YRIQHEGJNPTU2TY3HANCNFSM5OEAK4VQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Ken:
Is working perfectly now. Many thanks.
With much respect,
Jenna
On 12 Feb 2022, at 1:25, Kenichiro Komazawa wrote:

Hi Jennajont,
Thank you for your comment. I fix the issue.
Best regards,
Ken
2022年2月11日(金) 20:42 jennajont @.***>:

iOS 15.3.1
When opened, app shows no text, just blank screen.
—
Reply to this email directly, view it on GitHub
https://github.com/kkomazaw/MAP/issues/1, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABKCBYHPHD75YRIQHEGJNPTU2TY3HANCNFSM5OEAK4VQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: @.***>

Glad to hear that!
2022年2月12日(土) 15:44 jennajont @.***>:

Ken:
Is working perfectly now. Many thanks.
With much respect,
Jenna
On 12 Feb 2022, at 1:25, Kenichiro Komazawa wrote:

Hi Jennajont,
Thank you for your comment. I fix the issue.
Best regards,
Ken
2022年2月11日(金) 20:42 jennajont @.***>:

iOS 15.3.1
When opened, app shows no text, just blank screen.
—
Reply to this email directly, view it on GitHub
https://github.com/kkomazaw/MAP/issues/1, or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ABKCBYHPHD75YRIQHEGJNPTU2TY3HANCNFSM5OEAK4VQ

.
Triage notifications on the go with GitHub Mobile for iOS
<
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android
<
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

—
Reply to this email directly, view it on GitHub, or
unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS
or Android.
You are receiving this because you authored the thread.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/kkomazaw/MAP/issues/1#issuecomment-1037021602, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABKCBYBZAHZIP3UOL5WXBNLU2X6VZANCNFSM5OEAK4VQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID:
@.***>


Update demo service calls

Update the README to call the new demo service correctly.

@jhump Sadly, we should cut a new release so that this change gets picked up by pkg.go.dev. Can you cut a new patch release?


PCI device assignments don't take into account IOMMU groups when selecting PCI devices for a VM.

Is your feature request related to a problem? Please describe:
I run kubevirt on a cluster with a machine with two identical GPUs (NVIDIA 2080TIs).  When booting my Windows and Ubuntu guests, I frequently (always?) find that the VGA adapter and audio device are assigned from separate cards, resulting in broken audio (no sound from guests - maybe it's going to the other card, but as I use audio over HDMI I can't very well tell my TV to use video from HDMI 1 and sound from HDMI 2).
Describe the solution you'd like:
Option 1: Prefer devices in the same IOMMU groups when assigning PCI devices to VMs.
Option 2: Allow specifying PCI address hints in addition to vendor/model IDs when specifying PCI devices.
Describe alternatives you've considered:
Currently as a hack I can work around it by unbinding one GPU from vfio-pci, booting the VM, then re-binding to vfio-pci and restarting virt-handler.
Additional context:
I'd be happy to help with implementing one of the proposed options if someone can point me in the right direction.

I believe this is handled via device plugins, correct?
If so, would an implementation of GetPreferredAllocation be the right approach?
This page seems to suggest that the device plugin can provide allocation hints to the kubernetes devicemanager.

// GetPreferredAllocation returns a preferred set of devices to allocate
// from a list of available ones. The resulting preferred allocation is not
// guaranteed to be the allocation ultimately performed by the
// devicemanager. It is only designed to help the devicemanager make a more
// informed allocation decision when possible.
rpc GetPreferredAllocation(PreferredAllocationRequest) returns (PreferredAllocationResponse) {}

/triage needs-information
/cc @jean-edouard @vladikr

Fixed in https://github.com/kubevirt/kubevirt/pull/10356

@mtaylor91 Option 2 has already been proposed in the past but refused because it requires the admin to know exactly which GPU is bound to which PCI address.
About option 1, do you think is it desirable to always apply this preference? Or should be this configurable, like for example by specifying it in KubeVirt CR under the resource name?


Image is not truly full screen in full screen mode.

Some of my images load with small top/bottom or side margins.  You can see this behavior in your own full screen example. Depending on the browser's window size sometimes you don’t see this issue right away.  If that’s the case then try resizing the window slowly and you will see these margins appear/disappear depending on the window's size. If you stop resizing just at the right time you may see margins on all four sides. Is there a way to get rid of them?  Thank you.

I figured this out and I am posting it in case someone else has the same issue.  It is caused by the “scaleToFit” variable being rounded to just 2 decimal points. That left room for visible margins. I changed it to 4 decimal points and the margins aren’t visible anymore.
The fix directly in e-smart-zoom-jquery.min.js:
Find line: var f=Math.min(Math.min(a.width/r.width,a.height/r.height),1).toFixed(2);
Replace with: var f=Math.min(Math.min(a.width/r.width,a.height/r.height),1).toFixed(4);
To fix in e-smart-zoom-jquery.js:
Find line: var scaleToFit = Math.min(Math.min(containerRect.width/originalSize.width, containerRect.height/originalSize.height), 1).toFixed(2); // scale to use to include the target into containerRect
Replace with: var scaleToFit = Math.min(Math.min(containerRect.width/originalSize.width, containerRect.height/originalSize.height), 1).toFixed(4); // scale to use to include the target into containerRect
Special thanks to the creator of this plugin for it being so well commented and having variable names that make since to the novices. Because of that I was able to figure out what was happening without prior knowledge of JavaScript and very little other programming skills.


vagrant-triggers and vagrant 1.97 errors out with stdout is not a tty

Windows 10
Vagrant 1.9.7
Running a vagrant up gives error of "stdout is not a tty" with a vagrant trigger on up action.
Vagrantfile:
   ---
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Every Vagrant development environment requires a box. You can search for # boxes at https://atlas.hashicorp.com/search.

BOX_IMAGE = "centos/7

Vagrant.configure("2") do |config|

	config.vm.define "service" do |subconfig|
		subconfig.vm.box = BOX_IMAGE
		subconfig.vm.hostname = "service"
		subconfig.vm.network :private_network, ip: "<IP_ADDRESS>"
		subconfig.trigger.after :up, :stdout => false do
			as1 = %q(vagrant ssh service -c "ip a s eth1 | grep 'inet ' | awk '{print $2}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'")
			@logger.debug "Running `#{as1}`"
			output = `#{as1}`.strip
			puts "==><EMAIL_ADDRESS>Got eth1 IP of #{output}"
		end
	end
end

@iguyking Same error here. Did you found a solution?

Not yet.  I think there's an incompatibility with the vagrant updates.  My workaround was to use 1.9.5.

My too. Thanks.

I was having a similar issue - but solved it.
Old syntax from my vagrantfile:
config.trigger.after :up, :stdout => true, :force => true do
  run "vagrant ssh -c 'vagrant_up'"
end

New working sytanx:
config.trigger.after :up, :stdout => true, :force => true do
  system("vagrant ssh -c 'vagrant_up'")
end


Need to fix the Dependency Injection for all the components

Annotation "@ Named" was implemented in Controller classes instead of Helpers. Need to modify the Helper classes.
Annotation "@ Singleton" was not used in Helper classes to tell the DI container that only a single instance of the class should be created and shared. This instance is reused wherever that particular class is injected or called upon in the application.

Closing this issue because the DI changes are not needed. We are keeping the "@Named" in the controllers and "@Singleton" is not needed for components outside of Pi4J Factory.


Cannot use inits for a model with constrained types

Summary:
I am not able to start programs with constrained types when these go into a corner case. See below.
Description:
Take this dummy model:
data {
  int<lower=1> num;
}
parameters {
  real mu;
  cholesky_factor_corr[num] L_corr;
}
model {
  mu ~ std_normal();
  L_corr ~ lkj_corr_cholesky(1.0);
}

whenever now num= 1 it is not possible to start this program with an init given to cmdstan. With this input to the init argument I am getting
mu <- 0
L_corr <-
structure(integer(0),
.Dim = c(0, 0))

Unrecoverable error evaluating the log probability at the initial value.
Exception: matrix[uni,uni] indexing, row: accessing element out of range. index 1 out of range; container is empty and cannot be indexed (in '../OncoBayes2/mass-matrix-reuse/constrain_bug.stan', line 6, column 2 to column 35)
Exception: matrix[uni,uni] indexing, row: accessing element out of range. index 1 out of range; container is empty and cannot be indexed (in '../OncoBayes2/mass-matrix-reuse/constrain_bug.stan', line 6, column 2 to column 35)

when using this init of
mu <- 0
L_corr <-
structure(c(1),
.Dim = c(1, 1))

I am getting
Unrecoverable error evaluating the log probability at the initial value.
Exception: matrix[uni,uni] indexing, row: accessing element out of range. index 1 out of range; container is empty and cannot be indexed (in '../OncoBayes2/mass-matrix-reuse/constrain_bug.stan', line 6, column 2 to column 35)
Exception: matrix[uni,uni] indexing, row: accessing element out of range. index 1 out of range; container is empty and cannot be indexed (in '../OncoBayes2/mass-matrix-reuse/constrain_bug.stan', line 6, column 2 to column 35)

I am using R data files as input to CmdStan.
Reproducible Steps:
See above.
Current Output:
Things don't work
Expected Output:
Additional Information:
Current Version:
v2.22.1

See https://github.com/stan-dev/stanc3/issues/485

Thanks! Looks like this is a duplicate. This should really be fixed before the 2.23 goes out.

This should really be fixed before the 2.23 goes out.

Agreed.
Hopefully someone is able to find a fix for this. I am going to close this here in order to keep the conversation in one place.


Garbage collector should not collect manifests

Describe the bug

Each network upgrade has a manifest. This manifest is stored in the blockstore on start-up. The manifests are unreachable from the blockstore and will, therefore, get garbage collected. The missing manifests will cause the next network upgrade to fail.
To reproduce

Run forest continuously for a week before a network upgrade.
Log output

Log Output
2024-10-23T14:26:48.764982Z ERROR forest_filecoin::chain_sync::tipset_syncer: Syncing tipset range [2078795, 2078905] failed: Validation error: Processing error: Could not update state: manifest for network version NV24 not found in blockstore: bafy2bzaceax5zkysst7vtyup4whdxwzlpnaya3qp34rnoi6gyt4pongps7obw, Processing error: Failed to calculate state: manifest for network version NV24 not found in blockstore: bafy2bzaceax5zkysst7vtyup4whdxwzlpnaya3qp34rnoi6gyt4pongps7obw

Expected behaviour

Manifests should not be garbage collected.
Screenshots

Environment (please complete the following information):

OS:
Branch/commit
Hardware

Other information and links
Option 1 - Blessed column
Have a separate column for Manifest storage. Plug it into the get that does DbColumn::GraphDagCborBlake2b256 | DbColumn::GraphFull already. It's an extra read, but only when there is a miss on the above columns.
Pros

Easy to implement
Clear separation of concerns in terms of storage.

Cons - negligible

A little overhead to store manifests in the db.
Extra read on storage miss when querying the data store, because we need to make sure that the API does not change.

Option 2 - Whitelist
Whitelist certain CIDs to prevent them from being GCed.
Pros

No need to add an extra column.

Cons

No separation of concerns.
The code gets more convoluted.
Extra checks for each marked record - performance degradation, though not that significant as it's just a simple "if" condition.

Option 3 - On-demand download of manifests before network upgrades
Download bundles as needed  X epochs before the upgrade.
Pros

No permanent extra storage costs.

Cons

Lots of moving parts, more convoluted codebase.
Potential problems with downloads/retries.
Hard to test.

Is there an option to store manifests in a separate namespace so they don't get garbage collected ever?

Yes, like our settings, the manifests should be stored in a separate column.

Decide on the option by implementor:

whitelist items to not get GCd (from the manifest file)
Additional blessed column (watch out for reads)
download the manifest just-in-time

Going with blessed column as per team decision.


MoE Support

This PR introduces MoE support modeled after the support in Megatron-DeepSpeed (https://github.com/microsoft/Megatron-DeepSpeed)
This is part of the effort to add/test upstream DeepSpeed features: https://github.com/EleutherAI/gpt-neox/pull/663

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.0 out of 2 committers have signed the CLA.:x: anthony.301:x: Quentin-Anthonyanthony.301 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Pin mapping page should mention LEDs are on with LOW output

Unlike the 'generic' Arduino LED, the M2 LEDs are on when the output is low.
If a new user's first exposure to the LEDs is via the LED_BUILTIN define and the Blink example, they're going to be confused when the LEDs don't come on when they set the pin HIGH (since the example says HIGH is on...)

Great suggestion, just added that note to the table.
https://github.com/macchina/docs/commit/38dd233a7c15504c7e9cbb40cbb432672ce6545d


How to put imageai’s model on web (yolo3)

I'm a newcomer in coding. Even English isn't my native language. but want to learn how to put mdel online.
I watch some Articles said：use TensorFlow server ,change keras model in tensorflow way ,or use docker,flask and so on.
but I just  can use imageai  package model （yolo）,I don't konw imageai model is a keras model or not.
if you have any ways or github's coding ,please show me .
Thank  you for being so kind.

thank you github,I already find a one


Add author id to notes export

Is your feature request related to a problem? Please describe.
Since only the tweet id is included in the current notes export it is expensive to create an association between a given note and the author of the noted tweet. This makes applications like lookup of how often tweets of an given author have been (un)successfully community-noted very expensive to implement.
Describe the solution you'd like
Add a field/column to the notes export that includes the author id.

it would be better if the site shut down instead of improving it


Tutorial layer

Add tutorial layer at startup to explain new plugin interface.
Tutorial layer will be an image slide show. Images should be provided
Manage layer with a cookie to avoid it displayed at each start.

OK, the home popup is now active and can be used to display 1 to 5 images in a carrousel, for each languages. Images must be set in InvidTranslation.tsv (5 fields: home_tutorial_image_1 to home_tutorial_image_5). Leave fields empty if you have less than 5 images.


Convert-AlcOutputToAzureDevOps fails on new AppSourceCop rules

Convert-AlcOutputToAzureDevOps fails for the new AppSourceCop warning
warning AS0055: The AppSourceCop configuration must specify the list of countries targeted by the application.
This error is thrown:
##[error]Convert-ALCOutputToAzureDevOps : Cannot bind argument to parameter 'Path' because it is null.
A PR is coming your way soon... ;-)

Fixed in <IP_ADDRESS>


[dvsim] Move empty pattern list to common

build_(pass|fail)_patterns are mandatory data structure being used in dvsim.Deploy. Not all tool flow uses the data yet. It resulted in having empty list to all cfg hjson.
This commit moves the list to common_project_cfg.hjson then make tool flow hjson cleaner.

let me merge this to relieve the CDC/RDC errors. verilator is not affected by this.


inputText; date format symbolize

User story
As a designer, I want to be able to have access to a symbolized version, so I can easily reuse with my project.
Outline subtasks or tasks

List specific steps required to deliver this work.

[ ] Add completed work to UI Kit as Sketch Symbol

Definition of “Done” (exit criteria)

The story is generally “done” when the user can complete the outlined task, but make sure to define what that is.

[ ] the documented design spec has been created
[ ] assets have been symbolized in the UI toolkit
[ ] new UI has been applied to the WC

reference
https://github.com/AlaskaAirlines/auro/issues/183

Resources are not available to address this task. The intent is to have an FTE designer assigned to Auro to address this and other related work items.

Resources are not available to address this task. The intent is to have an FTE designer assigned to Auro to address this and other related work items.


Postgresql operator fails installation on 4.9 cluster

/kind bug

What versions of software are you using?
Operating System:
All Supported
Output of odo version:
main
How did you run odo exactly?
Try installing Postgresql operator using subscription
oc create -f - <<EOF
  apiVersion: operators.coreos.com/v1alpha1
  kind: Subscription
  metadata:
    name: postgresql-operator-dev4devs-com
    namespace: test
  spec:
    channel: alpha
    name: postgresql-operator-dev4devs-com
    source: community-operators
    sourceNamespace: openshift-marketplace
    installPlanApproval: "Automatic"

in a specific namespace test
Actual behavior
It hangs in pending state due to
api-server resource not found installing CustomResourceDefinition backups.postgresql.dev4devs.com:
GroupVersionKind apiextensions.k8s.io/v1beta1, Kind=CustomResourceDefinition not found on the cluster.
This API may have been deprecated and removed,
see https://kubernetes.io/docs/reference/using-api/deprecation-guide/ for more information.

OCP 4.9 is not stable currently. so that could be one of the reason. Because I don't find operators.coreos.com/v1alpha1 to be deprecated.
Expected behavior
postgresql operator apiVersion should support in ocp 4.9 as well.
Any logs, error output, etc?
Running odo with args [odo service create /Database wxfpktayyw -p databaseName=odo -p size=1 -p databaseUser=odo -p databaseStorageRequest=1Gi -p databasePassword=odopasswd]
[odo] I0731 13:15:46.045762   55383 util.go:786] HTTPGetRequest: https://raw.githubusercontent.com/openshift/odo/master/build/VERSION
[odo] I0731 13:15:46.046095   55383 util.go:807] Response will be cached in /tmp/odohttpcache for 1h0m0s
[odo] I0731 13:15:46.046441   55383 util.go:820] Cached response used.
[odo] I0731 13:15:46.172613   55383 context.go:141] absolute devfile path: '/tmp/556850192/devfile.yaml'
[odo] I0731 13:15:46.172638   55383 context.go:92] absolute devfile path: '/tmp/556850192/devfile.yaml'
[odo] I0731 13:15:46.172956   55383 content.go:33] converted devfile YAML to JSON
[odo] I0731 13:15:46.173013   55383 apiVersion.go:42] devfile schemaVersion: '2.0.0'
[odo] I0731 13:15:46.173023   55383 helper.go:41] devfile apiVersion '2.0.0' is supported
[odo] I0731 13:15:46.180512   55383 schema.go:46] validated devfile schema
[odo] I0731 13:15:46.182448   55383 validate.go:45] Successfully validated devfile sections
[odo] I0731 13:15:46.182497   55383 validate.go:45] Successfully validated devfile sections
[odo]  ✗  unable to create service because Service Catalog is not enabled in your cluster

Events:
$ oc get events -n test
LAST SEEN   TYPE     REASON                OBJECT                                             MESSAGE
8m22s       Normal   RequirementsUnknown   clusterserviceversion/postgresql-operator.v0.1.1   requirements not yet checked
8m22s       Normal   RequirementsNotMet    clusterserviceversion/postgresql-operator.v0.1.1   one or more requirements couldn't be found

$ oc describe csv -n tests
[...]
Status:
  Conditions:
    Last Transition Time:  2021-08-02T06:45:42Z
    Last Update Time:      2021-08-02T06:45:42Z
    Message:               requirements not yet checked
    Phase:                 Pending
    Reason:                RequirementsUnknown
    Last Transition Time:  2021-08-02T06:45:42Z
    Last Update Time:      2021-08-02T06:45:42Z
    Message:               one or more requirements couldn't be found
    Phase:                 Pending
    Reason:                RequirementsNotMet
  Requirement Status:
    Group:    operators.coreos.com
    Kind:     ClusterServiceVersion
    Message:  CSV minKubeVersion (1.11.3) less than server version (v1.21.1+8268f88)
    Name:     postgresql-operator.v0.1.1
    Status:   Present
    Version:  v1alpha1
    Group:    apiextensions.k8s.io
    Kind:     CustomResourceDefinition
    Message:  CRD is not present
    Name:     backups.postgresql.dev4devs.com
    Status:   NotPresent
    Version:  v1
    Group:    apiextensions.k8s.io
    Kind:     CustomResourceDefinition
    Message:  CRD is not present
    Name:     databases.postgresql.dev4devs.com
    Status:   NotPresent
    Version:  v1
    Group:
    Kind:     ServiceAccount
    Message:  Service account does not exist
    Name:     postgresql-operator
    Status:   NotPresent
    Version:  v1
Events:
  Type    Reason               Age                    From                        Message
  ----    ------               ----                   ----                        -------
  Normal  RequirementsUnknown  9m12s                  operator-lifecycle-manager  requirements not yet checked
  Normal  RequirementsNotMet   9m12s (x2 over 9m12s)  operator-lifecycle-manager  one or more requirements couldn't be found

@prietyc123 can you open a bugzilla for this if one doesn't exist already? I'm asking because I see few BZs tackling similar issue as we're seeing in the logs you've mentioned:
CSV minKubeVersion (1.11.3) less than server version (v1.21.1+8268f88)

Moreover, I think this is not an odo issue but an OCP issue. So it's best to involve the OCP folks into this.

IIUC I need to open a bugzilla for OCP as it is not related to odo. @dharmit correct me if I am wrong.

PTAL https://bugzilla.redhat.com/show_bug.cgi?id=1671953 & https://bugzilla.redhat.com/show_bug.cgi?id=1812629 which are similar. The product and component info there might help you.

@dharmit I have opened a bugzilla for the same https://bugzilla.redhat.com/show_bug.cgi?id=1997411

https://github.com/operator-backing-service-samples/postgresql-operator/pull/15 by @feloy will upgrade the Operator and we can move to using that Operator in our tests.

/unassign @prietyc123
/assign @dharmit


[5.4] Add constructed event to eloquent model

The purpose of this PR is to make it more convenient to make attributes visible/hidden/append in subclasses or traits.
For example, we have a User model with protected $appends = ['full_name'], and there is a subclass named Student which extends the User model, we need Student to have protected $appends = ['full_name', 'last_lesson'], if we hard code the $appends attribute in Student class and one day we add one more append birthday to the User class, we have to add that to Student::$appends too. It's a nightmare if we have many subclasses or we change the User::$appends frequently.
With this PR, we can override the boot method in Student like this
protected function boot() {
    parent::boot();
    static::registerModelEvent('constructed', function($model) {
        $model->append('last_lesson');
    });
}

You can fire this in your own application if you want.

@taylorotwell
Yes I can, imagine we are writing a trait that used in models, we need to set id attribute be hidden for models which use this trait, the only way we can achieve this is to write a __construct in the trait, but what if there already has a __construct in the model?

In the models you have __construct, you'd have to alias out the trait::__construct and call the alias from within the specific-model-construct.

@deleugpn
I know that, but doesn't it inconvenient? We have to remember that this trait has a constructor and alias it out and call it in model's constructor.

Yes, I agree, quite annoying. But it also doesn't fit on the core of the framework. Have you considered having a BaseModel extending Eloquent and implementing the event for your project and then having all your models extend the BaseModel instead of Eloquent?

@deleugpn that's a solution, it's better if we can configure the base class of the model we generate through make:model 😄

Make your own artisan command, extend the Illuminate\Foundation\Console\ModelMakeCommand and override the getStub method.


Edits

Category

[X] Content fix, updates

Docs Build status updates of commit 3029d55:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Community/known-folder-move-benefits-for-enduser.md
:white_check_mark:Succeeded
View

Community/media/known-folder-move-benefits-for-endusers/KFM01.png
:white_check_mark:Succeeded
View

Community/media/known-folder-move-benefits-for-endusers/KFM02.png
:white_check_mark:Succeeded
View

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


[Docs] None of the properties for MemoryCacheOptions have docs

Whilst most of the properties are self evident (with perhaps the exception of the Clock) - it would be especially handy to see what the default values are for these options.
In comparison, all the properties for the SqlServerCacheOptions are documented.

What does the SizeLimit property represent - a count of items, or a memory size, in bytes?

The units are intentionally unspecified. Size is an optional parameter when adding entries to the cache:
https://github.com/aspnet/Caching/blob/dd9d9bddd34d23c38d883a930489bd2d759120b6/src/Microsoft.Extensions.Caching.Abstractions/MemoryCacheEntryOptions.cs#L98
And the size limit is compared to the sum of those parameters.

@Tratcher Thanks that makes sense now. For future me, or anyone else coming across this, I was looking for a size parameter on one of the the Set() extension methods but it is actually on the MemoryCacheEntryOptions (as pointed out above).


Self-training Details

Hi,
Thanks so much for the share! I'm also very enjoy to read your paper!
I just miss the code of the self-training, in your Table 7.  Could you please provide some details about it?
Cheers!

Hi, we haven't released other SOTA methods yet. However, for self-training, you could try yourself first. It is simple and only has three steps:
1. Train a full-supervised model on the labeled set and save the model.
2. Use the saved checkpoint to generate the one-hot pseudo labels for the unlabeled set.
3. Use the pseudo labels from unlabeled set and ground truth from labeled set to train a new model. It is just like training a fully-supervised model on the full dataset.

Thanks for the comment.


Try lower random_page_cost on Postgres

What is the problem?
A bottleneck for Jarbas is Postgres performance. This article suggests that setting random_page_cost  lower works well when using SSD (which is our case).
How can this be addressed?
First compare some queries (special the ones from the Jarbas Dashboard) execution time with random_page_cost=4 (default) and random_page_cost=1. If it really works, we need to adapt our Docker architecture to start the service with that custom setting.
Who could help with this issue?
Not sure… maybe @caduvieira? @fredgcosta?

Does the performance improved?

Does the performance improved?

Yep. I just ran simple tests locally and it was slightly quicker — nothing so surprising as in the reference, but worth it ; )

There are other recommendations on https://speakerdeck.com/ongres/postgresql-configuration-for-humans


Migrate bckward ops to TTNN

Ticket

#9628

Added support for

hybot_bw
xlogy_bw

Problem description

Move binary backward ops to TTNN folder

What's changed
ttnn
└── cpp
    └── ttnn
        └── operations
            └── ...
            └── eltwise
                └── binary
                └── binary_backward
                    ├── device
                    │   ├── binary_backward_op.cpp
                    │   ├── binary_backward_op.hpp
                    ├── binary_backward.hpp
                    └── binary_backward_pybind.hpp

Checklist

[ ] Post commit CI passes
[ ] Model regression CI testing passes (if applicable)
[ ] New/Existing tests provide coverage for changes

Looks good! Great job.
There is no usage in models/demo?

Since it is a backward ops we don't have usage in models/demo files


Deployment pod based for kubernetes

I am using kubernetes 1.6.4 & installation done using kubeadm and RBAC
any yml based installation for nuage deployment for above kubernetes cluster ?

hey there, we have a new CNI based plugin here : https://github.com/nuagenetworks/nuage-cni
also feel free to ping us at<EMAIL_ADDRESS>and detail what you want to deploy and how, so we can assist...look forward to hear about your cluster deployment


Mccalluc/init whitelist

This is part of the effort to migrate field names (https://github.com/hubmapconsortium/portal-ui/issues/1979). I've cleaned up the portal-ui code for all the fields, except metadata: That string gets used so many places, that I don't think I could be sufficiently confident that I had gotten all of the instances (and only the right instances), to tell you to pull the trigger and drop all the old fields from the index. What I'm proposing is a whitelist mechanism that would drop unexpected fields before any other transformations are made. Next steps:

Review this PR: Do you think this approach will work, or do you think you will need to add fields beyond those that have been wildcarded? Does a flat structure work, or should repeated sets of subfields be defined only once?
If it can be merged, I would then make a follow-up that would use this whitelist at index time. It could be deployed to production.
I would then make another follow-up PR that would remove metadata.* from the whitelist. This could be deployed to dev/test, and then we could confirm that the portal doesn't depend on any of the metadata.* fields.
That could then be deployed to production.
Finally, you could remove the old versions of fields from your side: Because we've already seen the effect of removing them at indexing time, there should be no surprises.

While this is feasible, just typing it out, I realize this is a lot of steps. I've assumed that dropping the old versions of fields is an all-or-nothing, but that might be pessimistic... If you could drop them from only the dev or test instance, and then give us time to update the portal-ui code, that could also work.
Another possibility for you would be to drop all the fields, except metadata: The rest will be fixed in the portal with today's release. ... But if it's just simpler to do all the fields at once, then ignore that suggestion.

@mccalluc maybe things can become simpler if we look at them this way. Currently, we are using the following mapping during indexing time to rename the neo4j filed to the es_name:
"ingest_metadata": {
  "es_name": "metadata"
},
"metadata": {
  "es_name": "metadata"
},
"specimen_metadata": {
  "es_name": "metadata"
}

Based on my findings:

there's no such specimen_metadata field exists currently
ingest_metadata only exists in Dataset
metadata exists only in Donor or Sample, but contains very different sub fields

What I'm proposing is to migrate based on the entity_type (loop in @shirey to confirm):

Dataset: change metadata to ingest_metadata
Donor: keep using metadata
Sample: keep using metadata

@mccalluc @yuanzhou If you want to change this field name it should be done throughout the Elasticsearch indices and Neo4j.  Id prefer to not change it in one index.  My goal, @yuanzhou , is to make that mapping file that you mention go away as the field names should be common throughout (no mapping needed).
In general why can't we use metadata across all entity types- why do we need a special name for Datasets?
For datasets.metadata I would like to unwind the layers there at some point because there are nested values that don't make sense- I've talked to Joel about this several times, but it is never high enough priority over publishing data to get it done.

In general why can't we use metadata across all entity types- why do we need a special name for Datasets?

@shirey -- Are you suggesting that the change from metadata to ingest_metadata doesn't need to happen? I'd be happy with that, and if that's true, then portal-ui #1979 could be considered complete.

@shirey I'm fine with using metadata instead of ingest_metadata for Dataset. But we'll also need to change several places in ingest-api and entity-api for renaming to be consistent and not breaking anything else.

My understanding from Bill at standup is that the status quo is fine for now, but that making metadata more consistent is still something he wants to do, but Joel will need to be involved, and no portal work is required right now. Closing, but if I've misunderstood the plan, I apologize.

@mccalluc just to confirm, other than this metadata filed, the portal-ui has migrated the rest of the normalized fields?

@yuanzhou -- I believe so, but I'd appreciate it if the index without the duplicated fields could be deployed to dev or test so we can preview it before production.


Email Template Library

Huge feature request - and i'm not sure if this fits in with the roadmap of the product. But i would find it insanely useful if i could upload an email template to a "library", which then the template ID can later be referenced in an API call.
Hopefully this code will demonstrate my point (in the example im actually using campaign monitor)
# Create a new mailer and define your message
tx_mailer = Transactional(auth)

# email template ID
email_public_confirmation = '74069586-83f7-4664-8c1b-31b481b6c8f0'

email_data = {
        'full_name': new_user.name,
        'code': new_user.password_reset_hash
}

to_email =<EMAIL_ADDRESS>
# Send the message
tx_mailer.smart_email_send(email_public_confirmation, to_email, data=email_data)

I can totally understand if you want it not to go down this track though, because its a total rabbit hole of then having a template creator, etc etc

sorry to rain on your parade but I think they've already answered this one
https://github.com/atech/postal/issues/188
https://github.com/atech/postal/wiki/FAQs#can-you-add-mailing-list-feature

Ah i didn't actually see this.
If i built this out as a seperate project/service, is it something people would be interested in?
Does anyone know if open source stuff like this exists?

There is phplist off the top of my head, I haven't used it for a while but I remember it wasn't super plain sailing. Certainly bound to be some interest if you made something that used postal.

so i want to konw whether i can use phplist as client and postal as server while sending over HTTP using API .

If I remember correctly, phplist sends its own messages (so wouldn't need postal at all) and would almost definitely require modifications to use any API to send messages. I'm not a phplist expert in any way.


How can i remove the section x and y

environment

vim: neovim v0.3.8
vim-airline: 0.11
OS: Ubuntu 19.10
Have you reproduced with a minimal vimrc: No
What is your airline configuration: https://gist.github.com/diovanii/2ee446d9a3814faa702060cf79ea6ce4#file-init-vim
if you are using Neovim:
does it happen in Vim: Yes

actual behavior
Show the section x and y
expected behavior
Don't show the section x and y
screen shot (if possible)
I wanna remove the encoding section and the filetype section

Have you looked at the documentation?

Am 10.03.2020 um 17:48 schrieb diovanii<EMAIL_ADDRESS>
environment
vim: neovim v0.3.8
vim-airline: 0.11
OS: Ubuntu 19.10
Have you reproduced with a minimal vimrc: No
What is your airline configuration: https://gist.github.com/diovanii/2ee446d9a3814faa702060cf79ea6ce4#file-init-vim
if you are using Neovim:
does it happen in Vim: Yes
actual behavior
Show the section x and y
expected behavior
Don't show the section x and y
screen shot (if possible)
I wanna remove the encoding section and the filetype section
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

environment

vim: neovim v0.3.8
vim-airline: 0.11
OS: Ubuntu 19.10
Have you reproduced with a minimal vimrc: No
What is your airline configuration: https://gist.github.com/diovanii/2ee446d9a3814faa702060cf79ea6ce4#file-init-vim
if you are using Neovim:
does it happen in Vim: Yes

actual behavior
Show the section x and y
expected behavior
Don't show the section x and y
screen shot (if possible)
I wanna remove the encoding section and the filetype section

Solved
The way to remove the x and y section is by using g:airline#extensions#default#layout.
In this list you can specify what section will be showing.
  let g:airline#extensions#default#layout = [
      \ [ 'a', 'b', 'c'],
      \ [ 'z' ]
      \ ]

What is the default value for this?  Like, I want to change g:airline#extensions#default#layout, but I cannot find the current value of it to modify.


I can't copy the contents of the split editor

I can't copy the contents in the split editor. For example, after clicking an extension, the introduction in the split editor on the right can be copied, sometimes it can't be copied, and most of the time it can't be copied

Drag and drop it into the main editor to copy it normally. However, when it is split to the right, sometimes it can be copied, sometimes it can't be copied. Most of the time, it doesn't work
I'm sorry, this is the second time I've submitted this question. It's really annoying

This is the version information

@MyWorldG can you try go to the menu -> edit -> copy and see if it works?

@MyWorldG can you try go to the menu -> edit -> copy and see if it works?

@rebornix Copy and paste are still not allowed

This is an known issue with the webview and it should already be fixed.


Helper for calling a translation API

To be used for description text, but also for people names:
from zavod import helpers as h

eng_name = h.translate_text(context, name, lang="eng")

(Passing in context so that we can use context.cache)
See:
https://cloud.google.com/translate/docs/basic/translate-text-basic
It would be cleaner if we made this an enricher that puts the translated statements into a bespoke dataset.

@jbothma Do we need to productise this any further? Would it be worth to have a little dive into existing crawlers that may benefit from it?

It seems to have done a nice job on the Georgian declarations. It could be worth asking Frederik to sanity check some of the arabic before going all out on arabic-relevant countries. We don't have a lot of merges to compare but the three that have been merged match other transliterations in the entity.
should we promote it from zavod.shed to zavod.helpers.names? or perhaps an explicitly LLM namespace is important in helpers.
to expand to other crawlers, should we just pick any crawlers with names consistently in a non-latin script, prioritising countries where business is done in multiple scripts?
if you still reckon an enricher is ideal, maybe now is the time to try it with a couple of datasets, e.g.
config:
  translit:
    ge_declarations:
      from: kat
      to:
        - code: eng
          script: Latin
          lang: English
        - code: rus
          script: Cyrillic
          lang: Russian
    cn_peoples_congress_wikipedia:
      from: chi
      to:
        - code: eng
          script: Latin
          lang: English


LLMBasedFaithfulness does not work when using LLMs other than OpenAI

In continuous_eval/metrics/generation/text/llm_based.py, line 39, the full model parameters are not being passed to the LLMBasedContextCoverage class. This means that the code defaults to calling OpenAI API even if another LLM is passed as self.model
Changes requied
AS-IS:
context_coverage = LLMBasedContextCoverage(use_few_shot=self.use_few_shot)
TO-BE:
context_coverage = LLMBasedContextCoverage(model=self._llm, use_few_shot=self.use_few_shot)

Great catch, thanks @kelvinchanwh!
@ellipsis-dev can you fix this and submit a PR.

The code change should be to the following instead since model is stored in self._llm
line 39:
AS-IS: context_coverage = LLMBasedContextCoverage(use_few_shot=self.use_few_shot)
TO-BE: context_coverage = LLMBasedContextCoverage(model=self._llm, use_few_shot=self.use_few_shot)


Know syn Span lo and hi for annotate snippets

Currently there is no way to know the position of the Span. LineColumn is useless outside the logic of rustc. Refactor Span for work with utf-8 characters

Close in favor of #189


Adopt with_model

I found this extremely useful gem which lets us declare the app's models at the top of specs instead of maintaining them as state in the dummy app 🙌 .
Migrate existing specs to it. I'll rebase the auto-init branch on top of this.

As discussed:

We're going to clean up the models in dummy app so they're not dangling
We're going to try and add a proper e2e integration test that goes all the way to BQ, for running in CI with suitable creds

updated!


Error when using CHP-py with jupyterhb

I'm using this py CHP with my jupyterhub as an alternative to nodejs CHP
So, whenever, I try to open a notebook, I'm seeing the below exception in proxy logs, which is not the case for the other CHP. As a result, the notebook keeps loading
`Traceback (most recent call last):
  File "/export/apps/python/3.10/lib/python3.10/site-packages/tornado/websocket.py", line 1086, in write_message
    fut = self._write_frame(True, opcode, message, flags=flags)
  File "/export/apps/python/3.10/lib/python3.10/site-packages/tornado/websocket.py", line 1061, in _write_frame
    return self.stream.write(frame)
  File "/export/apps/python/3.10/lib/python3.10/site-packages/tornado/iostream.py", line 530, in write
    self._check_closed()
  File "/export/apps/python/3.10/lib/python3.10/site-packages/tornado/iostream.py", line 1019, in _check_closed
    raise StreamClosedError(real_error=self.error)
tornado.iostream.StreamClosedError: Stream is closed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/export/apps/python/3.10/lib/python3.10/site-packages/tornado/websocket.py", line 635, in _run_callback
    result = callback(*args, **kwargs)
  File "/export/apps/python/3.10/lib/python3.10/site-packages/configurable_http_proxy/handlers.py", line 414, in on_message
    self.ws_client.write_message(message)
  File "/export/apps/python/3.10/lib/python3.10/site-packages/tornado/websocket.py", line 1500, in write_message
    return self.protocol.write_message(message, binary=binary)
  File "/export/apps/python/3.10/lib/python3.10/site-packages/tornado/websocket.py", line 1088, in write_message
    raise WebSocketClosedError()
tornado.websocket.WebSocketClosedError`

Originally posted by @SMHari in https://github.com/corridor/configurable-http-proxy/issues/11#issuecomment-1403732807

Hi @SMHari can you provide the steps to reproduce this ?

Which version of python, jupyterhub, notebook, etc. Which OS
Are you using jupyterlab or notebook ?
What configurations are you using in jupyterhub

I am currently using this project for a bunch of projects and it seems to work well.

Hey @AbdealiLoKo
Sure

Using python 3.10, OSS JupyterHub is 3.1.0
The setup I'm using is from z2jh in k8s (https://z2jh.jupyter.org/en/stable/)
using custom authenticators and spawners, but I hope that shouldn't be the issue

@AbdealiLoKo you mean the notebook is loading fine and can execute the contents in the cell?
also would like to understand, what's the purpose of this two configparams.

c.ConfigurableHTTPProxy.command
c.Spawner.cmd

I'm using a custom implementation of Spawner,  a wrapper over KubeSpawner.
ConfigurableHTTPProxy.command - I don't see this option in the OSS doc. I just use the options mentioned in the wiki here running proxy separately from the hub

Yes, I am able to login with my user account, create a folder, create a notebook, run python commands in that notebook
Both of the configurations I mentioned are JupyterHub configurations:

c.ConfigurableHTTPProxy.command link - The eecutable path to use for configurable-http-proxy
c.Spawner.cmd link - The executable path to use for the jupyterhub-singleuser

The default values just take it from the existing PATH:
c.ConfigurableHTTPProxy.command = 'configurable-http-proxy'
c.Spawner.cmd = 'jupyterhub-singleuser'

I just gave them explicitly to ensure it is being taken from my virtualenv (I have a lot of jupyters andd configurable-http-proxy installed locally with varying versinos and prefer not to muck around with my PATH)
Using separate proxy is fine too
I think it would be helpful to narrow down the problem.
So, would it be possible for you to run the same steps I mentioned above to ensure it is not an issue with your Python, OS, etc. ?
An then maybe create a minimum reproducible example to see if it is some specific issue with KubeSpawner or something else ?

I tried to go towards your setup with:
$ cat jupyterhub_config.py
import os, sys
c.ConfigurableHTTPProxy.should_start = False
c.ConfigurableHTTPProxy.auth_token = 'abc'
c.Spawner.cmd = [os.path.join(sys.prefix, 'bin', 'jupyterhub-singleuser')]

And ran the following separately:
$ CONFIGPROXY_AUTH_TOKEN=abc venvtest/bin/configurable-http-proxy

And that seems to work fine (i.e. able to login, create a notebook, run python) too
I am not very experienced with Kubernetes, and looked like it would be complex for me to setup quickly

I have absolutly the same issue, but it's appear only when I trying to start VS Code via jupyterhub-vscode-proxy.
If I install CHP-nodejs all works fine (notebook, terminal, python, VS Code), but if CHP-py installed all fine except VS Code (jupyterhub-vscode-proxy).
May be somebody has any ideas to how to fix this or how I can investigate it.
configurable-http-proxy 0.2.3
jupyterhub 2.3.1
jupyter-vscode-proxy 0.2
jupyterlab 3.5.3
jupyter-server-proxy 3.2.2
jupyterhub published to on prem k8s cluster
c.ConfigurableHTTPProxy.should_start = False c.ConfigurableHTTPProxy.auth_token = '<some_value_from_env_var_CONFIGPROXY_AUTH_TOKEN>'
CONFIGPROXY_AUTH_TOKEN env var passed to proxy container

➕
@AbdealiLoKo
I'm running the entire stack in k8s and seem to get my single-user pod up and running without issues.
But while opening any notebook, I'm facing the issue
Need to backtrack the stack trace to understand whether those scenarios are missing any required handling

@VitaliyFedorov thanks for the feedback. I have not seen jupyter-vscode-proxy before - I can take a look at it tomorrow to understand what could be the issue.
Meanwhile if you're able to provide a minimum reproducible example with jupyter-vscode-proxy which can reproduce your error - that would be very helpful

So, @VitaliyFedorov I took a quick look at jupyter-vscode-proxy pypi link
But I could see no documentation of what it does nor how can I set it up locally to reproduce the issue you reported
I have asked a question on the repo: https://github.com/betatim/vscode-binder/issues/37
But it would be great if you can give me a reproducible example

code-server has to be installed on jupyterlab and also following py packages: jupyter-server-proxy and jupyter-vscode-proxy. After that in jupyterlab should appear button with title "VS Code". When you press it a new tab will be open with web version of VS Code


wrong naming of Button in chapter "Create an alert rule" step 2

Hello Document Team,
the Step 2 of the "Create an alert rule" says:
On the Action Pane, on the Options tab, in the Share group, select Create alert rule.
My System has another text there - "Create a customer Alert", the ControlName: EventAlertRuleCreate
Tested both in VendTable and in EcoResProductDetailsExtended
The Step 3 then hast the correct text "Create Alert Rule"
My Version:
Installed product version : 10.0.12 (10.0.507.10024)
Installed platform version : Update36 (7.0.5688.35584)
Thanks in advance for checking and fixing
Regards,
Bernhard

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

ID: 6ff6f2d2-3ff9-6e7d-999f-1da5ecf248ab
Version Independent ID: 3f877db5-f3de-6ed3-0f8e-94b8361e444a
Content: Create alert rules - Finance & Operations | Dynamics 365
Content Source: articles/fin-ops-core/fin-ops/get-started/create-alerts.md
Service: dynamics-ax-applications
Product: ****
Technology: ****
GitHub Login: @TJVass
Microsoft Alias: tjvass

@TJVass TJ - Can you take a look? Thanks.

Bug 506286 created to track this issue.

Any news on this one?
Regards,
Bernhard


Opening up Fineract.dev Build Logs to trusted committers

This issue is a follow-up to #9 based on feedback from @ptuomola in #4.
The goal of this issue is to open up Fineract.dev Build Logs, not just Error Reporting, to the role I created to which I can add trusted committers & PMC Members (currently @ptuomola and @jdailey).

As mentioned in #9 I had originally already granted the "Cloud Build Viewers" equivalent permissions.
But reading https://cloud.google.com/build/docs/iam-roles-permissions#permissions_to_view_build_logs and https://cloud.google.com/build/docs/securing-builds/store-manage-build-logs made me learn and understand more about it, and why that actually does not suffice.
There seem to be 2 storage backends for Google Cloud Build logs, and I'm slightly confused what the "best" & "correct" solution here is. Given that the default seems to be "Cloud Build stores build logs in both Logging and Cloud Storage.", I'm hoping that additional granting the Logs Viewer role suffices. I've done this now. @ptuomola can you see the logs from builds now? (You should e.g. be able to see the error message for #11.)
If that does not work yet, then I probably have to do the thing about a custom Cloud Storage Bucket (which I'm happy to; because I want to play least privilege and not grant Project Viewer).

@vorburger now it works - I can see the logs and errors for the builds. Thanks!


[Question] Playlist in version v6.X

Hi,
We're updating an App von v4 to v6. We were using the playMode itemList (as described here #1 ) and passed a comma separated list of IDs, this mode doesn't seem to exist anymore in v6.  We tried with videoList and playlist but they're both expecting an Integer instead of a comma separated string with IDs.
Is this still somehow possible?
Thanks

Hi there,
first of all - I am really really sorry for not seeing this issue sooner.
Please accept my apologies for this.
Concerning the topic - this mode is still supported (and in use). We would always suggest to create a real PlayList for these Purposes, but its still possible to use "videolist" as playMode with a comma-seperated List of Video IDs (or "audiolist" / "scenelist" for Audio or Scenes).
I just tested it in the latest Dev Builds and its working fine.
Can you share the relevant lines of Code here, we can take a look asap.
Thanks (and sorry again!)
Christoph

Hi!
No problem, I just had time to look into this. Well now it seems to be working even without changing anything in the code maybe it was just a cached version of the library, I have no clue...
The library was trying to parse an Int from the mediaId.
  nexxPlayer?.startPlay(
                PlayMode.videolist.name,
                mediaId,
                configuration
           )

Thanks anyways for your reply.
However one thing I'd recommend is to pass an PlayMode enum instead of string when calling startPlay(), that way you don't even have to check if the playMode is supported as you need to pass a valid one. The PlayMode enum is already public, it's just weird that I need to call the method using .name or toString().

Hi there,
yes, we are aware of this slightly confusing method signature. We decided though to keep it like this for consistency between all 4 SDKs and to make it easier for out Customers using WebViews, Hybrid Apps and Flutter. Nevertheless, thats a valid point and we might add it via an overload some day.
As it seems you are currently working on this - i wanna draw your attention to the fact, that we released 6.2.00-beta01 last week. As we changed a lot of UI Issues there, yo umight wanna give it a try already. If u find anything, just let us know.
Thanks!

We just released Version 6.2.00 - you might wanna include this Version, if youre still working on the SDK Integration.


More patches from #466.

I am not sure about the refactoring of StepEq done in #466... I am worried that it contributes to the slowdown as well.

@jonsterling Needs this to remove kind tags.


TextField backspace not working / snaps to first character on focus - Android only

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce

Instantiate a TextEditingController and add it as the controller value for a TextField.
Prepopulate the value of the text field with a value, using either textEditingController.text = value or using textEditingController.value.copyWith(text: value)
Focus on the TextField.

Expected results
It will focus on the TextField, allow your to delete/backspace.
Actual results
On Android simulator, it will jump to the first index of the string that is being edited in the TextField. You can then move to the end of the string by tapping on the end, and delete text. On a physical device, it will allow you to move the cursor, but deleting will simply not work.
Alternatively, I added a IconButton that when clicked on would run _notesController.clear() that would clear the text. However, when selecting the empty text field, the previous value would pop up. Then, while still focusing on the TextField, if you tap the IconButton again, the text will clear and you can start typing.
On iOS and web, none of these issues pop up - everything is smooth and as expected.
Code sample
Code sample
inal TextEditingController _notesController = TextEditingController();
    if (item.notes != null) {
      _notesController.value = _notesController.value.copyWith(text: item.notes);
      // notesController.text = item.notes!;
    }

 Row(
        mainAxisAlignment: MainAxisAlignment.spaceEvenly,
        children: [
          SizedBox(
              width: displayWidth(context) * 0.7,
              child: TextField(
                controller: _notesController,
                key: const Key('notes'),
                obscureText: false,
                textCapitalization: TextCapitalization.none,
                cursorColor: Colors.orange,
                decoration: InputDecoration(
                  label: Text(text.equipmentNotes),
                  border: const OutlineInputBorder(
                    borderSide: BorderSide(
                      color: Colors.orange,
                      width: 1.0,
                    ),
                  ),
                  focusedBorder: const OutlineInputBorder(
                    borderSide: BorderSide(
                      color: Colors.orange,
                    ),
                  ),
                  hintText: text.notesHint,
                  // hintStyle: TextStyle(height: 0.5),
                ),
              )),
          IconButton(
            icon: const Icon(Icons.close),
            onPressed: () {
              _notesController.clear();
            },
          )

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Flutter Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.10.5, on macOS 13.4.1 22F82 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.79.0)
[✓] Connected device (3 available)
[✓] Network resources
• No issues found!

Hi @mikhael28. Thanks for filing this issue. I'm unable to reproduce this issue on the latest flutter version. Can you confirm this by checking with the actions in the video below and the code sample attached?
Code Sample

import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key});

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  final TextEditingController _notesController = TextEditingController();

  @override
  void initState() {
    super.initState();
    _notesController.value = _notesController.value.copyWith(text: "notes");
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body: Center(
      child: Row(mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [
        SizedBox(
            width: MediaQuery.of(context).size.width * 0.7,
            child: TextField(
              controller: _notesController,
              key: const Key('notes'),
              obscureText: false,
              textCapitalization: TextCapitalization.none,
              cursorColor: Colors.orange,
              decoration: const InputDecoration(
                label: Text("equipmentNotes"),
                border: OutlineInputBorder(
                  borderSide: BorderSide(
                    color: Colors.orange,
                    width: 1.0,
                  ),
                ),
                focusedBorder: OutlineInputBorder(
                  borderSide: BorderSide(
                    color: Colors.orange,
                  ),
                ),
                hintText: "notesHint",
              ),
            )),
        IconButton(
          icon: const Icon(Icons.close),
          onPressed: () {
            _notesController.clear();
          },
        )
      ]),
    ));
  }
}

Video

screenrecord.webm

flutter doctor -v

[✓] Flutter (Channel stable, 3.10.5, on macOS 13.4 22F66 darwin-arm64, locale en-NG)
    • Flutter version 3.10.5 on channel stable at /Users/dammya/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 796c8ef792 (2 weeks ago), 2023-06-13 15:51:02 -0700
    • Engine revision 45f6e00911
    • Dart version 3.0.5
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/dammya/Library/Android/sdk
    • Platform android-33, build-tools 32.1.0-rc1
    • ANDROID_HOME = /Users/dammya/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E300c
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] IntelliJ IDEA Community Edition (version 2022.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.79.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.50.0

[✓] Connected device (3 available)
    • sdk gphone arm64 (mobile) • emulator-5554 • android-arm64  • Android 11 (API 30) (emulator)
    • macOS (desktop)           • macos         • darwin-arm64   • macOS 13.4 22F66 darwin-arm64
    • Chrome (web)              • chrome        • web-javascript • Google Chrome 114.0.5735.198

[✓] Network resources
    • All expected network resources are available.

• No issues found!

[✓] Flutter (Channel master, 3.12.0-12.0.pre.51, on macOS 13.4 22F66 darwin-arm64, locale en-NG)
    • Flutter version 3.12.0-12.0.pre.51 on channel master at /Users/dammya/fvm/versions/master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5951f9d945 (72 minutes ago), 2023-06-29 02:30:39 -0400
    • Engine revision 7fd0e9522e
    • Dart version 3.1.0 (build 3.1.0-260.0.dev)
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/dammya/Library/Android/sdk
    • Platform android-33, build-tools 32.1.0-rc1
    • ANDROID_HOME = /Users/dammya/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E300c
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] IntelliJ IDEA Community Edition (version 2022.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.79.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.50.0

[✓] Connected device (3 available)
    • sdk gphone arm64 (mobile) • emulator-5554 • android-arm64  • Android 11 (API 30) (emulator)
    • macOS (desktop)           • macos         • darwin-arm64   • macOS 13.4 22F66 darwin-arm64
    • Chrome (web)              • chrome        • web-javascript • Google Chrome 114.0.5735.198

[✓] Network resources
    • All expected network resources are available.

• No issues found!

I am not initializing the value of the text field inside of an initState call, furthermore the value needs to be reset frequently. That being said, perhaps I should refactor my code to such a Widget structure and see if that works better. Will update you on whether this pattern works.


[TF:TRT] refactor einsum converter

This change moves the conversion function for the "Einsum" operation and all associated helper functions to a separate translation unit tf2tensorrt/convert/ops/einsum.cc. A small amount of refactoring is applied to eliminate functions which duplicate the functionality found in TRTNetworkBuilder. Functions which exceed a certain "cognitive complexity" calculated by clang are refactored to be below the threshold. Tests are updated to reflect the fact that certain error messages changed when updating the converter to use the OpConverterBase class.

Rebased on #53602, which should be merged shortly. Added 1 commit to use DimsAdapter to address comment.

Can you squash the commits into one? thanks!

squashed

Would you please fix these errors:
third_party/tensorflow/compiler/tf2tensorrt/convert/ops/einsum.cc:15:19: error: extra tokens at end of #ifdef directive [-Werror,-Wextra-tokens]
#ifdef GOOGLE_CUDA&& GOOGLE_TENSORRT
^
//
third_party/tensorflow/compiler/tf2tensorrt/convert/ops/einsum.cc:46:13: error: unused variable 'n' [-Werror,-Wunused-variable]
const int n = values.size();
^
third_party/tensorflow/compiler/tf2tensorrt/convert/ops/einsum.cc:681:17: error: unused variable 'node_def' [-Werror,-Wunused-variable]

Rebased and squashed the fixes for clang warnings.

I guess I probably didn't fix the clang warning regarding the preprocessor. I didn't realize the issue is probably because of writing #ifdef instead of #if until you commented on my other PR. Let me know if you changed this on your end or if I need to push the change

I guess I probably didn't fix the clang warning regarding the preprocessor. I didn't realize the issue is probably because of writing #ifdef instead of #if until you commented on my other PR. Let me know if you changed this on your end or if I need to push the change

Would you please fix that and squash?

done


Objectives/Gameplay

We need to decide what the core game loop and mechanic is:

finding paintings?

I foresee environmental puzzles being a big part of it, things like

moving into the past and then back into the present to get around blocking obstacles or climb to higher ground
getting info from npcs in the past to get into the present (abandoned building with keypad?)

Decided as group:
Gameplay:

move around the map to find X amount of scattered secret fragments (either paintings or other tangible objects)
at the end of the game all of these objects come together to form the grand secret of the game

Puzzles/ mechanics

travel to past to stomp out tree that blocks path
travel to past to move up terrain into a better position in the future
water eroding something after letting it loose in the past
talk to npcs in past or future to get parts of the puzzle (you need info from the future to bring to the past to get dialog options)
bring an item from the past into the future or vice versa


Is there any way to vertically align the calendar icon for the DatePickerInput in "outlined" mode

When rendering the DatePickerInput  with mode="outlined", the calendar icon is not vertically aligned within the input box:

I can't seem to find a styling option to style the calendar icon - I've tried style, underlineStyle, outlineStyle, and contentStyle but not of these seemed to work.
Is there a way to vertically align of style the icon?

This is quite easy to replicate on the official DatePickerInput snack with the following code:
import React from "react";
import { View, Text } from "react-native";
import { DatePickerInput } from 'react-native-paper-dates';
import { SafeAreaProvider } from "react-native-safe-area-context";

export default function App() {
  const [inputDate, setInputDate] = React.useState(undefined)

  return (
    <SafeAreaProvider>
      <View style={{justifyContent: 'center', flex: 1, alignItems: 'center'}}>
        <DatePickerInput
          locale="en"
          label="Birthdate"
          value={inputDate}
          onChange={(d) => setInputDate(d)}
          inputMode="start"
          mode="outlined"
        />
      </View>
    </SafeAreaProvider>
  );
}

The will produce the following misaligned icon:

@JPStrydom Thanks for opening this issue. If this issue is critical for you, please consider sending a pull request to fix it. If not, we will do our best to get it resolved when available.

I think this issue can be closed, right?
I can see in mode="outlined" perfectly centered.

I think this issue can be closed, right?
I can see in mode="outlined" perfectly centered.

Has there been an update to the library recently?

I think this issue can be closed, right?
I can see in mode="outlined" perfectly centered.

Has there been an update to the library recently?

Sorry, my last screenshot was in Linux. Now I'm in Windows and I can see the problem.
Very weird. I will try to solve it later.

Thanks!

@JPStrydom I did a PR and I think  solves the problem.
If you can check it will be great: https://github.com/web-ridge/react-native-paper-dates/pull/315

@JPStrydom I did a PR and I think  solves the problem.
If you can check it will be great: https://github.com/web-ridge/react-native-paper-dates/pull/315

The code looks good. Will let you know if it works once it's gone live 👍

@JPStrydom I did a PR and I think  solves the problem.
If you can check it will be great: #315

The code looks good. Will let you know if it works once it's gone live 👍

The release is done and works perfectly on windows and Linux


Prevent persist job from updating last access time

Persist job uses FileSystem.open for reading file content from worker, which causes the access time to be updated. This change add an option to open file API to allow internal clients to indicate that access time should not be updated.

@gpang PTAL.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4851/
Test FAILed.

Jenkins, test this please

@bf8086 Why is it bad to update persist time in this case?

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4853/
Test FAILed.

@calvinjia Some internal services might schedule persist jobs based on file timestamps. Updating access time on internal persist job execution can cause unwanted side effect.

Jenkins, test this please

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4856/
Test FAILed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4857/
Test FAILed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4858/
Test PASSed.

alluxio-bot, merge this please


OperatorLifecycleManager support

The OLM (https://olm.operatorframework.io/) allows users to install operators easily.
shinyproxy-operator could release a bundle that would allow for the easy installs:
https://olm.operatorframework.io/docs/tasks/creating-operator-bundle/

Hi @kfox1111,
OA is not actively using OLM and would likely depend on community contributions and feedback to keep the OLM bundle up to date.
The project looks very interesting however, and we would be happy to review a PR with a bundle. Ideally it would have to be autogenerated from the kustomize bases.


Error: document is not defined

I'm trying to use this library in browser extension service worker.
And it gives me error "document is not defined".

me too

me too

me too

me too

It works fine by:

Set openWhenHidden to true.
Mock a window constant.

if (!globalThis.window) {
  globalThis.window = {
    fetch: globalThis.fetch,
    setTimeout: globalThis.setTimeout,
    clearTimeout: globalThis.clearTimeout,
  }
}

if (!globalThis.window) {
  globalThis.window = {
    fetch: globalThis.fetch,
    setTimeout: globalThis.setTimeout,
    clearTimeout: globalThis.clearTimeout,
  }
}

to make it more robust:
if (!globalThis.window) {
  globalThis.window = {
    fetch: globalThis.fetch,
    setTimeout: (fn, timeout) => globalThis.setTimeout(fn, timeout),
    clearTimeout: (t) => globalThis.clearTimeout(t),
  };
}
if (!globalThis.document)
  globalThis.document = { removeEventListener: () => {} };

me too
Any updates?

I am trying to use it in Next.js 14's app handler and can face this issue since the code is running on the server, which is Node.js.
But I wonder why fetch-event-source needs to read the document.

Same error here ! but when I add the fix above, then when I refresh the page I got a TypeError: Cannot destructure property 'protocol' of 'window.location' as it is undefined.
I am going mad...


Question about teams feature

Just want to say thank you again for your amazing work. Wanted to see if I could get some feedback on an idea I have to extend the teams functionality. This might actually just be a SQL question... but figured it might help someone else.
My application is requiring an organization feature. An organization can have many teams, and its purpose is for admin of the organization to view all data within a team. For example, a school (organization) would have many classes (teams), which would have many users (students/teachers). An organization would have admin users that wouldn't necessarily belong to any team.
I'm not sure if there would be a way to "bolt" this onto basejump.
One of the approaches I thought of  is to keep the accounts and account_user tables as-is and create a new table called teams. The teams table would have a foreign key account_id to associate it with an account (organization). Doing so would keep the roles/permissions in place. I would only need to create similar roles/permissions for the teams table.
Appreciate any feedback, thank you.

Interesting.  You could definitely add a new layer of teams, but I'm curious if it's needed.  Are you doing any billing at the organization level?
If not, you could just leverage team accounts as-is and have users belong to many accounts.
If you do need that organization layer, then yeah I think I'd look at adding a teams table with an account_id, then a team_users table with a user_id and account_id.
Adding a second layer of permissions wouldn't be terrible, but could definitely see it getting a bit confusing over time.  You could copy the same logic basically that I've got for the permission check functions.

Appreciate you taking the time to write back, thank you. The billing would be at the organization level, so the plan I'm thinking of is something like:

Create the new teams and teams_users tables with foreign keys
Create new permissions such that members of an organization can be still be invited to an org/team, but cannot create new orgs/teams unless they are a subscriber.
When a user signs up, the main dashboard will show Organizations they belong to (if any). They can only create new ones if they subscribe.

Hoping it doesn't get too complicated, but I'll report back in case it helps anyone else.

Makes sense - as long as billing doesn't change from org level I think you'll be ok with that plan.  For permissions if you don't need per-team specific permissions could introduce a new account level one for team-admin or similar.  But if you want individual per-team permissions then yeah, I think you'd be taking the core basejump models and duplicating them.
Another option might be to add a column to account_users for account_team_id.  Then could layer in a concept of "global account user" and "specific team user".  You'd have to update the permission lookup functions to do what yo uwant though.  I think that would give you a cleaner data model, but larger changes to core models so all tests would fail/need to be updated also unfortunately.  In that case, if you had a user who  belonged to 2 teams, they'd have 2 records in account_users if that makes sense

Hey @jamesthesken, I am looking to do something very similar in my app (org -> team -> user hierarchy). Curious if you got this working in a satisfactory way / if it'd be possible for you to share what you did (or any code)? Thanks!

Hello there @tconroy! It wasn't pretty, but essentially went with the steps above. I didn't have time to make the tests pass or anything.. I'll take another look at my code

Interesting. You could definitely add a new layer of teams, but I'm curious if it's needed. Are you doing any billing at the organization level?
If not, you could just leverage team accounts as-is and have users belong to many accounts.
If you do need that organization layer, then yeah I think I'd look at adding a teams table with an account_id, then a team_users table with a user_id and account_id.
Adding a second layer of permissions wouldn't be terrible, but could definitely see it getting a bit confusing over time. You could copy the same logic basically that I've got for the permission check functions.

Hi @tiniscule, thank you so much for this awesome project. I'm a Frontend developer and a newbie to Supabase and Postgres, I'd really appreciate it if you could point me in the right direction to implement leveraging the team account as-is and having users belong to many accounts as mentioned here.


HmIP-BRC2 devices not selectable within the 2-button blueprint

DONT'T DELETE THIS.
Please answer all questions as good as possible.
Language: english/german
Make sure you have read the documentation at https://github.com/danielperna84/custom_homematic#custom_homematic.
Make sure you have read the release notes at https://github.com/danielperna84/custom_homematic/releases.
Make sure you are running the latest version of the custom_component (and Home Assistant) before reporting an issue.
custom_component version (if applicable):
1.17.0
known last working custom_component version (if applicable):
Started using the custom_component with 1.17.0
Home Assistant version (if applicable):
2022.9.6
CCU version:

Model: Raspi4
OS: Home Assistant OS 8.5 with RaspberryMatic-Addon <IP_ADDRESS>20831
Version: see above

Describe the bug
From the 2-button blueprint provided, I'm not able to choose HmIP-BRC2 devices. All others I have seem to be working.
With a custom automation via "Device trigger" I can select HmIP-BRC2 devices and it's working. But that way is a pain for all of them...

I need to add that HmIP-BRC2 devices are not selectable in any of the provided blueprints.

But that way is a pain for all of them...

How terrible. You have to enable any of the entities of the device.

How terrible.

It is ;)
Thanks a lot


Add documentation about launchSettings.json

Help us make content visible
I searched for "launchSettings.json" / "launchSettings Specification", but nothing wholistically covered the available options, properties, and settings.
For example, the commandName can be any of the following values:
"Executable", "Project", "IIS", "IISExpress", "DebugRoslynComponent", "Docker", "DockerCompose"
But I can't find any MS Docs Documentation that spells all that out (along with the other properties)
I do see the following articles - but each only covers launch settings within the scope of its own use case, and none link to the actual spec for launchsettings

launchSettings.json support (VS for Mac only)
Use multiple environments in ASP.NET Core (Focus on multiple envs)
Visual Studio Container Tools launch settings (Containers Only)
Configuration in ASP.NET Core (Docker Only)
Configuration providers (Configuration Hierarchy Only)

Describe the new article
The unofficial json schema spec comes pretty close to documenting what's needed here
https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/launchsettings.json
Ideally, it would be the other way around, the spec would inform the schema definition, not the schema definition being the source of truth.
The doc could maybe live in Learn > .NET > Fundamentals > Configuration
Table of Contents

Profiles

commandName
commandLineArgs
executablePath
workingDirectory
launchBrowser
launchUrl
environmentVariables
applicationUrl
nativeDebugging
externalUrlConfiguration
use64Bit
ancmHostingModel
sqlDebugging
jsWebView2Debugging
leaveRunningOnClose
remoteDebugEnabled
remoteDebugMachine
authenticationMode
hotReloadEnabled
publishAllPorts
useSSL
sslPort
httpPort
dotnetRunMessages
inspectUri
targetProject

IisSettings

windowsAuthentication
anonymousAuthentication
iisExpress

applicationUrl
sslPort

iis

applicationUrl
sslPort

@IEvangelist Perhaps you're interested in taking this one?

@IEvangelist - how is this specific to Visual Studio?  It's also leveraged for VS Code as well, and other non-MS tools like Rider leverage launch settings files too.

oh thanks @IEvangelist - 100% my error - I was confusing launch.json in VS Code with launchSettings.json.  It might still be used by third party tooling, but was definitely confused about which part was getting consumed by VS Code

Closing this as the op confirmed they were confusing it with launch.json from VS Code.


ID switching

Hello @0w1Gr3y ,
First of all I would like to thank you for the clean code. I'm facing an issue with switching labels in frequent cases where my entities are people playing basketball. Normally the IOU (intersection over union) ratio is high due to the scenario of basketball playing. What do you suggest to overcome this issue? I tried to increase the frame_buffer to 60 but not improvement.
Below is the example

Hello @MB-MuratBayraktar,
ByteTrack uses only spatial features for tracking, so pure ByteTrack does not perform under frequent high IOU ratio. However, it can be combined with other MOT algorithms that use visual features for re-ID. The authors provide examples in here. I would recommend to try fairMOT to improve results on your test video.
Let me know if you have any problems with the integration.


[WIP] New treestore implementation

Since I won't be very free in the next few days I'd like to start sharing an initial implementation of the new tree store. It's not ready for a formal review since it misses all godocs, many tests and some things should change, but it can be useful the see the new k/v store usage and how size reporting will work.
--
treestore: new implementation
This patch implements a new treestore to handle different needs:

Use a key/value db (boltdb) to save store data. The primary key is the
store id. An additional non unique index on the image digest is created
to easy getting all the treestore generated with the same starting image
(needed for ACI, not needed for OCI)

Move the treestore base dir to datadir/treestore/

Handle backward compatibility (to handle prepared/exited/garbage pods
with previous version to work with the new implementation) with the
previous treestore implementation and paths.

The store will in future be extended to also support other image types
than ACI (like OCI images).

Change image list and api-service to report ACI's size using treestore provided size: fixes #2968

TODOs

[ ] godoc
[ ] add missing tests
[ ] pass/fix functional tests
[ ] implement upgrade functional tests from previous versions: related to #2920.
[ ] remove TreeStoreSize aciinfo column from imagestore

Questions

The treestore checksum logic wasn't changed. Since it can probably be implemented in better ways and someone could have better ideas, this is the perfect time to change it.
Define if and when the backward compatibility code should be removed (and document it in release notes).
Is treestore a good name (its origin is here #223) or better/clearer names are preferred (render store?)

Looks pretty good! :)

@iaguis Thanks for your review! Updated with various changes/fixes and additional tests. Now it passes the functional tests.


Add wheel to azure-pipelines.yml

Issue
Projects that include package with --build-wheel in their workflow, fail the azure tests because wheel is not installed
Change/Fix

Add wheel as dependency in the azure-pipeline.yml

Looks like the CI is unhappy unrelated, about the spancat project, so let's get this merged anyway.


Treat transactions in Review state as Cancelled

We've had a handful of learners attempt to submit payment for a course through CyberSource and have had that fail in some fashion, causing the transaction to be put into the Review status. This "locks out" the course for the learner - we treat Review as an in-limbo status, so the original order stays open (and we don't receive payment for the transaction) but the learner isn't able to re-purchase the course. Instead, we should treat the Review state as a terminal state and cancel the order.
Steps to Reproduce

Cause a transaction to be returned by CyberSource in the review state.

Expected Behavior
The transaction should be cancelled and the user should see an error message. The learner should be able to attempt their purchase again (i.e, it should work as if they'd cancelled the order in CyberSource).
Actual Behavior
The order hits Review state and the learner is prevented from purchasing the course until it is cleared.
Related Issues
#1367 - added some code to the Django Admin for orders that made these cases easier to process (prior to this, you'd have to change the order status via a shell or database query).
There are a handful of Zendesk tickets that relate to this. Ticket 143051 is the first one (that I'm aware of).

@pdpinch & @jkachel Do we want to completely remove the review state from the code like the Django admin code etc? Or do we just want to move an order to the canceled state if we receive a Review state from cybersource?


Release lifecycle docs overhaul & simplification

This docs PR introduces a simplification of our release documentation with a clear landing point: Mattermost release life cycle
From this page, you can reach the Mattermost release policy, as well as server, desktop, and mobile release details, including changelogs.

/update-branch

@cwarnermm I pushed changes to:

Attempted to fix broken links
Added compatible server versions for desktop and mobile apps


Align image to the left or right side of the canvas

The default alignment of the image inside the canvas is center, vertical and horizontal.
How can I align the image to the left or right side of the canvas?.

I found the problem, my example works only if the main element's position is relative to the body of the document.
Here's a complete example to visualize my point:
!DOCTYPE HTML>

That results in this image:

As you can see, there's a div with a red border containing one with blue border. The inner div is the Cornerstone's element with an image perfectly aligned to the right.

Now, If I wrap the element inside a absolute positioned div, the image in the inner div isn't aligned to the right side of it's container, but is still positioned based on the left hand side of the document (or screen).
Here's the modified html (the javascript didn't change):
<!DOCTYPE HTML>

And here's the result:

I made a 3rd test with two relative positioned divs, both having float: left; and got the same result. So, my original assumption was wrong, the alignment of the container does not affect the image position.

Finally I found a solution:
Replace this:
const left = cornerstoneEl.canvas.offsetLeft;

With this:
const left = element.getBoundingClientRect().x + window.scrollX + cornerstoneEl.canvas.offsetLeft;


Fixes issue with cell block height pinning in Safari

Fixes an issue introduced in https://github.com/zurb/foundation-sites/pull/10649 and turned up while doing QA on 6.4.4-rc1, which results in cell blocks not functioning properly in Safari

@oxyc @brgrz Could you give your opinion on this ? Does this solve your problem in https://github.com/zurb/foundation-sites/issues/10457 without introducing a new bug in Safari ?

I believe this also fixes #10757.

Already fixed by https://github.com/zurb/foundation-sites/pull/11085