cupy cannot create an object array like numpy.

Description
import numpy as np
import cupy as cp

a = np.zeros((3, 3), dtype=object)
b = cp.zeros((3, 3), dtype=object)
c = np.ones((2, 2))
d = cp.ones((2, 2))

a[0][0] = c
b[0][0] = d

ValueError                                Traceback (most recent call last)
Cell In[5], line 10
7 d = cp.ones((2, 2))
9 a[0][0] = c
---> 10 b[0][0] = d
File cupy/_core/core.pyx:1590, in cupy._core.core._ndarray_base.setitem()
File cupy/_core/_routines_indexing.pyx:52, in cupy._core._routines_indexing._ndarray_setitem()
File cupy/_core/_routines_indexing.pyx:966, in cupy._core._routines_indexing._scatter_op()
File cupy/_core/_kernel.pyx:1291, in cupy._core._kernel.ufunc.call()
File cupy/_core/_kernel.pyx:653, in cupy._core._kernel._get_out_args_from_optionals()
ValueError: Out shape is mismatched

Is there any other way to achieve the above array like numpy?
To Reproduce
# Write the code here
import numpy as np
import cupy as cp

a = np.zeros((3, 3), dtype=object)
b = cp.zeros((3, 3), dtype=object)
c = np.ones((2, 2))
d = cp.ones((2, 2))

a[0][0] = c
b[0][0] = d

Installation
Wheel (pip install cupy-***)
Environment
# Paste the output here
OS                           : Linux-5.4.0-99-generic-x86_64-with-glibc2.17
Python Version               : 3.8.13
CuPy Version                 : 11.6.0
CuPy Platform                : NVIDIA CUDA
NumPy Version                : 1.23.3
SciPy Version                : 1.9.3
Cython Build Version         : 0.29.32
Cython Runtime Version       : None
CUDA Root                    : /usr/local/cuda
nvcc PATH                    : /usr/local/cuda/bin/nvcc
CUDA Build Version           : 11000
CUDA Driver Version          : 11040
CUDA Runtime Version         : 11030
cuBLAS Version               : (available)
cuFFT Version                : 10402
cuRAND Version               : 10204
cuSOLVER Version             : (10, 6, 0)
cuSPARSE Version             : (available)
NVRTC Version                : (11, 0)
Thrust Version               : 100909
CUB Build Version            : 100909
Jitify Build Version         : 4a37de0
cuDNN Build Version          : None
cuDNN Version                : None
NCCL Build Version           : None
NCCL Runtime Version         : None
cuTENSOR Version             : None
cuSPARSELt Build Version     : None
Device 0 Name                : NVIDIA RTX A5000
Device 0 Compute Capability  : 86
Device 0 PCI Bus ID          : 0000:4F:00.0

Additional Information
No response

CuPy doesn't currently support structured/string/object datatypes

Thanks very much for your reply. Is there any other way to achieve the following code?
import cupy as cp

a = cp.zeros((3, 3))
b = cp.ones((2, 2))
a[0][0] = b

ValueError: Out shape is mismatched

That is not possible; the shape of a[0][0] is (1,), so you can't assign an array with (2,2) elements there since the memory layout doesn't match.

Thanks very much. I see.


Update mingw.patch

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

should have used a fork.
once tests are done:

move branch to fork
delete this branch
create a new PR


Network voice url not working

I upload the voice record to the server and then try to play from the URL but it is not playing. it shows me this error:  Caused by: com.google.android.exoplayer2.upstream.FileDataSource$FileDataSourceException: java.io.FileNotFoundException: /assets/uploads/08-08-23-12-46-471149257855233822797.m4a: open failed: ENOENT (No such file or directory)
my voice URL is : https://mappsdev.turkmobil.com.tr/assets/uploads/08-08-23-12-46-471149257855233822797.m4a

Hi @RzTutul, Currently, flutter_chatview only support local audio file.


Ability to use custom buttons to scroll to specific carousel elements

Is your feature request related to a problem? Please describe.
To my regret, I was forced into using flowbite for a project, and I consistently seem to run into limitations and erroneous or lacking documentation.
E.g. The documentation states that I can change animations, by adding tailwind classes to my Carusel items. But, when I try it out, the animation still appears when using custom triggers.
Describe the solution you'd like
I'd very much like to have it documented how to tap into existing flowbite components. To an extent I have managed to "hack" it with come nasty custom JavaScript, but it is just not sustainable. I really hope this is not because it cannot be done, but rather a matter of missing documentation.
The JavaScript documentation that exist shows us an unnecessarily bulky way to init our own component, but this is not what we want. We need to tap into existing components that are automatically initialized via data attributes.
Describe alternatives you've considered
The following hack will at least change the active image, although the animation then breaks if the user skips an image:
document.addEventListener("DOMContentLoaded", (event) => {
	    const lightBoxContent = document.querySelector('.image-lightbox-content');
	    if (!lightBoxContent) { return; }
	    // Fetch all images from the gallery for the lightbox
	    let imagesInGallery = document.querySelectorAll('.lightbox-item img');
	    const imagesInLightBox = document.querySelectorAll('#light-box-slider .image-lightbox-content .slider-item');
	    // Note. We need to add our own click event handler in order to know which element was used to open the modal
	    document.body.addEventListener('click', (event) => {
	        imagesInLightBox.forEach((sliderItem) => {
	            // If the media ID matched the one that was clicked
	            if (event?.target?.id && event.target.id == sliderItem.querySelector('img').id) {
	                sliderItem.setAttribute('data-carousel-item', 'active');
	                setTimeout(()=> {
	                    initCarousels();
	                }, 100);
	            } else {
	                    sliderItem.setAttribute('data-carousel-item', false);
	            }
		});
	    });
});

Hey @jacobseated,
Thanks for opening up the issue.
You can use custom buttons to slide through the carousel by adding the data-carousel-prev and data-carousel-next data attributes to the button elements. You can even see such an example in our blocks collection from here:
https://flowbite.com/blocks/marketing/testimonial/#carousel-slider
Cheers,
Zoltan

Thanks @zoltanszogyenyi, but I already tried experimenting with data properties, as they are demonstrated in the free documentation. The page you linked also seem to be protected behind a paywall?
Based on my experimentation with things like data-carousel-slide-to, I deduced the location in the DOM to be specific. E.g. A custom button has to be a descendant of the flowbite component I am trying to control? When placed elsewhere in a document, flowbite seem to have no way to identify which component that is intended to be controlled by the custom button via data property alone, and indeed, it does not even seem to register the button is there.
Further more, you cannot simply set data-carousel-item="active" on a Carousel dynamically via JavaScript, and then have it "slide to an item" in the list? If you could, then i would have my solution though.
It works only when the item set to "active" is a neighbor to the previously active item – if even a single item is jumped, then the animation is broken, and it will "flicker" instead of sliding.
Unless, I am missing something, there seem to be no way to specify an ID of a component.
Reading some of the testimonials, it seems like everyone is having a super easy time; I have spent probably a few days "hacking" at it, and still no proper solution. I am very determined to learn to do things the proper way, however, so maybe the issue is that I should simply initialize the components we need to customize manually, as I did with another component. It's just that it seems a bit excessive having to do that, and I was hoping for a simpler approach.


Update Material Design Icons to v1.6.50

The test fails: https://travis-ci.org/suda/tool-bar/jobs/133624745#L229
Can you explain why it's failing.

The icon 'material-ui' in the old file is /f449, but in the update file is /f357

Yes, please fix the specs if you with certainty can say that the code for the same icon is changed.

This PR has passed the checks

Thanks!


ltfs_ordered_copy LTFS check error

When I try running ltfs_ordered_copy to copy files to an LTFS formatted tape I get the following error:
Check destination:startswith first arg must be bytes or a tuple of bytes, not str

Copying to non-LTFS locations seems to work as expected.
If I print the value that xattr returns from an LTFS tape I get b'LTFS LE'. Should xattr be returning a string here? When running just the code related to generating and checking sig, I don't get an error if I convert sig to a string before checking if it starts with "LTFS" or if I change if sig.startswith("LTFS"): to if sig.startswith(b"LTFS"):.
I'm running the <IP_ADDRESS> release version on Fedora 36.

Thank you for your info. I confirmed.


acs-engine docker images not being published

Docker images for acs-engine should be getting published to https://hub.docker.com/r/microsoft/acs-engine/ but this is not happening. There is only a single image tagged "latest" from 9 months ago, which corresponds to acs-engine 0.8.0.
Please push a 0.16.X image, and ideally set up CI to automatically push images when releases happen.
Thank you

@CecileRobertMichon
It's been almost two months on this, and it's seriously a 5-10 minute fix. Can someone please upload a newer version of this container?

@apeschel I'll make sure this gets done sometime this week. The issue got lost in the pile of new issues, sorry about that!

@apeschel just pushed the image for v0.19.1, let me know if you run into any issues. I'll work on setting up an automated build.

@CecileRobertMichon I appreciate it very much, thank you!

@CecileRobertMichon Unfortunately, the Docker image doesn't seem to be correctly formed: it's has a windows binary on a Linux base, and doesn't seem to use the Dockerfile in the repo.
There are instructions on how to build the image in the releases directory:
https://github.com/Azure/acs-engine/blob/master/releases/README.Dockerfile.md
Is seems like you're using Windows, based on the Docker image that was published, so the commands to run would be as follows:
PS> cd releases
PS> $VERSION="0.19.1"
PS> docker build --no-cache --build-arg BUILD_DATE=$(Get-Date((Get-Date).ToUniversalTime()) -UFormat "%Y-%m-%dT%H:%M:%SZ") --build-arg ACSENGINE_VERSION="$VERSION" -t microsoft/acs-engine:$VERSION --file .\Dockerfile.linux .

@apeschel sorry for the delay I was off, I'll fix it today


CF error in node-pool with EFS

I'm trying to spin up a node-pool with EFS enabled and I'm getting a CF validation error:
Error: invalid cloudformation stack: ValidationError: Template format error: Unresolved resource dependencies [SecurityGroupMountTarget] in the Resources block of the template
When I look into the node-pool rendered stack-template.json there is:
    {{if $.ElasticFileSystemID}}
    ,
    "{{$subnetLogicalName}}MountTarget": {
      "Properties" : {
        "FileSystemId": "{{$.ElasticFileSystemID}}",
        "SubnetId": { "Ref": "{{$subnetLogicalName}}" },
        "SecurityGroups": [ { "Ref": "    {{if $.ElasticFileSystemID}}
    ,
    "{{$subnetLogicalName}}MountTarget": {
      "Properties" : {
        "FileSystemId": "{{$.ElasticFileSystemID}}",
        "SubnetId": { "Ref": "{{$subnetLogicalName}}" },
        "SecurityGroups": [ { "Ref": "SecurityGroupMountTarget" } ]
      },
      "Type" : "AWS::EFS::MountTarget"
    }
    {{end}}
" } ]
      },
      "Type" : "AWS::EFS::MountTarget"
    }
    {{end}}

with no definition available for the SecurityGroupMountTarget

Thanks for the feedback! Seems to have missed that while implementing node pools.
In the meantime, copy-and-pasting the def for SecurityGroupMountTarget from a base cluster's stack-template.json into the node pools stack-template.json would work.

@mumoshu any thoughts on if we can see this fixed in the next rc? Thanks!

Thanks for bringing this up @flah00 but sorry, no it isn't fixed/planned yet because I'm currently working on a big PR to address another users' feature request.
So, in the meantime, please try the workaround as described in my prev comment and/or submit a PR :bow:

Copying and pasting the SecurityGroupMountTarget block brought more hassle than it was worth, IMHO. There was a duplication of the target, because the controller and node pools were defining the same resource. Also, management of the worker security group would have to be moved from the main cluster.yaml, which leads to its own set of problems.
Here's what I did to make it work

Set elasticFileSystemId in cluster.yaml
kube-aws up
kube-aws node-pools init --node-pool-name NAME
Update node-pools/*/cluster.yaml

Set workerSecurityGroupIds to k8s-sg-worker security group id
Set kubernetesVersion to v1.5.1_coreos.0 (defaults to 1.4.5)
Set elasticFileSystemId

kube-aws node-pools render stack --node-pool-name NAME
Update node-pools/*/stack-template.json

Remove the {{if $.ElasticFileSystemID}} block

You should be able to kube-aws node-pools up ...

Hi @mgilbir and @flah00, long time no see!
FYI, this is fixed since v0.9.4 via #315.
All the necessary security groups created and managed by kube-aws is now imported to each node pool.
You no longer need to modify stack-template.json per node-pool basis.

I'm closing this as resolved but please feel free to reopen if necessary. Thanks for your patience 🍵


Flaky test test_with_batch_reader[2] ?

Observed this failure when building #444 444
=================================== FAILURES ===================================
__________________________ test_with_batch_reader[2] ___________________________
scalar_dataset = synthetic_dataset(url='file:///tmp/pytest-of-root/pytest-43/data2', data=[{'st...'string2': u'world_99', 'id': 99}], path='/tmp/pytest-of-root/pytest-43/data2')
shuffling_queue_capacity = 2
    @pytest.mark.parametrize('shuffling_queue_capacity', [0, 2, 10, 1000])
    def test_with_batch_reader(scalar_dataset, shuffling_queue_capacity):
        """See if we are getting correct batch sizes when using DataLoader with make_batch_reader"""
        pytorch_compatible_fields = [k for k, v in scalar_dataset.data[0].items()
                                     if not isinstance(v, (np.datetime64, np.unicode_))]
        with DataLoader(make_batch_reader(scalar_dataset.url, schema_fields=pytorch_compatible_fields),
                        batch_size=3, shuffling_queue_capacity=shuffling_queue_capacity) as loader:
            batches = list(loader)
>           assert len(scalar_dataset.data) == sum(batch['id'].shape[0] for batch in batches)
E           assert 100 == 0
E             -100
E             +0
petastorm/tests/test_pytorch_dataloader.py:172: AssertionError
----------------------------- Captured stderr call ------------------

I'm not sure if the problem is with the specific test or perhaps with some intermittent disk access problems with Travis yesterday. Even viewing the Travis logs seems a bit flaky - though perhaps I'm just misreading things.
The build failed twice in a row yesterday - the second failure is listed above. I'm afraid that I didn't save the first, but I vaguely recall that the log indicated that it failed trying to install some packages. Interestingly, it was the same environment that failed both times - Python 2.7, PyArrow 15 and TF 1.12.
However, today when I look at the logs for 1612 and 1613 (at https://travis-ci.com/uber/petastorm/pull_requests), they appear to show completely different errors than they showed yesterday. E.g. Instead of the test_pytorch_dataloader error listed above for 1613, today it is showing a timeout failure downloading mnist. See below.
Note that the build ran successfully this morning, after I reverted the comment change I made yesterday to trigger the second build.
=================================== FAILURES ===================================

_____________________________ test_mnist_download ______________________________

tmpdir = local('/tmp/pytest-of-root/pytest-43/test_mnist_download0')

    def test_mnist_download(tmpdir):

        """ Demonstrates that MNIST download works, using only the 'test' data.

        Args:

            url (str): URL to download file from

            root (str): Directory to place downloaded file in

            filename (str, optional): Name to save the file under. If None, use the basename of the URL

            md5 (str, optional): MD5 checksum of the download. If None, do not check

        """

        from six.moves import urllib

        root = os.path.expanduser(root)

        if not filename:

            filename = os.path.basename(url)

        fpath = os.path.join(root, filename)

        makedir_exist_ok(root)

        # downloads file

        if check_integrity(fpath, md5):

            print('Using downloaded and verified file: ' + fpath)

        else:

            try:

                print('Downloading ' + url + ' to ' + fpath)

                urllib.request.urlretrieve(

                    url, fpath,

                    reporthook=gen_bar_updater()

                )

            except (urllib.error.URLError, IOError) as e:

                if url[:5] == 'https':

                    url = url.replace('https:', 'http:')

                    print('Failed download. Trying https -> http instead.'

                          ' Downloading ' + url + ' to ' + fpath)

                    urllib.request.urlretrieve(

                        url, fpath,

                        reporthook=gen_bar_updater()

                    )

                else:

>                   raise e

E                   IOError: [Errno socket error] [Errno 110] Connection timed out

/petastorm_venv2.7/local/lib/python2.7/site-packages/torchvision/datasets/utils.py:96: IOError

----------------------------- Captured stdout call -----------------------------

Downloading http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz to /tmp/pytest-of-root/pytest-43/test_mnist_download0/data/MNIST/raw/train-images-idx3-ubyte.gz

Extracting /tmp/pytest-of-root/pytest-43/test_mnist_download0/data/MNIST/raw/train-images-idx3-ubyte.gz to /tmp/pytest-of-root/pytest-43/test_mnist_download0/data/MNIST/raw

Downloading http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz to /tmp/pytest-of-root/pytest-43/test_mnist_download0/data/MNIST/raw/train-labels-idx1-ubyte.gz

Extracting /tmp/pytest-of-root/pytest-43/test_mnist_download0/data/MNIST/raw/train-labels-idx1-ubyte.gz to /tmp/pytest-of-root/pytest-43/test_mnist_download0/data/MNIST/raw

Downloading http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz to /tmp/pytest-of-root/pytest-43/test_mnist_download0/data/MNIST/raw/t10k-images-idx3-ubyte.gz

----------------------------- Captured stderr call -----------------------------

I've noticed another possible discrepancy. I grabbed a copy of the raw log for Travis job 1633.1 (PR #478) on Tuesday (Jan 28), when it showed a failure in test_end_to_end.py::test_simple_read_with_disk_cache for the first configuration. When I looked at that build today it no longer showed an error. However, when I compared the raw logs I found that the travis hostname and start and end times in the two files are different.
Is it possible that the same job was rerun after it failed the first time?

Never saw automatic reruns, but if I see something that looks like an intermittent failure, I am likely to trigger a manual rerun of the build. Do you think that could be the case?
Note that I updated the CI image yesterday to upgrade pandas to 1.0 and grab newer versions of everything.

I hit a similar problem last night with PR #445. It failed in Travis job 1688.2. The log indicated that it failed to create the petastorm_ci container. This morning Travis is showing that build 1688 was successful, even though I did not trigger a rebuild last night.
Could Travis be automatically retrying builds that it recognizes as failing because of issues on their side? The timestamps in the raw logs for 1688.2 from last night and this morning show that the successful run started almost 2 hours after the first attempt failed.
With your permission, I would like to ask of this question of Travis, including both sets of logs and also Petastorm's travis config file.
(Note that I did trigger a rebuild this morning, as I didn't realize that my previous attempt had magically gone from failure to success while I slept. The first attempt this morning failed due to an mnist download failure, while the second rebuild this morning succeeded.)

Haha! I saw this failure yesterday and attributed it to travis network flakiness :)  I restarted the build while you were sleeping so we can land the PR :)


Fix mui-palette preview cosmetic issues

palette-mui 1.3.0-dev.2
Not visible on a preview in palette:

Divider,
Progress (linear),
Skeleton (circular, rectangular)
Box, Container (don't kow how to make it visible)

Additional notes:

Data Display>Chip. Variant name mistake:

       <Variant name="filled">
          <Chip label="Chip Outlined" variant="outlined" />
        </Variant>

Layout>Grid. Maybe replace box on paper inside grid cells to make cells more visible? Now there is no borders:

Surfaces>Paper. Too many variaties. Maybe leave only 0, 8, 24 and call it like low, medium, high, or smth else

Table is absent in palette

verified


Build error when KlakSpout folder is moved

Hello,
I'm trying to build my project with the latest KlakSpout release on Unity 2018.2.8f1. If I let the Klak folder directly under Assets the build succeed. But if I moved it under a sub-folder I get this error : error CS0009: Metadata file `C:\Projets\Test\KlakSpout\MyProject\Assets/Plugins/Klak/Spout/Plugin/x64/KlakSpout.dll' does not contain valid metadata. The error stays if I move the folder back to its original location, I have to delete and re-import it again to get a successful build.
Thank you for your help!
Nolwenn

I haven't tried moving the plugin folder, but I think you have to close Unity Editor before moving it because the dll file can't be moved without terminating the application process. Did you move the folder while  Editor is running?

Yes, I moved the folder inside Unity Editor. But I've just tried moving it in Windows explorer with Unity closed, and the result is still the same.

Okay. It reproduced on my side. I'm not sure why but it's resolved after closing and relaunching the Editor. Could you try it? I suspect that there is an issue in the build process of Unity Editor.

Hello, yes same on my side, the build works if I relaunch the Editor.

Thanks for clarification. I filed a bug report about it as an Editor issue.
Please use the workaround (relaunching Editor) until the issue gets fixed.

I'm closing this ticket. Please feel free to reopen for further questions.


[REEF-901] Add GetFileInfo/GetFileStatus API to IFileSystem

This addressed the issue by

Creating the new API
Adding trivial implementation to LocalFileSystem

JIRA:
REEF-901

@anupam128 This looks good, just needs some additional documentation. Thanks!

Thanks @afchung! I have made the changes.

RunSimpleEventHandlerOnLocalRuntime fails on my machine, but it is unrelated to your changes, since I've tested on a clean repository. Merged. Thanks @anupam128!


Can't select another function for Array in Visual Script. Functions suggestion box is empty

Godot version:

3.3
OS/device including version:

macOS
Issue description:

Tried to change Array.front() to Array.back()
Saw emptiness in the suggestion window
It seems this one affects Array. Other types are not affected for some reason...
But I tried only Object, Node, Node2D.
Steps to reproduce:

Create node Array.front()
Try to change function in the node inspector
See empty suggestions, no way to change

Minimal reproduction project:

Still active after merging https://github.com/godotengine/godot/pull/56252


Not able to visualize protein structures which are present in my local system (in my computer) into my own html page using molstar.

Dear Sir/ma'am,
I am trying to plugin molstar into my website as a visualization tool to visualize some of the structures I have modeled on my own. When using Plugin parameters (options), i.e customData to get data from my computer and visualize it on my website, I am getting this error "GET /home/supremeleader/visualization/A0A0A0CIP3.cif" Error (404): "Not found." I have just learned javascript and website development. Can you please help me with this issue so I can visualize the modeled protein on my website using molstar. Thank you in advance.
I have been using this script from documentation to visualize it:
var options = {
customData:{url:'/home/supremeleader/visualization/A0A0A0CIP3.cif',format:'cif'}}
error: "GET /home/supremeleader/visualization/A0A0A0CIP3.cif" Error (404): "Not found"
Please let me know which option I should use and any format syntax to visualize the protein in my system in my database.
Prashant Upadhyay
PhD
Indian Institute of Technology Kanpur

Duplicate - already discussed here - https://github.com/molstar/molstar/issues/551


Updated tests for SE-0036 and SE-0066

SE-0066 has already been implemented in swift and currently swift-pm tests are currently failing.
The pull request for SE-0036 is pending, tests for it are failing without this update.
Both changes are backwards-compatible and do not require any further implementation in swift.

I don't see tests failing on TOT due to 0066, although I do see a bunch of warnings. However, this PR seems to have missed a few of those cases, for example:
swiftpm/Sources/POSIX/popen.swift:22:122: warning: single argument function types require parentheses
public func popen(_ arguments: [String], redirectStandardError: Bool = false, environment: [String: String] = [:], body: String -> Void) throws
                                                                                ^~~~~~
                                                                                (     )
Link POSIX
Compile Swift Module 'Utility' (14 sources)
Link PackageDescription
swiftpm/Sources/Utility/Verbosity.swift:92:122: warning: single argument function types require parentheses
public func popen(_ arguments: [String], redirectStandardError: Bool = false, environment: [String: String] = [:], body: String -> Void) throws {
                                                                                ^~~~~~
                                                                                (     )
swiftpm/Sources/Utility/Verbosity.swift:92:122: warning: single argument function types require parentheses
public func popen(_ arguments: [String], redirectStandardError: Bool = false, environment: [String: String] = [:], body: String -> Void) throws {
                                                                                ^~~~~~
                                                                                (     )
swiftpm/Sources/Utility/Verbosity.swift:92:122: warning: single argument function types require parentheses
public func popen(_ arguments: [String], redirectStandardError: Bool = false, environment: [String: String] = [:], body: String -> Void) throws {
                                                                                ^~~~~~
                                                                                (     )

@swift-ci please test and merge

Fixed the others in 3db9452.


Generated gems should have dependency on sass if there are scss files.

.. because otherwise they won't compile.

It's probably better if you add you precompiler to Gemfile manually. We don't want to prefer one solution.


Release

This pull request is included in version 1.1.0

This pull request is included in version 1.1.0

This pull request is included in version 1.1.0

This pull request is included in version 1.1.0


odoo 12 multisession POS freezes on Sync Orders

Hi i installed odoo pos_multi_session module on odoo 12.
I already changed to "workers = 1"
and my sync server is " //localhost:8080"
but when loading the POS it just stays on Sync Orders  for ever
what am i missing?

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Is the console showing an error? (F12 for developer tools)

@ilmir-k now that I see the instructions, it might be confusing that the syn server shown is //localhost:8080 which won't work based on the nginx configuration on the same instructions. https://github.com/it-projects-llc/pos-addons/blob/11.0/pos_multi_session_sync/doc/index.rst
It would be nice to also explain to newcomers that the sync server has to be contacted from the local (POS) network, not from the Odoo (server) network.

Hi @gustavovalverde,
Am a newcomer, Can you please provide the details regarding Sync Server, the instruction are confusing for me.

is Sync server is an instance of Odoo?
Where to setup the Sync server : Can it be along with Odoo in cloud (same server) OR it should be in local?
In the documentation : https://github.com/it-projects-llc/pos-addons/blob/11.0/pos_multi_session_sync/doc/index.rst
Nginx conf of Sync server showing Odoo running on 8079 and 8082 (long-polling), But in main_server UI config of //localhost:8080
Is that correct?

All your POS modules are great!! I had setup the POS in Odoo11, without any seperate sync server (main_server worker=2, as report printing requires workers>1) with 1posbox from raspberry pi, am facing some issues:

Sometimes Sync are conflicting, after that any of the kitchen/receipt printers are not printing.
is it required to have a separate sync server in this case?

Can you provide some details regarding the Sync Server

@gustavovalverde
Yes, right. Thanks for reporting this, I'll make the changes in the instruction

Hello, I want to ask if there is any information or support to correctly configure the pos_multi_session_restaurant module.
I have followed the module guides, I have read some information that I have found on the internet, but I have not been able to make the module work in version 12.
I install and configure without problem, but when I open the point of sale I do not see the floors or tables configured.
Please help me a little bit about it. Thank you very much


heroku cedar with latest tag not available through kitematic

The docker image is searchable and allows me to select create. But, when I select it, I'm informed that no heroku cedar with the latest tag is available

@mordtech This is the correct behavior as the heroku cedar image does not have the latest tag.
To choose a tag, please click on " ... " inside kitematic, and select "14" as that is the only tag heroku has provided.
Hope this helps. Closing this issue for now. Please reopen this if you have more related questions!
Thanks!


MTU detection not working

When setting the MTU on a tap device Hermit does not use this MTU, but always falls back to using a value of 1500.
This code should detect the correct MTU but it seems to not work.
Steps to reproduce:
ip tuntap add tap100 mode tap
ip addr add <IP_ADDRESS>/24 broadcast <IP_ADDRESS> dev tap100
ip link set dev tap100 up
echo 1 > /proc/sys/net/ipv4/conf/tap100/proxy_arp
ifconfig tap100 mtu 9000

Run Hermit
/usr/libexec/qemu-kvm -cpu qemu64,apic,fsgsbase,rdtscp,xsave,xsaveopt,fxsr,rdrand -display none -smp 1 -m 3G -serial stdio -netdev tap,id=net0,ifname=tap100,script=no,downscript=no,vhost=on -device virtio-net-pci,netdev=net0,disable-legacy=on -kernel rusty-loader-x86_64 -kernel rusty-loader-x86_64 -initrd ./hermit-bin

Output
...
[0][INFO] HermitCore is running on common system!
[0][INFO] Found virtio network device with device id 0x1041
[0][WARN] Currently only mapping of 64 bit BAR's is supported!
[0][WARN] Currently only mapping of 64 bit BAR's is supported!
[0][INFO] Non Virtio PCI capability with id 11 found. And NOT used.
[0][ERROR] Found virtio capability whose BAR is not mapped or non existing. Capability of type 5 and id 0 for device 1041, can not be used!
[0][INFO] Feature set wanted by network driver are in conformance with specification.
[0][INFO] Feature set wanted by network driver are in conformance with specification.
[0][INFO] Driver found a subset of features for virtio device 1041. Features are: [VIRTIO_NET_F_MAC, VIRTIO_NET_F_STATUS, VIRTIO_F_RING_INDIRECT_DESC, VIRTIO_F_VERSION_1]
[0][INFO] Features have been negotiated between virtio network device 1041 and driver.
[0][INFO] Created SplitVq: idx=0, size=256
[0][INFO] Created SplitVq: idx=1, size=256
[0][INFO] Network driver successfully initialized virtqueues.
[0][INFO] Device specific initialization for Virtio network device 1041 finished
[0][INFO] Network device with id 1041, has been initialized by driver!
[0][INFO] Virtio-net link is up after initialization.
[0][INFO] Virtio network driver initialized.
[0][INFO] Install virtio interrupt handler at line 11
[0][INFO] Try to nitialize network!
[0][INFO] MAC address 52-54-00-12-34-56
[0][INFO] Configure network interface with address <IP_ADDRESS>/24
[0][INFO] Configure gateway with address <IP_ADDRESS>
[0][INFO] MTU: 1500 bytes
[0][WARN] Unable to read entropy! Fallback to a naive implementation!

In my opinion, the host doesn't provide the virtio feature. RustyHermit asks for it (https://github.com/hermitcore/libhermit-rs/blob/master/src/drivers/net/virtio_net.rs#L789), but doesn't get a positive feedback. The feature is missing in the list of provided features
0][INFO] Driver found a subset of features for virtio device 1041. Features are: [VIRTIO_NET_F_MAC, VIRTIO_NET_F_STATUS, VIRTIO_F_RING_INDIRECT_DESC, VIRTIO_F_VERSION_1]

Ok, you have to specify the MTU in Qemu's device configuration. Please add host_mtu=9000 to your command:
/usr/libexec/qemu-kvm -cpu qemu64,apic,fsgsbase,rdtscp,xsave,xsaveopt,fxsr,rdrand -display none -smp 1 -m 3G -serial stdio -netdev tap,id=net0,ifname=tap100,script=no,downscript=no,vhost=on -device virtio-net-pci,netdev=net0,disable-legacy=on,host_mtu=9000 -kernel rusty-loader-x86_64 -kernel rusty-loader-x86_64 -initrd ./hermit-bin


Its beem over an hour of jsut trying to get an API and OAuth call to work and I feel like I am going in circles

Describe the bug
I am trying to make an app that pulls form ETrade APIs to get my account balance and a few other parameters from the account.  There is a User Settings page where I am supposed to put in the ETrade Sandbox API Key & Secret.  It made a nice looking interface with mock data, but it has been an endless process of about 50 attempts to get it to even try to even make the OAuth query but it keeps not wanting to actually save the API keys, and it keeps trying to do mock data instead of the actually anything functioning.  I have sent about 50 "fix the problem" attempts (or so it feels), and it has yet to save the data and have the data still be on the screen.  Let alone have anything functional happen when I hit the OAuth button.
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-yqhcjr
Steps to reproduce
From the content it generated, hit the Settings option.  and try saving any value in the ETrade Sandbox API Key and Secret, and hit save.
Expected behavior
It should have at least been able to do a database save of the API keys and pull those values back by now.
Screen Recording / Screenshot
No response
Platform
Browser name = Chrome
Full version = <IP_ADDRESS>
Major version = 130
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
performance.memory = {
  "totalJSHeapSize": 59496523,
  "usedJSHeapSize": 54402895,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}
Username = mgerasolo
Chat ID = e46f7bcbf014

Additional context
No response

Appreciate the feedback! At times there are programming challenges that are too complex for the AI to solve. Sometimes pasting any error messages from the terminal into the chat is successful in resolving issues. At other times, manual intervention is required to prevent excessive token usage. This is likely the case if the AI is repeatedly unable to resolve an error.
This page here has a number of helpful insights on using Bolt effectively while maximizing token efficiency. Appreciate your patience as the team continues to make improvements!


Reservations RP: updating to python sdk 0.2.1

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

[ ] I adhere to the Command Guidelines.

Pending on Python SDK 0.2.1 release

Hi @williexu I have prepared the Azure CLI PR in advance, but build will fail since the python SDK 0.2.1 is not yet released. As we had discussed, I am changing the CLI version to 0.2.1 as well with the minor enum changes.

Codecov Report

Merging #6586 into dev will not change coverage.
The diff coverage is n/a.

@@         Coverage Diff         @@
##           dev   #6586   +/-   ##
===================================
  Coverage    0%      0%
===================================
  Files       11      11
  Lines      145     145
  Branches    11      10    -1
===================================
  Misses     145     145

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 d33404e...b24bc0e. Read the comment docs.


Recording on iOS simulator not working

Describe the bug
Recording does not work on ios simulator, the recording starts but the waveform or sign of audio being picked up is not showing and when I stop the recording and inspect the file path I do see the recorded audio but always with 28 bytes and the file does not play.
To Reproduce
Steps to reproduce the behavior:
//1
  final RecorderController recorderController =
      RecorderController()
        ..androidEncoder = AndroidEncoder.aac
        ..androidOutputFormat = AndroidOutputFormat.mpeg4
        ..iosEncoder = IosEncoder.kAudioFormatMPEG4AAC;
//2
    await recorderController.record();
//3
    final path = await recorderController.stop();

NOTE: the path is to the apps document directory which I can navigate via my macbook
Expected behavior
I expect the audio to be recorded and saved to the path
Smartphone (please complete the following information):

Device: iPhone 15 Pro Max (Simulator)
OS: 17.2
Version [e.g. 22]

@codeswot Can you please try on real device also check if you can record after providing path in record function.

I can confirm same issue on a real device, and when path is provided to the record function.
https://github.com/SimformSolutionsPvtLtd/audio_waveforms/issues/288

@codeswot The issue might have to be the extension you have set. Please make sure that the file extension you're using is supported by the encoder you're using and the underlying platform.

I have exactly the same problem. This used to work just fine:
_recorderController = RecorderController()
      ..androidEncoder = AndroidEncoder.aac
      ..androidOutputFormat = AndroidOutputFormat.mpeg4
      ..iosEncoder = IosEncoder.kAudioFormatMPEG4AAC
      ..sampleRate = 44100;

And trying to record into
_recordFilePath = await getApplicationDocumentsDirectory().then((value) => '${value.path}/recording.m4a');
await _recorderController.record(path: _recordFilePath);

So the file extension shouldn't be the problem. Any advice?

As mentioned this comment, issue might be in misconfiguration of encoder with file format. I'm going to close this issue for now.


webpack: establish convention for aliases naming

Is your feature request related to a problem? Please describe.
When wanting to create an alias for JS/CSS assets provided, a name has to be decided on.
Describe the solution you'd like
e.g. when making an alias for invenio-search-ui JS assets, one can go with either:

@js/invenio_search_ui (actually looks like what's in assets/)
@invenio_search_ui/js
@invenio_search_ui

After IRL discussing: Going with @js/invenio_search_ui

The only module at the moment that doesn't follow the convention is invenio-theme https://github.com/inveniosoftware/invenio-theme/issues/200, thus I'm closing the issue


add failing test for self-clobbering

@baszalmstra this is a test that currently fails and should be fixed by #893

Fixed by #893


Front-end build raises warning regarding ESLint

When I run pnpm build on the frontend directory, I get this error:
ESLint: Failed to load config "next/babel" to extend from.

Do you get this message as well, @claudioantonio?


How to calculate yaw? Use equation in your paper can't get same result in IJBA

According to the equation in your paper,  yaw value belongs to [4*e^-5, 0.9998] when the angle belongs to [0, 90]. But in IJBA nonlinear_list.txt some yaw around e^-9.  How to get these values?
Thank you

Please use the function norm_angle to calculate yaw angles. Thanks


Server error

@REBELinBLUE Could You help me?

A connection could not be established to the socket at http://deploy.local. This is required for reporting the status on running deployments. Please reload, if the issue continues please contact the system administrator.

Yeah sorry this is an issue I still need to work out with Apache, nginx can proxy the connection where as Apache can't. In .env change the SOCKET_URL to include the port, so http://deploy.local:6001

Ok thx

still the same
A connection could not be established to the socket at http://deploy.local:6001/. This is required for reporting the status on running deployments. Please reload, if the issue continues please contact the system administrator

A connection could not be established to the socket at http://deploy.local:6001. This is required for reporting the status on running deployments. Please reload, if the issue continues please contact the system administrator

Do you have the node socket server running? See examples/supervisor.conf for an example supervisor configuration but you can just run node socket.js in the root to test it

ok it's new command witch is not in README.md ok. I'm trying.

ok its solved;

It is in the supervisor config, unfortunately just running node socket.js won't keep the server running, as soon as you close your terminal session it will quit. You need to use something like supervisor to keep it running, and Laravel also recommends using supervisor to keep the queue worker running

But I see logout error, I can try to repair it but I thing is too many Laravel dependecies. I don't like that frameworks do somthing without my controll. But I understood that It is for "help". But when you have no control is not good. Maybe You know more than I Laravel concepts.

It is for the laravel event broadcasting http://laravel.com/docs/5.1/events#broadcasting-events it uses a Redis pub/sub queue and then a socket.io socket server to subscribe to the channel and broadcast them out to client.
It is used when models change, i.e. updating the progress of deployments etc to get realtime updates broadcast straight to the browser instead of continually polling with AJAX

I have forgotten:

[2015-11-14 22:52:50] production.ERROR: exception 'Pheanstalk\Exception\ConnectionException' with message 'Socket error 111: Connection refused (connecting to localhost:11300)' in /var/www/localhost/deployer/vendor/pda/pheanstalk/src/Socket/NativeSocket.php:45
Stack trace:
#0 /var/www/localhost/deployer/vendor/pda/pheanstalk/src/Connection.php(191): Pheanstalk\Socket\NativeSocket->__construct('localhost', 11300, 2, false)
#1 /var/www/localhost/deployer/vendor/pda/pheanstalk/src/Connection.php(98): Pheanstalk\Connection->_getSocket()
#2 /var/www/localhost/deployer/vendor/pda/pheanstalk/src/Pheanstalk.php(396): Pheanstalk\Connection->dispatchCommand(Object(Pheanstalk\Command\UseCommand))
#3 /var/www/localhost/deployer/vendor/pda/pheanstalk/src/Pheanstalk.php(347): Pheanstalk\Pheanstalk->_dispatch(Object(Pheanstalk\Command\UseCommand))
#4 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Queue/BeanstalkdQueue.php(71): Pheanstalk\Pheanstalk->useTube('deployer-defaul...')
#5 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Queue/BeanstalkdQueue.php(58): Illuminate\Queue\BeanstalkdQueue->pushRaw('{"job":"Illumin...', NULL)
#6 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Queue/Queue.php(33): Illuminate\Queue\BeanstalkdQueue->push('Illuminate\Broa...', Array, NULL)
#7 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(262): Illuminate\Queue\Queue->pushOn(NULL, 'Illuminate\Broa...', Array)
#8 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(217): Illuminate\Events\Dispatcher->broadcastEvent(Object(REBELinBLUE\Deployer\Events\ModelChanged))
#9 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(337): Illuminate\Events\Dispatcher->fire(Object(REBELinBLUE\Deployer\Events\ModelChanged), Array, false)
#10 /var/www/localhost/deployer/app/Traits/BroadcastChanges.php(28): event(Object(REBELinBLUE\Deployer\Events\ModelChanged))
#11 [internal function]: REBELinBLUE\Deployer\User::REBELinBLUE\Deployer\Traits{closure}(Object(REBELinBLUE\Deployer\User))
#12 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(221): call_user_func_array(Object(Closure), Array)
#13 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1694): Illuminate\Events\Dispatcher->fire('eloquent.update...', Object(REBELinBLUE\Deployer\User))
#14 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1574): Illuminate\Database\Eloquent\Model->fireModelEvent('updated', false)
#15 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1506): Illuminate\Database\Eloquent\Model->performUpdate(Object(Illuminate\Database\Eloquent\Builder), Array)
#16 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Auth/EloquentUserProvider.php(78): Illuminate\Database\Eloquent\Model->save()
#17 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Auth/Guard.php(589): Illuminate\Auth\EloquentUserProvider->updateRememberToken(Object(REBELinBLUE\Deployer\User), 'GvpYJXa5KriXSi2...')
#18 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Auth/Guard.php(550): Illuminate\Auth\Guard->refreshRememberToken(Object(REBELinBLUE\Deployer\User))
#19 [internal function]: Illuminate\Auth\Guard->logout()
#20 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Support/Manager.php(137): call_user_func_array(Array, Array)
#21 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(213): Illuminate\Support\Manager->__call('logout', Array)

Sounds like you don't have beanstalkd running? If you'd rather use redis for the queue as well just change QUEUE_DRIVER in .env to redis (although I haven't tried it myself, the whole point of Laravel is so you can easily switch between drivers like that)

Tomoorow. Now I am tired.

I change QUEUE_DRIVER but still after press "sign out" button I have an laravel error like "whops ..."  after create or edit some objects in app I have returned error message but everything is saved.
After I configured all (projects, commands and other I have "whoops" error and everything I do I can logout and see login page.
I start to create Deploment module in PHPCI
I didn't change to dev, but is very inconvenient app.

[2015-11-15 17:07:17] production.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to a member function format() on null' in /var/www/localhost/deployer/app/Http/Controllers/DashboardController.php:69
Stack trace:
#0 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(133): Symfony\Component\Debug\Exception\FatalErrorException->__construct()
#1 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(118): Illuminate\Foundation\Bootstrap\HandleExceptions->fatalExceptionFromError()
#2 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(0): Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown()
#3 /var/www/localhost/deployer/app/Http/Controllers/DashboardController.php(39): REBELinBLUE\Deployer\Http\Controllers\DashboardController->buildTimelineData()
#4 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(256): REBELinBLUE\Deployer\Http\Controllers\DashboardController->index()
#5 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(256): call_user_func_array:{/var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:256}()
#6 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(164): Illuminate\Routing\Controller->callAction()
#7 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(112): Illuminate\Routing\ControllerDispatcher->call()
#8 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): Illuminate\Routing\ControllerDispatcher->Illuminate\Routing{closure}()
#9 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func:{/var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:139}()
#10 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#11 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): call_user_func:{/var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103}()
#12 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(114): Illuminate\Pipeline\Pipeline->then()
#13 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(69): Illuminate\Routing\ControllerDispatcher->callWithinStack()
#14 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Routing/Route.php(203): Illuminate\Routing\ControllerDispatcher->dispatch()
#15 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Routing/Route.php(134): Illuminate\Routing\Route->runWithCustomDispatcher()
#16 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Routing/Router.php(712): Illuminate\Routing\Route->run()
#17 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): Illuminate\Routing\Router->Illuminate\Routing{closure}()
#18 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func:{/var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:139}()
#19 /var/www/localhost/deployer/vendor/graham-campbell/htmlmin/src/Http/Middleware/MinifyMiddleware.php(54): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#20 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): GrahamCampbell\HTMLMin\Http\Middleware\MinifyMiddleware->handle()
#21 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array:{/var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}()
#22 /var/www/localhost/deployer/app/Http/Middleware/Authenticate.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#23 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): REBELinBLUE\Deployer\Http\Middleware\Authenticate->handle()
#24 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array:{/var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}()
#25 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#26 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): call_user_func:{/var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103}()
#27 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Routing/Router.php(714): Illuminate\Pipeline\Pipeline->then()
#28 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Routing/Router.php(679): Illuminate\Routing\Router->runRouteWithinStack()
#29 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Routing/Router.php(639): Illuminate\Routing\Router->dispatchToRoute()
#30 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(236): Illuminate\Routing\Router->dispatch()
#31 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http{closure}()
#32 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func:{/var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:139}()
#33 /var/www/localhost/deployer/vendor/itsgoingd/clockwork/Clockwork/Support/Laravel/ClockworkMiddleware.php(42): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#34 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): Clockwork\Support\Laravel\ClockworkMiddleware->handle()
#35 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array:{/var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}()
#36 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#37 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle()
#38 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array:{/var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}()
#39 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#40 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): Illuminate\View\Middleware\ShareErrorsFromSession->handle()
#41 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array:{/var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}()
#42 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#43 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): Illuminate\Session\Middleware\StartSession->handle()
#44 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array:{/var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}()
#45 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#46 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle()
#47 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array:{/var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}()
#48 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(59): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#49 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): Illuminate\Cookie\Middleware\EncryptCookies->handle()
#50 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array:{/var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}()
#51 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(42): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#52 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle()
#53 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array:{/var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:124}()
#54 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#55 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): call_user_func:{/var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103}()
#56 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(122): Illuminate\Pipeline\Pipeline->then()
#57 /var/www/localhost/deployer/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(87): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
#58 /var/www/localhost/deployer/public/index.php(53): Illuminate\Foundation\Http\Kernel->handle()
#59 /var/www/localhost/deployer/public/index.php(0): {main}()
#60 {main}

I'm really sorry you are having so many problems, I really don't get it. Dan, the creator of PHPCI uses Deployer many times a day https://twitter.com/dancryer/status/665175807615238144 as does the company I work for. We were actually discussing this thread this morning and we are both equally stumped.

Could you upload a dump of your DB so I can try and figure out what state it is in?

It's to late I droped this databes and user :) This app has a lot of problem PHPCI is more comfortable to develop and implement a Deployment module ;)

I'm sorry but I disagree, as I said Dan himself uses Deployer many times a day, my company uses it dozens of times a day.
I've just looked into it, and your issue is because you didn't have the queue software setup before running a deployment so Laravel created the model but failed to add it to the queue. I've just pushed a fix to master to stop it trying to load deployments which didn't get queued correctly

The idea of deployment in my opinion is very simple, but I am not specialist.
PHPCI looks like to be a good place to be a Continuous Integration and Continuous Deployment tool.
All In One App like "One Ring too rule them all", because If you have a lot of systems, one to Build and the other to Deploy is havy to manage. I think the best way is to merge it in one system :)
PHPCI have a good home page and it is next argument to use PHPCI to build and Deploy :)
Thank You for Help, but I lost strength to use this project. I lost 4 days with fighting with this app, ok a lot of problems maybe was my mistakes or hasn't got knowledge. I am a Java programmer at work, but I think this is a hard language which need compile - developers loose a lot of time to wait to compile project and I try do something in PHP and Laravel becouse it simpler and faster for developers.
Now I a little bit change my mind.
I wish you good luck and best regards and more power for developing this tool, mayby it will be alternative for everybody who would like to only deploy web-apps.


Is it possible to bring HL7 v2 message structures into atlasmap?

I was trying to import hapi-structures-v25-2.3.jar into atlasmap and do mapping for some of the HL7 messages. It fails to load the java class by throwing error saying
Internal
Could not load JAVA document. Document is not found: ca.uhn.hl7v2.model.v25.message.ORU_R01

Didn't understand the meaning of document not found. This class showed up in the UI when I try to to import java class

Has anyone solved this HL7v2 messages in atlasmap?

Do you see any errors at backend side when you import jar and/or add Java class as a Document?

There are no errors on backend.


In Staff Draft (6-"SD") in TEST staff need to have "submit" option so staff can submit draft to AH

PROD is currently good.

add "submit" option in toolbar for this status

@LisaMoore1 I assume range officers shouldn't be able to submit when the status is "recommended for submission", correct? Only the agreement holder should see a submit button?

@calebissharp Staff should only have the submit button when they are in staff draft.  All the rest of the time they use Plan Actions.

@LisaMoore1 Thanks, good to know. I assume the same goes for agreement holders (only show for statuses 1 and 5)? Or should they also see it for 13 (ready for final decision)?

@calebissharp missed the second part of your question.  I see there is some intersection with who can edit in that status.

AH needs "Submit" for all statuses they can edit (see #326 for list).
staff need "plan actions" and no submit for all statuses they can edit EXCEPT 6 in which they need the submit button instead
for statuses no one can edit there should be neither submit nor plan actions for anyone.

@LisaMoore1 Ok, I've got it now. Thanks for the help.


Add Coding Solutions to Google Foobar Challenge

Hi all. Please add the code solutions to the Google Foobar Challenge.
Please include two files:

Markdown Question file
Solution file

Added Foobar Problem Bomb Baby #136

Added Bomb Baby Question(Foobar) along with Python Implementation #138

Added two new Google Foobar Problems with solution(with commented explanation) in Python #139

Bomb Baby
Fuel Injection Perfection

@chandrikadeb7 please review and merge if it satisfies

@chandrikadeb7 Added all 5 levels. Please review #150

@Vishal1003 Please merge!


🐛 FIX: tags like 'doctor' would trigger 'doc' tag

I found that the mask used to decide what PRs should be listed under certain categories etc were misbehaving. I found that my custom ci tag I added listed PRs that didn't have the ci tag, but instead had the dependencies tag. The reason was a Python line of code doing "ci" in "dependencies" instead of "ci" == "dependencies".
This seems like a bug, since otherwise it would be pointless to include tags like documentation and docs next to doc.
    "documentation": {
        "tags": ["documentation", "docs", "doc"],
        "pre": ["DOC", "DOCS"],
        "description": "Documentation improvements",
    },

thanks for catching this! dunno why we were using in in the first place 🤷

thanks for catching this! dunno why we were using in in the first place 🤷


[pinterest-only] use facter to read host information

@sbaogang
Allow to use facter to read host information.

r+


[Technical]get rid of deprecated io.atlasmap.v2.MappingType

the io.atlasmap.v2.MappingType generated type is marked as deprecated.
It is used in several places in the codebase.
It needs to be replaced by what?

Removed from epic, this can only happen on major version bump as it breaks backward compatibility.


Question: allowLists: true but match list item

Heres the docs
And here is my config:
rules:
  "@textlint-rule/no-unmatched-pair": true

  apostrophe: true

  common-misspellings: true

  diacritics: true

  en-capitalization:
    allowHeading: false
    allowLists: true

  # stop-words:
  #   severity: warning

  # terminology:
  #   terms:
  #     - Stylus
  #     - VuePress
  #     - - front[- ]matter
  #       - frontmatter
  #   exclude:
  #     - node
  #     - repo

  # write-good:
  #   severity: warning

  zh-half-and-full-width-bracket:
    bracket: halfWidth

filters:
  comments: true

Then why is the plugin still correcting this:

Fmm. allowLists aim to ignore list item text.
Its may be a bug.
https://github.com/textlint-rule/textlint-rule-en-capitalization/blob/d4c21faf55334e19ab448b4f84a14aa2d58ab209/src/textlint-rule-en-capitalization.js#L149

It seems that the logic is reversed
  en-capitalization:
    allowHeading: false
    allowLists: false

This will allow lowercase letter in heading and lists.
Besides, why there is allowLists, allowFigures, allowWords while allowHeading? It's strange.

I would like to open a pr, changing fixing the logic while changing allowHeading to allowHeadings, as reversing the logic back is absolutely a breaking change. Then we should publish a major version. What's your opinion? @azu

Any update about this one?


Using UnitMap to add a unit HeadCount can't find unit

Hi im having a hard time figuring out why i get a not found.
I'm trying to add a Headcount.php unit within Amount unit type.
But i get this
Class 'PhpUnitConversion\Unit\Amount\HeadCount' not found
I'm using the UnitMap::add
UnitMap::add(
dirname(__DIR__, 2) .'/helpers/unitconversion/Fixtures/Amount/HeadCount.php',
 "PhpUnitConversion\\Unit",
\PhpUnitConversion\Unit\Amount::class
);

First parameter is the server path that's the correct path to my HeadCount.php
Second im not sure what to use
Third the class of the unit type I want to add it to
This is my HeadCount.php unit
 namespace PhpUnitConversion\Unit\Amount;
 use PhpUnitConversion\Unit\Amount;
 class HeadCount extends Amount
 {
   const FACTOR = 1;
  const SYMBOL = 'hc';
  const LABEL = 'head count';
}

Initlization:
$hd = new  \PhpUnitConversion\Unit\Amount\HeadCount(343);

I need to initilize it like above reason i have dynamic way of calling it
$convertFromClass = "\PhpUnitConversion\Unit\\". $type . "\\" .  $from;
$convertFrom = new $convertFromClass($formattedNumber);

Looking in Map.php source code the static load() adds it to self:$paths like this
"[["/var/www/vhost/biome/vendor/php-unit-conversion/php-unit-conversion/src/Unit/"
"PhpUnitConversion\Unit"
true
null]
["/var/www/vhost/biome/app/helpers/unitconversion/Fixtures/Amount/HeadCount.php"
"PhpUnitConversion\Unit"
true
"PhpUnitConversion\Unit\Amount"]]"

I dont think its possible to re-use the same namespace? It shouldnt be necessary at least.
Namespaces are linked to a folder on disk, the PhpUnitConversion\Unit\Amount namespace should be pointing to a folder in vendor but your HeadCount file isnt located in vendor right? Did you try using a custom namespace?


Assign LCSC number not working

I select a single part and go through the process of assign LCSC number, select the part and click select part, but no LCSC number appears for that part back in the main JLCPCB tools window. If I close it and open the plugin again then the LCSC part number shows up.
If I do the same process with multiple parts selected (like after clicking select alike parts), then no part number is added to any component, even after reopening the plugin.
Plugin is current Git version
KiCad Version
Application: KiCad PCB Editor x64 on x64

Version: 7.0.10, release build

Libraries:
	wxWidgets 3.2.4
	FreeType 2.12.1
	HarfBuzz 8.2.1
	FontConfig 2.14.2
	libcurl/8.4.0-DEV Schannel zlib/1.3

Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW

Build Info:
	Date: Dec 28 2023 21:18:15
	wxWidgets: 3.2.4 (wchar_t,wx containers)
	Boost: 1.83.0
	OCC: 7.7.1
	Curl: 8.4.0-DEV
	ngspice: 41
	Compiler: Visual C++ 1936 without C++ ABI

Build settings:
	KICAD_SPICE=ON

I just tried the latest release version 2023.09.01 and it all works as expected.

I'll check tomorrow

Fixed in #423
Sorry for the delay


[Bug]: Wingriders Swaps immediately out of range

Data Provider
Blockfrost
DEX
WingRiders
Description
When doing a dexter fetch request for Dex of Wingriders, with a fixed swap in amount.
I have noticed when submitting the orders, they are pending to be batched in the Wingriders UI, these orders are not processed because they immeditely appear out of range, as a result it requires manual interaction to manually reclaim these orders in the UI, this is wingriders specific and other dex's work fine.
The minimum receive does in fact have the amount with the default 1% slippage so visually this looks fine.
I am also refreshing the pool state before an order is placed, thinking back I had Wingriders orders processing immediately when loading all the pools again and without the refresh pool state method being used, so this could be a factor here.

Hey @ndtr2000 I saw you mention Wingriders is working for you, do you ever get out order of range issues on specifically Wingriders?


RIP

The Wizard’s Vault replaces the existing daily login rewards
https://www.guildwars2.com/en-gb/news/discover-the-wonders-within-the-wizards-vault-in-guild-wars-2-secrets-of-the-obscure/

I think there's still a chance it is worthwhile. They've confirmed there's a daily login objective that rewards you with 5 Astral Acclaim. The normal daily objectives reward 10 Astral Acclaim. You can then spend the acclaim on items of your choosing. The only potential issue I see is if actually getting that 5 acclaim requires more actions than just logging in, like maybe you need to accept it in a new UI rather than just receive a chest that auto opens itself like we currently have. Then the other concern is how rewarding is 5 acclaim. Guess we'll find out soon though. Appreciate all the hard work you've put in either way. You've made a very helpful tool. :)

Not sure if it's profitable with the Astral Acclaim. It was a lovely tool, but such a hassle to accept all the acclaim's every time a account logs in. Might be able to automate this process with OpenCV or a small python script to automate this.
But then again, these actions might be against TOS to automate gameplay.


Use actions-tagger to automatically update major version tags

I'd automate the major version binding, mostly just for the sake of convenience.
Resources:

article: https://michaelheap.com/semantic-versioning-for-github-actions/
action: https://github.com/marketplace/actions/actions-tagger

Closed in https://github.com/c-hive/fresh-bot/commit/dc43da4a8e4fe149278d0231c88703a5e2cbcdd3. Thanks for the proposal!


Cross-instance leakage in extra_url_params

Migrated from GitLab: https://gitlab.com/meltano/sdk/-/issues/381
Originally created by @aaronsteers on 2022-05-10 04:19:47

There is a bug in the references to extra_url_params - as mitigated in this commit: https://github.com/MeltanoLabs/tap-gitlab/commit/32e657481c72015170b0a54117b46434eea364fe
The reference to self.extra_url_params is not copied before being used as a local working variable, which causes updates to the dictionary to bleed across instances of the class and subclasses.

View 2 previous comments from the original issue on GitLab


I would like to help

@kentcdodds I am interested in getting angular-formly to support material design look and feel. But I need help to get started :+1:

Fantastic. Let me fix the build to use the same stuff that angular-formly is using. This should just take me an hour or so. Then We can have a video chat sometime to determine what needs to remain :+1:

Great!


I2C stats don't work on ESP32

Describe the bug
I2C stats bytes read and bytes written are always zero with ESP32.
To Reproduce
Steps to reproduce the behavior:
Enable statistics and I2C statistics, use I2C, look at stats.
Expected behavior
Should have correct stats.
Impact
Using I2C stats doesn't work.
Logs and console output
Stats Group i2c@3ff53000 (hdr addr: 0x3ffb1c28)
        bytes_read (offset: 24, addr: 0x3ffb1c40): 0
        bytes_written (offset: 28, addr: 0x3ffb1c44): 0
        message_count (offset: 32, addr: 0x3ffb1c48): 14
        transfer_call_count (offset: 36, addr: 0x3ffb1c4c): 9

bytes read and written should not be zero.
Environment (please complete the following information):

Commit zephyr-v3.3.0-2374-gb272f468d3

Additional context
The reason this happens is that the ESP32 I2C driver modifies the i2c_msg's buf and len fields when it processes the messages.  This messes up the stats, which are gathered after the message is processed.  It also messes up the logging of i2c messages, if that is enabled.
And probably also causes a few app bugs, since while the i2c_msg field isn't marked const, there really is no expectation that the buffer pointer and length will be modified.  Any code that tries to access i2c read data from the i2c_msg[x].buf pointer will access beyond the buffer.  And any code that re-uses an array of i2c_msgs for multiple transactions won't expect the length fields to have changed.

@xyzzy42, can you also check this PR?


Added timestamp to logger

Updated the logger.py file to include timestamps when logging output. For example:
[2024-05-20 15:32:48][DEBUG]: == Working Agent: Researcher
[2024-05-20 15:32:48][INFO]: == Starting Task: Research the topic
[2024-05-20 15:33:22][DEBUG]: == [Researcher] Task output:

Apologies, had to revert an unrelated commit here

@joaomdmoura
import datetime?
timestamp = datetime.now().strftime('%Y-%m-%d %H:%M:%S')

Good catch, just got the error online

Sorry,  I forget to add the datetime module


Add support for pulling images by digests

fixes #152

Awesome, thanks!
Will ping when published.

\o/

Published in v2.2.0

Thanks!


HeavySelect2Widget is not rendering selected options after ValidationError is raised on form

The problem is traced to render_options call where selected_choices (second element in args list) is list of unicodes instead of expected list of integers. Django==1.8.9

The problem is in django's `BoundField.value˙ method that:

Returns the value for this BoundField, using the initial value if the form is not bound or the data otherwise.

In initial value is integer and in data it is unicode.
Django solves this by normalizing to strings i.e. in Select widget method render_options there is a line selected_choices = set(force_text(v) for v in selected_choices) and then in render_option option_value = force_text(option_value).

@darbula thanks for the bug report. But to be honest I have absolutely no clue what you are talking about. Could you be a little more specific on what's failing and how? Maybe even include a stack trace?
Thanks!

There is no stack trace since the issue is visible in the frontend only.
It is very easy to reproduce this error. You need form with two fields, one using HeavySelect2Widget and other for example CharField. Then write simple clean method for char field that raises ValidationError when the value length is for example less than 3.
Load form in the browser select few values in select widget and enter string foo (length is 3 so no ValidationError is raised) in char field and post. Data is saved. Load again same form to edit saved  data. It should display selected values and char field with string foo. Now delete last letter of char field and post it. This should trigger ValidationError since the length is less than 3. Form has errors so model is not saved in the browser you get same form with char field has value fo, as it should, but select2 widget has no items selected anymore.

This seems like a valid use case. Please provide a test in your PR.


ConnectionPool doesn't discard dead connections

I'd expect that when a connection is closed the ConnectionPool will recycle it. Unfortunately, it appears that a dead connection will continue to be vended by the ConnectionPool. I don't see any API to mark a connection as dead.
When using the PostgresQL connection adapter I've seen that sometimes the connections will die. This will happen when developing locally if I put my computer to sleep and wake it back up, for example. I don't know why it happens in production. Once this happens the server will be unable to do any database work without restarting.

Any update on this? It is one of the biggest sources of instability in my server app - once a connection goes bad there is no way to make the pool stop vending it. I've done some hacky workarounds, but that means I'm running a forked version which is a pain every time a new Swift version is released.

@djones6 @ddunn2 @EnriqueL8 did we make any progress on this? IIRC one of you was looking at it!

@bridger Apologies, it seems that this was fixed but no reference was made to this issue.
This was fixed in a number of places:

Swift-Kuery 1.3.0: ConnectionPool no longer vends dead connections (#123 and #127), and can recover from being empty (#128) - such as in the case where the DB is temporarily not contactable.
Swift-Kuery-PostgreSQL 1.1.4: use PQstatus to check connection state in isConnected (#49)

Unfortunately there are a couple of wrinkles that we do not have a solution for yet, which hopefully are not show-stoppers for you:
Checking status of a Postgres connection
The way that PQstatus is implemented in libpq means that Postgres connections don't get flagged as disconnected until a query is attempted.  This means each must fail to execute a query before it will be thrown away and replaced.
For example, in the following scenario:

A connection pool is set up with 2 connections
Successful queries are made
Database connection lost (network down, machine went to sleep, DB down)
(no further query attempts)
DB connection restored

... the next 2 queries will fail, because the ConnectionPool will vend (apparently) valid connections, but libpq will then flag them as failed.  They'll be be replaced the next time the ConnectionPool returns a connection, with a working one (assuming the DB is now reachable again).
Connection generation failure
At the moment, the API for generating a new connection is synchronous, but the connect() function is asynchronous.  This means it's awkward to check whether a connection is 'connected' before returning it from the generator (effectively requiring the user to write a synchronous wrapper to connect()).  The generator needs be able to fail (ie. return nil) in order to prevent the ConnectionPool vending new (but dead) connections in the event of a DB outage.
We can still recover when the DB becomes reachable again, but we have to iterate through all the bad connections in the pool (with a query failure on each in the case of Postgres) before we've replaced them all with good ones.

This is awesome news! (Sorry I missed the message for a couple weeks)
I updated to the latest Kuery and it is working for me great. The caveats you mentioned are pretty reasonable.
Thank you for fixing these bugs 🤩 This will improve my server stability and it is also great to run a non-forked version of the code.


Unwanted token error message for a integer value

unwanted token '807' error message returned for the below
sql:Parameter para1 = {sqlType:"integer", value:010100807};

This is due to octal decimal syntax, so this should be improved in grammar level. https://github.com/ballerina-platform/ballerina-lang/issues/3673 is created to track this.


Reservoir computing

Hi @filipbstipic  thank you so much for this PR, it looks fantastic! I looked though it and wanted to double-check that the major updates are

A new submodule for computing benchmarks with reservoir computers
New scripts for finding hyperparameters, and a new script for loading benchmark results

Please let me know if I should re-run anything, change any documentation, or make any other changes to the base module.
Also, let me know if there are any larger-scale structural issues with the repo that would make it easier for you to use!
Thanks again, and happy holidays!
ps -- @verzep #2 this might be of interest

Dear Mr. Gilpin,
Thanks a lot for the comments I accidentally requested to merge, we are working on a Reservoir Computing model to see how it compares to your baselines. I will update you once we are finished if we manage to get good performance, I didn't mean to merge into the master!
Happy Holidays to you too!
Best,
Filip

Best of luck with your project!! I'm looking forward to reading it when it comes out


Trivy support

Kubei should support https://github.com/aquasecurity/trivy as image scanner in addition to clair.

Thanks for the suggestion.
We’re planning to add additional scanners in the future to get more
accurate results.
בתאריך יום ו׳, 25 בספט׳ 2020 ב-13:48 מאת Ville Ilvonen <
<EMAIL_ADDRESS>
Kubei should support https://github.com/aquasecurity/trivy as image
scanner instead of clair.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Portshift/kubei/issues/33, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AH7SZRY6N6QX6SC6ORBYMUTSHRYOJANCNFSM4RZMTDYQ
.


Fix/userid

We switched to Amazon Linux 2023 as our base ami. In some cases, the MAX_UID for the base of that AMI is set to a number lower than the UID we set for the firecracker users. This is reported as a warning, but propagated as an error. This can cause jail preparation to fail. This reduces our UIDs to being under that limit. I tested this locally and an AML 2023 vm.

bors try

bors r+


Provide instructions for implementing unit testing.

I'm suggesting this update based on my limited knowledge and the information I've found through examples.
It would be great if someone can add some information (or references) related to what the following mechanisms do and/or how they work.

COMPONENTS unittest in the find_package() CMake command
testbinary in the target_sources() CMake command

Fixes #71837

@NelsonFerragut Sorry for the delay. As you can see from the CI results, there is a compliance check failing. This is due to the fact you need to squash all your commits into one. We don't accept the kind of commits auto-generated by GitHub when you're accepting a "suggested changed" directly from the UI.
Once you've squashed all the commits into one, you may then "force push" to your branch.

@kartben, I will fix it. Thanks for the guidance.


Completions items are overlapped in debug console

I've seen this randomly a bunch of times, but if the person investigating can't repro it, I can try to nail it down a little.

I don't remember ever seeing it in the editor intellisense list.

I've seen this too today in editor completion. Didn't find consistent repro though.

This is nothing specific in the repl, it is an issue with the rendering of the suggest widget and as @octref points out it also happens in the editor, thus assigning to @joaomoreno

It would be kick ass to repro it. I saw it recently in the editor's suggest widget too.

Has been fixed since.


Escape the attributes of the tags in the messages

This fixes problems with messages containing urls with quotes

Resolved by commit feb0c06


Setup Husky and imports order linting

Description
This PR installs husky and lint-staged as well as adds linting rules for import order.
husky is a tool for running commands/scripts on commit hooks (pre-commit, post-commit and many more). We're using husky to trigger lint-staged.
For additional details on husky check https://www.npmjs.com/package/husky
lint-staged is a tool that allows us to run any commands only on staged files, which means that you don't have to run whole codebase linting on every commit, but only changed files. Current configuration also contains --fix flag, that will automatically fix eslint problems (some of them might be non-fixable though, then your git commit will be abandoned.

But hey - don't do that. I'm watching you 👀
Issue / Notion doc (if applicable)
Testing

Make some auto-fixable errors in any file under src folder. For instance - add extra space or move imports around.
Just run git commit -am "This is my important commit"
Enjoy linting with nice terminal output 😊

Screenshots (if applicable)

Ohhhh didn't realize that, LFG


Add Templates for Exoscale DBaaS products

Summary
Adds Templates for Exoscale DBaaS products.
As there are over 100 DB/Plan combination (and in turn over 100 distinct products in the Billing DB) I extended the template selection to allow for only one template per DB type. This shouldn't impact the current billing behavior as we will do longest prefix match.
Checklist

[x] Categorize the PR by setting a good title and adding one of the labels:
bug, enhancement, documentation, change, breaking, dependency
as they show up in the changelog
[x] Update tests.

Update: Sry I miss read the PR. Those were golden tests. Is there a way to test the template?

Well there are golden tests. Or what do you mean with test?

I meant a real test (e2e) or it's not feasible with this repo?

We don't do Odoo e2e tests no.


Add a ranged attack capability to the player

The player only has melee attack for now. Add some sort of ranged attack to the player.

I would like to work towards implementing this. Please assign this to me


Bevy 0.13

Port to bevy 0.13
Followed this guide: https://bevyengine.org/learn/migration-guides/0-12-to-0-13/
Both examples in examples/ compile.
Marked as draft due to the following issue: Color is set for meshes to Color::SALMON in examples as before, but it does not work. The meshes in both examples are completely black instead. No idea why.

Thank you very much!
I tried looking into why the meshes are black, I didn't find an answer. But I do want this merged, because this is important. So let's just add something like:
app.insert_resource(ClearColor( // Some color you want, to stand out against the black mesh );

So the black meshes don't blend into the background, I think it's good enough for now.
And we'll leave the meshes' color as a separate issue.

I did the good old "comment things out until the issue goes away to see what breaks it" trick and landed on AmbientLight. Then looked at the migration guide and it says that the default brightness for it is now 80.0, so the 0.3 and 1.5 which was decently bright in Bevy 0.12 is now completely black in 0.13.
Bumped the brightness for both and seems fine now.


Demo not working on Android Chrome 59

The suggestions are not visible of demo app (http://oferh.github.io/ng2-completer/#/native) on Chrome for android (version 59).

Same here. Demo does not work at all on Chrome on Android for me on my real device (Galaxy S7 Edge). However, if I load Chrome on the same phone, Edge S7 on Browser Stack, it works!? It seems like the issue might have something to do with how the physical device handles clicks/focus vs an emulator. No issues on desktop with Windows and Chrome.


ir: Avoid generating out-of-range values in constants.

Partially addresses #274 until my patch or a similar one gets accepted and we can use it.
r? @fitzgen or @upsuper

@bors-servo r=fitzgen

:pushpin: Commit 06e5f6c has been approved by fitzgen

:zap: Test exempted - status


Type user/use

"reduce the use of  passwords" vs "reduce the user of passwords"

@StevenTCramer : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off

Publishing in this repository is suspended until Tuesday, September 22. Merging will resume at 7 AM Pacific Tuesday.
This PR is ready to merge on 9/22.


Errors occurred while trying to load the workbook

Hi, I installed tableau server 3 days ago, and I followed your guideline to install clickhouse connector, it was successful, I can see all the tables. Then I published the data source.
But When I view the data source, and click 'Ask Data', an error occurs:
An unexpected error occurred. If you continue to receive this error please contact your Tableau Server Administrator.

Session ID: AAE38ABA14744FF6B5DE65E623F77330-1:1

TableauException: Errors occurred while trying to load the workbook "/views/ds:db-clickhouse-192_168_6_46". The load was not able to complete successfully.

2022-05-16 05:47:14.737

(YoHlYnyXij7rCQ-oxu7rewAAAXA,1:1)

Would you like to reset the view?

You can reproduce by following https://liushiming.cn/article/tableau-server-installation-guide.html#Install_clickhouse_JDBC_driver_for_tableau_server, all steps were logged.
I can also provide the server log files if you need them, please help to check.
P.s. tableau desktop also can't use the connection

Env
clickhouse: <IP_ADDRESS>
tableau server: 2022.1.1
clickhouse jdbc driver: 0.3.2-patch7
connector: 0.2.2

Hi @huahuayu
Could you please make a simple datasource (with just a single small table) in Desktop,
publish it (the datasource) to your Server, then open it on Server (Ask Data by default)?
I couldn't reproduce your error in my testbed, but suspect
it is the datasource being created / configured (in)correct,
that's my suggestion all about.

Could you please make a simple datasource (with just a single small table) in Desktop,
publish it (the datasource) to your Server, then open it on Server (Ask Data by default)?

This is ok. But if you publish the database rather than the table, then you can reproduce it.
Let me summarize:

You can connect the database in desktop, but you can't publish the database to the server, you can only publish table. Publish database get error:

You can connect the database in server, but the Ask Data get error just as I describe in this issue.

Even if I ignore the Ask Data in server, but the big problem is the server-created database connection can't be used in the desktop. Select the data source in desktop get error:

The only thing can publish is table, you can reuse the table as a data source, works on both desktop & server. But the limitation is so big. What if I need a table join?

The workaround is to use desktop only or server only, create viz directly in the server. The database-level data source can't be shared.

What do you mean by "The database-level data source" ? I don't get it, sorry.
btw you can Join (or Relate) tables when building a datasource, don't you?

Means you can not publish a database as data source, you can only publish tables one by one.

That's correct, the datasource in Tableau has to be made of at least one table --
either "physical" or "logical" one, the latter is the Tableau's Data Model object.
You may talk about Virtual Connections (new in Tableau version 2021.4),
but they could be created for limited number of DBMSes (CH is not in the list).
And even with Virtual Connection, the datasource has to be made (starting with a table).

The resume: Tableau cannot utilise a database schema (tablespace) as a datasource.

But why I can save such a data source which I don't select a specific table. Next time I open it, I can see all the tables not just 1 table.

? Could you please share the screen (the Data Source tab, and the Worksheet one) ?

This is not the workbook you can publish to a Tableau Server ;-)
It doesn't contain a valid datasource (as indicated on the Sheet 1 tab view).

ok, so I must create a workbook so that I can publish a data source? That's strange...if so I have no problem.

I want to publish its data connection as a data source

unfortunately, you can't do this (with any data connection,  not just the CH one).

so I must create a workbook so that I can publish a data source?

You have to create a valid datasource (consisting of at least one table),
then you'd be able to publish it to a Server.

Virtual Connection could be your best friend in the future, but now it's not.

Virtual Connection could be your best friend in the future, but now it's not.

When it is available?

Virtual Connection could be your best friend in the future, but now it's not.

When it is available?

Dunno, sorry. It is very uncommon for Tableau to announce schedules for minor enhancements.


LLVM library package

Is your feature request related to a problem? Please describe.
LLVM only available as toolchain; no package.
Describe the solution you'd like
Please, add LLVM library package for newest LLVM version (15.0.7 at the time of writing)
Describe alternatives you've considered
Writing my language in Rust using Inkwell crate.
Additional context
No response

llvm has a lot of libraries and I need to group them and configure them as components.
Can you tell me roughly which llvm libraries are needed on your side? Which llvm libraries are essential base libraries?

LLVM-IR and MLIR are essential. Anything else can be added later on.

I have improved it, you can try it. https://github.com/xmake-io/xmake-repo/pull/1807
add_rules("mode.debug", "mode.release")

add_requires("llvm", {kind = "library", configs = {mlir = true}})

target("testllvm")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("llvm", {components = "mlir"})

Only the four components mlir, clang, libunwind, base (llvm) are now supported.
And I haven't adjusted the link order inside these components, so if you come across the files, you can mention pr to further improve fixing the link order of each component.

I can tell it works well on Linux, however I think this library may need to be split into more components.
Windows support would be great (for now it doesn't have all the library files required)

it doesn't work on Windows


Chrome Sync storage

Uses Chrome’s Storage Sync API to persist styles, allowing them to be shared across computers logged into the same account.

Thanks for the pull request! I just finished reviewing. If you could make the changes I mentioned, I'd be happy to merge this in!

@karthikv, thanks! Just made the changes.
One thing I’d like to mention is I considered writing into this a migration of localStorage.myStyles, so for example, if you landed on a page with localStorage.myStyles set but nothing in Chrome Sync Storage, then myStyles we would make textarea/styles the myStyles, sync it those, and then clear the localStorage. If you think this is a good idea I’d be happy to add it. Without this, people who upgrade to this version will have to manually re-enter their styles.

@adamschwartz Yes, that'd be useful! Could you write that migration? Thanks for your quick edits on the pull request!

Done.

@karthikv Wondering if you’ve had a chance to look at this PR now that I’ve added the migration feature?

Bump