[Bug]: Theme ID mismatch – Live theme ID returned instead of development theme

Please confirm that you have:

[x] Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
[x] Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?
Theme
Expected behavior
Shopify CLI should not crash, and always get connected to the theme ID specified by the environment in the shopify.theme.toml file.
Actual behavior
CLI quits on start or page load and returns this error:
╭─ error ────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                │
│  Theme ID mismatch: expected<PHONE_NUMBER>81 but got<PHONE_NUMBER>45.                            │
│  Request ID: 3ebd1daa-ccfa-4b6e-a6fa-c1eb4d081a9c-1728575669                               │
│  URL: https://MY-STORE.myshopify.com/                                                      │
│                                                                                │
│                                                                                │
│  This is likely related to an issue in upstream Shopify APIs.                              │
│  Please try again in a few minutes and report this issue:                                  │
│  https://github.com/Shopify/cli/issues/new?template=bug-report.yml                         │
│                                                                                │
╰────────────────────────────────────────────────────────────────────────────────────────────╯

Verbose output
2024-10-10T16:07:14.373Z: Analytics event sent: {
  "command": "theme dev",
  "time_start":<PHONE_NUMBER>479,
  "time_end":<PHONE_NUMBER>729,
  "total_time": 9250,
  "success": true,
  "cli_version": "3.68.1",
  "ruby_version": "3.3.5",
  "node_version": "22.9.0",
  "is_employee": false,
  "uname": "darwin arm64",
  "env_ci": false,
  "env_plugin_installed_any_custom": false,
  "env_plugin_installed_shopify": "[\"@shopify/cli\"]",
  "env_shell": "zsh",
  "env_device_id": "ba91c82e48d5b2b1e0888eb9bc166e9c62cb811c",
  "env_cloud": "localhost",
  "env_package_manager": "pnpm",
  "env_is_global": true,
  "env_auth_method": "device_auth",
  "cmd_app_warning_api_key_deprecation_displayed": false,
  "cmd_all_timing_network_ms": 3553,
  "cmd_all_timing_prompts_ms": 4892,
  "cmd_all_launcher": "unknown",
  "cmd_all_topic": "theme",
  "cmd_all_plugin": "@shopify/theme",
  "cmd_all_force": false,
  "cmd_all_verbose": true,
  "cmd_all_path_override": true,
  "cmd_all_path_override_hash": "44e2c1bcb547053d064f5d49f3f7abeb51082d5f",
  "cmd_all_timing_active_ms": 803,
  "cmd_all_exit": "ok",
  "user_id": "395cbaa2-2a4e-44a1-a44e-ea0b73b42f08",
  "args": "-e dev --verbose",
  "cmd_all_environment_flags": "{\"store\":\"MY-STORE\",\"theme\":\"140504694981\",\"theme-editor-sync\":true}",
  "env_plugin_installed_all": "[\"@shopify/cli\"]",
  "metadata": "{\"extraPublic\":{},\"extraSensitive\":{}}"
}
2024-10-10T16:07:14.375Z: Completed command theme dev
GET /
2024-10-10T16:07:14.562Z: → Rendering https://MY-STORE.myshopify.com/?_fd=0&pb=0 (with )...
2024-10-10T16:07:14.939Z: Request to https://MY-STORE.myshopify.com/?_fd=0&pb=0 completed in 376 ms
With response headers:
 - content-type: text/html; charset=utf-8
 - etag: "cacheable:380f927c268eee6a27457ff9d8bdf259"
 - server-timing: processing;dur=224;desc="gc:15", db;dur=72, db_async;dur=28.855, edge_cart;dur=1.4;desc="trips=1", parse;dur=7, render;dur=76, asn;desc="22773", edge;desc="LAX", country;desc="US", theme;desc="139501109445", pageType;desc="index", servedBy;desc="b5pp", requestID;desc="228406a0-5797-4047-ba1d-3b8756fc2e9c-1728576434", cfRequestDuration;dur=346.999884, ipv6
 - x-request-id: 228406a0-5797-4047-ba1d-3b8756fc2e9c-1728576434

2024-10-10T16:07:14.939Z: ← 200 (request_id: 228406a0-5797-4047-ba1d-3b8756fc2e9c-1728576434)
╭─ error ────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                │
│  Theme ID mismatch: expected<PHONE_NUMBER>81 but got<PHONE_NUMBER>45.                            │
│  Request ID: 228406a0-5797-4047-ba1d-3b8756fc2e9c-1728576434                               │
│  URL: https://MY-STORE.myshopify.com/?_fd=0&pb=0                                           │
│                                                                                │
│  This is likely related to an issue in upstream Shopify APIs.                              │
│  Please try again in a few minutes and report this issue:                                  │
│  https://github.com/Shopify/cli/issues/new?template=bug-report.yml                         │
│                                                                                │
╰────────────────────────────────────────────────────────────────────────────────────────────╯

Reproduction steps

Start shopify theme dev -e [ENV_NAME] using the shopify.theme.toml file to specify store name and theme ID
Error sometimes occurs immediately, otherwise after a page refresh seemingly randomly
Restart Shopify CLI and repeat ☝

Operating System
Mac OS Sonoma 14.5
Shopify CLI version (check your project's package.json if you're not sure)
3.68.1
Shell
zsh
Node version (run node -v if you're not sure)
v20.17.0
What language and version are you using in your application?
No response

i have the same Issue

Being bitten by this as well, only in my case I wasn't setting the theme ID explicitly but allowing the cli to create a development theme ID for me. It seems like in that case on certain routes the cli decides that the dev theme id doesn't match the active theme's, and then the cli crashes.
Explicitly setting the ID as that of the active theme (either using a toml or the --theme flag) works, but that creates other issues I'd rather not deal with.
Not sure how this problem began, I've not changed anything in my local dev process. That said, other people in the org aren't running into this, so maybe it's something I'm doing.

Just tested using shopify theme dev --legacy and did not have these issues. So that's a workaround for people – the --legacy flag.
Back to the v3 problem:
Here's the verbose log – note the theme changing value when navigating to /account (not sure what values are sensitive, so redacting).
I'm wondering if this has to do with cached routes being served while running theme dev, as the index route is served uncached, whereas the /account route seems to be coming from cache with the wrong theme ID in the Server-Timing header:
GET /
2024-10-18T21:41:26.468Z: → Rendering https://$REDACTED.myshopify.com/?_fd=0&pb=0 (with )...
2024-10-18T21:41:27.039Z: Request to https://$REDACTED.myshopify.com/?_fd=0&pb=0 completed in 571 ms
With response headers:
 - cache-control: no-cache, no-store
 - content-type: text/html; charset=utf-8
 - server-timing: processing;dur=385;desc="gc:27", db;dur=124, db_async;dur=6.315, edge_cart;dur=1.5;desc="trips=1", parse;dur=16, render;dur=156, asn;desc="7922", edge;desc="SEA", country;desc="US", theme;desc="$DEV_THEME_ID", pageType;desc="index", servedBy;desc="6n6b", requestID;desc="df7f3bc7-ed43-4121-a2e3-fcbba6721193-1729287686", cfRequestDuration;dur=496.000051
 - x-request-id: df7f3bc7-ed43-4121-a2e3-fcbba6721193-1729287686

2024-10-18T21:41:27.039Z: ← 200 (request_id: df7f3bc7-ed43-4121-a2e3-fcbba6721193-1729287686)
GET /account
2024-10-18T21:41:35.095Z: → Rendering https://$REDACTED.myshopify.com/account?_fd=0&pb=0 (with )...
2024-10-18T21:41:35.894Z: Request to https://$REDACTED.myshopify.com/account?_fd=0&pb=0 completed in 799 ms
With response headers:
 - content-type: text/html; charset=utf-8
 - etag: "cacheable:69b0181007e3b709b9d3a8ffe227ec38"
 - server-timing: processing;dur=243;desc="gc:57", db;dur=36, db_async;dur=7.496, parse;dur=10, render;dur=73, asn;desc="7922", edge;desc="SEA", country;desc="US", theme;desc="$ACTIVE_THEME_ID", pageType;desc="customers/login", servedBy;desc="2spz", requestID;desc="72dcd59e-5fa8-45f1-a669-9ff1d9bb6c84-1729287695", cfRequestDuration;dur=349.999905
 - x-request-id: 72dcd59e-5fa8-45f1-a669-9ff1d9bb6c84-1729287695

2024-10-18T21:41:35.895Z: ← 200 (request_id: 72dcd59e-5fa8-45f1-a669-9ff1d9bb6c84-1729287695)
╭─ error ───────────────────────────────────────────────────────────────────────────────╮
│                                                                                │
│  Theme ID mismatch: expected $DEV_THEME_ID but got $ACTIVE_THEME_ID.                       │
│  Request ID: 72dcd59e-5fa8-45f1-a669-9ff1d9bb6c84-1729287695                          │
│  URL:                                                                                │
│  https://$REDACTED/account/login?return_url=%2Faccount%3F_fd%3D0%26pb%3D0 			│
│                                                                                │
│  This is likely related to an issue in upstream Shopify APIs.                         │
│  Please try again in a few minutes and report this issue:                             │
│  https://github.com/Shopify/cli/issues/new?template=bug-report.yml                    │
│                                                                                │
╰───────────────────────────────────────────────────────────────────────────────────────╯

I was having this problem too.
Quick fix if anyone need it - assuming you're using Chrome -
Copy & paste chrome://settings/content/all?searchSubpage=127.0&search=127.0.0 in your URL bar to access your local storage settings for the development domain (<IP_ADDRESS>)
Delete your cookies & other stored files for <IP_ADDRESS>
Restart your shopify theme dev process, and try accessing your site again.

👋 Hey everyone,
Could you please validate this issue is really fixed for you on this version of the CLI?
pnpm i -g<EMAIL_ADDRESS>
I'd like to be sure this issue is resolved for everyone in the next release.
Thanks a lot for reporting this!

I was having this problem too.
Quick fix if anyone needs it - assuming you're using Chrome -
Copy & paste chrome://settings/content/all?searchSubpage=127.0&search=127.0.0 in your URL bar to access your local storage settings for the development domain (<IP_ADDRESS>)
Delete your cookies & other stored files for <IP_ADDRESS>
Restart your shopify theme dev process, and try accessing your site again.

I did this but it still didn't fix it for me.

I had this issue, and managed to work out why it was happening to me.
My theme was pre-requesting URLs when you hover a link. In this case when I hovered "My Orders" it was pre-requesting /accounts/orders which was just crashing the CLI.
Binning that URL off removed the constant cli crash. Incidentally, I can manually trigger the crash by navigating to account/orders in my browser.


Update to preserve column ordering during select

Update to preserve column ordering during select
Closes #1039

This PR implements changes to TableSchema._filter_cols to use a list in place of a set, thus guaranteeing that the column order returned by the method will match the column order on the dataframe to which the schema belongs.

@thehomebrewnerd Thank you for this! This meets EvalML's requirements. If you're worried about the performance hit of having to check inclusion in a list vs a set, maybe you can create a separate set to keep track of the column names we've seen before?
This implementation would work for us though!

Thanks for the suggestion, I'll look into that approach a bit more.

I'm wondering if this change to TableSchema_filter_cols means that _get_subset_df_with_schema no longer needs use_dataframe_order? The only other place where _get_subset_df_with_schema gets called with use_dataframe_order=True is in drop, and I think that the columns passed in from there should match the dataframe column ordering.
Might not be worth removing the keyword, because it could definitely come in handy later, but just wanted to bring this up.

Looks to me like you are correct about this. I don't think the use_dataframe_order argument is necessary now. drop should always maintain the order based on the way columns are generated, so the only other place this was used is in select.
I think we should remove this rather than leaving it in for some possible future use. I will update.


Test and fix min/max implementation on uint32_t for AVX2

All green, cc @JohanMabille

Great! thank you!


Use user_agent instead of fake_useragent (+ bug fix)

While trying to use this package, I noticed that it would often not scrape any tweets at all. After digging around in the code I realized that the fake_useragent package is providing User-Agent strings for browser versions that are considered outdated by Twitter. When this happens, mobile Twitter is loaded instead, and the Tweets are not converted from HTML properly.
Switching to the user_agent package ensures that the browser versions are up-to-date (or so it seems, I haven't seen any issues with it yet) and that the tweets are returned every time. The browsers aren't as diverse as those generated by fake_useragent though, so if there's another package that could be used, I'm open to using it instead.
I've also fixed the try/except in query_single_page() to catch aiohttp.ClientError rather than aiohttp.client_exceptions, which was throwing an error due to it not being an actual exception type.

Great catch! I've updated the package information and pushed this fix to PyPI as version 0.1.4, should be accessible through pip install.
Thanks!


feat(security): implement tls block for grafana external

Aim of the merge request
Implement the possibility to use a custom CA and use a client certificate (tls.crt and tls.key) when declaring an external Grafana resource.
This will improve security of the solution because, after analysis, it seems to be in insecureSkipVerify per default in every tls connection.
Breaking change
Currently, every call is in insecureSkipVerify by default regardless if they are using https or not. This MR provides the possibility to use the tls block to make https connection and specify if the connection is insecure or not. If the tls block is not specified, http request will be sent instead.
Related documents
Design document: Add TLS management block in Grafana CR External block

Testing process
To test the tls with a self-signed certificate, we will need to deploy a grafana service (without the operator) with a nginx configured has a https reverse proxy.

Homemade testing process (click to open)
To do this, we will create a self-signed certifcate:

First create the config file crt.conf for the certificate:

[ req ]
prompt = no
distinguished_name = dn
req_extensions = req_ext

[ dn ]
CN = endpoint.grafana-ext.svc.cluster.local
emailAddress =<EMAIL_ADDRESS>O = Test
L = Courbevoie
ST = France
C = FR

[ req_ext ]
subjectAltName = DNS: endpoint.grafana-ext.svc.cluster.local

Then, create the v3.ext file:

subjectAltName         = DNS:endpoint.grafana-ext.svc.cluster.local

Then generate the certifcate and sign it with the following command:

# generate the ca.key
openssl genrsa -out ca.key 4096

# generate the ca.crt from the ca.key
openssl req -x509 -new -nodes -key ca.key -sha256 -days 1024 -out ca.crt

# generate the csr based on a configuration. Required to get the SAN into the certificate
openssl req -new -config crt.conf -key tls.key -out tls.csr

# generate the crt based on the csr and sign it with the CA
openssl x509 -req -in tls.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out tls.crt -days 500 -sha256 -extfile v3.ext

Then, we will declare the manifest for k8s resources:

grafana related resources:

---
apiVersion: v1
kind: Namespace
metadata:
  name: grafana-ext

---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: grafana-ext
  namespace: grafana-ext
  labels:
    app: grafana-ext
spec:
  selector:
    matchLabels:
      app: grafana-ext
  template:
    metadata:
      labels:
        app: grafana-ext
    spec:
      containers:
        - name: grafana
          image: grafana/grafana:latest
          imagePullPolicy: IfNotPresent
          ports:
            - containerPort: 3000
              name: http-grafana
              protocol: TCP
          resources:
            requests:
              cpu: 250m
              memory: 750Mi

---
apiVersion: v1
kind: Service
metadata:
  name: grafana-ext
  namespace: grafana-ext
spec:
  ports:
    - port: 3000
      protocol: TCP
      targetPort: http-grafana
  selector:
    app: grafana-ext

resource related of the nginx (in the same namespace)

--
apiVersion: v1
kind: Secret
metadata:
  name: tls-certificate
  namespace: grafana-ext
data:
  tls.crt: <tls.crt content base64 encoded>
  tls.key: <tls.key content base64 encoded>
  ca.crt: <ca.crt content base64 encoded>
type: Opaque

---
apiVersion: v1
kind: ConfigMap
metadata:
  name: nginx-config
  namespace: grafana-ext
data:
  nginx.conf: |
    events {}
    http {
      server {
        listen       443 ssl;
        ssl_certificate     /etc/nginx/certs/tls.crt;
        ssl_certificate_key /etc/nginx/certs/tls.key;
        server_name  endpoint.grafana-ext.svc.cluster.local;
        ssl_protocols       TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;

        location / {
            proxy_pass http://grafana-ext:3000/;
        }
      }
    }

---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx
  namespace: grafana-ext
spec:
  replicas: 1
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx
        ports:
        - containerPort: 443
        volumeMounts:
        - mountPath: /etc/nginx/nginx.conf
          subPath: nginx.conf
          name: nginx-conf
        - mountPath: /etc/nginx/certs
          name: tls-certificate
      volumes:
      - name: nginx-conf
        configMap:
          name: nginx-config
          items:
            - key: nginx.conf
              path: nginx.conf
      - name: tls-certificate
        secret:
          secretName: tls-certificate

---
apiVersion: v1
kind: Service
metadata:
  name: endpoint
  namespace: grafana-ext
spec:
  ports:
  - port: 443
    targetPort: 443
  selector:
    app: nginx

the tls secret for the Grafana CR

---
apiVersion: v1
kind: Namespace
metadata:
  name: consumer

--
apiVersion: v1
kind: Secret
metadata:
  name: tls-certificate
  namespace: consumer
data:
  tls.crt: <tls.crt content base64 encoded>
  tls.key: <tls.key content base64 encoded>
  ca.crt: <ca.crt content base64 encoded>
type: Opaque

And finaly, the Grafana CR
---
apiVersion: v1
kind: Secret
metadata:
  name: grafana-admin-credentials
  namespace: consumer
data:
  GF_SECURITY_ADMIN_PASSWORD: YWRtaW4=
  GF_SECURITY_ADMIN_USER: YWRtaW4=
type: Opaque

---
# Use the same grafana instance that we just created, notice the ingress config
apiVersion: grafana.integreatly.org/v1beta1
kind: Grafana
metadata:
  name: external-grafana
  namespace: consumer
  labels:
    dashboards: "external-grafana"
spec:
  external:
    url: https://endpoint.grafana-ext.svc.cluster.local
    adminPassword:
      name: grafana-admin-credentials
      key: GF_SECURITY_ADMIN_PASSWORD
    adminUser:
      name: grafana-admin-credentials
      key: GF_SECURITY_ADMIN_USER
    tls:
      insecureSkipVerify: true
      #certSecretRef:
      #  name: tls-certificate

a dashboard to ensure the connection is working well:

---
apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDashboard
metadata:
  name: grafana-root
  namespace: consumer
  labels:
    dashboards: "external-grafana"
spec:
  instanceSelector:
    matchLabels:
      dashboards: "external-grafana"
  json: |
    {
      "id": null,
      "title": "Simple Dashboard",
      "tags": [],
      "style": "dark",
      "timezone": "browser",
      "editable": true,
      "hideControls": false,
      "graphTooltip": 1,
      "panels": [],
      "time": {
        "from": "now-6h",
        "to": "now"
      },
      "timepicker": {
        "time_options": [],
        "refresh_intervals": []
      },
      "templating": {
        "list": []
      },
      "annotations": {
        "list": []
      },
      "refresh": "5s",
      "schemaVersion": 17,
      "version": 0,
      "links": []
    }

Then, initialize the kind cluster locally:
make start-kind

export KUBECONFIG=$HOME/.kube/kind-grafana-operator

kubectl delete grafanadashboard/grafana -n grafana-crds; kubectl delete grafanadashboard/grafana; kubectl delete grafana/grafana

# Here I recommend to add a tag to specify the image

make ko-build-kind

make deploy

kubectl edit deploy/grafana-operator-controller-manager-v5 -n grafana-operator-system
# Change the line
# >        image: ghcr.io/grafana/grafana-operator:v5.11.0
# >        imagePullPolicy: Always
# <        image: ko.local/grafana/grafana-operator
# <        imagePullPolicy: IfNotPresent

# Deploy the manifest in this order
kubectl apply -f consumer.yml
kubectl apply -f nginx.yml
kubectl apply -f consumer-tls.yml
kubectl apply -f consumer.yml
kubectl apply -f dashboard.yml

You can now start playing with the parameter from the Grafana CR to test the certificate connectivity.

Additional comments
The behavior of using insecure https connection have not been changed for the rest of the system (grafana_com_fetcher to retrieve dashboard or url_fetcher). The NewHTTPClient has been kept because the Grafana CR's getVersion method use an api path not declared into the grafana-openapi-client (GET /api/frontend/settings).
Just a contextual thing to finish this (too log message), I'll be in holiday for two weeks so the review will probably take a bunch of time before been handled.

Thanks for the PR! Looks great at first glance. It'll take me some time to review, but I'll try to fit it in next week

@theSuess I let you review these changes to ensure everything is fine for you


SyclQueueCreationError: SYCL Device 'gpu:0' could not be created.

import numpy as np
import dpctl
from sklearnex import patch_sklearn, config_context
patch_sklearn()
import paddle
from sklearn.cluster import DBSCAN
X = np.array([[1., 2.], [2., 2.], [2., 3.],
[8., 7.], [8., 8.], [25., 80.]], dtype=np.float32)
with config_context(target_offload="gpu:0"):
clustering = DBSCAN(eps=3, min_samples=2).fit(X)

Intel(R) Extension for Scikit-learn* enabled (https://github.com/intel/scikit-learn-intelex)
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Temp\ipykernel_7648\2661078756.py", line 11, in
clustering = DBSCAN(eps=3, min_samples=2).fit(X)
File "D:\anaconda\env\paddle\lib\site-packages\daal4py\sklearn_device_offload.py", line 88, in wrapper_with_self
return wrapper_impl(self, *args, **kwargs)
File "D:\anaconda\env\paddle\lib\site-packages\daal4py\sklearn_device_offload.py", line 73, in wrapper_impl
q, hostargs, hostkwargs = _get_host_inputs(*args, **kwargs)
File "D:\anaconda\env\paddle\lib\site-packages\daal4py\sklearn_device_offload.py", line 34, in _get_host_inputs
q = _get_global_queue()
File "D:\anaconda\env\paddle\lib\site-packages\sklearnex_device_offload.py", line 82, in _get_global_queue
return QueueClass(target)
File "dpctl_sycl_queue.pyx", line 335, in dpctl._sycl_queue.SyclQueue.cinit
SyclQueueCreationError: SYCL Device 'gpu:0' could not be created.
Could not find a device that matches the specified filter(s)! -1 (CL_DEVICE_NOT_FOUND)

How could i solve it?

import paddle
print(paddle.device.get_device())

gpu:0

Hi @caudjcc, could you specify your gpu:0 device name?
I guess it is not one currently supported by sklearnex:

For GPU
Hardware platforms

All Intel® integrated and discrete GPUs

Hi, when i  specify my gpu:0 device name by:
import os os.environ['CUDA_VISIBLE_DEVICES'] = '0'
and print by:
import paddle print(paddle.device.cuda.get_device_name(0)) print(paddle.device.cuda.device_count())
print result:
NVIDIA GeForce RTX 3090 Ti 1
and then,i run the code:
with config_context(target_offload="gpu:0"):     clustering = DBSCAN(eps=3, min_samples=2).fit(X)
and
with config_context(target_offload="0"):     clustering = DBSCAN(eps=3, min_samples=2).fit(X)
the result are:
`
File "dpctl_sycl_queue.pyx", line 335, in dpctl._sycl_queue.SyclQueue.cinit
SyclQueueCreationError: SYCL Device 'gpu:0' could not be created.
Could not find a device that matches the specified filter(s)! -1 (CL_DEVICE_NOT_FOUND)`
and
`
File "D:\anaconda\env\paddle\lib\site-packages\daal4py\sklearn_device_offload.py", line 62, in _run_on_device
with sycl_context('gpu' if queue.sycl_device.is_gpu else 'cpu',
File "D:\anaconda\env\paddle\lib\contextlib.py", line 113, in enter
return next(self.gen)
File "src\oneapi\oneapi.pyx", line 115, in sycl_context
File "src\oneapi\oneapi.pyx", line 46, in daal4py._oneapi.sycl_execution_context.cinit
RuntimeError: No device of requested type available. Please check https://software.intel.com/content/www/us/en/develop/articles/intel-oneapi-dpcpp-system-requirements.html -1 (CL_DEVICE_NOT_FOUND)`

This device currently is not supported by scikit-learn-intelex.


Fix(ui): tooltip for deactivated bots

Fixed the mistake in the tooltip for the deactivated bot.
Fixes: #28593
Screenshots
Before:

After:

For deactivated users:

Self-review checklist

[x] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Completed manual review and testing of the following:

[x] Visual appearance of the changes.
[x] Responsiveness and internationalization.
[x] Strings and tooltips.
[x] End-to-end functionality of buttons, interactions and flows.
[x] Corner cases, error conditions, and easily imagined bugs.

Sorry for the multiple commits.

please assingned it to me i start working on it

@richardshaju you can rewrite you commit history and make all the changes in a single commit.
Check out the commit discipline

This Issue is solved by another PR.

Hlo Sir, I want to contribute in Zulip and I am a fresh who want to
participate in GSoC and want to contribute just I need your help can you
sir pleaseee
On Thu, 18 Jan, 2024, 9:21 am Richard Shaju, @.***>
wrote:

This Issue is solved by another PR.
—
Reply to this email directly, view it on GitHub
https://github.com/zulip/zulip/pull/28600#issuecomment-1897741957, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/BDDNC6KZOGB3V6VIUIKKOX3YPCL3RAVCNFSM6AAAAABB6TK67SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJXG42DCOJVG4
.
You are receiving this because you commented.Message ID:
@.***>

@vikas-chaudhary-2802 Sure


Massive Slowdown when generating large feed

Describe the bug
So I've made a modification to the AO3 bridge to grab the full text of each chapter of a work so I can do reading fully in my RSS reader. I've noticed that compared to a pared down repro script via simpleHTMLDom that could take around 20s to generate a list of chapters, my modification which does effectively the same thing can take anywhere up to 3-5min to grab the text and generate it.
So I'm curious if there's any obvious ways to speed this up?
// Feed for recent chapters of a specific work.
        private function collectWork($id) {
                $url = self::URI . "/works/$id/navigate";
                $html = getSimpleHTMLDOM($url)
                        or returnServerError('could not request AO4');
                $html = defaultLinkTo($html, self::URI);

                $this->title = $html->find('h2 a', 0)->plaintext;

                foreach($html->find('ol.index.group') as $element) {
                        $item = array();

                        $item['title'] = $element->find('a', 0)->plaintext;
                        $item['uri'] = $element->find('a', 0)->href;

                        $pageHtml = getSimpleHTMLDOM($item['uri'])
                            or returnServerError('could not request AO4');

                        $item['content'] = $pageHtml->find('div[class="userstuff module"]', 0)->innertext;

                        $strdate = $element->find('span.datetime', 0)->plaintext;
                        $strdate = str_replace('(', '', $strdate);
                        $strdate = str_replace(')', '', $strdate);
                        $item['timestamp'] = strtotime($strdate);

                        $item['uid'] = $item['uri'] . "/$strdate";

                        $this->items[] = $item;

                }

                $this->items = array_reverse($this->items);
        }

Hi, @Church- ! Use getSimpleHTMLDomCached

@em92 Hey there. :smile:
So how would getSimpleHTMLDomCached help exactly? Thought that just cached the result of a page for re-use when scraping again later?
When I'm having trouble even generating the initial feed and timing out.

Closing this out, found a work around using the feediron plugin in tt-rss


File-Uploader emits fileChange on destroy

Detailed description
I have a page with 'tabs'. one tab contains a file uploader, and another some other component. When I switch between these tabs, the filesChange is emitted. The end result is that in my data-model the selected file is removed, while the user did not do that.

Is this a feature request (new component, new icon), a bug, or a general issue?
Bug
Is this issue related to a specific component?
file-uploader

What did you expect to happen? What happened instead? What would you like to see changed?
I did not expect a filesChange when the component is destroyed

What browser are you working in?
Chrome

What version of the Carbon Design System are you using?
"carbon-components": "10.24.0",
"carbon-components-angular": "4.27.6",

What offering/product do you work on? Any pressing ship or release dates we should be aware of?

@jerdaane If you set cacheActive to true on your ibm-tabs does it still emit filesChange? If you switch to another tab while cacheActive is false it would destroy all components in the preceding tab, and it seems like you want to keep the state of the tab contents.

Seems like cacheActive should solve the issue, feel free to reopen if the issue persists.

Seems like cacheActive should solve the issue, feel free to reopen if the issue persists.

Hello,
I'm having the same problem but I'm not using the tabs.
I'm using the file uploader inside an ibm modal, this is the file uploader configuration:
<ibm-file-uploader [accept]="acceptedFileExtensions"
    [multiple]="false"
    [(files)]="files"
    drop="true"
    dropText="Drag and drop files here or upload"
    (filesChange)="onDropped($event)">
</ibm-file-uploader>

The problem is that the onDropped method is called twice when selecting a second file (multiple=false).
Those are the steps to reproduce the issue:

select a file a confirm
without removing the first files, select a second file and confirm
the filesChange cb is called twice

It seems that the issue starts calling clear method
https://github.com/IBM/carbon-components-angular/blob/c29d2a6126ac8d7f171bd6c4c87333327dfd871d/src/file-uploader/file-uploader.component.ts#L216
Let me know if you need more details.


Add DHAT memory profiling to benchmark

This PR adds the option to build the benchmark to use the DHAT memory profiler.   See the extra section in README for instructions on how to use it - you can simply turn it on via mem_profiling benchmark option in fabfile.py.
One side effect of profiling is that debug symbols are needed in release binaries.  Maybe there is a way to make this conditional on using the dhat-heap feature flag....
There is a hack to write out the profile after n seconds/minutes, welcome to suggestions to make this better or configurable.  The idea is to however write the profile before the process is killed by the benchmark framework.  I know @asonnino had some ideas.

@huitseeker feedback addressed and rebased

@huitseeker ahhh thanks.... the wonders of Python, where I have no idea something will break due to dynamic typing.  :)

@huitseeker there is something in the CI workflow that tests every feature?  Is there a way to turn off the dhat-heap feature I added for testing, as it's not meant to be used in tests?

there is something in the CI workflow that tests every feature?
Yes.

huitseeker@Garillots-MBP.localdomain➜~/tmp/narwhal(main)» rg 'all-features' ./.github                                                                                [19:34:23]
./.github/workflows/nightly.yml
48:          args: --all-features
60:          args: --all-targets --all-features --release --profile=release

./.github/workflows/rust.yml
72:          cargo nextest run --all-features --profile ci
75:          cargo test --doc --all-features

Is there a way to turn off the dhat-heap feature I added for testing, as it's not meant to be used in tests?

You can simply add a commit that changes the --all-features argument to test into a --features celo

@huitseeker thanks for helping merge it!


ValidateHost times out trying to connect with a gmail address.

When I try to use ValidateHost to validate my @gmail.com email address, this line times out trying to connect to the host. Has anyone experienced this issue before?
I'd be happy to mess around and open a PR if anyone is maintaining this library.

hi @DCtheTall have u solved this issue? I also encountered similar issue when ValidateHost, the error message I got is Code: dia, Msg: dial tcp <IP_ADDRESS>:25: i/o timeout

Same as I, I got this error message back
Code: dia, Msg: dial tcp <IP_ADDRESS>:25: i/o timeout

@kidboy-man I have not, I usually wait for some response from a repo's owner before I start working on a PR.

i’m having the same problem with ValidateHost. I’m getting the following error message:

read tcp <IP_ADDRESS>:54120-><IP_ADDRESS>:25: use of closed network connection

If you guys are using Vultr they block 25 port by default. https://www.vultr.com/docs/what-ports-are-blocked

Somewhat related, AWS EC2 instances are blocking port 25 by default - https://aws.amazon.com/premiumsupport/knowledge-center/ec2-port-25-throttle/.


[Release] v1.2.0

With quite a number of changes being made recently to the library, we need to prep for a new release.
A number of changes have been made which are not breaking, but do slightly change behavior in minor ways. As such, I think it'd make more sense to bump the minor number, rather than the patch - to indicate that the change is a little more significant.
I think it's probably worth trying to close a few more PRs and issues before cutting this release, but it's here for the discussion now.
@icanzilb - we'll need a bit of help from you to agree the details of the release and then push to Cocoapods, if you have a little time for this?

James - fantastic work on rounding up all thise open issues! I've been in transit but the next two days I'll find time to review / answer stuff. Are you thinking next week for the 1.2 release?

No worries. Yes, I'd like to probably clear up a last few remaining issues, then release sometime in the next week or so

waiting impatiently for watchos 2.0 support.

I think we're pretty much good to go on a 1.2 release. I'll sort out the podspec & tagging, then it can be pushed to trunk by @icanzilb

See - https://github.com/icanzilb/JSONModel/releases/tag/1.2.0

Just in time for the 3rd birthday of JSONModel :+1:

Actually we can't release this just yet. It doesn't pass linting:
    - ERROR | [watchOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
    - WARN  | [watchOS] xcodebuild:  JSONModel/JSONModel/JSONModelNetworking/JSONHTTPClient.m:122:42: warning: 'CFURLCreateStringByAddingPercentEscapes' is deprecated: first deprecated in watchOS 2.0 - Use [NSString stringByAddingPercentEncodingWithAllowedCharacters:] instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent (since each URL component or subcomponent has different rules for what characters are valid). [-Wdeprecated-declarations]
    - NOTE  | [watchOS] xcodebuild:  /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator2.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h:395:13: note: 'CFURLCreateStringByAddingPercentEscapes' has been explicitly marked deprecated here
    - ERROR | [watchOS] xcodebuild:  JSONModel/JSONModel/JSONModelNetworking/JSONHTTPClient.m:168:42: error: 'sendSynchronousRequest:returningResponse:error:' is unavailable: not available on watchOS
    - NOTE  | [watchOS] xcodebuild:  /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator2.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLConnection.h:407:1: note: 'sendSynchronousRequest:returningResponse:error:' has been explicitly marked unavailable here
    - ERROR | [watchOS] xcodebuild:  JSONModel/JSONModel/JSONModelNetworking/JSONHTTPClient.m:178:24: error: use of undeclared identifier 'kCFURLErrorUserCancelledAuthentication'; did you mean 'NSURLErrorUserCancelledAuthentication'?
    - NOTE  | [watchOS] xcodebuild:  /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator2.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:95:5: note: 'NSURLErrorUserCancelledAuthentication' declared here
    - WARN  | [tvOS] xcodebuild:  JSONModel/JSONModel/JSONModelNetworking/JSONHTTPClient.m:122:42: warning: 'CFURLCreateStringByAddingPercentEscapes' is deprecated: first deprecated in tvOS 9.0 - Use [NSString stringByAddingPercentEncodingWithAllowedCharacters:] instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent (since each URL component or subcomponent has different rules for what characters are valid). [-Wdeprecated-declarations]
    - NOTE  | [tvOS] xcodebuild:  /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator9.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h:395:13: note: 'CFURLCreateStringByAddingPercentEscapes' has been explicitly marked deprecated here
    - WARN  | [tvOS] xcodebuild:  JSONModel/JSONModel/JSONModelNetworking/JSONHTTPClient.m:168:42: warning: 'sendSynchronousRequest:returningResponse:error:' is deprecated: first deprecated in tvOS 9.0 - Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h [-Wdeprecated-declarations]
    - NOTE  | [tvOS] xcodebuild:  /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator9.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLConnection.h:407:1: note: 'sendSynchronousRequest:returningResponse:error:' has been explicitly marked deprecated here

We'll need to resolve all the "error" and "warn" issues - assuming that we keep watchOS and tvOS. Some of those issues will be a big deal to resolve though.

just saw the errors, it'll take some yes

Perhaps we should not support JSONHTTPClient on watchOS - since the method of retrieving data, either from the Watch via Wi-Fi or from the phone via IPC, is complex and up to the app to decide.
It definitely does make sense on tvOS though.
Removing the use of sendSynchronousRequest:returningResponse:error: may be fairly complex.

Yes to both, but i personally have no time right now to look into it :( it's been bad two months

All resolved. No warnings from linting now :)
Note you might need to clear your CocoaPods cache, as the tag has moved:
rm -rf "${HOME}/Library/Caches/CocoaPods/Pods/Specs/External/JSONModel"
rm -rf "${HOME}/Library/Caches/CocoaPods/Pods/Specs/Release/JSONModel"
rm -rf "${HOME}/Library/Caches/CocoaPods/Pods/External/JSONModel"
rm -rf "${HOME}/Library/Caches/CocoaPods/Pods/Release/JSONModel"

@icanzilb Could you do the push to trunk please?

You're the man! I'll try to push later today from the hotel

@billinghamj - December 30th, 22:24: Push for `JSONModel 1.2.0' has been pushed (1.685497668 s). :)

👍🏼


EDA Telemetry

Critical Changes
Changes
EDA Feature Telemetry

EDA Feature Telemetry collects feature and usage metrics when customers use our products. We use this information to understand the level of usage and adoption of various EDA features. No personally identifiable information is collected through EDA Feature Telemetry. Read more about EDA Feature Telemetry here: [link to EDA Feature Telemetry]. We added the following to EDA Feature Telemetry:

Automatic Household Naming Enabled
Count of Active Course Connection Record Types
Count of Administrative Accounts
Count of Auto-Create Campaign Member Relationship Rules
Count of Auto-Create Contact Relationship Rules
Count of Course Connections
Count of Course Offering Schedules
Count of Error Logs
Count of Facilities
Count of Household Accounts
Count of Plan Requirements
Count of Program Plans
Count of Term Grades
Course Connections Enabled
Default Account Model = Administrative
Default Account Model = Household
Error Handling Enabled
Has Custom Administrative Account Naming
Has Custom Household Account Naming
Has Inactivated EDA TDTM Triggers
Has User-Managed TDTM Triggers
Relationship Reciprocal Method = Value Inversion
Storing Errors Enabled
Using Old Contact Ethnicity Values
Using Old Course Description Field

Issues Closed
New Metadata
New Apex Classes:

UTIL_FeatureManagement.cls
UTIL_FeatureManagement_TEST.cls
UTIL_OrgTelemetry.cls
UTIL_OrgTelemetry_BATCH.cls
UTIL_OrgTelemetry_TEST.cls

New Feature Parameter Booleans:

HasCustomAdministrativeAccountNaming
HasCustomHouseholdAccountNaming
HasDefaultAdministrativeAccountModel
HasDefaultHouseholdAccountModel
HasEDAInactiveTDTM
HasUserManagedTDTM
HasValueInversionReciprocalMethod
IsEnabled_AutomaticHouseholdNaming
IsEnabled_CourseConnections
IsEnabled_ErrorHandling
IsEnabled_StoreErrors
UsingOldContactEthnicity
UsingOldCourseDescription

New Feature Parameter Integers:

Data_CountAdministrativeAccounts
Data_CountCampaignMemberRelationshipRules
Data_CountContactRelationshipRules
Data_CountCourseConnections
Data_CountCourseOfferingSchedules
Data_CountErrorLog
Data_CountFacilities
Data_CountHouseholdAccounts
Data_CountPlanRequirements
Data_CountProgramPlans
Data_CountTermGrades
Org_CountActiveCourseConnectionRecordTypes

Deleted Metadata
Testing Notes
While no telemetry data can be sent to the FMA org with scratch orgs, we can test that the batch job executes successfully by running the following command via anonymous Apex & monitoring the status of the Apex Jobs: UTIL_OrgTelemetry.dispatchTelemetryBatchJob();

@lifewithryan I'm keeping this in Draft mode so that we don't merge it early, but if you have time you can start looking over the telemetry architecture here.

**lurch: attach W-033620

Tracking W-033620

@lifewithryan I've moved this from draft mode to ready for review - feel free to do another once-over when you get a chance :)

@lifewithryan I spent a few hours testing this and all looks good to me. Are we ready to merge this?
cc @jstvz as a heads up - the parameters should be headed over to the packaging org soon...


rpc over tor hidden service for bitcoind

SatSale can now connect to your bitcoin node via a tor hidden service.
Currently this requires

Adding a hidden service on your node in /etc/tor/torrc
Adding the hostname onion to config.py like tor_bitcoinrpc_host = "http://u7...bid.onion"
Running tor on your SatSale machine, with torrc (thanks @x_y:matrix.org):

SocksPort <IP_ADDRESS>:9050 IsolateClientProtocol IsolateDestPort IsolateDestAddr ExtendedErrors IPv6Traffic PreferIPv6 KeepAliveIsolateSOCKSAuth
SocksPolicy accept <IP_ADDRESS>
SocksPolicy reject *

Works as an alternative to ssh_tunnel, and probably has some small server side privacy benefits?
Will be looking at building the same for lightning network gRPC this week.

Relevant issue: https://github.com/nickfarrow/SatSale/issues/10

Just going to merge this and find a solution for lnd later
https://twitter.com/coinjoiner/status/1424328752159367176


Animations not assigned to appropriate folder when rendering

after updating from 0.6, animations on characters don't seem to play, trying to load animations on sora and he just stays t-posed, animations work fine on 0.6

Animation playback is still working fine for me. Which animations are you trying to play? There's a bug on 0.6.2 involving zero length animations. If you see "NaN" listed as the current frame, just edit it to be "0.0" instead. This will be fixed for the next release.

I’m just trying to load soras fall animation and idle animations

On Sep 26, 2022, at 11:11 PM, SMG @.***> wrote:

Animation playback is still working fine for me. Which animations are you trying to play? There's a bug on 0.6.2 involving zero length animations. If you see "NaN" listed as the current frame, just edit it to be "0.0" instead. This will be fixed for the next release.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.

I'm able to reproduce this with some of Sonic's animations but it seems pretty inconsistent. I'll try and look into this for the next release.

@SushiiZ This will be fixed on the next release. On the current version (0.6.2), you can fix this by just reloading the current workspace with Ctrl+R or by clicking File > Reload Workspace.


Migrating Kafka users and acl management

What changed, and why it matters
Migrating https://help.aiven.io/en/articles/1028939-adding-kafka-users-and-managing-access-control
Fixes #414

Please take this as first attempt of splitting and reshuffling the original article content. I would like to get feedback on the table layout in the concepts/acl file to understand if the information is now more digestible and how to improve the formatting.
Also now we have several warnings regarding duplicated target name that is driven by the "view docs" links in the table, would like to understand how/if it's possible to solve them

@lornajane, do you know by any chance a way to merge several rows  with our current setup?

I don't, if you didn't find it by googling then I doubt I will either! Any of your other suggestions sounds reasonable, especially if it means the link text is a bit descriptive


graceful stop will not wait for consumers to finish processing in-progress deliveries

Hi,
I am using sneakers when rails. I am running into an issue where for some reason when the gem looses connection with the rabbit server it will just crash, however I am putting that on the back burner right now since that specific rabbit server needs to be rebuilt anyways.
So I am trying to put in a bandaid and found a somewhat major issue.
I am trying to kill the worker like this:

kill cat /var/www/my-app/tmp/pids/sneakers.pid

The logs show me:

2017-09-28T12:22:03Z p-12828 t-1g475w INFO: Received graceful stop
2017-09-28T12:22:03Z p-12834 t-1a15bc INFO: Shutting down workers
2017-09-28T12:22:04Z p-12828 t-bfuig INFO: Worker 0 finished with status 0

But looking at the output of the worker that was last doing its thing, its clear that it is not actually stopping gracefully. The last message it was processing was just stopped and it is back on the queue.
While I can account for this happening in my code (which I do anyways), it is far from ideal when my bandaid was going to be a cronjob that just restarts all the workers every hour or so while I work on a more long term solution.
I am not sure what configuration I can post that would be helpful here, I am currently using sneakers 2.3.0

Curiously Bunny itself already does this when there are consumers on a channel.

To me graceful (this is generally what I have seen) is allowing current child processes to finish what they are doing. Similar to a graceful stop/restart of nginx or apache, in which both don't drop active requests on the floor.
It actually looks like this may have been partially fixed in 2.6.0 https://github.com/ruby-amqp/bunny/pull/437 , however that is just with a timeout.

@jonheckman if your consumers are idempotent, it's not necessarily an issue because unacknowledged deliveries will be requeued by RabbitMQ. Anyhow, please see my explanation above. Upgrading Bunny alone won't be sufficient.

I believe https://github.com/ruby-amqp/bunny/pull/437 largely addresses this.


sf data query could throw JavaScript heap out of memory because jsforce bulk v2 allocates all record results in memory

Is your feature request related to a problem? Please describe.
The bulk query method that sfdx is using is currently storing all records in memory instead of writing them to disk.

src: https://github.com/jsforce/jsforce/blob/95932f288a59a0b68ff9fe8cc1a94523a4d0fb85/src/api/bulk.ts#L1077-L1099

src: https://github.com/jsforce/jsforce/blob/95932f288a59a0b68ff9fe8cc1a94523a4d0fb85/src/api/bulk.ts#L1244-L1264
Because of that, I believe that an exception like Process out of Memory Exception could happen if a User tries to export a few million records using a query like shown below:
sf data query --query "SELECT Id FROM Contact" --bulk

src: https://github.com/salesforcecli/plugin-data/blob/b56e778f6c9ef8affbc0719cafb629b07d19ce2c/src/commands/data/query.ts#L135-L153
I'm not sure, but I also think that this type of exception wouldn't be captured by a try/catch. I think node would exit 1 straight away.
This does not happen when using jsforce bulk v1 implementation because it was developed with streams in mind.

src: https://github.com/jsforce/jsforce/blob/95932f288a59a0b68ff9fe8cc1a94523a4d0fb85/src/api/bulk.ts#L959-L983
What are you trying to do
Export a few million records using sfdx bulk query
Describe the solution you'd like
1 . Jsforce must accept a write stream so that Data could be released after writting it to disk. Memory can be released when this.records[] reaches N kbs of data.
2. Sfdx should create a write stream when the -b flag is true.
Describe alternatives you've considered
N/a
Additional context
N/a

Here is a test I did to serve as evidence for this problem

103k records using FIELDS(STANDARD) consumed arround 114Mb

Another problem I found is that the Bulk API V2 PK Chunking feature does not work...
I added 'Sforce-Enable-PKChunking': 'chunkSize=5000; header as explained in this doc  and the job wasn't broken into multiple batches.

Thanks for this also @AllanOricil, I'll add this to a JSForce category in our back log

@iowillhoit
I still can't understand why this stupid bulk api v2 doesn't break my job into 2 batches when I'm creating a job with 'Sforce-Enable-PKChunking': 'chunkSize=100000',

When querying the job information, the output says the job processed 103344 records instead of 100k records

the locator header is undefined even after setting maxRecords query param to 10k

I've just tried creating a job using 'Sforce-Enable-PKChunking': 'TRUE', which set the defualt chunk size to 100k according to this doc, but it did not work as well

Product2 is in the list of support objects, so my job request should have been broken into 2 batches

I finally made it work. I will try to open a PR in the jsforce repo and if my changes are approved I can then open a PR in the data plugin repo.

@iowillhoit I managed to fix jsforce creating a async iterator. I will soon open a PR to share my code, but here is a preview
https://user-images.githubusercontent.com/55927613/227083974-a2f6730a-b2e6-4d01-a121-865db43473a7.mov

These PRs fix this bug

closing this, for big queries we added a new data export bulk commands:
https://github.com/forcedotcom/cli/tree/main/releasenotes/#2626-october-16-2024
bulk mode for data query will be deprecated in a future release.


Unhandled rejection Error: Invalid arguments: 'delay'

This error is pretty new and happens with either v1.4.x or 1.5.x. It seems to be related to bluebird (they released a new version 15 days ago), maybe you should fix the bluebird version.
Till then the Webpack watch is broken.
Unhandled rejection Error: Invalid arguments: 'delay'
    at NodeWatchFileSystem.watch (/Users/shprink/Sites/bixev/react2pics/node_modules/webpack/lib/node/NodeWatchFileSystem.js:29:9)
    at Watching.watch (/Users/shprink/Sites/bixev/react2pics/node_modules/webpack/lib/Compiler.js:86:47)
    at Watching._done (/Users/shprink/Sites/bixev/react2pics/node_modules/webpack/lib/Compiler.js:82:8)
    at Watching.<anonymous> (/Users/shprink/Sites/bixev/react2pics/node_modules/webpack/lib/Compiler.js:60:18)
    at Tapable.emitRecords (/Users/shprink/Sites/bixev/react2pics/node_modules/webpack/lib/Compiler.js:279:37)
    at Watching.<anonymous> (/Users/shprink/Sites/bixev/react2pics/node_modules/webpack/lib/Compiler.js:57:19)
    at /Users/shprink/Sites/bixev/react2pics/node_modules/webpack/lib/Compiler.js:272:11
    at Tapable.applyPluginsAsync (/Users/shprink/Sites/bixev/react2pics/node_modules/webpack/node_modules/tapable/lib/Tapable.js:60:69)
    at Tapable.afterEmit (/Users/shprink/Sites/bixev/react2pics/node_modules/webpack/lib/Compiler.js:269:8)
    at Tapable.<anonymous> (/Users/shprink/Sites/bixev/react2pics/node_modules/webpack/lib/Compiler.js:264:14)
    at done (/Users/shprink/Sites/bixev/react2pics/node_modules/webpack/node_modules/async/lib/async.js:132:19)
    at /Users/shprink/Sites/bixev/react2pics/node_modules/webpack/node_modules/async/lib/async.js:32:16
    at MemoryFileSystem.writeFile (/Users/shprink/Sites/bixev/react2pics/node_modules/webpack-dev-server/node_modules/webpack-dev-middleware/node_modules/memory-fs/lib/MemoryFileSystem.js:224:9)
    at Tapable.writeOut (/Users/shprink/Sites/bixev/react2pics/node_modules/webpack/lib/Compiler.js:258:27)
    at Tapable.<anonymous> (/Users/shprink/Sites/bixev/react2pics/node_modules/webpack/lib/Compiler.js:244:20)
    at /Users/shprink/Sites/bixev/react2pics/node_modules/webpack/node_modules/async/lib/async.js:122:13
    at _each (/Users/shprink/Sites/bixev/react2pics/node_modules/webpack/node_modules/async/lib/async.js:46:13)
    at Object.async.each (/Users/shprink/Sites/bixev/react2pics/node_modules/webpack/node_modules/async/lib/async.js:121:9)
    at Tapable.emitFiles (/Users/shprink/Sites/bixev/react2pics/node_modules/webpack/lib/Compiler.js:233:20)
    at MemoryFileSystem.(anonymous function) [as mkdirp] (/Users/shprink/Sites/bixev/react2pics/node_modules/webpack-dev-server/node_modules/webpack-dev-middleware/node_modules/memory-fs/lib/MemoryFileSystem.js:197:10)
    at Tapable.<anonymous> (/Users/shprink/Sites/bixev/react2pics/node_modules/webpack/lib/Compiler.js:227:25)
    at Tapable.next (/Users/shprink/Sites/bixev/react2pics/node_modules/webpack/node_modules/tapable/lib/Tapable.js:67:11)
    at Tapable.<anonymous> (/Users/shprink/Sites/bixev/react2pics/node_modules/webpack/lib/ProgressPlugin.js:73:4)
    at Tapable.next (/Users/shprink/Sites/bixev/react2pics/node_modules/webpack/node_modules/tapable/lib/Tapable.js:69:14)
    at Object.finallyHandler (/Users/shprink/Sites/bixev/react2pics/node_modules/html-webpack-plugin/node_modules/bluebird/js/main/finally.js:40:23)
    at Object.tryCatcher (/Users/shprink/Sites/bixev/react2pics/node_modules/html-webpack-plugin/node_modules/bluebird/js/main/util.js:24:31)
    at Promise._settlePromiseFromHandler (/Users/shprink/Sites/bixev/react2pics/node_modules/html-webpack-plugin/node_modules/bluebird/js/main/promise.js:454:31)
    at Promise._settlePromiseAt (/Users/shprink/Sites/bixev/react2pics/node_modules/html-webpack-plugin/node_modules/bluebird/js/main/promise.js:530:18)
    at Promise._settlePromises (/Users/shprink/Sites/bixev/react2pics/node_modules/html-webpack-plugin/node_modules/bluebird/js/main/promise.js:646:14)
    at Async._drainQueue (/Users/shprink/Sites/bixev/react2pics/node_modules/html-webpack-plugin/node_modules/bluebird/js/main/async.js:182:16)
    at Async._drainQueues (/Users/shprink/Sites/bixev/react2pics/node_modules/html-webpack-plugin/node_modules/bluebird/js/main/async.js:192:10)
    at Async.drainQueues (/Users/shprink/Sites/bixev/react2pics/node_modules/html-webpack-plugin/node_modules/bluebird/js/main/async.js:15:14)
    at process._tickCallback (node.js:419:13)

Can it be fixed by setting the bluebird version back down?

Can't reproduce

@shprink: I ran into this error using an old version of webpack (1.7.2), updating it to 1.10.1 fixed it.


prevent excessive sql queries in DoctrineKeyValueStyleRule

in a future major version we will use the phpstan-DI instead
fixes https://github.com/staabm/phpstan-dba/pull/554#issuecomment-1446936827

//cc @hemberger


Feature: Choose a ssl certificate other than the default one

I had the following problem:
ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate
when using the function: AuthenticatedAlephHttpClient and AlephHttpClient
I searched on the internet for a way to solve this problem, but all the commands/advice given didn't work.
So I thought it would be a good idea to give the user the option of specifying a specific SSL certificate if they wish.
This worked in my case and gave me the option of continuing to use the SDK provided by Aleph.

What was the context of your error? Did you develop an app that somehow has custom SSL handling? Could you share your code?

In addition to the comments from @MHHukiewitz , how can we ensure that this change keeps working ?
Do you know how to add unit tests to test this feature automatically ?

I tried to develop a very simple Python application with Flask.
My goal was to try out some of the features of the Python SDK. I don't think this application uses a custom SSL.
Here's the code I ran:
app.py
import asyncio
from flask import Flask, render_template, request
from templates import script

app = Flask(__name__)

@app.route("/")
def index():
    return render_template("index.html")

@app.route("/submit", methods=["POST"])
def submit():
    if request.method == "POST":
        asyncio.run(script.create_agg())
        return render_template("index.html")
    return render_template("/")

@app.route("/get_aggregate", methods=["GET"])
def get_aggregate():
    if request.method == "GET":
        asyncio.run(script.get_agg())
        return render_template("index.html")
    return render_template("/")

@app.route("/post_file", methods=["POST"])
def post_file():
    file = request.files["file"]
    content = file.read()
    if request.method == "POST" and content != None:
        asyncio.run(script.post_file(content))
        return render_template("index.html")
    return render_template("/")

@app.route("/post_program", methods=["POST"])
def post_program():
    code = request.files["code"]
    if request.method == "POST" and code != None:
        asyncio.run(script.post_program(code))
        return render_template("index.html")
    return render_template("/")

if __name__ == "__main__":
    app.run(debug=True)

scripts.py
from aleph_message.models import MessageType
from aleph.sdk.chains.ethereum import get_fallback_account
from aleph.sdk.client import AuthenticatedAlephHttpClient
from aleph.sdk.client import AlephHttpClient
from aleph.sdk.types import StorageEnum
from aleph.sdk.conf import settings as sdk_settings
from aleph_message.models.execution.program import Encoding
import ssl
import certifi

sslcontext = ssl.create_default_context(cafile=certifi.where())

async def create_agg():
        account = get_fallback_account()
        async with AuthenticatedAlephHttpClient(account, ssl_context=sslcontext) as client:
            message, status = await client.create_aggregate(
                "profile",
                {"bio": "tester", "name": "Antony"},
            )
            print(message.content)
            print(message.item_hash)
            print(status)

async def get_agg():
    async with AlephHttpClient(ssl_context=sslcontext) as client:
        aggregate = await client.fetch_aggregate(
            "0xbC80BeEcBd67549E70cb1C729e903818E6370D37",
            "profile",
        )
        print(aggregate)

async def post_file(file_content):
    account = get_fallback_account()
    async with AuthenticatedAlephHttpClient(account, ssl_context=sslcontext) as client:
        storage = StorageEnum.ipfs if len(file_content) > 4 * 1024 * 1024 else StorageEnum.storage
        message, status = await client.create_store(
            account.get_address(),
            file_content,
            storage_engine=storage,
        )
        print(message.item_hash)
        print(status)

async def post_program(file):
    account = get_fallback_account()

    async with AuthenticatedAlephHttpClient(account, ssl_context=sslcontext) as client:
        file_content = file.read()
        storage_engine = StorageEnum.ipfs if len(file_content) > 4 * 1024 * 1024 else StorageEnum.storage
        user_code, status = await client.create_store(
            file_content=file_content,
            storage_engine=storage_engine,
            guess_mime_type=True,
        )

        print(status)
        program_ref = user_code.item_hash
        message, status = await client.create_program(
            program_ref=program_ref,
            entrypoint="main:app",
            encoding=Encoding.squashfs,
            runtime=sdk_settings.DEFAULT_RUNTIME_ID,
            channel="default",
        )
        print(f"Program created successfully with item hash: {message.item_hash}")
        print(status)

I tested it on my app and it worked fine.
But I understand that I shouldn't rely on that alone. I'll find out so I can provide unit tests with it, if the change is relevant and accepted of course.

The core issue is that apparently some systems running macOS have an issue providing CA Certificates to Python libraries. @Antonyjin reported that one of his friend could reproduce the problem while another could not.
Investigating the root cause of this issue may prove to be very time consuming, and @Antonyjin wanted to make something work within a reasonable timeframe. A solution was to use rely instead on the certifi library to provide CA Certificates authored by Mozilla.
In order for aiohttp to use a different set of CA, a custom version of the field ssl_context must be passed in argument.

Should look good, running CI/CD and if green, we merge :+1:

@Antonyjin best to run flake8 src/ tests/ && mypy src / tests/ && isort src/ tests/ && black src/ tests/ in order to fix all the code quality problems

Okay working on it!


using one Approximate Multiplier

hello, I want to express my gratitude for sharing your open source code. I came across your project while searching for solutions related to approximate multipliers, and I'm eager to incorporate your code into my work.
Given my specific requirements, I prefer not to rely on libraries that include pre-built multipliers. Could you kindly provide guidance on how I can effectively integrate your code into my project?

Hi, you can create your lookup table presenting your multiplier as shown here:
#5
Is it what you need?

I request further assistance in understanding the installation process and steps involved in using your library.  Could you please provide more detailed instructions and insights to help me to follow the usage guidance.

I suggest to use TF2 version
https://github.com/ehw-fit/tf-approximate/tree/master/tf2#building-from-source
Note that it is necessary to use TF 2.1 (newer versions are not compatible).


load_cropper_without_selection is not defined

When I try to use the region crop tool, nothing happens. This is what shows up in the Console:
Uncaught ReferenceError: load_cropper_without_selection is not defined
(anonymous function) @ VM437:1
Any resolution to this?

It should be fixed. Please test the last version.

Just installed the extension freshly updated chrome and the issue is still there:
Uncaught ReferenceError: load_cropper_without_selection is not defined
(anonymous) @ VM73:1


error: 'mbedtls_rsa_context {aka struct }' has no member named 'N'

Description
When I complie my project ,gcc said```
error: 'mbedtls_rsa_context {aka struct }' has no member named 'N'
if( ( ret = mbedtls_mpi_read_binary( &rsa.N, 16, n_buff ) ) != 0 ||
^
compilation terminated due to -Wfatal-errors.
build/aos_target_build.mk:266: recipe for target<EMAIL_ADDRESS>failed
make[1]: ***<EMAIL_ADDRESS>Error 1
make[1]: *** Waiting for unfinished jobs....
I cann't fix it,anyone who can help me?This is AliOS things develop SDK,and it includes mbedtls as a tool in it.
---------------------------------------------------------------
## Bug

**OS**
Ubuntu16.04

**mbed TLS build:**
Version: x.x.x or git commit id
OS version: x.x.x
Configuration: please attach config.h file where possible
Compiler and options (if you used a pre-built binary, please indicate how you obtained it):

##This is my code

int ks_verify_signature(unsigned char* sign_dat, const char* src_hash_dat, mbedtls_md_type_t src_hash_method)
{
char tmp_buf[32] = {0};
mbedtls_rsa_context rsa;
size_t i;
unsigned c;
int ret =1;
unsigned char hash[32];
unsigned char buf[MBEDTLS_MPI_MAX_SIZE];
if((NULL == sign_dat) || (NULL == src_hash_dat)) {
printf("ota verify download sign input parameter NULL");
return -1;
}
mbedtls_rsa_init( &rsa, 0, 0 );
if(ota_hex_str2buf(src_hash_dat, tmp_buf, sizeof(tmp_buf)) < 0) {
OTA_LOG_E("rsa verify:str2buf translate failed!");
return -1;
}
if( ( ret = mbedtls_mpi_read_binary( &rsa.N, 16, n_buff ) ) != 0 ||
( ret = mbedtls_mpi_read_binary( &rsa.E, 16, e_buff ) ) != 0 )
{
printf("failed\n  ! mbedtls_mpi_read_file returned %d\n",ret);
goto exit;
}
rsa.len = ( mbedtls_mpi_bitlen( &rsa.N ) + 7 ) >> 3;
printf("rsa.len = %d \n",rsa.len);
if( ( ret = mbedtls_rsa_pkcs1_verify( &rsa, NULL, NULL, MBEDTLS_RSA_PUBLIC, src_hash_method, 20, src_hash_dat, sign_dat ) ) != 0 )
{
    mbedtls_printf( " failed\n  ! mbedtls_rsa_pkcs1_verify returned -0x%0x\n\n", (unsigned int) -ret );
    goto exit;
}

exit:
mbedtls_rsa_free( &rsa );
return ret;
}

This is a support question, not a bug report or feature request. Please post support questions to the mailing list, not to GitHub.
You are more likely to get help if you post complete code. What you posted can't compile since it doesn't have any #include statement. Also, please share your config.h.


Apple code cleanup

"moments ago" is currently hardcoded
there are computed properties that are copied and pasted, they can probably be moved into core
there is a bit of copy and paste between macos and ios, things are still happening on the main thread, could consider doing all the computations in background thread with a class and sharing the class between macos and ios

Think through the "please sync" onboarding flows a bit more.

Think through the "please sync" onboarding flows a bit more.


Merge pull request #1 from LisaDziuba/master

Update from source
Checklist

[x] I made something good today 💐.
[ ] I put links in the correct format: [Tool](link) — description.
[ ] My description starts with the lower-case letter and ends with the full stop.
[ ] I put the tool in the alphabetical order.

Optional

[ ] I added the appropriate labels: free, open-source or mac.
[ ] I put the tool only to one category.
[x] I followed Contribution Guidelines.

Update


"blip-image-captioning-large" or "blip2-opt-2.7b" ?

Dear Author,
  Thank you for your outstanding work. I have noticed that the data_process.py script uses two BLIP models, namely “blip-image-captioning-large” and “blip2-opt-2.7b”. May I ask which one you used?

Thank you for your outstanding work. I have noticed that the data_process.py script uses two BLIP models, namely “blip-image-captioning-large” and “blip2-opt-2.7b”. May I ask which one you used?


Resolved, I unistall the visual studio code end I delete manually al folder
which the program has saved their settings.
I installed again vscode and the problem has disappears.
Il dom 1 mar 2020, 00:29 vscodebot[bot]<EMAIL_ADDRESS>ha
scritto:

Thanks for creating this issue! We figured it's missing some basic
information or in some other way doesn't follow our issue reporting
https://aka.ms/vscodeissuereporting guidelines. Please take the time to
review these and update the issue.
Happy Coding!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/issues/91812?email_source=notifications&email_token=AOBVXEFDTBQQFVBVVBARZTTRFGM7PA5CNFSM4K6YQ5V2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENMIYLQ#issuecomment-593005614,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOBVXEEB2UFDQETFC64KLQTRFGM7PANCNFSM4K6YQ5VQ
.

Please close this issue.


Login through /wp-admin rejected

Logging in through /wp-admin or /wp-login is rejected.

Agree.
It needs to login as an admin user in QP to get the admin bar.


[MRG] Execute notebooks after each deploy

cc: @betatim @glouppe ;)

Yup, looks like the solution was simple in the end :-)
Do you know if we have time constraints on Travis? Running the notebooks might take long.
If not, then +1 for merge.

There is a timeout for tests which is 50 minutes. Not sure if it applies for after_success also.

Okay, well, let's merge and see by ourselves see if Travis dies of sudden death :skull:

Hmm, this still requires some tuning https://travis-ci.org/scikit-optimize/scikit-optimize/jobs/149973693#L520

Nice!


Adding Spring Cloud Config Client port of rcloadenv

Initial commit

@tswast PTAL looks like i don't have permissions to add Reviewers.

Reopened @spring-cloud-gcp spring-https://github.com/spring-cloud/spring-cloud-gcp/pull/106


View command fix UI spacing for no tier

Further improvement from #104 , currently got weird spacing when a person has no tier. Tried solve a bit but found our would take a while to figure out, planned to add condition check for tier NA in PersonDetailPanel.java and edit its related .fxml and .css file.

A Vbox containing just the tiers might work here maybe? minheight = 0


*** ValueError: operands could not be broadcast together with shapes (2888,) (216,)

f = fracridge(np.concatenate(desw),  np.concatenate(data2), opt['frac'])
np.concatenate(desw).shape
(648, 216)
￼np.concatenate(data2).shape
(648, 2888)

The error perhaps happens in here?
https://github.com/nrdg/fracridge/blob/46c3090ef47c241dc07a399f60d28dbb7ea9e0bf/fracridge/fracridge.py#L51
The next three lines result in ynew being  of shape (2888,)
uu, ss, v_t = svd(X.T @ X)
selt = np.sqrt(ss)
ynew = np.diag(1./selt) @ v_t @ (X.T @ y)

this then breaks the line:
ols_coef = (ynew.T / selt).T

maybe related to :
https://github.com/nrdg/fracridge/commit/df4f363f082bafd53ff4eeb7611e1d5a4bb1e0e2 ?

I believe this is a duplicate of #20. It’s fixed on master through #21, but
this is a good reminder that I need to push a new release to pypi.
On Wed, Feb 3, 2021 at 4:49 PM Ian Charest<EMAIL_ADDRESS>wrote:

maybe related to :
df4f363
https://github.com/nrdg/fracridge/commit/df4f363f082bafd53ff4eeb7611e1d5a4bb1e0e2
?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/nrdg/fracridge/issues/22#issuecomment-772939173, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAA46NRNHEWY4UK2OY63KLTS5HVJNANCNFSM4XB3EFFA
.

OK. Just released version 1.3.2, so another pip install -U fracridge should set you straight.
Thanks for the poke!


Simplify F-Droid Repository Bridge json retrieval

#4056 led me to look into the FDroidRepoBridge. It currently fetches a index-v1.jar file and saves it temporarily to unzip the containing json. We can improve that and simplify the code by getting the json directly.
I looked into avoiding the writing-to-file and then reading-from-file altogether. Using a special file path that leaves the data in memory probably wouldn't work. But I'm confused why we use the index-v1.jar file altogether?
The main F-Droid repo lists not only index-v1.jar (which only makes sense if we were to use the contained signature, which we don't), but also index-v1.json and index-v2.json. These json files can be fetched with getContents, optionally cached, and directly fed into Json::decode without using a temporary file. The HTTP transfer encoding can compress the file to a similar degree the jar (=zip) can.
Now the question is whether all the F-Droid repositories out there have this file. I went through the whole list of known repositories and only one repo misses the index-v1.json file: Bromite. Under these circumstances we can depend on the availability of the index-v1.json file.
@dvikan Do you agree? Then just merge the referenced PR :)

The original reasononung for using a temp file for the zip file was to avoid memory limit issues.
If json file is already present in the url then all is good.


Allow user initiated navigation when the tour is active

Docs and changelog have to be updated
You don't handle the case when the user clicks back/forward browser buttons. In this case the tour should end, even when allowUserInitiatedNavigation is true
Might be a good idea to update defaults

Yes, still working on it. Will ping you once it's done.
Which defaults? In docs?

@hakimio Do you have any good description for the property?
Allow user navigate to other routes not ending the tour. False by default (optional)

Which defaults? In docs?

https://github.com/hakimio/ngx-ui-tour/blob/6356be87bea7b1754a08ce90e132e41a0ff83d59/projects/ngx-ui-tour-core/src/lib/tour.service.ts#L60

I would even remove boolean properties with default value false.  Why keep them?

I like explicitly defined defaults.

@hakimio please check

Should I update all the CHANGELOG files?


version_check update to the latest version

Hello,
I would like to ask you to update version_check to the latest version (0.9), that would be very helpful for me in maintaining nom in Fedora.
Thanks!

PR #1073


VB.Net and vNext

Does anyone now how the VB community can help with vNext?
Would really like to see VB and Webforms native in ASP.Net 5.
I'm not sure how to help on the technical level -- if anyone can suggest a starting point, please respond.
Perhaps 'we' (VB Users) can help with documentation or examples?

Dup of https://github.com/aspnet/Home/issues/236
There are some project extensibility features in ASP.NET 5 around custom project loaders, which in theory could support loading projects written using VB, F#, or other languages. You could try rooting around the source code, such as these files:

https://github.com/aspnet/XRE/blob/c3da353174e4c686d01bfd57eb9c4775cfb55648/src/Microsoft.Framework.Runtime.Roslyn/RoslynProjectReferenceProvider.cs
https://github.com/aspnet/XRE/blob/c3da353174e4c686d01bfd57eb9c4775cfb55648/src/Microsoft.Framework.Runtime.Roslyn/RoslynProjectReference.cs
https://github.com/aspnet/XRE/blob/c3da353174e4c686d01bfd57eb9c4775cfb55648/src/Microsoft.Framework.Runtime/Loader/ProjectAssemblyLoader.cs

And these might provide some hints as to how one could implement a custom loader for other project types.
As far as supporting WebForms, that would be a monumental task and there are no plans to enable that in any way.

Here's an example of plugging in https://github.com/davidfowl/vNextLanguageSupport.
This won't help you get intellisense in VS though. That's not extensible today

Eilon.  Yes, I did see #236 but, don't think it's a duplicate.  236 just says that they don't see VB support.  My intention with this post is to find out how the VB community can work with vNext and be a part of all of this -- as opposed to being BASICally dropped out of the future of ASP.Net.
I am really shocked that there isn't more wailing and gnashing of teeth over VB and webforms.  We (VBers) are used to being treated like second class citizens but, exclusion of two huge components of ASP.Net (that have been fundamental for the last decade plus) is a bit much.
Perhaps as RTM approaches and more people download VS2015 and don't see the VB templates that the torches and pitch forks will come out...

Ah you're right it's not a dup of #236.
For WebForms users there are still ongoing improvements in ASP.NET 4.x. Here's just a few posts I found that go into what's new over the last couple of releases:

ASP.NET 4.5: http://www.asp.net/aspnet/overview/aspnet-and-visual-studio-2012/whats-new
ASP.NET 4.5.1 Preview: http://blogs.msdn.com/b/dotnet/archive/2013/06/26/announcing-the-net-framework-4-5-1-preview.aspx
More details: http://blogs.msdn.com/b/dotnet/archive/2013/10/09/asp-net-app-suspend-responsive-shared-net-web-hosting.aspx
ASP.NET 4.6 / WebForms: http://blogs.msdn.com/b/webdev/archive/2014/11/12/announcing-asp-net-features-in-visual-studio-2015-preview-and-vs2013-update-4.aspx (scroll down)

But ultimately our data shows that most web developers on .NET are using C#, so while we certainly haven't forgotten about anyone, our key investments are targeted at where most of our developers are. As you saw from the link @davidfowl pointed, project extensibility exists (though it has limitations), so embracing the broader community is also a goal, even if we haven't built the features all the way through.

@seascan, I'm not worried and let me explain why - my sense is that the gang are heads down in re-architecting the world to increase the relevance of .NET and to reach out to the market/mind share lost to Linux. All of the abstractions are new (modularization of CLR, project.json, etc.) - it's a ground-up rewrite heavily dependent on the marvel that is Roslyn. VB is a first-class citizen in Roslyn and there is nothing magical about the C# Roslyn layer that isn't fully extended to the VB side. It's wise to have at least 2 independent implementations of an abstraction so co-developing VB & C# makes sense, not to mention that VB.NET is a beautiful language and has a long history. If you look at the latest TIOBE, for every 4 lines of .NET code written, 3 lines are in C# and 1 line is in VB.NET. Both VB.NET and F# are on the rise. Whenever I consider .NET's adoption rate, I always combine VB and C# together. Anyone who attempts to malign or downplay VB.NET is speaking from a position of ignorance.
VB/C# at this point yield fundamentally identical IL so it's really simply a question of preference.
With that said, though, the ASP.NET team is attempting to gain credibility in the Linux/OSS community which doesn't really care about VB and no doubt the ASP.NET team themselves strongly prefer C#. At this point they're sprinting to the finish line to release a stable drop to the world but in the process they've moved to a true CI/CD process so any "release" is just a brief point-in-time. No doubt when the RTM dust settles and there is a measure of architectural stability, there will be greater opportunities to provide and support such extensions.
Keep in mind, though, that cross-platform support may only ever be a C# story.

Thanks everyone for your great input.  I'm going to explore the links and see where I can contribute.
Craig,   I really appreciate your thoughtful response.  To read "VB.NET is a beautiful language" made my day.
I think all the MS technologies are miraculous.  It's not that I can't write C# or have anything against it, it's just that I prefer the readability of VB.  People (clients) without a technical background who I show code to 'get it' while curly brackets and symbols (instead of words) seem to throw them off.
The combination of VB.Net, ASP.Net (webforms) and SQL Server have given me a wonderful career as an independent developer for the last decade so, I'm keenly interested in the future of all these components and would like to payback by contributing where I can.
If you can think of any more trails I can follow, please post.
Thanks again,
Terry

As Eilon said, we're still investing in WebForms on .NET 4.6 and have no plans to bring any of it to ASP.NET 5.
@seascan If you personally want to undergo porting webforms to ASP.NET 5 (which would be a huge under taking). You can start by porting this code over to the new stack https://github.com/Microsoft/referencesource/tree/master/System.Web/UI (in another repository of course). Then:

You need to make it compile on CoreCLR
You need to remove the System.Web dependency
You won't get any tooling support (no drag drop designer)
Any controls you bought/wrote won't work and would need to be recompiled

Thanks, @davidfowl.  Will look into that but, at first glance looks a bit daunting.  Though, I know I would learn a lot by trying that out!
Perhaps I don't fully understand the plan for ASP.Net....  Will the ASP.Net 4.X continue to be upgraded and supported or will 5.X eventually take over.  Is there an end-of-life date set for 4.X?  Just by the numbering convention I get the feeling that 5.X is 'the new stuff' and anything else will wither.
I guess I am looking for a definitive answers to:
Are VB and Webforms dead in the long run?
And, should we  all (as Stephen Walther has implied) just accept the C#/MVC paradigm?

.NET 4.x will continue to be supported by Microsoft for the foreseeable future (.NET versions have quite long support lifecycles). But ultimately most investments are in the newest platforms because they have the most room to grow. The articles I linked to earlier demonstrate that there are ongoing investments to ensure that Web Forms and .NET 4.x gain some of the newest, coolest features (e.g. Roslyn, C# 6, etc.).

@seascan right now I think the best way to think of ASP.NET 5 is the bold new thing. At this point it does not do all of the things that ASP.NET 4.5.x - 4.6 does but it does a few things different and or better:

Fully side by side
Cross platform
No compile step required
You can opt in/out for what you want in framework
tag helpers, try to keep your markup looking like markup and not C#/VB

That said our first version will not have 100% feature parity and it will take us some time to mature it. But we want to get it out there for the folks to try the features above.
We are also investing in the 4.5.x/4.6 stack. We have support for Rosyln, Async Model Binding for Web Forms, Identity 2.x, EF 7, HTTP 2.0 and more coming. This also includes minor updates to the MVC 5, Web API 2, etc that run on the 4.5.x stack.
So for now think of the this as two stacks. The mature 4.5.x.- 4.6 stack continuing to get incremental improvements and the new 5.x stack which has some awesome new features that we can't provide on 4.5.x but also a stack that is not as mature and will need time to bake.

This blog entry on Scott Guthrie's Blog : http://weblogs.asp.net/scottgu/introducing-asp-net-5?__r=8d22e3188409343 has many comments that are in support of ensuring VB.Net is part of ASP.Net's future.  I particularly liked the idea of re-branding VB to "B#".
Speaking of branding, perhaps the version numbers and forking of ASP.Net is causing confusion and concern.  Instead of the 4.X and 5.X paths, does anyone know why there can't just be ASP.Net?  And have the needed/desired functions scaffolded in?  Or, is this the intended course over time?

Sure we can call it whatever we wanted to but the Core of the new stack is completely different from the Core of the current stack.

 "But ultimately our data shows that most web developers on .NET are using C#"

May be, but probably the random sample ("web developers that use .Net") is too small. VB today is the more advanced language (e.g. try to read an c# code out)

Hey everyone, good news! We've announced plans to support VB in ASP.NET 5 / DNX!
Read more on the official blog post: http://blogs.msdn.com/b/webdev/archive/2015/04/23/making-it-better-asp-net-with-visual-basic-14.aspx
Closing this thread for now. Stay tuned for updates.

Fantastic news.

:+1: This is great news if for no other reason than VB is more accessible to very young developers. It also bridges for people coming into .NET from VBA. I started in biz dev as an Access developer, so going from VBA -> VB.NET -> C# was good for me.
Thanks MS for keeping VB in the mix!

My jaw dropped when I saw this update -- had to reread it a few times to let it sink in... Thank you!!

@seascan looks like starting with https://github.com/aspnet/dnx/issues/1706 would be the thing to do...

But ultimately our data shows that most web developers on .NET are using C#, so while we certainly haven't forgotten about anyone, our key investments are targeted at where most of our developers are.

Please tell all schools that are using VB.NET in order to teach students to learn programming to stop using then. It is used even this year, 2016, as first programming language in college. VBA is taught for Access even in this year, 2016, for Office development. What's the future of Visual Basic? If it is not shown in statistics, dropped? Statistics don't take into account offline development. If Visual Basic is not useful, it is better to state it clearly so young developers or students don't stay confused and jobless due to this fact. I want to know should I drop it from use it has no future except as "extra" language :smile:


IOS: Unsafe HTTP response processing in PA2Client

Our PA2Client method:
- (NSURLSessionDataTask*) postToUrl:(NSURL*)absoluteUrl
                      requestObject:(id<PA2NetworkObject>)requestObject
                            headers:(NSDictionary*)headers
                responseObjectClass:(Class)responseObjectClass
                           callback:(void(^)(PA2RestResponseStatus status, id<PA2NetworkObject> response, NSError *error))callback

is designed to automatically create a model object (with expected class) when the response is in all ways correct. This is right, unless the 200 HTTP status code is received, but with the error JSON in the response body. For this corner case, the PA2Error object is created and passed to the callback as correct response callback(PA2RestResponseStatus_OK, >>that-error<<, nil).
The result is that the application will probably crash on some "object doesn't respond to selector" exception, because the callback code is not expecting PA2Error in that response object.
Recommended changes

PA2Response<T> model class should NOT internally set PA2Error object into the responseObject property. We should add a separate property dedicated exclusively for an error. Let's call it responseError.

PA2Client should check the PA2Response.responseError even if the 200 status code is received and treat this situation as an error.

The whole error response reporting is over-engineered in my opinion. We should simplify all that classes. What I don't like:

PA2ErrorResponse is actually not a response, but just a object with a real response error object embedded.
PA2Error is a real response received from the server but looks like an object which should be reported to the application.
All this is then wrapped in NSError in its info dictionary, under thePA2ErrorDomain key. That's another naming mistake. We should use a separate string for that or provide a NSError extension to access that object in more safe way.
Both, PA2ErrorResponse & PA2Error doesn't implement a description method, so basically there's no easy way how to look at reported NSError and check what's really going on.

I've fixed wrong HTTP response processing in 882ff35, but we still need address the problems mentioned above. It is no longer a bug, thus changing label to enhancement.


Notebooks from examples

Since all the already existing spaCy notebook examples are picked up, a nice next step would be to make notebooks out of the examples .
Applying some of these on small datasets would also be a nice way to show them off.
Edit: Noticed this is already mentioned in the readme. :) Still leaving it here so contributors have a direction to go in!

Thanks for opening this – I agree! I was actually just adding another notebook and thought "Hm, it'd be nice to have an issue to collect ideas for future notebooks and spaCy examples to convert next", and then I saw yours 😄
Here are some ideas:

[ ] Keras / Parikh Entailment (seems a little tricky because of all the Keras issues, i.e. explosion/spaCy#767)
[ ] Deep learning with Keras
[ ] suitable examples from the usage workflows
[ ] other spaCy-related notebooks from talks and conferences we haven't found yet


Remix App Server Template: Error: couldn't find exported server build & WebSocket server error: Port is already in use

Describe the bug
After creating a fresh app using the Remix App Server template and running the following command inside the roof of my newly created remix app:
npx remix-kit@latest install

I get the following error:
Error: couldn't find exported server build from ../my-remix-app/build/index.js

Then after quitting the process and trying to restart I get this web socket error message:
ERROR  WebSocket server error: Port is already in use

Video Reproduction

Installed fresh remix app server template, ran npx remix-kit@latest install then remix-kit preview per the Status section on the readme which talkes about using remix-kit preview for remix apps that are using the  Remix App Server

https://user-images.githubusercontent.com/6743796/210098110-8213f2a8-50aa-4add-b46a-6938a908d9e1.mp4

Console output w/errors
ERROR  Cannot find module '/Users/cliffordfajardo/repos/remix_kit_repro1/remix-kit-playgrounds/my-remix-app/build/index.js' imported from<EMAIL_ADDRESS>
  at new NodeError (node:internal/errors:393:5)
  at finalizeResolution (node:internal/modules/esm/resolve:323:11)
  at moduleResolve (node:internal/modules/esm/resolve:916:10)
  at defaultResolve (node:internal/modules/esm/resolve:1124:11)
  at nextResolve (node:internal/modules/esm/loader:163:28)
  at ESMLoader.resolve (node:internal/modules/esm/loader:841:30)
  at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
  at ESMLoader.import (node:internal/modules/esm/loader:525:22)
  at importModuleDynamically (node:internal/modules/cjs/loader:1098:29)
  at importModuleDynamicallyWrapper (node:internal/vm/module:438:21)

Following the first instructions at the top of the README

> cd ./your-remix-app
> npx remix-kit@latest install
> npm run vite:dev

https://user-images.githubusercontent.com/6743796/210098562-733f649e-9686-45e0-8fad-6fffa12591f4.mp4
Steps to reproduce
1.Install a fresh remix app & choose Remix App Server
$ npx create-remix@latest
? Where would you like to create your app? ./my-remix-app
? What type of app do you want to create? Just the basics
? Where do you want to deploy? Choose Remix App Server if you're unsure; it's
easy to change deployment targets. Remix App Server

cd into the newly created remix app & setup and run remix-kit using the following commands

$ cd my-remix-app
$ npx remix-kit@latest install
$ npm run vite:dev
Remix 1.9.0
React 18.2.0
> Local:       http://localhost:3005/
> Network:  http://<IP_ADDRESS>:3005/

# ----------- visit the URL http://localhost:3005/
Error: couldn't find exported server build from ../my-remix-app/build/index.js

Kill the process (ctrl + c), run npm run build
Attempt to restart server npm run vite:dev and you get the following error:

WebSocket server error: Port is already in use

Recommendations

Ideally, when you kill the process that starts from npm run vite:dev, the websocket server should be terminated to avoid hitting this web socket error on subsequent attempts to restart the server

If we do encounter the WebSocket server error: Port is already in use it would be nice to get printed in the console the port that this web socket server is running on so we could kill it as well

In the readme, when looking at these instructions, there is no way to tell if this command is for apps using Remix App Template or apps that have their own `server.{js,mjs} files (express template)

To avoid confusion, we could simply link to this below the Setup section:

System Info
System:
    OS: macOS 13.0.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 194.47 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.12.0 - ~/.volta/tools/image/node/18.12.0/bin/node
    Yarn: 1.22.19 - ~/.volta/tools/image/yarn/1.22.19/bin/yarn
    npm: 8.19.2 - ~/.volta/tools/image/node/18.12.0/bin/npm
  Browsers:
    Chrome: 108.0.5359.124
    Safari: 16.1
  npmPackages:
    @remix-kit/react: ^0.2.1 => 0.2.1
    @remix-kit/vite: ^0.2.1 => 0.2.1
    @remix-run/dev: ^1.9.0 => 1.9.0
    @remix-run/eslint-config: ^1.9.0 => 1.9.0
    @remix-run/node: ^1.9.0 => 1.9.0
    @remix-run/react: ^1.9.0 => 1.9.0
    @remix-run/serve: ^1.9.0 => 1.9.0

Used Package Manager
npm
Validations

[X] Read the Contributing Guidelines.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a RemixKit issue and not a Remix specific issue. For example, if it's a Remix related bug, it should likely be reported to remix instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion.

Thanks for the report Clifford! I can reproduce and will fix as a priority. That'll teach me for testing using jiti stubs.

v0.2.2 released with a fix for the urgent "Error: couldn't find exported server build from ../my-remix-app/build/index.js".
The websocket error is a little trickier as it's caused by the dev server restarting due to the cleanup of /public/build folder. That should only happen once if previously used the remix build/dev command, so I'll fix it but will drop the bug severity.


Throw errors during Tabs initialisation if key HTML elements are missing

What
Update our JavaScript components requiring specific HTML elements to be present so they throw a MissingElementError (extending GOVUKFrontendError) rather than silently fail:

The tabs (<a>)
The tablist and their items
The tab panel associated to a tab

Why
This is part of our work to have our components throw rather than silently return during initialisation.
Who needs to work on this
Developers
Who needs to review this
Developers
Done when

[ ] Component has been updated to throw errors

A little heads up on the wording, where we've tried to align the messages of the tests for the errors to throws when ... is missing [ + optional extra context]


Publish v1 Proxy via Homebrew

Feature Description
Publish v1 Proxy via Homebrew like it was done for cloud-sql-proxy:
Issue: https://github.com/GoogleCloudPlatform/cloud-sql-proxy/issues/95
PR: https://github.com/Homebrew/homebrew-core/pull/140782

I got started on this and followed the steps here.
The audit step said this:
$ brew audit --new alloydb-auth-proxy
alloydb-auth-proxy
  * GitHub repository not notable enough (<30 forks, <30 watchers and <75 stars)

We'll need to wait for this project to gain more interest in the open source world and try again.
Formula is here: https://github.com/enocom/homebrew-core/commit/18d9ee4f5dfec1c4dc2562e3e83cfdd9083370b1


state is poweredOff

Apologies for this (probably) silly question. I am new to bluetooth.  I'm trying to get started using this library on Mac OSX (10.9.5) on a 2013 macbook pro 13".  Simply trying to bleacon.startScanning() for devices.  I get the error that "state is poweredOff".  Bluetooth is turned on and I can see it lists my iphone as a device, so it seems to be up and working properly.  What am I missing?

Nevermind... Its actually a 2011 model so it doesn't have bluetooth 4.0 :(


chore(ci): Improve CI failure information about filed deployment

Description
Currently, we have an issue with Jira tickets for failure Stackrox_Deployment being grouped under one ticket.
But there could be different reasons for deployment failure:

central deployment not ready
compliance operator not ready
etc.

This PR introduces additional granularity and grouping based on deployment failure names. This will allow us to have better granularity of failure root causes, and we will have a better chance to assign tickets to relevant teams.
User-facing documentation

[x] CHANGELOG is updated OR update is not needed
[x] documentation PR is created and is linked above OR is not needed

Testing and quality

[x] the change is production ready: the change is GA or otherwise the functionality is gated by a feature flag
[x] CI results are inspected

Automated testing
No tests were added.
How I validated my change
I tested changes in isolation.
i.e.
bash-5.1$ QA_DEPLOY_WAIT_INFO="/tmp/wait-for-kubectl-object"
bash-5.1$ object="pod test"
bash-5.1$ namespace="test-ns"
bash-5.1$ echo "$object in $namespace" > "${QA_DEPLOY_WAIT_INFO}" || true
bash-5.1$ if [[ -f "${QA_DEPLOY_WAIT_INFO}" ]]; then echo "Wait for $(cat "${QA_DEPLOY_WAIT_INFO}")"; fi
Wait for pod test in test-ns
bash-5.1$ exit

@porridge Yes. Here is the ticket that collects all deployment failures: https://issues.redhat.com/browse/ROX-23594
And I have already identified 2 issues from there:

GKE timeout - https://github.com/stackrox/stackrox/pull/13204 (should be fixed)
OCP compliance operator - https://issues.redhat.com/browse/ROX-26851

I guess there are probably more, but the ticket is pilled up. I wasn't able to add a comment to it anymore.

/test gke-qa-e2e-tests


Add pids_limit to upgrade docs

Proposed changes
The pids_limit option added for the 2.1 format in Compose was missing from the upgrade docs
Related issues (optional)
docker/compose#4792

Thanks, @shin- :)


Machine Learning Research

This issue was originally posted by @jmsfltchr  on 2018-08-31 17:29.
Why
To explore the benefits of combining Grakn with Machine Learning
How
Investigate the integration of machine learning with Grakn.
Efforts to include:

Feature extraction from Grakn (or equivalent)
Running ML at query-time, triggered by querying, therefore also by reasoning

This issue needs #9, needs #8, needs #4, needs #13

Closing as too generic, marking as solved since #13 is well underway


Need a scala 2.12 release of Baker to stop conflict with other libraries

We have run into several version conflicts between baker compiled using scala 2.11 and some other libraries that use scala 2.12

As of 1.3.2 we do a cross release to 2.11 and 2.12


access to CRDT values via GUI and SDK

Currently, the GUI and SDK only can access the KV store and not the CRDTs that may have been stored (i.e., maps, sets, counters).
CRDTs should be also available for access to view, modify and deletion.
For each CRDT, its allowed operations should be also available:

add/update/delete map entries
insert/remove set entries
increment/decrement counters

Waiting on #77 to continue on this issue.

Branch feature/CRDT_access_GUI.

Continuing to extend the SDK accordingly.
@abeckn : Can you take a look at the GUI part when you get a chance?
I've already updated the existing access for "kv". Those can be used to also accommodate the other data types. The required parameters for each data type and possible actions are defined in:
https://github.com/knix-microfunctions/knix/blob/fffd2c014c228c5fc258f03b135b6558a2df148d/ManagementService/python/performStorageAction.py#L17-L129
We'd need to add the views for the 1) maps, 2) sets and 3) counters with their respective operations.

SDK has been extended; corresponding tests are added.
Waiting on the GUI updates.

Quick status update:
Done:

all CRDTs are now viewable in the GUI
add/delete works for all CRDTs
clear works for maps and sets
view/edit works for counters (i.e., increment/decrement)
all operations are available via SDK

Next:

view/edit for sets (i.e., additem/removeitem)
view/edit for maps (i.e., get/put/modify/delete entry)

@abeckn, I probaly will need help regarding the style of the pages.