How to publish components without ejecting

I hope others find this useful.
I have a project built using CRA that includes some components I wish to publish on npm. In order to do that I need to use babel to transpile the code to ES5.
Out of the box, babel is not available from a package.json script and I really don't want to eject. So I made this work by npm installing babel-cli and babel-preset-react-app and then adding a compile script that looks something like this:
set NODE_ENV=production&&babel -d lib/ src/ --presets react-app
This seems to work, plus all the CRA scripts (start, test and build) seem unaffected.
So if you need to do this, it looks like you can achieve it without having to eject. Which is a nice surprise.

Would you like to add Using the Babel Preset to the User Guide?

I think that would be really useful.

It would indeed be useful. I used your setup myself and it works great. But I have a problem with CSS.
I have a few stylesheets (one per component) that I import via Webpack (as described in the User guide). However, the stylesheets are not copied into lib when using Babel. So I had to extract the stylesheets in an index.css file and npm install postcss-cli, cssnano and autoprefixer. I then added a new compile step which gives us the following result:
"compile": "npm run compile:js && npm run compile:css",
"compile:js": "NODE_ENV=production babel src/orb -d lib --presets react-app",
"compile:css": "postcss --use autoprefixer --use cssnano src/orb/index.css > lib/index.css"

It works but it does require putting all your css in one file. I don't know how to do better.

@gaearon Could create-react-app generate .babelrc file with { "presets": ["react-app"] } (or to package.json)? It would make all babel scripts work out of the box..

@sheerun
We want to hide dev dependencies and their versions, so I would like to avoid that. I understand the motivation in this issue but it's a slightly more advanced use case, and so we don't have a clean support for it.
I think that after we implement #741, we might take a look at supporting building/publishing components with that package structure.

@emilebres, is the idea that you're putting everything into one CSS file to simplify consumption, since only one CSS file has to be imported in addition to the code itself?

That's certainly one advantage yes.
Although these days I tend not to style the components directly (colour, font) but rather to expose classes that the user can use to customise the components as she wishes. And I use inline styles for the absolutely necessary CSS (position, sizes).

Thanks @emilebres, good to know.
The problem I'm facing is that the components I want to compile are using CSS modules, which creates its own additional set of problems. I'm more & more preferring the atomic functional CSS approach over both style-in-js and CSS Modules, since it solves this and many other styling & theming related issues.

I would love to contribute to this, as I will have to do a POC in implementing thing like this for my new project. http://github.com/mappmechanic/codelab-book
@gaearon - Please do guide me if I should do a Prototype with that Babel Preset thing or some other approach.

For a very simple start to uncompiled typescript components, this might make a good read.
Its done for vanilla Typescript components but principles should cross over to TSX
https://medium.com/@quantumjs/combining-webpack-and-typescript-to-publish-component-libraries-over-npm-d22c3201ab22
If anyone wants I can look at TSX.


Use FindESMF.cmake from ESMF

This PR is an attempt to use the FindESMF.cmake that ESMF itself supplies.

This seems to work! This is nice. Now whenever ESMF updates their CMake macro, we get it along for the ride.
Note: Still haven't tested this with Spack MAPL/GEOS. My guess is I've probably broken that; my changes here seem to do off-and-on.


Containers lib image handling

This will use github.com/containers/image to pull images instead of connecting to the docker socket (which requires running in privileged mode).
Use of the docker daemon is still possible via --use-docker
Fixes #35
(this PR is an update of #58 rebased on master. Lets make this the last time.. )

@legionus @mfojtik @zgalor Can you review ?

@enoodle can you rebase?
@rhdedgar can you review this?

@simon3z I rebased this but I think it will be better to go with https://github.com/openshift/image-inspector/pull/95 (and preferably after rebasing https://github.com/openshift/image-inspector/pull/90)

@simon3z I rebased this but I think it will be better to go with #95 (and preferably after rebasing #90)

OK for me (rebase those). Please close the PRs that are not relevant then, I think both @oourfali and I got the impression that this was the one to review.

Closing in favor of https://github.com/openshift/image-inspector/pull/95


bugfix for the bit opcode

The bit opcode computes accumulator AND operand, and updates the Z flag. And it copies bits 6 and 7 from the operand into the flags register.
But what this was doing is copy bits 6 and 7 from the AND instead of directly from the operand.
This bug was discovered by solid65.

solid65 strikes again. Amazing. 😍


Would be nice to have an automatic checker for long code lines

... and not have it complain about string lines (some strings in translations/explanations are long).

This is now done. The check is always run if you type 'make'. You should do that every time before committing anything. The make will not crash if there are long lines, but you will see if you have any.


fqdn proxy: fix data race detection on TCP fqdn proxy

PR #25309 introduced a data race by sharing the sessionUDPFactory between the DNS server instances for the different IP families (IPv4 & IPv6). This has been detected by #27979.
This commit fixes the issue for the TCP servers too. It not set explicitly, these are initialized with the default udp session factory to prevent nil pointer exceptions. Therefore, an explicit noop udp session factory is set.
Fixes: #28156

/test


Does it support bluetooth mouse ?

Thank you for your good project. I try to use it to improve poor bluetooth support on Libra 2. However, I can't use it to purn page.  Here is my relevant log.  Does it mean my mouse is not supported on Libra 2 ?
Apr  3 10:08:49 nickel: (BluetoothPageTurner) starting
Apr  3 10:08:49 nickel: (BluetoothPageTurner) waiting for input devices
Apr  3 10:09:43 nickel: (BluetoothPageTurner) checking /proc/bus/input/devices for new devices
Apr  3 10:09:43 nickel: (BluetoothPageTurner) skipping Bus=0019 Vendor=0001 Product=0001 Version=0100
Apr  3 10:09:43 nickel: (BluetoothPageTurner) skipping Bus=0018 Vendor=0000 Product=0000 Version=0000
Apr  3 10:09:43 nickel: (BluetoothPageTurner) skipping Bus=0018 Vendor=001b Product=0000 Version=0000
Apr  3 10:09:43 nickel: (BluetoothPageTurner) found Bus=0005 Vendor=0a5c Product=0001 Version=0129
Apr  3 10:09:43 nickel: (BluetoothPageTurner) acquired device event3:<PHONE_NUMBER>73
Apr  3 10:09:43 nickel: (BluetoothPageTurner) devices scanned
[root@kobo ~]# logread | grep bluetoothd
Apr  3 10:09:28 bluetoothd[1377]: Bluetooth daemon 5.56
Apr  3 10:09:28 bluetoothd[1377]: Starting SDP server
Apr  3 10:09:28 bluetoothd[1377]: src/rfkill.c:rfkill_init() Failed to open RFKILL control device
Apr  3 10:09:28 bluetoothd[1377]: Bluetooth management interface 1.9 initialized
Apr  3 10:09:30 bluetoothd[1377]: src/adapter.c:reset_adv_monitors_complete() Failed to reset Adv Monitors: Unknown Command (0x01)
Apr  3 10:09:30 bluetoothd[1377]: Endpoint registered: sender=:1.2 path=/org/bluez/hci0/A2DP/SBC/Source/1
Apr  3 10:09:30 bluetoothd[1377]: Endpoint registered: sender=:1.2 path=/org/bluez/hci0/A2DP/SBC/Source/2
Apr  3 10:09:30 bluetoothd[1377]: Player registered: sender=:1.0 path=/com/kobo/bluetooth/MediaPlayer
Apr  3 10:09:31 bluetoothd[1377]: profiles/input/device.c:ioctl_is_connected() Can't get HIDP connection info
[root@kobo ~]# bluetoothctl paired-devices
Device 90:29:85:65:54:73 E-PCG233
[root@kobo ~]# bluetoothctl info 90:29:85:65:54:73
Device 90:29:85:65:54:73 (public)
        Name: E-PCG233
        Alias: E-PCG233
        Class: 0x00002580
        Icon: input-mouse
        Paired: yes
        Trusted: yes
        Blocked: no
        Connected: yes
        WakeAllowed: no
        LegacyPairing: no
        UUID: Human Interface Device... (00001124-0000-1000-8000-00805f9b34fb)
        UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
        Modalias: usb:v0A5Cp0001d0129

By the way, I can use evtest to capture some events.
Event: time<PHONE_NUMBER>.956856, type 4 (Misc), code 4 (ScanCode), value 90001
Event: time<PHONE_NUMBER>.956856 ------- Report Sync ------ x: 49 y: 30 p: 0 ------------
Event: time<PHONE_NUMBER>.136896, type 4 (Misc), code 4 (ScanCode), value 90001
Event: time<PHONE_NUMBER>.136896 ------- Report Sync ------ x: 49 y: 30 p: 0 ------------
Event: time<PHONE_NUMBER>.747985, type 4 (Misc), code 4 (ScanCode), value 90002
Event: time<PHONE_NUMBER>.747985 ------- Report Sync ------ x: 49 y: 30 p: 0 ------------
Event: time<PHONE_NUMBER>.855500, type 4 (Misc), code 4 (ScanCode), value 90002
Event: time<PHONE_NUMBER>.855500 ------- Report Sync ------ x: 49 y: 30 p: 0 ------------

This is my configuration.
prevPage EV_MSC MSC_SCAN 90001
nextPage EV_MSC MSC_SCAN 90002

Please give me some hints. Thank you.

I know the root cause. I misunderstand the event value of evtest tool. This value is hex. After I use 0x90001 and 0x90002, I can use my bluetooth mouse to turn page.  Thank you for your good project.

I know the root cause. I misunderstand the event value of evtest tool. This value is hex. After I use 0x90001 and 0x90002, I can use my bluetooth mouse to turn page. Thank you for your good project.
EV_MSC MSC_SCAN is making the event occur twice, once for clicking and once for releasing....rising and falling edge

EV_MSC MSC_SCAN is making the event occur twice, once for clicking and once for releasing....rising and falling edge

Yes, I used another event to turn page to solve wrong event issue after I used the evtest of Linux PC.  The original log was from the evtest of Kobo device. It can not capture some events like EV_KEY (BTN_LEFT). Thank you.

can  you please share your config file, it would be very helpful


An issue with the preprocessing part of LibriTTS.

Hello!🤗 When I'm working with the LibriTTS dataset, I noticed that the generated test.json and train.json files do not include the corresponding text for each audio sample. This absence of text information causes an error when trying to extract the phonemes later on. Additionally, I couldn't find any code related to text processing in the preprocessors/libritts.py file.

Thanks for the team's hard work and contributions!🎉

Thanks for your feedback. We have updated the  LibriTTS dataset processor https://github.com/open-mmlab/Amphion/pull/25 , where this bug is fixed. So please pull the latest code and try it again.

Is it better to run the command "sh egs/tts/VALLE/run.sh --stage 1" to retrieve the latest code and try again, and how to just run "Extracting phoneme sequence for libritts..." in the above case? for libritts..." How to run only the "Extracting phoneme sequence for libritts..." part?
Extracting acoustic features for libritts using 4 workers ...
1% | Casinos | 1704/282359 [04:00<10:55:11, 7.14it/s]
It's too slow.

Thanks for your feedback. We have updated the LibriTTS dataset processor in this PR #25 , where this bug is fixed. So please pull the latest code and try it again.

Is it better to run the command "sh egs/tts/VALLE/run.sh --stage 1" to retrieve the latest code and try again, and how to just run "Extracting phoneme sequence for libritts..." in the above case? for libritts..." How to run only the "Extracting phoneme sequence for libritts..." part?
Extracting acoustic features for libritts using 4 workers ...
1% | Casinos | 1704/282359 [04:00<10:55:11, 7.14it/s]
It's too slow.

Thanks for your feedback.
If you only want to extract phoneme sequences, you can comment out lines 105-219 in the file located at https://github.com/open-mmlab/Amphion/blob/b17eea80db16c7e566a7acb426e69ed8f25d3e8e/bins/tts/preprocess.py#L94. This will skip the previous processing steps and extract only the phoneme sequences.
Your feedback inspires us to split the multi-step data processing into individual sub-stages, so that we can flexiblely control over the specific sub-stage of data processing.
Additionally, parallel extraction of acoustic features is currently being tested.

Thanks for your feedback.
If you only want to extract phoneme sequences, you can comment out lines 105-219 in the file located at https://github.com/open-mmlab/Amphion/blob/main/bins/tts/preprocess.py. This will skip the previous processing steps and extract only the phoneme sequences.
Your feedback inspires us to split the multi-step data processing into individual sub-stages, so that we can flexiblely control over the specific sub-stage of data processing.
Additionally, parallel extraction of acoustic features is currently being tested.

Thank you for your reply, but I encountered this problem after installing the comment you mentioned, and I can't tell what's causing it.

The dataset_types variable is defined in lines 140-146, so you should keep them uncommented.

It feels like Amphion has been in a constant process of revision, which is really confusing for a beginner like me. I've been constantly using "git pull origin" to update my local files, but I'm still having the same problem as before.

hi,when i use LibriTTS dataset to train valle,i get this error.

i also want to know what should i do to debug this project in PyCharm. i know you use accelerate framework. when start training the project, must use"accelerate launch xxx.py",but i can not configure accelerate launch in my PyCharm.
Thank you!

Please check egs/tts/VALLE/exp_config.json in this PR https://github.com/open-mmlab/Amphion/pull/52/files#

Please check egs/tts/VALLE/exp_config.json in this PR https://github.com/open-mmlab/Amphion/pull/52/files#

thank you!
when i train VALLE

Please check egs/tts/VALLE/exp_config.json in this PR https://github.com/open-mmlab/Amphion/pull/52/files#

Thank you. When i train VALLE.  i successfullly trained the AR model. But when i trained the NAR model by "sh egs/tts/VALLE/run.sh --stage 2 --model_train_stage 2 --ar_model_ckpt_dir [ARModelPath] --name [YourExptName]
", i met this error.
i can not find the model named pytorch_model.bin, what should i do? Thank you!

Please check egs/tts/VALLE/exp_config.json in this PR https://github.com/open-mmlab/Amphion/pull/52/files#

Thank you. When i train VALLE. i successfullly trained the AR model. But when i trained the NAR model by "sh egs/tts/VALLE/run.sh --stage 2 --model_train_stage 2 --ar_model_ckpt_dir [ARModelPath] --name [YourExptName]
", i met this error.

i can not find the model named pytorch_model.bin, what should i do? Thank you!

@baipeng1 I also met the problem of "can not find the model named pytorch_model.bin", have you solved it?

@HeCheng0625 @lmxue please help with this issue.

If the model is saved as model.safetensors (which means it is not pytorch_model.bin), please use "pip install accelerate==0.24.1"

If the model is saved as model.safetensors (which means it is not pytorch_model.bin), please use "pip install accelerate==0.24.1"

Ok, Thank you!

1、i found that the audio generated by VALLE is poor. I use the train-clean-100.tar.gz dataset to train, Is it because I don't have enough data?

It feels like Amphion has been in a constant process of revision, which is really confusing for a beginner like me. I've been constantly using "git pull origin" to update my local files, but I'm still having the same problem as before.

You can check out whether the generated .json file has the Text attribute.

1、i found that the audio generated by VALLE is very poor. it will has this warning "WARNING | phonemizer | words count mismatch on 200.0% of the lines". Is it because of this issue? In addition, i use the train-clean-100.tar.gz dataset to train, Is it because I don't have enough data? 2、We train the AR model to predict the first codebook token,2-7 are NAR model. but i found that VALLE only use NAR model during inference, Is this correct?

@lmxue Could you help with this issue please?

1、i found that the audio generated by VALLE is very poor. it will has this warning "WARNING | phonemizer | words count mismatch on 200.0% of the lines". Is it because of this issue? In addition, i use the train-clean-100.tar.gz dataset to train, Is it because I don't have enough data? 2、We train the AR model to predict the first codebook token,2-7 are NAR model. but i found that VALLE only use NAR model during inference, Is this correct?

The warning itself is not the cause of the poor performance. In fact, to achieve satisfactory results with VALL-E, it is necessary to train it on a large-scale dataset. As mentioned in the original paper, a training dataset of 60k hours was used to train VALL-E.

The NAR model in the second training stage builds upon the AR model trained in the first stage, as outlined in the VALL-E recipe. Consequently, the NAR model inherits the parameters from the AR model, enabling it to predict the first-layer token using the AR model during inference.

Hi @walker-hyf, if you have any more questions regarding the preprocessing part of LibriTTS and Vall-E training, please don't hesitate to reopen this issue!


Authorization with SignalR

Hey,
I'm playing around with SignalR looking to port an existing application that has authentication/authorization. Been experimenting on a test project but so far only managed to authenticate a client by deriving AuthorizeAttribute and overriding AuthorizeHubMethodInvocation (which is not a viable approach I dare say).
I've also noticed on the Chat sample that there's a // TODO: Make this work next to the [Authorize] header and that there's no JS client code yet. Does this mean it's not possible to add authorization at this moment to SignalR?

You need to take care of the authorization yourself currently. In the ChatSample users are Authorized in the OnConnectedAsync method
The Chat sample does use the Typescript/JS client. It is being compiled and copied to the project as a pre-compile step: https://github.com/aspnet/SignalR/blob/901d9604b577c7940703ce06b3257899f3868207/samples/ChatSample/project.json#L87-L89 and then used here: https://github.com/aspnet/SignalR/blob/901d9604b577c7940703ce06b3257899f3868207/samples/ChatSample/Views/Home/Index.cshtml#L17


[SPARK-37646][SQL]Avoid touching Scala reflection APIs in the lit function

What changes were proposed in this pull request?
This PR proposes to avoid touching Scala reflection APIs in the lit function.
Why are the changes needed?
Currently lit calls typedlit[Any] and touches Scala reflection APIs unnecessarily. As Scala reflection APIs touch multiple global locks and they are pretty slow when the parallelism is pretty high.
This PR inlines typedlit to lit and replaces Literal.create with Literal.apply to avoid touching Scala reflection APIs. There is no behavior change.
Does this PR introduce any user-facing change?
No
How was this patch tested?

New unit tests.
Manually ran the test in https://issues.apache.org/jira/browse/SPARK-37646 and saw no difference between new Column(Literal(0L)) and lit(0L).

Test build #146192 has started for PR 34901 at commit c10b577.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50666/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50666/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/50666/

Test build #146192 has finished for PR 34901 at commit c10b577.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/146192/

Test build #146201 has started for PR 34901 at commit f288b9f.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50675/

Test build #146205 has started for PR 34901 at commit d287a4a.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50679/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50675/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/50675/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50679/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/50679/

Merged to master.

Test build #146201 has finished for PR 34901 at commit f288b9f.

This patch fails SparkR unit tests.
This patch merges cleanly.
This patch adds no public classes.

+1, LGTM. Thank you!

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/146201/

Test build #146205 has finished for PR 34901 at commit d287a4a.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/146205/

late LGTM


kafka consumer missing data cause data inconsistency when the brokers failed frequently

What did you do?

create kafka changefeed

/cdc  cli  changefeed  create \"--server=<IP_ADDRESS>:8301\" \"--sink-uri=kafka://downstream-kafka.cdc-testbed
-tps-1807799-1-20:9092/broker_fail?max-message-bytes=1048576&replication-factor=2&enable-tidb-extension=true&protocol=canal-json\" \"--changefeed-id=kafka-random-broker-fail-canal-json\"

run workload and inject kafka broker failure (case: kafka_random_broker_fail).
"sysbench --db-driver=mysql --mysql-host=nslookup upstream-tidb.cdc-testbed-tps-1807799-1-20 | awk -F: '{pr int $2}' | awk 'NR==5' | sed s/[[:space:]]//g  --mysql-port=4000 --mysql-user=root --mysql-db=workload --tables=100 --table-size=100000 --create_secondary=off --time=1800 --debug=true --threads=100 --mysql-ignore-errors=2013,1213,1105,1205,8022,8027,8028,9004,9007,1062 oltp_update_non_index run"
send finishmark
run kafka consumer to consumer kafka log to downstream mysql
do data consistency check when finishmark is sent to downstream mysql

What did you expect to see?
data should be consistent
What did you see instead?
data inconsistecy seen, 3 out of 100 tables are inconsistent.

Versions of the cluster
cdc version
Release Version: v7.2.0-alpha
Git Commit Hash: 98bd965630ff2f6efd105810a790a2c5e8e389e4
Git Branch: heads/refs/tags/v7.2.0-alpha
UTC Build Time: 2023-06-13 11:32:27
Go Version: go version go1.20.3 linux/amd64
Failpoint Build: false

Kafka consumer log:
cdc_kafka_consumer.log

https://tcms.pingcap.net/dashboard/executions/plan/1808271

/severity critical

/found automation

[2023/06/14 03:39:17.771 +00:00] [PANIC] [main.go:346] ["Error from consumer: %v"] [error="dial tcp <IP_ADDRESS>:9092: connect: connection refused"] [stack="main.main.func1\n\tgithub.com/pingcap/tiflow/cmd/kafka-consumer/main.go:346"]

After investigation, the data loss comes from the kafka consumer part, not the cdc.

/remove-severity critical

/severity major

/severity moderate

https://github.com/pingcap/tiflow/issues/9694
all other issues of the consumer will link to the above issue
/close


Compare and evaluate casbin vs. ladon

Compare https://github.com/casbin/casbin to https://github.com/ory/ladon
From first impression it looks like casbin is a lot more flexible than ladon, but ladon seems to have a well organized configuration model and API.

irrelevant


fix: plugin keymaps delayed

Remove delay when using a plugin keymap.
Context
What is the problem you are trying to solve?
When you have a keymap like qq, and then also set q as a keymap to close Dressing, the result is a minor delay due to nvim waiting to see whether you are going for q or qq.
Description
Describe how the changes add the functionality or fix the issue under "Context"
They add nowait = true, which has the purpose of removing the delay in such cases.
Test Plan
list the steps you took to test this functionality. Steps should be
reproducible by others.
Use a keymap for qq and set
mappings = { n = { ["q"] = "Close" } },

LGTM! Can you fix the styling?

ah yes, only changed via web interface, not considering that stylua now demands changes 🙈
fixed

Thanks for the PR!


Make it possible to use a client certificate stored in hardware

This has been tested with a Yubikey and the OpenSC PKCS#11 interface on Linux.

Hello @danielgtaylor . This is something we need at Exoscale, and we wanted to show it to you and see what you think. The fact that it pulls in code that needs cgo is unfortunate but more or less unavoidable for how PKCS#11 plugins work.
If that's a deal breaker we'll see what we can do about it.

@jeffallen thanks for the PR. I have to admit I'm not familiar with this plugin system and how it works. Given most users install from homebrew or binaries I'm not too worried about adding cgo, but I do like the idea of a plugin similar to how we can currently shell out for custom auth scripts. I'll have to read up on this a bit and figure out how I can test it out.

@jeffallen sorry for the delay! This was not the easiest change to test! I finally had a chance to get this working locally and test it out. Here are the steps for anyone who is interested (and probably my future self if we're being honest):

Get a hardware security dongle like a Yubikey (thank you to Exoscale for sending me one). Install & open the Yubikey Manager. Generate a certificate via Applications → PIV → Certificates → Authentication (Slot 9a) → Generate, then export & save as client-pub.pem. Issuer and subject can just be test. The default pin is 123456.
Install OpenSC: https://github.com/OpenSC/OpenSC/wiki/macOS-Quick-Start. This will provide the required library to talk to the Yubikey to sign requests with the private on-device key.
Run OpenSSL to generate a self-signed server certificate for SSL.  to the response body
    io.WriteString(w, "Hello, world!\n")
}

func main() {
    // Set up a /hello resource handler
    http.HandleFunc("/hello", helloHandler)

    // Create a CA certificate pool and add the client's public key to it.
    caCert, err := ioutil.ReadFile("client-pub.pem")
    if err != nil {
	    log.Fatal(err)
    }
    caCertPool := x509.NewCertPool()
    caCertPool.AppendCertsFromPEM(caCert)

    // Create the TLS Config with the CA pool and enable Client certificate validation
    tlsConfig := &tls.Config{
	    ClientCAs:  caCertPool,
	    ClientAuth: tls.RequireAndVerifyClientCert,
    }
    tlsConfig.BuildNameToCertificate()

    // Create a Server instance to listen on port 8443 with the TLS config
    server := &http.Server{
	    Addr:      ":8443",
	    TLSConfig: tlsConfig,
    }

    // Listen to HTTPS connections with the server certificate and wait
    log.Fatal(server.ListenAndServeTLS("cert.pem", "key.pem"))
}

Run the server: go run .
Set up a config in Restish for testing so that it loads the opensc-pkcs11.so (use restish api edit):"local8443": {
    "base": "https://localhost:8443",
    "profiles": {
      "default": {}
    },
    "tls": {
      "ca_cert": "",
      "cert": "",
      "insecure": false,
      "key": "",
      "pkcs11": {
        "path": "/Library/OpenSC/lib/opensc-pkcs11.so",
        "label": "test"
      }
    }
  },

Check out this PR (or a future release of Restish), then run the following. Note we'll use --rsh-insecure to ignore the fact that the server's certificate is self-signed, otherwise Restish would refuse to continue because it doesn't trust the server. This option has no impact on client certs.$ cd src/restish
$ gh pr checkout 246
$ go install
$ export PKCS11_PIN=123456
$ restish --rsh-insecure https://localhost:8443/hello

Here are the results:

Without any Restish config (i.e. no PKCS11 client cert set up)ERROR: Caught error: Get "https://localhost:8443/hello": remote error: tls: certificate required

With the config, but without the Yubikey inserted:ERROR: Caught error: Get "https://localhost:8443/hello": could not find PKCS#11 token

With the config, with the Yubikey:WARN: Disabling TLS security checks
HTTP/2.0 200 OK
Content-Length: 14
Content-Type: text/plain; charset=utf-8
Date: Wed, 29 May 2024 05:31:56 GMT

Hello, world!

Success! Thanks for the work on this. :+1:


API_URL is added to UI_URL if no schema provided

When I run install.sh without https/https part in API_URL variable, then API_URL is added to BACKEND_URL during authorization.
Environment:

Ubuntu 18.04.
docker-compose 1.28.2.
GitHub OAuth app.

How to reproduce:

Register your OAuth application on github according to instructions.
Login to private Iterative repository.
Run install script with command (IP address depends on your network configuration): UI_URL=<IP_ADDRESS>:3000 API_URL=<IP_ADDRESS>:8000/api GITHUB_CLIENT_ID=<client-id> GITHUB_SECRET_KEY=<secret-key> ./install.sh
Open http://<IP_ADDRESS>:3000 in you browser.
Click log in button.

Result:
You will get 404 error and for a moment there will be the following address in address bar of your browser: <IP_ADDRESS>:3000/<IP_ADDRESS>:8000/api/login/github
Expected behavior:
Not sure, probably one of two options:

Do not allow UI_URL, API_URL without http/https part.
Somehow mention in the docs that if no http/https part provided, then API_URL is added to UI_URL.

This is abstracted away in our new supported installation method, using the studio helm chart (requires k8s). See: https://github.com/iterative/helm-charts
In the values structure, we take care of constructing the api/ui urls from given global.host to avoid host/url confusion
The docker-compose installation method is being phased out (still supported for existing customers until we reach out with a migration path).


WIP: Respect default schema value

Part of https://github.com/oapi-codegen/oapi-codegen/issues/1703

Thanks! I see this is "WIP" - should it be ignored for now? Marked as a draft?

@percivalalb do you plan to continue with this PR?

I'd like, I don't know when though. Feel free to continue or close


Add whitelist to limit openstack loadbalancers

I tried to deploy OpenStack Discoverer, but sync cycle was too long on a OpenStack cluster which has many projects.
My suggestion is to implement whitelist for rapid sync cycle.
$ kubectl logs openstack-discoverer-5556b6dcbc-ptj6n -n gimbal-discovery | grep 'dreco-001/openstack-626c5bf1-3cf8-438a-b6a1-e20419126eee'

time="2018-10-28T22:20:33Z" level=info msg="Successfully handled: update service 'dreco-001/openstack-626c5bf1-3cf8-438a-b6a1-e20419126eee'"
time="2018-10-28T22:51:58Z" level=info msg="Successfully handled: update endpoints 'dreco-001/openstack-626c5bf1-3cf8-438a-b6a1-e20419126eee'"
time="2018-10-28T22:51:59Z" level=info msg="Successfully handled: update service 'dreco-001/openstack-626c5bf1-3cf8-438a-b6a1-e20419126eee'"
time="2018-10-28T23:23:19Z" level=info msg="Successfully handled: update endpoints 'dreco-001/openstack-626c5bf1-3cf8-438a-b6a1-e20419126eee'"
time="2018-10-28T23:54:43Z" level=info msg="Successfully handled: update service 'dreco-001/openstack-626c5bf1-3cf8-438a-b6a1-e20419126eee'"
time="2018-10-28T23:54:43Z" level=info msg="Successfully handled: update endpoints 'dreco-001/openstack-626c5bf1-3cf8-438a-b6a1-e20419126eee'"

issue: #241
Signed-off-by: Hiroaki Morikawa<EMAIL_ADDRESS>

Now that it is main, I am torn between using a flag or an env variable for the list of projects.
The environment variables that we currently have are in place because that is how most openstack tools expect their configuration.
Given that the list of projects is more of a gimbal concern, I am leaning towards using a flag to pass the list of projects, instead of an env variable.
I also think I prefer the idea of the whitelist. In the current implementation, we still query the openstack API for a list of all projects. Thus, the idea of a whitelist makes sense. That is, we will ask for all projects, but only reconcile the ones that appear in the whitelist.
Maybe something like this in main.go:
 	flag.StringVar(&openstackProjectWhitelist, "openstack-project-whitelist", "", "Whitelist of projects that should be reconciled. If empty, load balancers across all projects will be reconciled.")

What do you all think?

@hmorikaw Please make sure to signoff your commits. More info here: https://github.com/heptio/gimbal/blob/master/CONTRIBUTING.md#dco-sign-off

I signed off my commits and changed the source of whitelist from environment variable to flag option.

@hmorikaw I think this is looking better. Could you add some tests to cover the new functionality? Also, would be great to update docs to reference the new params.

@stevesloka I added a new test code 'discovery/pkg/openstack/reconciler_test.go'
and updated the docs 'docs/openstack-discoverer.md' to reflect the new param.

Hey @hmorikaw, there's still one change to update with the name of the new param:

My only thing would be to rename whitelist to openstack-project-watchlist: List of projects to be watched for reconcilation. If empty, load balancers across all projects will be reconciled

@stevesloka I'm so sorry. I rename whitelist to watchlist.

/lgtm
Thanks for the PR @hmorikaw, this is a really nice feature!


Update version to alpha 4

Checklist

[ ] Linked to Github Issue
[ ] Unit tests added
[ ] Integration tests added.
[ ] This change requires new documentation.

[ ] Documentation has been added/updated.

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

Project coverage is 82.69%. Comparing base (4f65827) to head (456a9dc).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #854   +/-   ##
=======================================
  Coverage   82.69%   82.69%
=======================================
  Files         120      120
  Lines       34756    34756
=======================================
  Hits        28743    28743
  Misses       6013     6013

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


docs: Docs change to simulate backport

For testing the backport workflow

FWIW this worked after I sorted out the permissions, those comments are for old versions...


Move tools to correct wire categories

@awilliamson Don't patronize me.

@awilliamson Don't patronize me.

Hey @awilliamson why'd you block me for no reason? Also don't patronize me.


the click event lost mouse and keyboard info

I don't think changing the click event from basic_event<arg_mouse> to basic_event<arg_click> is a good idea. It causes losing many useful infomations and making the click and dbl_click acting  quite differently.
Perhap inheriting  arg_click from arg_mouse is more suitable.

ps:why the Alt key disappeared from nana?

	struct arg_mouse
		: public event_arg
	{
		event_code evt_code; ///<
		::nana::window window_handle;  ///< A handle to the event window
		::nana::point pos;   ///< cursor position in the event window
		::nana::mouse button;	///< indicates a button which triggers the event

		bool left_button;    ///< mouse left button is pressed?
		bool mid_button;     ///< mouse middle button is pressed?
		bool right_button;   ///< mouse right button is pressed?
		bool shift;          ///< keyboard Shift is pressed?
		bool ctrl;           ///< keyboard Ctrl is pressed?
	};

	struct arg_click : public event_arg
	{
		::nana::window window_handle;	///< A handle to the event window
		bool by_mouse;					///< Determines whether the event is emitted by clicking mouse button
	};

    basic_event<arg_click> click;		///< the window is clicked, but occurs after mouse_down and            before mouse_up
    basic_event<arg_mouse> dbl_click;	///< the window is double clicked

Thanks for your feedback, a fix will be shown up in the next release. I encourage you continue offering constructive feedback.

A ptr mouse_args added to arg_click that refers to arg_mouse for mouse info. If the arg_click is not emitted by mouse click, the mouse_args is null.
The alt member also added to arg_mouse.


Display stays dark closing SideNav

Hi,
I used the SideNav for mobile devices, but if I close it with a click on a , the sidenav closes but the display stays dark.
Just this as option activated:
$('.button-collapse').sideNav({       closeOnClick: true     }   );
Why? And how can I fix it?

Create a codepen with your code please. http://codepen.io/Dogfalo/pen/xbzPQV

http://codepen.io/croghs/pen/wWgZyV This is just the code for the SideNav. If you need the full code just comment again please. (It's alot of code...)

I observed the same behavior. SideNav closes but the overlay stays on Chrome and IE. Firefox seems to be working OK.

I am too facing the same issue :(

Same issue here, even in Firefox. Seems like it's creating 2 overlays instead of one sometimes, so I have to click 2 times outside of the sideNav to exclude both of them.

I'm having the same issue here, any fix?

My problem was  I included the materialize files two times..After removing one link and script , it is working fine.. :)

Sadly the codepen was deleted.
Closed due inactivity, feel free to reopen it if it is still necessary, in that case please provide a new codepen.


BASE IMAGE

The getter 'baseImage' isn't defined for the type 'BaseAPI'.
Try importing the library that defines 'baseImage', correcting the name to the name of an existing getter, or defining a getter or field named 'baseImage'.

Issues with third-party libraries need to be reported to their developers.
Closing as this is not about Flutter itself.


Prepare for v0.13.1 release.

I think some API docs were deleted by accident. Did you run build.sh?

Yes, I did. There wasn't any error message. I'm re-running that and checking what happened


[Question] Implementing IHttpRequester

Can you give a basic GET or POST example on how to implement IHttpRequester ?
Thanks in advance.

Of course, just looking at the source of the default requester may be enlightning:
https://github.com/AngleSharp/AngleSharp/blob/master/src/AngleSharp/Network/Default/HttpRequester.cs
Alternatively, look at the implementation in AngleSharp.Io:
https://github.com/AngleSharp/AngleSharp.Io/blob/master/src/AngleSharp.Io/Network/HttpClientRequester.cs
Finally, there are some other implementations available in AngleSharp.Io. I think overall it should be quite straight forward (all you need are two methods, one to reflect what protocols can be handled, e.g., http and https, and another method to actually handle the request).
Hope that helps!


Currency setting

Setting of currency to use in private settings (mandatory so far - should we use USD by default?)
Tested with AUD and EUR

Setting of currency to use in private settings (mandatory so far - should we use USD by default?)
Tested with AUD and EUR

I think USD by default is cool


multibox-prompt inference

Thanks to your greate work! I wang to know if there is support fo multibox-prompt inference? and Is there sample code?

@BeliverK, the multibox-prompt inference is supported. @balakv504, maybe you can add this to our example?

@yformer ，Thank you very much for your reply, it helped me a lot。


Add notification message to bundle update when no update due to conflict dependencies

From: https://github.com/bundler/bundler-features/issues/112

This should be closed https://github.com/bundler/bundler/issues/4774#issuecomment-233211045 and https://github.com/bundler/bundler/issues/4774#issuecomment-329879480

We do have this for explicit updates (bundle update <gem>), but not for a generic bundle update --all. The original request was to display a message in both cases. I tend to think it's fine as it is.


switch to draft connect for the ingress parts?

Due to the complexity of the setup, ingress support in draft was removed in favour of draft connect (see Azure/draft#573). In 0.12.0 and above, it's recommended in the documentation to use draft connect as it initiates a tunnel straight to all the pods without needing to set up ingress controllers, DNS, etc. Are there plans to eventually migrate over, or are there limitations with the current system?

Part of the demo is to show HTTP Application Routing so it depends on what we want to show here? cc @bradygmsft

@bacongobbler this is an interesting request. As @sabbour calls out we do want to demonstrate the AKS Http App Routing capabilities and features so I think it'll remain as-is. However, I would be interested to know the implications of both approaches, what @squillace thinks, too. Also cc @gabrtv as I'd be curious his perspective on this. You all know I'm learning the K8s arts, still in my infancy stages of it, so I'm eager to hear your collective perspective on what we should do here. I'd prefer to optimize for the Http App Routing feature, but I'm open to ideas.


Upgrade git packages

Is your feature request related to a problem? Please describe.
Currently gitea4vs uses a relatively older version of the git nugget packages.
This does not support newer features added to git, such as using the windows certificate store instead of the openssl one.
Describe the solution you'd like
Upgrade the nugget packages to latest.
I did this on local build and it compiles fine.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Installing the CA cert on the extension open ssl store. But that does not seem strait forward at all.
Additional context
Add any other context or screenshots about the feature request here.

Hi , try this .
http://vsixgallery.com/extension/62991164-1F3E-4AAA-BF2F-537C83AF987C/

Hi maikebing,
Thanks for the quick response
with new package we get passed the authentication, but still getting an error when cloning;
The login works fine.
then when click on clone, we see the list of repos, select the one, and click clone.
at that point we get
"Git failed with a fatal error.
unable to access 'https://zzz.yyy.com:3000/MyOrg/myrepo.git/': SSL certificate problem: self signed certificate in certificate chain"
we can clone the repository from git gui - The certificate CA is in the windows store so the certificate is  trusted.
at the time of installing git, one of setup steps is to choose if to use openssl as the source of certificates or windows certificate store.
we choose windows certificate store.
maybe there is/ create a way to tell gitea4vs to use windows certificate store?
below screenshot of setup step in git installation:

Update:
The issue with self signed cert and the windows cert store actually has nothing to do with the extension.
its a hidden 'feature' of microsoft;
for anyone having the same issue, you can change visual studio git implementation to use windows cert store : (VS is shipped with its own git and not using the default git on the PC).

browse to
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\bin
run
git config --global http.sslBackend schannel

Thanks again @maikebing for the fast response


Store native BSON types as-is in the MongoDB formatter

I like to throw MongoDB document IDs in my log context so I can cross-reference them later:
$log->info("{$user->email} logged in", [ 'actor' => $user->id ]);

Right now, \Monolog\Formatter\MongoDBFormatter flattens ObjectIds into arrays (e.g. [ 'oid' => 'object id string', 'class' => ObjectId::class ]). This PR allows all \MongoDB\BSON\Type implementations to pass through the formatter without additional processing.

Thanks


fix(docs): Update Slack to Discord - #388

Signed-off-by: tech-bash<EMAIL_ADDRESS>

Closes #<388>

Changes
Changed the Slack link to Discord link for Web-Components/Readme.md
Related   Issue

Issue  # Update Slack References to Discord #388

Author Checklist

[x] Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
[ ] Vital features and changes captured in unit and/or integration tests
[x] Commits messages follow AP format
[ ] Extend the documentation, if necessary
[x] Merging to master from fork:branchname
[ ] Manual accessibility test performed

[ ] Keyboard-only access, including forms
[ ] Contrast at least WCAG Level A
[ ] Appropriate labels, alt text, and instructions

now can I do this for each repo of this project !!


Adding lots of resources & methods

Hey there! We needed a good deal of resources & methods that weren't exposed by the library, and have added them. Hope this is useful!
Build-configs

Added findAll
Updated find - added missing buildconfigname check
Added update
Added removeAll

Builds

Added findAll
Updated find - added missing buildname check
Added create
Added update
Added removeAll

Cluster-role-bindings

Full new findAll, find, create, remove

ConfigMaps

Added findAll
Added create
Added update
Added remove
Added removeAll

DeploymentConfig

Added findAll
Updated find - added missing deploymentconfigname check
Added update
Added removeAll

Groups

Full new findAll, find, create, remove, removeAll

ImageStreams

Added findAll
Updated find - added missing imagestreamname check
Added update
Added removeAll

Pods

Full new findAll, find, create, remove, removeAll

ProjectRequests

Full new findAll, create

Projects

BREAKING CHANGE find() was used for findAll-type, behaviour so has been renamed (have updated README.md to reflect this). The find() method now expects a project name, like all other resources.
Added findAll
Added create
Added update
Added remove
Added removeAll

Replication Controllers

Added create
Added update

Role-bindings

Full new findAll, find, create, remove, removeAll

Routes

Added findAll
Updated find - added missing routename check
Added update
Added removeAll

Secrets

Added update

Services

Added findAll
Updated find - added missing servicename check
Added update
Added removeAll

@tavogel thanks for this.  i'll release a new version soon

@tavogel just released 0.11.0 https://www.npmjs.com/package/openshift-rest-client 🍾  🎆

Happy to help!


Fix thread leaking issue ( github issue 103 )

this fix https://github.com/googlesamples/android-audio-high-performance/issues/103.
@philburk, please take a look, thanks!

Oh, this change includes @dturner's similar change for echo sample too.

Thanks Gerry


Custom emoji reactions causes an error

Problem is with karma.py module.
Traceback (most recent call last):
  File "/home/emerald/.local/lib/python3.5/site-packages/discord/client.py", line 307, in _run_event
    yield from getattr(self, event)(*args, **kwargs)
  File "bot.py", line 37, in on_reaction_add
    await bot_module.on_reaction_add(reaction, client, user)
  File "/home/emerald/scubot/modules/karma.py", line 39, in on_reaction_add
    if reaction.emoji in self.reaction_emojis or reaction.emoji.name in self.reaction_emojis:
AttributeError: 'str' object has no attribute 'name'

Fixed with e1b10e8278b019063612d1f9ade1c7807023cbf3


add_faults() bug fix for new fault intersecting existing fault

fix of bug affecting split pillar data when adding a fault that intersects an existing fault

I also added a line to .gitignore which probably only affects Mac users. (Should have been a separate branch and pull request, sorry!)


Biodomains semicolon update

This PR addresses AG-1366 and AG-1371.
The new biodomains file changed the format of their ensembl_id column, so that instead of a single Ensembl ID per row, some rows have strings like this: "ENSG0001;ENSG0002;ENSG0003" while most still have a single ID per row. To account for this change I did the following:

Bumped the version of the genes_biodomains file from 1 to 4 in the configs
Created a function in utils.py called split_delimited_field_to_multiple_rows, which will take each row with multiple Ensembl IDs, duplicate it so there's enough rows for all the IDs in the list, and then assign a single Ensembl ID per row. This function is written to be generic.
Wrote tests for this function in test_utils.py
Had both affected transforms (genes_biodomains and gene_info) call this util function to expand out the biodomains dataframe before doing more processing on it
Updated the integration test for genes_biodomains to have some input with semicolon-delimited lists
Updated the gene annotation pre-processing notebook to also use the util function in order to get all the Ensembl IDs used in the biodomains data set.
Ran the gene annotation pre-processing notebook to generate a new gene_metadata file and bumped the version of it from 10 to 11 in the configs.

There are also several places in the code where I did de-linting to make SonarCloud happy.

Closing this PR without merging. They changed the biodomains file format back to the old format (one Ensembl ID per row), so this update is no longer needed.


hass.config.is_allowed_path vulnerable to path traversal

Home Assistant release (hass --version): 0.49.0.dev0
Python release (python3 --version): Python 3.5.2
Component/platform: homeassistant.config
Description of problem: The security check hass.config.is_allowed_path that is used to determine whether a local file may be exposed, e.g. sent to telegram, slack etc. can be
tricked with the path traversal attack.
Thus, if /public/data is whitelisted in configuration.yaml you can still upload /etc/passwd via /public/data/../../../../../etc/passwd.
Expected:
Full resolved path should be checked. Also see OWASP
Problem-relevant configuration.yaml entries and steps to reproduce:
homeassistant:
  whitelist_external_dirs:
    - /tmp
    - /public/data

Use yaml-configuration above
Send a file using telegram, slack with path traversal, e.g. /public/data/../../../../../etc/passwd

That should not possible since we use resolve. Can you add tests that we see you are have right?

That should not possible since we use resolve.

@pvizeli, nice, thx for the fix :+1:


New Negotiation Card Button

Edit the text in the button that allows a user to create a new negotiation card to read "New".

Change the text inside the <UsaButton> that currently reads "Start new negotiation card". Currently line 125 in index.vue


Does this work with xformers?

I am working on Unity project to test this model out for converting 2D images and video to 3D (it uses beit currently and works great). It was pretty slow with the 2D to 3D processing of video with this model though (like 2 fps)
so I tried to pip install xformers for a potential speedup (I was hoping), but it says this version of xformers I'm using is not compatible with Torch 2.0.1+cu117 (Cuda 11.7).
The only version of xformers that would work that I found would be version 22 and potentially working with only cuda 11.8 and torch 2.0.1. Is it okay to use cuda 11.8 with this model, I think the Unity project requires 11.7. Does anyone know an old xformers whl that works with Torch 2.0.1+cu117 Also would xformers even make a difference for the framerate? Thanks.
Are there any other parameters in the .py files I can adjust to increase the framerate? It seems like all 3 models run at 2 fps.

Sorry, I do not have enough experience in installing xformers. Hope others can help :)

Hi @brentjohnston, have you tried torch 2.0.0+cu117 and xformers 0.0.18?

你好@brentjohnston，你试过torch 2.0.0+cu117和xformers 0.0.18吗？

Is this a recommended environment configuration?
It always have 'xFormers not available' report in my console.

Hi @brentjohnston, have you tried torch 2.0.0+cu117 and xformers 0.0.18?

Is this a recommended environment configuration?
It always have 'xFormers not available' report in my console.
Now I'm using torch 2.2.0+cu121 and xformers 0.0.24

Hi @brentjohnston, have you tried torch 2.0.0+cu117 and xformers 0.0.18?

Is this a recommended environment configuration? It always have 'xFormers not available' report in my console. Now I'm using torch 2.2.0+cu121 and xformers 0.0.24

Did you solve the problem, I am facing the same problem.


No master playlist?

Hi
Amazingly beautiful script :-) Only problem is, I'm having problems generating a master playlist?
Also when passing multiple bitrates, only the first bitrate is shown:
Encoding for bitrate 256k completed
Encoding for bitrate k completed
Encoding for bitrate k completed

I was mistaking! Sorry Except from the Encoding for.. problem

Thanks! The missing output is being covered in #9. As there's not been much movement on that issue might look at sorting in the next few days

Hi, if you want to pull the latest version the issue with the status output should now be fixed


Respect Cargo.lock file for sysroot build

Ensures that the same versions of crates.io dependencies such as compiler_builtins are used.
Fixes #74

Published together with #73 as v0.5.32.


WSL__empty_window

Installed Glvis on WSL. When I try to run an example using below command it is showing an empty window.
./glvis -m ../mfem-4.3/data/escher.mesh
Installed all the dependencies using below command
sudo apt-get install libfontconfig1-dev libfreetype-dev libsdl2-dev libglew-dev libglm-dev libpng-dev
Also installed VcXsrv X server as suggested in https://github.com/GLVis/glvis/blob/master/INSTALL#L136-L138
Please find the empty window I am seeing. Thank you in advance for your help.

Further details: I have windows 11, and the WSL2 is having Ubuntu-20.04. I checked the mesh details are good. It seems like it is missing some dependencies. I will keep working on this, but in the meantime any directions to resolve this is really helpful. Thank you for all the assistance.

Hi @MohanElapolu,
I recently installed GLVis on a Windows 11 system with WSL2 and Ubuntu without any issues. I'll try to take a look this weekend and respond. If anyone else (@kanye-quest, @acfisher) has any advice, please speak up!
Tzanio

Are you using the latest release v4.1, the latest master branch, or some older commit/version?
If you are not using the latest master branch, can you try that?
In the past, I've had a similar issue (which just happened randomly, not always) where the window will not show anything initially. However, when I force it to update the contents (by pressing a key like r that forces a re-draw, or just resizing the window) then the window contents is updated properly. Try one of these methods to force a re-draw just to see if that helps.

Thank you for the quick response. I am using the latest version4.1 posted on https://glvis.org. I tried to update the content by pressing r/resizing window which unfortunately didn't work.

One thing that might help us, is to build GLVis in debug mode:
make GLVIS_DEBUG=YES [any other options you use for building]

and then post here the output you get in the terminal when you run GLVis to view a mesh (as you mentioned above). That may give us some clues.

I built the GLVis in debug mode and ran the below command to test it.
./glvis -m ../mfem-4.3/data/escher.mesh
Here is the screenshot of the output on the terminal

Can you try ./glvis -oldgl -m ../mfem-4.3/data/escher.mesh

Yes, please find below screenshot of output.

One potential issue: I'm not sure we've tested GLVis with the SDL2 version you are using, v2.0.10. I think the oldest version we tested is 2.0.12. If you want to try a newer SDL2 version, here are some basic instructions how to build it from source: https://github.com/GLVis/glvis/blob/e7c5dd4ed4e67b838a5ba9a6048dbeebdb49d611/INSTALL#L243-L257

I installed SDL2 using commands as suggested above. I still have the blank screen window. Here is the screenshot of the output (Note: in the previous outputs we have shader missing, in this it is not there. I installed libglfw3-dev libgles2-mesa-dev as suggested in https://askubuntu.com/questions/244133/how-do-i-get-egl-and-opengles-libraries-for-ubuntu-running-on-virtualbox hoping that it will fix the problemw)

Now coming to the problem, it seems like it is somehow still using SDL 2.0.10. I removed that version by using
sudo apt-get remove libssdl2-dev
I tried to reinstall  GLVis and now I am getting the below error(partial). It seems like it is unable to find the SDL.h. Please let me know your thoughts if I am missing something.

Did you install SDL2 in ../SDL2 relative to the GLVis source directory? If not, you should add SDL_DIR=<path to the SDL2 dir> to your make command line, where <path to the SDL2 dir> should be the directory where SDL2 was installed -- SDL.h is expected to be in this location: <path to the SDL2 dir>/include/SDL2/SDL.h.

Yes, installed SDL2 in GLVis source directory. I followed the instructions as suggested in your above comment. I am checking the SDL2 directory there is no SDL.h file. Please see the below screenshot

Okay, with this directory layout, use the following command from the glvis-4.1 directory:
make SDL_DIR=./SDL2 [other build flags]

To check if SDL.h is in the right place, you can use (again, from the glvis-4.1 directory):
ls -l ./SDL2/include/SDL2/SDL.h

Yes, that fixed the installation. Now, GLVis is using SDL-2.0.12, but still getting the blank window. Please check the below screenshot of the output in the terminal.

Unfortunately I can't reproduce this, but I may very well be missing something -- I rarely use Windows and I am new to WSL.
My system is Win11 with WSL+Ubuntu and the following packages:
libfontconfig1-dev is already the newest version (2.13.1-2ubuntu3).
libglm-dev is already the newest version (<IP_ADDRESS>+ds-1).
libpng-dev is already the newest version (1.6.37-2).
libglew-dev is already the newest version (2.1.0-4).
libsdl2-dev is already the newest version (2.0.10+dfsg1-3).

I do not have the  VcXsrv X server  installed.
mfem-4.3 and glvis-4.1 are built as follows:
~/mfem-4.3$ make serial
~/mfem-4.3$ cd ../glvis-4.1/
~/glvis-4.1$ make

With that ./glvis -m ../mfem-4.3/data/escher.mesh works fine and the output is:
~/glvis-4.1$ ./glvis -m ../mfem-4.3/data/escher.mesh

       _/_/_/  _/      _/      _/  _/
    _/        _/      _/      _/        _/_/_/
   _/  _/_/  _/      _/      _/  _/  _/_/
  _/    _/  _/        _/  _/    _/      _/_/
   _/_/_/  _/_/_/_/    _/      _/  _/_/_/

Generating coloring starting with element 10 / 42
Number of colors: 3
NVD3D10: CPU cyclestats are disabled on client virtualization
NVD3D10: CPU cyclestats are disabled on client virtualization
Using GLSL 140
Subdivision factor = 16
VisualizationSceneSolution3d::PrepareFlat2() : [min,max] = [0,2]
Shading type : non-conforming (with subdivision)
VisualizationSceneSolution3d::PrepareFlat2() : [min,max] = [0,2]
GLVis window closed.
Thank you for using GLVis.

I also tried building GLVis (v4.1 and master) on Windows 10 with WSL2 and Ubuntu (20.04 LTS) using VcXsrv X server. I do see sometimes an issue with the GLVis window content becoming just a black rectangle, however, pressing r or F2 fixes the issue. I see this issue when I drag the window from the title bar to move it; I also see this when resizing the window but not all the time.
One difference I see, compared with the output you posted, is that you get "Testing if OpenGL core profile window can be created...success!" -- for me this always fails. Is it possible that you are running the WSL preview version with built-in X-server support described here: https://docs.microsoft.com/en-us/windows/wsl/tutorials/gui-apps? If that is the case, that might explain why the "OpenGL core profile window" test succeeds.
@tzanio, if you are not using VcXsrv, are you using the above mentioned WSL preview version, or are you using some other X-server app?

Sorry, I just saw this thread. @MohanElapolu: can you install and run the glxinfo tool (mesa-utils package on Ubuntu), and post its output? The OpenGL context version being reported by the glvis output is 3.1 Mesa 21.0.3, which is odd - that seems to indicate that your setup is falling back to software rendering with Mesa.
When you start VcXsrv, is the "Native opengl" option checked in the settings?

Thanks for helping @kanye-quest!
@v-dobrev, I'll have to look more carefully in my installation. It was relatively recent, but I don't recall explicitly following the instructions you linked to.

Thank you @tzanio @kanye-quest @v-dobrev for your support. It seems like the installation of VcXsrv is not very straightforward. I am figuring out if the issue is with this installation. @kanye-quest yes "Native opengl" is checked and below is the different snapshots of the output of the $glxinfo

Ah, based on that output it seems like Mesa is using the new built-in 3D accelerated X server for WSL that @v-dobrev mentioned. Since it's using direct rendering, VcXsrv will have nothing to display - the rendering is done through Direct3D 12.
I think there are two potential paths you could try:

Uninstall VcXsrv and try to run with the built-in X server - this might be preferable since Windows gives you a newer version of OpenGL
Run with the environment variable LIBGL_ALWAYS_INDIRECT=1 ./glvis ... - this should force Mesa to pass GLX rendering commands to VcXsrv, but will only support an older OpenGL version

thank you @kanye-quest, I followed your first path and the directions as given in (https://github.com/microsoft/wslg/issues/334.) I uninstalled the VcXsrv and used the following command. I am not sure this is best way but its working, will use it...:) Please post if we can do in a better way.
$GALLIUM_DRIVER==llvmpipe ./glvis -m ../mfem-4.3/data/escher.mesh
Here is the terminal output

Here is the window showing the mesh

thank you @kanye-quest @tzanio @v-dobrev for the timely responses and support


Remove install of libvirt deps temporarily.

This was done for bare metal install work. We'll need another solution,
the rpms cannot be installed from UBI, or from RHEL images if you are
not entitled.
This was working in CI because they replace the FROM, but would fail
locally, or if run in the appsre job.

ART replaces all FROM lines so I think we should switch to CentOS for the base image upstream, let ART replace it down. Will test this once we're through migration.

/lgtm


Support for blobs

First, I'd like to say a big thank you for this tool! I was trying to implement this myself when I found a link here.
I'm trying to serialize binary data into and out of an sqlite db. My end-goal is to store and retrieve image data as well as feeding a binary node dump into a table. I was thinking of using  flatbuffers to feed in and out nodes. Then have those saved to blobs with extra columns for query information to narrow in on, but I think that might be biting off more than I can code. To get me started, have you all implemented blobs in this? if so, how can I redirect the GDScript save, load, and preload to the blob objects?
Thanks for any help.

I have added BLOB support, opened a pull request, and released a nightly build containing the new changes. I've tested it and it seems to work fine, but let me know if any errors happen with binding arguments.
As for actually using BLOB data, Godot is very particular about loading and modifying data. For image data, I have found a way to compress, store, retrieve and decompress an image, so long as you know the original width+height, format, compression method, and uncompressed size.
NOTE: I am not an expert on compression/serialization through GDScript, so a lot of this method may be unnecessary. I highly recommend you study Godot's documentation and come up with a workflow through GDScript that best suits your project.
Compressing and Storing an Image
Say we use the default icon.png. It's a 64x64 image in the RGBA8 format, so each pixel uses 4 bytes of data, or one integer each.
var img_data = preload("res://icon.png")
img_data = img_data.get_data() # Texture -> Image
var width = img_data.get_width()
var height = img_data.get_height()
var format = img_data.get_format()
img_data = img_data.get_data() # Image -> PoolByteArray
var orig_size = img_data.size()

(Note: Images should be decompressed before retrieving raw data with Image.get_data(). Check Image.is_compressed() and use Image.decompress().)
We take the raw image data and compress it using FastLZ
img_data = img_data.compress(File.COMPRESSION_FASTLZ);

Now we make a table that can hold this image data. I'll also include the width, height and image format for simplicity's sake.
var db = SQLite.new()
db.open("user://images.db")
db.query("""CREATE TABLE IF NOT EXISTS images (
    id INTEGER PRIMARY KEY,
    data BLOB,
    width INTEGER,
    height INTEGER,
    format INTEGER,
    full_size INTEGER
    );""")

Insert the data and metadata into a row.
db.query_with_args("""INSERT INTO images (
    id, data, width, height, format, full_size
    ) VALUES (?, ?, ?, ?, ?, ?);""", [0, img_data, width, height, format, orig_size])

Retrieving and Decompressing Image Data
Now, we can retrieve the data by reversing our steps.
Get an image's row by its Primary Key (id in this instance)
var results = db.fetch_assoc_with_args("""
    SELECT * FROM images WHERE id=? LIMIT 1""", [0])
results = results[0] # Only one row would be returned

Pull out its data and metadata
var data = results["data"]
var width = results["width"]
var height = results["height"]
var format = results["format"]
var max_size = results["full_size"]

Decompress the image data
data = data.decompress(max_size, File.COMPRESSION_FASTLZ)

Create a new Image object and provide it with your image data
var img = Image.new()
var gen_mipmaps = false;
img.create_from_data(width, height, gen_mipmaps, format, data)
# OPTIONAL: Recompress the image
var lossy_quality = 0.8;
img.compress(
Image.COMPRESS_S3TC,
Image.COMPRESS_SOURCE_GENERIC,
lossy_quality
);

img should now contain an exact copy of your original image data.
Once again, this was a first attempt at compressing, storing, and loading image data using GDScript. PLEASE experiment with Godot's GDScript API and come up with a workflow that best suits your project. I won't be held responsible for my sloppy code.

Wow, you all are knocking it out of the park! That was way more than I was expecting. I'll give you suggestions a try. Thanks again for all your work.


Use sysfs to check interface state rather than shelling out.

This is much faster.
Also, check the operstate, which matches what the watch loop in devices.py checks.

retest this please

@plwhite OK, now it's assigned to you!

retest this please

LGTM. One trivial markup, which is as always complaining about logging.


Unknown Python Error/Bug

I dont know, The older versions worked cheap for me but this one gave me error like: 'Casting' object has no attribute 'is_ipv4_range'. Did you mean: 'is_port_range'
I type "hsf" in terminal but it gaves me this error and exits
So, please fix this i really like the framework design/modules/etc..
Thanks!

@G00Dway Hi, try doing this:
pip3 uninstall pex
pip3 install git+https://github.com/EntySec/Pex

This should help.


Create A Wishlist

As a User
I need to create a wishlist
So that I can add items to it for future reference
Details and Assumptions

There is a database to store wishlists
There is a system to assocate users and wishlists they create
There is a menu to access wishlist creation from

Acceptance Criteria
Given I have no wishlists
When I send a request to make a wishlist
Then I can see a new wishlist from my account

Given I have wishlists
When I send a request to make a wishlist
Then I can see one more wishlist in my account

I'm unsure if I specify that this is part of the "create" api call for wishlists or if that comes in a later step.
If anyone has suggestions feel free to mention them here as a comment.


use a red warning box

Use a huge red warning box that will hopefully allow readers to know that they should read the stuff inside it, and use the template, instead of blindly following the instructions.

Looks like this now:


What is the specific prompt for generating class_embeddings for depth?

Hi, thanks for your interest in our work!
This url provides the code for generating class embeddings for depth estimation. You can just run python dump_nyu_text_embeddings.py for the results.


Update cap-std dependency to 0.13.9

This fixes a build failure on s390x.

Does anyone know the exact reason why we are seeing these CI errors now? We ran across something similar and assumed it was because of something new in Rust 1.51?

Looks like just re-running CI made the failures go away.  Can this be merged now?

Merging!


No discovery without physical Echo

Used basic sketch.  WiFi connection completed, and sub page shows 3 devices.  UPnP is enabled.  Echo Dot Gen1, in the U.S.  Alexa app does not discover new devices.
Serial with debug:
Connecting to WiFi
Connecting........
Connected to Raptor17
IP address: <IP_ADDRESS>
Constructing device 1
Adding device 1
Constructing device 2
Adding device 2
Adding device 3
Espalexa Begin...
MAXDEVICES 10
Done
Got UDP!
M-SEARCH * HTTP/1.1
HOST: <IP_ADDRESS>:1900
ST: urn:schemas-upnp-org:device:InternetGatewayDevice:1
MAN: "ssdp:discover"
MX: 2
Got UDP!
NOTIFY * HTTP/1.1
HOST: <IP_ADDRESS>:1900
CACHE-CONTROL: max-age=100
LOCATION: http://<IP_ADDRESS>:49153/nasdevice.xml
NT: upnp:rootdevice
NTS: ssdp:alive
SERVER: Linux/3.2.26, UPnP/1.0, Portable SDK for UPnP devices/1.6.6
X-User-Agent: redson
HTTP Req espalexa ...
sub page:
Hello from Espalexa!
Value of device 1 (Light 1): 0
Value of device 2 (Light 2): 255
Value of device 3 (Light 3): 128
Free Heap: 220632
Uptime: 29790
Espalexa library v2.3.2 by Christian Schwinne 2019
Any help greatly appreciated.

I just cant seem to get an esp8266, Wemos D1 mini clone, to be discovered by with Alexa. I don't have an echo or spot. I have tried discovery with alexa.amazon.com, the Android Alexa app V2.2.250163.0, and a 2nd gen FireTV Stick. I've tried various combinations of the 2.2.0 and 2.3.0 library, 2.3.0 and 2.5.0-beta1 board versions, 1.8.0 and 1.8.9 versions of Arduino IDE. I've set the LwIP Variant to "v1.4 Higher Bandwidth" when it's available. I've limited all devices to a 2.4Ghz network. In the end, I'm able to reach the IP/espalexa page.
Connected to testnet
IP address: <IP_ADDRESS>
Constructing device 1
Adding device 1
Constructing device 2
Adding device 2
Adding device 3
Espalexa Begin...
MAXDEVICES 10
Done
Not-Found HTTP call:
URI: /
Body:
AlexaApiCall
HTTP Req espalexa ...
Got UDP!
NOTIFY * HTTP/1.1
HOST: <IP_ADDRESS>:1900
CACHE-CONTROL: max-age=60
LOCATION: http://<IP_ADDRESS>:5000/rootDesc.xml
SERVER: OpenWRT/OpenWrt UPnP/1.1 MiniUPnPd/2.0
NT: upnp:rootdevice
USN: uuid:e630219d-9b35-4139-8d03-c44a1a8e80bc::upnp:rootdevice
Got UDP!
M-SEARCH * HTTP/1.1
HOST: <IP_ADDRESS>:1900
MAN: "ssdp:discover"
MX: 1
ST: urn:dial-multiscreen-org:service:dial:1
USER-AGENT: Google Chrome/71.0.3578.98 Windows
Is there any known combination of library, board version, board settings, and Arduino version that work?

Has anything recently changed w/the Alexa service?
I had a working NodeMCU 1.0 using Espalexa and my own example application.  Everything was working as I was developing code to control sound on my TV.  Then I did too many things at the same time.  I slightly altered my code, upgraded my ESP Arduno board support package from 2.4.2 to 2.5.0  & told Amazon / Alexa to forget all my devices in a bid to remove the unused device names.  Now, I can only get Alexa to find the devices I have on a HUE Hub emulator running on a RPi.  None of the HUE / Espalexa devices have shown up.  I've tried many times.  I've even downgraded the ESP Arduino board support package back from 2.5.0 to 2.4.2.

@st2000 @Aircoookie I can conform the library is broken now for both ESP8266 and ESP32. Just have a test for both devices, none can be discovered. It used to work very well.

FWIW, I think (don't know for sure because I changed so many things) I was ok until I told Alexa to forget the devices on the ESP.  So it may be that the discovery is the only problem device operation would have been as expected if I didn't ask Alexa to forget the devices in the 1st place.
It may be many now using Espalexa (or ESP devices in general) will have the same problem if they tried to re-discover their devices.  So... don't "forget" your devices, just in case.  Not until this gets all worked out at any rate.
FWIW, I also have HUE Hub running on a RPi and "forgot" and "discovered" those devices w/o any problems during my problems "discovering" devices on the ESP platform.

@st2000 @eos1d3 Seems like the Alexa service changed again... I can confirm your findings, my existing devices can be controlled, but discovery no longer works. Enabling debug mode shows that most of the discovery is still done, ssdp packets are sent, description downloaded, device detail JSON requested.
So it's the final stage of the discovery that fails, probably Alexa "dislikes" something about my device details JSON.
{
	"state": {
		"on": false,
		"bri": 254,
		"hue": 0,
		"sat": 0,
		"effect": "none",
		"xy": [0.50, 0.50],
		"ct": 500,
		"alert": "none",
		"colormode": "xy",
		"mode": "homeautomation",
		"reachable": true
	},
	"type": "Extended color light",
	"name": "Stein",
	"modelid": "LCT015",
	"manufacturername": "Espalexa",
	"productname": "E4",
	"uniqueid": "DC:4F:22:65:DA:D1-2",
	"swversion": "2.4.0"
}

Tomorrow I'll try whether aligning this packet more with the hue packet helps (for example changing manufacturer name). Fortunately the Echo is still sending SSDP packets, so it's likely that this issue is patchable.

Thanks for looking into the @Aircoookie!  Is there a way I can see the conversation between my RPi Hue Hub (which appears to be discoverable) and compare that with what the Espalexa is responding with?  Sorry for the beginner question.  But maybe I can help out.

No problem, I hope to have the library back in a working state as soon as possible! It would be interesting for me to know what your RPI hub responds with when opening the URL [RPi IP]/api/test/lights/1 in your browser. Thank you!

state |
-- | --
on | false
bri | 0
hue | 0
sat | 0
effect | "none"
ct | 0
alert | "none"
reachable | true
type | "Dimmable light"
name | "front porch"
modelid | "LWB004"
manufacturername | "Philips"
uniqueid | "00:17:88:5E:D3:01-01"
swversion | "66012040"

I don't get it.  When I pull the JSON out of the ESP is says manufacturename: "Espalexa".  But if I look at the Espalexa.cpp file it appears that is should be "OpenSource".

So Philips for manufacturername it is. I wanted to avoid this in order to not make the library appear to be an official product or service endorsed by Philips, but if it is required for discovery, this is a sacrifice we need to make. I've updated the swversion field to display espalexa-2.4.2, so it is still possible to see if a given "Hue hub" is actually an ESP running Espalexa.
Did you try installing EspAsyncTCP and EspAsyncWebServer and then including #define ESPALEXA_ASYNC before #include <Espalexa.h>? I believe that you are unable to change the brightness because of #6.
I've made two new interesting findings, by the way! After this change/update all device types are discoverable again (dimmable/color temp/color/extended color), but the EspalexaDeviceType::onoff cannot be discovered any more. For now I will map the onoff type to the dimmable type internally as a quick fix. The other observation is that sometimes, Alexa says she found no new devices, but the discovery worked regardless and the devices are perfectly controllable after the discovery!
Expect the v2.4.2 release in the next hour! All device types tested and working with ESP8266/32 and Echo and Echo Dot, respectively.

Thanks! But it is strange that Amazon suddenly checks manufacturer name.
I do suggest adding all headers to simulate real Hue if there are missing ones. With this they can't detect any more.
Those products are sold to market. They can't change all firmware of Hue. So I think it is still safe if we have identical response to Amazon.

I agree with you, really strange. Just released v2.4.2, you can check whether it fixes the discovery issue for you as well!
There are still many missing headers, but I'm not adding them until absolutely required, because they are pointless and would be causing quite a large overhead. Here's a sample obtained from my hue bridge (just for one light, so this scales with more lights added):
{
	"state": {
		"on": false,
		"bri": 52,
		"hue": 4814,
		"sat": 254,
		"effect": "none",
		"xy": [
			0.5934,
			0.3819
		],
		"ct": 153,
		"alert": "none",
		"colormode": "xy",
		"mode": "homeautomation",
		"reachable": true
	},
	"swupdate": {
		"state": "noupdates",
		"lastinstall": "2018-12-23T13:44:02"
	},
	"type": "Extended color light",
	"name": "Dodekaeder",
	"modelid": "LCT015",
	"manufacturername": "Philips",
	"productname": "Hue color lamp",
	"capabilities": {
		"certified": true,
		"control": {
			"mindimlevel": 1000,
			"maxlumen": 806,
			"colorgamuttype": "C",
			"colorgamut": [
				[
					0.6915,
					0.3083
				],
				[
					0.17,
					0.7
				],
				[
					0.1532,
					0.0475
				]
			],
			"ct": {
				"min": 153,
				"max": 500
			}
		},
		"streaming": {
			"renderer": true,
			"proxy": true
		}
	},
	"config": {
		"archetype": "sultanbulb",
		"function": "mixed",
		"direction": "omnidirectional",
		"startup": {
			"mode": "safety",
			"configured": true
		}
	},
	"uniqueid": "00:17:88:01:03:7f:54:41-0b",
	"swversion": "1.46.13_r26312",
	"swconfigid": "52E3234B",
	"productid": "Philips-LCT015-1-A19ECLv5"
}

I can't test right now until next week. But will test for sure.
I do similar hacks for other projects. One crazy server even detect header
names and is case sensitive.  I mean the header names, not their values.
lol That is why I clone everything.
Let's see what will happen later. 😁
On Mon, Apr 15, 2019, 00:01 Aircoookie<EMAIL_ADDRESS>wrote:

I agree with you, really strange. Just released v2.4.2, you can check
whether it fixes the discovery issue for you as well!
There are still many missing headers, but I'm not adding them until
absolutely required, because they are pointless and would be causing quite
a large overhead. Here's a sample obtained from my hue bridge (just for one
light, so this scales with more lights added):
{
"state": {
"on": false,
"bri": 52,
"hue": 4814,
"sat": 254,
"effect": "none",
"xy": [
0.5934,
0.3819
],
"ct": 153,
"alert": "none",
"colormode": "xy",
"mode": "homeautomation",
"reachable": true
},
"swupdate": {
"state": "noupdates",
"lastinstall": "2018-12-23T13:44:02"
},
"type": "Extended color light",
"name": "Dodekaeder",
"modelid": "LCT015",
"manufacturername": "Philips",
"productname": "Hue color lamp",
"capabilities": {
"certified": true,
"control": {
"mindimlevel": 1000,
"maxlumen": 806,
"colorgamuttype": "C",
"colorgamut": [
[
0.6915,
0.3083
],
[
0.17,
0.7
],
[
0.1532,
0.0475
]
],
"ct": {
"min": 153,
"max": 500
}
},
"streaming": {
"renderer": true,
"proxy": true
}
},
"config": {
"archetype": "sultanbulb",
"function": "mixed",
"direction": "omnidirectional",
"startup": {
"mode": "safety",
"configured": true
}
},
"uniqueid": "00:17:88:01:03:7f:54:41-0b",
"swversion": "1.46.13_r26312",
"swconfigid": "52E3234B",
"productid": "Philips-LCT015-1-A19ECLv5"
}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Aircoookie/Espalexa/issues/38#issuecomment-483005788,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APlCixehSpo9P8PozmZkuaHGwiG3UrlRks5vg1DUgaJpZM4aLzme
.

@Aircoookie , all your suggestions put together work!  However (there's always a however), I find it is no longer possible to dependably transmit IR signals from within the call back function.  About 50% of the time I see some type of hex dump and / or an indication of a watch dog time out.  Setting a flag and transmitting the IR signals outside the call back functions (but within the Arduino loop function) is working cleanly.  I suspect the new "async" code is being starved of time should the call back functions do anything significant.  Thanks!

I have just tested with ESP32 many times. It did not work again until I reboot my Echo Dot Gen3.
After that, it can be discovered for the later tests.
And I am seeing more and more warnings since 2.3.
In file included from .piolibdeps/Espalexa_ID5525/src/Espalexa.h:60:0,
from /Volumes/Macintosh Data/Users/eos1d3/MCU/ESP32/PlatformIO/ESP32_Alexa/src/EspalexaFullyFeatured.ino:13:
.piolibdeps/Espalexa_ID5525/src/EspalexaDevice.h:6:15: warning: 'typedef' was ignored in this declaration
typedef class EspalexaDevice;
^
In file included from /Volumes/Macintosh Data/Users/eos1d3/MCU/ESP32/PlatformIO/ESP32_Alexa/src/EspalexaFullyFeatured.ino:13:0:
.piolibdeps/Espalexa_ID5525/src/Espalexa.h: In member function 'String Espalexa::typeString(EspalexaDeviceType)':
.piolibdeps/Espalexa_ID5525/src/Espalexa.h:102:12: warning: enumeration value 'onoff' not handled in switch [-Wswitch]
switch (t)
^
.piolibdeps/Espalexa_ID5525/src/Espalexa.h: In member function 'String Espalexa::modelidString(EspalexaDeviceType)':
.piolibdeps/Espalexa_ID5525/src/Espalexa.h:114:12: warning: enumeration value 'onoff' not handled in switch [-Wswitch]
switch (t)
^
In file included from /Volumes/Macintosh Data/Users/eos1d3/MCU/ESP32/PlatformIO/ESP32_Alexa/src/EspalexaFullyFeatured.ino:13:0:
.piolibdeps/Espalexa_ID5525/src/Espalexa.h: In destructor 'Espalexa::~Espalexa()':
.piolibdeps/Espalexa_ID5525/src/Espalexa.h:567:22: warning: deleting array '((Espalexa*)this)->Espalexa::devices'
~Espalexa(){delete devices;} //note: Espalexa is NOT meant to be destructed

In file included from .piolibdeps/Espalexa_ID5525/src/EspalexaDevice.cpp:3:0:
.piolibdeps/Espalexa_ID5525/src/EspalexaDevice.h:6:15: warning: 'typedef' was ignored in this declaration
typedef class EspalexaDevice;
^
.piolibdeps/Espalexa_ID5525/src/EspalexaDevice.cpp: In member function 'uint32_t EspalexaDevice::getRGB()':
.piolibdeps/Espalexa_ID5525/src/EspalexaDevice.cpp:114:9: warning: unused variable 'r' [-Wunused-variable]
float r, g, b;
^
.piolibdeps/Espalexa_ID5525/src/EspalexaDevice.cpp:114:12: warning: unused variable 'g' [-Wunused-variable]
float r, g, b;
^
.piolibdeps/Espalexa_ID5525/src/EspalexaDevice.cpp:114:15: warning: unused variable 'b' [-Wunused-variable]
float r, g, b;

.piolibdeps/Espalexa_ID5525/src/EspalexaDevice.cpp:219:42: warning: 'rgb[2]' may be used uninitialized in this function [-Wmaybe-uninitialized]
_rgb = ((rgb[0] << 16) | (rgb[1] << 8) | (rgb[2]));
^
.piolibdeps/Espalexa_ID5525/src/EspalexaDevice.cpp:219:36: warning: 'rgb[1]' may be used uninitialized in this function [-Wmaybe-uninitialized]
_rgb = ((rgb[0] << 16) | (rgb[1] << 8) | (rgb[2]));
^
.piolibdeps/Espalexa_ID5525/src/EspalexaDevice.cpp:219:19: warning: 'rgb[0]' may be used uninitialized in this function [-Wmaybe-uninitialized]
_rgb = ((rgb[0] << 16) | (rgb[1] << 8) | (rgb[2]));
^


[Bug]: Preview mode has a close sidebar button that doesn't do anything

Is there an existing issue for this?

[X] I have searched the existing issues

Description
When a user is in preview mode, the sidebar (aka the Explorer) is hidden by default, but the hamburger icon on the navbar is still visible.
The hamburger icon in this context has no functionality, and should not be visible to a user. (Screenshot below).

Expected behavior: Hide the Hamburger icon (close sidebar button) when in preview mode.
Steps To Reproduce

Open any app on Appsmith Editor
Switch to preview mode
Try clicking on the Hamburger menu icon, it's the left-most icon on the navbar
The button doesn't do anything

Public Sample App
No response
Version
Cloud

Duplicate of https://github.com/appsmithorg/appsmith/issues/13869


Run multiple processes on same port

Hi there,
I'm trying to run Ratchet on the same port on multiple processes on the same server. However I'm getting PHP Fatal error:  Uncaught RuntimeException: Failed to listen on "tcp://<IP_ADDRESS>:8443": Address already in use in /opt/vendor/react/socket/src/TcpServer.php:164
In ReactPHP itself I would solve this doing:
new SocketServer('<IP_ADDRESS>:8080', $this->loop, ['so_reuseport' => true ]); to reuse the port.
How would I have to adjust the following code to make this happen?
$ratchetApp = new \Ratchet\App($config['app']['ws']['host'], 8443, '<IP_ADDRESS>', $loop);
Would love to hear!
Thanks

I suspect that I would have to add 'so_reuseport' to lines 76 and 90 of https://github.com/ratchetphp/Ratchet/blob/master/src/Ratchet/App.php
Or is there a different way?

The App class was made as a quick way to accommodate 90% (guesstimate %) of people's requests to reduce boiler plate. Unfortunately, you have a requirement that falls outside the "norm". At some point we may reevaluate the App class but it was meant to either cover basic needs or be a proof of concept for people.
I would suggest creating your own version of App or setup your own server without app like in the tutorial.
You are on the right track with using the so_reuseport flag in React's Socket though!


.macos: disable auto-playing videos

See https://gist.github.com/zwaldowski/0836e237d58eee82053914f8f2fd45ea and http://www.kirkville.com/stop-auto-play-videos-from-annoying-you-in-your-browser/

I don’t mind auto-playing videos on most sites that I visit, so I’ll merge this in commented-out form. Thanks!


Cast $perPage to int value

Meilisearch will not accept a string here as I found out with my app :).  If you pass a numeric string value to the algolia driver, or just to laravel's default paginator, they both work.  This will keep this behavior consistent when using this driver.

Hi @jwohlfert23
Nice catch !
Could you just run a composer lint:fix I think a space is missing between ) and $.

Appreciate the quick response! Just made the change. Looks like checks passed.


Addig r_vertex plot. LSTPerformanceWeb not updated yet.

added rvertex plot.
LSTPerformanceWeb has not been updated yet, so the plot not visible in html yet. (see https://github.com/SegmentLinking/TrackLooper/issues/277)

as mentioned in the chat
https://github.com/cms-sw/cmssw/blob/master/Validation/RecoTrack/python/TrackingParticleSelectionsForEfficiency_cff.py#L27
MTV has an upper cut on vertex_xy at 60 cm for the plots vs vtx position.
We should perhaps keep it as well.  (even if e.g. T5 reconstruction is impossible already with 40 cm in the barrel)

@sgnoohc Could you please comment on the status of this PR? Is it meant to be merged? If so, is it complete?

@sgnoohc Could you please comment on the status of this PR? Is it meant to be merged? If so, is it complete?

ping

I believe I meant to.
I believe I failed to assign a reviewer.
It's rather a minimal change, so I think the review would be simiple.
Philip
--
Dr. P. Chang, Asst. Prof., University of Florida
@.***

From: Slava Krutelyov @.>
Sent: Friday, October 6, 2023 12:34 PM
To: SegmentLinking/TrackLooper @.>
Cc: Chang, Philip @.>; Mention @.>
Subject: Re: [SegmentLinking/TrackLooper] Addig r_vertex plot. LSTPerformanceWeb not updated yet. (PR #276)
[External Email]
@sgnoohchttps://github.com/sgnoohc Could you please comment on the status of this PR? Is it meant to be merged? If so, is it complete?
ping
—
Reply to this email directly, view it on GitHubhttps://github.com/SegmentLinking/TrackLooper/pull/276#issuecomment-1751074723, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADEOZAFGJ3MYKZ22LGTJXS3X6AXKHAVCNFSM6AAAAAAXDDLPPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRGA3TINZSGM.
You are receiving this because you were mentioned.Message ID: @.***>


Going through local SSO when accessing zulip base URL for unauthenticated User

I hope I have not overlooked some info that explains this:
We have set up Zulip to use LDAP to our AD and the local REMOTE_USER SSO. Both work quite well, if a user logs in with his AD credentials and does not exist, a proper account gets created. Also, going to zulip.ourdomain.com/accounts/login/sso will properly authenticate and redirect the user - nice!
However, I have not seen any way to make a Zulip user without a active session be redirected to /accounts/login/sso instead of just /accounts/login and its E-Mail/Password quere and the Register Link tat leads to a non functional page including 'Sign up with Google'.
So, can this be done? And additionally, is there a way to automatically create a user from the LDAP information after he has signed in via SSO? Right now we get a missing user error in that case.
In any case, thanks for the tremendous work, this is the first system that allows such easy SSO integration at all.

Hi @melbel,
This block in zproject/settings.py is supposed to solve this problem for you:
if (len(AUTHENTICATION_BACKENDS) == 1 and
    AUTHENTICATION_BACKENDS[0] == "zproject.backends.ZulipRemoteUserBackend"):
    HOME_NOT_LOGGED_IN = "/accounts/login/sso"
    ONLY_SSO = True
else:
    HOME_NOT_LOGGED_IN = '/login'
    ONLY_SSO = False

I imagine the problem here is that you're also using zproject.backends.ZulipLDAPAuthBackend?  The hackish solution to that today is that later on in that file, zproject.backends.ZulipLDAPUserPopulator gets added to the AUTHENTICATION_BACKENDS if you've set POPULATE_PROFILE_VIA_LDAP in your /etc/zulip/settings.py file (whose source is zproject/local_settings_template.py`).
Can you try switching to just using LDAP for user population and see if that helps?  If it works, I'd definitely love advice on how to make the documentation clearer here...
(As a sidenote I think the "Sign up with Google" showing up issue is fixed in master via 15dae103832f5fcefdde52d3db50e56b7a4f5056).

Thanks a lot. I have taken out the POPULATE_PROFILE_VIA_LDAP and put a
POPULATE_PROFILE_VIA_LDAP = True
in. Now I do get the
You look familiar - Sign in with SSO
welcome screen and no Register Link - great! Logging in a unregistered user populates it properly from the LDAP information - great!
I am seeing some internal server errors when I'm not already authenticated and/or simply logging out of Zulip in the redirect chain at /accounts/login/sso/ I haven't encountered before. They go away with a simple reload but I'll have to dig a bit deeper here before I can say more.
With respect to documentation, from the experience finding all the necessary settings, I would have liked some more examples with respect to general LDAP setups and Acctive Directory that I had to find in the general django discussions.
Here I had to set:

OK, thanks for the writeup!  If you (or anyone else reading this) have time, I'd definitely appreciate a quick PR to add more documentation (either in zproject/local_settings_template.py or a new file that we can link to from there) of how to set LDAP up with active directory, even if it's just an addition of example AD configuration or a link to the right page of the Django LDAP documentation for Active Directory.  I'm pretty sure a lot of the users of the LDAP integration are using AD, so there's definitely value in making this easier for people who want to integrate that...
I don't have access to an AD environment, and so while I could try to write documentation for this based on your description, I think the quality would be a lot better if it were written by someone who has actually set this up with AD.

Of course. Is it ok with you if I open up another issue specifically for the LDAP/AD documentation?
I'd like to see if others could verify that what I came up with for our setup here really makes sense for others too. I can't imagine that we are the only ones using Zulip against a LDAP enabled AD.
Also, should we perhaps document the POPULATE_PROFILE_VIA_LDAP together with the other LDAP settings or is our case so special that it would more likely confuse people?

Yeah definitely reasonable to open another issue for the documentation issues!
Looking more closely, I think we actually don't need to document POPULATE_PROFILE_VIA_LDAP, since it's actually set as POPULATE_PROFILE_VIA_LDAP = bool(AUTH_LDAP_SERVER_URI) earlier in zproject/settings.py ; so I think the model is actually that if you configure the LDAP integration but don't enable zproject.backends.ZulipLDAPAuthBackend then it just uses LDAP to populate names; we could definitely make that more clear in the docs...

In any case, thanks for the tremendous work, this is the first system that allows such easy SSO integration at all.

Glad to hear! Also: We're hosting a livechat "office hour" at the open Zulip realm https://zulip.tabbott.net on Monday, August 15th, 1700 UTC. Please swing by if you want to talk about any of your Zulip needs, concerns, or ideas in realtime! You're also welcome to come to zulip.tabbott.net anytime.


Toggling diagnostics resets my customization

When I <Plug>(toggle-lsp-diag) they turn off fine, but when I do that again the diagnostics lose any of the settings I have assigned. If I do <Plug>(toggle-lsp-diag-default) my customization is back again. This is unexpected behavior. I would like to toggle on/off without it changing any settings. Pressing two keys to turn them back on [properly] is also unacceptable.

If I understand your problem correctly this behavior is documented in the README:

You can toggle ALL settings, at once, to either on or off by using the appropriate mapping or command. The toggle-lsp-diag >
mapping toggles ALL settings either on or off. It does NOT toggle back to a previous state.  To get the settings back to the
default you can use the toggle-lsp-diag-default mapping or the :ToggleDiagDefault command.

You shouldn't  need to hit two different keys to go back to your settings. Just use :ToggleDiagOff for turning them off and :ToggleDiagDefault for toggling them back on. There is no need to use :ToggleDiagOn ever in your case.
The names are odd, but that's for historical reasons.

btw, sorry for such a long time to answer your bug report. Real-life got in the way.

I just realized what you were trying to say in your earlier comment. I'll see what I can do about the toggling.

I believe this issue is fixed.


Consider using the "friendly" pygments style as the default highlighting style

🐞 Problem
The current syntax highlighting is out of sync with the rest of our theme. It's colors are pallid and not vibrant.
A common theme is the friendly style, by Pygments. This theme is more shiny and its colors better our corporate theme (from my point of view).
Of course, this is open to discussion. There are plenty of options, see available Pygment themes.
Sphinx provides the following option for setting a default theme:
pygments_style: str

However, it does not seem to work. Maybe, our template CSS takes priority over this option.
Ideally, we should override this by adding the CSS file we agree from this repo. License is UNLICENSE.txt. Thus, corporte usage is accepted. We can always include a small comment at the top of the style file.

As a side note: we need both a light and dark highlighting theme.

I guess we could go with monokai in that case for the dark theme. I think it is one of the most popular ones out there.

I like monokai 😄 so works for me!


Identify Pushed H2-Flows

In previous versions, one could identify pushed flows by checking for the custom x-mitmproxy-pushed header
However, in https://github.com/mitmproxy/mitmproxy/commit/1c4e1e049cbe5357b1f0191c616ea92e09c5e36b it was removed. Is there a way to classify in a script whether or not a flow has been pushed by the server?

The reasoning behind removing this header was, that we wanted to make as little changes as possible to the data sent through the proxy. Adding a new header just for identifying pushed streams seemed to big of a change to us.
I think the best way it to add a new hook when we receive a pushed stream on the proxy, before we forward the pushed stream to the client.
A different approach would be to create a new flag for a flow or request, which indicates the same property.
Feel free to propose new ideas or even submit a PR! 😄

This seems to be a relatively important flow property we should indicate somehow. I see a couple of ways to accomplish that:

HTTP Header as before.
Like 1, but remove the header right before sending the flow to the client and then re-add it.
Subclass HTTPFlow to HTTP2Flow, which has an added pushed attribute. Do we have other HTTP2-specific stuff that would justify this?
Add unstructured "metadata" attribute to flows. I personally dislike that one.

Irrespective of that, having a separate hook that gets triggered once we receive a push promise sounds smart. What's the event order right now? I assume they all get triggered once we receive the actual request from the client?

As mentioned I don't like 1. and 2.
About 3.: Right now I can't think of anything else that might be interesting to put into a HTTP2Flow.
About 4.: Yeah - same here. But wasn't this on the table a while ago during the refactoring of scripts/addons?

fixed by #1686


README implies Cloud Functions support Dart

The README says the functions can be deployed to Cloud Functions? As far as I know, that's no possible, correct?

Not yet, no. Still a work in progress, but I can edit for clarity.

@steren Works great with Cloud Run! (See docs  :)


Update dependencies

fluxcd/pkg/apis/meta v0.14.1
fluxcd/pkg/runtime v0.16.1

Please see https://github.com/fluxcd/kustomize-controller/pull/665 we need to pin the go-yaml in both modules, also bump all GH official actions to v3 in a separate commit.


renovatebot(deps): update bouncycastle to v1.62

This PR contains the following updates:

Package
Update
Change

org.bouncycastle:bcpkix-jdk15on (source)
minor
1.61 -> 1.62

org.bouncycastle:bcprov-jdk15on (source)
minor
1.61 -> 1.62

Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR is stale, or if you modify the PR title to begin with "rebase!".
:no_bell: Ignore: Close this PR and you won't be reminded about these updates again.

[ ] If you want to rebase/retry this PR, check this box

Available now for Enterprise: Renovate Pro with real-time webhook handling and priority job queue.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.null 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.