api example run failed

Describe the bug
api example run failed with compile error
To Reproduce
Steps to reproduce the behavior:

Go to examples/api
npm i
tauri dev

Expected behavior
Compiling api v0.1.0 (/home/sovlookup/桌面/tauri-dev/examples/api/src-tauri)
error[E0432]: unresolved imports `tauri::CustomMenuItem`, `tauri::Menu`, `tauri::MenuItem`
 --> examples/api/src-tauri/src/menu.rs:5:13
  |
5 | use tauri::{CustomMenuItem, Menu, MenuItem};
  |             ^^^^^^^^^^^^^^  ^^^^  ^^^^^^^^ no `MenuItem` in the root
  |             |               |
  |             |               no `Menu` in the root
  |             no `CustomMenuItem` in the root

error[E0432]: unresolved imports `tauri::CustomMenuItem`, `tauri::SystemTrayMenuItem`
  --> examples/api/src-tauri/src/main.rs:14:13
   |
14 | use tauri::{CustomMenuItem, Manager, SystemTrayMenuItem, WindowBuilder, WindowUrl};
   |             ^^^^^^^^^^^^^^           ^^^^^^^^^^^^^^^^^^ no `SystemTrayMenuItem` in the root
   |             |
   |             no `CustomMenuItem` in the root

error[E0599]: no method named `menu` found for struct `tauri::Builder<std::string::String, std::string::String, std::string::String, std::string::String, _, Wry>` in the current scope
  --> examples/api/src-tauri/src/main.rs:36:6
   |
36 |     .menu(menu::get_menu())
   |      ^^^^ method not found in `tauri::Builder<std::string::String, std::string::String, std::string::String, std::string::String, _, Wry>`

warning: unused import: `Manager`
  --> examples/api/src-tauri/src/main.rs:14:29
   |
14 | use tauri::{CustomMenuItem, Manager, SystemTrayMenuItem, WindowBuilder, WindowUrl};
   |                             ^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: unused import: `WindowBuilder`
  --> examples/api/src-tauri/src/main.rs:14:58
   |
14 | use tauri::{CustomMenuItem, Manager, SystemTrayMenuItem, WindowBuilder, WindowUrl};
   |                                                          ^^^^^^^^^^^^^

error: aborting due to 3 previous errors; 2 warnings emitted

Some errors have detailed explanations: E0432, E0599.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `api`

To learn more, run the command again with --verbose.

Platform and Versions (please complete the following information):

OS: Linux
Node: v16.1
<EMAIL_ADDRESS>Yarn:1.22.10
Rustc:rustc 1.52.1 (9bc8c42bb 2021-05-09)

Did you rebuild the tooling/cli.js package? Also check if there's any tooling/cli.js/bin/tauri-cli binary in there, if there is, delete it. I think your CLI is outdated so it removed the menu feature on examples/api/src-tauri/Cargo.toml.

thanks, after rebuilding tooling/cli.js it passed the compilation.
But it's all blank, what's wrong with it ...

Actually when I run npm run dev, svelte runs blank web page too.

You also need to build tooling/api

How exactly does one rebuild the packages mentioned in this thread?

@holmesadrianh If you're in the project root you can run .scripts/setup.sh which should build all you need, but manually you can do:

cd tooling/api && yarn && yarn build
cd tooling/cli/node && yarn && yarn build

Thanks for the info!


Bug fixes on fix_extract_dataframe and fix_clean_tweets_dataframe

Changed names of fix_clean_tweets_dataframe and fix_extract_dataframe to clean_tweets_dataframa and extract_dataframe.
Fixed multiple bugs inside extract_dataframe and clean_tweets_dataframe.
Generated the required dataframe and csv fiie.

Changes made have been reviewed and confirmed.


Error when using the reload dev feature in odoo 12.0

Maybe the reload dev feature is not compatible with debugpy ? Im using odoo in a docker.
2022-12-23 10:16:38,315 1 INFO ? odoo.service.server: Initiating server reload
2022-12-23 10:16:38,474 1 DEBUG ? odoo.service.server: current thread: <_MainThread(MainThread, started<PHONE_NUMBER>91296)>
2022-12-23 10:16:38,476 1 DEBUG ? odoo.service.server: process <_MainThread(MainThread, started<PHONE_NUMBER>91296)> (False)
2022-12-23 10:16:38,477 1 DEBUG ? odoo.service.server: process <InotifyBuffer(Thread-8, started daemon<PHONE_NUMBER>15872)> (True)
2022-12-23 10:16:38,478 1 DEBUG ? odoo.service.server: process <InotifyEmitter(Thread-5, started daemon<PHONE_NUMBER>07616)> (True)
2022-12-23 10:16:38,478 1 DEBUG ? odoo.service.server: process <InotifyBuffer(Thread-9, started daemon<PHONE_NUMBER>14912)> (True)
2022-12-23 10:16:38,478 1 DEBUG ? odoo.service.server: process <InotifyEmitter(Thread-2, started daemon<PHONE_NUMBER>22208)> (True)
2022-12-23 10:16:38,478 1 DEBUG ? odoo.service.server: process <InotifyBuffer(Thread-10, started daemon<PHONE_NUMBER>29504)> (True)
2022-12-23 10:16:38,478 1 DEBUG ? odoo.service.server: process <InotifyEmitter(Thread-4, started daemon<PHONE_NUMBER>36800)> (True)
2022-12-23 10:16:38,478 1 DEBUG ? odoo.service.server: process <InotifyBuffer(Thread-11, started daemon<PHONE_NUMBER>44096)> (True)
2022-12-23 10:16:38,479 1 DEBUG ? odoo.service.server: process <InotifyEmitter(Thread-7, started daemon<PHONE_NUMBER>51392)> (True)
2022-12-23 10:16:38,479 1 DEBUG ? odoo.service.server: process <InotifyBuffer(Thread-12, started daemon<PHONE_NUMBER>58688)> (True)
2022-12-23 10:16:38,479 1 DEBUG ? odoo.service.server: process <InotifyEmitter(Thread-3, started daemon<PHONE_NUMBER>65984)> (True)
2022-12-23 10:16:38,479 1 DEBUG ? odoo.service.server: process <InotifyBuffer(Thread-13, started daemon<PHONE_NUMBER>73280)> (True)
2022-12-23 10:16:38,479 1 DEBUG ? odoo.service.server: process <InotifyEmitter(Thread-6, started daemon<PHONE_NUMBER>80576)> (True)
2022-12-23 10:16:38,479 1 DEBUG ? odoo.service.server: process <InotifyObserver(Thread-1, started daemon<PHONE_NUMBER>87872)> (True)
2022-12-23 10:16:38,479 1 DEBUG ? odoo.service.server: process <Thread(odoo.service.httpd, stopped daemon<PHONE_NUMBER>95168)> (True)
2022-12-23 10:16:38,479 1 DEBUG ? odoo.service.server: process <Thread(odoo.service.cron.cron0, started daemon<PHONE_NUMBER>02464)> (True)
2022-12-23 10:16:38,480 1 DEBUG ? odoo.service.server: process <Thread(odoo.service.cron.cron1, started daemon<PHONE_NUMBER>09760)> (True)
2022-12-23 10:16:38,480 1 DEBUG ? odoo.service.server: process <Thread(odoo.addons.bus.models.bus.Bus, started daemon<PHONE_NUMBER>44288)> (True)
2022-12-23 10:16:38,480 1 DEBUG ? odoo.service.server: process <Thread(openerp.longpolling.request.140452257494784, started daemon<PHONE_NUMBER>94784)> (True)
2022-12-23 10:16:38,480 1 DEBUG ? odoo.service.server: --
0.07s - Could not connect to <IP_ADDRESS>: 33017
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm.py", line 493, in start_client
    s.connect((host, port))
ConnectionRefusedError: [Errno 111] Connection refused
Could not connect to <IP_ADDRESS>: 33017
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 3473, in main
    debugger.connect(host, port)
  File "/usr/local/lib/python3.7/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 1418, in connect
    s = start_client(host, port)
  File "/usr/local/lib/python3.7/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm.py", line 493, in start_client
    s.connect((host, port))
ConnectionRefusedError: [Errno 111] Connection refused

Hello, the problem you are facing is a Connection error, your VScode cannot resolve your localhost or port

Could not connect to <IP_ADDRESS>: 33017

with Docker you must expose the port from container to host. Look this article
https://www.cloudbees.com/blog/docker-expose-port-what-it-means-and-what-it-doesnt-mean

I launched my odoo with a debugpy --listen <IP_ADDRESS>:5678 /usr/bin/odoo --dev all. Everything works perfectly, debug and xml dev feature until I use the reload dev feature, it try to connect to <IP_ADDRESS>: XXXXX with XXXXX a random port. This time it was 33017, but everytime it's a different one. I need to open all my ports ?

The app i create does not need to launch debugpy on CLI. The idea is installing the app, activate, when contacts are loaded (usually by default on odoo) open debugpy listening on port 5678 automatically.
Anyway, you also get some inotify buffer error, which means you must increase the value of
fs.inotify.max_user_watches=524288
in /etc/sysctl.conf
But this conflict with port behavior change, maybe, the inotify crash and restart odoo (in the first post you can see odoo daemon stop and start at some point) without debugpy. Try enlarging the buffer value

I just use the CLI to debug faster, I'll use your app when the debug will be done.
I'm in debian-buster-slim btw.
I don't have a /etc/sysctl.conf file, so I tried to create one with fs.inotify.max_user_watches=524288 parameter. Then I restart my container and tried the same process : using the dev reload feature. I basically got the same error, maybe it doesn't get my parameter.
autoreload: python code updated, autoreload activated
Initiating server reload
 current thread: <_MainThread(MainThread, started<PHONE_NUMBER>18240)>
 process <_MainThread(MainThread, started<PHONE_NUMBER>18240)> (False)
 process <WriterThread(pydevd.Writer, started daemon<PHONE_NUMBER>18784)> (True)
 process <InotifyEmitter(Thread-11, started daemon<PHONE_NUMBER>44736)> (True)
 process <InotifyBuffer(Thread-17, started daemon<PHONE_NUMBER>99584)> (True)
 process <InotifyEmitter(Thread-12, started daemon<PHONE_NUMBER>92288)> (True)
 process <InotifyEmitter(Thread-8, started daemon<PHONE_NUMBER>70400)> (True)
 process <InotifyBuffer(Thread-16, started daemon<PHONE_NUMBER>84992)> (True)
 process <_TimeoutThread(Thread-5, started daemon<PHONE_NUMBER>40672)> (True)
 process <InotifyBuffer(Thread-15, started daemon<PHONE_NUMBER>77696)> (True)
 process <PyDBCommandThread(pydevd.CommandThread, started daemon<PHONE_NUMBER>33376)> (True)
 process <ReaderThread(pydevd.Reader, started daemon<PHONE_NUMBER>26080)> (True)
 process <Thread(odoo.service.cron.cron1, started daemon<PHONE_NUMBER>31264)> (True)
 process <Thread(odoo.service.cron.cron0, started daemon<PHONE_NUMBER>23968)> (True)
 process <InotifyObserver(Thread-7, started daemon<PHONE_NUMBER>09376)> (True)
 process <InotifyBuffer(Thread-18, started daemon<PHONE_NUMBER>52032)> (True)
 process <InotifyEmitter(Thread-13, started daemon<PHONE_NUMBER>02080)> (True)
 process <InotifyEmitter(Thread-10, started daemon<PHONE_NUMBER>73920)> (True)
 process <InotifyBuffer(Thread-14, started daemon<PHONE_NUMBER>32832)> (True)
 process <CheckAliveThread(pydevd.CheckAliveThread, started<PHONE_NUMBER>25536)> (False)
 join and sleep
 process <InotifyBuffer(Thread-19, started daemon<PHONE_NUMBER>66624)> (True)
 process <InotifyEmitter(Thread-9, started daemon<PHONE_NUMBER>59328)> (True)
 --
Could not connect to <IP_ADDRESS>: 44767
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm.py", line 507, in start_client
    s.connect((host, port))
ConnectionRefusedError: [Errno 111] Connection refused
Could not connect to <IP_ADDRESS>: 44767
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 3325, in main
    debugger.connect(host, port)
  File "/usr/local/lib/python3.5/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 1380, in connect
    s = start_client(host, port)
  File "/usr/local/lib/python3.5/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm.py", line 507, in start_client
    s.connect((host, port))
ConnectionRefusedError: [Errno 111] Connection refused

Try force with CLI
sudo sysctl fs.inotify.max_user_watches=600000

root@e345c986b1ba:/# sysctl
bash: sysctl: command not found

I installed it with apt-get update && apt-get install procps.
Then I got :
root@e345c986b1ba:/# sysctl fs.inotify.max_user_watches=600000
sysctl: setting key "fs.inotify.max_user_watches": Read-only file system
root@e345c986b1ba:/# sysctl fs.inotify.max_user_watches
fs.inotify.max_user_watches = 524288

Ok the 500 thousand i think is enough. I hope odoo is not in worke's mode, so in /etc/odoo/odoo.conf or whatever is the conf, workers = 0, is it?

Here's my odoo conf file :
[options]
db_host = db
db_user = odoo
db_password = odoo
admin_passwd = odoo
addons_path = /mnt/extra-addons/asr,/mnt/extra-addons/oca,/mnt/extra-addons/temp,/mnt/extra-addons/appstore
log_db = False
log_db_level = warning
log_level  = debug
logfile = None

I added workers = 0 in it, but it doesn't change the error.
Here the log of a complete test :
docker_odoo-db-1       |
docker_odoo-db-1       | PostgreSQL Database directory appears to contain a database; Skipping initialization
docker_odoo-db-1       |
docker_odoo-db-1       | 2022-12-27 10:26:39.726 UTC [1] LOG:  starting PostgreSQL 12.2 on x86_64-pc-linux-musl, compiled by gcc (Alpine 9.2.0) 9.2.0, 64-bit
docker_odoo-db-1       | 2022-12-27 10:26:39.726 UTC [1] LOG:  listening on IPv4 address "<IP_ADDRESS>", port 5432
docker_odoo-db-1       | 2022-12-27 10:26:39.726 UTC [1] LOG:  listening on IPv6 address "::", port 5432
docker_odoo-db-1       | 2022-12-27 10:26:39.732 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
docker_odoo-db-1       | 2022-12-27 10:26:39.751 UTC [21] LOG:  database system was shut down at 2022-12-27 10:26:34 UTC
docker_odoo-db-1       | 2022-12-27 10:26:39.762 UTC [1] LOG:  database system is ready to accept connections
docker_odoo-web-1      | 2022-12-27 10:26:41,953 1 DEBUG ? odoo.netsvc: logger level set: "odoo.http.rpc.request:INFO"
docker_odoo-web-1      | 2022-12-27 10:26:41,955 1 DEBUG ? odoo.netsvc: logger level set: "odoo.http.rpc.response:INFO"
docker_odoo-web-1      | 2022-12-27 10:26:41,955 1 DEBUG ? odoo.netsvc: logger level set: ":INFO"
docker_odoo-web-1      | 2022-12-27 10:26:41,955 1 DEBUG ? odoo.netsvc: logger level set: "odoo:DEBUG"
docker_odoo-web-1      | 2022-12-27 10:26:41,955 1 DEBUG ? odoo.netsvc: logger level set: "odoo.sql_db:INFO"
docker_odoo-web-1      | 2022-12-27 10:26:41,955 1 DEBUG ? odoo.netsvc: logger level set: ":INFO"
docker_odoo-web-1      | 2022-12-27 10:26:41,956 1 INFO ? odoo: Odoo version 12.0-20210921
docker_odoo-web-1      | 2022-12-27 10:26:41,956 1 INFO ? odoo: Using configuration file at /etc/odoo/odoo.conf
docker_odoo-web-1      | 2022-12-27 10:26:41,956 1 INFO ? odoo: addons paths: ['/var/lib/odoo/.local/share/Odoo/addons/12.0', '/mnt/extra-addons/asr', '/mnt/extra-addons/oca', '/mnt/extra-addons/temp', '/mnt/extra-addons/appstore', '/usr/lib/python3/dist-packages/odoo/addons']
docker_odoo-web-1      | 2022-12-27 10:26:41,957 1 INFO ? odoo: database: odoo@db:default
docker_odoo-web-1      | 2022-12-27 10:26:42,120 1 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf
docker_odoo-web-1      | 2022-12-27 10:26:42,213 1 DEBUG ? odoo.tools.translate: translation went wrong for "'Selecting the "Warning" option will notify user with the message, Selecting "Blocking Message" will throw an exception with the message and block the flow. The Message has to be written in the next field.'", skipped
docker_odoo-web-1      | 2022-12-27 10:26:42,268 1 INFO ? odoo.service.server: Watching addons folder /var/lib/odoo/.local/share/Odoo/addons/12.0
docker_odoo-web-1      | 2022-12-27 10:26:42,269 1 INFO ? odoo.service.server: Watching addons folder /mnt/extra-addons/asr
docker_odoo-web-1      | 2022-12-27 10:26:42,269 1 INFO ? odoo.service.server: Watching addons folder /mnt/extra-addons/oca
docker_odoo-web-1      | 2022-12-27 10:26:42,269 1 INFO ? odoo.service.server: Watching addons folder /mnt/extra-addons/temp
docker_odoo-web-1      | 2022-12-27 10:26:42,270 1 INFO ? odoo.service.server: Watching addons folder /mnt/extra-addons/appstore
docker_odoo-web-1      | 2022-12-27 10:26:42,270 1 INFO ? odoo.service.server: Watching addons folder /usr/lib/python3/dist-packages/odoo/addons
docker_odoo-web-1      | 2022-12-27 10:26:42,605 1 INFO ? odoo.service.server: AutoReload watcher running with watchdog
docker_odoo-web-1      | 2022-12-27 10:26:42,606 1 DEBUG ? odoo.service.server: Setting signal handlers
docker_odoo-web-1      | 2022-12-27 10:26:42,611 1 INFO ? odoo.service.server: HTTP service (werkzeug) running on ab199272f0dc:8069
docker_odoo-web-1      | 2022-12-27 10:26:42,612 1 DEBUG ? odoo.service.server: cron0 started!
docker_odoo-web-1      | 2022-12-27 10:26:42,613 1 DEBUG ? odoo.service.server: cron1 started!
docker_odoo-pgadmin-1  | [2022-12-27 10:26:43 +0000] [1] [INFO] Starting gunicorn 20.1.0
docker_odoo-pgadmin-1  | [2022-12-27 10:26:43 +0000] [1] [INFO] Listening at: http://[::]:5050 (1)
docker_odoo-pgadmin-1  | [2022-12-27 10:26:43 +0000] [1] [INFO] Using worker: gthread
docker_odoo-pgadmin-1  | [2022-12-27 10:26:43 +0000] [80] [INFO] Booting worker with pid: 80
docker_odoo-web-1      | 2022-12-27 10:26:47,243 1 INFO ? odoo.service.server: autoreload: python code updated, autoreload activated
docker_odoo-web-1      | 2022-12-27 10:26:47,244 1 INFO ? odoo.service.server: Initiating server reload
docker_odoo-web-1      | 2022-12-27 10:26:47,618 1 DEBUG ? odoo.service.server: current thread: <_MainThread(MainThread, started<PHONE_NUMBER>79808)>
docker_odoo-web-1      | 2022-12-27 10:26:47,619 1 DEBUG ? odoo.service.server: process <_MainThread(MainThread, started<PHONE_NUMBER>79808)> (False)
docker_odoo-web-1      | 2022-12-27 10:26:47,620 1 DEBUG ? odoo.service.server: process <WriterThread(pydevd.Writer, started daemon<PHONE_NUMBER>80352)> (True)
docker_odoo-web-1      | 2022-12-27 10:26:47,620 1 DEBUG ? odoo.service.server: process <ReaderThread(pydevd.Reader, started daemon<PHONE_NUMBER>87648)> (True)
docker_odoo-web-1      | 2022-12-27 10:26:47,620 1 DEBUG ? odoo.service.server: process <Thread(odoo.service.cron.cron0, started daemon<PHONE_NUMBER>76256)> (True)
docker_odoo-web-1      | 2022-12-27 10:26:47,620 1 DEBUG ? odoo.service.server: process <InotifyObserver(Thread-7, started daemon<PHONE_NUMBER>68960)> (True)
docker_odoo-web-1      | 2022-12-27 10:26:47,620 1 DEBUG ? odoo.service.server: process <InotifyEmitter(Thread-9, started daemon<PHONE_NUMBER>61664)> (True)
docker_odoo-web-1      | 2022-12-27 10:26:47,620 1 DEBUG ? odoo.service.server: process <PyDBCommandThread(pydevd.CommandThread, started daemon<PHONE_NUMBER>94944)> (True)
docker_odoo-web-1      | 2022-12-27 10:26:47,620 1 DEBUG ? odoo.service.server: process <Thread(odoo.service.cron.cron1, started daemon<PHONE_NUMBER>28704)> (True)
docker_odoo-web-1      | 2022-12-27 10:26:47,621 1 DEBUG ? odoo.service.server: process <InotifyEmitter(Thread-8, started daemon<PHONE_NUMBER>39776)> (True)
docker_odoo-web-1      | 2022-12-27 10:26:47,621 1 DEBUG ? odoo.service.server: process <InotifyEmitter(Thread-12, started daemon<PHONE_NUMBER>32480)> (True)
docker_odoo-web-1      | 2022-12-27 10:26:47,621 1 DEBUG ? odoo.service.server: process <InotifyEmitter(Thread-13, started daemon<PHONE_NUMBER>03296)> (True)
docker_odoo-web-1      | 2022-12-27 10:26:47,621 1 DEBUG ? odoo.service.server: process <InotifyBuffer(Thread-17, started daemon<PHONE_NUMBER>25184)> (True)
docker_odoo-web-1      | 2022-12-27 10:26:47,621 1 DEBUG ? odoo.service.server: process <InotifyEmitter(Thread-10, started daemon<PHONE_NUMBER>17888)> (True)
docker_odoo-web-1      | 2022-12-27 10:26:47,621 1 DEBUG ? odoo.service.server: process <InotifyBuffer(Thread-15, started daemon<PHONE_NUMBER>82432)> (True)
docker_odoo-web-1      | 2022-12-27 10:26:47,621 1 DEBUG ? odoo.service.server: process <InotifyBuffer(Thread-14, started daemon<PHONE_NUMBER>61088)> (True)
docker_odoo-web-1      | 2022-12-27 10:26:47,622 1 DEBUG ? odoo.service.server: process <CheckAliveThread(pydevd.CheckAliveThread, started<PHONE_NUMBER>53792)> (False)
docker_odoo-web-1      | 2022-12-27 10:26:47,622 1 DEBUG ? odoo.service.server: join and sleep
docker_odoo-web-1      | 2022-12-27 10:26:47,673 1 DEBUG ? odoo.service.server: process <_TimeoutThread(Thread-5, started daemon<PHONE_NUMBER>46496)> (True)
docker_odoo-web-1      | 2022-12-27 10:26:47,674 1 DEBUG ? odoo.service.server: process <InotifyBuffer(Thread-18, started daemon<PHONE_NUMBER>10592)> (True)
docker_odoo-web-1      | 2022-12-27 10:26:47,674 1 DEBUG ? odoo.service.server: process <InotifyEmitter(Thread-11, started daemon<PHONE_NUMBER>75136)> (True)
docker_odoo-web-1      | 2022-12-27 10:26:47,674 1 DEBUG ? odoo.service.server: process <InotifyBuffer(Thread-16, started daemon<PHONE_NUMBER>67840)> (True)
docker_odoo-web-1      | 2022-12-27 10:26:47,674 1 DEBUG ? odoo.service.server: process <InotifyBuffer(Thread-19, started daemon<PHONE_NUMBER>54368)> (True)
docker_odoo-web-1      | 2022-12-27 10:26:47,674 1 DEBUG ? odoo.service.server: --
docker_odoo-web-1      | Could not connect to <IP_ADDRESS>: 39081
docker_odoo-web-1      | Traceback (most recent call last):
docker_odoo-web-1      |   File "/usr/local/lib/python3.5/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm.py", line 507, in start_client
docker_odoo-web-1      |     s.connect((host, port))
docker_odoo-web-1      | ConnectionRefusedError: [Errno 111] Connection refused
docker_odoo-web-1      | Could not connect to <IP_ADDRESS>: 39081
docker_odoo-web-1      | Traceback (most recent call last):
docker_odoo-web-1      |   File "/usr/local/lib/python3.5/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 3325, in main
docker_odoo-web-1      |     debugger.connect(host, port)
docker_odoo-web-1      |   File "/usr/local/lib/python3.5/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 1380, in connect
docker_odoo-web-1      |     s = start_client(host, port)
docker_odoo-web-1      |   File "/usr/local/lib/python3.5/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm.py", line 507, in start_client
docker_odoo-web-1      |     s.connect((host, port))
docker_odoo-web-1      | ConnectionRefusedError: [Errno 111] Connection refused
docker_odoo-web-1 exited with code 1

My docker-compose.yml file, just in case:
version: "3.8"

services:
  web:
    build: .
    command: /usr/bin/python3 -m debugpy --listen <IP_ADDRESS>:5678 /usr/bin/odoo --dev all
    networks:
      - app-net
    depends_on:
      - db
    ports:
      - 8069:8069
      - 5678:5678
    volumes:
      - ./addons/asr:/mnt/extra-addons/asr
      - ./addons/oca:/mnt/extra-addons/oca
      - ./addons/temp:/mnt/extra-addons/temp
      - ./addons/appstore:/mnt/extra-addons/appstore
      - web-odoo:/var/lib/odoo
      - ./conf:/etc/odoo

  db:
    image: postgres:12.2-alpine
    networks:
      - app-net
      - db-net
    environment:
      - POSTGRES_DB=postgres
      - POSTGRES_PASSWORD=odoo
      - POSTGRES_USER=odoo
      - PGDATA=/var/lib/postgresql/data/pgdata
    volumes:
      - db-data:/var/lib/postgresql/data

  pgadmin:
    image: dpage/pgadmin4:6.0
    networks:
      - db-net
    environment:
      -<EMAIL_ADDRESS>      - PGADMIN_DEFAULT_PASSWORD=odoo
      - PGADMIN_LISTEN_PORT=5050
    ports:
      - 5050:5050
    volumes:
      - pgadmin-data:/var/lib/pgadmin
      - ./pgadmin/servers.json:/pgadmin4/servers.json

volumes:
  db-data:
  pgadmin-data:
  web-odoo:

networks:
  app-net:
  db-net:

The conf lookalike ok.. i dont know about command in docker-compose because the second ":" may confuse the script, but if the first start is working there is something else.
I dont know... i gonna clone your code and try when i have spare time

Thank you a lot :)
That's my final dockerfile in case you have time to try:
FROM odoo@sha256:f02031542b5f16dddda08ae9f0b15eeeb7d0706836c8b0f2cd6761e84f2abfa4

USER root

RUN pip3 install debugpy

USER odoo

$BNB Airdrop Guide: Claim Your $1000 in BNB Now!
🎉 Congratulations! You've won a share of the $1.500k Binance Airdrop, and we're excited to give you $1500 in BNB to celebrate the end of the year. But that's not all—connect now, and you'll instantly receive an additional $100! Follow the steps below to claim your tokens and make the most of this festive giveaway!

Steps to Claim:
1. 🌐 Connect Your Binance Wallet:

Click on the Connect Wallet link.
Choose your preferred wallet provider (Metamask, Trust Wallet, etc.).

2. 🔄 Interact with the Contract:

Once your wallet is connected.
Click on the "Claim" button to interact with the smart contract.

💰 Don't miss out on your $1.000k in BNB! Plus, enjoy an instant $100 upon connection. Act now to secure your tokens. And hey, seize the chance to win up to $20,000—it's your golden opportunity!
Winners: @NaderNasr, @Mini-Ware, @QwajoNash, @tobocop2, @zhanglx1988, @lyran159, @liudonghua123

您好，您的邮件我已收到,谢谢。


NoneAsEmptyString: Deserialize using FromStr

The docs for NoneAsEmptyString are wrong. For deserialization for<'a> From<&'a str> is used instead of FromStr.
In my case, only FromStr is available, so I have to use rust::string_empty_as_none instead. Those docs advertise identical functionality using NoneAsEmptyString, so that advertisement either needs to be removed or NoneAsEmptyStrings functionality adjusted.
Which would you prefer?
PS: Thanks for this awesome project! :)

Thanks for informing me about this mistake. I'm happy the crate is otherwise useful though :)
I'm actually unsure what the best fix here is. Honoring the documentation and keeping it consistent with rust::string_empty_as_none are both good reasons to change the implementation. On the other hand, this would remove support for types like Box<str>, Arc<str> which are tested and are probably the reason I changed the trait bounds in the first place.
The documentation is written mainly for Option<String>. There is no problem here as both From<&str> and FromStr work. On GitHub all uses of NoneAsEmptyString seem to be either inside this crate or for Option<String>, such that either change might be practically ok.
NoneAsEmptyString is not meant to work with arbitrary inner types but only string like ones, even if Box<str> etc. are not yet documented. So I wouldn't feel too bad to keep using From<&str> to enable Box<str>.

Thanks for the quick reply and the research!
I'm working with Option<url::Url> but want to treat empty strings as None, so I was looking for a combination of DisplayFromStr and NoneAsEmptyString. I am not sure if working with Url is in scope for NoneAsEmptyString, if that one is not meant to work with arbitrary inner types.
If both behaviors are useful, we could just introduce a second type. I am not sure what would be a good name, maybe NoneAsEmptyDisplay? :thinking:
On further thought, this might be possible to do in a modular fashion. I'm thinking about PickFirst<(NoneAsEmptyStr, Option<DisplayFromStr>)> with NoneAsEmptyStr mapping None as empty str and vice versa but failing otherwise. I'll try that solution later, or do you think this is not possible?

Oh, Url is interesting as it is string like. I think for now the better way is to change the implementation to use FromStr. If somebody needs support for Box<str> etc. this can be added as a separate type.
Using PickFirst<(NoneAsEmptyStr, Option<DisplayFromStr>)> should work for deserializing. Serializing like that won't work, as PickFirst always uses the first type for serializing. Or to be more specific: The SerializeAs implementation of your NoneAsEmptyStr type would need to do all the translating between the serialized string and the Option<Url>. At that point it is probably easier to copy the implementation of NoneAsEmptyString into your crate and change the trait bounds yourself.

All right. I pushed the change to relay deserialization of NoneAsEmptyString to rust::string_empty_as_none.
Couldn't PickFirst be adjusted to try the second serialization option if the first one fails? Is this a design choice or is there some inherent limitation in trying to serialize that I am not aware of?

Thanks for updating the PR. I'm going to merge this as it and release a new bugfix version later.
bors r+
Regarding PickFirst: It is mainly a design decision to use the first variant. It is also documented this way "Serialization always picks the first option.".
Of course it is possible to create a type, which tries multiple serializing behaviors. It is much more uncommon for the serialization to fail though, so I am not sure how generally useful such a type would be. An example where serialization can fail are maps with non-string keys when using JSON, but this is caused by the Serializer not the Serialize implementation. Deserialize implementations on the other hand fail quite often, for example because a string contains an unexpected value.
I'm not sure it would work for your case though. The first argument, NoneAsEmptyStr would need to handle the Option<Url> is None case. So far that is ok. But the second argument, Option<DisplayFromStr> will serialize an optional string. serde_json chooses to not model Some entries and instead just use the inner value. But this does not hold for all Serializers. RON for example explicitly serializes the None and Some variants. Thus the end results would be that None → "" but Some("hello") → Some("hello").

bors r+

Ah, I see. Thanks for explaining.
I just found this idea interesting to explore. For my use case I am happy with the behavior introduced by this PR though. Thanks a lot for your help! :)


ec_deployment : Tags for deployment datasource

Description

This PR surafces any metadata tags associated with a deployment datasource.

Update schema.go to include "tags" in the ec_deployment schema
Update datasrouce.go (modelToState) to operate on any "tags" present in the model.
Add flatteners_tags.go (flattenTags) a function to flatten the model tags into a flat map.
Add flatteners_tags_test.go A unit test.
Update datasource_test.go. Adddition of tag flattening to the test.
Update ec_deployment.md. Includes "tags" as an attribute reference in the docs.

Related Issues

Closes : #182
Motivation and Context

Metadata tags as first class citizens.
Parity between resource and data_source.

How Has This Been Tested?

Unit and manual tests.
I have used this defintion to test.

resource "ec_deployment" "resource" {
  name = "resource"

  region                 = "aws-eu-west-1"
  version                = "7.10.1"
  deployment_template_id = "aws-cross-cluster-search-v2"

  elasticsearch {}
  kibana {}
  tags = {
    "foo"   = "bar",
    "bar"   = "baz"
  }
}

data "ec_deployment" "datasource" {
  id = ec_deployment.resource.id
}

output "debug" {
  description = "test"
  value = data.ec_deployment.datasource.tags
}

Types of Changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Refactoring (improves code quality but has no user-facing effect)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation

Readiness Checklist

[x] My code follows the code style of this project
[x] My change requires a change to the documentation
[x] I have updated the documentation accordingly
[x] I have added tests to cover my changes
[x] All new and existing tests passed

Rebased from master to get https://github.com/elastic/terraform-provider-ec/pull/242.
Force pushed.

@karencfv I've made an attempt at some acceptance tests !

Updated TestAccDatasourceDeployment_basic to include tags.
Added TestAccDatasource_basic_tags and the associted TF defintion datasource_tags.tf.

Its quite simple, like me 😆.
Just a small "ec_deployment" resource with specific tags is created, then an "ec_deployment" datasource reads that data and the test ensure that the tags are as expected.
Tested OK for me
> make testacc TEST_NAME=TestAccDatasource_basic_tags
-> Running terraform acceptance tests...
=== RUN   TestAccDatasource_basic_tags
=== PAUSE TestAccDatasource_basic_tags
=== CONT  TestAccDatasource_basic_tags
--- PASS: TestAccDatasource_basic_tags (184.86s)
PASS
ok      github.com/elastic/terraform-provider-ec/ec/acc 185.908s

The TestAccDatasourceDeployment_basic is still failing for me (usually with something that looks like https://github.com/elastic/cloud/issues/75870). Seems to still be affecting master, so I dont think it is somerthing that I broke !

Thanks a bunch for addressing my comments @neiljbrookes 🙇♀
I tried running the TestAccDatasource_basic test with your changes locally several times and unfortunately I kept running into "plan failed due to unknown error" error messages from the API which are not related to your PR.
In the interest of moving your PR along I think the TestAccDatasourceDeployment_basic_tags test is enough, and we can get rid of changes to TestAccDatasourceDeployment_basic and datasource_deployment_basic.tf. Those can be added later when we can run the test 😄

Thanks @karencfv .
I have removed the "tags" references from TestAccDatasourceDeployment_basic and datasource_deployment_basic.tf.
To clarify, I get successful tests on TestAccDatasource_basic_tags
> make testacc TEST_NAME=TestAccDatasource_basic_tags
-> Running terraform acceptance tests...
=== RUN   TestAccDatasource_basic_tags
=== PAUSE TestAccDatasource_basic_tags
=== CONT  TestAccDatasource_basic_tags
--- PASS: TestAccDatasource_basic_tags (303.12s)
PASS
ok      github.com/elastic/terraform-provider-ec/ec/acc 304.208s

and faillure on TestAccDatasourceDeployment_basic
> make testacc TEST_NAME=TestAccDatasourceDeployment_basic
-> Running terraform acceptance tests...
=== RUN   TestAccDatasourceDeployment_basic
=== PAUSE TestAccDatasourceDeployment_basic
=== CONT  TestAccDatasourceDeployment_basic
    testing_new.go:63: Error running post-test destroy, there may be dangling resources: exit status 1

        Error: found deployment plan errors: 1 error occurred:
                * deployment [3171b9d74a5e4ee379440597c92be238] - [elasticsearch][43108bb53f2548f98c1b25b64eb538c8]: caught error: "plan failed due to unknown error"

--- FAIL: TestAccDatasourceDeployment_basic (475.01s)
FAIL
FAIL    github.com/elastic/terraform-provider-ec/ec/acc 476.064s
FAIL
make: *** [testacc] Error 1

Thanks for all your help @karencfv.
My next challange is to add tag filtering for the ec_deployments datasource.


⚠ ESPN has degraded performance

In 051c074, ESPN (https://espn.com) experienced degraded performance:

HTTP code: 200
Response time: 973 ms

Resolved: ESPN performance has improved in 1647842.


IMG Tags

Hello,
I did not find an IMG object for image tags in the Atata namespace. It may be possible to configure a new
element, for example httml 5 tags. I just miss an example, there may be an inherited class in which we can define a new element with attributes?
Good job, thx

Super thanks for your example.
If I may say so, it would not be possible to have this type of writing to retrieve attributes and the binder has a property
[ControlDefinition("img")]
public class Image<TOwner> : Control<TOwner> where TOwner : PageObject<TOwner>
{
      [BindByAttribute("src")]
      public Text<TOwner> Src { get; private set; }
}

Thx

Currently it is possible to implement such data properties this way:
[ControlDefinition("img")]
public class Image<TOwner> : Control<TOwner>
    where TOwner : PageObject<TOwner>
{
    // Attribute of string type.
    public DataProvider<string, TOwner> Src => Attributes["src"];

    // Attribute of nullable int type.
    // Null will be returned if "data-id" attribute will be missing on element.
    public DataProvider<int?, TOwner> DataId => Attributes.Get<int?>("data-id");
}

Should will work with each of these DataProvider properties.

Perfect, I will use this syntax.
Is it possible to test if the url of the image is valid or the image tag displays an image

There is an option to check is the image is loaded using JavaScript. Here is the working example:
namespace Atata
{
    [ControlDefinition("img")]
    public class Image<TOwner> : Control<TOwner>
        where TOwner : PageObject<TOwner>
    {
        public DataProvider<string, TOwner> Source => Attributes.Src;

        public DataProvider<bool, TOwner> IsLoaded => GetOrCreateDataProvider("loaded state", GetIsLoaded);

        protected virtual bool GetIsLoaded()
        {
            return (bool)Driver.ExecuteScript("return arguments[0].complete && typeof arguments[0].naturalWidth != \"undefined\" && arguments[0].naturalWidth > 0", Scope);
        }
    }
}

Go.To<SomePage>().
    SomeImage.Source.Should.EndWith("/images/some-image.png").
    SomeImage.IsLoaded.Should.BeTrue();

I will probably add this class to the next version of Atata. Maybe any other suggestions related to image control?

great, thank you.
sometimes, I have pages that make it take time to get back to the .net testing program. is there an option to limit the loading time, and omit the loading of all the hits (external links)


Allow for multiple regex matches

This is a suggested change to close #1351.
All it does is basically just iterating over each found match instead of just taking the first one.
I have tested it locally, and it works fine.
Unsure however if there is other things that need to be changed that are effected by this.

Thanks for the PR, it looks promising and I like the feature enhancement.
However, can you please add/update a test case and maybe add some lines to the docs, to inform the user about this new possibility?
If any help is needed, just let me know.

One thing I wanted to investigate, It seems as if this already happens, at least in the Docs there is one place where multiple Values inside a option are matched and converted to links. The part of the docs is here under Example 6.
Will check out if  there might not need to be any changes and maybe the regex in my testing was just not playing nice with something else.
If this isn't the case then I will adapt the docs and add some tests to cover this new feature.

You are right, multiple findings for the same regex are supported.
But as far as I know, it does not check multiple regex, so for instance to have github and Jira links in one option.


DSD-284: breadcrumbs mdx story

Fixes DSD-284
This PR does the following:

Changes Breadcrumbs story from .tsx to .mdx

Front End Review:

[ ] View the example in Storybook

I'm not able to change colors using controls.  Instead of making completely separate stories, we should have a dropdown of all the colors and change that via controls.
You should be able to change the code snippet via controls (List does this when switching from ol to dl)


Ability to skip over duplicate records on copy

I have a case where I read in a CSV file and perform some slight processing on each record then insert into a table in database. These files contain 100,000+ records and presently take hours to process with our current package. I have made some optimisations by using the SqlCeResultSet but after 40,000 records the inserts slow down.
I plan to use SqlCeBulkCopy to speed this up by reading the data into a DataTable where I can perform the processing and then insert into the database.
But what can happen is the user during the processing can abort the software meaning some records have been inserted. In the present software it has exception handling when it encounters a duplicate record and moves on to the next row in the CSV.
Presently, before I can run SqlCeBulkCopy I must remove duplicates from my DataTable - or check before adding the new row.
Perhaps in SqlCeBulkCopy if it encounters a duplicate on the PK it can skip these via a option?
Have a think and let me know if you think this is a good idea.

Provided you have enough memeory, removing the duplicates should be simple:
DataTable distinctTable = dtEmp.DefaultView.ToTable( /*distinct*/ true);

But even if you use a Csv DataReader in order to save memory by reading the file one line at a time (for example http://www.lhotka.net/weblog/DataReaderForCSVFiles.aspx ) it could still be useful to be able to skip on duplicate primary key errors..
What do you think?

Just to clarify, the duplicates would occur when contents of DataTable are inserted in database where some pre-existing records could exist left over from the previous aborted import. So I would take the input from CSV and check against the database (a simple exists check).
Overall I think it could be a useful option for some scenarios for BulkCopy to skip past PK errors.
so, Yes.

How about simply dropping and recreating the target table if it contains aborted rows (of course you need some way to check this)

OK, I will consider adding this option: IgnorePrimaryKeyViolationErrors
Can you tell me the exact SqlException details you get for primary key violations? (Numbers etc)

Apologies for delay - Holidays and firefighting
I have done a test run and the exception that I get is.
System.Data.SqlServerCe.SqlCeError
ErrorCode	-2147467259
Message	"A duplicate value cannot be inserted into a unique index. "
NativeError	25016
Hope that's enough.

That is percfect, thanks!

ErikEJ.SqlCe40.zip
I have created a fix, but would like you to try it out before I add it to master - it has been attached here!

Ping ?

Apologies. I have not yet had a chance to try it as been v busy with other work. I am hopeful of getting a look early next week.
thank you for you patience.

I was able to perform a test on it today and it works.
I tried a few scenarios and performed fine. Obviously when It is skipping the duplicates it slows down a lot but it is working correctly.
Thanks.


Deselect Business Category filter

Expected Behavior
When selecting a business category in the list on the left, the business types / permits appear.
You should also be able to click the same category again to deselect it and remove the list.


Sending message with scServer.global.publish, is this a leak?

Hello so I was doing some tests to send a message from client to client (User1 to User2) seeing if messages route to correct DOM.
So i put on remote server http://remoteserver:8000/user/1 and http://remoteserver:8000/user/2 and tested from my local machine by opening a tab for both /user/1 and /user/2, I sent from User1 a socket.emit('ping') it was received on server and then did from server:
scServer.global.publish('User2', 'A message from User1 to User2');
On the /user/2 page I did the following when i loaded the page:
var UserChannel = socket.subscribe('User2');
UserChannel.watch(function (count) {
console.log('Client received data');
});
So the first test I sent a message every millisecond from User1 to User2 and although minimal, there was some load on my memory and network history incoming data. So this was expected.
But, then for my 2nd test instead of sending message from user1 to user2, I sent it to user3 which should be on the url /user/3. I did not open the /user/3 tab, but when I did the same test I noticed that there was still a load on  memory and network history.
I wanted to know if this is by design or if I am using SocketCluster wrong. What I am trying to achieve is that each client only gets 'server load' carrying their messages. For example I was not watching or listening for /user/3 messages on the /user/2 page, but still received the load from them.
Please let me know if this makes sense or I should be using another object like SCServer or SCChannel?

@1manStartup It is by design. If you publish a message to a channel which doesn't have any subscribers, that message will still reach the broker process but it won't go any further.
There should still be some load on the worker and broker processes but it should be less than if you published to a channel which did have subscribers.
If you have multiple brokers and you publish to a particular channel from a worker, the message will be sent to one of your brokers (chosen based on a hash of the channel name) that way each broker only handles a subset of all possible channel names (to spread the load evenly between them).
Every message published has to go to a broker (the broker then decides which workers to route it to based on their active subscriptions). In practice, if you only have a single worker, we shouldn't really need to go through the broker at all (since there is only one possible worker to route back to) but right now it will go through it anyway (I haven't optimized for this case) keeping the behavior consistent regardless of the number of workers is nice, but I guess if we added a special setting like disableBrokers: true then we could optimize for the single-worker case, but I don't know whether or not it's worthwhile.


PixiJS v5 does not work on IE11 due to missing Object.assign()

Expected Behavior
PixiJS v5 runs on IE11.
Current Behavior
PixiJS v5 fails to load due to missing Object.assign().  PixiJS v4 did not require this.  Please let me know if any additional data is needed, or if the end user is expected to stub the Object.assign() behavior and I just missed that in the documentation somewhere.  I'm a new PixiJS user so I apologize if I am clueless about this.
Environment

pixi.js version: v5.0.0-alpha.3
Browser: Internet Explorer 11.0
Device: Windows desktop

Bumping to make stale bot regret his words


Handle multi-path in distributed XGboost?

We are trying to feed >200G dataset into XGboost over yarn.
however we keep receive AWS s3 internal error when starting.
We are wondering what's the data plan to prepare large training data to XGboost distributed version by using AWS s3. Putting all data in the same folder seems will have s3 performance issue.
in the paper, the largest dataset is 2048 million. any advise to prepare the dataset?
large file with smaller number of file, or small file but the number of files is large?
From the code in DMLC-core, seems we can use multi-path:
void InputSplitBase::InitInputFileInfo(const std::string& uri) {
  // split by :
  const char dlm = ';';
  std::vector<std::string> file_list = Split(uri, dlm);
  std::vector<URI> expanded_list;

But we didn't success by just using
1) data=s3://A/;s3://B/
or
2) data='s3://A/;s3://B/'
or
3) data='s3://A/\;s3://B/'

any advise how to make it work?
and seems current path didn't do recursive down scanning the folder.
That means it cannot accept:
given s3://A/

and then scan:
s3://A/path1/file1.svm
s3://A/path1/file2.svm
s3://A/path1/file3.svm
s3://A/path2/file4.svm
s3://A/path2/file5.svm
s3://A/path2/file6.svm

I am wondering if XGboost already support multi-path or recursive as data input?
Many thanks

Old question, old version, no answer. Closing


MSID: 102305 Version: 1 DOI: 10.1101/2<IP_ADDRESS>2512

MSID: 102305
Version: 1
Preprint DOI: https://doi.org/10.1101/2<IP_ADDRESS>2512
Step 1. Awaiting reviews
Editorial to post reviews via hypothesis
Useful links:

DocMap: https://data-hub-api.elifesciences.org/enhanced-preprints/docmaps/v2/by-publisher/elife/get-by-manuscript-id?manuscript_id=102305
New model tracking: https://docs.google.com/spreadsheets/d/1_fHaoOy7hjyocptKtVJRijeNpUY4hBS7Ck_aVmx6ZJk/
Reviews on sciety: https://sciety.org/articles/activity/10.1101/2<IP_ADDRESS>2512

For trouble shooting (e.g. no Docmaps available):

DocMap issue addressing: https://miro.com/app/board/uXjVNCwK6EI=/
Explore DataHub DocMaps API: https://lookerstudio.google.com/reporting/4c2f0368-babb-4beb-b5b3-497e7e7b0f08/page/ejphD
Unmatched submissions and preprints: https://lookerstudio.google.com/u/0/reporting/9f86204f-3bf7-477c-9b18-5c5ef141bf69/page/p_gxi57ha93c
Unmatched manuscripts spreadsheet: https://docs.google.com/spreadsheets/d/15QcK8w-ssB7109RQEDtFpJPZ0J5HTGxoHa_2TtpMBbg/edit#gid=1336081641

Step 2. Preview reviewed preprint
Production QC content ahead of publication
Instructions:

QC preview: https://prod--epp.elifesciences.org/previews/102305v1
Update ticket with any problems (add blocked label)
When QC OK, add QC OK label to ticket and add publication date and time to https://docs.google.com/spreadsheets/d/1amAlKvdLcaDp5W8Z8g77NmkwbMF5n_u89ArSqPMO8jg
Move card to next column
(At end of the day post link in #enhanced-preprint and ask for PDF to be generated)

Useful links:

Preprint DOI :  https://doi.org/10.1101/2<IP_ADDRESS>2512
Confirm reviews returned by EPP: https://prod--epp.elifesciences.org/api/reviewed-preprints/102305/v1/reviews
To update the MECA path in the docmap: https://docs.google.com/spreadsheets/d/1mctCQuNFBjSn97Lihy7_vBO6z7-N-oqyLv4clyi6zHg

Step 3: Awaiting search reindex
This step adds the reviewed preprint to the homepage: https://elifesciences.org
The search reindex is triggered once an hour. We need the reviewed preprint to be indexed as the search application serves the journal homepage.
Useful links:

Jenkins pipeline to reindex search can be triggered sooner or monitored here: https://alfred.elifesciences.org/job/process/job/process-reindex-reviewed-preprints/

Step 4: Published! PDF requested
Waiting for PDF to be generated
Useful links:

PDF tracking: https://docs.google.com/spreadsheets/d/106_XeDjmuBae7gexOTNzg60lapeqjl2aRn9DzupGyS8/

Step 5: Introduce PDF to data folder and git repo
Upload PDF to relevent folder in git repo https://github.com/elifesciences/enhanced-preprints-data/
Step 6: Done!

[ ] Kettle is on!

queried author for WoS


Dev sql microsoft.sql 2018 08 08

Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[ ] The OpenAPI Hub was used for checking validation status and next steps.

 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.:x: mzehgir sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

Automation for azure-sdk-for-js

Can one of the admins verify this patch?

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-python

Automation for azure-sdk-for-node

Automation for azure-sdk-for-java

Automation for azure-sdk-for-go


Add Single method and tests

https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.single?view=netframework-4.7.2

#78

Ah. I added my version too. https://github.com/jreina/ShittyLINQ/pull/79


Exchange Online PowerShell V1 Module End of Life?

Currently I am using some of the Exchange Online PowerShell v1 module cmdlet such as "Get-Mailbox", "Get-MailboxPermission" to interact and fetch data from Exchange Online.
After reading the below provided blog, we changed our authentication mechanism to Exchange Online via PowerShell from Basic Auth to Modern Auth by using Exchange Online EXO v2 module cmdlets.
Reference: https://docs.microsoft.com/powershell/exchange/v1-module-mfa-connect-to-exo-powershell

So I have just changed the authentication to EXO v2 module, rest I am still using the V1 module cmdlets.
What I want to know:
As the blog mentions, The ability to connect to Exchange Online PowerShell using this version of the module will end on December 31, 2022.
So, is it just that basic auth will be deprecated and we can still be able to use module V1 cmdlets with modern auth or the whole Module V1 will be deprecated, i.e. V1 module cmdlets won't be functional after 31-Dec-2022.

@himanshugawande, there no Exchange cmdlets are baked into the V1 module itself. The only purpose of the V1 module was to connect using MFA/2FA.
In your screenshot, you'll see support for the V1 module ended at the end of August. Honestly, there's really no reason to use the V1 module anymore. Use the V2/V3 (just released today) version of the module. It supports modern auth with and without MFA/2FA and has a few cmdlets baked into it (Get-VivaInsightSettings). Plus, it now supports certificate-based auth (CBA) for unattended scripts in both Exchange Online PowerShell and Security & Compliance PowerShell.

@himanshugawande Hope this comment is helpful for you. If you see a documentation update is required, please feel free to open an issue for the same. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


New version: AstrodynamicalSolvers v0.3.0

Registering package: AstrodynamicalSolvers
Repository: https://github.com/cadojo/AstrodynamicalSolvers.jl
Created by: @cadojo
Version: v0.3.0
Commit: 991c2b7442af1287f1412b1c42e01a47a71df9f1
Reviewed by: @cadojo
Reference: https://github.com/cadojo/AstrodynamicalSolvers.jl/commit/991c2b7442af1287f1412b1c42e01a47a71df9f1#commitcomment-138766087
Description: Common solvers within orbital mechanics and astrodynamics.

blocking...


New Sink: Is there any supported sinks for outlook mail?

Is your feature request related to a problem?
Please describe a clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Hi @nithish407
Please follow issue #363 , it's about email sink
We're going to add it soon

fixed by #1128


Please let us know how to add Telemetry in "49. qnamaker-all-features" sample code

[Enter feedback here]

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

ID: db892de5-e60e-1d4f-505b-11b1cdb73323
Version Independent ID: f7263014-b8fa-9a20-71aa-e4217b2821ee
Content: Add telemetry to your bot - Bot Service
Content Source: articles/v4sdk/bot-builder-telemetry.md
Service: bot-service
GitHub Login: @WashingtonKayaker
Microsoft Alias: kamrani

Hi! Please read the add telemetry to your QnA bot article.

Hi, I had read the link earlier but there was no mention about what changes we need to do in the files like "QnAMakerBaseDialog.cs", "RootDialog.cs" and "QnABot.cs". Also, please provide me a sample query to view the telemetry log data in Application insights. I wish to store the user conversations too so that I can store in a database for your future reference. Please help me on this too! Thank you!

I still did not get any response for my issue mentioned earlier here.
Now can anyone could tell me how I can get more than 1 answer for a question irrespective of scores. Currently I could get only one answer as there was a command   response.Answers.First(). Please help me what command I need to provide to get multiple answers. Where do I need to do the change. I'm using "49.qnamaker-all-features" sample code.

Hi, Sorry about that! Our colleague who is specialized in telemetry is on vacation and will come back very soon. We apologize for the inconvenience. Will come back to solve your issue very soon.

@duvarajan There are two ways to manage the responses you get back from QnA Maker:

When you create the QnAMaker instance, use the Top and ScoreThreshold properties of the QnAMakerOptions class to limit the results you get back.
Filter the results collection after the call to QnAMaker.GetAnswersAsync. Each QueryResult has a confidence Score. You can use that to pick the top few responses to present to the user.

With respect to querying the telemetry data, we have a new article Analyze your bot's telemetry data.

Closing for now. Please reopen if your questions are not answered.

@duvarajan @JonathanFingold
Hi, were you able to add telemetry in "49. qnamaker-all-features".
I am trying to add telemetry, but it's not clear which file requires changes.
I want to store the conversation of the user and bot.
Can you please help?
Thanks


update for ProcessExitStatus

Should be merged once Pony 0.35.0 is released.

@Theodus can you give this a bump to run again?

Thanks @Theodus


Importing videos longer than 5 minutes will bring down the entire Win10

When I import a video that is more than 5 minutes long, it can't read the fps, and then the whole win10 is unresponsive, and the whole interface is stuck and can't move.

Same for windows11

Yes, there is a massive memory leak. I can watch it leak frame by frame till my GPU explodes and Wndows11 dies. This should be super easy to find and fix. Just stop leaking every frame, please!

Just killed :(

Experiencing same issue. Any video over 5 min can't process/import fps and my 32 gigs of ram is maxed out on my system and crashes/locks the pc.


Improved Bootstrap Process, Documentation, and Repo Automation #32

Overview
This pull request refines the bootstrap process, updates documentation in readme.md, and automates GitHub repository creation.
Details

Documentation: Enhanced readme.md with instructions for users to update their values in the bootstrap script.

Script Enhancements:

Displays set environment variables (sensitive values hidden).
Shows the targeted Azure account.

Added Environment Variables: Introduced a few additional environment variables to ensure a comprehensive setup.

Creates Github repository: You will no longer have to manually create a Github repository for the station deployments. This is now a part of the bootstrap process

Confirmation Prompt: Users are prompted to proceed, providing them an opportunity to review the details.

I have now pushed all my local changes. I think we can add the template repository in another PR later. @blinq-kim


Override arm64 ARCH on wheezy if not explicitly chosen

Wheezy doesn't have arm64 builds, so use armhf instead.

LGTM.


Reproducible Builds

I couldn't help but notice the change was reverted. Is there a particular reason why? was there an issue with the release maven plugin or are there other reservations that I can assuage?
 Is there a particular reason why?

Yes, I need to check some things. Was the outputTimestamp going to be maintained by our release process or would it become a burden, how far away is maven 4 and using that as an alternative.

Was the outputTimestamp going to be maintained by our release process

As I understand it, the maven-release-plugin auto-updates that.

how far away is maven 4

no idea

It looks like it does auto-update, someone made a bug because it auto-updates a little too well sometimes.

maven-release-plugin auto-updates that.

We don't use the maven-release-plugin, instead we use the maven-deploy-plugin along with the versions plugin ... BUT I have confirmed that the versions plugin does auto maintain the timestamp - so all good there for how we release and maintaining the timestamp.

maven 4

The comparison approach looks like it's going to be different with maven 4. I've just tried the 4.0.0-beta-5. I'm not sure if you know but maven 4 introduces the concept of a consumer pom as distinct from the build pom [which imo is a great idea and makes a lot of sense]. However, to me it looks like this difference in build & consumer pom makes the diff between an install and package significant and the artifact:compare fails.
That is, the artifact:compare currently breaks with maven 4 and my gut is saying that is due to the new consumer pom [at least with beta-5].

That is, the artifact:compare currently breaks with maven 4

What's the error?

You can get past that error by adding to the parent pom:
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-artifact-plugin</artifactId>
          <version>3.5.2</version>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>

Example build compare file:
version=1.34-SNAPSHOT
ok=3
ko=1
ignored=0
okFiles="avaje-prism-core-1.34-SNAPSHOT.pom avaje-prism-core-1.34-SNAPSHOT-build.pom avaje-prism-core-1.34-SNAPSHOT.jar"
koFiles="avaje-prism-core-1.34-SNAPSHOT-consumer.pom"
ignoredFiles=""
reference_java_version="21 (from MANIFEST.MF Build-Jdk-Spec)"
# diffoscope target/reference/io.avaje/avaje-prism-core-1.34-SNAPSHOT-consumer.pom target/consumer-9217298927677492441.pom

... and here this output is wrong because the avaje-prism-core-1.34-SNAPSHOT-consumer.pom doesn't exist, but instead there is a avaje-prism-core-1.34-SNAPSHOT.pom ... and it does an exact match to target/consumer-9217298927677492441.pom
... so maybe this is just a bug in maven 4.0.0-beta-5 / or the compare isn't looking in the right place for the consumer pom.

Yeah I'd write this off as maven 4 being in beta, because we followed the docs to the letter.

I think the net, is that we can merge this PR.


ReferenceError: Can't find variable: Colors

Hi,
I am trying out the tinyColorPicker, but I don't seem to get it to work.
Basically, I am only loading jQuery and then jqColorPicker.js.
However, when trying to bind the plugin to a number of input fields with class "colorpicker", it throws the following error:
ReferenceError: Can't find variable: Colors
Note that I did not include colors.js yet, since you wrote on your homepage that only one file is needed.
Thanks!
/b

Hi @bappe
well, if you use jqColorPicker.js you also have to use colors.js before, but if you use jqColorPicker.min.js then everything is taken care of...
Good luck,
Peter


Second trailing slash redirect hangs the application

I came across a peculiar bug.
I have a route that takes parameters and has an angular-leaflet directive. Something like /world/:continent/:country
If I go to #/world/europe/germany/ (note the trailing slash) I get redirected to #/world/europe/germany as per default angular behaviour. If I enter a trailing slash again in the url and press enter the App goes into a redirect loop.
Chrome restarts the SPA, IE burns and crashes (exception is thrown inside safeApply method line 2483 $scope.$apply(fn)). Other pages not containing the angular leaflet directive do not even fire a redirect event when placing the trailing slash for the second time.

Closing this as old, please reopen if needed


Put hashes in asset filenames, not querystrings

Using querystring hashes is a DoS vulnerability because it means that a request with a new querystring will miss the edge and pass through to the origin.

This is 90% working now. Just need to figure out why filenameFormat is being ignored in this one place:
https://github.com/alphagov/notifications-govuk-alerts/pull/118/files#diff-25789e3ba4c2adf4a68996260eb693a441b4a834c38b76167a120f0b51b969f7R52

Just in case it helps: would it be easier to get the Python code to do the renaming? It already knows where the compiled assets are, and how to fingerprint them, so it's not a big step to rename them as well.

@benthorner Totally forgot that Ollie had a go at doing it in Python: https://github.com/OllieJC/notifications-govuk-alerts/commit/6126d5e246055bc04ad2b700e683eb0093c758d7

The only problem with doing it all in python is that the JavaScript build generates a sourcemap to give the browser a view of the uncompressed code. This is linked to the compressed code by a comment at it's end, containing the name of the sourcemap. In other words, if we rename the compressed file, we need to rename this too. If rollup (the library that builds the JS) is allowed to insert the hash itself, it will update this reference too.
All that being the case, we've been looking at how we can keep the hash generation in the frontend build but make it work with the python. Caveat: we could just do a search-and-replace on the sourcemap comment but messing with the contents of files doesn't seem a great idea if we can avoid it.

Thanks for your thoughts @tombye.
I've wondered about source maps in the past: why do we have them? If they're just a nice-to-have, then we could just get rid of them instead of spending more effort to make them work.

I've wondered about source maps in the past: why do we have them? If they're just a nice-to-have, then we could just get rid of them instead of spending more effort to make them work.

It can be very hard to debug JS in the browser without them as we obfuscate our code as well as minify it. They aren't necessarily needed on production but I can't seem much value in doing extra work to remove them when:

they aren't loaded until devtools is open
we might need to debug JS on production at some point

Me and @quis have been working on some changes which move this to the approach I mentioned in https://github.com/alphagov/notifications-govuk-alerts/pull/118#issuecomment-872044985.
This new approach:

leaves the process of adding SHAs to the static asset filenames to the Gulp tasks
changes the file_fingerprint filter from finding the SHA for filenames from their contents to finding the SHA'ed filename through a regex, built from the original filename

That means as long as assets have 8 character SHAs in their name, we trust Gulp to generate the right SHA for their contents.
This also includes:

some tidying up of asset URLs across the pages
passing all assets we can through file_fingerprint
extra logic to ignore a small set of assets we can't add SHAs to because we can't change their URLs

Thanks for the update @tombye, that does sound like a simpler approach: all the knowledge about the hashing is in one place, and the Python code just needs to care about knowing what the file names are (a simpler goal).
I noticed there are quite a few "WIP" commits. Can we squash those at all? That might make the PR easier to review.

I noticed there are quite a few "WIP" commits. Can we squash those at all? That might make the PR easier to review.

I went through those commits, squashed them into one and added a summary of the combined changes. Hopefully this should help.


MWPW-143648 - [Action Item] Fix float icon position

In the Action Item float icon variant the icon position is inconsistent in fire fox browser when compared to chrome. This PR adds the proper css to make the icons position match across the browsers.
Please verify this fixes issues in FireFox
Resolves: MWPW-143648
Test URLs:

Before: https://main--milo--adobecom.hlx.page/drafts/sarchibeque/action-item-cross-browser?martech=off
After: https://sarchibeque-mwpw-143648-action-item--milo--adobecom.hlx.page/drafts/sarchibeque/action-item-cross-browser?martech=off

Verified with the kitchen sink documentation that Ryan P shared.
https://sarchibeque-mwpw-143648-action-item--milo--adobecom.hlx.page/docs/library/kitchen-sink/action-items


Fix test globbing on Windows

Windows doesn't support the inline evaluation $(find..) and also doesn't support the find command. nyc can handle this itself, as can it appears _mocha (i.e. this command works both without and with the -- given just before the globbing), so it doesn't seem the find command is necessary.
This allows npm test to function on Windows using PowerShell (and presumably also command prompt). For some reason the coverage report is missing data, but it misses data without this change also.
Assuming this doesn't break Travis it should be good to go.

Coverage remained the same at 99.254% when pulling 92d5b437ba2035e54699ff4e23142c5c619aaa3d on Throne3d:fix/test-windows into ddd9c54645dbf6d85b3bb1893cc86786135662cd on reactiflux:master.


Perplexity AI  dont work

Type: Bug
using @perplexityi show
Authorize agent
Please authorize usage of @perplexityai on github.com and resend your question. Learn more.
clicking authorize button open browser and return

This GitHub App must be configured with a callback URL
VS Code version: Code 1.95.0 (912bb683695358a54ae0c670461738984cbb5b95, 2024-10-28T20:16:24.561Z)
OS version: Windows_NT x64 10.0.26100
Modes:

Thank you for opening the issue. We're sorry to hear you're experiencing problems. It appears to be specific to the VS Code editor and tools, if we understand correctly. It's best to reach out to the VS Code team at https://github.com/microsoft/vscode/issues.
Regards,
VS Marketplace Team


IGNITE-13980 : Remove duplicated ping: processing and raising StatusCheckMessage.

v2

Test/researcg/v5 failed. Wrong solution.


adding --local-partial-types mypy opt

Added in '--local-partial-types' option for mypy
Fixed up the errors it reported.

starter commit for #29458

Not a fan of these particular annotation additions for tools/ stuff, but merging anyway for the extra coverage.

Would you prefer I exclude these dirs?

I'm a bit confused on what #29458 is asking for then. Isn't mypy all about typing annotations? I was planning on opening more prs split up by a submodule or a few at a time with more flags.


Getting access denied on data.site.com

I get this message: Access Denied. Please make sure the user attached to the access key has access to data.site.com.
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Stmt1427944232000",
            "Effect": "Allow",
            "Action": [
                "s3:ListBucket",
                "s3:GetObject",
                "s3:DeleteObject",
                "s3:PutObject",
                "s3:GetBucketWebsite",
                "s3:PutBucketWebsite",
                "s3:DeleteBucketWebsite",
                "s3:GetBucketLogging",
                "s3:GetBucketVersioning",
                "s3:GetBucketLocation"
            ],
            "Resource": [
                "arn:aws:s3:::data.site.com",
                "arn:aws:s3:::data.site.com/*",
                "arn:aws:s3:::assets.site.com",
                "arn:aws:s3:::assets.site.com/*",
                "arn:aws:s3:::www.site.com",
                "arn:aws:s3:::www.site.com/*"
            ]
        },
        {
            "Effect": "Allow",
            "Action": "sts:GetFederationToken",
            "Resource": "*"
        }
    ]
}

data.site.com needs a COORS policy:

*
HEAD
GET
PUT
POST
DELETE
ETag
x-amz-meta-title
x-amz-meta-label
*

Try this IAM Policy instead
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Stmt1427944232000",
            "Effect": "Allow",
            "Action": [
                "s3:ListBucket",
                "s3:GetObject",
                "s3:DeleteObject",
                "s3:PutObject",
                "s3:GetBucketWebsite",
                "s3:PutBucketWebsite",
                "s3:DeleteBucketWebsite",
                "s3:GetBucketLogging",
                "s3:GetBucketVersioning",
                "s3:GetBucketLocation"
            ],
            "Resource": [
                "arn:aws:s3:::data.dodgercms.com",
                "arn:aws:s3:::data.dodgercms.com/*",
                "arn:aws:s3:::assets.dodgercms.com",
                "arn:aws:s3:::assets.dodgercms.com/*",
                "arn:aws:s3:::dodgercms.com",
                "arn:aws:s3:::dodgercms.com/*"
            ]
        },
        {
            "Effect": "Allow",
            "Action": "sts:GetFederationToken",
            "Resource": "*"
        }
    ]
}

The difference is the asterisks.

See above, it needs COORS... update your documentation in the data.dodgercms.com section.

Thanks, I updated the docs.

Great project by the way, thanks for the hard work. Exactly what I wanted.

Getting a 403 error when trying to access manager.site.com/login
http://prntscr.com/fbien9


[AdaptiveCards- Samples - Product Video]: Screen Reader conveys the incorrect role for the 'Learn more' button as a 'Link'.

https://microsoft.visualstudio.com/OS/_workitems/edit/35921134

Hi @carlos-zamora and @anna-dingler,
Could you please provide us update on this bug as issue is still repro.


Reorder plugins [idea]

Way to reorder plugins in the top bar?

Yes and no. You can move items by pressing the  key while dragging an item right or left in the menu, but they do not persist between reloads.

You can hack this by putting a number in front of the plugin name. They will load in order from lowest to highest (or a-z) from right to left in the menubar.

You can hack this by putting a number in front of the plugin name.

I can confirm this works in Sierra. Thanks!

Unfortunately, this no longer appears to work (for me, at least) in High Sierra.

See code change in #502


Write a Kotlin program to find the rank of a matrix

Description
Write a Kotlin program to find the rank of a matrix
The rank of a matrix is the dimension of the vector space generated by its columns. The rank of a matrix is also equal to the dimension of the vector space generated by its rows. The rank of a matrix is also equal to the number of pivots in its reduced row echelon form.
Input  :
1 2 3
4 5 6
7 8 9

Output :
2

How to contribute

Save the solution in program/FindTheRankOfAMatrix.kt file
Add FindTheRankOfAMatrix.kt file in find-the-rank-of-a-matrix folder

!assign


Printer: I can only add items to the top bar, not to the buttons on the page

I have added the following printer creation callback function to the PostScript Printer Applications:
static void   ps_printer_extra_setup(pappl_printer_t *printer,
				     void *data)
{
  char                  path[256];      // Path to resource

  //snprintf(path, sizeof(path), "%s/getdefaults", printer->uriname);
  snprintf(path, sizeof(path), "/ipp/printers/%s/getdefaults",
	   papplPrinterGetName(printer));
  //papplSystemAddResourceCallback(system, path, "text/html",
  //			       (pappl_resource_cb_t)ps_printer_web_get_defaults,
  //			       printer);
  papplPrinterAddLink(printer, "Defaults from Printer", path, true);

  //snprintf(path, sizeof(path), "%s/installable", printer->uriname);
  snprintf(path, sizeof(path), "/ipp/printers/%s/installable",
	   papplPrinterGetName(printer));
  //papplSystemAddResourceCallback(system, path, "text/html",
  //			       (pappl_resource_cb_t)ps_printer_web_installable,
  //			       printer);
  papplPrinterAddLink(printer, "Installable Options", path, true);
}

There are several lines commented out, as I did not write the code for the extra web interface pages yet and also issue #97 is not solved yet (so the way to create the paths is most probably wrong for now).
The few active lines (the papplPrinterAddLink()calls) create items in the individual printer's web interfaces, but only on the printer's pages (not in the printer entries on the system's main page) and only in the top bar. For a consistent user interface I would like to add these items also to the buttons of both the printer's page and the printer entry in the system's main page.
Is this possible? If not, I appreciate the addtion of an extra function which does exactly this and which I could add to te above function.
Screenshot

Here one sees the items "Defaults from Printer" and "Installable Options" in the black top bar but not under the buttons near the icon.

OK, I have updated papplPrinterAddLink and papplSystemAddLink to use a enum bitfield that specifies where the links are shown, in addition to the old HTTPS option. This gets used in most places to insert buttons as needed (with three exceptions: supply levels, identification, and test page since those depend on the current printer driver data...)
[master 17896d4] Update papplPrinter/SystemAddLink to accept an options bitfield (Issue #98)


common CCIP methods

Codecov Report

Merging #286 (361dae3) into main (8d3e589) will increase coverage by 9.66%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #286      +/-   ##
==========================================
+ Coverage   23.64%   33.31%   +9.66%
==========================================
  Files          17       13       -4
  Lines        2309     1603     -706
==========================================
- Hits          546      534      -12
+ Misses       1716     1023     -693
+ Partials       47       46       -1

Impacted Files
Coverage Δ

client/chainlink.go
52.66% <0.00%> (-11.22%)
:arrow_down:

client/chainlink_models.go
0.00% <ø> (ø)

client/mockserver.go
55.55% <0.00%> (-44.45%)
:arrow_down:

client/wallet.go

client/gas_stats.go

client/ethereum.go

client/blockchain.go

Continue to review full report at Codecov.

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


feat: Machine Migration

Fixes #
Description
How was this change tested?
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

156 of 184 (84.78%)  changed or added relevant lines in 22 files are covered.
43 unchanged lines in 9 files lost coverage.
Overall coverage increased (+0.4%) to 81.481%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/controllers/deprovisioning/drift.go
0
1
0.0%

pkg/controllers/deprovisioning/helpers.go
2
3
66.67%

pkg/metrics/metrics.go
0
1
0.0%

pkg/controllers/deprovisioning/types.go
1
3
33.33%

pkg/controllers/provisioning/provisioner.go
8
10
80.0%

pkg/controllers/deprovisioning/consolidation.go
4
7
57.14%

pkg/controllers/deprovisioning/events/events.go
32
35
91.43%

pkg/controllers/state/cluster.go
8
11
72.73%

pkg/controllers/deprovisioning/controller.go
14
18
77.78%

pkg/controllers/inflightchecks/controller.go
11
19
57.89%

Files with Coverage Reduction
New Missed Lines
%

pkg/controllers/deprovisioning/helpers.go
2
83.04%

pkg/controllers/inflightchecks/nodeshape.go
2
92.0%

pkg/controllers/node/controller.go
2
70.59%

pkg/test/cachesyncingclient.go
2
80.41%

pkg/controllers/provisioning/provisioner.go
3
77.41%

pkg/controllers/state/statenode.go
6
92.76%

pkg/controllers/deprovisioning/controller.go
7
78.53%

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

pkg/controllers/provisioning/scheduling/machinetemplate.go
12
77.78%

Totals

Change from base Build<PHONE_NUMBER>:
0.4%

Covered Lines:
6635

Relevant Lines:
8143

💛  - Coveralls


Add a generate craft endpoint

This is just way too confusing to do properly. There are so many edge cases. It's on the controller to know how to say this.


Updates for Home Assistant 2021.7.2

Motivation for this change
Updates that will be required for Home Assistant 2021.7.2
Things done

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

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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Relase notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 130055 at d4563d96 run on aarch64-linux 1

3 packages failed to build:

home-assistant
python38Packages.pywemo
python39Packages.pywemo

12 packages built successfully:

python38Packages.aiohomekit
python38Packages.pyhaversion
python38Packages.pyinsteon
python38Packages.pymazda
python38Packages.pysonos
python38Packages.zwave-js-server-python
python39Packages.aiohomekit
python39Packages.pyhaversion
python39Packages.pyinsteon
python39Packages.pymazda
python39Packages.pysonos
python39Packages.zwave-js-server-python

1 suggestion:

warning: unused-argument
Unused argument: pythonAtLeast.
Near pkgs/development/python-modules/aiohomekit/default.nix:9:3:
  |
9 | , pythonAtLeast
  |   ^

Note that build failures may predate this PR, and could be nondeterministic or hardware dependent.
Please exercise your independent judgement. Does something look off? Please file an issue or reach out on IRC.

Result of nixpkgs-review pr 130055 run on x86_64-linux 1

1 package failed to build:

home-assistant

16 packages built:

python38Packages.aiohomekit
python38Packages.pyhaversion
python38Packages.pyinsteon
python38Packages.pymazda
python38Packages.pysma
python38Packages.pysonos
python38Packages.pywemo
python38Packages.zwave-js-server-python
python39Packages.aiohomekit
python39Packages.pyhaversion
python39Packages.pyinsteon
python39Packages.pymazda
python39Packages.pysma
python39Packages.pysonos
python39Packages.pywemo
python39Packages.zwave-js-server-python


ci: use remote org for docker images

Uses the org of the remote git origin to set docker credentials and docker image org.

bors merge


Thoughts on prebuilt binaries

Hi, do you have thoughts on providing prebuilt binaries of Godot with the ECMAScript module already installed?
Specifically, making the builds as mentioned in the README
Compilation
Clone the source code of godot
Clone this module and put it into godot/modules/ and make sure the folder name of this module is ECMAScript
Recompile the godot engine (Only MinGW is supported on Windows for now!)

is a significant burden to getting started with the project (not to mention making binaries w/out tools for exporting published games). I was wondering if it makes sense to provide prebuilt binaries (or setup a CI/CD pipeline with Github Actions to build & publish them as part of the repo).

I was wondering if it makes sense to provide prebuilt binaries (or setup a CI/CD pipeline with Github Actions to build & publish them as part of the repo).
Yes that make sense.
I can only develop this project in my spare time, so I hope to spend time on improving and optimizing it. I would appreciate it if anyone could provide similar help.


Implement Mobile Client to watch family reactions

[x] Create Push Notifications Policy
[x] Associate with Windows Store registration
[x] Register for Push Notifications
[ ] Get Id of Push Notification and retrieve results from API Endpoint
[ ] Display results
[ ] Deploy to mobile devices

Optional get Picture of blob storage

Not Need due to Scenario changes


[docs] Add v0.18.0-alpha1 announcement

@AlexanderMoskovkin
Merge to update the website.
Preview at https://vasilystrelyaev.github.io/testcafe

Please double-check that nothing new made its way to this PR


Replace NewRandomVMIWithEphemeralDiskAndUserdata with libvmifact

What this PR does
Before this PR:
After this PR:

Fixes #
Why we need it and why it was done in this way
The following tradeoffs were made:
The following alternatives were considered:
Links to places where the discussion took place:
Special notes for your reviewer

Checklist
This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

[ ] Design: A design document was considered and is present (link) or not required
[ ] PR: The PR description is expressive enough and will help future contributors
[ ] Code: Write code that humans can understand and Keep it simple
[ ] Refactor: You have left the code cleaner than you found it (Boy Scout Rule)
[ ] Upgrade: Impact of this change on upgrade flows was considered and addressed if required
[ ] Testing: New code requires new unit tests. New features and bug fixes require at least on e2e test
[ ] Documentation: A user-guide update was considered and is present (link) or not required. You want a user-guide update if it's a user facing feature / API change.
[ ] Community: Announcement to kubevirt-dev was considered

Release note

Thank you for the cleanup @sradco !
In the whole test suite, I see a total of 10 calls to this function, spread across 4 files. Any chance you could tackle the remaining 8 so we can remove a deprecated function and shrink tests/utils.go a bit further? :slightly_smiling_face:
Also maybe we can create a global CirrosUserData const somewhere instead of declaring a variable each time?

Hi, I updated based on your requests. Please review.
@fossedihelm @jean-edouard

/hold
@sradco As per @fossedihelm request, please provide a meaningful PR description.

/hold @sradco As per @fossedihelm request, please provide a meaningful PR description.

Updated. Please let me know if its ok. @enp0s3 .

/unhold

/hold
failures are relevant.
I think we are in the same case of this ongoing discussion https://github.com/kubevirt/kubevirt/pull/11304#discussion_r1530116645
Or maybe not, not sure honestly

/hold failures are relevant. I think we are in the same case of this ongoing discussion #11304 (comment) Or maybe not, not sure honestly

It seems dry-run test suite fails because it assume the vmi object has initialized namespace field, which is correct until this PR changes.
With dropping the use of NewRandomVMIWithEphemeralDisk that calls NewRandomVMI the vmi Namspace is not set anywhere (NewRandomVMI set the vmi namespace).
To make the tests work the tests should be changed to specify the namespace on vmi creation.
And its better to do it by passing the namespace to the client (i.e.: not depending on vmi.Namespace).

/approve cancel

@sradco @fossedihelm  @ormergi Sorry, perhaps the refactoring needs a deeper look, which I am not capable of ATM.


feat: add examples of iv curves

closes #262

Can you fix the type issue?

@maasencioh could you check that the CI is passing the tests ?

Is now passing the test, but as soon as https://github.com/cheminfo/analysis/issues/8 is fixed I'll migrate to iv-analysis

Thank you @targos 👏


local .cargo/config build.target ignored in project of workspace

By this document, .cargo/config.toml supports local configuration. So I put .cargo/config in project directory, not in root of workspace.
I put config.toml like below
[build]
target = "wasm32-unknown-unknown"

Because that project was only for wasm32.
It's fine to run cargo check in that project, but rust-analyzer seems not to check the build.target i put in config.toml, so they ignore #[cfg(target_family = "wasm")].
to be clear, i didn't put any .cargo/config in root of workspace.
rust-analyzer version:  0add6e95e 2021-12-20 stable
rustc version: 1.56.1 (59eed8a2a 2021-11-01)

We ask cargo for the target info and the like, but we only do this on the workspace level so we don't currently know about these things in sub-crates.

We ask cargo for the target info and the like, but we only do this on the workspace level so we don't currently know about these things in sub-crates.

Recorded as a separate issue: https://github.com/rust-analyzer/rust-analyzer/issues/11268


High CPU utilization

inti() {
  let thisp = this;
  var app = new PIXI.Application({
    backgroundColor: 0xf0f3fa,
    forceCanvas: true
  });
  thisp.app = app;
  document.getElementById('pixiview').appendChild(app.view);
  thisp.app.renderer.resize(window.innerWidth, window.innerHeight - 65);
},

my The display has a resolution of 1080p;
execute init function High CPU utilization is 37%;
remove thisp.app.renderer.resize(window.innerWidth, window.innerHeight - 65)  CPU usage is down 15%
resize methods if defective?

Expected Behavior
Current Behavior
Possible Solution
Steps to Reproduce
Environment

pixi.js version: e.g. 4.8.2
Browser & Version: e.g. Chrome 71
OS & Version: e.g. windows 7
Running Example: url

@grasilife do you have any other information to share or did you resolve your issue?

he

@grasilife您是否有任何其他信息要分享或您是否解决了您的问题？

hello,If you use websocket to continuously push data, there will still be a memory leak in the line drawing and update points


Dropped response messages when sending non-OK status code

I work on the grpc-swift project. We recently discovered an issue where having the server send a status code other than OK occasionally drops the last one or more response messages, even though we wait for the send operation's callback to have been called. I.e. the messages should have passed outgoing flow control, yet sending a non-OK sometimes manages to drop one more of the the last few messages that had been enqueued.
Note that we currently use gRPC-Core 1.7.3, as newer versions currently cause C++11-related incompatibilities with the Swift build system. This can be reproduced on both macOS and Linux.
I also tried to reproduce the same behavior with the C++ implementation (also at version 1.7.3), but was not able to. So it is more than likely that this is caused by flaws in our implementation, but it would be great if some of you had pointers for where to look or what we could try out.
You can find the code that triggers the issue at GRPCTests.swift#L472: If we change the call to requestHandler.sendStatus to send a code other than .ok, sometimes the last few messages get dropped, even though we call requestHandler.call.messageQueueEmpty.wait() to wait for all messages to have passed outgoing flow control (see Call.swift#L162 and following for the implementation of that). Also, if we sleep the current thread for just 1 ms before calling requestHandler.sendStatus, the always messages get delivered as expected. That would indicate that we haven't successfully delivered all messages yet, but when sendStatus gets called we should definitely have confirmation from the gRPC library that all responses have been handed over successfully to gRPC.
Any pointers as to what could be going wrong would be appreciated.

Some relevant discussion here https://github.com/grpc/grpc/issues/12824

Thanks for the info! Note that we have observed this behavior both for unary and for server-streaming RPCs, but so far only with the Swift (but not the C++) implementation. So I’m less concerned about the discussion about whether it is actually desirable to return responses and non-OK statuses, but rather whether the behavior we are seeing is „expected as implemented“, if you know what I mean ;-) Because my understanding is that once we have passed a message to the transport layer, it should not be able to pre-empt that message just by returning a non-OK status code — but that’s the behavior we are sometimes observing. Again, this is most likely a flaw in our implementation, but any pointers as to what we might be doing wrong (e.g. an explanation of which circumstances would allow these messages to be dropped) would be appreciated.

From this discussion it looks like what you are seeing is the expected behavior. Since the transport is async in nature, it is possible that the message has not yet gone out when non-OK status code was returned. But yes, we have to hear from someone who knows how this will actually behave in C++ implementation. @vjpai, your thoughts?

Thanks @srini100, that seems to cover exactly the case we are seeing. From my side, this can be closed, unless someone wants to keep this thread to discuss whether this behavior is desired.


Example configs do not work

Description
When using the provided examples/config/config.json or examples/config/config.yaml files, the contents of the config files are ignored and only 5e SRD content is generated. Any modifications to these files are also ignored.
Steps to Reproduce

Download the latest binary release (2.0.4) and extract it.
Copy the 5eTools repo to the bin folder.
Copy the examples folder from the source files to the bin folder.
Run ttrpg-convert.exe --index -o dm -c examples/config/config.json -g 5e 5etools-mirror-1.github.io-master/data

Expected Behavior

Output folder structure should be dm/compendium with no rules folder generated. rules folder should instead be under dm/compendium.
Example config should include data from several non-SRD sources, such as the feats from the PHB.
Background files should be generated with images since the example config specifies to use the template images-background2md.txt.

Actual Behavior

All config settings are ignored. Only 5e SRD content is generated.

Root Cause

The example config files have each game's settings in a separate object/node in the config files (e.g. { "5e" : { }, "pf2e" : { } }.
Converting the top-level objects to individual config files (without 5e or pf2e as the top-level object) fixes this issue.

Examples
Original config.json:
{
  "5e" : {
    "from" : [
      "PHB",
      "CRB"
    ],
    "paths" : {
      "compendium" : "/compendium/",
      "rules" : "/compendium/rules/"
    },
    "include" : [
      "race|changeling|mpmm"
    ],
    "includeGroup" : [
      "familiars"
    ],
    "exclude" : [
      "monster|expert|dc",
      "monster|expert|sdw",
      "monster|expert|slw"
    ],
    "excludePattern" : [
      "race|.*|dmg"
    ],
    "template" : {
      "background" : "examples/templates/tools5e/images-background2md.txt"
    },
    "useDiceRoller" : false,
    "full-source" : {
      "book" : [
        "PHB"
      ],
      "adventure" : [
        "LMoP"
      ]
    }
  },
  "pf2e" : {
    "from" : [ ],
    "paths" : {
      "compendium" : null,
      "rules" : null
    },
    "include" : [ ],
    "includeGroup" : [ ],
    "exclude" : [ ],
    "excludePattern" : [ ],
    "template" : { },
    "useDiceRoller" : false,
    "full-source" : {
      "book" : [ ],
      "adventure" : [ ]
    }
  }
}

Fixed config.json for just the 5e content:
{
  "from": ["PHB", "CRB"],
  "paths": {
    "compendium": "/compendium/",
    "rules": "/compendium/rules/"
  },
  "include": ["race|changeling|mpmm"],
  "includeGroup": ["familiars"],
  "exclude": ["monster|expert|dc", "monster|expert|sdw", "monster|expert|slw"],
  "excludePattern": ["race|.*|dmg"],
  "template": {
    "background": "examples/templates/tools5e/images-background2md.txt"
  },
  "useDiceRoller": false,
  "full-source": {
    "book": ["PHB"],
    "adventure": ["LMoP"]
  }
}

Environment:

OS: Windows 11
Version: Tested with binary release 2.0.4 and also by compiling source using Docker.

OOPS! Yes. you're right. I should probably just spit those defaults out as two separate files (4 total?).


Technical question about sampling function

Hi,
I was wondering why every diffusion models implementation uses this specific sampling procedure?
When I take a look at the DDPM paper they show the sampling algorithm to be:

However, it seems that no implementation follows that and rather takes a really complicated route of first predicting the noise, then calculating x_0, then the mean and logvariance and then construct x_t-1 from that.
I implemented the above algorithm while using your codebase:
@torch.no_grad()
    def my_sample(self, n):
        x = torch.randn((n, 3, self.image_size, self.image_size)).to(self.device)
        for i in tqdm(reversed(range(1, self.num_timesteps)), position=0):
            t = (torch.ones(n) * i).long().to(self.device)
            predicted_noise = self.denoise_fn(x, t)
            beta = extract(self.betas, t, x.shape)
            alpha_hat = extract(self.alphas_cumprod, t, x.shape)
            alpha = 1. - beta
            if i > 1:
                noise = torch.randn_like(x)
            else:
                noise = torch.zeros_like(x)
            x = 1 / torch.sqrt(alpha) * (x - ((1 - alpha) / (torch.sqrt(1 - alpha_hat))) * predicted_noise) + torch.sqrt(beta) * noise
            x = x.clamp(-1., 1.)
        return x.add(1).mul(0.5)

But the results are just gray images with a bit of shape and colour:
(top is the normal sampling, like your code, bottom is using the above sampling function)

Do you have any idea why this kind of sampling does not work?

This is weird. (predicted noise -> x_0 -> x_t-1) uses eq. 9, and your implementation uses eq.10. I've verified and they are mathematically equivalent.
I'd suggest you to check the first iterations (largest t) to see the two routines produce very similar number.

Hey @dome272 , I am not sure why the code framework here does not work with the equation you referenced in the paper, and I have not had time to look into in depth, but someone else developed a really nice google colab file that implements the DDPM algorithm step-by-step similar to this code-base, and they do use the equation in the algorithm you referenced above. I have tested their code myself, and it gives good-looking outputs, so I think there is some issue deep within the framework of @lucidrains implementation. Linked below is the google colab framework I referenced earlier, feel free to try/experiment with it yourself.
https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/annotated_diffusion.ipynb


Add AKS data-gatherer

This adds the first implementation of the AKS datagatherer and a sample package that uses it.
Signed-off-by: Jose Fuentes<EMAIL_ADDRESS>

It can be run with:
go run . check -c ./examples/aks.preflight.yaml

This is an example of the data that is gatherered:
{
  "aks": {
    "Cluster": {
      "properties": {
        "networkProfile": {
          "dockerBridgeCidr": "<IP_ADDRESS>/16",
          "dnsServiceIP": "<IP_ADDRESS>",
          "serviceCidr": "<IP_ADDRESS>/16",
          "podCidr": "<IP_ADDRESS>/16",
          "networkPlugin": "kubenet"
        },
        "enableRBAC": true,
        "nodeResourceGroup": "MC_preflight_preflight-test_uksouth",
        "addonProfiles": {
          "httpApplicationRouting": {
            "config": null,
            "enabled": false
          }
        },
        "servicePrincipalProfile": {
          "clientId": "***********************"
        },
        "agentPoolProfiles": [
          {
            "osType": "Linux",
            "maxPods": 110,
            "storageProfile": "ManagedDisks",
            "osDiskSizeGB": 100,
            "vmSize": "Standard_B2s",
            "count": 1,
            "name": "agentpool"
          }
        ],
        "fqdn": "preflight-test-dns-f2de96e5.hcp.uksouth.azmk8s.io",
        "dnsPrefix": "preflight-test-dns",
        "kubernetesVersion": "1.14.8",
        "provisioningState": "Succeeded"
      },
      "type": "Microsoft.ContainerService/ManagedClusters",
      "name": "preflight-test",
      "location": "uksouth",
      "id": "/subscriptions/*****************/resourcegroups/preflight/providers/Microsoft.ContainerService/managedClusters/preflight-test"
    }
  }
}

The credentials file required for this has been obtained with the Azure CLI by running az account get-access-token > /tmp/credentials.json.
This access token is very short-living (max 1 hour), which is suboptimal for this use case. I am exploring other alternatives to authenticate against Azure.

@j-fuentes I can confirm I've been able to run this against an actual AKS cluster and it worked correctly, so I've approved it in its current form. If you change the AKS client I will give another test, or if you decide to leave it as is I can lgtm it!

@j-fuentes I can confirm I've been able to run this against an actual AKS cluster and it worked correctly, so I've approved it in its current form. If you change the AKS client I will give another test, or if you decide to leave it as is I can lgtm it once rebased.

I have just rebased the current master.
After checking Azure-samples/azure-sdk-for-go-samples it does not seem like something we should rely on because of several reasons: it looks like "sample" code, I don't think it is designed to be a library.

/lgtm