Estimator hangs

Describe the bug
The estimator seems to hang on the following problem:
from qiskit.quantum_info import Pauli

N = 12
qc = QuantumCircuit(N)
qc.x(range(N))
qc.h(range(N))
qc.ch(range(N//2,0,-1), range(N//2-1,-1,-1))
qc.ch(range(N//2, N-1), range(N//2+1,N))
qc.measure_all()
op = Pauli('Z'*12)

with ibm_estimator(circuits=[qc], observables=[op], skip_transpilation=False) as estimator:
    result = estimator(circuit_indices=[0],
                       observable_indices=[0],
                       parameter_values=None,
                       shots=1e4)

result

Steps to reproduce
Run the above on an IBM Cloud system
Expected behavior
It should return an answer, hopefully near 0.446.
Suggested solutions
Additional Information

qiskit-ibm-runtime version:
Python version:
Operating system:

i haven't debugged this but I think measure_all() here would not give you the expectation value you want. Since your circuit must prepare the statevector from which you compute the observable.

Summarizing what we tried today and what we know so far:

Program we used to check.

from qiskit_ibm_runtime import IBMRuntimeService, IBMEstimator
from qiskit.quantum_info import Pauli
from qiskit.circuit import QuantumCircuit

service = IBMRuntimeService(channel="ibm_cloud", token="...", instance="...")
ibm_estimator = IBMEstimator(service=service, backend="ibmq_qasm_simulator")

N = 12
qc = QuantumCircuit(N)
qc.x(range(N))
qc.h(range(N))
qc.ch(range(N//2,0,-1), range(N//2-1,-1,-1))
qc.ch(range(N//2, N-1), range(N//2+1,N))
qc.measure_all()
op = Pauli('Z'*12)

with ibm_estimator(circuits=[qc], observables=[op], skip_transpilation=False) as estimator:
    result = estimator(circuit_indices=[0],
                       observable_indices=[0],
                       parameter_values=None,
                       shots=1e4)
    print(estimator._session._job)

result

Above program throws below websockets error on IBM Cloud. This websockets issue is not happening on IBM Quantum (or IQX). This is being treated as a separate issue and is being tracked in NTC-384 on API side. So I would try debugging this hanging issue with an IBM Quantum account.

/var/folders/jt/2qwx0rx17tl94gnll6wjftjc0000gn/T/ipykernel_97924/3723068723.py:5: DeprecationWarning: IBMEstimator class is deprecated and will be removed in a future release. You can now use qiskit_ibm_runtime.Estimator class instead.
  ibm_estimator = IBMEstimator(service=service, backend="ibmq_qasm_simulator")
runtime_job._start_websocket_client:WARNING:2022-04-05 12:03:10,399: An error occurred while streaming results from the server for job c966d1l3umar17a8noqg:
Traceback (most recent call last):
  File "/Users/rathish/Documents/quantum/qiskit-ibm-runtime/qiskit_ibm_runtime/runtime_job.py", line 378, in _start_websocket_client
    self._ws_client.job_results()
  File "/Users/rathish/Documents/quantum/qiskit-ibm-runtime/qiskit_ibm_runtime/api/clients/runtime_ws.py", line 70, in job_results
    self.stream(url=url, retries=max_retries, backoff_factor=backoff_factor)
  File "/Users/rathish/Documents/quantum/qiskit-ibm-runtime/qiskit_ibm_runtime/api/clients/base.py", line 230, in stream
    raise WebsocketError(error_message)
qiskit_ibm_runtime.api.exceptions.WebsocketError: 'Max retries exceeded: Failed to establish a websocket connection. Error: Traceback (most recent call last):\n  File "/Users/rathish/opt/anaconda3/envs/qiskit-ibm-runtime/lib/python3.9/site-packages/websocket/_app.py", line 383, in run_forever\n    dispatcher.read(self.sock.sock, read, check)\n  File "/Users/rathish/opt/anaconda3/envs/qiskit-ibm-runtime/lib/python3.9/site-packages/websocket/_app.py", line 66, in read\n    if not read_callback():\n  File "/Users/rathish/opt/anaconda3/envs/qiskit-ibm-runtime/lib/python3.9/site-packages/websocket/_app.py", line 349, in read\n    op_code, frame = self.sock.recv_data_frame(True)\n  File "/Users/rathish/opt/anaconda3/envs/qiskit-ibm-runtime/lib/python3.9/site-packages/websocket/_core.py", line 401, in recv_data_frame\n    frame = self.recv_frame()\n  File "/Users/rathish/opt/anaconda3/envs/qiskit-ibm-runtime/lib/python3.9/site-packages/websocket/_core.py", line 440, in recv_frame\n    return self.frame_buffer.recv_frame()\n  File "/Users/rathish/opt/anaconda3/envs/qiskit-ibm-runtime/lib/python3.9/site-packages/websocket/_abnf.py", line 338, in recv_frame\n    self.recv_header()\n  File "/Users/rathish/opt/anaconda3/envs/qiskit-ibm-runtime/lib/python3.9/site-packages/websocket/_abnf.py", line 294, in recv_header\n    header = self.recv_strict(2)\n  File "/Users/rathish/opt/anaconda3/envs/qiskit-ibm-runtime/lib/python3.9/site-packages/websocket/_abnf.py", line 373, in recv_strict\n    bytes_ = self.recv(min(16384, shortage))\n  File "/Users/rathish/opt/anaconda3/envs/qiskit-ibm-runtime/lib/python3.9/site-packages/websocket/_core.py", line 524, in _recv\n    return recv(self.sock, bufsize)\n  File "/Users/rathish/opt/anaconda3/envs/qiskit-ibm-runtime/lib/python3.9/site-packages/websocket/_socket.py", line 108, in recv\n    bytes_ = _recv()\n  File "/Users/rathish/opt/anaconda3/envs/qiskit-ibm-runtime/lib/python3.9/site-packages/websocket/_socket.py", line 87, in _recv\n    return sock.recv(bufsize)\n  File "/Users/rathish/opt/anaconda3/envs/qiskit-ibm-runtime/lib/python3.9/ssl.py", line 1226, in recv\n    return self.read(buflen)\n  File "/Users/rathish/opt/anaconda3/envs/qiskit-ibm-runtime/lib/python3.9/ssl.py", line 1101, in read\n    return self._sslobj.read(len)\nConnectionResetError: [Errno 54] Connection reset by peer\n'

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Input In [7], in <cell line: 16>()
     14 op = Pauli('Z'*12)
     16 with ibm_estimator(circuits=[qc], observables=[op], skip_transpilation=False) as estimator:
---> 17     result = estimator(circuit_indices=[0],
     18                        observable_indices=[0],
     19                        parameter_values=None,
     20                        shots=1e4)
     22     print(result)

File ~/Documents/quantum/qiskit-ibm-runtime/qiskit_ibm_runtime/estimator.py:228, in Estimator.__call__(self, circuit_indices, observable_indices, parameter_values, **run_options)
    220 self._session.write(
    221     circuit_indices=circuit_indices,
    222     observable_indices=observable_indices,
    223     parameter_values=parameter_values,
    224     run_options=run_options,
    225 )
    226 raw_result = self._session.read()
    227 return EstimatorResult(
--> 228     values=raw_result["values"],
    229     metadata=raw_result["metadata"],
    230 )

TypeError: string indices must be integers

It seems to start hanging at 9 qubits.

@ikkoham @t-imamichi - This info could be helpful when checking if the issues are in primitives.

@ajavadia Yeah I guess in hindsight that makes sense because internally it is going to add post rotations and group.  It would be nice if it raised on that though since it may not be obvious to all that, for example, the Sampler needs measurements whereas the Estimator does not (at least not explicitly).
However, removing the measure_all does not fix the original issue here.  But my guess is it is responsible for the final TypeError.  Interesting that at 4Q it does not have any issues with measure_all

Thank you for the report. The conversion of Pauli object in the estimator runtime program takes a long time. So, we will update it to avoid the long path.
As a workaround, replacing Pauli with SparsePauliOp would work.
In particular, op = Pauli('Z'*12) → op = SparsePauliOp('Z'*12)

I think this was fixed by the above commit.


What is the file structure for WHAM to run the script? ----as well as a minor feature request on file structure for data loading

I am now trying to train the model using WHAM dataset for speech enhancement. However, while the wavs and metadata are there, I found my file structure is not applicable for the script to run. Therefore, I am wondering if we have a sample file structure (using tree to demo will be perfectly fine) is available for reference.
Also, this is not only applied to WHAM in particular, but also for other datasets - lacking a description on file structure from the original dataset. SO I wonder if we can have or already have such thing in-place. If not I suggest to write some instructions about this.
Thanks in advance!

Hi @underdogliu , sorry for my late reply, and thanks for your suggestion. It would indeed be great to have this in the README of each recipe. I will try to get to this.
In the meanwhile, basically what you need to do is simply modify the csv file generation script that that generates the csv file that contains the paths of the files for the dataloader.
You can check this:
https://github.com/speechbrain/speechbrain/blob/a9b373a9fef3fdfc4e3b4a41478f7b283866186f/recipes/WSJ0Mix/prepare_data.py#L55
Basically you can hack this function to accommodate your needs.

.
└── whamr
└── wav16k
├── max
└── min
├── cv
│   ├── mix_both_anechoic
│   ├── mix_both_reverb
│   ├── mix_clean_anechoic
│   ├── mix_clean_reverb
│   ├── mix_single_anechoic
│   ├── mix_single_reverb
│   ├── noise
│   ├── s1_anechoic
│   ├── s1_reverb
│   ├── s2_anechoic
│   └── s2_reverb
├── tr
│   ├── mix_both_anechoic
│   ├── mix_both_reverb
│   ├── mix_clean_anechoic
│   ├── mix_clean_reverb
│   ├── mix_single_anechoic
│   ├── mix_single_reverb
│   ├── noise
│   ├── s1_anechoic
│   ├── s1_reverb
│   ├── s2_anechoic
│   └── s2_reverb
└── tt
├── mix_both_anechoic
├── mix_both_reverb
├── mix_clean_anechoic
├── mix_clean_reverb
├── mix_single_anechoic
├── mix_single_reverb
├── noise
├── s1_anechoic
├── s1_reverb
├── s2_anechoic
└── s2_reverb


Fix some little bugs

Corrected the test_py3_helpers.py unit test name to test_compatibility.py, to match the rename of this module.
A few little docs typos.
Synchronised user options docs and the list of options in pyocd.core.options.
Moved some flash programming related user options from the "gdbserver-only" grouping to general, since they apply to all flash operations that use FlashLoader or FileProgrammer now.
Removed code from GDBServer to read the flash programming related user options now handled by FlashLoader.

/morph test


Propagate soft errors to Task.Error

Assuming the analyzer and analyzer-dep will surface soft (non-fatal) errors, the addon needs to propagate them to Task.Error.
Perhaps they will generate an error.yaml in output?
Will they include severity?

Done.


improvement: when navigation subpackage ordering is present and is mismatched, it should print the values that are either missing or extraneous

@abvthecity can you merge or close this PR?


Transformation of Temporal type

Hi,
I am experimenting with this package and it all looks promising. Thank you for the hard work!
I am running across a small issue though.
I am using neo4j date() and datetime() types in some properties.
When getting the result back from neo4j in a query, those properties come back as instances of neo4jDriver.v1.types.Date and neo4jDriver.v1.types.DateTime (see Temporal types).
However, when going through the transformer, they get transformed into standard objects here.
This means that I cannot use neo4jDriver.v1.isDate or neo4jDriver.v1.isDateTime anymore on them later on in my code for custom handling (in my case I use them to determine how to format them).
I would expect the transformer to either:

transform them into a Date object
return a formatted string (based on the type)
return them as-is

In fact, I am thinking that it would also be great to be able to inject a custom Transformer into the Connection. That would allow custom transformations.
In the case of date objects, it might be useful for localization, for example.
I haven't tested yet, but similar issues will likely happen with Duration, Type, Localtime, Point, etc.
See also https://neo4j.com/docs/driver-manual/1.7/cypher-values/#driver-neo4j-type-system
What do you think?
Thanks you

Hi there. Thanks for raising this issue. I think returning them as is may be the best solution. This will be considered a breaking change though so it will be part of the next major release.
I'll see what I can do about the custom transformer, other people have raised the same suggestion so it can probably be part of the same release.

Great. Thank you.


Update from reader

If you want to test the example use this command :
'''
$ cargo run --example encode
$ cargo run --example decode
'''
tell me if this code is good for you ?

This felt like a breaking change due to the change in return result.


Vending machine polish 2

About the PR

i guess im the vending machine guy now
Media

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog

:cl: Potato1234_x

tweak: Vending machines have been polished. Again.

the border at the top of the chef one looks weird imo

polerowany automat :trollface:

the border at the top of the chef one looks weird imo

usually if i change things too drastically people get mad so i tried to stay as close to the original as i could, should i remove it?

no no the checkered pattern is fine its just the border is pure grey which is weird, id think itd match the checker patterns since it’s still part of it

so like this

or this

second imo

done


EnderIO-1.20.1-6.0.14-alpha[BUG] Machines not pulling from adjacent inventory

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
The version 14 update has caused issues with machines (Alloy Smelter) not pulling from adjacent inventories.  Also, the appearance of active smelting when the machine is empty.
Expected Behavior
Set alloy smelter to pull from top.  Place smeltable items in inventory above machine.  Machine pulls in items and smelts them.
Steps To Reproduce

Place barrel on top of alloy smelter.
Set alloy smelter to pull from top.
Place smeltable items in barrel.
Nothing happens.
Alloy smelter is lit up, but nothing is in it.

Environment
- OS: Windows 10
- Java version: 17.0.7
- Minecraft version: 1.20.1
- Version: EnderIO-1.20.1-6.0.14-alpha

Anything else?
This issue started with the EnderIO-1.20.1-6.0.14-alpha update.  Not an issue with previous versions.

This is bug is probably present since commit https://github.com/Team-EnderIO/EnderIO/commit/b89316a98e7759e7b63c35b9041f585a24a56094 and this line
        if (level != null && !level.isClientSide()) {
            clientUpdateSlot(ioConfigDataSlot, getIOConfig());
        }

When I change this line to the old code (level != null && level.isClientSide())). The Alloy Smelter will start to pull the items and start to smelt. But simply reverting the code is not an option. There are many changes in that commit by @Rover656
There is another problem since that commit:
The Alloy Smelter does not remember the sides where to pull from after relogging and also doesn't remember I set the mode to Smelting only

this has already been adressed by https://github.com/Team-EnderIO/EnderIO/pull/439 but the issue wasn't closed, thanks for looking into it though


Allow for non-Android devices

This would be awesome for use in other headless devices, like Raspberry Pis and clones.
Maybe someone with Linux knowledge could adapt this for such cases?
Thanks anyways. Great work!

Hello! Thank you
Our library is designed for android devices, and specifically uses the Nearby API to do this. Linux support has not really been thought for the moment!

Hello, any update or this side. I am waiting for the headless raspberry pi setup. Any idea or update?
How can I implement this?


Blazor - Debugging regression

According to the .NET Core docs, the dotnet run option for configuration should set the value to Debug by default.
If the Blazor client-side app is run without setting the option ...
dotnet run

... the debugging steps for Chrome+client-side Blazor app don't work ...

... and no tab for debugging port instructions appear ...

If the option is passed explicitly ...
dotnet run --configuration Debug

... you get debugging ...

... and the Unable to find debuggable browser tab appears explaining how to run Chrome with the debugging port.
If the problem is really that dotnet run is using Release configuration, let me know, and I'll close here and open an issue for the .NET Core docs.
Thanks @djbreen7 for reporting. https://github.com/aspnet/AspNetCore.Docs/issues/13548

@djbreen7 ...
:smile:

I'll go ahead and open up the issue.

"I'll" Sorry ... I read that too fast. 🏃


Updating should use manifests from dependencies

Say you have three packages, then updating C (or adding the B dependency the first time) should take the version of A from B/lean_packages/manifest.json.

A
B, which depends on A
C, which depends on B

(The current behavior is that updating C upgrades both A and B to the latest revision, typically breaking B in the process.)
This is crucial for using manifests with anything that depends transitively on mathlib.  For example if A=mathlib, B=lean-liquid, and C=yourownproject.  Projects like lean-liquid bump the mathlib version every couple of weeks, using any other mathlib version will break.

@gebner This feature would mean that lake update only updates the top-level package's direct dependencies, right?

My simplest solution to all of this is to append dependency's manifests to the top-level package's with their entries mark inherited and not update such dependencies during lake update.

"... but instead replace them with the current entry from the dependency's manifest."  Otherwise sounds good to me.


PLATAPI-5860:  Support for unicode vs ascii-only shopper contact address fields

Added new ascii-only enum formats for

street-address-ascii
street-address2-ascii
state-province-territory-ascii
city-name-ascii

Corresponding default fomats in api-gateway now support unicode by default.  These ascii-only formats are going to be used by models that will not support unicode.

This is going to change.  Closing this PR


Looking for doc to configure S3 node

Hi @Daniel-t
Your node-red contrib seems promissing, but I struggle a bit to use it. Where can I find how to configure the S3 node. I need to upload a base 64 coverted string to buffer in a PNG image to S3, so my question is where do I setup parameters:

filename
ACL
Content type

I do not find these in the node itself... neither I do not know how I pass my buffer file to the node (payload)...
Regards
Thibaut

I'll add an example.

As a general rule, the nodes are direct wrappers for the AWS Javascript API.  So details for the parameters for PutObject can be found here https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#putObject-property
for your specific query, your message should have at least the following:
msg.Bucket - the bucket to store the file in (can be specified in the node config
msg.Key - the filename to save the file in S3 as (also in node config)
msg.Body - the content you want to save
msg.ACL - the acl you want applied (see the api docs)
msg.ContentType - the mime type


Potential improvements to case study standard

The case study standard doesn't say much about theory. Is it desirable for case study to do one or more of the following?

generate a theory
base its coding scheme on a theory, or
test an a priori theory

Speaking of theory: What about a supplemental section about Theory vs. Theoretical Framework vs. and Conceptual Framework, similar to this paper?

Added stuff about theories to the case study paper. We're avoiding a framework like @sbaltes suggested (for now) because different people use the same terms inconsistently.


Attempting to set stdin handle results in *** Exception: <stdin>: hDuplicate: illegal operation (cannot flush the read buffer: underlying device is not seekable)

Not sure if this is a bug or it's just the way ghcid works:
With ghcid
ghcid --test=Main.main Main.hs
Loading ghci -fno-break-on-exception -fno-break-on-error -v1 -ferror-spans -j Main.hs ...
GHCi, version 8.6.3: http://www.haskell.org/ghc/  :? for help
[1 of 1] Compiling Main             ( Main.hs, interpreted )
Ok, one module loaded.

All good (1 module, at 15:00:48)
Running test...
*** Exception: <stdin>: hDuplicate: illegal operation (cannot flush the read buffer: underlying device is not seekable)

While with ghci:
ghci Main.hs -e "main"
"test"

import qualified System.IO
import qualified GHC.IO.Handle

filename = "test.txt"
main = do
      h <- System.IO.openFile filename System.IO.ReadMode
      old_stdin <- GHC.IO.Handle.hDuplicate System.IO.stdin
      GHC.IO.Handle.hDuplicateTo h System.IO.stdin
      System.IO.hClose h
      realMain
      GHC.IO.Handle.hDuplicateTo old_stdin System.IO.stdin

realMain = do
  x <- getLine
  print x

The motivation for doing the above is essentially this question: https://stackoverflow.com/questions/50931355/how-can-i-test-a-program-reading-from-stdin-in-ghci/50932360
Complete repo here (just basically the file above): https://github.com/chrissound/GhciStdInTest

I suspect I don't have much choice. The code to hook up Ghcid to Ghci with pipes etc. is at https://github.com/ndmitchell/ghcid/blob/master/src/Language/Haskell/Ghcid.hs#L63-L69. Is the result of CreatePipe not seekable? If the test program leaves stdin in an inconsistent state, my guess is that it will severely upset Ghcid.

Adding verbose option(ghcid --test=Main.main Main.hs -v) allows hDuplicate to work properly(prints content of test.txt). Even with verbose enabled, about 20% of triggering fails with same message(*** Exception: <stdin>: hDuplicate: illegal operation (cannot flush the read buffer: underlying device is not seekable))
I'm using macOS 10.15.5, GHC 8.8.3/8.10.1

Surprised -v makes it work better, but I still think the underlying issue will remain - I hijack the stdin, and that means a test that tries to use stdin is going to have a hard time.


Update pinning operation and delete operation for HyperV

Summary of the pull request
Note: secondary PR in Azure extension: https://github.com/microsoft/DevHomeAzureExtension/pull/182
This PR does two things, it updates how we reset the pinned/unpinned status in the Environments page and updates how we check if a Hyper-V VM has been deleted.
When a compute system provider performs an operation in the environments page, they first send dev home an updated State. E.g Saving. Then when the operation is done an updated state event is sent e.g Saved. Both time we update the operations in the menu flyout as the supported operations can change based on the state. Before this change when Pinning/Unpinning was performed, no telemetry and no updates to the operations were performed.
Unlike regular operations the pinning operations are asynchronous as we first need to check the status of whether the environment is pinned or not. If its pinned we will show the "Unpin" operations in the menu flyout, and if its not pinned we will show the "Pin" operations in the menu flyout. Due to this asynchronous call we need to lock the method so there is not a race between updating the operations for the initial "Saving" state and updating them when it changes to "Saved". So I added a semphore lock to prevent this.
I also slight tweaked how we check if a Hyper-V VM is deleted by adding another check as sometimes the powershell object may say its not deleted but it actually was. Causing us to show the wrong UI in Dev Home
Other small updates:

Shutdown resource value named "Shutdown" instead of "Shut down". Missed in my last PR so updated here
widen the infobar as it was cutting off some error messages
Added a class to hold the pinning operation and the results of the GetIsPinnedToTaskbarAsync and GetIsPinnedToStartMenuAsync operations so in the future we can show the user the errors in the UI when the Windows app code is more stable.

Videos
Showing Pinning:
https://github.com/microsoft/devhome/assets/105318831/cf424578-62b2-4c28-ab9a-af0ebe93399f
Showing Deleting Hyper-V VM:
https://github.com/microsoft/devhome/assets/105318831/7d2bcaf6-aa00-4093-aa37-7f8982bb6deb
References and relevant issues
Detailed description of the pull request / Additional comments
**Note: Due to the asynchrous calls for GetPinStatusAsync, when the operation to pin/upin the dev box is completed, the pin/pinned operations don't reset until GetPinStatusAsync is complete so there is a small delay when the operations update. We can work on trying to optimize this reset in a future PR. What happens is if the user clicks the menu flyout immediately after pinning it will close as it updates with the new items. You can see it happen in this video:
**
https://github.com/microsoft/devhome/assets/105318831/05187da8-d467-46a1-88cf-0e356ccfaa8a
Validation steps performed
PR checklist

[x] Closes #2877
[ ] Tests added/passed
[ ] Documentation updated

Love the UI changes. Great reuse.


white-labeled logo and localized ohif-cornerstone-extension

white-labeled logo to ProstateCancer.ai and localized the ohif-cornerstone-extension to add my custom tools to it

Sorry, this was an accident. Please ignore.


Non admin UI

Currently we have the UI with all the following functionalities.

which are more relevant to admins.
In case of opening up this report to wider audience who do not need these features, can we have a sepearate page with just

Get Emailable Report
Export Emailable Report
Export Full Report

@AnpooSivanadi-okta let me add it to the backlog.

@AnpooSivanadi-okta
To see reflected the new feature Admin/Viewer roles  use any version of API container from 2.13.7 and use any version of UI container from 7.0.1
allure-docker-service (API)
https://github.com/fescobar/allure-docker-service/releases/tag/v2.13.7
allure-docker-service (UI)
https://github.com/fescobar/allure-docker-service-ui/releases/tag/v7.0.1
Thank you for your suggestions.


Docker image for 2017 shows version 15

I'm trying to use the 2017 version as per https://hub.docker.com/r/microsoft/mssql-server-linux/.
I different 2017 versions but on start log says it is 2019 CTP
for instance, if I use
dockerfile FROM mcr.microsoft.com/mssql/server:2017-CU12-ubuntu
when I do select @@version I get
Microsoft SQL Server 2019 (CTP2.3) - 15.0.1300.359 (X64)   Feb 15 2019 23:50:43   Copyright (C) 2019 Microsoft Corporation  Developer Edition (64-bit) on Linux (Ubuntu 16.04.5 LTS) <X64>
How can I get a Docker image with 2017 from the new repository?

Hi,
# Base OS layer: Latest Ubuntu LTS.
FROM ubuntu:16.04

# Default SQL Server TCP/Port.
EXPOSE 1433

# Copy all SQL Server runtime files from build drop into image.
COPY ./install /

# Run SQL Server process.
CMD [ "/opt/mssql/bin/sqlservr" ]

When you use this dockerfile to build the image, it will copy the install files from your build and drop it into the image. I think the runtime files you used is the SQL Server 2019 package files.
In order to pull the SQL Server 2017 image, you can use the following command. Please refer to Run SQL Server container images with Docker.
docker pull mcr.microsoft.com/mssql/server:2017-latest

Ok I guess I found what was the fault on my side.  I want to enable FTS capabilities and this is updating
RUN wget -qO- https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-preview.list > /etc/apt/sources.list.d/mssql.list && apt update && apt install -y mssql-server-fts

I must use mssql-server-2017.list otherwise the whole server instance also gets updated.


SQL: Push down filters from aggregators

We can optimize queries with filtered aggregators but with no GROUP BY columns by pushing down any filters that they all share. For example,
SELECT
  COUNT(*) FILTER(WHERE col1 = 'abc' AND col2 = 'def'),
  COUNT(*) FILTER(WHERE col1 = 'abc')
FROM tbl

Becomes,
SELECT
  COUNT(*) FILTER(WHERE col2 = 'def'),
  COUNT(*)
FROM tbl
WHERE col1 = 'abc'

This allows indexes to be used, and is especially powerful when the pulled-out filter is a time filter.
Note that this optimization cannot be done when there are GROUP BY columns, because then it may affect the results (in this example, it would improperly eliminate groups from the result that originated from table rows where col1 != 'abc').

Hi, @gianm , Do you think whether it makes sense if having only one filter aggregation, such as:
SELECT
  COUNT(*) FILTER(WHERE col1 = 'abc' AND col2 = 'def')
FROM tbl

=>
SELECT
  COUNT(*)
FROM tbl
WHERE col1 = 'abc' AND col2 = 'def'

@xueyumusic, that does make sense too.


Invitations frontend

A simple UI to connect to the invitations backend. New button in group view, some added logic after signup.
Closes #380

Codecov Report

Merging #562 into master will decrease coverage by 0.26%.
The diff coverage is 90%.

@@            Coverage Diff             @@
##           master     #562      +/-   ##
==========================================
- Coverage   98.41%   98.15%   -0.27%
==========================================
  Files         239      246       +7
  Lines        3734     3851     +117
==========================================
+ Hits         3675     3780     +105
- Misses         59       71      +12

Impacted Files
Coverage Δ

client/app/components/group/group.js
100% <ø> (ø)
:arrow_up:

client/app/components/signup/signup.js
18.18% <0%> (-81.82%)
:arrow_down:

client/app/services/invitation/invitation.js
100% <100%> (ø)

...components/group/groupInvites/groupInvites.spec.js
100% <100%> (ø)

...ient/app/services/invitation/invitation.service.js
100% <100%> (ø)

...nents/group/groupInvites/groupInvites.component.js
100% <100%> (ø)

...t/app/components/group/groupEdit/groupEdit.spec.js
100% <100%> (ø)
:arrow_up:

client/app/services/invitation/invitation.spec.js
100% <100%> (ø)

.../app/components/group/groupInvites/groupInvites.js
66.66% <66.66%> (ø)

client/app/components/signup/signup.controller.js
53.84% <75%> (+3.84%)
:arrow_up:

... and 8 more

Continue to review full report at Codecov.

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


cuda version

can you tell your cuda version and nvidia version

The code base is set up to run with cuda version 10.2 (Newer once like 11.3 should also work if you change the installed torch, torchvision, mmdet, mmcv and torch-scatter versions accordingly).

thank you,i cannot use cuda10.2,so i will try again

now,i can use ./datagen.sh
but it shows that
**========= Preparing RouteScenario_0 (repetition 0) =========

Setting up the agent
Town10HD_Scenario10_route0_09_06_14_56_30
Loading the world
Running the route
Sparse Waypoints: 4
Dense Waypoints: 86
/home/tasl/transfuser/team_code_autopilot/data_agent.py:547: UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor. (Triggered internally at  /opt/conda/conda-bld/pytorch_1659484809535/work/torch/csrc/utils/tensor_new.cpp:201.)
template_batched_torch = torch.tensor(template_batched, device='cuda', dtype=torch.float32).unsqueeze(1)
/home/tasl/anaconda3/envs/tfuse/lib/python3.7/site-packages/numpy/lib/npyio.py:528: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
arr = np.asanyarray(arr)
**
is this normal?

I meet the error _UnboundLocalError: local variable 'leaderboard_evaluator' referenced before assignment
_,can you help me?

I think the performance warning won't matter much.
For the second error you need to provide the full stack trace.
The real issue usually comes before the "local variable 'leaderboard_evaluator' referenced before assignment".
This is just a generic error.

thank you very much


Material UI Chips size not working

I currently try to use chips to represent some hashtags. This is the code:
<Chip
key={props.data}
label={props.value}
variant={props.chosen ? 'default' : 'outlined'}
size="small" <--- Not working
clickable
color={props.chosen ? 'secondary' : 'default'}
onClick={() => props.handleOnClick(props.data)}
/>
Expected Behavior 🤔
This is what it should look like:

Current Behavior 😯
But this is what I render. There is no difference between size = "small" or "medium".

I dont know how to make the font size and the padding smaller. Please help me. Thank you very much.
Context 🔦

Your Environment 🌎

Tech
Version

Material-UI
v4.?.?

React

Browser

TypeScript

etc.

@leducsang97 Please provide a full reproduction test case. This would help a lot 👷 .
A live example would be perfect. This codesandbox.io template may be a good starting point. Thank you!

v4.?.?

If you don't know what version you're using, you're probably not using the version that has this feature, since it was added quite recently.

@leducsang97 You need to use version 4.0.2 or higher.


MI - Developer section (Registry Topics)

This issue is to complete the topics related to registry resources:

Creating a Registry Resource: https://github.com/wso2/docs-ei/blob/master/en/micro-integrator/docs/develop/creating-artifacts/creating-registry-resources.md
Managing the Registry: https://github.com/wso2/docs-ei/blob/master/en/micro-integrator/docs/develop/creating-artifacts/registry/managing-the-Registry.md
Local Registry Entries: https://github.com/wso2/docs-ei/blob/master/en/micro-integrator/docs/develop/creating-artifacts/registry/working-with-local-registry-entries.md
Smooks Artifacts: https://github.com/wso2/docs-ei/blob/master/en/micro-integrator/docs/develop/creating-artifacts/creating-smooks-artifacts.md

Added the registry topics to the 'Develop' section.
@nandika - Could we review this against the File-Based Registry story.


Firefox Extension

Any reason why the Firefox wouldn't show in extensions/add-ons/plugins after installation? Firefox says it was successfully installed but even after restarting the browser I am having trouble locating it. For example Add-ons shows nothing installed as well extensions, and plugins just has usual OpenH264 Video Codec and Widevine Content Decryption module.

That's weird. It should appear in extensions tab of the about:addons pages.
Could you provide more detailed system information such as Firefox version?


slugify tags in frontmatter

Any chance this will get merged? So I can stop trying to use this locally, and just point to this plugin instead?

Hey yea sorry @BryanSchuetz! Been a bit busy, will merge now and test locally before publishing the new version. Might also try and update dependencies


Added support for nested interface.

I'm wrote a simple feature thats allow to add nested interface in class.

LGTM @bennor ?


[NPM] Dataplane Iptable parser + converterToJson

This pull request contains:

Dataplane Parser: Parses data from iptables-save into a Go object.
Dataplane Converter: Parses rules within iptables-save's Go object to a list of JSON or Protobuf objects.
Network Tuple Processor: Take in a source and a destination and evaluate whether network traffic is allowed between them based on the rules from the converter.

/azp run

/azp run

/azp run

/azp run

Removing the work-in-progress flag as PR is ready to be review again, @rbtr  @JungukCho


"FATAL: Wrong number of arguments" running chef-server-ctl user-create during Chef Server installation

Am I missing something?
From Install the Chef Server — Chef Server:

Run the following command to create an administrator:

$ chef-server-ctl user-create user_name first_name last_name email password --filename FILE_NAME

An RSA private key is generated automatically. This should be saved to a safe location. The --filename option will save the RSA private key to a specified path.

And that mostly matches the help text when running chef-server-ctl user-create with no arguments:
USAGE: knife opc user create USERNAME FIRST_NAME [MIDDLE_NAME] LAST_NAME EMAIL PASSWORD
    -s, --server-url URL             Chef Server URL
        --chef-zero-host HOST        Host to start chef-zero on
        --chef-zero-port PORT        Port to start chef-zero on
    -k, --key KEY                    API Client Key
        --[no-]color                 Use colored output, defaults to false on Windows, true otherwise
    -c, --config CONFIG              The configuration file to use
        --defaults                   Accept default values for all questions
    -d, --disable-editing            Do not open EDITOR, just accept the data as is
    -e, --editor EDITOR              Set the editor to use for interactive commands
    -E, --environment ENVIRONMENT    Set the Chef environment (except for in searches, where this will be flagrantly ignored)
    -f, --filename FILENAME          Write private key to FILENAME rather than STDOUT
    -F, --format FORMAT              Which format to use for output
    -z, --local-mode                 Point knife commands at local repository instead of server
    -u, --user USER                  API Client Username
    -o, --orgname ORGNAME            Associate new user to an organization matching ORGNAME
        --print-after                Show the data after a destructive operation
    -V, --verbose                    More verbose output. Use twice for max verbosity
    -v, --version                    Show chef version
    -y, --yes                        Say yes to all prompts for confirmation
    -h, --help                       Show this message

So why is this not working:
sudo chef-server-ctl user-create kenny-evitt Kenny Evitt<EMAIL_ADDRESS>'>w3ma}AC@eLAo!nm' --filename /home/kenny/chef-kenny_evitt.key
That's the actual password I was trying to use.
How or why is this not working? Is it not in fact necessary to create an admin user? Or is there some other way to do this? Is the documentation, and the command help text, just wrong?
I installed and configure the latest version of Chef Server (package chef-server-core_12.0.3-1_amd64.deb) on an Ubuntu 14.04 x64 VM running on DigitalOcean.

The issue is that the password starts with >.  It appears we aren't escaping shell characters before we shell out to the underlying knife-opc commands:
https://github.com/chef/opscode-omnibus/blob/master/files/private-chef-ctl-commands/wrap-knife-opc.rb
Thus, that is being treated as a redirect in the underlying command.  My guess is that if you look in the directory where you ran this command, you have a file named: "w3ma}AC@eLAo!nm"

@stevendanna you're absolutely correct about the file w3ma}AC@eLAo!nm having been created.

@stevendanna I was able to get this to work by escaping the password:
sudo chef-server-ctl user-create kenny-evitt Kenny Evitt<EMAIL_ADDRESS>'\>w3ma\}AC\@eLAo\!nm' --filename /home/kenny/chef-kenny_evitt.key --verbose --verbose
I'm going to check that the password matches what I intended.

@kenny-evitt Thanks.  I've posted a possible fix to the opscode-omnibus repo.  As you found, escaping any special shell characters should allow you to work around this issue.

@stevendanna I was able to login to Chef Manage just now so the password matches.
Should I leave this issue open until a fix has been made?

@kenny-evitt Fine to leave it open, I'll close all related issues when the fix is released.

@stevendanna thanks!


Pinpoint 1.8 mail alarm, please help and help.

Now I want to implement email alarm, I use version 1.8, but I try to download the source code can not compile, and ask you to help solve the problem of email alarm. Thank you all

Hello, @shaojielinux
v1.8.0 is stable. There wasn't any report on the failure of compilation. So I believe there isn't any problem with compiling. you should check your local env.
about setting alarm. check out here

I use idea15 but the project can't compile. Do I still need to modify the pom file? Is there a detailed project compilation process?

I use idea15 but the project can't compile. Do I still need to modify the pom file? Is there a detailed project compilation process?

Hello, @shaojielinux
There is no need of modifying pom.xml.
There is an installation guide
But no detailed compilation guide. Because... compilation will be done by one click without any problem.

I installed the war package, the default is not without the logic of sending mail? How do I add logic to send mail?

Hello, @shaojielinux
check out the guides in the homepage for more features.
alarm guides are here


Still maintained/fork?

Is there a fork of this with updated version?

What functionality/bugfixes you'd like to see?


Add Nonce support to prevent XSS attacks

Certain UI elements in the UI library, like Toast and NavMenu, lack nonce support. Nonces, or Number Used Once, are essential for Content Security Policy (CSP) to prevent XSS attacks by allowing only specific scripts to execute. Enhancing the UI library to include nonce functionality for these elements would align with security best practices and bolster protection against XSS attacks. See Next.js documentation for more details on nonces and CSP. This issue aims to address this gap, ensuring a more secure environment for Next.js/React applications.
Either add nonce support or remove the inline style css. (this would fix it too!)

Can you provide an example please? Not sure what you mean by inline style in this context. Thank you.

An example would be toast:
Pre-information:
cspHeader:
const cspHeader = "     default-src 'self';     script-src 'self' 'nonce-${nonce}' 'strict-dynamic';     style-src 'self' 'nonce-${nonce}';     img-src 'self' blob: data: ${process.env.CMS_DOMAIN};     font-src 'self';     object-src 'none';     base-uri 'self';     form-action 'self';     frame-ancestors 'none';     block-all-mixed-content;     upgrade-insecure-requests; "
As you can see, a nonce is required for elements with inline styling.
I am importing the toaster via:
import { Toaster } from "@/components/ui/toaster";
and
<Toaster nonce={nonce ?? ""}/> <-- I am trying to set the generated header nonce from the csp middleware.
Also, I am using TypeScript and it tells me:
"The type "{ nonce: string; }" cannot be assigned to the type "IntrinsicAttributes". The property "nonce" is not present for the type "IntrinsicAttributes".
The rendered toaster element should look like this in the browser:

Here you can see that there is an inline style tag. Because I am not able to add the nonce like I tried above, the element gets flagged by the content security policy.
It should look in the end browser like this:

 (passing the nonce)
Somehow some elements are able to use the provided nonce like ThemeProvider, but the toaster doesn't. Please correct me if I've done anything wrong or misunderstood anything. 👍🏻

Hello.
Im getting similar problem with some Shadcn components. I noticed that dynamic elements like Dialog, Sheet and Tabs gives me the error when i set my  Content Security Policy directive: "style-src 'self' 'nonce...:
Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self' 'nonce-i9t0qRM9nCj0iun6ASdsa0Yz16c0M3Iaadas='". Either the 'unsafe-inline' keyword, a hash ('sha256-MtxTdfsVEJSDALEIqblYS='), or a nonce ('nonce-...') is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the 'unsafe-hashes' keyword is present.

Any updates on this issue? I am also experiencing it, same output as the comment before whilst trying to use a command component. It looks like they are all stemming from the singleton.js from react-style-singleton. This has made it very difficult, I have tried all possible solutions but they don't work. Even with the Using nonces with Next.JS update and the strict example.

Also experiencing this same issue that comes down to this insertStyleTag function, besides using unsafe-inline , I don't know if there's a way around this?

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.

Is this solved?

This is problematic. I'm also experiencing the same issue.

@shadcn still not fixed. Reopen this please

I believe this is only an issue with the Vaul library (used by the Drawer component). Vaul injects inline scripts and styles. I think that nonces should not be used in production.
To solve this I simply stopped using that component.
If you use vite when working with shadcn, you can enable nonces specifically in dev mode which fixes CSP issues there.

It isn’t an issue with just the Vaul library. I think this is actually an
issue with multiple components part of radix. Dialog, Select, Command,
Drawer, and probably others but I didn’t check any more. Any injection of
scripts and modification of inline styles was too much of a risk, so
unfortunately I ended up changing UI components.
Agreed, nonce is not a good solution.
On Sat, 10 Aug 2024 at 14:37, Roland @.***> wrote:

I believe this is only an issue with the Vaul library (used by the Drawer
component). Vaul injects inline scripts and styles. I think that nonces
should not be used in production.
To solve this I simply stopped using that component.
If you use vite when working with shadcn, you can enable nonces
specifically in dev mode which fixes CSP issues there.
—
Reply to this email directly, view it on GitHub
https://github.com/shadcn-ui/ui/issues/2891#issuecomment-2279176490, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAANW3CBHVFEC6DGTTDNADDZQWKH7AVCNFSM6AAAAABEDGWUWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZZGE3TMNBZGA
.
You are receiving this because you commented.Message ID:
@.***>

It isn’t an issue with just the Vaul library. I think this is actually an
issue with multiple components part of radix. Dialog, Select, Command,
Drawer, and probably others but I didn’t check any more.

Yes, you're right. It looks like they inject a script to remove the scrollbar. From my testing, the dialog component still works ok even with this error.
I reported it here: https://github.com/radix-ui/primitives/issues/3063

It isn’t an issue with just the Vaul library. I think this is actually an

issue with multiple components part of radix. Dialog, Select, Command,
Drawer, and probably others but I didn’t check any more.
Yes, you're right. It looks like they inject a script to remove the scrollbar. From my testing, the dialog component still works ok even with this error.
I reported it here: https://github.com/radix-ui/primitives/issues/3063

Great stuff!

Not that I’m aware of, unfortunately.
On Wed, 27 Nov 2024 at 20:41, QiaoLi1996 @.***> wrote:

Is this solved? I'm experiencing the same issue.
—
Reply to this email directly, view it on GitHub
https://github.com/shadcn-ui/ui/issues/2891#issuecomment-2503532537, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAANW3DPFHAIVHHRBDAL2F32CWOXHAVCNFSM6AAAAABEDGWUWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBTGUZTENJTG4
.
You are receiving this because you commented.Message ID:
@.***>


CSS selector cannot handle plain (unescaped) ampersands in attributes

I'm not sure if it is "correct" to have unescaped ampersands in HTML attributes. But some websites have them and browsers handle it. Some websites even have both & and & in the same attribute. But as of version 2.1.7 Gatling's CSS selector cannot handle plain (unescaped) ampersands.
Example:
Say you first receive a webpage containing <a href="go?to=foobar&index=null" title="Choice 1">
Now if I try to follow this link with
exec(
  http("page with link")
    .get("/page1")
    .check(css("""a[title='Choice 1']""", "href").saveAs("url"))
)
.exec(
    http("follow link")
    .get("${url}")
)

then the URL being used for the second request is go?to=foobar%E2%88%88dex=null
See also http://stackoverflow.com/questions/33402172/how-to-extract-href-with-ampersand-using-gatling/33412497

It's a Jodd issue: https://github.com/oblac/jodd/issues/250

Jodd fix is shipped, waiting for Jodd 3.6.7 to be released.


Modify Navbar

Issue #9
Effect :When We Hover on Navbar Menu Option we see the Effect

Hi @kvcops
I recently updated the navbar menu for your project to make it more attractive and user-friendly. Enhance readability, improve navigation, and give your site a visually appealing touch that stands out with these simple yet impactful design updates. I've attached screenshots of the changes that contribute to this enhancement to improve the overall design.
I'm looking forward to hearing feedback from you!
Issue #9
Best regards,
@khurshed07
https://github.com/khurshed07

Thank you for your contribution...i am looking for more contributions from you in the future

yeah sure


Update dependencies

Simply ran cargo update. We should have done this when releasing the first version, but can be in the next release.
Unfortunately due to no tests yet (#18) it is difficult to know if this introduces any bugs or problems, but are just patch changes so aren't supposed to cause issues at least.
    Updating anyhow v1.0.19 -> v1.0.25
    Removing arrayvec v0.4.12
    Updating askalono v0.4.0 -> v0.4.1
    Updating block-padding v0.1.4 -> v0.1.5
    Updating cargo_metadata v0.9.0 -> v0.9.1
    Updating cc v1.0.47 -> v1.0.48
    Updating chrono v0.4.9 -> v0.4.10
    Updating crossbeam-deque v0.7.1 -> v0.7.2
    Updating crossbeam-epoch v0.7.2 -> v0.8.0
    Updating crossbeam-queue v0.1.2 -> v0.2.0
    Updating crossbeam-utils v0.6.6 -> v0.7.0
    Updating libc v0.2.65 -> v0.2.66
    Removing maybe-uninit v2.0.0
    Updating memoffset v0.5.2 -> v0.5.3
    Removing nodrop v0.1.14
    Updating num-traits v0.2.8 -> v0.2.10
    Updating num_cpus v1.11.0 -> v1.11.1
    Updating rayon v1.2.0 -> v1.2.1
    Updating rayon-core v1.6.0 -> v1.6.1
    Updating serde v1.0.102 -> v1.0.103
    Updating serde_derive v1.0.102 -> v1.0.103
    Updating serde_json v1.0.41 -> v1.0.44
    Removing smallvec v0.6.13
    Updating structopt v0.3.3 -> v0.3.5
    Updating structopt-derive v0.3.3 -> v0.3.5
    Updating syn v1.0.7 -> v1.0.11
    Updating synstructure v0.12.2 -> v0.12.3
    Updating unicode-normalization v0.1.8 -> v0.1.11
    Updating unicode-segmentation v1.5.0 -> v1.6.0
    Updating unicode-width v0.1.6 -> v0.1.7

@MaikKlein  & @Jake-Shadle  Btw should we list these type of updates that only affect Cargo.lock and the executable in the changelog? If we do every release will essentially just contain an "Updated  dependencies" which may not be that useful. Likely only more meaningful  for  specific manual major upgrades.

Closed by #20

Could have merged my nice separate PR instead and then done the other one. PR thief! :)


Switch to subctl verify --kubecontexts

Depends on: submariner-io/submariner-operator#1215
Signed-off-by: Stephen Kitt<EMAIL_ADDRESS>

Before merging this, I want to run the consuming projects’ e2e, once submariner-io/submariner-operator#1215 is merged.

hmm so "Depends on:" doesn't trigger the bot.

One consuming projects’ test failed - timed out after 15m. Looks like a spurious failure we can ignore.


Can't resize the graph column.

The repo I'm trying this on created a graph column that takes up half the useable space.  As a result I can't really read the date, commit, author columns all at once.  The user should be able to drag the description column over and make the graph column smaller if desired.

I am not able to resize any column at all. Is this supposed to be working currently or were the columns locked down?

I'm having exactly the same problem as @aarkayna . However, on the demo in the package page, I saw it was movable. Is this a regression in features?

Same issue

+1
Same problem


First save of file doesn't have any effect

Copy-pasting https://github.com/webpack/webpack/issues/703 for posterity:

I have this issue on OS X Yosemite.
First time I save any file, watcher doesn't notice. Subsequent saves work.

This is a Webpack 1.5.1 issue, I don't have this problem on 1.4.15.
Downgrade if it's an issue for you until this is resolved.

Fixed in<EMAIL_ADDRESS>you should get it with<EMAIL_ADDRESS>now.
Also it's now lightning fast thanks to chokidar update :-)


Drawer: removed flex style property on section component

This will fix the bug on the section component of the drawer. If you only have 1 item on a single section component, It will take too much space to render the second section component and somehow the height being is unknown. The culprit is the flex style property.
Take a look at this code
<Drawer.Section
  items={[{
    icon: 'playlist-add-check',
    value: 'Todos',
    label: '0'
  }]}
/>

<Divider/>

<Drawer.Section
  items={[{
    icon: 'settings',
    value: 'Settings'
  }, {
    icon: 'info',
    value: 'About'
  }, {
    icon: 'power-settings-new',
    value: 'Logout'
  }]}
/>
</Drawer>

It looks like this this

and this is the final form after the changes. They stack pretty well.

Great pull request ;) 👍  Thanks


建议保留Docker容器

_build_in_docker() {
    echo "Not running in docker, starting a docker container to build cURL."

    sleep 10  # Adjust the sleep duration as needed

    # Execute the command inside the container
    docker exec -it ${container_name} sh -c "sh ${RELEASE_DIR}/${base_name}" 2>&1 | tee -a "${container_name}.log"

    # Exit script after docker finishes
    exit;
}

建议保留库，有时需要静态链接libcurl库

All the compiled libraries are packaged in the release directory.
You also can check out releases, package names with dev are statically linked libraries.

Thank you very much.

发件人: Travis Lee @.>
发送时间: 2024年9月19日 21:49
收件人: stunnel/static-curl @.>
抄送: niuyuling @.>; Author @.>
主题: Re: [stunnel/static-curl] 建议保留Docker容器 (Issue #92)
All the compiled libraries are packaged in the release directory.
You also can check out releases, package names with dev are statically linked libraries.
―
Reply to this email directly, view it on GitHubhttps://github.com/stunnel/static-curl/issues/92#issuecomment-2361043698, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEOYHFB5576NPIICY4MI37LZXLI7HAVCNFSM6AAAAABOPJVFBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRRGA2DGNRZHA.
You are receiving this because you authored the thread.Message ID: @.***>


How to deploy model in production?

Hello there! Thanks for the valuable and well-rounded project.
I see that you're using Flask app to serve model predictions using simple REST API. Can you please do a guide on how to deploy a trained model in production that could handle multiple requests at once? And maybe even scale (number of machines) with the number of requests? Including setting up the VM's, environment, etc...?
The community is really lacking guides like that so this can be very helpful.

Hi! For running the model on production you could use gunicorn - https://github.com/lukalabs/cakechat#gunicorn-http-server
You can set multiple workers for gunicorn to process multiple requests - http://docs.gunicorn.org/en/stable/settings.html#workers
More info about serving flask application on production you can find here:
https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-18-04
https://www.pyimagesearch.com/2018/02/05/deep-learning-production-keras-redis-flask-apache/

Great, thank you!


fix bug duplicate item with  usemulti2

Quick Fix
currently, when I call "useMulti2" giving it a limit we have elements that are returned several times so I use "uniq" from 'lodash' to solve it

Closed in favour of https://github.com/VulcanJS/Vulcan/pull/2722


Removes Bower mention from README

Fixes #3979
Also, bumped the CDN version to the latest.

Is it worth explicitly stating that there was bower support, but there isn't anymore, and never will be again?

Yup, good suggestion @themoonrat


[work in progress] moving away from _unsafeInheritExecutor

Incomplete, i'll get through it soon

@swift-server-bot test this please

Replaced by https://github.com/apple/swift-distributed-tracing/pull/148


Bring code coverage back to 95%

Which problem is this PR solving?

Fixes #5194

Description of the changes

Updated codecov.yml threshold back to 95%

How was this change tested?

N/A

Checklist

[ ] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md
[ ] I have signed all commits
[ ] I have added unit tests for the new functionality
[ ] I have run lint and test steps successfully

for jaeger: make lint test
for jaeger-ui: yarn lint and yarn test

@yurishkuro Can you see the Cassandra failing test? It's looks weird printing too many logs


Multiple postgres containers: no pg_hba.conf entry for host

Hi,
I need to create a test database for my application, I duplicated PostgreSQL container:
### PostgreSQL Container ####################################

    postgres:
        build: ./postgres
        volumes:
            - postgres:/var/lib/postgresql/data
        ports:
            - "5434:5432"
        environment:
            POSTGRES_DB: postgres
            POSTGRES_USER: postgres
            POSTGRES_PASSWORD: 123

### PostgreSQL Container for test purposes ##################

    postgres-test:
        build: ./postgres
        volumes:
            - postgres:/var/lib/postgresql/data
        ports:
            - "5435:5432"
        environment:
            POSTGRES_DB: postgres
            POSTGRES_USER: postgres
            POSTGRES_PASSWORD: 123

I can enter to psql on port 5435 within host machine:
psql -h localhost -p 5435 -U postgres -d postgres

But when I trying to execute psql with 5434 I get following error:
psql: FATAL:  no pg_hba.conf entry for host "<IP_ADDRESS>", user "postgres", database "postgres", SSL off

Within guest machine I get same error:
docker-compose exec --user=laradock workspace bash
psql -h postgres -U postgres -d postgres

I'm a beginner in docker and I stuck here, please, help me.

In your postgres-test:
 ports:
     - "5435:5432"

could you change & test it (with different port?):
ports:
      - "5435:5433"

@zeroc0d3 thanks for your response. I tried to change port and it works within guest machine, but when I trying to connect from host machine using psql -h localhost -p 5435 -U postgres -d postgres it returns following:
psql: server closed the connection unexpectedly
	This probably means the server terminated abnormally
	before or while processing the request.

Same connection to psql with port 5434 works fine. In really I find strange to use different local ports in containers...

Could you test this (change all ports):
postgres:
  ports:
  - "5434:5434"

and
postgres-test:
  ports:
  - "5435:5435"

When you need to connect by terminal outside docker container:
docker ps

Find the IP Address of your postgres & postgres-test container:
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' [container_id]

Then use:
psql -h [ip_container] -p 5432 -U postgres -d postgres

We use "default" port connection 5432

@brezzhnev Why use two containers if they use the shared volume (postgres)?
I think you should use two volums:
### PostgreSQL Container ####################################

    postgres:
        build: ./postgres
        volumes:
            - postgres:/var/lib/postgresql/data
        ports:
            - "5432:5432"
        environment:
            POSTGRES_DB: ${POSTGRES_DB}
            POSTGRES_USER: ${POSTGRES_USER}
            POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}

### PostgreSQL Container ####################################

    postgres-test:
        build: ./postgres
        volumes:
            - postgres-test:/var/lib/postgresql/data
        ports:
            - "5433:5432"
        environment:
            POSTGRES_DB: ${POSTGRES_DB}
            POSTGRES_USER: ${POSTGRES_USER}
            POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}

...

### Volumes Setup ###########################################

volumes:
    mysql:
        driver: "local"
    postgres:
        driver: "local"
    postgres-test:
        driver: "local"

@alchimik thank you! It solved my problem.


Cut release

For the sake of keeping this up with other packages which depend on it, this could use a hackage release. It turns out that neither @ozataman and I do not have access to upload this package to hackage. @mightybyte when you get a chance could you grant us maintainer access on hackage for restful-snap? I'm assuming Oz' account is ozataman. Mine is MichaelXavier. Thanks!

Done.


WinAppDriver - unable to fully traverse element tree

Morning
I am using Selenium/Appium and WinAppDriver to automate tests of an Outlook Add-in on Outlook for Windows. We've had no issues doing so on the Old Outlook UI, and the situation was the same with the New Outlook UI up until end of December 2023/beginning of January 2024.
However, ever since we came back from the holidays, we're no longer able to traverse far enough down the element tree to view the contents of the pop-up generated by our add-in. The pop-up is found (as a Window element, which seems a little odd, especially as it doesn't have a window handle), but attempting to find any elements within it simply returns the same pop-up element, nothing else.
Has something intrinsically changed about how add-in pop-ups are displayed/created in the new outlook UI? The only possible clue we've been able to find is that pop-up has a localized controller type of 'AddInIFrame', but as WinAppDriver does not seem to support Iframes, we can't do anything about that.
Thanks for any help in advance and let me know if you need further details.

Hi @iank-plutoflume,
I think this issue is due to a windows update or due to a outlook update, If you are able to see the popup from the root node then you need to switch to root node first and then try to find it.
Else you can traverse to the add-in manually by expanding the nodes until you find the correct one.
Also if you cannnot find much elements inside the element you can always use click on element with coordinates to achieve your results.
Best regards,

Hi Rakesh,
Switching root node and traversing/expanding the nodes until I get to the correct one hasn't worked. We reach the one we want but expanding it only returns the one we're at.
Using co-ordinates isn't useful for out needs either. We want to check the text in the pop-up, among other things, and thus require the actual contents of the nodes.
Thanks,
Ian


[Android] Dynamically adding SymbolLayers with additional filtering information results in exception on Android

Description
Dynamically adding SymbolLayers and combining existing and dynamical filters results in an exception on Android devices.
E/Mbgl-MapChangeReceiver: Exception in onDidFinishLoadingStyle
    java.lang.ClassCastException: com.mapbox.mapboxsdk.style.layers.FillLayer cannot be cast to com.mapbox.mapboxsdk.style.layers.SymbolLayer

To Reproduce
Steps to reproduce the behavior.
Example:
// React
import React, {Component} from 'react';
import {
  StyleSheet,
  View,
  Dimensions,
} from 'react-native';

// Navigation
import {StackNavigationProp} from '@react-navigation/stack';
import {StackParamList} from '../navigators/Navigator';
import {RouteProp} from '@react-navigation/native';

// Data Models
import Survey from './../../models/data_models/Survey';
import SurveyLocation from './../../models/data_models/SurveyLocation';

// Components
import LMConstants from './../../constants/LMConstants';

// Third Party Libraries
import MapboxGL from '@react-native-mapbox-gl/maps';

// Set the access token for mapbox surveyapp project
MapboxGL.setAccessToken(
  '<HIDDEN>',
);

interface MapScreenprops {
  navigation: StackNavigationProp<StackParamList, 'MapScreen'>;
  route: RouteProp<StackParamList, 'MapScreen'>;
  Surveys: Map<string, Survey>;
  Locations: Map<string, SurveyLocation>;
}
interface MapScreenstate {
  mapStylesURL: string;
  zoomLevel: number;
  mapCenter: number[];
  currentFloor: number;
  layerIDsAndFilters: Map<string, string>;
}

class MapScreen extends Component<MapScreenprops, MapScreenstate> {
  constructor(props: MapScreenprops) {
    super(props);
    this.state = {
      mapStylesURL: 'https://vector.dev.livingmap.com/styles/heathrow/styles.json',
      zoomLevel: 13,
      mapCenter: [-0.450897,51.4697442],
      currentFloor: 6,
      layerIDsAndFilters: new Map<string, string>(),
    };
    this.getStyleSheet();
  }

  mapInstance: MapboxGL.MapView | null;

  render() {
    return (
      <View style={styles.container}>
        <MapboxGL.MapView
        style={styles.map}
        logoEnabled={false}
        styleURL={this.state.mapStylesURL}
        attributionEnabled={false}>
        <MapboxGL.Camera
          zoomLevel={this.state.zoomLevel}
          centerCoordinate={this.state.mapCenter}
        />
        {this.generateSymbolLayers()}
      </MapboxGL.MapView>
      </View>
    );
  }

  getSymbolLayersAndExistingFilters(styleSheetData: any) {
    let layerObject = styleSheetData['layers'];
    var layersAndFiltersMap = new Map<string, string>();
    for (let layer of layerObject) {
      if (layer['source'] == 'lm') {
        let preexistingFilter = layer['filter'];
        layersAndFiltersMap.set(layer['id'], preexistingFilter);
      }
    }
    this.setState({layerIDsAndFilters: layersAndFiltersMap});
  }

  generateIndividualLayerFilters = (
    layerID: string,
    preExistingFilter: string,
  ) => {
    return (
      <MapboxGL.SymbolLayer
        id={layerID}
        key={layerID}
        filter={[
          'all',
          preExistingFilter,
          [
            'any',
            ['==', ['get', 'floor_id'], this.state.currentFloor],
            ['==', ['get', 'floor_id'], ''],
            ['!', ['has', ['get', 'floor_id']]],
            [
              'all',
              ['==', ['get', 'floor_id'], '0.0'],
              ['==', ['get', 'indoor'], false],
            ],
          ],
        ]}></MapboxGL.SymbolLayer>
    );
  };

  async getStyleSheet() {
    (await fetch(LMConstants.MappingConstants.styleURL))
      .json()
      .then((result) => this.getSymbolLayersAndExistingFilters(result));
  }

  generateSymbolLayers = () => {
    console.log('HERE')
    let symbolLayers = [];
    let layersArray = Array.from(this.state.layerIDsAndFilters.keys());
    console.log('layersArray:', layersArray)
    for (let layerID of layersArray) {
      let layer = this.generateIndividualLayerFilters(
        layerID,
        this.state.layerIDsAndFilters.get(layerID),
      );
      symbolLayers.push(layer);
    }
    console.log(symbolLayers)
    return symbolLayers;
  };
}

const styles = StyleSheet.create({
  container: {
    height:
      Dimensions.get('window').height - LMConstants.UIConstants.navBarHeight,
    width: Dimensions.get('window').width,
  },
  map: {
    flex: 1,
  },
});

export default MapScreen;

Here is the output stack trace:
com.livingmap.surveyapp E/Mbgl-MapChangeReceiver: Exception in onDidFinishLoadingStyle
    java.lang.ClassCastException: com.mapbox.mapboxsdk.style.layers.FillLayer cannot be cast to com.mapbox.mapboxsdk.style.layers.SymbolLayer
        at com.mapbox.rctmgl.components.styles.layers.RCTMGLSymbolLayer.addStyles(RCTMGLSymbolLayer.java:45)
        at com.mapbox.rctmgl.components.styles.layers.RCTLayer.addToMap(RCTLayer.java:260)
        at com.mapbox.rctmgl.components.styles.layers.RCTMGLSymbolLayer.addToMap(RCTMGLSymbolLayer.java:29)
        at com.mapbox.rctmgl.components.mapview.RCTMGLMapView.addQueuedFeatures(RCTMGLMapView.java:534)
        at com.mapbox.rctmgl.components.mapview.RCTMGLMapView$1.onStyleLoaded(RCTMGLMapView.java:434)
        at com.mapbox.mapboxsdk.maps.MapboxMap.notifyStyleLoaded(MapboxMap.java:964)
        at com.mapbox.mapboxsdk.maps.MapboxMap.onFinishLoadingStyle(MapboxMap.java:221)
        at com.mapbox.mapboxsdk.maps.MapView$MapCallback.onDidFinishLoadingStyle(MapView.java:1316)
        at com.mapbox.mapboxsdk.maps.MapChangeReceiver.onDidFinishLoadingStyle(MapChangeReceiver.java:198)
        at com.mapbox.mapboxsdk.maps.NativeMapView.onDidFinishLoadingStyle(NativeMapView.java:1106)
        at android.os.MessageQueue.nativePollOnce(Native Method)
        at android.os.MessageQueue.next(MessageQueue.java:336)
        at android.os.Looper.loop(Looper.java:174)
        at android.app.ActivityThread.main(ActivityThread.java:7356)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
2020-11-26 10:44:45.911 19946-19946/com.livingmap.surveyapp E/libc++abi: terminating with uncaught exception of type jni::PendingJavaException
2020-11-26 10:44:45.911 19946-19946/com.livingmap.surveyapp A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 19946 (ngmap.surveyapp), pid 19946 (ngmap.surveyapp)

The crashes with this error:
E/ReactNativeJS: 'Mapbox error', 'Exception in onDidFinishLoadingStyle', { level: 'error',
      tag: 'Mbgl-MapChangeReceiver',
      message: 'Exception in onDidFinishLoadingStyle' }

Expected behavior
Symbol layers are added and all filters are applied and response to dynamic changes in the state (this.state.currentFloor in this instance)
Versions (please complete the following information):

Platform: Android
Device: Google Pixel 2
Emulator/ Simulator: Yes (in addition to physical device)
OS: Android 10
react-native-mapbox-gl Version 8.1.0-rc.9
React Native Version 0.63.3

Screenshots
Image 1 - This is the error screen displayed by Android on instantionation of the MapScreen Component.
Images 2, 3 and 4 - Give an example of the expected behaviour as demonstrated by iOS for comparison. The images are sequential and show the changing of the floor. This can be emulated in the example code by changing the currentFloor value in the MapScreen state. Note that some of the functionality shown on the iOS screen has been omitted from the example code given here for the sake of brevity.

Image 1 - Android Result
Image 2 - iOS
Image 3 - iOS
Image 4 - iOS

Additional context
This functionality has been successfully on iOS (iOS 14.2.1, iPhone 12 Pro, Simulator and Device). The implementation works well on iOS.
EDIT: Realign images (ferdicus)

Quick note on replicating the issue - the server that hosts the styles is has automated downtime from 1900 GMT to 0700 GMT. If you are attempting to replicate the issue in this scheduled downtime then let me know and I will ensure that the servers are serving.

This is still an issue

I've just checked this issue and it is still a problem. Bumping this issue but since I seem to be the only person reporting the issue then I am going to jump into the source and have a look at it myself.

@NathanJozef, sorry to be such a buzz kill, but yeah - I don't think this will get any love in the near future.
Just keeping this repo clean (issue grooming/ deps updates/ PR checks) is enough for one person, even more so when that person only has one weekday for this repo.

@ferdicus, that's absolutely fine mate. Thank you for coming out and saying as much. At least it leaves us in little doubt of what is happening. I've forked the repo and will see if I can get a fix for it.
Appreciate all you've done with the repo so far so thank you for that.

@NathanJozef, coming back to this, maybe it would be easier to debug this with a very minimal setup recreated in the example project - that way, if someone should find the time, they can quickly whip it up.
Do you think you could add that to the description?
Cheers

Having experienced a similar issue, it is caused by a mismatch between a layer in Mapbox Studio and what you are rendering the layer as in the app. Based on the crash log, it appears that you have a Fill Layer in studio trying to be rendered as a Symbol layer in the app or vice versa. Unfortunately the only way to tell which one is to run through each of your layers.  This was such a long time ago that I forgot how I solved the problem. But mysport12's answer sounds very likely. Shortly after my last comment my wife gave birth to our second child so a ruthless prioritisation happened. It doesn't excuse my lack of response, but I hope it explains it.
Anyway, mysport12's answer feels very familiar to the solution I came up with. The layer I was trying to render had a few other things in there that were incompatible with the symbol layer.
The genesis of the issue was actually a red herring from the iOS platform which DID render everything. Because it didn't error I had assumed that iOS was working and Android not. Rather the Android implementation was just more rigorous and iOS was failing silently.
Again, my sincerest apologies that I can't give more of a better answer so far down the line. I assure you the universe has already punished me by countless night of lack of sleep for the baby.
I'm closing this issue now.


⚠ Bofrost.es has degraded performance

In b343d05, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1710 ms

Resolved: Bofrost.es performance has improved in 4554197 after 6 minutes.


[pulsar-zookeeper-utils] Fix Updating Rack Info Dynamically

Motivation
When the value of "/bookies" in ZooKeeper is changed, Brokers are notified of the change.
After the notification to Brokers, only one of the two BookKeeper clients that Brokers have seems to reflect the change.
Two BookKeeper clients that Brokers have

https://github.com/apache/pulsar/blob/ac0c6e41f0ebe3c900bb31e41c8d40b3f60b19df/pulsar-broker/src/main/java/org/apache/pulsar/broker/ManagedLedgerClientFactory.java#L81
https://github.com/apache/pulsar/blob/102fa9de03509b86e47f58ab8e1c0dde2095da3b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/schema/BookkeeperSchemaStorage.java#L105

The client of BookkeeperSchemaStorage don't seems to reflect the change.
The cause is that ZkBookieRackAffinityMapping#onUpdate don't run.
I confirmed that I change ZkBookieRackAffinityMapping instances to use same ZooKeeperDataCache and ZkBookieRackAffinityMapping#onUpdate works.
Modification

Set the argument of ZkBookieRackAffinityMapping#setConf to bookieMappingCache
Move updateRacksWithHost()

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks


Minor: improve documentation to StringView trim

Which issue does this PR close?
Follow on to https://github.com/apache/datafusion/pull/12395 from @Rachelint
Rationale for this change
Part of reviewing https://github.com/apache/datafusion/pull/12395I spent some non trivial time reading this code, and I wanted to encodde my learnings as comments
What changes are included in this PR?

Add comments to various functions
Update parameter names

Are these changes tested?
No code, just docs and name changes
Are there any user-facing changes?
No, this is all internal code

Thanks again @comphead


confidence

Great plugin.  How can I get the confidence level of each recognition?  Thanks.

@asteckles As simple as: event.results[0][0].confidence
In case you want to have the result with the highest confidence ratio, loop through the array and compare their confidence level.
Hope this helps :smile:

closing as it's a question and was answered


animate: true on IOS simulator doesn't work

I had animate: true for programmatic viewport and zoom changes, but on the IOS simulator nothing happens.
There is no animation, but also the actual call doesn't take effect....that is, the new viewport or zoom is ignored if animate: true is set.
Strange.

could you provide a code sample that is "broken" for you? I'm using this plugin and animations work fine on both simulator and real ios devices for me. I have found that animations will cancel one another, e.g. putting two animated movements one after another will cancel the first:
this.map.setZoomLevel({level: 8, animated: true})
this.map.setCenter({lng: -104.964777, lat: 39.740010, animated: true})

does not zoom to the correct level.

Ah!  I was using multiple calls with animation.....the cancellation was what was causing my issue! Thanks for the heads up on the Spacarar!
Be nice if the documentation noted that as a constraint at some point.
I'm going to close this issue.


📜🆕 new article: "Secure SPFx Solutions in a Post Isolated Web Part Retirement

Category

[x] New article

Related issues

n/a

Contents of the Pull Request
New article for PNP blog

Hi @andrewconnell  - I merged this, but unfortunately, something is off as you tried to use an shortcode that we don't have. Can you resolve this?

Hey there, this was blocking me which is why I needed to delete your alert (just the alert, not the content) as I needed to publish the weekly agenda on time. Please feel free to investigate this when you have time (and a working machine 💻🔥)

My bad... I actually intended to remove that before I submitted. Thanks for removing!


[E2E Scenario Tests] Configuration change tests

Scenarios:

Turn on/off distributed tracing logs and check container logs to confirm.
Turn on/off MTLS and check via app call to GRPC endpoint.
Turn on/off metrics and check prometheus endpoint to confirm (test behaves like prometheus).
Scenario where a new component is added, POD restarted and validate via app call.
Scenario where a new component is added to a diff namespace, POD restarted and app should not see it.

Parent: #1098

Removing from "Longhaul Tests" project, that is being filtered to only track longhaul issues.


Feedback Clarification on $enable-shadows with box-shadows on custom-controls

Hi,
I was in the middle of tweaking the box shadows for custom controls and I found something that looks questionable in the source SASS file? Screenshot attached.

If logic tells me right my expectation is that, $enable-shadows is a boolean that will enable all styles that have a shadow to show a shadow meaning, if it is set to true, things like form-control on focus and custom-control on focus have a shadow style applied to it. On the contrary, if it is false, it would apply NO SHADOW at all. Would that be a reasonable interpretation of what I should be expecting just by looking at $enable-shadows alone?
What didn't make sense to me is that we have a variable called $custom-control-indicator-focus-box-shadow which is called when $enable-shadows is false!?!?
So what that basically means is that if I wanted to style custom control indicators to have different box shadows to form-controls, I can't, unless if I could find a way quickly change the bolean to false, "Just before SASS parses the custom control SCSS" then "reset it to true after"?!?!
At the moment from me reading the code, the logic seems a little questionable so maybe for clarification purposes, could you explain the purpose of the $enable-shadows variable and the rationale for making the calling $custom-control-indicator-focus-box-shadow where it currently is in the source please? Also if this is confirmed as a bug or issue, would this be something you will fix?
Look forward to your reply.
Thanks.

Our custom forms, and our buttons and other components, use a homegrown focus style that's built on box-shadow. As such, to ensure accessibility, we always provide this shadow focus style. That's why we have this logic here.


Forward ssh agent socket from host to instance

This can be useful for instance to access private git repos via ssh.

Should we use an ssh.forwardAgent: false setting in lima.yaml that users have to turn to true to enable it for that particular VM?

SGTM


feeding back curr state to next state causing dynamic_rnn to crash if batch size is varying

Im feeding data to the graph with tf.train.batch (dynamic_pad=True,allow_smaller_final_batch=True).
also im feeding in the final state returned by tf.train.dynamic_rnn as the next state during the training process. (initial state configured to zeros)
it was working fine, however when end of epoch is reached, due to allow_smaller_final_batch=True above, it is trying to fetch smaller batch sizes. this seems to crash the program as the last state is of standard batch size(say 100) and current batch is lesser than standard batch size (eg: 90)
if i dont feed the last state, things are working fine as the state always initialized to zeros based on the current batch size. I could not find proper explanation for dynamic batch sizes (pls not not im not referring to variable sequence lenghts here)  assoiated with state feedback to ascertain if this is a bug or a coding issue
kindly help

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
Have I written custom code
OS Platform and Distribution
TensorFlow installed from
TensorFlow version
Bazel version
CUDA/cuDNN version
GPU model and memory
Exact command to reproduce

Could you post the log for the crash?

apologies for resonding late...please find the requested details as below
OS: Windows,
IDE: Pycharm,
Tensorflow Installed from: pip3
Tensorflow Version: 1.9.0
Steps to Reproduce:

Created dynamic_rnn processing as follows
outputs, self.final_state = tf.nn.dynamic_rnn(cell_fw,self.rnn_inputs,sequence_length=self.steps,
initial_state=self.state_fw,time_major=False)

Reading data from input pipelines as follows
self.steps, self.xs , self.ys = tf.train.batch(tensors=decoder.dequeue(self.is_classifier), batch_size=50,
dynamic_pad=True,
allow_smaller_final_batch=True,name='batch_processor')

During Training Phase Feeding the last state as follows
_,loss,  accuracy, summary, final_state,     = self.sess.run([self.train_step,self.loss, self.accuracy, self.summary, self.final_state,],feed_dict)
feed_dict[self.state_fw] = final_state

Error during the last smaller batch

_Dimensions of inputs should match: shape[0] = [20,512] vs. shape[1] = [50,512]
[[Node: rnn_layer/rnn/while/rnn/multi_rnn_cell/cell_0/LSTMCell/concat = ConcatV2[N=2, T=DT_FLOAT, Tidx=DT_INT32, device="/job:localhost/replica:0/task:0/device:CPU:0"](rnn_layer/rnn/while/rnn/multi_rnn_cell/cell_0/dropout/mul, rnn_layer/rnn/while/Identity_4, rnn_layer/rnn/while/rnn/multi_rnn_cell/cell_0/LSTMCell/concat/axis)]]

It's not totally clear to me how you are calling this, but from what I gather, it looks like the last tensor is smaller. As you point out, you are using allow_smaller_final_batch=True, which is likely to produce this.
Why not set that to False? I'm not sure how it's connected to feeding back the last state.
Also, I don't exactly understand how you are going to process the continuous sequence unless you plan on truncating the gradient at each batch. (Just consider the initial state as a constant.)

Yeah...currently im setting allow_smaller_final_batch=False to overcome this issue. As you have rightly pointed out, im having a trouble in feeding continous sequences. so ive truncated my data into shorter segments , and relying on state to carry forward to the next batch instead resetting the state.
i realize this approach is not entirely correct as the batched data is no more continous as i expect to be.
im struggling on this point for a while may you can suggest a better way to do this
for eg:
let us say, continous data resembles 1,2,3........so on to 1000.
i have stored this data as follows
segment input data into smaller units of length 20
1,2,3,....20  (seg-1)
21,22,,,,40  (seg-2)
981,982,,,1000   (seg- 50)
all these segments are written to tfrecords as serialized sequence examples.
while training im reading the tfrecord file of fixed batch size (say 3)
RNN state S is of shape (batch size x cell size)
State     Batch -1                    New State
0          1,2,3..20                      S1
0          21,22,...40                   S2
0          41,42...60                    S3
State     Batch -2                   New State
S1         61,62,...80                       S4
S2          81,81...100                     S5
S3         101,102,...120                 S6
Question: is state S is correct representation of continous data? As S1,S2,S3 are representing states for different batch streams, im having a slight confusion if i need to ever use batching here or just always use batch-size of 1 with a single state
Question: Are RNN models mostly suitable for smaller length sequences rather learning patterns in continous streams? though i dont believe so, but most of the documentation are talking around mini batches with state resets, im trying to get a basic idea where RNN are perfect fit for.
Question: In what scenarios do we exactly carry forward state from one batch to other


Cannot read properties of null (reading 'data')

Environment

Operating System: Windows_NT
Node Version:     v18.14.0
Nuxt Version:     3.2.0
Nitro Version:    2.2.1
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      app, modules, components, build, googleFonts, headlessui, runtimeConfig
Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Build Modules:    -

Reproduction
app/router.options.ts
import type { RouterConfig } from "@nuxt/schema";
export default <RouterConfig>{
  routes: () => [
    {
      name: "repair",
      path: "/:brand/repair/",
      component: () => import("~/pages/repair/index.vue"),
    },
    {
      name: "repair-model",
      path: "/:brand/repair/model/:model/",
      component: () => import("~/pages/repair/model.vue"),
    },
  ],
};

pages/repair/index.vue
<template>
   <div>
    <SectionA :data="getSectionData('hero')" />
    <SectionB :data="getSectionData('prices')" />
  </div>
</template>

<script setup>
const brand = useBrand();

const { data, error } = await useFetch("/api/v1/repair", {
  params: { brand },
});

const getSectionData = (sectionId) => {
  return data.value.data.blocks.find((block) => block.id === sectionId);
};
</script>

server/api/v1/repair/index.get.js
import hero from<EMAIL_ADDRESS>import prices from<EMAIL_ADDRESS>
export default defineEventHandler(async (event) => {
  const { brand } = getQuery(event);

  /* ... use brand ... */

  return {
    data: {
      blocks: [
        {
          id: "hero",
          title: hero.title,
          data: hero.data,
        },
        {
          id: "prices",
          title: prices.title,
          data: prices.data,
        },
      ],
    },
  };
});

Describe the bug
After update page i get error and strange behavior of data - caching. After refresh page i get old data. Helps - restarting the project, but the error with extracting data remains.
Additional context
runtime-core.esm-bundler.js:40 [Vue warn]: Unhandled error during execution of render function
  at <Index onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > >
  at <RouteProvider key="/tesla/repair/" routeProps= {Component: {…}, route: {…}} pageKey="/tesla/repair/"  ... >
  at <FragmentWrapper >
  at <RouterView name=undefined route=undefined >
  at <NuxtPage>
  at <App key=2 >
  at <NuxtRoot>

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'data')
    at Proxy.getSectionData (index.vue:89:1)
    at Proxy._sfc_render (index.vue:96:1)
    at renderComponentRoot (runtime-core.esm-bundler.js:914:44)
    at hydrateSubTree (runtime-core.esm-bundler.js:5621:44)
    at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js:5642:25)
    at ReactiveEffect.run (reactivity.esm-bundler.js:190:25)
    at instance.update (runtime-core.esm-bundler.js:5763:56)
    at setupRenderEffect (runtime-core.esm-bundler.js:5777:9)
    at runtime-core.esm-bundler.js:1506:17

Logs
No response

Would you provide a reproduction? 🙏

Sure - https://stackblitz.com/edit/github-fcgytc?file=pages%2Frepair%2Findex.vue

What do you need to do to trigger the error?

I have the same problem. The data of asycnData will be null after the request is completed.
Appears when requested by the client
add some code
async function test() {
  const { data, error } = await useFetch('/api/v1/repair', {
    params: { brand },
  });
  console.log('data', data);
}

if (typeof window !== 'undefined') {
  test();
}

Problems with caching and not updated without reload project - https://www.loom.com/share/7f1317bb841c4457883d9e4de2d1799e
On stackblitz or codesandbox no such behavior.
StackBlitz npx nuxi info
------------------------------
- Operating System: `Linux`
- Node Version:     `v16.14.2`
- Nuxt Version:     `3.2.0`
- Nitro Version:    `2.2.1`
- Package Manager<EMAIL_ADDRESS>- Builder:          `vite`
- User Config:      `-`
- Runtime Modules:  `-`
- Build Modules:    `-`
------------------------------

local environment npx nuxi info
------------------------------
- Operating System: `Windows_NT`
- Node Version:     `v18.14.0`
- Nuxt Version:     `3.2.0`
- Nitro Version:    `2.2.1`
- Package Manager<EMAIL_ADDRESS>- Builder:          `vite`
- User Config:      `-`
- Runtime Modules:  `-`
- Build Modules:    `-`
------------------------------

I have the same problem. The data of asycnData will be null after the request is completed. Appears when requested by the client
add some code
async function test() {
  const { data, error } = await useFetch('/api/v1/repair', {
    params: { brand },
  });
  console.log('data', data);
}

if (typeof window !== 'undefined') {
  test();
}

This is different. You don't await test() here.

the issue here is that you are triggering the fetch for the first time on the client. To avoid a hydration mismatch, on initial load, we defer client-only calls of useFetch (like this one) to after the component has mounted. This is the correct behaviour and in this case you should check if data is null before accessing it.

This problem is observed only on the local machine, there is no such behavior on Stackblitz. Perhaps it is related to OS Windows.
A similar problem is seen in - #18964

so you're saying that cloning the stackblitz on windows exhibits the bug?

@danielroe, yes

I think this is the same issue as https://github.com/nuxt/nuxt/issues/18635. Let's track there.

I 've the same problem using node v18.17.1 in ubuntu 22.04, but using node v16.17.0 works fine

i have too...
check this link
https://doctorjs.ir/article/fastApi-websocket-send-recieve-file


min_kak It does not work properly

Even though I had claim and set min_kak to 681, a character with value 876 appeared and the bot simply ignored it, the funny thing is that sometimes it works, but only if the bot was recently opened.
I noticed that the bot sometimes after a while it stops working, it counts the rolls, but does not take any action

Did you confirm that it was within your claim cycle cause if it's not within your claim window then it will not snipe

no response gonna close issue


Question NOT ISSUE!

Hello people who made this fantastic package,
I'm a student working with your Aruco lib. I'm using it with ROS and I have 2 questions for you:

Why are the Aruco giving more error when the Aruco is straight to the camera? When the Aruco is in an angle I seem to get better results, there is less error in the poses.

I tried the Aruco with Gazebo and I was getting really high error in the poses, now that I'm working with actual robots and with Kinects and I get almost no error in the measurements of the Aruco poses. They are almost perfect, like 1 degrees of error, comparing to the almost ~10degree error in the Gazebo simulator. Any ideas why this happens?

Great job with the Aruco project was so helpful, thx you so much.

Hi @End-Effector, as you can see, we just developed a ROS wrapper of ArUco system.
I am not sure if your first question has any relation with this issue or not, but apparently the authors of ArUco library could provide satisfying answers.


Inexact Newton Steps in Levenberg Marquardt

See the last part of http://ceres-solver.org/nnls_solving.html#levenberg-marquardt. This is basically already there and this is mostly a internal solver selection mechanism:

Add a forcing function to LM
Add a newton_step = Val(:exact) / Val(:inexact) option. Set it to nothing by default
Default to exact for factorization, else inexact
Inexact Newton is just setting the tolerance correctly in dolinsolve.

https://www.sciencedirect.com/science/article/pii/S0377042705007958

With the redesign this is very easy to do now, we need to add forcing terms to the newton-style descent algorithms and all algorithms will be able to use it


2000 limit on replies

Ultimately we could attach the full result but for now let's just truncate

@ccoVeille was getting
{"ts":1723845161.081822,"level":"err","r":32,"file":"bot.go","line":286,"msg":"error","err":"HTTP 400 Bad Request, {\"message\": \"Invalid Form Body\", \"code\": 50035, \"errors\": {\"content\": {\"_errors\": [{\"code\": \"BASE_TYPE_MAX_LENGTH\", \"message\": \"Must be 2000 or fewer in length.\"}]}}}"}

so yeah 2000 is kinda "magic"


TA client questions to TA service

For linked entities, what is the purpose of entity.id? how is entity.name != entity.id?
RecognizeLikedEntity => what are other name options we could use that will reflect what the service is doing?

InferLikedEntities
RecognizeLinksEntities
...

In Analyze sentiment, what are the scores reflecting? confidence level? Do we need to show them? How will a user consume/manage this information?
Could we expand in the difference between Key Phrase and Entity? What are user scenarios for Key Phrase? What are examples we can provide in our docs?
When there is an error because the document exceeds the character limit, could the service return the max amount of characters supported to help the user diagnose and adjust?
Are there plans to have an endpoint that will support multiple calls to the same input? (omnibus)
#8946

Can the sentiment of a sentence be mixed? Currently only document allows mixed.

More questions:

Default language? Could we enforce it in the SDK?
Is the readme objective to show single operation? or batch operation

When calling AnalyzeSentiment, what happens if the service can't tell the sentiment of the sentence?
undefined? error? neutral?

WIP
Specific questions:

For linked entities, what is the purpose of entity.id? how is entity.name != entity.id?
Could we expand in the difference between Key Phrase and Entity? What are user scenarios for Key Phrase? What are examples we can provide in our docs?
When there is an error because the document exceeds the character limit, could the service return the max amount of characters supported to help the user diagnose and adjust?
Can the sentiment of a sentence be mixed? Currently only document allows mixed.
When calling AnalyzeSentiment, what happens if the service can't tell the sentiment of the sentence?
undefined? error? neutral?

Discussion (might include from section above in we need more detail after the answer):

RecognizeLikedEntity => what are other name options we could use that will reflect what the service is doing?

InferLikedEntities
RecognizeLinksEntities
...

In Analyze sentiment, what are the scores reflecting? confidence level? Do we need to show them? - - How will a user consume/manage this information?
Default language? Could we enforce it in the SDK?
Consider using explicit "none" string over empty string for not setting country hint / language
Is the readme objective to show single operation? or batch operation

Should we consider making the user explicitly pass "none" instead of the empty string "" to the service in the case that they do not want to use the default country hint? This can be handled in the SDK, but it might make sense to have the service also adopt this. Issue here

Email and meeting invite sent


test.py hangs up when model is initializing

please see the picture above, code hangs up on line 16

我最近也在跑这个代码 可以和您交流一下吗？

please see the picture above, code hangs up on line 16

The same problem, the code does not work

I have successfully run the code on the Linux system, but failed on the windows system. The reason for the failure is the same as you. It is recommended to reconfigure the environment on the Linux system. Good luck!
------------------ 原始邮件 ------------------
发件人: @.>;
发送时间: 2022年4月2日(星期六) 下午5:58
收件人: @.>;
抄送: "Erwin Schrodinger’s @.>; @.>;
主题: Re: [megvii-research/CREStereo] test.py hangs up when model is initializing (Issue #6)
please see the picture above, code hangs up on line 16
The same problem, the code does not work
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

I failed with cuda 11.3 and then succeded with cuda 10.2

凯哥威武

凯哥威武

你是？手动捂脸