VIDIOC_DQBUF error 5, Input/output error

Hello, all
I tried just change
open_device((char*)"/dev/video1");
and make two different opencv-test output to use.
But while I use one named "opencv-test1"(video0), and open another terminal to execute "opencv-test2"(video1), one of them will shut down and return

VIDIOC_DQBUF error 5, Input/output error

How can I get two frames easily and can be used for process.....
thanks a lot
All the best,
ccrb

Hi,
Please excuse the late reply.
To make sure I understand your setup correctly:
You took this gist and simply changed the device node so that you have a executable for each camera.
On what hardware are you working?
My first instinct would be that one camera interferes with the data transfer of the other.
Could you attach both cameras and post the output of 'lsusb -t'?
Best regards,
Edgar

Hello Edgar,
Thanks for your help again!
Here's the output on terminal after I type 'lsusb -t'

/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
|__ Port 3: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/9p, 480M
|__ Port 1: Dev 9, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 1: Dev 9, If 1, Class=Video, Driver=uvcvideo, 480M
|__ Port 2: Dev 8, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 2: Dev 8, If 1, Class=Video, Driver=uvcvideo, 480M
|__ Port 3: Dev 2, If 0, Class=Hub, Driver=hub/3p, 12M
|__ Port 3: Dev 6, If 0, Class=Vendor Specific Class, Driver=btusb, 12M
|__ Port 3: Dev 6, If 1, Class=Wireless, Driver=btusb, 12M
|__ Port 3: Dev 6, If 2, Class=Vendor Specific Class, Driver=, 12M
|__ Port 3: Dev 6, If 3, Class=Application Specific Interface, Driver=, 12M
|__ Port 5: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 5: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 5: Dev 3, If 2, Class=Human Interface Device, Driver=bcm5974, 12M

My hardware now is: macbookpro 13" (use ubuntu14.04.3 for test),
and I"ll use same code on my target board(Cubieboard4, also used ubuntu 14.04 OS).
Do you this hardware can connect more than three "42BUC03" camera and used for image process?
Each frame I use is 1280x200(ROI by OpenCV).
I"ll come back after three hours.
Thank you.
All the best,
ccrb

They are on the same bus, but the data volume should still be manageable.
What framerate are you using? It should make no difference, but still. You can use this function to set it.
One possibility is that your laptop does not supply enough power for both cameras.
There are a few things you can try.
Disable autosuspend.
sudo sh -c 'echo -1 >/sys/module/usbcore/parameters/autosuspend'

If that does not work you should try a usb hub with power supply. That will eliminate power problems as a possible error source.
If the problem then still exists we will have to dig deeper.
sudo sh -c 'echo 0xffffffff > /sys/module/uvcvideo/parameters/trace'

This command will enable debug output for the uvc driver. You can the read the messages with dmesg. A copy of the output would be helpful.
Best regards,
Edgar

I tried sudo sh -c 'echo -1 >/sys/module/usbcore/parameters/autosuspend', and it can use two camera on my Macbook now.
But on my target board, it doesn't have autosuspend in this folder.
It returns

sh: 1: cannot create /sys/module/usbcore/parameters/autosuspend: Directory nonexistent

Does this mean I can't disable autosuspend on my embedded system?
I also not find autosuspend in

/sys/bus/usb/devices/usb*/power

I have done this. sudo sh -c 'echo 0xffffffff > /sys/module/uvcvideo/parameters/trace'
But it's not help for me.
Maybe I should buy one usb hub to connect all my cam on one usb port?
I'm tried to solve this, do you have any suggest?
All the best,
ccrb

Hi,
If the suspend command does not work, you stll have the option of setting kernel parameters.
This will set the options once at boot time and is less flexible. For your embedded system it may still be worth a try.
To do this edit/create the file
/etc/modprobe.d/usb-autosuspend.conf
and append the line:
options usbcore autosuspend=-1

After that a reboot should set the option. If that does not work I would have to have a closer look to at your embedded system and its configuration.
A usb hub with external power supply should also do the trick.
Best regards,
Edgar

Hello,
I tried to create "usb-autosuspend.conf", and reboot my embedded system.
And it works! But sometimes it may fail.
I just bought a usb 2.0 hub one hour ago, and while I connect my cam, it can create video node!
But while I use it on v4l2sample code. It happened error and return error 5, Input/output error again!!
Seems I bought a not good usb-hub.......
Btw, can I just use two camera by one executable file?(It seems I should match each device in snapFrame())
And I haven't use framerate function, but I can get each camera frame, should I set framerate to use?
Thank you very much for your help!!
All the best,
ccrb

Hi,
You said it sometimes fails. Is there something different in those cases? Does dmesg say something? Did you reboot between them?
A possibility we are looking into is that it has something to do with the processor going into deep idle
states when it is not supposed to.
To check whether this assumption is correct, please try the procedure described at
https://access.redhat.com/articles/65410 (citing):
The first is a big hammer approach. By booting with the kernel command line argument
processor.max_cstate=1 and idle=poll the system will never enter a C-state other than zero and will not even use the MWAIT mechanism to temporarily halt in the idle routine. While this will provide the fastest scheduler response time, it is very wasteful of power and will generate heat that requires the air conditioning system to run (and waste more power).  This method is not recommended for general use, but can be quite handy for testing whether your application is being affected by cstates and idle transition latency. Booting your kernel and adding the commandline options:
processor.max_cstate=1 idle=poll

If that is the case we can find solutions to only disable the cstate when the cameras are running.
Concerning your second question:
Yes, you can open multiple devices in one executable.
The only thing that differentiates between the devices is the file descriptor, thus there simply switching between them at runtime is all you need to do.
The framerate is important when dealing with exposure times. The higher the framerate the shorter your highest possible exposure time will be. This depends on your use case, so there is no general rule for this. However explicitly setting it will ensure that your camera always uses the same settings (even after reboots, etc.) so it will probably prevent some bad surprises.
Best regards,
Edgar

Hi ccrb
I would like to know, which camera models you use. Knowing this, we can create two simple Gstreamer pipelines and try to run them in parallel. If this works, we can continue with OpenCV.
Thank you in advance.
Stefan

Hello Edgar,
Sorry for the late reply.
Thanks for all your helps on my problem.
For now, I can get images on each camera on their own execute.
I"ll try to make them in one execute and set camera's frame rate next week! This two week I need to finish another work.
And I have one question, due to the camera I used is 42BUC-series, it can accept trigger signal.
Cause I haven't set framerate before, which way is better for my case? I"ll use 24fps for camera cause I have use gige-cam to detect my object before.
I'm very appreciated for all your support!
All the best,
ccrb

Hello Stefan,
Sorry for the late reply.
I"ll use more than 7 "42BUC03" to detect my object, and use image processing by OpenCV.
Thanks for all your help.
All the best,
ccrb

Hello Edger,
I found why I still have this problem today.
I found two of my camera "Serial Number String" are same!!!
How can I reset my camera serial number if i have lost my backup file.
All the best,
ccrb


Share the time test codes

Hello,I am also working in the lightweight super resolution, can you share the time test codes? Thx

I appreciate your interest.
I have updated the code for time test.[link]
Please let me know if you have any more questions or need further assistance


Add joinChannel and toColourspace commands

This PR is a little large -- sorry for that. These two features are somewhat entangled, and I ended up writing toColourspace() in service of what I was trying to do with joinChannels().
Add feature toColourspace / toColorspace to write output in desired colorspace
This implements a feature very much like the one described in #218. This code is tested in colourspace.js and joinChannel.js, but by its nature adds the potential for a lot of complexity. I expect some additional tests will be required. This supersedes #503, which I'll close.
Add feature joinChannels to add additional image channels to the input image
This allows you to join additional channels onto the image. In some cases it is necessary to use toColourspace() to set the output to what you intend. For example, if you open a grayscale image and add three channels, by default that will be interpreted as an sRGB image with an alpha channel. It is necessary to also call toColourspace('cmyk') to ask the image to be interpreted as a CMYK image.

Hello, thanks Matt, this doesn't seem to compile at the moment due to the use of an unordered_set keyed on VipsInterpretation - see https://travis-ci.org/lovell/sharp/builds/145304825

I don't have xcode, so it's hard to say what the problem is. I tried changing unordered_map to map. There's a small performance penalty for using map but it probably won't matter.

Coverage decreased (-0.7%) to 98.333% when pulling 8f5da5880156666d128f8bd24fb2f2886acf8efa on mhirsch:joinChannel_and_toColourspace into c39a9b8de9156d8c04a2bfff06fe6f5ac278f340 on lovell:master.

Coverage decreased (-0.7%) to 98.355% when pulling 6d1d1b3ee311cd2d087f7bdfa368daf0234f9f22 on mhirsch:joinChannel_and_toColourspace into c39a9b8de9156d8c04a2bfff06fe6f5ac278f340 on lovell:master.

The Buffer-or-filesystem approach of joinChannels feels a bit clunky. Does your use-case require both? Perhaps we could support one only to start with, e.g. Buffer only?

This PR definitely proves I need to abstract away the image loading logic copypasta (filesystem vs compressed Buffer vs raw Buffer) as there are now four occurrences :)

If you were to abstract the image loading logic it would perhaps make it simpler to have buffers or filespaths as inputs. What in particular feels clunky about it? I tried to mimic the file or buffer input options in other functions that accept image input. Would it be easier if they weren't in an array -- i.e. you need to call joinChannels() once per channel?

Coverage decreased (-0.7%) to 98.355% when pulling 68d6fa20914f864037af0be927884dbb33ef81d0 on mhirsch:joinChannel_and_toColourspace into c39a9b8de9156d8c04a2bfff06fe6f5ac278f340 on lovell:master.

Coverage decreased (-0.7%) to 98.355% when pulling 68d6fa20914f864037af0be927884dbb33ef81d0 on mhirsch:joinChannel_and_toColourspace into c39a9b8de9156d8c04a2bfff06fe6f5ac278f340 on lovell:master.

(Tomorrow) I'll attempt to extract the common logic (in both JS and C++) for image loading so it can be used by any operation that requires another image as part of its input.

Coverage decreased (-0.7%) to 98.355% when pulling b85de243bdd0e2fbb6ec118d957a9e2204f8e4df on mhirsch:joinChannel_and_toColourspace into 762cda75a91278133fd9397e19080e13a7d6cc07 on lovell:master.

Coverage decreased (-0.7%) to 98.355% when pulling 1b33fbfdfdc7d88d8c2292b8568d4bba6793b803 on mhirsch:joinChannel_and_toColourspace into 032bb7e96b17c74496c7b0e03ddaf2a340a635b7 on lovell:master.

@lovell I've updated this to be based on the pencil branch, taking advantage of your new OpenInput() system. This removes the awkward restriction of having to load either files or buffers and not both.

Coverage decreased (-0.2%) to 98.835% when pulling bb1832800a3383beb5ae0506a1587c7682f3be55 on mhirsch:joinChannel_and_toColourspace into 032bb7e96b17c74496c7b0e03ddaf2a340a635b7 on lovell:master.

Actually -- what's the best way to handle this. Should I close this and open a new pull request against pencil?

Coverage increased (+0.02%) to 99.029% when pulling 856c7d1182924ebf932d8843b8ae8e5a5098b70c on mhirsch:joinChannel_and_toColourspace into 032bb7e96b17c74496c7b0e03ddaf2a340a635b7 on lovell:master.

Thanks for the updates - I'll be merging pencil to master in a couple of days so please leave this open until then :)

Matt, the upstream/master branch now has the CreateInputDescriptor logic - please can you rebase against it.

Yes -- today or tomorrow! Thanks!

When I git pull from your master in my master branch and run npm install and npm test I get the following:
/home/mhirsch/sharp/index.js:9
__cov_8cTnvYcP2ESJD5pY6tEvog.s['1']++;var path=require('path');__cov_8cTnvYcP2ESJD5pY6tEvog.s['2']++;var util=require('util');__cov_8cTnvYcP2ESJD5pY6tEvog.s['3']++;var stream=require('stream');__cov_8cTnvYcP2ESJD5pY6tEvog.s['4']++;var events=require('events');__cov_8cTnvYcP2ESJD5pY6tEvog.s['5']++;var semver=require('semver');__cov_8cTnvYcP2ESJD5pY6tEvog.s['6']++;var color=require('color');__cov_8cTnvYcP2ESJD5pY6tEvog.s['7']++;var BluebirdPromise=require('bluebird');__cov_8cTnvYcP2ESJD5pY6tEvog.s['8']++;var sharp=require('./build/Release/sharp');__cov_8cTnvYcP2ESJD5pY6tEvog.s['9']++;var versions={vips:sharp.libvipsVersion()};__cov_8cTnvYcP2ESJD5pY6tEvog.s['10']++;(function(){__cov_8cTnvYcP2ESJD5pY6tEvog.f['1']++;__cov_8cTnvYcP2ESJD5pY6tEvog.s['11']++;var libvipsVersionMin=require('./package.json').config.libvips;__cov_8cTnvYcP2ESJD5pY6tEvog.s['12']++;if(semver.lt(versions.vips,libvipsVersionMin)){__cov_8cTnvYcP2ESJD5pY6tEvog.b['1'][0]++;__cov_8cTnvYcP2ESJD5pY6tEvog.s['13']++;th

Error: Found libvips 8.3.2 but require at least 8.3.3
    at /home/mhirsch/sharp/index.js:9:996
    at Object.<anonymous> (/home/mhirsch/sharp/index.js:9:1265)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions.(anonymous function) [as .js] (/home/mhirsch/sharp/node_modules/istanbul/lib/hook.js:107:24)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/home/mhirsch/sharp/test/fixtures/index.js:5:13)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Object.Module._extensions.(anonymous function) [as .js] (/home/mhirsch/sharp/node_modules/istanbul/lib/hook.js:109:37)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/home/mhirsch/sharp/test/unit/alpha.js:4:16)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Object.Module._extensions.(anonymous function) [as .js] (/home/mhirsch/sharp/node_modules/istanbul/lib/hook.js:109:37)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at /home/mhirsch/sharp/node_modules/mocha/lib/mocha.js:220:27
    at Array.forEach (native)
    at Mocha.loadFiles (/home/mhirsch/sharp/node_modules/mocha/lib/mocha.js:217:14)
    at Mocha.run (/home/mhirsch/sharp/node_modules/mocha/lib/mocha.js:485:10)
    at Object.<anonymous> (/home/mhirsch/sharp/node_modules/mocha/bin/_mocha:405:18)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Object.Module._extensions.(anonymous function) [as .js] (/home/mhirsch/sharp/node_modules/istanbul/lib/hook.js:109:37)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
    at runFn (/home/mhirsch/sharp/node_modules/istanbul/lib/command/common/run-with-cover.js:122:16)
    at /home/mhirsch/sharp/node_modules/istanbul/lib/command/common/run-with-cover.js:251:17
    at /home/mhirsch/sharp/node_modules/istanbul/lib/util/file-matcher.js:68:16
    at /home/mhirsch/sharp/node_modules/async/dist/async.js:486:20
    at /home/mhirsch/sharp/node_modules/async/dist/async.js:1074:13
    at /home/mhirsch/sharp/node_modules/async/dist/async.js:952:25
    at iteratorCallback (/home/mhirsch/sharp/node_modules/async/dist/async.js:997:17)
    at /home/mhirsch/sharp/node_modules/async/dist/async.js:847:20
    at /home/mhirsch/sharp/node_modules/async/dist/async.js:1071:17
    at LOOP (fs.js:1530:14)
    at nextTickCallbackWith0Args (node.js:420:9)
    at process._tickCallback (node.js:349:13)
npm ERR! Test failed.  See above for more details.

Is it possible that the new version of vips hasn't been pushed? Anyway, I merged your master back to this branch and pushed, though I haven't tested things yet.

Removing the sharp/lib and sharp/include directories should fix this. npm run clean will do this for you. Perhaps it should do this automagically when there's a version mismatch?

Yes, that fixes it. I don't think running it automatically sounds right. I wasn't aware npm had a clean command. Thanks ;)
Anyway, it appears all the tests pass on this merged branch. Does this look good to you?

Changes Unknown when pulling b38bc038bd232f1a93aaf4d518f120183318a525 on mhirsch:joinChannel_and_toColourspace into ** on lovell:master**.

Looking great, thanks. Always a pleasure to see a new feature PR with more lines of tests and documentation than the code to implement it :)

Changes Unknown when pulling 816204b86cf42567cb848325324b90e91ccfdf7b on mhirsch:joinChannel_and_toColourspace into ** on lovell:master**.

Changes Unknown when pulling 6f79a990cdc617b3dee1140ba82c5862404082c0 on mhirsch:joinChannel_and_toColourspace into ** on lovell:master**.

Changes Unknown when pulling 6f79a990cdc617b3dee1140ba82c5862404082c0 on mhirsch:joinChannel_and_toColourspace into ** on lovell:master**.

Thanks again Matt!

Added 7ada9db to fix a small InputDescriptor leak.


Program with match needs type annotation

The following program needs a type annotation:
x <~ return (1,2)
return (match x:
         pair(_,_): 3).nat

That seems odd, and unnecessary.

I don't think that's the right fix. I posted a fuller comment on the patch itself


Fix function getQueryName return value in DataProvider.ts

We are using the features that you have released. Thank you.
In the meantime, when calling the dataProvider.getOne function, sending "category" as a parameter was converted to "getCategor" and the query was not executed.
Therefore, after checking the cause, when returning from the getQueryName function, it determines that the slice range needs to be modified and requests a pull.

Sorry @ywroh but this would break the library.
If you are having a problem with this package, open an issue.

@MrHertal Thank you for answering. Yes, as you said, if there is a problem, we will raise the issue.


Use iOS nightlies instead of a pinned version

Looks like we weren't producing nightlies like I thought we were...

I think we have nightlies now, let's see if this works...


go to symbol

Hi,
i have an issue with the go to symbol function.
The symbol list contains additional entries, if the text "PROCEDURE my_procedure_name" occures in code comments.
Is it possible to ignore code comments when generating the symbol list?

Seems to be only an issue, when using single line comments starting with --

I fixed "Ignoring names of methods in comments" in version 0.0.7.
But it's only for block comments, not for single line comments.
So I'll add this...

Fixed in version 0.0.8


Remove excess specificity on the input element

The 'html' element requires extra friction when overriding default styles.
Is it required for any reason?

I would have said it was due to specificity in a browser, but https://github.com/necolas/normalize.css/blob/master/normalize.css doesn't even cover disabled states

You got it released in 6.2.2


Is it package supported?

I see so many issues without answering but release in October. Cannot decide should I use this library or not. Maybe some alternatives can be suggested. Thank you

yes it is supported.


Document FUNCTIONS_EXTENSION_VERSION appsetting is slot specific

Existing documentation is available here but could be useful have it mentioned in this page as well.
https://docs.microsoft.com/en-us/azure/app-service/reference-app-settings?tabs=kudu%2Cdotnet#deployment-slots

WEBSITE_OVERRIDE_STICKY_EXTENSION_VERSIONS
By default, the versions for site extensions are specific to each slot. This prevents unanticipated application behavior due to changing extension versions after a swap. If you want the extension versions to swap as well, set to 1 on all slots.

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

ID: 18aa54fd-3aa1-37c5-925c-51a0195b1030
Version Independent ID: 60198016-1ea9-e7ae-b00b-2c665d5ad8ca
Content: App settings reference for Azure Functions
Content Source: articles/azure-functions/functions-app-settings.md
Service: azure-functions
GitHub Login: @ggailey777
Microsoft Alias: glenga

Thanks for the feedback! We will review and get back to you shortly.


bugFix 596

bugFix #596
Now the Dispensation of ARV prescriptions of the same regimen is no longer combined, it means the user should indicate a specific quantity for each item of the prescription.

 Dispensation should suggest default dispensing quantity

Coverage decreased (-0.1%) to 63.758% when pulling 5f5cec1200a8d46ca0df4e518600384a9ae50e3f on Guimino:bug_596_Dispensation_should_suggest_default_dispensing_quantity into edd6f2a51dd02c09c9b576dd061332a93682e907 on esaude:master.


Constructors, fold, instances

ADD: Constructors defined and undefined for Undefinable.
ADD: fold for Undefinable.
ADD: Instances for Undefinable which are also instances of 3.0.0 Maybe.
CHG: Some minor implementation changes.

I am analysing the issue brought up by https://github.com/purescript-contrib/purescript-nullable/issues/2 and will have my opinion/answer soon on whether there is a problem.

After looking more closely at the issues raised, I see that the consequences are disastrous.


MdSelect: no scrollbar when inside dialog (Chrome only)

Bug, feature request, or proposal:
Bug
What is the expected behavior?
The scrollbar should be visible in all overflowed selects.
What is the current behavior?
The scrollbar is not visible when the select is placed within a dialog.
What are the steps to reproduce?
https://plnkr.co/edit/vp7LscCgU9X7v165vRPA?p=preview
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
latest, latest, macOS 10.12, latest, Chrome (58.0)
Other
Seems to work perfectly in FF, but Safari does exhibit inconsistent behavior as well - the scroll bar does not initially appear when inside a dialog.
Also note, the spec declares a "persistent scrollbar" should be shown for overflowing menus. That would solve this as well.

I have also been told that other elements don't render when they shown inside a dialog window, specifically when using Chrome in OS X. For instance, in this plunkr the slider track is visible, but the toggle thumb is not.

I've experienced this again outside of a dialog, so it's now my understanding that it's related to where the select is positioned on the page. See this updated plunk for demo:
https://plnkr.co/edit/4M3t8iHcQ5t2pjd9DWjl?p=preview

@crisbeto Any updates on this?


Foundry v10.286 Error

I just update my Foundry instance on Forge to v10.286 and when I load the Background-Volume module I see the following error in the console.

Running Foundry v10.287 on a private server, I can't recreate this error.

Hi @GrumpyVader, thanks for the bug report. I'll need to wait until Tuesday before investigating further, but I would appreciate if you could answer the following questions:

Did you have a scene open when you encountered this error?
What version of Background-Volume do you have installed?
What other modules do you have installed?

I've identified that the issue occurs when the game is loaded without an active scene. It appears to only be a console log, with no other issues manifesting. Nonetheless, the issue has been fixed in Version 1.5.3.


Getting Started with Question Answering (Q&A) using BERT

This closes #4653

Plagiarism check done

@splashtonia Nice tutorial! Please commit the two suggestions before we can move on to final review.

@Bayler Done making the commits.

@splashtonia This was a nice read. Easy to follow too. Keep up the good work.

jumping on this one

Very nice work 👍


[infra] Create a GIT_TIMESTAMP file for tarball

When building from debian tarball generated from tools/linux_dist_support/create_tarball.py, we get Unknown timestamp when running dart --version.
This PR addresses that by adding a GIT_TIMESTAMP file similar to how GIT_REVISION file works today.
This also removes a .decode('utf-8') call on string which was for Python 2 and no longer works in Python 3.

@athomas @whesse Would you mind take a look at this as you worked on this area recently?

Review expected in https://dart-review.googlesource.com/c/sdk/+/279278


action.AccessKeyPermission unmarshal failed

1.What did you try to do (with code snippet to reproduce)

chunkRsp, err := sw.rpc.ChunkDetails(ctx, chunkHash)

2.What did you expect to see?

sync success

3.What did you see instead?

cannot unmarshal string into Go struct field SignedTransactionView.transactions.actions of type action.AccessKeyPermission

4.Relevant NEAR network & transaction/block/receipt hash to look up

chunk hash 6P3ftNBttmek2Z8nJamXqzmLWkN8yMc4hMHNRDDAfubB

Should be fixed as of c042eac16f2136a9b6b464ecb63817e9e2463a25, thank you.


Problems with the csv file downloaded on Windows.

The option to download the csv file doesn't work well in Windows 10 with the default browsers.
Current Behavior
The option to download the csv file is working fine in Debian 9 but when i test the same function on Windows 10 the downloaded file doesn't recognize special characters (accent marks) and also when i do it in Microsoft Edge the file is downloaded without an extension.
So, i have some questions about this functionality.

How can i modify the encoding of the csv file with an existent option -included in the package- in order to see the special characters in Windows?
I tried escaping the special characters but it didn't make any difference.

The download functionality is compatible with the default browsers of Windows?

Your Environment

Tech
Version

Material-UI
3.9.2

MUI-datatables
2.0.0-beta-32

React
16.8.5

browser
Microsoft Edge 38.14393.1066.0

It may be an Excel thing. If you open the CSV in notepad, are the characters there? I just tried with Chrome and Firefox on Windows 10 and it works (both also correctly save with a CSV extension), though the characters in question do show up weird in Excel. However, they appear correct in Notepad. Can't test with Edge unfortunely.

Thanks for testing the issue. The characters shows correctly if the file (without extension) is opened in notepad or sublime but in excel are still there. I think excel doesn't recognize the encoding of the component.

I decided to do some digging and it looks like Excel will won't open the file with a UTF-8 encoding unless a BOM character is found at the beginning. I made a modified version of the repo and adding the BOM character fixes the issue for me:
https://codesandbox.io/s/mui-datatables-jckqv
However, I don't know if this character negatively impacts how other spreadsheet programs interpret the CSV file.

I think I figured it out. Add an onDownload method to your options object that looks like this:
  onDownload: (buildHead, buildBody, columns, data) => {
    return "\uFEFF" + buildHead(columns) + buildBody(data);
  }

That'll add the BOM. It can't be added by default because it messes up other spreadsheet programs.

Thank you @patorjk. Using the BOM solved the problem to show the special characters on Windows and now it downloads the file with the correct extension in Edge.


Contribution: Using InChI and InChIKey to Annotate your Chemical Entities

Contributed recipe on using InChI and InChIKey

Jordi, can you make the suggested changes so I can approve and get it into the Cookbook?


Update faq.mdx

Adding capture device issue FAQ

@Akashgoswami1 is this PR ready/complete to be merged?


Align highlights.scm with the new reference file in https://github.com/tree-sitter/tree-sitter-julia

This PR will make it easier to maintain our extension when the Tree-sitter grammar changes.

minimize the diff with upstream ts-julia

Yes, upstream & neovim & helix & we seem to be on the right path.
Sorry for an off topic: I noticed you're working on Ghostty. Looks very cool! Do you think it's already usable as  a daily driver? I usually keep away from betas but after my experience with Zed (even in January it was arguably less beta than VS Code 🥳) I'm wondering if I should try it out…

Do you think it's already usable as a daily driver?

Yes it has been my daily driver for ~6 months now. If you have access to the beta, you should give it a try!

Yes it has been my daily driver for ~6 months now.

Sounds great — although, the Discord thing is quite too game-y for me, or maybe I'm just getting too old  😂. Thanks anyway!

yeah it's a bit unfortunate. Hopefully it becomes publicly available by the end of the year :crossed_fingers:

@piechologist I just learned that I can vouch for users in the beta, if you are on the discord feel free to ping me so that I can vouch for you :+1:


US 05.02.01 - Handling follow requests

Focus:
Mood Following and Sharing
Partial User Story:
As a participant, I want to grant another participant permission to follow my most recent mood event.
Rationale:

To enforce users needing to ask for permission before being able to see another user's moods.
To manage your follow requests.

Clarifications:

Q1: If user A follows user B does that imply user B follows user A?
Q2: Should a user be able to remove followers?

Story Points:
6
Risk Level:
Medium
Testing:

Accept a user follow request; that user should be able to see your latest mood.
Decline a user follow request; that user should not be able to see your latest mood.

Completed as of PR #98


Forbid path that ends with /

We can generate code to forbid a path that ends with /.

For a service that doesn't have dir support, abc/ is still a valid key, reject this proposal for now.


Docs.MS Release Updates for Azure.Storage.Queues

Update docs metadata and targeting for release of Azure.Storage.Queues

Docs Build status updates of commit 911e02e:
:warning: Validation status: warnings

File
Status
Preview URL
Details

api/overview/azure/latest/storage.queues-readme.md
:warning:Warning
View
Details

api/overview/azure/latest/storage.queues-readme.md

Line 2, Column 1: [Warning-ms-prod-and-service] Only one of the following attributes can exist: 'ms.prod', 'ms.service'. Use ms.prod for on-premise products, or ms.service for cloud services.
Line 9, Column 16: [Warning-ms-prod-technology-invalid] Invalid value for 'ms.technology': 'azure' is not valid with 'ms.prod' value 'azure'.
Line 2, Column 1: [Suggestion-description-missing] Missing required attribute: 'description'.
Line 2, Column 8: [Suggestion-duplicate-titles] Title 'Azure Storage Queues client library for .NET - Azure for .NET Developers' is duplicated in: 'api/overview/azure/latest/storage.queues-readme.md(2,8), api/overview/azure/preview/storage.queues-readme.md(2,8), api/overview/azure/storage.queues-readme.md(2,8), api/overview/azure/storage.queues-readme-pre.md(2,8)'. Titles must be unique within a docset.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit 911e02e:
:warning: Validation status: warnings

File
Status
Preview URL
Details

api/overview/azure/latest/storage.queues-readme.md
:warning:Warning
View
Details

api/overview/azure/latest/storage.queues-readme.md

Line 2, Column 1: [Warning-ms-prod-and-service] Only one of the following attributes can exist: 'ms.prod', 'ms.service'. Use ms.prod for on-premise products, or ms.service for cloud services.
Line 9, Column 16: [Warning-ms-prod-technology-invalid] Invalid value for 'ms.technology': 'azure' is not valid with 'ms.prod' value 'azure'.
Line 2, Column 1: [Suggestion-description-missing] Missing required attribute: 'description'.
Line 2, Column 8: [Suggestion-duplicate-titles] Title 'Azure Storage Queues client library for .NET - Azure for .NET Developers' is duplicated in: 'api/overview/azure/latest/storage.queues-readme.md(2,8), api/overview/azure/preview/storage.queues-readme.md(2,8), api/overview/azure/storage.queues-readme.md(2,8), api/overview/azure/storage.queues-readme-pre.md(2,8)'. Titles must be unique within a docset.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Selfhost without using GCP

Hello, is it possible to self-host this application entirely without relying on GCP? The current make local-run command works for local development but not for production use (a lot of features are missing and the database resets automatically after some time).
Thanks.

Looks like this is possible.
Tried modifying the source code and is working as intended.
Closing this issue.


Add lint-staged to enforce linter rules on commit

Is your feature request related to a problem? Please describe.
To prevent to many broken builds by just typing/linting errors
would be nice to have lint-staged added to the app

@L03TJ3 but it already has lint-staged setup...

not on commit
@sirpy


Running Modes

Plugin Version or Commit ID
v0.10.1
Unity Version
2021.3.4f1
Your Host OS
macOS Monterey 12.4
Target Platform
UnityEditor, Windows Standalone, Mac Standalone, Android, iOS
Description
I'm just curious about the differences between the three Running Modes- Sync, Async, and Non Blocking Sync. Especially, what is Non blocking sync expected to do? I observed that in Sync Mode, The segmentation mask was perfect, but it was running at lower FPS. Asyc mode runs at higher FPS but has a lag induced where the segmentation mask takes some time to catch up. Non Blocking sync is very laggy and choppy. I tested it on Editor, Windows, mac, android and ios. And observed the same results.(Interestingly, on Android, it defaults back to Async after couple of seconds of running it on Sync mode.)
Any insight on this is greatly appreciated, thanks!!
Attaching a video for your reference:
https://user-images.githubusercontent.com/14892793/179800560-8dd9a0d0-bce7-4746-8ac9-d030134b3d4c.mov
Code to Reproduce the issue
No response
Additional Context
No response

Sync mode

Send the current frame to MediaPipe, wait for the output, and render the result.
While waiting for the output, the Main Thread will be blocked.

Pros

Output is usually synchronized with the input image, so there appears to be no delay.
We can receive the output in the Main Thread, so it's easy to implement.

Cons

When the inference takes a long time, overall FPS will degrade.

Async mode

Send each frame to MediaPipe and don't wait for the output.
Once the inference finishes, the registered callback method will be called, and the result will be rendered.

Pros

The Main Thread won't be blocked.

Cons

When the inference takes a long time, lots of empty packets will be output (annotations will flicker).

To avoid this, set a larger value to timeoutMilliSec.

We receive the output in a thread other than the Main Thread, it's rather difficult to use the value since most Unity APIs are not available.

Non-Blocking Sync mode

Mode between Async mode and Sync mode
It will try retrieving the output from the stream only when some values are in the stream.

Pros

The Main Thread won't be blocked.
We can receive the output in the Main Thread.
You can choose whether to prioritize synchronizing the input image with the output or to allow delays to increase FPS.

Cons

Lots of empty packets will be output (annotations will flicker).

In reality, you should drop them.
Maybe I should change the specifications.

If the inference can run fast enough, the Sync Mode performs better.

P.S.

(Interestingly, on Android, it defaults back to Async after couple of seconds of running it on Sync mode.)

I think this cannot happen.

It would be really useful to see this mentioned in the Wiki somewhere for sure to help explain how these modes work to anyone new

P.S.

(Interestingly, on Android, it defaults back to Async after couple of seconds of running it on Sync mode.)

I think this cannot happen.

Hi @homuler, Below is the video which shows it happening on Android.
Initially the running mode is Async and you can see a bit of lag in the segmentation.. But After few seconds at 0:40 it goes back to Async mode. (Even though it doesn't explicitly say it's in async mode in the Settings menu). Later when I chose Sync option and saved it, it goes back to being Sync without any lag in segmentation.
https://user-images.githubusercontent.com/14892793/185167983-77e410ac-364a-407a-9fa2-9d395722661e.mp4


makei init failure

descriptive application name: (ibmi) Penguin Call
git repository: https://github.com/ThePrez/PenguinCall-IBMi/
include path, separated by commas:
What library should objects be compiled into (objlib): (*CURLIB) PENGUIN
What EBCDIC CCSID should the source be compiled in: (*JOB) 37
curlib: (*CRTDFT)
Pre user libraries, separated by commas:
Post user libraries, separated by commas:
Set up commands to be executed, separated by commas:
license: LGPLv2.1
Traceback (most recent call last):
  File "/QOpenSys/pkgs/bin/makei", line 262, in <module>
    cli()
  File "/QOpenSys/pkgs/bin/makei", line 51, in cli
    args.handle(args)
  File "/QOpenSys/pkgs/bin/makei", line 191, in handle_init
    init_project.init_project(force=args.force)
  File "/QOpenSys/pkgs/lib/bob/makei/init_project.py", line 186, in init_project
    iproj_json_content = proj_spec.generate_iproj_json()
  File "/QOpenSys/pkgs/lib/bob/makei/init_project.py", line 96, in generate_iproj_json
    return json.dumps(iprojJson.__dict__, indent=4)
  File "/QOpenSys/pkgs/lib/python3.6/json/__init__.py", line 238, in dumps
    **kw).encode(obj)
  File "/QOpenSys/pkgs/lib/python3.6/json/encoder.py", line 201, in encode
    chunks = list(chunks)
  File "/QOpenSys/pkgs/lib/python3.6/json/encoder.py", line 437, in _iterencode
    o = _default(o)
  File "/QOpenSys/pkgs/lib/python3.6/json/encoder.py", line 180, in default
    o.__class__.__name__)
TypeError: Object of type 'method' is not JSON serializable

Sorry, resolved by upgrading to the latest version


Budgeting

Purpose
"As a user, I don't want to manually approve zaps"
"As a user, sometimes I want to up my limit but keep a connection I already have... deleting should be a last resort"
Backend

[x] add a budget nwc profile
[x] delete nwc profiles
[x] edit nwc profiles
[ ] don't reset the existing payments

Frontend

[x] add a budget nwc profile
[x] delete
[ ] "refill" button
[ ] edit form

Testing (how will we know this is good enough to ship)
Set a budget with the faucet and zap the faucet until it runs out
"Refill" the budget and zap the faucet
Edit the budget and zap the faucet

closed by #501


test: Redeploy registry during Vagrant provision

[ upstream commit 2035ba3 ]
The vagrant box we ship & use with Cilium 1.8 uses certs generated over
one year ago. Given that we intend to sunset Cilium 1.8 soon, rather
than regenerating the certs & box, and dealing with updating the box
image and so on for this branch, instead here we just copy the
registry.sh from the latest cilium/packer-ci-build repository as of
today and call it directly during vagrant provisioning.
Fixes: #11641

test-upstream-k8s

test-runtime

test-1.11-netnext

test-1.13-4.9

test-1.18-4.9

test-1.17-4.19

test-1.18-4.9

test-1.17-4.19

test-1.18-4.9

test-1.16-4.9

test-1.12-4.9

test-1.15-4.9

test-1.14-4.9


feat(sidecar): symlink cloudstorage into project

closes #1165
/deploy #persist extra-values=notebooks.cloudstorage.s3.enabled=true,notebooks.amalthea.extraChildResources[0].name=datasets,notebooks.amalthea.extraChildResources[0].group=com.ie.ibm.hpsys

You can access the deployment of this PR at https://renku-ci-nb-1230.dev.renku.ch

Thanks for incrementing the timeout for the acceptance tests @Panaetius!
As I mentioned previously I am pretty sure this is the result of the sessions taking longer to startup. And the acceptance tests start and stop sessions many times so the effect is magnified.
Nevertheless I will open an issue to look into this a bit and see if we can alleviate it.
This PR is good to go. I will merge it.


DEV: name without dot

Exclude dot from key names.

address https://github.com/NSLS-II/bluesky/issues/572

Nice!
I am pretty sure we don't want to set additionalProperties to false. Doesn't that disallow user-specified metadata? The event schema does block additional properties (by design) but all of the other documents are "dynamic," allowing arbitrary extra fields.

I think if you do not set 'additionalProperties' to False, then the format checking (effectively) does not apply.  If I understand it correctly, it is 'may there be properties that are not permitted by some other rule'.
@licode Does this apply recursively? ex,
doc = {...,  # mandatory start doc stuff
       'valid_key': {'invalid.subkey': 1}}

should fail.

Now this can check name recursively.

Nice!
I wrote a test for bluesky verifying that names with dots raise validation errors (when run against this branch of event_model). I found some bugs -- this actually isn't valid JSON. One way to test that is simply to try importing the event_model package.
I opened up a PR against your branch. With those fixes, my bluesky test passes, so this should be good to merge. I'll push my bluesky test once this is merged.

Neat. I just merged that.

Great. Thanks again for diving into jsonschema, @licode.


Cannot diesel database reset: "permission denied to create database"

Setup
Versions

Rust: v1.46.0
Diesel: { version = "1.4.4", features = ["chrono", "postgres"] }
Database: PostgreSQL 12.3 (installed via Homebrew)
Operating System  macOS Catalina 10.15.4

Feature Flags

diesel: ["chrono", "postgres"]

Problem Description
I'm unable to execute diesel database reset.
What are you trying to accomplish?
Drop the database and run migrations.
What is the expected output?
It works. 🙂
What is the actual output?
It doesn't work. 🙁 And more specifically this error: "permission denied to create database".
Are you seeing any additional errors?
No.
Steps to reproduce
Setting up a basic Rust project with the above versions and running the aforementioned Diesel CLI.

Checklist

[x] I have already looked over the issue tracker for similar issues.
[x] This issue can be reproduced on Rust's stable channel. (Your issue will be
closed if this is not the case)

It seems my particular issue was the user I defined in my DATABASE_URL was not a superuser. (You can correct this with Postgres itself, e.g. via psql and this snippet alter user {your_user} with superuser;).


fix: enable IAM auth for custom types and add E2Es

Description of changes
This PR introduces an E2E suite to test combinations of enableIamAuthorizationMode with IAM access to custom Queries and Mutations. It tests both scalar and custom type values, since AppSync authorizes those differently. To wit, a custom operation that returns a scalar value only needs authorization on the field of the Query or Mutation type, while an operation that returns a custom type requires authorization on the type and all fields of the type that are returned in the selection set.
To accomplish this, this PR introduces some new utilities for making SigV4 authorized GraphQL calls, as well as a new stack purpose built for this test.
Additional changes

140a75258 - light refactoring of extendFieldWithDirectives to reduce code duplication and simplify call patterns
fba25d731 - add some error handling to the extract-dependency-licenses script to prevent the yarn licenses step from failing silently

Issue #, if available
https://github.com/aws-amplify/amplify-category-api/issues/2929
Description of how you validated changes
New E2E test passes locally.
Checklist

[x] PR description included
[x] yarn test passes
[x] E2E

[x] test run 1 passes except for 3 tests, covered in run 2
[ ] test run 2 runs new custom IAM E2E test, plus 2 other tests with failures in run 1

[x] Tests are changed or added

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Discarding this PR right now as we figure out the edge cases around default authorization mode. See https://github.com/aws-amplify/amplify-category-api/pull/2975 for context


[Feature][Connector-V2] Add support for XML file type to various file connectors

Add support for XML file type to various file connectors such as SFTP, FTP, LocalFile, HdfsFile, and more.  #6326

#6327

cc @TyrantLucifer


Document Resource.duplicate() only copying exported variables' values

I'm fairly sure there's an issue about this on the main repository, but I can't find it right now.
Note: I didn't check whether this behavior is still true in master.
This closes https://github.com/godotengine/godot-docs/issues/4947.

Was this the issue you were looking for? https://github.com/godotengine/godot/issues/41417

Thanks!

Cherry-picked for 3.4.

Cherry-picked for 3.3.1.


Issue with CI of Frontend

Describe the bug
The frontend deployment pipeline fails during the "Run Angular Tests" step due to an "Unknown argument: sandbox" error. This issue prevents successful deployment and testing of the Angular application.
To Reproduce
Steps to reproduce the behavior:

Raise a pull request (PR) with changes in the repository.
Go to the GitHub Actions tab to view the running pipeline.
Locate the "frontend deployment" pipeline and observe the error during the "Run Angular Tests" stage.

Expected behavior
The pipeline should successfully complete all steps, including running Angular tests without encountering any argument errors.
Screenshots

Desktop (please complete the following information):

OS: Windows 10
Browser: Chrome
Version: 116

Smartphone (please complete the following information):

Device: Not applicable for this issue
OS: Not applicable for this issue
Browser: Not applicable for this issue
Version: Not applicable for this issue

I will fix this later


No support for macOS in Package.swift

Currently, the package just supports iOS platforms: [.iOS(.v11)],, what's blocking us for not allowing it for .macOS as well?
Cheers.

Agree! Would be great to have support for MacOS as well. Is this possible, or any guide for how to do this?

@YUNQIUGUO @edgchen1 - would you have any feedback about how to do this in a fork? Seems that some of the dependencies are iOS only

hi thanks for raising this issue.
Currently, we don't distribute pod binary targets for macOS yet. Adding macOS support is on ORT 1.17 task list.
After that, hopefully it will be easy to configure macOS platform apart from iOS here in Package.swift and pointing to the macOS pod binary target, etc.

Close this issue as now macOS is officially supported in Package.swift now.
Please reopen the issue if there's any questions.

Hello @YUNQIUGUO , could you please make a new release then? currently, the only way is pointing to main/master which is not the best approach.
Cheers


Normalise DOT/KSM tip size purchasing power

At current USD prices,

a small KSM tip is $38.46 and a small DOT tip is $82.77
a medium KSM tip is $95.3 and a medium DOT tip is $334.4
a large KSM tip is $152.48 and a large DOT tip is $606

I don't think it makes sense for the purchasing power of the same 'size' tip to differ so drastically depending on the network being tipped on.
1 KSM is approximately 5 DOT at current prices, so I've updated the KSM tip sizes to be 1/5 of the DOT sizes. This is not perfect, but better than the current situation.

I'll look into the failing tests.


updated to 8.5

re-generated clients for the 8.5 release and updated the client library versions to match
Removed the EnterpriseClient, this was using /internal APIs that should not have been included in this client. We will re-add the EnterpriseClient in an upcoming release when we have external APIs that can be used with this client.

@richkuz The python client has the same EnterpriseClient and functions using the internal endpoints. Should we leave the EnterpriseClient in place? I'm a little concerned someone could be using it already, or someone using the python client could expect it to be in the JS client as well.

@richkuz The python client has the same EnterpriseClient and functions using the internal endpoints. Should we leave the EnterpriseClient in place? I'm a little concerned someone could be using it already, or someone using the python client could expect it to be in the JS client as well.

Good catch. I didn't realize we had prior art for including the internal endpoints in the clients. I see it's available in the Ruby client, too. To be consistent with other clients, yes, let's include these endpoints in the Enterprise Search JS client.

Updated this to drop the commits that removed the enterprise client.


Add the multi-cards support for image_to_text examples

What does this PR do?

Fixes # (issue)
Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[ ] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests?

@yuanwu2017 can you update the README?

@yuanwu2017 I am wondering why didn't you use gaudi_spawn.py which has everything you want to do here and be consistent with the rest of examples?

I have tried
QUANT_CONFIG=./quantization_config/maxabs_measure.json python ../gaudi_spawn.py --world_size 2 --use_deepspeed run_pipeline.py --model_name_or_path llava-hf/llava-v1.6-mistral-7b-hf --image_path "https://llava-vl.github.io/static/images/view.jpg" --use_hpu_graphs --bf16

and the command is working on your changes and without it. The same as below,
python3 ../gaudi_spawn.py --world_size 2 --use_deepspeed  run_pipeline.py \
    --model_name_or_path llava-hf/llava-v1.6-mistral-7b-hf \
    --use_hpu_graphs \
    --bf16

Can you comment on the PR?
Yes, it can run without the patch, but it is not in TP mode. That is equivalent to running two separate instances that are not related.

@yuanwu2017 can you update the README? with information for multi cards run

Ok. I will update later.

@yuanwu2017 would you please address the comment to wrap up this PR. We want to have it in 1.18 release. Thanks

Updated the README. The PR is ok. Please help to review. @regisss @libinta @yafshar

@yuanwu2017  it seems we already have multi-card examples now, please check and close the PR.thanks


Short JobIDs appear to work for some commands but not others - return 500 error.

Bacalhau Version: 050b873c3
Steps to reproduce (maybe? This seems hard to debug)

Run a job, hit Ctrl+C, the JobID (from below) is: ed1966b2-fa70-4010-be05-083db4bfb325

$ bacalhau docker run ubuntu:latest echo hello worldssdsa
Job successfully submitted. Job ID: ed1966b2-fa70-4010-be05-083db4bfb325
Checking job status... (Enter Ctrl+C to exit at any time, your job will continue running):

	Communicating with the network  ................  done ✅  0.0s
	   Creating job for submission  ................           33.4s

Printout canceled (the job is still running).

To get more information at any time, run:
   bacalhau describe ed1966b2-fa70-4010-be05-083db4bfb325

To cancel the job, run:
   bacalhau cancel ed1966b2-fa70-4010-be05-083db4bfb325

List jobs, see it's in pending state:

$ bacalhau job list --limit=100
 CREATED   ID          JOB     TYPE   STATE
 21:10:28  8498d0cd    docker  batch  Completed
 21:29:51  76e79ed9    docker  ops    Completed
 21:30:45  a7cda682    docker  batch  Completed
 21:31:15  cfaea1d6    docker  batch  Completed
 23:32:51  2a15fcd6    docker  batch  Completed
 00:04:07  921ac136    docker  batch  Failed
 00:04:16  334236cf    docker  batch  Failed
 16:45:17  595eaa6d    docker  batch  Stopped
 16:51:02  ed1966b2    docker  batch  Pending

Describe the job via the shortID:

$ bacalhau job describe ed1966b2
ID            = ed1966b2-fa70-4010-be05-083db4bfb325
Name          = ed1966b2-fa70-4010-be05-083db4bfb325
Namespace     = 69d3a761943b09c56b5561784a855a8f43e6ce9746132578fe7c26fd80c3af56
Type          = batch
State         = Pending
Count         = 1
Created Time  = 2024-03-21 16:51:02
Modified Time = 2024-03-21 16:51:02
Version       = 1

Summary
New = 1

Executions
 ID          NODE ID   STATE  DESIRED  REV.  CREATED    MODIFIED   COMMENT
 e-dbf3ad1c  QmXE1McE  New    Pending  1     4m47s ago  4m47s ago

Stop the job (This is the failure):

$ bacalhau job stop ed1966b2
Checking job status

	Connecting to network  ................  done ✅  0.0s
	  Verifying job state  ................  done ✅  0.0s
	         Stopping job  ................  err  ❌  0.0s
Error: unknown error trying to stop job (ID: ed1966b2): Unexpected response code: 500 ({
  "error": "Multiple jobs found for jobID prefix: ed1966b2, matching jobIDs: [ed1966b2 ed1966b2-fa70-4010-be05-083db4bfb325]",
  "message": "Internal Server Error"
})
Usage:
  bacalhau job stop [id] [flags]

Examples:
  # Stop a previously submitted job
  bacalhau job stop j-51225160-807e-48b8-88c9-28311c7899e1

  # Stop a job, with a short ID.
  bacalhau job stop j-51225160

Flags:
  -h, --help    help for stop
      --quiet   Do not print anything to stdout or stderr

Global Flags:
      --api-host string         The host for the client and server to communicate on (via REST).
                                Ignored if BACALHAU_API_HOST environment variable is set. (default "bootstrap.production.bacalhau.org")
      --api-port int            The port for the client and server to communicate on (via REST).
                                Ignored if BACALHAU_API_PORT environment variable is set. (default 1234)
      --cacert string           The location of a CA certificate file when self-signed certificates
                                	are used by the server
      --insecure                Enables TLS but does not verify certificates
      --log-mode logging-mode   Log format: 'default','station','json','combined','event' (default default)
      --repo string             path to bacalhau repo (default "/home/frrist/.bacalhau")
      --tls                     Instructs the client to use TLS

unknown error trying to stop job (ID: ed1966b2): Unexpected response code: 500 ({
  "error": "Multiple jobs found for jobID prefix: ed1966b2, matching jobIDs: [ed1966b2 ed1966b2-fa70-4010-be05-083db4bfb325]",
  "message": "Internal Server Error"
})

Stopping the job with its long JobID appears to work:
bacalhau job stop ed1966b2-fa70-4010-be05-083db4bfb325
Checking job status

	Connecting to network  ................  done ✅  0.0s
	  Verifying job state  ................  done ✅  0.0s
	         Stopping job  ................  done ✅  0.0s

Job stop successfully submitted with evaluation ID: 7f6149b0-5553-4df0-8299-7646ebe5cb83

bacalhau job list
 CREATED   ID          JOB     TYPE   STATE
 21:10:28  8498d0cd    docker  batch  Completed
 21:29:51  76e79ed9    docker  ops    Completed
 21:30:45  a7cda682    docker  batch  Completed
 21:31:15  cfaea1d6    docker  batch  Completed
 23:32:51  2a15fcd6    docker  batch  Completed
 00:04:07  921ac136    docker  batch  Failed
 00:04:16  334236cf    docker  batch  Failed
 16:45:17  595eaa6d    docker  batch  Stopped
 16:51:02  ed1966b2    docker  batch  Stopped   <- this one


How do i use Vidgear for stabilizing series of images?

Question

Acknowledgment

[ ] A brief but descriptive Title of your issue.
[ ] I have searched the issues for my issue and found nothing related or helpful.
[ ] I have read the FAQ.
[ ] I have read the Wiki.

Context

Your Environment

VidGear version:
Branch:
Python version:
pip version:
Operating System and version:

Optional

It's easy, just Convert those images to video using WriteGear API(in compression mode) and then use VideoGear API to stablize that video.
Also, remember to fill the template properly before raising an issue here next time. See wiki for more info.

each frames are taken in real time. i need to process each frame after stabilization so if i process the frames after converting it to a video there will be a huge delay

@rithvikrthampy Did you saw
Real-time Video Stabilization Wiki? You can use https://github.com/abhiTronix/vidgear/wiki/Real-time-Video-Stabilization#2-using-stabilizer-class-directly-with-opencv example code for achieving realtime stabilization on webcam.


Added 'hide' as an option for wiphandling parameter

Added 'hide' as an option for wiphandling parameter
What

Added 'hide' option to wiphandling query parameter which will $.hide() any WIP PRs. Edited: javascript/pull-view.js
Updated Readme accordingly. Edited: readme.markdown

tested locally, works ok


Add links to Sandbox in testing guide

Hi! I thought it would be easier to navigate to the documentation of Ecto.Adapters.SQL.Sandbox from the testing guide if we include these two links, given that they are in a separate project. WDYT?

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart:

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart:


Add 'managedByTenant' property to az account output

Resource Provider
Microsoft.ManagedServices (request is about subscription API)
Description of Feature or Work Requested
Azure Lighthouse (Microsoft.ManagedServices) enables customers to delegate their subscriptions to a managing tenant, where the ManagedServices RP will put a cross-tenant role assignment on the subs. This will tag the subscription with a 'managedByTenants' property, that will show when customer/managing tenant is doing a GET on the subscription. API docs available @ https://docs.microsoft.com/en-us/rest/api/resources/subscriptions/get
The customer experience we are seeking, is that the 'managedByTenant' property is in the output of az account show/list - so managing tenants easily can filter/iterate/identify which subscriptions are part of their own AAD tenant, vs the delegated customer subscriptions.
Minimum API Version Required
Subscription API version 2019-06-01
Swagger Link
https://github.com/Azure/azure-rest-api-specs/blob/master/specification/resources/resource-manager/Microsoft.Resources/stable/2019-06-01/subscriptions.json
Target Date
End of November

@jiasli  planned in S162.


a question about online dialogue

Hello author, if I want to use other large models as the base model, such as LLaMA, and change it to online dialogue instead of using a dataset for evaluation, can I directly modify the evaluation bash script?

Sorry author Li, there is another question about the fine-tuning proposed in this article: is it only fine-tuned LD-Agent module or fine-tuned base big model such as ChatGLM, Because the process of learning the code of this article found that this fine-tuning of the object of the confusion


Routes migration bug with hybrid convention

I just run the migration script (npx migrate-flat-routes ./app/routes ./app/v2routes --convention=hybrid) on my project and realized that there seems to be something odd going on. Below are a couple of examples
Before the migration

After the migration

I'm happy to provide more info/details if helpful

Hmm.... that does seem odd. Thanks for the example.

Hmm... I just tested against your routes, and it looks fine. Are you sure you're on v0.6.1?
❯ tree app/routes-v1
app/routes-v1
└── resources
    ├── conversations
    │   └── $conversationId.messages.tsx
    ├── offers
    │   ├── calendar-modal.tsx
    │   ├── cancel.tsx
    │   ├── initial-state.tsx
    │   ├── new.tsx
    │   └── package-selection-grid.tsx
    ├── onboarding.tsx
    ├── openings
    │   └── new.tsx
    ├── packages
    │   └── $packageId.tsx
    ├── payment-info.tsx
    ├── products
    │   ├── channel
    │   │   └── index.tsx
    │   └── product
    │       └── index.tsx
    └── requests
        ├── $requestId.accept.tsx
        └── $requestId.reject.tsx

❯ tree app/routes-v2
app/routes-v2
└── resources+
    ├── conversations+
    │   └── $conversationId.messages.tsx
    ├── offers+
    │   ├── calendar-modal.tsx
    │   ├── cancel.tsx
    │   ├── initial-state.tsx
    │   ├── new.tsx
    │   └── package-selection-grid.tsx
    ├── onboarding.tsx
    ├── openings+
    │   └── new.tsx
    ├── packages+
    │   └── $packageId.tsx
    ├── payment-info.tsx
    ├── products+
    │   ├── channel+
    │   │   └── _index.tsx
    │   └── product+
    │       └── _index.tsx
    └── requests+
        ├── $requestId.accept.tsx
        └── $requestId.reject.tsx

I'm going to close this out. Reopen if you're still having issues.

Hmm... I just tested against your routes, and it looks fine. Are you sure you're on v0.6.1?

Interesting - I also did some additional tests and realized the issue is related to the pathless layout the resources folder is in. See the full folder structure (sorry for not including it earlier)

I can confirm that if I move the resources folder outside the __index folder the script works as expected

Ok thanks for providing more information. I'll take a look again.

I was able to reproduce it, so should be able to fix the bug.
app/routes-v2
└── __index+
    ├── _layout.tsx
    ├── resources_..tsx
    ├── resources_.conversations.tsx
    ├── resources_.offers.tsx
    ├── resources_.openings.tsx
    ├── resources_.packages.tsx
    ├── resources_.products.channel.tsx
    ├── resources_.products.product.tsx
    └── resources_.requests.tsx

I was looking into the migration script and I think 1 of the issue is related to this code
if (parentId && parentId !== 'root') {
    if (routePath?.includes('/')) {
      // multi-segment route, so need to fixup parent for flat-routes (trailing _)
      // strip parent route from route
      let currentPath = routeId.substring(parentId.length + 1)
      const [first, ...rest] = getRouteSegments(currentPath, index ?? false)
      // rewrite id to use trailing _ for parent
      routeId = `${parentId}/${first}_.${rest.join('.')}`
    }
  }

I think the check should be extended to something like parentId && parentId !== 'root' && !parentId.includes('__') to exclude pathless routes.
@kiliman does that seem reasonable?

The problem is the call to getRouteSegments(). That function is expecting the flat-routes convention, not the v1 convention, so some of the assumptions are invalid. I need to create a new version for the migration tool. I should have a fix later today.

This has been fixed in v0.6.2


Allow for screenshot within Docker

Chromium in Docker needs to be startet without sandbox or screenshot will fail.
I can also add checks if run inside docker so --no-sandbox will only be applied if running inside a container.

Thanks for merging, let me know if it needs any adjustments.


Search by company

Hey,
Your code is really cool. I was just thinking to build something like this but I told myself let’s search first and I find this.
I have 1 question BW.
Is there any option that I search a position based on the company not the location? Let say I want to connect with the engineers of google for say! Is there anyway that I could do this?
Tnx
M

Hi Madhi,
Thanks for the interest in the program! The original use case for the program didn't require being able to search by company.  It should be relatively easy to add. If you want a permanent solution, you will need to update the GUI to have an input for the company which would then be added to the preferences list. The preference list is then input to generate_queries(), which loops over all of the preferences to make all possible combinations of the inputs in the form of detailed search queries, in connexion-for-linkedin\search_tool\google_api.py, so you would need to add support for another input there.
Id like to add that if you don't care about position and/or location, you could likely just put "google" in for one of those filters and achieve similar results without having to touch any code.
Ethan


change Property.finalize... to use builder pattern

Expected Behavior
I'm adding this utility to my code
package com.xenoterracide.gradle.git.internal;

import org.gradle.api.provider.Property;

public class GradleTools {

  public static <T> Property<T> finalizeOnRead(Property<T> property) {
    property.finalizeValueOnRead();
    return property;
  }
}

like convention this could simply return this
   public Property<T> finalizeValueOnRead() {
   // current impl
      return this;
   }

Current Behavior (optional)
No response
Context
it would be nicer to be able to e.g property.finalizeOnRead().convention("...").get() instead of finalizeOnRead(property).convention("...").get(). note: at the time of this writing I'm assuming it can be called before convention.
this should also apply to finalizeValue()
p.s. I don't understand why finalizeOnRead() isn't the default behavior and instead get turned off by other methods, but I digress.

This feature request is in the backlog of the relevant team and is prioritized by them.


Username and password requested for install

When using the command cordova plugin add https://github.com/rromerogar/net.bgta.phonegap.appversion.git, as soon as the plugin is fetched I am prompted to type a Username for https://github.com and then a password. I couldn't find any username nor password in the readme, so please provide alternate instrucions or fix the install method, thanks.

@andreszs is your github username & password?


Add plot for % of models covered by primary model

Add plot for % of models covered by primary model (bar chart type of plot). This will be useful in cases when the primary model is not able to build model for some reason and we need to filter out or evaluate these cases in more detail.

This is already available
python scripts/mseries/plot.py --dataset=M3 --group=Other --metric=primary_model_per


Fix for #14: Remove from body on destroy if necessary

This change removes the popper's parent element from body if it was added there during popper creation.
I think this will fix #14

thanks


Add CSharp build and packaging to manylinux docker builds

Hi, sorry for having delayed this for so long. I have tested the release SimpleITK-2.2.0rc2.post79 from here: https://github.com/SimpleITK/SimpleITK/releases and prepared a test repository at
https://github.com/vincenzoml/SimpleITK-FSharp-Example
Will report a new issue about the test repository for you to inspect it. I confirm that on linux the release works fine. Next step will be to study the nuget packaging architecture, going to check this out as soon as possible.


Need to install MongoDB and Point to different IP address.

I need to install MongoDB in that rwbox. How can i install and configure it to work it smoothly?
I've already installed ScotchBox virtual box at <IP_ADDRESS> IP address. So I need to configure this rwbox at <IP_ADDRESS> address so that I can get result on that IP address and I don't need to define the port each time. How can I do that ?

Thanks.

Hello.

https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
https://www.vagrantup.com/docs/networking/private_network.html ("STATIC IP" section)


Theming stopped working in the React wrapper

What happens?
After switching to the latest version 0.3.104 of @scalar/api-reference-react, themes stopped working. Switching between light and dark mode still works, but the custom background from themes like "kepler" don't apply anymore.
The last version that worked as expected was 0.3.19.
What did you expect to happen?
I expected to get the same theme styling as per examples and documentation when applying it on the configuration.
How can we reproduce the issue?
'use client';
import React from 'react';
import { ApiReferenceReact } from '@scalar/api-reference-react';
import<EMAIL_ADDRESS>
type Props = {
    spec: Record<string, any>;
};

const Docs = ({ spec }: Props): React.ReactElement => {
    return (
        <ApiReferenceReact
            configuration={{
                spec: {
                    content: spec
                },
                layout: 'modern',
                theme: 'kepler',
                hideDownloadButton: true,
                hideModels: true,
                darkMode: true,
            }}
        />
    );
};

export default Docs;

OpenAPI Document
No response

This seems to be the same issue we had earlier: https://github.com/scalar/scalar/issues/2392

sorry about that, seems to be introduced by #3283, fixing now!

Thanks for the quick solution and fast support. Keep up your great work!


Feature: promotions

Is implementing a promotion planned?
Thank you.

Hey @yavulan , for the time being I have no ETA when/if that feature will be implemented. I'm happily accepting PRs if you (or someone else) want to add this to the code 😉

Hey @yavulan , I've just reviewed the Google docs about promotions and seems those should be supported out of the box since the plugin uses the native API calls and doesn't have any custom UI related for purchases.
So looking at the steps here: https://developer.android.com/google/play/billing/billing_promo I do not see anything special that needs to be used to call the native APIs in order to work with promo codes.
Have you tried using promo codes? If so what problems did you get that you think require changes to the plugin code?

Thank you for the response.
It is hard to recall details of the problem I run into in 2018.
Also, I shifted a bit from using NativeScript since then, so I can't provide you with useful information regarding this issue.
I suggest to hear out @apsaros, who upvoted the issue.
Merry Christmas & Весела Коледа!

No further response so closing this one for now. In case you still have problems, please provide more details.


how to use it in container or k8s pod

mostly i can only login to a container or k8s pod. when start it, there is no data captured like below:

when push q, error returns:

Currently, Kyanos can only run in privileged mode (--privileged) in containers/Pods.

got it, thank for reply!


String literals must be handled as decayed (const char*)

Firstly, thank you for providing such a great library.
Because handling timeout is such a common usage, it is natural to wrap it up like this (the code is based on the latest 1.83b):
template<class T>
static boost::asio::awaitable<boost::mysql::results> db_execute(boost::mysql::tcp_connection& db_conn, T&& stmt, std::chrono::steady_clock::duration timeout = 8s)
{
    boost::mysql::results results;
    boost::mysql::diagnostics diag;
    auto r = co_await(
        db_conn.async_execute(std::forward<T>(stmt), results, diag, use_nothrow_awaitable) ||
        Timeout(timeout));
    if (auto p = std::get_if<0>(&r))
    {
        auto [ec] = *p;
        boost::mysql::throw_on_error(ec, diag);
        co_return results;
    }
    else
    {
        boost::mysql::throw_on_error(boost::asio::error::operation_aborted);
    }
}

Everything works perfectly except it cannot handle things like this:
            co_await db_execute(db_conn, "START TRANSACTION");

But if you pass the string literal as its decayed form, it will work:
            co_await db_execute(db_conn, (const char*)"START TRANSACTION");

To work around this problem, I have to add the following overload:
static boost::asio::awaitable<boost::mysql::results> db_execute(boost::mysql::tcp_connection& db_conn, const char* stmt, std::chrono::steady_clock::duration timeout = 8s)
{
    co_return co_await db_execute(db_conn, std::string_view(stmt), timeout);
}

I only tested it on MSVC (19.36.32537.0).
The problem has bothered me for days. Why is this happening? Do you have any suggestions?
Thanks in advance.

I've reproduced the issue using the code you provided in the gist, with a few changes:

Changed tcp_ssl_connection to tcp_connection for I'm using MariaDB which uses non-ssl connections by default;
Fill username and password;
The full source code:

#include <boost/mysql/diagnostics.hpp>
#include <boost/mysql/error_with_diagnostics.hpp>
#include <boost/mysql/handshake_params.hpp>
#include <boost/mysql/row_view.hpp>
#include <boost/mysql/tcp.hpp>
#include <boost/mysql/throw_on_error.hpp>

#include <boost/asio/as_tuple.hpp>
#include <boost/asio/awaitable.hpp>
#include <boost/asio/co_spawn.hpp>
#include <boost/asio/experimental/awaitable_operators.hpp>
#include <boost/asio/io_context.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/ssl/context.hpp>
#include <boost/asio/this_coro.hpp>
#include <boost/asio/use_awaitable.hpp>
#include <boost/system/system_error.hpp>

#include <exception>
#include <iostream>
#include <stdexcept>
#include <variant>

using boost::mysql::error_code;
using namespace std::chrono_literals;
using namespace boost::asio::experimental::awaitable_operators;

void print_employee(boost::mysql::row_view employee)
{
    std::cout << "Employee '" << employee.at(0) << " "   // first_name (string)
        << employee.at(1) << "' earns "            // last_name  (string)
        << employee.at(2) << " dollars yearly\n";  // salary     (double)
}

// Using this completion token instead of plain use_awaitable prevents
// co_await from throwing exceptions. Instead, co_await will return a std::tuple<error_code>
// with a non-zero code on error. We will then use boost::mysql::throw_on_error
// to throw exceptions with embedded diagnostics, if available. If you
// employ plain use_awaitable, you will get boost::system::system_error exceptions
// instead of boost::mysql::error_with_diagnostics exceptions. This is a limitation of use_awaitable.
constexpr auto tuple_awaitable = boost::asio::as_tuple(boost::asio::use_awaitable);

template <class T>
static boost::asio::awaitable<boost::mysql::results> db_execute(
    boost::mysql::tcp_connection& db_conn,
    T&& stmt,
    std::chrono::steady_clock::duration timeout = 8s
)
{
    std::cout << "sizeof(stmt) = " << sizeof(stmt) << std::endl;
    std::cout << "stmt = " << stmt << std::endl;

    boost::mysql::results results;
    boost::mysql::diagnostics diag;
    boost::asio::steady_timer timer{co_await boost::asio::this_coro::executor};
    timer.expires_after(timeout);

    auto r = co_await(
        db_conn.async_execute(std::forward<T>(stmt), results, diag, tuple_awaitable) ||
        timer.async_wait(tuple_awaitable)
        );
    if (auto p = std::get_if<0>(&r))
    {
        auto [ec] = *p;
        boost::mysql::throw_on_error(ec, diag);
        co_return results;
    }
    else
    {
        throw boost::system::system_error(boost::asio::error::operation_aborted);
    }
}
/**
 * Our coroutine. It must have a return type of boost::asio::awaitable<T>.
 * Our coroutine does not communicate any result back, so T=void.
 * Remember that you do not have to explicitly create any awaitable<void> in
 * your function. Instead, the return type is fed to std::coroutine_traits
 * to determine the semantics of the coroutine, like the promise type.
 * Asio already takes care of all this for us.
 *
 * The coroutine will suspend every time we call one of the asynchronous functions, saving
 * all information it needs for resuming. When the asynchronous operation completes,
 * the coroutine will resume in the point it was left.
 *
 * The return type of an asynchronous operation that uses use_awaitable
 * as completion token is a boost::asio::awaitable<T>, where T
 * is the second argument to the handler signature for the asynchronous operation.
 * If any of the asynchronous operations fail, an exception will be raised
 * within the coroutine.
 */
boost::asio::awaitable<void> coro_main(
    boost::mysql::tcp_connection& conn,
    boost::asio::ip::tcp::resolver& resolver,
    const boost::mysql::handshake_params& params,
    const char* hostname,
    const char* company_id
)
{
    error_code ec;
    boost::mysql::diagnostics diag;

    // Resolve hostname. We may use use_awaitable here, as hostname resolution
    // never produces any diagnostics.
    auto endpoints = co_await resolver.async_resolve(
        hostname,
        boost::mysql::default_port_string,
        boost::asio::use_awaitable
    );

    // Connect to server
    std::tie(ec) = co_await conn.async_connect(*endpoints.begin(), params, diag, tuple_awaitable);
    boost::mysql::throw_on_error(ec, diag);

    // We will be using company_id, which is untrusted user input, so we will use a prepared
    // statement.
    boost::mysql::statement stmt;
    std::tie(ec, stmt) = co_await conn.async_prepare_statement(
        "SELECT first_name, last_name, salary FROM employee WHERE company_id = ?",
        diag,
        tuple_awaitable
    );
    boost::mysql::throw_on_error(ec, diag);

    // Execute the statement
    boost::mysql::results result = co_await db_execute(conn, "START TRANSACTION");

    // Print all employees
    for (boost::mysql::row_view employee : result.rows())
    {
        print_employee(employee);
    }

    // Notify the MySQL server we want to quit, then close the underlying connection.
    std::tie(ec) = co_await conn.async_close(diag, tuple_awaitable);
    boost::mysql::throw_on_error(ec, diag);
}

void main_impl(int argc, char** argv)
{
    //if (argc != 4 && argc != 5)
    //{
    //    std::cerr << "Usage: " << argv[0] << " <username> <password> <server-hostname> [company-id]\n";
    //    exit(1);
    //}

    const char* hostname = "<IP_ADDRESS>";

    // The company_id whose employees we will be listing. This
    // is user-supplied input, and should be treated as untrusted.
    const char* company_id = argc == 5 ? argv[4] : "HGS";

    // I/O context and connection. We use SSL because MySQL 8+ default settings require it.
    boost::asio::io_context ctx;
    //boost::asio::ssl::context ssl_ctx(boost::asio::ssl::context::tls_client);
    boost::mysql::tcp_connection conn(ctx);

    // Connection parameters
    boost::mysql::handshake_params params(
        "user",                // username
        "user1234",                // password
        "boost_mysql_examples"  // database to use; leave empty or omit the parameter for no
                                // database
    );

    // Resolver for hostname resolution
    boost::asio::ip::tcp::resolver resolver(ctx.get_executor());

    // The entry point. We pass in a function returning
    // boost::asio::awaitable<void>, as required.
    boost::asio::co_spawn(
        ctx.get_executor(),
        [&conn, &resolver, params, hostname, company_id] {
            return coro_main(conn, resolver, params, hostname, company_id);
        },
        // If any exception is thrown in the coroutine body, rethrow it.
        [](std::exception_ptr ptr) {
            if (ptr)
            {
                std::rethrow_exception(ptr);
            }
        }
    );

    // Calling run will execute the requested operations.
    ctx.run();
}

int main(int argc, char** argv)
{
    try
    {
        main_impl(argc, argv);
    }
    catch (const boost::mysql::error_with_diagnostics& err)
    {
        // You will only get this type of exceptions if you use throw_on_error.
        // Some errors include additional diagnostics, like server-provided error messages.
        // Security note: diagnostics::server_message may contain user-supplied values (e.g. the
        // field value that caused the error) and is encoded using to the connection's encoding
        // (UTF-8 by default). Treat is as untrusted input.
        std::cerr << "Error: " << err.what() << '\n'
            << "Server diagnostics: " << err.get_diagnostics().server_message() << std::endl;
        return 1;
    }
    catch (const std::exception& err)
    {
        std::cerr << "Error: " << err.what() << std::endl;
        return 1;
    }
}

And the output:
sizeof(stmt) = 18
stmt = 鹣l
Error: er_parse_error [mysql.common-server:1064]
Server diagnostics: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?睡?l' at line 1

If you change the code to:
    boost::mysql::results result = co_await db_execute(conn, (const char*)"START TRANSACTION");

The problem goes away, and the output:
sizeof(stmt) = 8
stmt = START TRANSACTION

It seems to me that the problem has nothing to do with mysql library, because stmt is already rubbish when it reaches db_execute().
But I still cannot figure out why.

I'm investigating. The output you're receiving is likely related to Windows failing to figure out that you're outputting UTF-8. It's probably trying to decode your string using your active code page - try running CHCP 65001 in the terminal before running the program. I'll keep you informed.

Thank you. I tried CHCP 65001 but it didn't make a difference. I already use /utf8 compiler option to compile the code.
Also, I noticed the type T is interpreted differently in the two cases:

It is interpreted as const char [18] in the first case.
It is interpreted as const char* in the second case.

Could it be like in the first case (const char [18]) converted in and out into the coroutine context, maybe the content is lost during the way? I'm no coroutine expert, I'm just guessing.
However, what puzzled me is that if you don't wrap it up in db_execute(), but to call
    conn.async_execute("START TRANSACTION", ...);

directly, it will run without any problem.

This is looking like a problem with MSVC and/or Boost.Asio when passing reference-to-array parameters to coroutines. An example on how to reproduce it:

template <class T, std::size_t N>
boost::asio::awaitable<void> print(const T (&arr)[N])
{
    // arr points to garbage
    co_await boost::asio::post(co_await boost::asio::this_coro::executor, boost::asio::use_awaitable);
    for (int i = 0; i < N; ++i)
    {
        std::cout << arr[i] << std::endl;
    }
}

boost::asio::awaitable<void> mytest()
{
    const int param[2] = {41, 42};
    co_await print(param);
}

int main(int argc, char** argv)
{
    boost::asio::io_context ctx;
    boost::asio::co_spawn(ctx.get_executor(), &mytest, [](std::exception_ptr ptr) {});
    ctx.run();
}

It is not related to Boost.MySQL. I'm going to keep investigating to direct you either to Asio or to MSVC. It doesn't happen on Linux/clang BTW.

As a wordaround for now, suffixing your strings with the sv string view literal works, too (the problem is only with plain old C arrays):
using namespace std::string_view_literals;

// ...

boost::mysql::results result = co_await db_execute(conn, "START TRANSACTION"sv);

Thank you very much!
Looking forward to your investigation result.

I'm pretty sure it's a MSVC problem. Minimum example to reproduce:
#include <array>
#include <coroutine>
#include <iostream>

struct Task
{
    struct promise_type
    {
        using Handle = std::coroutine_handle<promise_type>;
        Task get_return_object() { return Task{Handle::from_promise(*this)}; }
        std::suspend_always initial_suspend() { return {}; }
        std::suspend_never final_suspend() noexcept { return {}; }
        void return_void() {}
        void unhandled_exception() {}
    };
    explicit Task(promise_type::Handle coro) : coro_(coro) {}
    void destroy() { coro_.destroy(); }
    void resume() { coro_.resume(); }

private:
    promise_type::Handle coro_;
};

Task myCoroutine(const int (&arr1)[2], const std::array<int, 2>& arr2)
{
    std::cout << arr1[0] << ", " << arr1[1] << std::endl;
    std::cout << arr2[0] << ", " << arr2[1] << std::endl;
    co_return;
}

constexpr const int arr1[2] = {41, 42};
constexpr std::array<int, 2> arr2{41, 42};

int main()
{
    auto c = myCoroutine(arr1, arr2);
    c.resume();
}

I've submitted a report to them with this repro.
I'm afraid I can't do anything else on my side on this, so if you're happy with the result, I'll be closing the issue.
Regards,
Ruben.


Base URL in Vite Example should be 'absolute'

If you don't add a slash in front, it will attempt to import the assets relative to the current URL pathname.
https://github.com/CesiumGS/cesium-vite-example/blob/main/vite.config.js#L7
The example should add the slash in front, and/or explain this limitation.

I'm confused at the issue here. We do add a slash at the beginning of the base url when built with Vite.
https://github.com/CesiumGS/cesium-vite-example/blob/afebdf5ac122d0969eb323a0d02059caa8032766/vite.config.js#L14
Did you have problems running this until you changed that line? Could you provide steps to reproduce?


Add large file size logging

Overview
Before a push to the remote locker occurs we should scan the locker for large files and display them in the execution log.  Since remote systems like Github have file size limits the remote system can reject a push due to that but the message provided back isn't very informative.  Have this list of large files would help that.
Requirements

When full-remote is used, before a push, scan the repo for files over 50MB in size and display the results in the execution log.

Approach
see req.
Security and Privacy
N/A
Test Plan
TBD

related to #31


Linux GPU unittests on CircleCI fail due to CUDA version mismatch

For example: https://app.circleci.com/pipelines/github/pytorch/vision/22939/workflows/634ad977-7fed-416c-9784-ba8c5de2f26e/jobs/1819947?invite=true#step-108-3105
Note that we have the same tests on GHA in https://github.com/pytorch/vision/blob/main/.github/workflows/test-linux-gpu.yml so we might also opt to just drop the CircleCI tests now instead of fixing this. However, there is also an outage going on there. See #7130 for details.
cc @seemethere @atalman @malfet

We have migrated away from CircleCI so this is no longer valid.


[native] IPFS plugin is causing app to stop working

After enabling the IPFS plugin, the console shows the error: Unhandled Promise Rejection: ReferenceError: Cannot access uninitialized variable. This is likely caused by a missing config property for the IPFS gateway. Config file is here
Discord conversation for context
Steps to reproduce

Use the code from this commit
Build Composer and SSC native app
Enable the IPFS plugin then quit and reopen the app

@richburdon

@mjamesderocher I tried to reproduce this and wasn't able to, is there anything else you did on your machine to make this happen? I was able to turn on IPFS plugin and restart the socket runtime and have the app startup.

I can't replicate it now. I was seeing it on Monday when I was on a call with Rich and yesterday I saw it occasionally the other day while working on the mac app, but it wasn't every time I opened the app. So we can close this and if I experience it again, I will try to see if I can track down more details of what was causing it.


Make pgadmin config persistent and backups accesible for pgadmin

Use a volume to have persistent configuration for pgadmin and add backups volume for easier restoring to the pgadmin instance.
To easily find the backups directory inside the pgadmin container, one last step should be made. You should create a symbolic link pointing from your user directory to the backups folder. Something similar to this:
docker exec -it resolve_pgadmin sh # To enter in the container with a shell
ln -s /backups<EMAIL_ADDRESS># Substitute<EMAIL_ADDRESS>with the value for PGADMIN_DEFAULT_EMAIL

I tried to add it to the docker-compose file via the "command" argument but I couldn't get it working so far.

Sorry I've been meaning to take a look and see if there was a way to run that command from the docker-compose, as on systems like QNAP getting ssh access can be complicated for less technical users

Ok I think I got it working correctly, would you mind testing it on your end just to make sure everything works as expected?

Amazing job! Looks good to me!
Just out of curiosity, what is this symbol | for after the sh -c command?

Just out of curiosity, what is this symbol | for after the sh -c command?

In Yaml it just indicates that what follows is intended to be multiple lines, in this case it let's me run multiple shell commands before the container starts!

Cool! thank you for your explanation and work!

Absolutely! You as well!