Not fetching records matched by JSON column

Describe the bug
ORM escapes value in where clause on JSON column. Test below runs this query:
select `u0`.* from `user` as `u0` where `u0`.`value` = '\"test\"' limit 1

which returns 0 rows. It works and returns record if value isn't "stringified":
`select `u0`.* from `user` as `u0` where `u0`.`value` = 'test' limit 1`

To Reproduce
@Entity()
class User {
  @PrimaryKey({ type: 'number' })
  id?: number;

  @Property({ type: 'json' })
  value: string
}

test('It should fetch record matching by json column', async() => {
  const orm = await MikroORM.init({
    type: 'mysql',
    dbName: 'mo-test',
    host: '<IP_ADDRESS>',
    user: 'root',
    password: '123',
    port: 3306,
    allowGlobalContext: true,
    entities: [User],
    metadataProvider: TsMorphMetadataProvider,
    debug: true,
  });
  await orm.schema.refreshDatabase();
  const em = orm.em;

  const user = new User();
  user.id = 1
  user.value = 'test'

  await em.persistAndFlush(user)

  em.clear();

  const c = await em.findOne(User, {
    value: 'test'
  })

  expect(c).not.toBeNull();
});

Versions

Dependency
Version

node
18.12.1

typescript
4.9.5

mikro-orm
5.6.15

your-driver
mysql

Technically it is a correct query, I am sure it would work fine when executed directly against the database (if not, mysql is really super weird, but hey, that's always possible too). The stored value is stringified too... Note that the very same query works with other drivers.
The driver tries to do some JSON processing, but it's a bit weakly implemented, there are inconsistencies, especially with the string value example. I found also this old and unresolved issue https://github.com/sidorares/node-mysql2/issues/1072
I am in the middle of a larger refactor of how the JSON values are processed, trying to disable any JSON handling in the lowest level, but apparently, it's not that easy, hard to call this configurable (the typeCast option is not helping at all). I will try to deal with this for once, worst case by adding some try/catch blocks to places that are quirky. The refactor will be a bit breaking, so will leave that for v6 most probably.

Thanks for quick reply and great ORM! mysql is weird indeed. First query returns nothing when executed directly in DB.
I managed to make it work and prevent escaping strings via:
await em.findOne(User, {
  [expr(`JSON_UNQUOTE(value)`)]: 'test',
})

No ideal, but it works.


implement gallery using nb_thumb

This PR makes the following changes:
Adds the gallery/ directory which has:
gallery
├── gallery.qmd
├── gallery_plot_data
│   ├── ... generated thumbnails from `nb_thumb` used for gallery.
└── nbs
    ... source notebooks for galleries

Also modified _quarto.yml to add a Gallery page and added styles.css for what is required to render the gallery cards.
@machow if previewing this locally, you will want to pip install nb_thumb

@machow this is ready for review

Hey, thanks for adding this example of using nb_thumb to reproduce the plotnine gallery. It looks great, and it looks like there are just a few differences from the current plotnine docs:

the whole gallery card is clickable in plotnine
clicking a gallery card links not to the underlying notebook, but a section of corresponding API docs (where the notebook has been embedded)
this approach requires modifying the notebooks with labels (which feels nicer, and seems like not crazy to do in the plotnine-examples repo?!)

I want to be careful to leave a point for point translation, in order to check off a doc migration, so hope it's okay I rolled in a rough implementation of its gallery in this PR (https://github.com/machow/plotnine-docs-demo/pull/15).
We should definitely..

add a reference to nb_thumb on the quartodoc homepage (since it's super useful)
walk @isabelizimm through nb_thumb, since she'll be giving a talk on quartodoc at posit::conf()!

Talked a bit more about this on slack--I'm going to close, but let's plan to loop back and either..

use nb_thumb for this site, OR
if this site's gallery is a bit quirkier than the normal case, keep the custom gallery, and plug nb_thumb into somewhere like siuba.org 's example page!


Misc bug fixes

Found a few bugs when I was setting this up:

Readme says to create volume ergo-node, while Docker yml specifies ergo_node
Found issues with variables while running build.sh

Nice catch!


compute: added F7T_COMPUTE_BASE_FS env var for FS selection of job di…

With this workaround now sbatch files will be stored in a filesystem depending on the machine where it is running (since $HOME or $SCRATCH might not be available as env vars for some systems).
New env var in common.env called F7T_COMPUTE_BASE_FS, with is a semicolon-separated list of filesystems available depending on the index of the machine chosen (ie: it's related to F7T_SYSTEMS_PUBLIC index).
This new var replaces F7T_JOB_BASE_DIR

Also: removed cd command before sbatch execution and using now --chdir option suggested by @aledabin

Fixed job_dir var on line 388 as requested.


[models] Add unique constraint on user.email

I assumed that the default django user model had a unique constraint on the email field, but I was wrong.
We need to add this.

But I wasn't able to add same email, while adding a new user.

@anurag-ks that's because of @R9295's patch #26

After further testing and thought I concluded that we can't do this or we won't be able to generate freeradius users with no email address.
We can't add a database constraint but we can add application validation logic which checks that if a user has an email set, no other user except him has the same email, otherwise raise a ValidationError.

@nemesisdesign please i don't understand what is needed here. when i looked at the patch at #26 , i see the patch tries solves by problem by validating if the email already exist or not. Please can you through more light?

or do you want a validation to be written at the level of Users model or how?

anyone working on it?

@jeffysam6 the pull request up there means someone is working on the issue already. :smile:


How to increase the speed of IDM vehicle

Hello, thanks for your great work!  I set the initial speed of IDM vehicle to range 28~32。But the speed of IDM vehicle  seems not so fast  after the initial state. How to set the parameters to get higher speed for IDM vehicle
thanks!

Hi,
Depending on how you create the vehicles, their target_speed could be lower that their initial speed, possibly.
You could try to set this target_speed attribute directly (or just print its value to confirm that this is the cause of issue).


Doubt - Balancing loads between managements

Good afternoon, everyone. How are you?
I am implementing an nginx for load balancing between managements, and since I currently have two managements in my environment, it is getting close to the demand to increase to more managements. Currently, I have two because one serves as a slave and the other as a backup, both with a keepalived configured with a VIP interface that goes up when checking if CloudStack is running.
I would like to know if anyone has a template that I can use as a reference to correct my file. I am implementing nginx for the first time to balance the loads between the two managements.
Currently, I am only using keepalived for cases of connection loss and for the elevation of the VIP interface.
I have a file that I put together, but I would like to check a case from someone who has it in production and see if they can comment on how it is working.
I will also leave below the template I am creating for this implementation:
cloudstack_proxy.conf
_upstream cloudstack_backend {
server:8250;
server :8250;
}
upstream cloudstack_backend_8080 {
server :8080;
server :8080;
}
server {
listen 80;
server_name acs..com.br;
location / {
    proxy_pass http://cloudstack_backend;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
}

}
server {
listen 443 ssl;
server_name acs..com.br;
ssl_certificate /<certificates>
ssl_certificate_key /<certificates>

location / {
    proxy_pass http://cloudstack_backend;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
}

}
server {
listen 8080;
server_name acs..com.br;
location / {
    proxy_pass http://cloudstack_backend_8080;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
}

}
server {
listen 8250;
server_name acs..com.br;
location / {
    proxy_pass http://cloudstack_backend;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
}

}_

@IgaoWolf NGINX configuration can be like this
upstream cloudstack_webui_8080 {
  # Balance based on the source. You can also use cookies for persistence btw!
  ip_hash;
  server <MGMT_IP>:8080;
  server <MGMT_IP>:8080;
}

server {
  listen 80;
  server_name acs..com.br;
  return 308 https://acs..com.br$request_uri;
}

server {
  listen 443 ssl;
  server_name acs..com.br;

  ssl_certificate /<certificates>
  ssl_certificate_key /<certificates>

  location / {
    proxy_pass http://cloudstack_webui_8080;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
  }
}

For systemVMs, use the native feature described at https://www.shapeblue.com/software-based-agent-lb-for-cloudstack/
And keepalived, make sure you check the nginx process in vrrp_script as script "killall -0 nginx".
You may also use HAProxy and follow the below reference configuration.
# WEBUI

frontend webui-http
        mode http
        bind *:80
        http-request redirect scheme https unless { ssl_fc }

frontend webui-https
        mode http
        bind *:443 ssl crt /path/to/cert_key.pem alpn http/1.1
        default_backend webui-8080

backend webui-8080
        option forwardfor
        option httpchk HEAD /client/
        balance source
        mode http
        server mgmt-01 <MGMT_IP>:8080 check
        server mgmt-02 <MGMT_IP>:8080 check

For systemVMs, use the native feature described at https://www.shapeblue.com/software-based-agent-lb-for-cloudstack/
Thanks,
Jayanth Reddy

@IgaoWolf, in addition to https://github.com/apache/cloudstack/issues/8221#issuecomment-1807118065, bear in mind that ACS considers the first entry of header X-Forwarded-For as the request source IP. Users are able to modify this header; therefore, if the firewall doing the NAT to your floating IP is not handling it properly, users will bypass some configurations, like api.allowed.source.cidr.list.

Hello @zap51 , Everything alright?
As mentioned earlier, we were analyzing the choice between nginx and haproxy, and we ended up preferring the use of haproxy. So, I'll be setting up this proxy for load balancing between the managements and also for access via URL and the use of SSL certificates to access by name. I just had one doubt: I would like to know if it won't be necessary to configure port 8250 as well, in addition to the http/s ports.
Team, I just set up this file for ports 8250, 8080, and 443.
global
log <IP_ADDRESS>   local0
log <IP_ADDRESS>   local1 notice
#log loghost    local0 info
maxconn 8192
chroot /usr/share/haproxy
user haproxy
group haproxy
daemon
defaults
option http-server-close
log global
mode http
option dontlognull
retries 3
option redispatch
maxconn 2000
timeout connect 5s
timeout client  120s
timeout server  120s
listen stats
bind :9245
mode http
stats hide-version
stats enable
stats uri /admin?stats
stats realm Haproxy\ Statistics
stats auth admin:.
frontend vs-acs-gui-http
bind :80
http-request redirect scheme https if !{ ssl_fc }
    bind <IP-MGMT>:443 ssl crt /etc/haproxy/certs/wildcard.crt
    mode http
    option httplog
    option forwardfor
    maxconn 2000
    acl path_root path /
    redirect location https://acs.<domain>.com.br/client/ if path_root
    default_backend pool-acs-gui-http

frontend vs-acs-gui-https-int
bind :443 ssl crt /etc/haproxy/certs/wildcard.crt
mode http
option httplog
option forwardfor
maxconn 2000
acl path_root path /
redirect location https://acs..com.br/client if path_root
default_backend pool-acs-gui-http
backend pool-acs-gui-http
mode http
option httplog
option forwardfor
balance leastconn
fullconn 2000
cookie SERVERID insert indirect
server  :8080 maxconn 1000 check inter 5s cookie
server  :8080 maxconn 1000 check inter 5s cookie
    frontend vs-acs-tcp-8250
    bind <IP-MGMT>:8250
    mode tcp
    option tcplog
    maxconn 2000
    default_backend pool-acs-tcp-8250

backend pool-acs-tcp-8250
mode tcp
option tcplog
balance source
fullconn 2000
hash-type consistent
server  :8250 maxconn 1000 check inter 5s
server  :8250 maxconn 1000 check inter 5s

Hi,
Please read https://www.shapeblue.com/software-based-agent-lb-for-cloudstack
Thanks,
Jayanth

Is this resolved, can we close the ticket?


Remove error "Dataset already contains the target column" when predicting

Is your feature request related to a problem?
Functions that compute metrics of a classifier/regressor expect a tagged table. predict specifically forbids tables that include the target column already, so also a tagged table.
Desired solution
Don't raise an error in predict if the input already has the target. Simply overwrite the target column instead.
Possible alternatives (optional)
No response
Screenshots (optional)
No response
Additional Context (optional)
No response

:tada: This issue has been resolved in version 0.22.0 :tada:
The release is available on:

v0.22.0
GitHub release

Your semantic-release bot :package::rocket:


I want to run my testcafe testcases on browserstack for macOS ,iOS and Andriod . I need the list of browser alias for running on this OS.

HEADS UP!
For TestCafe API, usage and configuration inquiries, we recommend StackOverflow - an amazing platform for users to ask and answer questions.
We try to keep the GitHub issues tracker for bugs and feature requests only (see also: Contributing).
You may also find answers in our up-to-date documentation and answered questions on StackOverflow. This may save your time.
If you have already looked there and have not found an appropriate answer, file a new question on StackOverflow.

I have tried executing the command - testcafe -b browserstack but got below error message: 'testcafe' is not recognized as an internal or external command, operable program or batch file.
I have installed testcafe locally and globally. Also the testcafe-browser-provider-browserstack is installed locally and globally.
Also have added the path of npm folder present in C:\Users\AppData\Roaming\npm in Path env variable

Please show the output of the following command so that we can make sure that the TestCafe package is installed globally:
npm ls -g testcafe

The first line of the output will include a path to the location of global packages in your system:

Then, run this command to make sure that it's the same as in your PATH:
echo %PATH%

If you have local packages installed in the working directory, the use of npx can be an appropriate way to resolve the issue:
npx testcafe -b browserstack

As you stated in the text of your issue, you can submit a new question to StackOverflow with a more detailed description of the issue.


Lithops from main branch not working anymore.

I have encountered an issue with the repo where the code stops working as expected starting from commit e636cde6adf695f7990096c43e8694c41d36eac9. I haven't been able to locate what is causing the problem.
Steps to reproduce:

Clone the repository in a new pythonv3.12 environment
Checkout to the faulty commit
Install current package via pip once inside root dir (pip install .)
Run lithops test

Expected output (extracted from reproducing those steps but using earlier commit 2f2fa7d0e5b95d42380c6b8306ea38af6c7c03f0):
2024-03-06 12:48:42,509 [INFO] config.py:139 -- Lithops v3.1.3.dev0 - Python3.12
2024-03-06 12:48:42,510 [DEBUG] config.py:106 -- Config file not found. Setting Lithops to Localhost mode
2024-03-06 12:48:42,510 [DEBUG] config.py:174 -- Loading compute backend module: localhost
2024-03-06 12:48:42,510 [DEBUG] config.py:233 -- Loading Storage backend module: localhost
2024-03-06 12:48:42,513 [DEBUG] localhost.py:36 -- Creating Localhost storage client
2024-03-06 12:48:42,514 [INFO] localhost.py:39 -- Localhost storage client created
2024-03-06 12:48:42,514 [DEBUG] localhost.py:60 -- Creating Localhost compute client
2024-03-06 12:48:42,514 [INFO] localhost.py:70 -- Localhost compute v1 client created
2024-03-06 12:48:42,515 [DEBUG] invokers.py:93 -- ExecutorID 47a3b2-0 - Invoker initialized. Max workers: 1
2024-03-06 12:48:42,516 [DEBUG] localhost.py:261 -- Starting python environment for python
2024-03-06 12:48:42,516 [DEBUG] localhost.py:264 -- Setting up python environment
2024-03-06 12:48:42,694 [DEBUG] executors.py:148 -- Function executor for localhost created with ID: 47a3b2-0
2024-03-06 12:48:42,694 [INFO] invokers.py:107 -- ExecutorID 47a3b2-0 | JobID A000 - Selected Runtime: python
2024-03-06 12:48:42,695 [DEBUG] storage.py:474 -- Runtime metadata found in local disk cache
2024-03-06 12:48:42,696 [DEBUG] job.py:242 -- ExecutorID 47a3b2-0 | JobID A000 - Serializing function and data
2024-03-06 12:48:42,698 [DEBUG] serialize.py:73 -- Referenced Modules: lithops
2024-03-06 12:48:42,698 [DEBUG] module_dependency.py:109 -- Module 'lithops' is already installed in the runtime, skipping
2024-03-06 12:48:42,698 [DEBUG] serialize.py:118 -- Modules to transmit: None
2024-03-06 12:48:42,699 [DEBUG] job.py:276 -- ExecutorID 47a3b2-0 | JobID A000 - Uploading function and modules to the storage backend
2024-03-06 12:48:42,699 [DEBUG] job.py:302 -- ExecutorID 47a3b2-0 | JobID A000 - Uploading data to the storage backend
2024-03-06 12:48:42,700 [INFO] invokers.py:172 -- ExecutorID 47a3b2-0 | JobID A000 - Starting function invocation: hello() - Total: 1 activations
2024-03-06 12:48:42,700 [DEBUG] invokers.py:177 -- ExecutorID 47a3b2-0 | JobID A000 - Worker processes: 8 - Chunksize: 8
2024-03-06 12:48:42,700 [DEBUG] localhost.py:131 -- ExecutorID 47a3b2-0 | JobID A000 - Putting job into localhost queue
2024-03-06 12:48:42,701 [DEBUG] localhost.py:91 -- Staring localhost job manager
2024-03-06 12:48:42,702 [DEBUG] invokers.py:253 -- ExecutorID 47a3b2-0 | JobID A000 - Job invoked (0.002s) - Activation ID: 47a3b2-0-A000
2024-03-06 12:48:42,702 [INFO] invokers.py:208 -- ExecutorID 47a3b2-0 | JobID A000 - View execution logs at /tmp/lithops-acando/logs/47a3b2-0-A000.log
2024-03-06 12:48:42,703 [DEBUG] localhost.py:102 -- ExecutorID 47a3b2-0 | JobID A000 - Running 1 activations in the localhost worker
2024-03-06 12:48:42,703 [DEBUG] monitor.py:427 -- ExecutorID 47a3b2-0 - Starting Storage job monitor
2024-03-06 12:48:42,704 [INFO] executors.py:491 -- ExecutorID 47a3b2-0 - Getting results from 1 function activations
2024-03-06 12:48:42,704 [INFO] wait.py:101 -- ExecutorID 47a3b2-0 - Waiting for 1 function activations to complete
2024-03-06 12:48:44,045 [DEBUG] localhost.py:106 -- ExecutorID 47a3b2-0 | JobID A000 - Execution finished
2024-03-06 12:48:44,046 [DEBUG] localhost.py:111 -- Localhost job manager finished
2024-03-06 12:48:44,707 [DEBUG] monitor.py:142 -- ExecutorID 47a3b2-0 - Pending: 0 - Running: 0 - Done: 1
2024-03-06 12:48:44,707 [DEBUG] monitor.py:455 -- ExecutorID 47a3b2-0 - Storage job monitor finished
2024-03-06 12:48:45,709 [DEBUG] future.py:230 -- ExecutorID 47a3b2-0 | JobID A000 - Got status from call 00000 - Activation ID: db0c69df64a8 - Time: 0.03 seconds
2024-03-06 12:48:45,709 [DEBUG] future.py:287 -- ExecutorID 47a3b2-0 | JobID A000 - Got output from call 00000 - Activation ID: db0c69df64a8
2024-03-06 12:48:45,710 [INFO] executors.py:607 -- ExecutorID 47a3b2-0 - Cleaning temporary data
2024-03-06 12:48:45,712 [DEBUG] executors.py:516 -- ExecutorID 47a3b2-0 - Finished getting results

Actual output (extracted from faulty commit as indicated in the steps):
2024-03-06 12:51:48,531 [INFO] config.py:139 -- Lithops v3.1.3.dev0 - Python3.12
2024-03-06 12:51:48,531 [DEBUG] config.py:106 -- Config file not found. Setting Lithops to Localhost mode
2024-03-06 12:51:48,532 [DEBUG] config.py:174 -- Loading compute backend module: localhost
2024-03-06 12:51:48,532 [DEBUG] config.py:233 -- Loading Storage backend module: localhost
2024-03-06 12:51:48,535 [DEBUG] localhost.py:36 -- Creating Localhost storage client
2024-03-06 12:51:48,535 [INFO] localhost.py:39 -- Localhost storage client created
2024-03-06 12:51:48,535 [DEBUG] localhost.py:60 -- Creating Localhost compute client
2024-03-06 12:51:48,536 [INFO] localhost.py:70 -- Localhost compute v1 client created
2024-03-06 12:51:48,537 [DEBUG] invokers.py:93 -- ExecutorID d2fd46-0 - Invoker initialized. Max workers: 1
2024-03-06 12:51:48,537 [DEBUG] localhost.py:302 -- Starting docker environment for python
2024-03-06 12:51:48,537 [DEBUG] localhost.py:307 -- Setting up Docker environment
2024-03-06 12:51:48,720 [DEBUG] executors.py:148 -- Function executor for localhost created with ID: d2fd46-0
2024-03-06 12:51:48,720 [INFO] invokers.py:107 -- ExecutorID d2fd46-0 | JobID A000 - Selected Runtime: python
2024-03-06 12:51:48,720 [DEBUG] storage.py:474 -- Runtime metadata found in local disk cache
2024-03-06 12:51:48,721 [DEBUG] job.py:242 -- ExecutorID d2fd46-0 | JobID A000 - Serializing function and data
2024-03-06 12:51:48,723 [DEBUG] serialize.py:73 -- Referenced Modules: lithops
2024-03-06 12:51:48,723 [DEBUG] module_dependency.py:109 -- Module 'lithops' is already installed in the runtime, skipping
2024-03-06 12:51:48,724 [DEBUG] serialize.py:118 -- Modules to transmit: None
2024-03-06 12:51:48,724 [DEBUG] job.py:276 -- ExecutorID d2fd46-0 | JobID A000 - Uploading function and modules to the storage backend
2024-03-06 12:51:48,725 [DEBUG] job.py:302 -- ExecutorID d2fd46-0 | JobID A000 - Uploading data to the storage backend
2024-03-06 12:51:48,726 [INFO] invokers.py:172 -- ExecutorID d2fd46-0 | JobID A000 - Starting function invocation: hello() - Total: 1 activations
2024-03-06 12:51:48,726 [DEBUG] invokers.py:177 -- ExecutorID d2fd46-0 | JobID A000 - Worker processes: 8 - Chunksize: 8
2024-03-06 12:51:48,726 [DEBUG] localhost.py:132 -- ExecutorID d2fd46-0 | JobID A000 - Putting job into localhost queue
2024-03-06 12:51:48,727 [DEBUG] localhost.py:92 -- Staring localhost job manager
2024-03-06 12:51:48,728 [DEBUG] invokers.py:253 -- ExecutorID d2fd46-0 | JobID A000 - Job invoked (0.002s) - Activation ID: d2fd46-0-A000
2024-03-06 12:51:48,728 [INFO] invokers.py:208 -- ExecutorID d2fd46-0 | JobID A000 - View execution logs at /tmp/lithops-acando/logs/d2fd46-0-A000.log
2024-03-06 12:51:48,729 [DEBUG] localhost.py:103 -- ExecutorID d2fd46-0 | JobID A000 - Running 1 activations in the localhost worker
2024-03-06 12:51:48,729 [DEBUG] monitor.py:427 -- ExecutorID d2fd46-0 - Starting Storage job monitor
2024-03-06 12:51:48,729 [INFO] executors.py:491 -- ExecutorID d2fd46-0 - Getting results from 1 function activations
2024-03-06 12:51:48,730 [INFO] wait.py:101 -- ExecutorID d2fd46-0 - Waiting for 1 function activations to complete
2024-03-06 12:51:50,732 [DEBUG] monitor.py:142 -- ExecutorID d2fd46-0 - Pending: 1 - Running: 0 - Done: 0
2024-03-06 12:51:51,063 [DEBUG] localhost.py:107 -- ExecutorID d2fd46-0 | JobID A000 - Execution finished
2024-03-06 12:51:51,063 [DEBUG] localhost.py:112 -- Localhost job manager finished
2024-03-06 12:52:22,771 [DEBUG] monitor.py:142 -- ExecutorID d2fd46-0 - Pending: 1 - Running: 0 - Done: 0
2024-03-06 12:52:54,809 [DEBUG] monitor.py:142 -- ExecutorID d2fd46-0 - Pending: 1 - Running: 0 - Done: 0
2024-03-06 12:53:26,847 [DEBUG] monitor.py:142 -- ExecutorID d2fd46-0 - Pending: 1 - Running: 0 - Done: 0

I have tried on the most recent commit 66e3051f9bdde328985160978576cc94eeaeb668 and I get the same result. Tested on multiple machines.

I updated the lithops version on master branch. Can you check it again with the latest changes and post here the debug logs?

Here are the logs. It behaves the same
2024-03-06 18:18:31,679 [INFO] config.py:139 -- Lithops v3.1.3.dev1 - Python3.12
2024-03-06 18:18:31,679 [DEBUG] config.py:106 -- Config file not found. Setting Lithops to Localhost mode
2024-03-06 18:18:31,679 [DEBUG] config.py:174 -- Loading compute backend module: localhost
2024-03-06 18:18:31,679 [DEBUG] config.py:233 -- Loading Storage backend module: localhost
2024-03-06 18:18:31,679 [DEBUG] localhost.py:36 -- Creating Localhost storage client
2024-03-06 18:18:31,679 [INFO] localhost.py:39 -- Localhost storage client created
2024-03-06 18:18:31,679 [DEBUG] localhost.py:60 -- Creating Localhost compute client
2024-03-06 18:18:31,679 [INFO] localhost.py:70 -- Localhost compute v1 client created
2024-03-06 18:18:31,680 [DEBUG] invokers.py:93 -- ExecutorID addabf-0 - Invoker initialized. Max workers: 1
2024-03-06 18:18:31,680 [DEBUG] localhost.py:262 -- Starting python environment for python
2024-03-06 18:18:31,680 [DEBUG] localhost.py:265 -- Setting up python environment
2024-03-06 18:18:31,712 [DEBUG] executors.py:148 -- Function executor for localhost created with ID: addabf-0
2024-03-06 18:18:31,712 [INFO] invokers.py:107 -- ExecutorID addabf-0 | JobID A000 - Selected Runtime: python
2024-03-06 18:18:31,712 [DEBUG] storage.py:474 -- Runtime metadata found in local disk cache
2024-03-06 18:18:31,712 [DEBUG] job.py:242 -- ExecutorID addabf-0 | JobID A000 - Serializing function and data
2024-03-06 18:18:31,713 [DEBUG] serialize.py:73 -- Referenced Modules: lithops
2024-03-06 18:18:31,713 [DEBUG] module_dependency.py:109 -- Module 'lithops' is already installed in the runtime, skipping
2024-03-06 18:18:31,713 [DEBUG] serialize.py:118 -- Modules to transmit: None
2024-03-06 18:18:31,713 [DEBUG] job.py:276 -- ExecutorID addabf-0 | JobID A000 - Uploading function and modules to the storage backend
2024-03-06 18:18:31,713 [DEBUG] job.py:302 -- ExecutorID addabf-0 | JobID A000 - Uploading data to the storage backend
2024-03-06 18:18:31,713 [INFO] invokers.py:174 -- ExecutorID addabf-0 | JobID A000 - Starting function invocation: hello() - Total: 1 activations
2024-03-06 18:18:31,713 [DEBUG] invokers.py:179 -- ExecutorID addabf-0 | JobID A000 - Worker processes: 8 - Chunksize: 8
2024-03-06 18:18:31,713 [DEBUG] localhost.py:132 -- ExecutorID addabf-0 | JobID A000 - Putting job into localhost queue
2024-03-06 18:18:31,713 [DEBUG] localhost.py:92 -- Staring localhost job manager
2024-03-06 18:18:31,714 [DEBUG] invokers.py:255 -- ExecutorID addabf-0 | JobID A000 - Job invoked (0.001s) - Activation ID: addabf-0-A000
2024-03-06 18:18:31,714 [DEBUG] localhost.py:103 -- ExecutorID addabf-0 | JobID A000 - Running 1 activations in the localhost worker
2024-03-06 18:18:31,714 [INFO] invokers.py:210 -- ExecutorID addabf-0 | JobID A000 - View execution logs at /tmp/lithops-acando/logs/addabf-0-A000.log
2024-03-06 18:18:31,714 [DEBUG] monitor.py:427 -- ExecutorID addabf-0 - Starting Storage job monitor
2024-03-06 18:18:31,714 [INFO] executors.py:491 -- ExecutorID addabf-0 - Getting results from 1 function activations
2024-03-06 18:18:31,714 [INFO] wait.py:101 -- ExecutorID addabf-0 - Waiting for 1 function activations to complete
2024-03-06 18:18:31,986 [DEBUG] localhost.py:107 -- ExecutorID addabf-0 | JobID A000 - Execution finished
2024-03-06 18:18:31,986 [DEBUG] localhost.py:112 -- Localhost job manager finished
2024-03-06 18:18:33,719 [DEBUG] monitor.py:142 -- ExecutorID addabf-0 - Pending: 1 - Running: 0 - Done: 0
2024-03-06 18:19:05,751 [DEBUG] monitor.py:142 -- ExecutorID addabf-0 - Pending: 1 - Running: 0 - Done: 0
2024-03-06 18:19:37,786 [DEBUG] monitor.py:142 -- ExecutorID addabf-0 - Pending: 1 - Running: 0 - Done: 0

in this folder /tmp/lithops-acando/ you should have a file called localhost-runner.log. can you post the content here?

2024-03-06 18:18:31,936 [INFO] localhost-runner.py:88 -- Starting Localhost job runner
2024-03-06 18:18:31,936 [INFO] localhost-runner.py:90 -- Received command: run_job
2024-03-06 18:18:31,936 [INFO] localhost-runner.py:53 -- Got /tmp/lithops-acando/storage/lithops.jobs/addabf-0-A000-job.json job file
2024-03-06 18:18:31,936 [INFO] localhost-runner.py:62 -- ExecutorID addabf-0 | JobID A000 - Starting execution
2024-03-06 18:18:31,937 [INFO] localhost.py:39 -- Localhost storage client created
2024-03-06 18:18:31,937 [INFO] utils.py:50 -- Getting function and modules
2024-03-06 18:18:31,937 [INFO] utils.py:64 -- Loading function/mods /opt/lithops/lithops.jobs/addabf-0/e48d9cfd278f3a91264f51bd12bce69e.func.pickle from storage
Traceback (most recent call last):
  File "/tmp/lithops-acando/localhost-runner.py", line 97, in <module>
    switcher.get(command, lambda: "Invalid command")()
  File "/tmp/lithops-acando/localhost-runner.py", line 69, in run_job
    function_handler(job_payload)
  File "/tmp/lithops-acando/lithops/worker/handler.py", line 71, in function_handler
    job = create_job(payload)
          ^^^^^^^^^^^^^^^^^^^
  File "/tmp/lithops-acando/lithops/worker/handler.py", line 61, in create_job
    job.func = get_function_and_modules(job, internal_storage)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/lithops-acando/lithops/worker/utils.py", line 66, in get_function_and_modules
    os.makedirs(os.path.dirname(func_path), exist_ok=True)
  File "<frozen os>", line 215, in makedirs
  File "<frozen os>", line 215, in makedirs
  File "<frozen os>", line 225, in makedirs
PermissionError: [Errno 13] Permission denied: '/opt/lithops'

I added a patch for this. can you test with latest master branch?

It does seem to work now, thanks. Closing the issue.


move Features to top

Allows speed readers like me to more quickly assess if this repo is worth even reading.
(Seems awesome, but I look at 20 repos/day & 5 blog posts, so 'reading' is a luxury.)
Some 'English as Second Language' folks might not understand fire = run.
Keep up good work!

Thanks @tomByrer!!
Your 2c... [simple] example first or feature list first?  Just curious...
See itty-router for Example > Feature


Actual libGDX example project

Hi.
ATM all libGDX projects generates and build with gradle.
Would be cool if you can provide a gradle project sample with actual libGDX sample.
For example this one https://github.com/libgdx/libgdx-demo-superjumper.
Its could realy help a lot of many peoples to start using teavm or contribute in teavm-libgdx backend.

I don't like the whole idea of Gradle, nor have I some time to support Gradle plugin for TeaVM. There is a sample of a game built with Maven. Also, some guys wrote Gradle plugin, but I don't even know whether is works.


notebook 251 image to image always returns black image

notebook 251 image to image always returns black image even with default prompt and image and everything configured correctly. text to image works

Thanks for highlighting this issue.
The behavior only happens when 'AUTO' (by default) or 'GPU' device is selected.
However, Notebook 251-tiny-sd-image-generation is working fine for text-to-image generation and image-to-image generation when selecting CPU device to run inference.
Change value to 'CPU' in cell [8], under section "Configure Inference Pipeline"

okay thank you!

Closing this, I hope previous responses were sufficient to help you proceed. Feel free to reopen and ask additional questions related to this topic, if issue persists kindly share the requested information.

@baselqt this PR should fix issue with black image on GPU https://github.com/openvinotoolkit/openvino_notebooks/pull/1329
you can check if it is still interesting for you


6 snlvrldumper issue

Fixing VRL dumper issue related to connected terms - nets not sharing same name.

Codecov Report

Merging #7 (f9ee493) into main (932cffd) will decrease coverage by 0.20%.
The diff coverage is 78.66%.

@@            Coverage Diff             @@
##             main       #7      +/-   ##
==========================================
- Coverage   90.80%   90.60%   -0.21%
==========================================
  Files          66       66
  Lines        2491     2565      +74
==========================================
+ Hits         2262     2324      +62
- Misses        229      241      +12

Flag
Coverage Δ

unittests
90.60% <78.66%> (-0.21%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

src/snl/formats/verilog/backend/SNLVRLDumper.h
100.00% <ø> (ø)

src/snl/snl/kernel/SNLBusNetBit.cpp
88.23% <ø> (ø)

src/snl/snl/kernel/SNLBusTermBit.cpp
95.00% <ø> (ø)

src/snl/snl/kernel/SNLScalarNet.cpp
100.00% <ø> (ø)

src/snl/snl/kernel/SNLScalarTerm.cpp
100.00% <ø> (ø)

src/snl/formats/verilog/backend/SNLVRLDumper.cpp
83.83% <78.08%> (-1.94%)
:arrow_down:

src/snl/snl/kernel/SNLName.h
100.00% <100.00%> (ø)

src/snl/snl/kernel/SNLCollection.h
92.47% <0.00%> (+1.25%)
:arrow_up:

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


Investigating faster workspace startup

What problem do we want to address?
Loading a Che workspace is currently an operation that takes 45 secs or more.
We want to speed this up as much as possible. Ideally under 10 secs because fast software is the best software.
How are we going to address it?
We have the opportunity to experiment new ideas with the DevWorkspace that we could not test before.
In particular:

Reduce the number of containers (i.e. running only a Theia container and tooling container) https://github.com/devfile/devworkspace-operator/issues/218
Start an editor only workspace and asynchronously update the CR and "recreate" the workspace pod
Cache vsx, images, DevWorkspace CRs result of devfile flattening
Volume Snapshots
Always have a Pod with minimal CPU and memory request up and running and ready to serve

In this gdoc @amisevsk has added some considerations and a proposal.

Related: https://github.com/devfile/devworkspace-operator/pull/208

about reduce numbers: you could try merging 'user container' and 'tooling container' but keep 'theia container'

Is there any time lines for improving loading time of a Che workspace ?

Hi @amoldhondse,
I am not sure how you found this issue but that's the DevWorkspace operator issue tracker, not Che. I am asking because although the DevWorkspace is planned to be the next workspace engine for eclipse Che it's not the case yet (here are the instructions to try it out).
That said, to answer your question:

Starting a Che workspace today should take around 45 seconds if the images are pre-pulled on the nodes of your Kubernetes cluster. We provide a tool to pre-pull images: the image puller. If you are not using it and you want to improve the workspaces startup time that's the first thing you should look at.
From my first tests using the DevWorkspace as the workspace engine of Che, workspaces startup is even faster and usually under 30 seconds.
Improving workspaces startup time is critical but the tasks mentioned above are currently on hold until the DevWorkspace engine to be able to fully support Che workspaces.

@l0rd Thanks for the response.We have made image puller configuration as specified but it is still taking more than 45 secs for workspace to load.Any other things that you can suggest ?

You should verify that the images and their digests match the ones that are pulled when you start a workspace. If you don't know how to figure out the images that are pulled you can reference this article.


/.well-known/acme-challenge returning 404

First, thank you a lot on effort .
Am I doining something wrong .
I did configure my .Net core 2.2 according to your sample.
I did configure my router and dns record to be able to browse site from outside over http and https.
But app daying when try to get certificate
Here is what I get in exception
System.Exception: urn:ietf:params:acme:error:unauthorized: Invalid response from http://pfuprava.ddns.net/.well-known/acme-challenge/MWGmwqTYXeL3N8uJD7WfBdC3gfHUVKOUmuM7XQLZciU [<IP_ADDRESS>]: 404

What do the logs say? Try enabling logging in ASP.NET Core.

I do not get any logs,
Only I get exception like this in ICertificateRenewalLifecycleHook after that my app sops.

Try enabling verbose log level in your application. You should see many log entries from FluffySpoon.AspNet.LetsEncrypt.

My apologies , for spaming, my log was as Warning level
Here is what I get before hit exception
[09:05:53 INF] Checking to see if in-memory LetsEncrypt certificate needs renewal.
[09:05:53 INF] Checking to see if existing LetsEncrypt certificate has been persisted and is valid.
[09:05:53 DBG] Creating LetsEncrypt account with email<EMAIL_ADDRESS>[09:05:54 VRB] Persisting Account through strategies.
[09:05:54 INF] Ordering LetsEncrypt certificate for domains ["pfuprava.ddns.net"].
[09:05:55 INF] Validating all pending order authorizations.
[09:05:55 DBG] Persisting challenges [{"Token":"d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo","Response":"d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo.iGnEcqBO4TDOSu4Puz5Ff8P-sNL6S4tDVX38t2R-IxY"}]
[09:05:55 VRB] Persisting Challenges through strategies.
[09:05:55 DBG] Connection id "0HLM99HR5GJ3G" started.
[09:05:56 INF] Request starting HTTP/1.1 GET http://pfuprava.ddns.net/.well-known/acme-challenge/d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo
[09:05:56 DBG] Wildcard detected, all requests with hosts will be allowed.
[09:05:56 VRB] All hosts are allowed.
[09:05:56 DBG] The request path /.well-known/acme-challenge/d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo does not match a supported file type
[09:05:56 DBG] AuthenticationScheme: Identity.Application was not authenticated.
[09:05:56 DBG] No candidates found for the request path '/.well-known/acme-challenge/d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo'
[09:05:56 DBG] Request did not match any endpoints
[09:05:56 DBG] Request did not match any routes
[09:05:56 DBG] Challenge invoked: /.well-known/acme-challenge/d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo
[09:05:56 INF] The given challenge did not match /.well-known/acme-challenge/d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo among []
[09:05:56 INF] Request finished in 107.5299ms 404
[09:05:56 DBG] Connection id "0HLM99HR5GJ3G" disconnecting.
[09:05:56 DBG] Connection id "0HLM99HR5GJ3G" sending FIN because: "The Socket transport's send loop completed gracefully."
[09:05:56 DBG] Connection id "0HLM99HR5GJ3G" stopped.
[09:05:56 DBG] Connection id "0HLM99HR5GJ3H" started.
[09:05:56 INF] Request starting HTTP/1.1 GET http://pfuprava.ddns.net/.well-known/acme-challenge/d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo
[09:05:56 VRB] All hosts are allowed.
[09:05:56 DBG] The request path /.well-known/acme-challenge/d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo does not match a supported file type
[09:05:56 DBG] AuthenticationScheme: Identity.Application was not authenticated.
[09:05:56 DBG] No candidates found for the request path '/.well-known/acme-challenge/d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo'
[09:05:56 DBG] Request did not match any endpoints
[09:05:56 DBG] Request did not match any routes
[09:05:56 DBG] Challenge invoked: /.well-known/acme-challenge/d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo
[09:05:56 INF] The given challenge did not match /.well-known/acme-challenge/d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo among []
[09:05:56 INF] Request finished in 10.2185ms 404
[09:05:56 DBG] Connection id "0HLM99HR5GJ3H" disconnecting.
[09:05:56 DBG] Connection id "0HLM99HR5GJ3H" sending FIN because: "The Socket transport's send loop completed gracefully."
[09:05:56 DBG] Connection id "0HLM99HR5GJ3I" started.
[09:05:56 DBG] Connection id "0HLM99HR5GJ3H" stopped.
[09:05:56 INF] Request starting HTTP/1.1 GET http://pfuprava.ddns.net/.well-known/acme-challenge/d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo
[09:05:56 VRB] All hosts are allowed.
[09:05:56 DBG] The request path /.well-known/acme-challenge/d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo does not match a supported file type
[09:05:56 DBG] AuthenticationScheme: Identity.Application was not authenticated.
[09:05:56 DBG] No candidates found for the request path '/.well-known/acme-challenge/d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo'
[09:05:56 DBG] Request did not match any endpoints
[09:05:56 DBG] Request did not match any routes
[09:05:56 DBG] Challenge invoked: /.well-known/acme-challenge/d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo
[09:05:56 INF] The given challenge did not match /.well-known/acme-challenge/d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo among []
[09:05:56 INF] Request finished in 12.8338ms 404
[09:05:56 DBG] Connection id "0HLM99HR5GJ3I" disconnecting.
[09:05:56 DBG] Connection id "0HLM99HR5GJ3I" sending FIN because: "The Socket transport's send loop completed gracefully."
[09:05:56 DBG] Connection id "0HLM99HR5GJ3I" stopped.
[09:05:56 DBG] Connection id "0HLM99HR5GJ3J" started.
[09:05:56 INF] Request starting HTTP/1.1 GET http://pfuprava.ddns.net/.well-known/acme-challenge/d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo
[09:05:56 VRB] All hosts are allowed.
[09:05:56 DBG] The request path /.well-known/acme-challenge/d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo does not match a supported file type
[09:05:56 DBG] AuthenticationScheme: Identity.Application was not authenticated.
[09:05:56 DBG] No candidates found for the request path '/.well-known/acme-challenge/d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo'
[09:05:56 DBG] Request did not match any endpoints
[09:05:56 DBG] Request did not match any routes
[09:05:56 DBG] Challenge invoked: /.well-known/acme-challenge/d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo
[09:05:56 INF] The given challenge did not match /.well-known/acme-challenge/d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo among []
[09:05:56 INF] Request finished in 25.6699ms 404
[09:05:56 DBG] Connection id "0HLM99HR5GJ3J" disconnecting.
[09:05:56 DBG] Connection id "0HLM99HR5GJ3J" sending FIN because: "The Socket transport's send loop completed gracefully."
[09:05:56 DBG] Connection id "0HLM99HR5GJ3J" stopped.
[09:05:57 DBG] Persisting challenges null
[09:05:57 VRB] Persisting Challenges through strategies.

What challenge persistence are you using?
Note how it first does indeed save the challenge:

Persisting challenges [{"Token":"d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo","Response":"d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo.iGnEcqBO4TDOSu4Puz5Ff8P-sNL6S4tDVX38t2R-IxY"}]

And then it fails retrieving them later:

[09:05:56 DBG] Challenge invoked: /.well-known/acme-challenge/d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo
[09:05:56 INF] The given challenge did not match /.well-known/acme-challenge/d_Q5zmBTdmfL2EE4iS8SVYW9vVbCzXgVH2v8dlvcfzo among []

Sorry, for late answer.
I did try services.AddFluffySpoonLetsEncryptFileCertificatePersistence();
and I did try also using AddFluffySpoonLetsEncryptEntityFrameworkCertificatePersistence and
when I query db after exception i get stored key value = Account only

This solved it for me: services.AddFluffySpoonLetsEncryptMemoryChallengePersistence(); but no go on certificate for me. Starting another issue

@adopilot can you share your code or create a separate reproducible example?

I also encountered the same issue. Adding the in-memory persistance (in addition to the file persistance) solved the problem: AddFluffySpoonLetsEncryptMemoryChallengePersistence()
Maybe there was not enough time for the file-based persistance to write the file to disk before the request arrives?

(Btw: the fluffy middleware passes the request to the next middleware if the acme challange doesn't match any of the known tokens, leading to 404, instead of failing with a more descriptive error message.)

I had either the same or a very similar situation with the challenge/response so I also added ... AddFluffySpoonLetsEncryptMemoryChallengePersistence() ... and all worked. I am developing with VS2017 on W10, using ngrok, UseStaging set to true. If I get a chance I'll try to debug. I did wonder whether it was an "file left open somehow" issue stopping the reading (considering differences between Linux and Windows in that area) but obviously that's just a guess and maybe a bad one. ... Excellent work on this library though, it has helped me a lot, so thanks for writing it and making it available.

PRs are always welcome!

By the way, your lib works nicely (for me) on ASP.NET Core 3.0...

Your new release https://www.nuget.org/packages/FluffySpoon.AspNet.LetsEncrypt/1.122.0 works like a charm :-)

Thanks to you @chgeuer! Cheers 🍺


[Issue #471] Limit the result display in the result bar to 20 at max, new functionality added to the detail display when user click a row in the result table

limit the result display to be 20 at max, add the 'previous' and 'next' functionality when show detail of each result

Nice UI improvements!
For the "Upload Dictionary" button, it is also related to the "Dictionary Search" operator.  Can we find a better place for this button?  We can talk F2F.

In the Dictionary Search Operator, the "Upload Dictionary" button is also included

I will merge this PR before the renaming PR, to make the first release of Texera looks better


Add REST API Specification page

Most of this PR seems good, but I am still struggling to build and run the thing on ARM mac. I am getting the following when attempting to docker build -t backup-service .
 => ERROR [build 20/20] RUN CGO_CFLAGS="-I/app/modules/aerospike-tools-backup/modules/c-client/target/Linux-x86_64/include     -I  5.1s
------
 > [build 20/20] RUN CGO_CFLAGS="-I/app/modules/aerospike-tools-backup/modules/c-client/target/Linux-x86_64/include     -I/app/modules/aerospike-tools-backup/include" CGO_ENABLED=1 go build -o backup .:
1.827 # runtime/cgo
1.827 gcc: error: unrecognized command-line option '-m64'
------
Dockerfile:37
--------------------
  36 |     RUN go mod download
  37 | >>> RUN CGO_CFLAGS="-I/app/modules/aerospike-tools-backup/modules/c-client/target/Linux-x86_64/include \
  38 | >>>     -I/app/modules/aerospike-tools-backup/include" CGO_ENABLED=1 go build -o backup .
  39 |
--------------------
ERROR: failed to solve: process "/bin/sh -c CGO_CFLAGS=\"-I/app/modules/aerospike-tools-backup/modules/c-client/target/Linux-x86_64/include     -I/app/modules/aerospike-tools-backup/include\" CGO_ENABLED=1 go build -o backup ." did not complete successfully: exit code: 1

Closed for having the OpenApi spec added in #17.


CELO/BTC Oracle on Celo deployed to Mainnet

Part of this needs to resolve the legal considerations. We don't guarantee the prices and people choose to use them at will.
Out of scope:

HSM setup
Governance proposal to whitelist the oracles for CELO/BTC

@albertclabs will check in with Keep whether we can test this on Baklava

no longer relevant


Make sure the Python venv is using Python 2

Things end badly (in load_input_model.py) if using Python 3.
Signed-off-by: Nicolas Bock<EMAIL_ADDRESS>

I think we could fully migrate to python3 in this case as all supported environments have python3.


Having issues adding motion and temp/humidity sensor

First of all, great plug in! I managed to get my contact sensor working correctly (working in home bridge/homekit) following your example, but I can't seem to get my sonoff motion sensor or temp/humidty sensor to work properly. I'm unsure of the sensorvaluecharacteristics or sensorValuePath that I should be using for these. Any help would be greatly appreciated!

If we’re talking about the SZNB-02 you have to configure 2 ZbDevices of type sensor and configure them as follows:

select HumiditySensor for sensorService, enter CurrentRelativeHumidity as sensorCharacteristic and Humidity for sensorValuePath.
select TemperatureSensor for sensorService, enter CurrentTemperature as sensorCharacteristic and Temperature as sensorValuePath.

For the motion sensor configure another ZbDevice. Select OccupancySensor for sensorService, enter OccupancyDetected as sensorCharacteristic and Occupancy as sensorValuePath (not sure about this).
The configuration json will be (you have to change the addr accordingly):
        {
            "addr": "0x00124B001F841E41",
            "type": "sensor",
            "name": "Humidity Sensor",
            "sensorService": "HumiditySensor",
            "sensorCharacteristic": "CurrentRelativeHumidity",
            "sensorValuePath": "Humidity"
        },
        {
            "addr": "0x00124B001F841E41",
            "type": "sensor",
            "name": "Temperature Sensor",
            "sensorService": "TemperatureSensor",
            "sensorCharacteristic": "CurrentTemperature",
            "sensorValuePath": "Temperature"
        },
        {
            "addr": "0x00124B0026B684E4",
            "type": "sensor",
            "name": "Motion Sensor",
            "sensorService": "OccupancySensor",
            "sensorCharacteristic": "OccupancyDetected",
            "sensorValuePath": "Occupancy"
        }

I recommend using the hardware address (IEEEAddr) in addr as this makes things easier when you have to re-pair the sensor. The plugin maintains the mapping internally (Tasmota uses the short address almost everywhere). Use zbinfo to find out the hardware address.
The sensorValuePath parameter is be the name of the value property in the object where the Device property is set. Depending on the options SetOption83, SetOption89, SetOption100, SetOption101 this object could be found in a different place of the ZbReceived response. This doesn’t matter as the object always contains the same properties.
For example if you receive:
17:08:14.221 RSL: SENSOR = {"ZbReceived":{"0x2916":{"Device":"0x2916","Temperature":25.72,"Humidity":47.73,"Endpoint":1,"LinkQuality":116}}}

The object where the sensorValuePath is located would be:
{
  "Device":"0x2916",
  "Temperature":25.72,
  "Humidity":47.73,
  "Endpoint":1,
  "LinkQuality":116
}

Thanks for the quick reply! I have all working except the humidity sensor. It doesn't show any data. Below is from my config file. Any ideas?
"addr": "0x00124B00251CA8A9",
"type": "sensor",
"name": "Humidity",
"sensorService": "HumiditySensor",
"sensorCharacteristic": "CurrentRelativeHumidity",
"sensorValuePath": "Humidity"

The configuration looks fine.
The problem is that you have twice the same accessory from homebridge point of view - the accessory unique-id is generated using addr and type.
Try using the short-address for one of the sensors.
I will have to change this in the next release...

Thanks, I tried using the short address as well for both, same issue. I also changed one to short, and one to long with the same result.

Will have to check this. Does it work if you configure only humidity sensor?

I have not tried that. Will do now.

Can confirm, if I remove the temp sensor accessory, the humidity starts to work.

okay, then please wait for the next release (probably later today).

Thanks again!

Just published release v1.4.4 where this should be solved. You can now use the hardware address for both sensors.
Please confirm.


Blog app: add API endpoints

Project requirements

Create an API endpoint to list all posts for a user. ✅
Create an API endpoint to list all comments for a user's post. ✅
Create an API endpoint to add a comment to a post. Remember that the owner of the comment is the user that makes it; it should not be set by passing a parameter. ✅
Add authentication to your API endpoints. ✅
Your API endpoints should receive JSON. ✅

Screenshots

Without authorization

With authorization

@EricMbouwe Thanks so much for your review!


what about hebrew

Hi, I would like you to add an option for the Hebrew language
directly or indirectly

Hi. According to whisper.tokenizer.LANGUAGES.values(), it seems that whisper supports Hebrew.
Have you faced any problem?

Hi. According to whisper.tokenizer.LANGUAGES.values(), it seems that whisper supports Hebrew. Have you faced any problem?

yes in T2T Translation there is no hebrew

also here if i wants to translate its only to english

Since DeepL translation does not support Hebrew language,
I added the enhancement label for the issue.
Maybe adding google translate would solve the problem.


PlayerPrefs in Godot C# Not Working

Unfortunately, I am not able to retrieve or use the PlayerPrefs in C#. It seems it's only supported in GdScript. Would it be possible to find a solution for this issue? Maybe I overlooked it and wasn't able to find one. I would appreciate some help on this problem.

Im working on C# version of the plugin and it will be ready within a week or so!


Cannot read properties of undefined (reading '0')

Note: for support questions, please use stackoverflow and tag the post with #spgo.

I'm submitting a ...

[x] bug report
[ ] feature request

What is the current behavior?

When I run "SPGo: Configure workspace", I get:
[04/05/2023, 5:33:18 pm] SPGo enabled.
[04/05/2023, 5:33:18 pm] ================================     ERROR     ================================
[04/05/2023, 5:33:18 pm] Cannot read properties of undefined (reading '0')
[04/05/2023, 5:33:18 pm] Error Detail:
[04/05/2023, 5:33:18 pm] ----------------------
[04/05/2023, 5:33:18 pm] TypeError: Cannot read properties of undefined (reading '0')
[04/05/2023, 5:33:18 pm] ===============================================================================

OS and Version: MacOS Monterey 12.6
SharePoint Location (Online vs. On Premise): n/a
Authentication Type (e.g. Digest, NTFS, ADFS): n/a

This happens when the user has no folder open in VS Code! Which is an obvious mistake but still a confusing output by spgo.


Add more parameters to push_app2quay.sh

I'm merging since I think I'm the only one who really even uses this.


Cannot resolve d3-vs in main.js

Hi Cheng. I installed d3-vs as you said in README.md. npm i -S d3-vs. There is a dependency d3-vs in package.json,

Is this dependency correct here?
and I import d3-vs in main.js.

After updating node_modules and remove dist, sometimes building for production and dev completely,  sometimes there is an error message:

I triednpm install --save d3-vs, remove dist and node_module, and build again. So far it works good, but I dont't know whether it will break later or not. Do you know what is the problem. Is the dependency in package.json incorrect? I am worrying the dependency doesn't work when building for production in the feature. Please let me know if you have ideas to resolve this problem. Thank you!

It’s strange cause what you’ve saw in package.json should mean that you’ve
installed it using github.
I think you should removed the node_modules and reinstall it.
Le lun. 20 août 2018 à 02:48, Yini Xu<EMAIL_ADDRESS>a écrit :

Hi Cheng. I installed d3-vs as you said in README.md. npm i -S d3-vs.
There is a dependency d3-vs in package.json,
[image: wechatimg68]
https://user-images.githubusercontent.com/34967660/44315182-36e53800-a454-11e8-9af6-b4fb0ea9eac1.jpeg
Is this dependency correct here?
and I import d3-vs in main.js.
[image: screen shot 2018-08-20 at 8 35 56 am]
https://user-images.githubusercontent.com/34967660/44315187-3ea4dc80-a454-11e8-8028-5e97bd18ab6e.png
After updating node_modules and remove dist, sometimes building for
production and dev completely, sometimes there is an error message:
[image: screen shot 2018-08-20 at 12 20 20 am]
https://user-images.githubusercontent.com/34967660/44315203-63994f80-a454-11e8-80cb-5f212b812d6b.png
I triednpm install --save d3-vs, remove dist and node_module, and build
again. So far it works good, but I dont't know whether it will break later
or not. Do you know what is the problem. Is the dependency in package.json
incorrect? I am worrying the dependency doesn't work when building for
production in the feature. Please let me know if you have ideas to resolve
this problem. Thank you!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/GopherJ/Vs/issues/8, or mute the thread
https://github.com/notifications/unsubscribe-auth/AZmQS2Wcb3IECmGDIfRiXAA75aBhtYTTks5uSgdzgaJpZM4WDMRS
.

Perhaps you need to change it manually to the version number. Don’t use
github as the package manager because it’s not stable.
Le lun. 20 août 2018 à 02:52, CHENG JIANG<EMAIL_ADDRESS>a écrit :

It’s strange cause what you’ve saw in package.json should mean that you’ve
installed it using github.
I think you should removed the node_modules and reinstall it.
Le lun. 20 août 2018 à 02:48, Yini Xu<EMAIL_ADDRESS>a écrit :

Hi Cheng. I installed d3-vs as you said in README.md. npm i -S d3-vs.
There is a dependency d3-vs in package.json,
[image: wechatimg68]
https://user-images.githubusercontent.com/34967660/44315182-36e53800-a454-11e8-9af6-b4fb0ea9eac1.jpeg
Is this dependency correct here?
and I import d3-vs in main.js.
[image: screen shot 2018-08-20 at 8 35 56 am]
https://user-images.githubusercontent.com/34967660/44315187-3ea4dc80-a454-11e8-8028-5e97bd18ab6e.png
After updating node_modules and remove dist, sometimes building for
production and dev completely, sometimes there is an error message:
[image: screen shot 2018-08-20 at 12 20 20 am]
https://user-images.githubusercontent.com/34967660/44315203-63994f80-a454-11e8-80cb-5f212b812d6b.png
I triednpm install --save d3-vs, remove dist and node_module, and build
again. So far it works good, but I dont't know whether it will break later
or not. Do you know what is the problem. Is the dependency in
package.json incorrect? I am worrying the dependency doesn't work when
building for production in the feature. Please let me know if you have
ideas to resolve this problem. Thank you!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/GopherJ/Vs/issues/8, or mute the thread
https://github.com/notifications/unsubscribe-auth/AZmQS2Wcb3IECmGDIfRiXAA75aBhtYTTks5uSgdzgaJpZM4WDMRS
.

For the feature you want to use, you need to install the new version 0.6.9
and use explicitly updateTimeRange(dateTimeStart, dateTimeEnd)
Le lun. 20 août 2018 à 02:54, CHENG JIANG<EMAIL_ADDRESS>a écrit :

Perhaps you need to change it manually to the version number. Don’t use
github as the package manager because it’s not stable.
Le lun. 20 août 2018 à 02:52, CHENG JIANG<EMAIL_ADDRESS>a
écrit :

It’s strange cause what you’ve saw in package.json should mean that
you’ve installed it using github.
I think you should removed the node_modules and reinstall it.
Le lun. 20 août 2018 à 02:48, Yini Xu<EMAIL_ADDRESS>a
écrit :

Hi Cheng. I installed d3-vs as you said in README.md. npm i -S d3-vs.
There is a dependency d3-vs in package.json,
[image: wechatimg68]
https://user-images.githubusercontent.com/34967660/44315182-36e53800-a454-11e8-9af6-b4fb0ea9eac1.jpeg
Is this dependency correct here?
and I import d3-vs in main.js.
[image: screen shot 2018-08-20 at 8 35 56 am]
https://user-images.githubusercontent.com/34967660/44315187-3ea4dc80-a454-11e8-8028-5e97bd18ab6e.png
After updating node_modules and remove dist, sometimes building for
production and dev completely, sometimes there is an error message:
[image: screen shot 2018-08-20 at 12 20 20 am]
https://user-images.githubusercontent.com/34967660/44315203-63994f80-a454-11e8-80cb-5f212b812d6b.png
I triednpm install --save d3-vs, remove dist and node_module, and build
again. So far it works good, but I dont't know whether it will break later
or not. Do you know what is the problem. Is the dependency in
package.json incorrect? I am worrying the dependency doesn't work when
building for production in the feature. Please let me know if you have
ideas to resolve this problem. Thank you!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/GopherJ/Vs/issues/8, or mute the thread
https://github.com/notifications/unsubscribe-auth/AZmQS2Wcb3IECmGDIfRiXAA75aBhtYTTks5uSgdzgaJpZM4WDMRS
.

You'r right. It built successfully after removing and reinstall node_modules. But this problem happened every time when I install other new modules. I don't know why only this dependency doesn't work after installing other modules.

It's because you've used github as package manager, you have to change all version number with github as prefix.

Can this new version 0.6.9 be installed by npm i -S d3-vs?  How to install the stable version? npm install --save<EMAIL_ADDRESS>

I use often npm view packagename | grep version on linux and npm view packagename | FindStr version on windows to see the latest version.
You can also install it using npm i -S packagename@latest but some time npm wont install it. The reason can be a problem of cache or others.

Cool! Thank you so much. I have installed version 0.6.9 successfully and resolve this problem!

How to use the function updateTimeRange(dateTimeStart, dateTimeEnd)? Could you please be more detail? I use like this, but it seems wired.

Have you successfully using this method? I’am not on pc so I can’t give you
an example for now.
Le lun. 20 août 2018 à 05:19, CHENG JIANG<EMAIL_ADDRESS>a écrit :

This is a method of VueJs component so you need to add a ref=“d3Timeline”
and then you can use this method like this :
this.$refs.d3Timeline.updateTimeRange(..., ...)
Le lun. 20 août 2018 à 05:16, Yini Xu<EMAIL_ADDRESS>a écrit :

How to use the function updateTimeRange(dateTimeStart, dateTimeEnd)?
Could you please be more detail? I use like this, but it seems wired.
[image: screen shot 2018-08-20 at 11 14 56 am]
https://user-images.githubusercontent.com/34967660/44318743-7ae33780-a46a-11e8-82b1-a79d7577d40e.png
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/GopherJ/Vs/issues/8#issuecomment-414186419, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AZmQSwlRAnB9kmp2-Kcri85fgYvjMSLUks5uSioUgaJpZM4WDMRS
.

Hello, I tried your method, I got this.$refs as an object, but this.$refs.d3Timeline undefined.
code in template

I think maybe the you should remove the quote of d3Timeline. What do you think about?

Hi Cheng, the method seems wired.
The display area at the first time rendering is from 1st July to 10th July:

when I update the date, the timeline disappeared

my code is

Sorry, there is an error in my code.  I pass the new Date(new Date()) to the method.

I found the display area is correct at the very first time updating time range. However, the display area is incorrect later on.

hello, what you mean the display area is incorrect later ?

hello, I have mark the date user picked and the display area on the timeline.
This one the display area matches the date, this is very first time updateTimeRange

However, the display area doesn't match the date at the second time changing updateTimeRange

The time format I passed is

Maybe there is an error at time format?

I think that your format is correct, there maybe a bug in my code. I will fix that later.

Thank you so much!

Hi Cheng. Have you fixed the timeline bug? I really need it tomorrow to present my project. Hope you can fix it today. Appreciate it.

Sorry to let you wait cause it's not a bug explicit. I'll try to fix that today.

Thank you Cheng.

Hello, can you test that if the new version 0.7.2 fix this bug. On my pc it's ok.

Can you try to zoom it and then set a new range using the method ? I think I've understand this error

The display area doesn't change at the very first time I set the time range and used this method. After zooming the timeline and reseting the time, the display area changed, but is incorrect.

Hi Cheng. Have you figured out the problem?

In fact, I didn’t find time to work on it. I will inform you when I’ve
fixed the bug. But now, I have to work on other things. You can also send a
PR if you find a way to fix that. Sorry to let you wait!
Le mer. 22 août 2018 à 04:50, Yini Xu<EMAIL_ADDRESS>a écrit :

Hi Cheng. Have you figured out the problem?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/GopherJ/Vs/issues/8#issuecomment-414890981, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AZmQS_WmFryovS-feXzyHimFOHW_w2jLks5uTMcDgaJpZM4WDMRS
.

@YiniXu9506  Hi, can you test that if the new version 0.7.5 fix this bug.

Hi Cheng, I tested the function in the new version. It works perfectly. Thank you so much!


[Bug]: The project administrator starts a schema change task and says that there are no permissions

ODC version
4.3.2
OB version
no related
What happened?
If you use the project administrator user to start a schema change task, you will be prompted that you have no permissions and the task has not been running

What did you expect to happen?
Using the Project Administrator user, start a database change task that can be executed successfully
How can we reproduce it (as minimally and precisely as possible)?
A user who does not have any role in a working project, but is an administrator in the project, initiates a database change task.
Anything else we need to know?
No response

pass


Cursor advances out of sight when renaming a training class with a long name.

If a rename is in progress, it's easy to not realize it's happening and not understand why key presses are having their intended (other) effect. For instance, I think we don't end renaming if you switch tabs, or if you open the configuration menu. Also, I think the class name may not (always) flash while in a rename.

I think there are at least two things going on here:

The cursor disappears when the new name is wider than the sample plot, leaving no visual indication that a rename is pending. Probably the right thing to do here is scroll the name left, so that the end of the name, and the cursor, is always visible. Once the rename is over, we should probably show the left-most portion of the name.
The rename should end if someone performs another command (e.g. clicking on a GUI button or switching tabs). A simple way to do this might be to just end the rename on any mouse click.

We may want to use an ofxDatGui text input field rather than trying to implement one ourselves.

I removed this from the post-workshop cleanup milestone because it doesn't seem as important now that ESC and mouse clicks will end the renaming.


Apple Pay on web, merchant unauthorised

Hi,
I've integrated Apple Pay into my code using your examples for the Braintree JS library. (Fantastic job by the way - very easy to use!).
However, I'm having trouble getting Apple Pay to work on my iPhone running iOS 10.1. It brings up the AP palette but the merchant validation is failing. This is using Braintree Sandbox with the correct domain added in the settings for AP.
session.onvalidatemerchant = function (event) {
    applePayInstance.performValidation({
        validationURL: event.validationURL,
        displayName: 'My Name'
    }, function (validationErr, merchantSession) {
        if (validationErr) {
            alert('Error validating merchant:', validationErr);
            session.abort();
            return;
        }
        session.completeMerchantValidation(merchantSession);
    });
};

In the console, I can see
Failed to load resource: the server responded with a status of 417 (Expectation Failed) https://api.sandbox.braintreegateway.com/merchants/long-string/client_api/v1/apple_pay_web/sessions

I can see that the requested URL responded with
{
    "error": {
        "message": "Payment Services Exception merchantId=very-long-string unauthorized to service on behalf of merchantId=another-long-string reason=\"The latter is not registered for Apple Pay on the web\""
    },
    "fieldErrors": []
}

I'm unsure how to proceed, I was wondering if you could point me in the right direction?
Many thanks

Sounds like something went wrong with the registration process with Apple. Could you email your Braintree merchant ID to<EMAIL_ADDRESS>and link to this Github Issue?

@developius Can you confirm that you are logged into an iCloud Sandbox account? We suspect that the error message indicates that event.validationURL is an Apple Pay production endpoint, which happens if your iCloud account is not a sandbox user.

Thanks for your swift responses.
@skunkworks, ah! I am not logged into an iCloud sandbox account, I hadn't realised that this was something I needed to do - sorry.
For reference, event.validationURL is https://apple-pay-gateway.apple.com/paymentservices/startSession.

No worries, glad that fixed your issue!


Pass "follow" option to sass-graph (fixes 1952)

See https://github.com/xzyfer/sass-graph/pull/74
Fixes #1952

This blocked on<EMAIL_ADDRESS>being released

<EMAIL_ADDRESS>has been released. I'm going to let it sit for a couple days to see if there are any issues before committing to it.
@ludwiktrammer this PR should also bump the min sass-graph version to ^2.2.0.

@xzyfer Any updates on timeline for merging this?
I didn't update the PR with sass-graph version bump, because when I wanted to do this, I noticed you already added #1958. Or should I do this anyway?

Don't worry about bumping sass-graph. The initial release had some issues.
I'm on holidays at the moment so I'm not sure when I'll get around to it.
On 3 May 2017 7:18 pm, "Ludwik Trammer"<EMAIL_ADDRESS>wrote:
@xzyfer https://github.com/xzyfer Any updates on timeline for merging
this?
I didn't update the PR with sass-graph version bump, because when I wanted
to do this, I noticed you already added #1958
https://github.com/sass/node-sass/pull/1958. Or should I do this anyway?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sass/node-sass/pull/1956#issuecomment-298976798, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAjZWNIZRsDR7CxAQzGJEimww3Mo7eSLks5r2LbIgaJpZM4NKQja
.

Sorry to bother you again, but what's the status on this?

I'm back from holidays now, slowly working through the back log. Shouldn't be long now. Apologies.

Thanks @ludwiktrammer, this fix is on master now.


Better function-name information

We currently use __func__ to add the function name annotation in the output. However, the output for class methods or lambdas is not optimal:
class user_defined_class {
 public:
  void some_method(int x) {
    dbg(x);
  }
};

// ...

user_defined_class{}.some_method(42);

[](int x) {
  dbg("called from within a lambda!");
  return x;
}(42);

prints:
[..acro/tests/tests.cpp:34 (some_method)] x = 42 (int)
[..acro/tests/tests.cpp:138 (operator())] called from within a lambda!

If we would use __PRETTY_FUNCTION__ instead, we could potentially turn some_method into user_defined_class::some_method and operator() into main()::<lambda(int)>. This would, however, require us to post-process the __PRETTY_FUNCTION__ string and remove return type, argument names, etc.
See also: https://stackoverflow.com/a/29856690/704831

Why not use __PRETTY_FUNCTION__ as a whole?  This way you get the most info: return type, arguments, and template arguments.  This might be useful to distinguish overloads.  On the other hand it would take a lot of screen space.

On the other hand it would take a lot of screen space.

Yes, exactly. That's why I was thinking about stripping that information.

I think parsing the __PRETTY_FUNCTION__ is probably not a good idea. There are too many edge cases (e.g. https://stackoverflow.com/questions/29777059/pretty-function-can-a-return-type-contain-parentheses)

I think I'm okay with the current situation. Let's close this for now.


Monitor for ESP32-C6

If I'm not mistaken, the ESP32-C6 (and the ESP32-C3) can enable a Serial Monitor by sending a command to the bootloader. Afterwards, serial output (e.g. Serial.println("Hello!")) could then be received inside a browser.
Can esptool-js also support this?

You can try https://espressif.github.io/esptool-js/ and Click the Start button under console section for monitoring.

That didn’t work, hence this issue.

This is using the ESP32-C6-WROOM-1.

I'm using the ESP32-C6-DevKit-C1 so I'm using the type C USB UART bridge as shown here:
https://docs.espressif.com/projects/espressif-esp-dev-kits/en/latest/esp32c6/esp32-c6-devkitc-1/user_guide.html#hardware-reference

Thank you. This issue applies to the ESP32-C6 built-in USB controller, not a devkit's UART bridge.

Also works with the USB port.
Could you provide the tracing information from the Developer Tools or the connect button ?

Could you try my fork in https://brianignacio5.github.io/esptool-js/ which implement #160 changes ?

It work by me, ESP32-C6 dev board can use the reset on CH343 and USB.
Set USB CDC On Boot 'Enabled'
I have used this to test it
#include <Arduino.h> //  https://github.com/espressif/arduino-esp32/tree/master/cores/esp32
void setup() {
// set ARDUINO_USB_CDC_ON_BOOT
Serial.begin(115200);
Serial.setDebugOutput(true);
Serial0.begin(115200);
Serial0.setDebugOutput(true);

}
int counter=0;
void loop() {
Serial.println("Serial "+String(counter));
Serial0.println("Serial0 "+String(counter));
counter++;
sleep(1);
}

Closing this issue due to lack of response from original user, please comment here if you need more assistance.


docker cp can't follow symbol link

When I tried to copy a symbol link into a docker container, I found that the docker cp can't follow the symbol link and only copied an invalid symbol file. e.g.
$ echo "hello world" > /tmp/test
$ cat /tmp/test
hello world
$ ln -s /tmp/test /tmp/test.ln
$ ls -l /tmp/test.ln
lrwxrwxrwx 1 darcy darcy 9  9月 25 00:05 /tmp/test.ln -> /tmp/test
$ docker run -tid ubuntu bash
f597b1a3b93a535818a4f7ac14d49b20331ff79fba29b6482e1f752d9832ce38
$ docker cp /tmp/test.ln f597b1a3b93a:/
$ docker exec -ti f597b1a3b93a ls -l /test.ln
lrwxrwxrwx 1 root root 9 Sep 24 16:05 /test.ln -> /tmp/test
$ docker exec -ti f597b1a3b93a cat /test.ln
cat: /test.ln: No such file or directory

It's obvious that the symbol link is invalid, docker cp file from container to host is in exactly same situation.
IMO the most reasonable behavior is that docker cp should follow the symbol link and copy content of /tmp/test on host to file /test.ln in container, just as what the cp command will do.
What's your opinion? I can push a PR to fix this, but I want to make sure this fix is acceptable to you firstly. :)

Hi!
Please read this important information about creating issues.
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
This is an automated, informational response.
Thank you.
For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
uname -a:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

And #dibs  in advance

again the trailing slash problem at the end of directory names....what a stupid behavior

@WeiZhang555, you are making the assumption that docker cp behaves like cp but it is documented to behave like cp -a which does not follow symbolic links.
@calavera I think the best solution to this problem would be to support more options in docker cp and only have the cp -a behavior if you specify docker cp -a. We could also have a docker cp -r (recursive option) for copying directories. This would add many more cases to handle and test however.

@jlhawn add more options is a good choice, this is also first thought in my head.
I can handle options -a and -r as you said and test cases things.
What do you think?

After some comparation of unix cp and scp, I think a docker cp should be more similar to scp than cp. Copying data between a host and a container is more like between two different hosts, not just from logical view but also from security view. And a scp always follow the symbol link instead of the symbol link itself.
So the question is: Do we really need a -a option?

Reiterating my comment in #16896.
Prior to 1.8.0 symlinks were followed when copying. I think the flag should be to disable following symlinks instead to get pre-1.8.0 behavior.
But then the documentation (1.8.2) says it's cp -a behavior. So i'll leave it to the maintainers to decide on that decision in terms of interface. Note that cp -a is not mentioned in documentation prior to 1.8.0 (https://github.com/docker/docker/blob/v1.7.0/docs/reference/commandline/cli.md)


Tagged Unions are not discriminated if the tag field is a symbol

Bug Report
The type of a tagged union is not discriminated if the field is index via a unique symbol
🔎 Search Terms
Tagged Union Symbol
🕗 Version & Regression Information
All versions
⏯ Playground Link
https://www.typescriptlang.org/play?ts=4.2.3#code/KYDwDg9gTgLgBAYwgOwM7wPoBUBccCuyAlgI77ByoCeAtgEYQA2cAvHAMq0OMAUAlACgBoSLDgwqYCgHkwMIigA8AQQB8rOAG84AbWwBdPACIAcimBG4AXzgAfLboPH2EGhYDclV8DzLrQgBNgBEYAQygKJDR4EDxZeSVkfHpgKFUhVAB3IhgEAAs4HhA9LH0+LQE4RFDUCiMXNyM8TUqquBBWqroI0IBrVqtWhBq6s2QLZs64buA+gYFBoA
💻 Code
export const _T: unique symbol = Symbol()

export type Option<A> = { [_T]: "None" } | { [_T]: "Some"; some: A }

declare const x: Option<number>

switch (x[_T]) {
  case "Some": {
    x
    break
  }
  case "None": {
    break
  }
}

🙁 Actual behavior
The type of x remains Option<number>
🙂 Expected behavior
The type should be narrowed to {[_T]: "Some", some: number}

duplicate of https://github.com/microsoft/TypeScript/issues/43220

Indeed a duplicate, haven't found the other


Allow DB class injection using CDI

The current CDI version has a limitation that managed beans must have a default constructor.
When using mongo-java-driver it would be nice to being able to inject DB instance into DAOs, but nowadays we can't do it because DB doesn't have a default constructor and CDI fails when tries to inject it.
This PR introduces a default constructor that should only be used by CDI, to allow the dependency injection. That's why we are marking the constructor as deprecated.
The following Java types cannot be proxied by the container:

classes which don't have a non-private constructor with no parameters, and
classes which are declared final or have a final method,
arrays and primitive types.

http://docs.jboss.org/weld/reference/2.1.2.Final/en-US/html_single/#d0e1464

Hi, apologies for not coming back to this ticket sooner. As you may be aware much has changed in the codebase with the new and improved 3.x series. This ticket can no longer be merged, so its being closed.
The DB class was deprecated in 3.x and the MongoDatabase interface is now the preferred way to interact with the database.  However, the implementations of MongoDatabase are purposely private.


Use grep -q parameter instead of redirect to /dev/null

We don't need to use a longer command to redirect the standard output but we can directly ask grep to be quiet :)

I think this page: https://www.unix.com/man-page/posix/1P/grep/ explained it's in POSIX?

I don't know how to confirm the POSIX part, any idea?
At least busybox implemented it at 1999, I tested with ancient Ubuntu 10.04, CentOS 5, Debian 6, they all support this parameter, should be good enough?


codeunit 8 AccSchedManagement

I would like to use the global prozedure "CalcColumnDates". But unfortunately this does not work, because some variables are defined globally. Can you pass these variables as parameters?
old:
procedure CalcColumnDates(ColumnLayout: Record "Column Layout"; var FromDate: Date; var ToDate: Date; var FiscalStartDate2: Date)
new:
procedure CalcColumnDates(ColumnLayout: Record "Column Layout"; var FromDate: Date; var ToDate: Date; var FiscalStartDate2: Date; StartDate: Date; EndDate: Date; FiscalStartDate: Date)

No, we cannot change signature of global procedure. You should copy this code to your extension or try to use this procedure together with
procedure SetStartDateEndDate(NewStartDate: Date; NewEndDate: Date)
begin
    StartDate := NewStartDate;
    EndDate := NewEndDate;
end;


Remove trailing slash from void tags

This is kind an opinionated pull request. In HTML(5) the use of a ending slash in void tags is optional (e.g.
). Some HTML5 code validators are flagging this kind of unneeded slashes.
What will be changed:
Following tags will be generated without the ending slash.

 →

 →

 →

It's fine for me, if you just close this pull request, if it is not fitting here. Maybe I is worth a change, but not in a patch level version?

You can't change the specs of CommonMark. Instead, you can add a new HTML 5 renderer for your project.


fix(heimdall): extra line in post rendering with kustomize

Issue is akin to this one: https://issuehint.com/issue/fluxcd/flux2/1968
As is, when using in Flux, in which the controller uses kustomize as a post renderer, results in an extra empty line in the command line which breaks the deployment.

For this to create a new chart version of heimdall pls update the version number here https://github.com/graphops/helm-charts/blob/d79ccc5ca3ed17e031859a95f86a92ad9435283f/charts/heimdall/Chart.yaml#L18 it should be 1.1.2 given that it's a minor update and the heimdall app version is not changing.

@mips-grtuga feel free to merge this once the change I suggested is added

@calinah thank you, it's fixed now (but dismissed the approve). Will merge when you re-approve.

@calinah it seems I'm not authorized to merge. If you wish, feel free to do so :)


Cannot add multiples fonts to terminal

Hello, after some research I haven't found how to add multiple fonts to the shell.
The problem is that, for example with fish & tide (fisher), we have characters that are rendered with the MesloLGS NF font, but we can't add the Monospace font or any other fonts.
Is it possible to add something like that?

Bad respositery sorry, i can't find how to delete this issue :')


Error initializing search-guard 6.2.3 : Unexpected exception indices:data/write/bulk[s]

For Elasticsearch/search-guard version 6.2.3, I am unable to initialize search-guard due to (what appears to be) a permissions issue for the admin user/cert/DN. When writing the initial search-guard config to the "searchguard" index, all writes fail with error:
ElasticsearchSecurityException[Unexpected exception indices:data/write/bulk[s]]
**Elasticsearch Version: 6.2.3
Search Guard Version: 6.2.3-22.0
Number of nodes: 4
Number of data nodes: 1
OS version: CentOS Linux release 7.4.1708 (Core)
Java version: OpenJDK Runtime Environment (build 1.8.0_161-b14)
search-guard-6_cv_debug.output.txt
**
Here is the output from sgadmin.sh:
WARNING: JAVA_HOME not set, will use /bin/java
Search Guard Admin v6
Will connect to cvdev1-aw1-platform-services-01.node.cv-dev1-aws-west-1.consul:9300 ... done
Elasticsearch Version: 6.2.3
Search Guard Version: 6.2.3-22.0
Connected as CN=admin.elasticsearch-master.service.cv-dev1-aws-west-1.consul,OU=CSP-DB-Mgmt,O=Cloudvisory
Diagnostic trace written to: /usr/share/elasticsearch/plugins/search-guard-6/tools/sgadmin_diag_trace_2018-Apr-13_14-20-24.txt
Contacting elasticsearch cluster 'elasticsearch' and wait for YELLOW clusterstate ...
Clustername: elasticsearch-cluster-cvdev1aw1
Clusterstate: GREEN
Number of nodes: 4
Number of data nodes: 1
searchguard index does not exists, attempt to create it ... done (auto expand replicas is on)
Populate config from /etc/elasticsearch/search-guard/
Will update 'sg/config' with /etc/elasticsearch/search-guard/sg_config.yml
   FAIL: Configuration for 'config' failed because of ElasticsearchSecurityException[Unexpected exception indices:data/write/bulk[s]]
Will update 'sg/roles' with /etc/elasticsearch/search-guard/sg_roles.yml
   FAIL: Configuration for 'roles' failed because of ElasticsearchSecurityException[Unexpected exception indices:data/write/bulk[s]]
Will update 'sg/rolesmapping' with /etc/elasticsearch/search-guard/sg_roles_mapping.yml
   FAIL: Configuration for 'rolesmapping' failed because of ElasticsearchSecurityException[Unexpected exception indices:data/write/bulk[s]]
Will update 'sg/internalusers' with /etc/elasticsearch/search-guard/sg_internal_users.yml
   FAIL: Configuration for 'internalusers' failed because of ElasticsearchSecurityException[Unexpected exception indices:data/write/bulk[s]]
Will update 'sg/actiongroups' with /etc/elasticsearch/search-guard/sg_action_groups.yml
   FAIL: Configuration for 'actiongroups' failed because of ElasticsearchSecurityException[Unexpected exception indices:data/write/bulk[s]]
FAIL: Expected 4 nodes to return response, but got only 0
Done with failures

Additional diagnostic info/logs attached, including:

the '--diagnose' output from sgadmin.sh,
the elasticsearch.yml config file,
elasticsearch cluster log snippet
search-guard-6_cv_debug.output.txt
elasticsearch-cluster-cvdev1aw1.log

There must be something in the logs on ERROR level like 'Unexpected exception ...' which includes a stacktrace. Maybe its in one of the three other logfiles. Can you send over the missing logfiles from the other nodes?

Here you go. Full log from startup until failure for all four nodes in the cluster. This is just a dev cluster until I get this working, so I recreated from scratch to generate these logs.
elasticsearch-cluster-cvdev1aw1.logs.zip

Thats a tricky one it looks like. I cannot reproduce it right now.
Can you mail your certificates to us? How did you generate them?
Pls also add the following line to every log4j2.properties file:

logger.searchguard.name = com.floragunn
logger.searchguard.level = all
logger.searchguardtrace.name = sg_action_trace
logger.searchguardtrace.level = all

This generates a lot of debug/trace output. Pls post all of the logs.

Here are the trace-level logs from all four nodes in the cluster:
elasticsearch-cluster-cvdev1aw1.trace.logs.zip
The certs are generated using Vault, then converted from PEM to PKCS12 format, then loaded into a newly created Java keystore. A similar process is used for creating the Java truststore. This is a hack for Java compatibility as Vault issues certs in a format that Java seems to hate, and this hack works for other Java apps that needed TLS auth/encryption for access to another database which shall not be named.
I can email the certs as they are generated during the deployment, and the deployment gets destroyed after dev testing. Email address?

Seems you have configured different admin_dn settings in your elasticsearch.yml files? Pls make sure that the
searchguard.authcz.admin_dn setting is identical on all nodes in elasticsearch.yml. Normally you have just one admin dn but its also ok to have more than one. You seem to deal with two certs currently:

CN=admin.elasticsearch-master.service.cv-dev1-aws-west-1.consul,OU=CSP-DB-Mgmt,O=Cloudvisory
CN=admin.elasticsearch-data.service.cv-dev1-aws-west-1.consul,OU=CSP-DB-Mgmt,O=Cloudvisory

There is no need and no reason to have such like a "master" and a "data" admin cert.

PEBCAK. Got it.
Using a single admin cert (as intended/required) fixes the problem. The certificate CN for that admin cert was intended to match a service FQDN in Consul, and I didn't realize I was setting that differently on the one data node. If I understand correctly, a misconfiguration caused the admin cert to be considered "admin" by the master Elasticsearch nodes, but not by the data node(s). Hence, the error only showed up once sgadmin.sh attempted to write data to the searchguard index.
Closing this bug report from my end.

Thank you for the quick responses, btw.


kubectl 1.25 describe has no --timeout flag, breaking kubeflow install

Describe the bug
Installation of kubeflow v1.7.0 (using manifest install pattern, not terraform) breaks when installing the aws-secrets-sync deployment due to a mismatch in the kubectl syntax.  Kubectl has no --timeout on a describe operation, which is used in the utils/utils.py line 273, which fails the installation task(s).
Steps To Reproduce

Install all prereq's for cognito-rds-s3
run make deploy-kubeflow INSTALLATION_OPTION=kustomize DEPLOYMENT_OPTION=cognito-rds-s3 PIPELINE_S3_CREDENTIAL_OPTION=irsa
See error (listed below)

Expected behavior
Kubeflow installed, and all commands operated without error.
Environment

Kubernetes version
v1.25.16-eks-8cb36c9

Using EKS (yes/no), if so version?
Yes - v1.25.16-eks-8cb36c9

Kubeflow version
v1.7.0

kubectl version
Client Version: v1.25.0
Kustomize Version: v4.5.7
Server Version: v1.25.16-eks-8cb36c9

AWS build number
AWS_RELEASE_VERSION="v1.7.0-aws-b1.0.3"

AWS service targeted (S3, RDS, etc.)
S3, Cognito, RDS, EKS

Screenshots
No screens - here's the logs:
...
==========Installing aws-secrets-manager==========
# Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically.
# Warning: 'patchesStrategicMerge' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically.
deployment.apps/aws-secrets-sync unchanged
Warning: secrets-store.csi.x-k8s.io/v1alpha1 is deprecated. Use secrets-store.csi.x-k8s.io/v1 instead.
secretproviderclass.secrets-store.csi.x-k8s.io/rds-secret unchanged
Waiting for aws-secrets-manager pods to be ready ...
running command: kubectl wait --for=condition=ready pod -l 'app in (aws-secrets-sync)' --timeout=240s -n kubeflow
error: no matching resources found
error: unknown flag: --timeout
See 'kubectl describe --help' for usage.
Waiting for aws-secrets-manager pods to be ready ...
running command: kubectl wait --for=condition=ready pod -l 'app in (aws-secrets-sync)' --timeout=240s -n kubeflow
error: no matching resources found
error: unknown flag: --timeout
See 'kubectl describe --help' for usage.
Waiting for aws-secrets-manager pods to be ready ...
running command: kubectl wait --for=condition=ready pod -l 'app in (aws-secrets-sync)' --timeout=240s -n kubeflow
error: no matching resources found
error: unknown flag: --timeout
See 'kubectl describe --help' for usage.
Traceback (most recent call last):
  File "utils/kubeflow_installation.py", line 324, in <module>
    install_kubeflow(
  File "utils/kubeflow_installation.py", line 101, in install_kubeflow
    install_component(
  File "utils/kubeflow_installation.py", line 180, in install_component
    validate_component_installation(installation_config, component_name)
  File "/usr/local/lib/python3.8/dist-packages/retrying.py", line 56, in wrapped_f
    return Retrying(*dargs, **dkw).call(f, *args, **kw)
  File "/usr/local/lib/python3.8/dist-packages/retrying.py", line 266, in call
    raise attempt.get()
  File "/usr/local/lib/python3.8/dist-packages/retrying.py", line 301, in get
    six.reraise(self.value[0], self.value[1], self.value[2])
  File "/usr/local/lib/python3.8/dist-packages/six.py", line 719, in reraise
    raise value
  File "/usr/local/lib/python3.8/dist-packages/retrying.py", line 251, in call
    attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
  File "utils/kubeflow_installation.py", line 192, in validate_component_installation
    kubectl_wait_pods(value, namespace, key)
  File "/kube/tests/e2e/utils/utils.py", line 275, in kubectl_wait_pods
    raise Exception("Timeout/error waiting for pod condition")
Exception: Timeout/error waiting for pod condition
...

Additional context
AWS, EKS, Kubeflow 1.7.0

I can confirm this is the case!

I have also just run into this. Has anyone come up with a fix?


CI proposal, subnets feature and deploy folder restructuring

Dear community,
I propose some changes to the qp repository (the first three in each one commit, the last one in several):

Two small bugfixes
A feature proposal for IP subnets
A basic CI proposal: After a push or PR in the master, three Docker images are created and pushed into my Docker repository (ofc just for demonstration purposes, the repository should be the official MI-I one)
Based on the CI proposal and the issues #3 and #4, I restructured the deploy folder and created an installation guide in the folder

Again, these are just proposals and I am happy to discuss them.

Hi @fnwirth. Thank you very much for your contribution. I just created a CI in parallel the last 2 days (https://github.com/medizininformatik-initiative/distributed-analysis_datashield-qp/pull/11). Thus, I think we have to talk about the CI ;)


feat) number/string/objecy => container file binding support

feat) Object param support
feat) Error if args.yml is invalid; closes #226

approve


Improve ThreadPoolTimer

[x] If user wants to invoke Tick on dispatcher, they should do it by themselves
[x] It should always dispose the Timer

Closed by https://github.com/bramborman/DotNetToolkit/commit/d768c0d5265575bcfcab21015a02b49031d9dd87.


hi !how can i insert css id into specific column field (type,name,sort like id="#demo") i have to add intel plugin to my text box

Redefine itemTemplate and change id property calling itemTemplate of the original field.
But I'd propose using a css class instead. Id should be unique on the entire page, with css class your are safer.


Wrong encoding on XML file.

At the very least with 1.6 the XML should be passed in as UTF8 encoded and not ANSI.
elias_error err = elias_theme_create_from_xml(&theme_handle, TCHAR_TO_UTF8(*xml), error, 1024, 0);
(Corrected version of that line in EliasTheme.cpp)

Thanks for the info. I'll change it as soon as possible.


State CLI Commands

Rupan will investigate and update issue

Subcommands for State in  Lotus
COMMANDS:
power              Query network or miner power
sectors            Query the sector set of a miner
proving            Query the proving set of a miner
pledge-collateral  Get minimum miner pledge collateral
list-actors        list all actors in the network
list-miners        list all miners in the network
get-actor          Print actor information
lookup             Find corresponding ID address
replay             Replay a particular message within a tipset
sector-size        Look up miners sector size
read-state         View a json representation of an actors state
list-messages      list messages on chain matching given criteria
compute-state      Perform state computations
call               Invoke a method on an actor locally
get-deal           View on-chain deal info
wait-msg           Wait for a message to appear on chain
miner-info         Retrieve miner information

On hold for now, since we don't have HTTP support, and we are focused on interop. Will come back to this after interop.