Cannot render pdf with images stored locally

I cannot get images stored locally to be rendered in generated pdf with Puppeteer, but external images for which I specify a url work.
In particular, in the sample code below, rendering the page in test_html1 works, while rendering the test_html2 does not work.
(async () => {
const browser = await puppeteer.launch({ args: ['--no-sandbox'] });
const page = await browser.newPage();
const test_html1 = `<html><h3>Hello world!</h3><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/2/2f/Google_2015_logo.svg/1024px-Google_2015_logo.svg.png"></html>`;
 // const test_html2 = `<html><h3>Hello world!</h3><img src="file:///home/cristina/Documents/logo.jpg"></html>`;
await page.goto(`data:text/html,${test_html}`, { waitUntil: 'networkidle0' });
await page.pdf({ path: `${this.outputPath}/test-puppeteer.pdf`,
  format: 'A4', landscape: !data.isPortrait,
  margin: { top: '0.5cm', right: '1cm', bottom: '0.8cm', left: '1cm' }, printBackground: true });
await browser.close();
})();`

Result with test_html1:

Result with test_html2:

@acgrama
You can see why by launching with headless: false option.
I can see this error:

It's a security block to protect from malicious websites to access local images, and cannot be disabled by --no-sandbox option.

Aha, thank you, this is very valuable information!
Too bad I cannot start with headless: false option, since I'm running in docker as root (also the reason why I'm using the -no-sandbox option).

@acgrama
In that case, why don't you just serve those static files? Something like this should work:
const puppeteer = require('puppeteer');
const express = require('express');
const app = express();
app.use(express.static('/home/cristina/Documents'))
app.listen(3000);

(async () => {
  const browser = await puppeteer.launch({ args: ['--no-sandbox'] });
  const page = await browser.newPage();
  const test_html = `<html><h3>Hello world!</h3><img src="http://localhost:3000/logo.jpg"></html>`;
  await page.goto(`data:text/html,${test_html}`, { waitUntil: 'networkidle0' });
  await page.pdf({ path: `${this.outputPath}/test-puppeteer.pdf`,
    format: 'A4', landscape: !data.isPortrait,
    margin: { top: '0.5cm', right: '1cm', bottom: '0.8cm', left: '1cm' }, printBackground: true });
  await browser.close();
})();

Also I checked Chromium options, but I don't find useful one for that.

I faced this issue a while ago, hosting images on an s3 bucket and using that image worked fine.
+1 for local resource support request though when running puppeteer inside docker 👍

As part of the docker image/script, you could also start a web server to serve the image.
You could also write the file dynamically, navigate to it, and generate the pdf. This worked for me:
const puppeteer = require('puppeteer');
const fs = require('fs');
const {promisify} = require('util');
const writeFile = promisify(fs.writeFile);

(async() => {
  const browser = await puppeteer.launch();
  const page = await browser.newPage();

  const CWD = process.cwd();
  const OUT_FILE = 'using_local_files.html';

  await writeFile(OUT_FILE, `
    <html>
      do you see an image?
      <img src="file://${CWD}/test.png">
    </html>
  `);

  await page.goto(`file://${CWD}/${OUT_FILE}`)
  await page.pdf({path: 'saved.pdf'});

  await browser.close();
})();

I expected the --allow-file-access-from-files and --enable-local-file-accesses flags to be needed, but they're not.

@yujiosaka @ebidel Thank you both for the suggestions! Yeah, I was lazily hoping we could reuse as much of our current (PhantomJS-based) code as possible ;-)
But it should be feasible to change our current approach without too much effort.

I've stumbled with this issue to, another solution would be to use data streams for the img src, eg:
function base64_encode(file) {
var bitmap = fs.readFileSync(file);
return new Buffer(bitmap).toString('base64');
}
img.src = 'data:image/png;base64,' + base64_encode(imagePath);

Puppeteer is officially supported under Google Cloud Functions, therefore I believe it would be correct thing to have an option to use local files without need of an extra server or temporarily saving html somewhere and read it.

I am using Puppeteer for PDF generation on GCF too. There should be a way to embed an image without spinning up a server.

Any recommended way without a webserver by now?

@acgrama
In that case, why don't you just serve those static files? Something like this should work:
const puppeteer = require('puppeteer');
const express = require('express');
const app = express();
app.use(express.static('/home/cristina/Documents'))
app.listen(3000);

(async () => {
  const browser = await puppeteer.launch({ args: ['--no-sandbox'] });
  const page = await browser.newPage();
  const test_html = `<html><h3>Hello world!</h3><img src="http://localhost:3000/logo.jpg"></html>`;
  await page.goto(`data:text/html,${test_html}`, { waitUntil: 'networkidle0' });
  await page.pdf({ path: `${this.outputPath}/test-puppeteer.pdf`,
    format: 'A4', landscape: !data.isPortrait,
    margin: { top: '0.5cm', right: '1cm', bottom: '0.8cm', left: '1cm' }, printBackground: true });
  await browser.close();
})();

Also I checked Chromium options, but I don't find useful one for that.

If I use your code it only quite works. When I look at the web page in headless: false mode the image is rendered, when I generate the pdf file (or a screenshot) though, the image file is not rendered:

Any ideas/solutions?

@acgrama
In that case, why don't you just serve those static files? Something like this should work:
const puppeteer = require('puppeteer');
const express = require('express');
const app = express();
app.use(express.static('/home/cristina/Documents'))
app.listen(3000);

(async () => {
  const browser = await puppeteer.launch({ args: ['--no-sandbox'] });
  const page = await browser.newPage();
  const test_html = `<html><h3>Hello world!</h3><img src="http://localhost:3000/logo.jpg"></html>`;
  await page.goto(`data:text/html,${test_html}`, { waitUntil: 'networkidle0' });
  await page.pdf({ path: `${this.outputPath}/test-puppeteer.pdf`,
    format: 'A4', landscape: !data.isPortrait,
    margin: { top: '0.5cm', right: '1cm', bottom: '0.8cm', left: '1cm' }, printBackground: true });
  await browser.close();
})();

Also I checked Chromium options, but I don't find useful one for that.

If I use your code it only quite works. When I look at the web page in headless: false mode the image is rendered, when I generate the pdf file (or a screenshot) though, the image file is not rendered:

Any ideas/solutions?

The reason is ERR_UNSAFE_PORT! The port 6666 is considered unsafe. A full list of unsafe ports can be seen here: https://superuser.com/questions/188058/which-ports-are-considered-unsafe-by-chrome
So just change the port to something that is not on this list and everything works fine.


feat: isStrict set as false attempts to parse all number types

When isStrict is set to false attempt to parse all number types and convert to the requested type

@rubixhacker
This is great, thank you! :tada:

Thanks! 😄


Feedback for “AI Agents”

is there an opption for using costume Agents? like a framework for developing an Agent and pluing it to AnythingLLM?

In the UI we have a modal and text when typing in @agent that says custom agents are coming soon. So no, currently there is no custom agent support. We do plan on seeing if we can integrate tools like AutoGen and CrewAI so that you can resuse work you may have already done within the context of AnythingLLM


Remove docs

depends on https://github.com/camunda-cloud/camunda-cloud-documentation/pull/664
depends on publishing of https://github.com/camunda-cloud/camunda-cloud-documentation/commit/8ea3f9273d609244970add5914be134c9a09ec00

Dependencies resolved, ready for review

Looks good, although this line is a bit irrelevant now:
https://github.com/camunda/camunda-modeler/blob/6e80e4de8e638834d03afba75bfba4ff2969815e/.gitignore#L6

@marstamm thanks, adjusted.


Show error message if static ip is not found.

When a use selects a static ip that is not within the network's subnets
we show an error message.

Hi cf folks,
I cannot see the codeclimate result, how can I see what the issue is?
Cheers,
Fabian

You cannot see codeclimate result after logging in? (I wouldnt bother doing much about codeclimate result as it is something that we use as a global metric).
We are also about to merge change to networking which makes this error show up as:
Are you sure you want to deploy? (type 'yes' to continue): yes

Director task 217
  Started preparing deployment > Preparing deployment. Failed: Job 'db3' with network 'private' declares static ip '<IP_ADDRESS>', which belongs to no subnet (00:00:00)

Error 150002: Job 'db3' with network 'private' declares static ip '<IP_ADDRESS>', which belongs to no subnet

Task 217 error

Is that acceptable error message in your opinion?

Hi @cppforlife ,
thanks for the response! I think the error message is all right :smile: .
I'll close this pull request then.
Cheers,
Fabian


Update Composer dependencies (2021-10-15-00-13)

Visual regression test passed!
View the visual regression test report


Close button on notebooks is broken

open a notebook, like .vscode/notebooks/my-work.github-issues
select X to close
:bug: nothing happens...

The issue here is that we wrongly assume we are in list context:
https://github.com/microsoft/vscode/blob/5b5e760015c063cd44e987e4f2e5316a8ff412e2/src/vs/workbench/browser/parts/editor/editorCommandsContext.ts#L63-L64
Because in a notebook, if you focus a markdown part (above the editor), focus is on a list widget.
Previously for editor commands at least we did fallback to the active editor:
https://github.com/microsoft/vscode/blob/f1e16e1e6214d7c44d078b1f0607b2388f29d729/src/vs/workbench/browser/parts/editor/editorCommands.ts#L1371-L1377
We seem to not be doing this anymore, or only when no context is present:
https://github.com/microsoft/vscode/blob/5b5e760015c063cd44e987e4f2e5316a8ff412e2/src/vs/workbench/browser/parts/editor/editorCommandsContext.ts#L69-L75

Verification:

set workbench.editor.showTabs to single
open a notebook (such as GitHub Issues)
click the "X" button top right to close
ensure you can close the notebook
try with a normal text editor too


Updating model with pluralization, dns records, optional fields

closing due to https://github.com/CybercentreCanada/assemblyline-base/pull/741


Update index.yml

Fixed faulty url

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/index.yml
95
1
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Docs Build status updates of commit 471ec50:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/index.yml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
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.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


]UpdateTatin should allow to update to a specific version

Even if that means to go back to an older version.

This is the only escape route in case the user has updated the original version her installation came with to the latest version available on GitHub.
There might be versions available between these two, and the user might want to go back to one of them for some reason. Currently this cannot be achieved.

Implemented in 0.117.0


Do you have a example firebase.json?

I can't run project without file firebase.json. Do you have a example firebase.json . Thanks a lots

https://github.com/invokemedia/vue-push-notification-example/issues/1


Fix computation for pauseDelayRemaining

Sorry for the inconvenience! Turns out that when I fixed the other issue I also managed to brick something 😅
These missing parens transpiled to:
(nextCharAtRef.current != null) ? nextCharAtRef : 0 - Date.now()`

Which executes differently from:
((nextCharAtRef.current != null) ? nextCharAtRef : 0) - Date.now()`

The error manifested as very-very-long timeouts being set before printing the next character whenever resume was called (e.g. scheduling for Date.now() ms in the future, vs. ~23ms)

Oops. Thanks for the fix!

Published in v1.2.1.


Support for translation

Hi @lukasalexanderweber,
The OpenCV bundle adjuster does not support translation between frames, but only in-place rotation, in the global optimization step.
During my thesis work two years ago I made something similar to your package, wrapping some of OpenCV's stitching module, but not really quite as polished. As I was dealing with frames that at times suffered from quite a severe translation between them, I found OpenCV's results to be somewhat underwhelming. The bundle adjuster works just fine when the translation is small, but gradually starts to fail the larger it gets.
I started looking into other packages that implemented sparse bundle adjustment, as they had support for translation, but did not have the time to implement the Python bindings and ended up using directly in C++.
Have you ever looked into this? Recently, a package with bindings of Lourakis' sparse bundle adjustment C library has been updated after many years for Python 3 compatibility. Would you be interested in trying to add this functionality to your package?

Hey @DiTo97,
thanks for reaching out! :)

Would you be interested in trying to add this functionality to your package?

I am  generally open to new features if they are developed, tested and documented by the person they are of interest to.
First of all a sample dataset would be nice that shows the issue and that we can use for testing.

Have you ever looked into this?

no, I'm not familiar with the concept of bundle adjustment, till now I've just used what's there.

Hi @lukasalexanderweber,
I will ask if I can share the dataset, as I have not touched it in two years, but I had already isolated the problematic frames when I used it.
I will let you know next week!

Hi again @lukasalexanderweber,
I asked for permission, but it was denied, and I cannot share the dataset.
In retrospect, I will close the issue because reworking OpenCV stitching module to enable a translation model would have to dig much deeper than just the bundle adjustment stage, as has already been pointed out in the answer of this post.
Regardless, the problem arises only when the (absolute or relative) 6-dimensional camera poses are unknown and the stitching pipeline has to perform auto-registration to estimate them from the acquired frames.
I would probably consider adding a cameras arg to the stitch function of your Stitcher wrapper class. In that way, the auto-registration stage could be made optional in the stitching pipeline. What do you think about that?
Appendix
For future reference, if anyone had to auto-register 6-dimensional camera poses with translation, I would use the Pixsfm package, which uses COLMAP and Ceres Solver for solving bundle adjustment with support for deep features and GPU acceleration.
Once the auto-registration is complete, the composition code from this package will be used.


SASS-2001 - Delete Employment audit event.

Description
Please include a brief summary of the change you've made and the issue that it fixes.
Add a link to the relevant story in Jira
SASS-2001
Checklist PR Reviewer
Before Reviewing

[x]  Have you pulled the branch down?
[x]  Have you assigned yourself to the PR?
[x]  Have you moved the task to “in review” on JIRA?
[ ]  Have you checked to ensure all dependencies are up to date?
[ ]  Have you checked to ensure its been rebased against the current version of main?

Whilst Reviewing

[ ]  Have you run the tests?
[ ]  Have you run the journey tests?
[ ]  Have you looked at the JIRA story to make sure all Acceptance Criteria has been met?

After Reviewing

[ ]  Have you checked for merge conflicts or any changes in the current main that may affect the current pull request? i.e. does it need another rebase?
[ ]  Have you checked to make sure there are no builds in the pipeline before you merge?
[ ]  Have you moved the task to “in pipeline” on Jira?

[x]  Have you rebased against the current version of main?
[x]  Have you checked code coverage isn’t lower than previously?

After PRs been raised

[ ]  Have you checked the PR Builder passes?

uk.gov.hmrc: bootstrap-frontend-play-28 and uk.gov.hmrc: bootstrap-test-play-28 could be bumped to 5.19.0


Fix mode logic to preserve setuid bit

@krobertson @olegshaldybin @mbhinder

NOTE: rebase off master to fix the tests... merged the PR Poler had to fix that. Didn't realize he never merged it.

LGTM

Did anyone figure out why this fixes setuid handling? I am puzzled, the change looks good but I don't understand how this was preventing setuid from being carried over.

Further up, tar.FileInfoHeader is used which has all the support for all special mode flags:https://golang.org/src/archive/tar/common.go?s=5701:5766#L194
However, the "mode" variable comes from FileInfo.Mode(), which I believe strips out some of the flags.

@krobertson: FileInfo.Mode() should respect all flags, it comes from os.Stat... weird that it doesn't pick it up.

Ah, found more info. The value of the setuid bit in the tar spec is different than the filesystem. Tar package has a private constant for the setuid bit and others, and it doesn't match os.ModeSetuid.

Got it, makes sense: the assignment doesn't make sense, as the structure of tar header and os.FileMode doesn't match at all.
Change likely needs a test.

I pushed up a simple test. Change LGTM.


Shutdown while charging

When I press my RG353M power button, ArkOS shuts down graciously - nice! :)
But if the console was charging by power cable, the charging stops when ArkOS shuts down
(the power led is off and doesn't turn orange)

That's normal behavior for the unit.  You have to unplug and replug in that situation.


chore: Automation test cases added for shared drive gsheet

Description
This PR adds automation test cases for Google sheet shared drive support feature.
Fixes #37916
or
Fixes Issue URL

[!WARNING]
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.

Automation
/ok-to-test<EMAIL_ADDRESS>:mag: Cypress test results

[!CAUTION]
If you modify the content in this section, you are likely to disrupt the CI result for your PR.

Communication
Should the DevRel and Marketing teams inform users about this change?

[ ] Yes
[x] No

/build-deploy-preview skip-tests=true

Moving it to blocked state as renderer is crashing when running gsheet test cases, run details here. Active discussion happening in the thread


Home background

Is your enhancement request related to a problem? Please describe.➕
I want to add a gaming background to home of app. which make it more attractive
Describe the solution you'd like
select a good gaming background, add it
Select program in which you are contributing
No response
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Hey @yuvraj6446 !
Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹

Hey @yuvraj6446! 🙂
It seems like you are not following proper guidelines !! 👀
Read documentation properly !!🙏
If you have any queries reach out to us on Discord🕹 .

Hey @yuvraj6446 ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇


Feature request: configuration field to call a transform function

Hey team, I'm in the process of migrating from Algolia to typesense and all is going well, however, the Algolia extension allows us to provide the name of a another function that can transform our document data before writing it to the Algolia index.
This would be extremely useful to have available in the typesense extension. We use it to modify one of the ID's as we are indexing a subcollection that exists nested in multiple places e.g. programs/{programId}/program-users/{userId}. As the docs we are indexing are keyed by the userId we need to append the programId as a suffix to prevent records overwriting each other.
I believe something like a transform function would be useful for a bunch of other lodged issues where people want to exclude records with certain values from their typesense collection. Supporting a returned object like below would be extremely useful.
{      payload: { ... data to sync },      docId: 'someId',      action: 'skip' // 'skip' | 'sync' | 'delete'   }
This would allow us to have more control over what goes into our typesense collections.
Cheers

I'd definitely appreciate a PR for this


Reliable topic implementation

This PR implements the reliable topic. It only supports DISCARD_OLDEST topic overload policy. The executor is not configurable which will be enhanced later.
A fix in SerializationService is done for handling null objects.
Topic::MessageListener interface is added.
Updates the boost dependency to 1.61 version. Also added date_time header only lib as dependency for calculation of milliseconds since epoch as needed for ReliableTopic.

Test FAILed.

Test FAILed.

Test FAILed.

Test FAILed.

Test FAILed.

Test FAILed.

verify

Test FAILed.

Test FAILed.

verify

Test PASSed.


No whl for python 3.12

The current wheel releases on pypi are only for python 3.8 to 3.11, would it be possible to release a build for python 3.12 too?
Thank you

Hi and thanks for your question.
Work is already in progress and will be released in November weeks when we update to CityEngine 2024.1.
You can of course already use that branch to build yourself :-)


chore: cleanup and docs

So the side folders typesxxx typegenxxx are not needed anymore?

No, these were a playground for type generation. The only types and typegen folder that still reside should be enough to do development

What about the tfchainVersions.jsonl file? I though it was required

It's specific to each network so doesn't make sense to keep it tracked in git


Only detect document edges

Thank you very much for your algorithm. I am currently using it for document edge detection.
In this process, I do not want to detect the edges of document content (text or image content), nor do I want to detect the edges of the background, only keeping the edges of the document.
But obviously, the results I obtained contain too many other edges, and I see that the feature maps given by out1 and out2 also contain many other edges.
As shown in the figure, I have converged after 24 epochs of training, with approximately 50000 pairs of image data.
I hope to receive your

reply and provide some directional suggestions. Thank you very much.

Thank you very much for your algorithm. I am currently using it for document edge detection. In this process, I do not want to detect the edges of document content (text or image content), nor do I want to detect the edges of the background, only keeping the edges of the document. But obviously, the results I obtained contain too many other edges, and I see that the feature maps given by out1 and out2 also contain many other edges. As shown in the figure, I have converged after 24 epochs of training, with approximately 50000 pairs of image data. I hope to receive your  reply and provide some directional suggestions. Thank you very much.

Hi, sorry for my late response:
I think you need more samples, you just have 1747 iterations for an epoch. Mine are around 56k per epoch. As this is like a segmentation you should you some preprocessing or post processing  in this task.

Thank you very much for your algorithm. I am currently using it for document edge detection. In this process, I do not want to detect the edges of document content (text or image content), nor do I want to detect the edges of the background, only keeping the edges of the document. But obviously, the results I obtained contain too many other edges, and I see that the feature maps given by out1 and out2 also contain many other edges. As shown in the figure, I have converged after 24 epochs of training, with approximately 50000 pairs of image data. I hope to receive your  reply and provide some directional suggestions. Thank you very much.

您好，想请问您一下我在执行python main.py --choose_test_data=-1时报错，您有时间能回复一下吗？我将不胜感激！


Update topbar with selected language (fix focus)

focus fixed!

Still some bugs on this and I'm working on them


fix: ds initial values logic on app import

Description
Today when we import any app, the initial values for our unconfigured datasources are dependant on the exported file from server which doesn't include all of the formconfig. This PR solves that issue and updates the server definition of the datasource with the new initial values. Also added a check to not make an API call if the initial value is correct.
PR fixes following issue(s)
Fixes #29409
Media

A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video

Type of change

Please delete options that are not relevant.

Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)
Chore (housekeeping or task changes that don't impact user perception)
This change requires a documentation update

Testing

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Also list any relevant details for your test configuration.
Delete anything that is not relevant

[ ] Manual
[ ] JUnit
[ ] Jest
[ ] Cypress

Test Plan

Add Testsmith test cases links that relate to this PR

Issues raised during DP testing

Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR)

Checklist:
Dev activity

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Speedbreak features have been covered
[ ] Test plan covers all impacted features and areas of interest
[ ] Test plan has been peer reviewed by project stakeholders and other QA members
[ ] Manually tested functionality on DP
[ ] We had an implementation alignment call with stakeholders post QA Round 2
[ ] Cypress test cases have been added and approved by SDET/manual QA
[ ] Added Test Plan Approved label after Cypress tests were reviewed
[ ] Added Test Plan Approved label after JUnit tests were reviewed

Summary by CodeRabbit

Refactor

Enhanced comparison logic in the initialization of data sources to improve performance.
Updated form control utilities to allow excluding encrypted fields from initial configurations.

/build-deploy-preview skip-tests=true

@ayushpahwa On adding the credentials on the import modal, the authentication details aren't being shown within the app https://www.loom.com/share/6928f74c89db40bda899a40a415629df?sid=a40f4ce4-7599-4204-b1ea-5d12be04f1db

/build-deploy-preview skip-tests=true

/ok-to-test<EMAIL_ADDRESS>@tag.ImportExport"


Allow to specify arbitrary smtp smarthosts

With this small modification, any smtp server with authentication can be used as a smarthost

Thanks for the @GuLinux , please can you update the README and its good to merge.


use full length APT key

This is to make newer APT module versions happy. Without this change,
it always complains 'The id should be a full fingerprint (40 characters), see README.'

Thank you for contributing to stackforge/puppet-ceph!
stackforge/puppet-ceph uses Gerrit for code review.
Please visit
http://docs.openstack.org/infra/manual/developers.html#development-workflow
and follow the instructions there to upload your change to Gerrit.

Hei tobru
just wanted to check back with you, if I can support you in getting your patch submitted through Gerrit.
Cheers,
David

Hey @aldavud,
That would be nice: How do I Gerrit?
Cheers,
tobru

@tobru ok, here's a short summary of the steps (taken from http://docs.openstack.org/infra/manual/developers.html#account-setup)

Get a Launchpad Account
Join the Foundation
Sign the ICLA and if needed get your company to sign the CCLA
Sign in to Gerrit
Install git-review
Submit your patch to Gerrit:

cd <repositoryname>
git review -s
git config --global gitreview.username yourgerritusername
git review

cheers,
david

Thanks @aldavud

Hei @tobru
Just wanted to quickly check back with you on the status of getting your patch submitted via gerrit.

I'm sorry but I didn't have time to look into this Gerrit system and also haven't seen the point to sign a CCLA/ICLA... This system isn't contributor friendly (so many additional things for just a small code update), so for the moment I've chosen to maintain a fork of this module. If I sometimes find the time to contribute by using Gerrit, I'll will do it.

OK, that's fair criticism.
But because I think other people would also benefit from this change - I would like to ask you, if it would be OK with you, if I published your commit to Gerrit (you would still be the author of the commit and show up as the author once it's getting synced back to github).

The puppet-ceph project doesn't require a signed CLA (pretty sure that was a requirement of moving that into our Gerrit server.
So to push a patch its just:

have a launchpad account
sign into gerrit and add your ssh key
install git review (either via pip or apt/yum/$distropackagemanager)
run git review in your repo with HEAD set to the change. This should handle all of the git related work of moving code from your end to Gerrit.

Thanks for your comments, I'll give it a try with today or tomorrow

Ok, done: https://review.openstack.org/#/c/209981/ Let's see how this goes...


Refactor fixtures.{Basic,Vegas}Plots.scala

It devides test cases (Basic plots should render HTML without error and Vegas plots should render HTML without error) into plots.
Before
[info] PlotHtml:
[info] Basic plots
[info] - should render HTML without error (3 seconds, 28 milliseconds)
[info] Vegas plots
[info] - should render HTML without error (470 milliseconds)
[info] Run completed in 5 seconds, 113 milliseconds.

After
[info] PlotHtml:
[info] Basic plots
[info] - should render HTML without error area (366 milliseconds)
[info] - should render HTML without error bar (160 milliseconds)
[info] - should render HTML without error bar_aggregate (37 milliseconds)
[info] - should render HTML without error bar_grouped (40 milliseconds)
[info] - should render HTML without error github_punchcard (39 milliseconds)
[info] - should render HTML without error line_detail (37 milliseconds)
[info] - should render HTML without error scatter_binned (34 milliseconds)
[info] - should render HTML without error scatter_binned_color (38 milliseconds)
[info] - should render HTML without error scatter_color (33 milliseconds)
[info] - should render HTML without error scatter_shape_custom (35 milliseconds)
[info] - should render HTML without error stacked_area (520 milliseconds)
[info] - should render HTML without error stacked_area_binned (107 milliseconds)
[info] - should render HTML without error stacked_area_normalize (498 milliseconds)
[info] - should render HTML without error stacked_area_stream (500 milliseconds)
[info] - should render HTML without error stacked_bar_normalize (62 milliseconds)
[info] - should render HTML without error stacked_bar_weather (34 milliseconds)
[info] - should render HTML without error tick_strip (67 milliseconds)
[info] - should render HTML without error trellis_anscombe (51 milliseconds)
[info] - should render HTML without error trellis_barley (90 milliseconds)
[info] - should render HTML without error trellis_scatter_binned_row (107 milliseconds)
[info] Vegas plots
[info] - should render HTML without error binned plot (33 milliseconds)
[info] - should render HTML without error binned_plot_with_sort (34 milliseconds)
[info] - should render HTML without error colored_txt_scatter_plot (73 milliseconds)
[info] - should render HTML without error iqr_plot (71 milliseconds)
[info] - should render HTML without error legend_plot (70 milliseconds)
[info] - should render HTML without error value_plot (61 milliseconds)
[info] Run completed in 4 seconds, 812 milliseconds.

Codecov Report

Merging #134 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master   #134   +/-   ##
=====================================
  Coverage       0%     0%
=====================================
  Files          27     27
  Lines        1783   1783
  Branches        5      5
=====================================
  Misses       1783   1783

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 fa925dd...886c854. Read the comment docs.

Thanks for cleaning up more of Vegas!

@rgbkrk Thanks :smiley:


Make parquet_read_record support async

Hi, I meet some problem when I make parquet_read_record in example async.
I have try to async the function but error occur.
14 |     let reader = read::RecordReader::try_new(reader, None, None, Arc::new(|_, _| true), None)?;
   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::io::Read` is not implemented for `tokio::fs::File`

I'd like to fix it and contribute it to example.

/label question

Hey! So, the RecordReader is the sync version of the API and we do not have an async version. The reason is that it is a bit unclear what the best solution is: do we want to push CPU-bounded work to async tasks? Do we want to use one-shot channels with Rayon?
Generally, this is handled in different ways depending on how the query engine schedules IO-bounded and CPU-bounded tasks (i.e. which thread pool picks them up). In this case, the stream from get_page_stream is IO only, the stream from page_stream_to_array is pure CPU only.
There is a natural way of extending the API for async by declaring something like:
pub struct RecordReaderAsync<R: AsyncRead + Unpin + Send + AsyncSeek> {
    reader: R,
    schema: Arc<Schema>,
    indices: Rc<Vec<usize>>,
    buffer: Vec<u8>,
    decompress_buffer: Vec<u8>,
    groups_filter: GroupFilter,
    pages_filter: Option<PageFilter>,
    metadata: Rc<FileMetaData>,
    current_group: usize,
    remaining_rows: usize,
}

and use get_page_stream and page_stream_to_array to produce a stream of RecordBatch (thereby pushing CPU work to the async tasks, but this is not recommended by tokio's developers, as this blocks progress of other tokio-based tasks running on the same thread pool / runtime.
So, as you can read, I also label this as \label question ^_^

Thanks for your reply.


Start detached container

I would like to create a whalebrew package for mongod which starts MongoDB as a daemon. I think it would be awesome if I could just run mongodb and whalebrew would start my MongoDB in a detached Docker container. As far as I can tell, all we need for that is a Docker image called whalebrew/mongod from the following Dockerfile:
FROM mongo

EXPOSE 27017

CMD mongod

And a new config label for whalebrew called io.whalebrew.config.detach which would set the -d flag when running the container. What do you guys think?

Thanks for the suggestion! What's the advantage of this method over using existing tools like nohup?

That I wouldn't have to install MongoDB and could have it run in a container instead of on my local machine. I would develop my apps locally against this MongoDB and as soon as I'm done, just stop and remove the container.

Inception! Maybe simply run it in bg then?
$ mongo &

No, I meant the idea of whalebrew to treat docker containers as native commands. The naive way to run native commands in bg is &.
Maybe whalebrew should have --docker-args somewhere (in package definition?) so such things could be easily hacked on package level without requiring to fix the binary right away.

Thanks for your feedback, @themalkolm! Since we already have some docker args covered through the labels that you can give your image (e.g. io.whalebrew.config.environment for the -e flag or io.whalebrew.config.ports for the -p flag), wouldn't it be more consequent to provide a io.whalebrew.config.detach label for the -d flag as described above? In that way, the developer of the specific whalebrew image could easily set whether their image should run as detached or not.

So if we do make whalebrew to run a detached command, how do you then kill/stop that container?

Yep, this is the problem with detached containers I see. Now you suddenly break out of this abstraction and need to know that it is actually a docker container.

good point... you would really need to run docker stop...

This is why I suggested to simply run this cmd in bg so whenever it is killed it will stop the container automatically. But I think this is so error prone to random containers floating around.

Yup, it's a leaky abstraction, but I think commands by default always running in the background is even worse, because you have no idea it is running in the background.
To solve that I suppose if it starts something in detached mode, it could say something like "Starting mongo in detached mode. Use Docker commands to manage it."
If you run mongo &, it is explicit that you're running something in the background. Both ps and docker ps will work to see it is running, which is pretty neat.

I can image there would also be advantages to being able to use the docker DNS'ing to connect to whalebrew'd containers using container names.

Effectively isn't the ideal to be able to have your brew services running inside docker containers?


Support vits models from piper

Usage
I have converted the model en_US-lessac-medium from piper to sherpa-onnx
and you can find the converted model in the following repo:
https://huggingface.co/csukuangfj/vits-piper-en_US-lessac-medium
If you are interested in how the model is converted, please have a look at the following colab notebook:
https://colab.research.google.com/drive/1PScLJV3sbUUAOiptLO7Ixlzh9XnWWoYZ?usp=sharing
In the following, we describe how to use the converted model with sherpa-onnx
Download models
wget https://huggingface.co/csukuangfj/vits-piper-en_US-lessac-medium/resolve/main/en_US-lessac-medium.onnx

wget https://huggingface.co/csukuangfj/vits-piper-en_US-lessac-medium/resolve/main/lexicon.txt

wget https://huggingface.co/csukuangfj/vits-piper-en_US-lessac-medium/resolve/main/tokens.txt

Build sherpa-onnx
Please use the code from this PR and build sherpa-onnx from source by following
https://k2-fsa.github.io/sherpa/onnx/install/index.html
After building sherpa-onnx, you can use
./build/bin/sherpa-onnx-offline-tts \
  --output-filename=./piper.wav \
  --vits-length-scale=0.8 \
  --vits-model=./vits-piper-en_US-lessac-medium/en_US-lessac-medium.onnx \
  --debug=1 \
  --vits-lexicon=./vits-piper-en_US-lessac-medium/lexicon.txt \
  --vits-tokens=./vits-piper-en_US-lessac-medium/tokens.txt \
  "Liliana, the most beautiful and lovely assistant of our team!"

It will generate a wave file ./piper.wav. I have converted it to mov and attached it below so that you can listen to it.
https://github.com/k2-fsa/sherpa-onnx/assets/5284924/9eeff6e4-7c93-4821-b271-f1051712afeb
Your help is needed
Since piper provides a lot of pre-trained onnx models, it would be great if you can help convert them to sherpa-onnx.
Unlike piper, we don't need to install piper_phonemize. We have converted all the words into lexicon.txt.

Note that you can find all the pre-trained ONNX models from piper at the following address
https://huggingface.co/rhasspy/piper-voices/tree/main


Documentation issue in README.md: "Allways" needs to be replaced with ""

"Allways" needs to be replaced with "Always" at the start of the following sentence found in https://github.com/dotnet-bluetooth-le/dotnet-bluetooth-le/blob/master/README.md:

Allways use GetServiceAsync and GetCharacteristicAsync to get a valid instance.

Hi @abergquist,
I'm the friendly issue checker.
It seems like (100.00 %) you haven't used our issue template :cry: I think it is very frustrating for the repository owners, if you ignore them.
If you think it's fine to make an exception, just ignore this message.
But if you think it was a mistake to delete the template, please close the issue and create a new one.
Thanks!

Fixed with 450dbc5cf96c2b2101b55ecf7d57002e9bbcba5e 😄


Wrong range of definition highlight

Issue Type: Bug
Type in below code
def echo():
    print("")

echo()

CMD+Click on echo, the definition of echo is highlighted, however the last ) is excluded.

Extension version: 2019.11.50794
VS Code version: Code 1.41.1 (26076a4de974ead31f97692a0d32f90d735645c0, 2019-12-18T14:57:51.166Z)
OS version: Darwin x64 19.0.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz (16 x 2400)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_offsurface_control: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
2, 2, 2

Memory (System)
32.00GB (0.50GB free)

Process Argv

Screen Reader
no

VM
0%

We've confirmed it's a bug, thanks.

We have recently released a new and more performant language server called Pylance which likely solves these issues you are reporting.  You can download Pylance from the marketplace and install it alongside the core Python extension. Because our team's development efforts have shifted to support the new language server, we'd encourage you to try it out. If you try out Pylance and this issue persists, you can open an issue on the pylance-release repo.


feat(examples): adyen payments integration

Description
the PR shows how to integrate Adyen drop-in component working with Shopware 6 using Composable Frontends.
closes: #406

adds a nuxt plugin that exposes the adyenCheckout instance factory
adds a component to display a drop-in by Adyen
adds an example logic to communicate between frontend and Shopware 6 instance

TODO

[x] add interaction with sw6 via store-api
[x] consider more dynamic configuration of adyen checkout -> move from module options to composable function
[x] add README.md
[x] add styling

Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Screenshots (if applicable)

Additional context

Good work here, let's just change tailwind to UnoCSS for consistency :)

sure, I made it consistent now 🙌🏼


[FEATURE REQ] Service bus ReceiveDeferredMessageAsync from a processor

Library or service name.
Azure.Messaging.ServiceBus
Is your feature request related to a problem? Please describe.
Currently, receiving of a deferred message can only be done through a receiver.
Since ServiceBusProcessor encapsulate the receiver, the only way to receive a deferred message is by creating
a duplicate receiver instance.
I understand that the processor is not a receiver and thus might want to encapsulate the receiver but it might be
that defer operation logic does exist within the processor and perhaps it is possible only to expose a method
that will allow receiving deferred message through the internal receiver.
The processor args already allow deferring, so it seems logical (to me) that it will also allow receiving these deferred message later.
Thanks!

Thank you for your feedback.  Tagging and routing to the team member best able to assist.

So if we were to expose receiving deferred messages in the args, you would only be able to do so within the message handler when you receive a different message, which doesn't seem like an intuitive flow. Can you tell us more about when you would need to receive deferred messages when using the processor?

Related https://github.com/Azure/azure-sdk-for-net/issues/22154

Well, we've implemented a small library on top of Azure.Messaging.ServiceBus.
Basically we've added plugins and pipelines, wrapped with container support for DI.
We've made each bus message closer to an incoming HTTP request in a server.
We have a backoff retry mechanism which, based on certain exceptions, emits the message back to service bus with a schedule time and a label to follow on the count.
We've used to do it via message cloning, which OK but not optimal (as we see it)

Its not transactional as 2 calls are required (complete current, submit new).
It's a bit verbose (cloning mostly)
It requires a special, short-circuiting filter rule, on subscriptions so we only retry on the relevant subscription within the topic. And ofcourse submitting the clone with a header-flag for that filter.

The filtering issue has the biggest impact since rule filters are "OR" but we must short-circuit on retry submit so we need to join filters into one expression.
Of course, filters comes with a performance hit...
All of the above is solvable.

We can use a transaction scope
We can schedule and submit to a designated queue with a "response" address which will have a handler that will forward it to...

Lot's of solution... but all has tradeoff.
The best one, as we see it, is using the defer mechanizem.
Since our Retry plugin is the one that intercept the initial message as well as submit retry messages we can use defer
to put the message aside and emit an empty scheduled message which we can identify, and use it (on arrival) to fetch the deferred message (Marker message will hold the sequence number).
This is not perfect but it's the best solution we see. Instead of filters we can now mark on the scheduled message the original subscription so all other subscriptions will ignore their messages (via the plugin)
It will also work with sessions because the same handler will get the marker message... keeping all session rules in place.
I'm sure there are more use cases....

Hi Guys,
This seems to be a small thing to do.
I understand the considerations regarding public api exposure, can you guys comment/discuss this issue and perhaps I will be able to push a PR if everything is OK and agreed.
Thanks

I think this probably makes sense to do for sessions, since the processor will be holding the session lock and you can't receive the deferred messages with a SessionReceiver. I don't think it is needed for the non-session case, as you can just use a regular Receiver.
I will discuss it with the team and get back to you.
/cc @Kishp01 @conniey @ramya-rao-a

Hi,
Any update / decision?

Hi @LeszekKalibrate,
I've added this to our April milestone which means we will try to have it release in April.


ignore duplicates in history

please add an option to ignore duplicates in history. I'd like to be able to use this history list as a way of switching back and forth between requests. I'm often testing several endpoints at once and need to repeat tests after making changes. If duplicate requests were not added to the history list then it would be easier to switch around between requests on a shorter history list.

I see that I should be using Collections instead of History, so I'll close this. Please disregard.


merge changes from v0.43.1

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

-138 of 1531 (90.99%)  changed or added relevant lines in 17 files are covered.
79 unchanged lines in 5 files lost coverage.
Overall coverage decreased (-0.1%) to 87.636%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/ast/data_type.rs
1
2
50.0%

src/ast/helpers/stmt_create_table.rs
15
18
83.33%

tests/sqlparser_postgres.rs
145
149
97.32%

src/tokenizer.rs
52
62
83.87%

src/ast/ddl.rs
89
103
86.41%

tests/sqlparser_bigquery.rs
112
129
86.82%

src/ast/mod.rs
97
121
80.17%

src/parser/mod.rs
440
505
87.13%

Files with Coverage Reduction
New Missed Lines
%

src/ast/helpers/stmt_create_table.rs
1
83.9%

src/ast/value.rs
1
86.11%

src/ast/mod.rs
3
79.09%

src/ast/ddl.rs
5
84.46%

tests/sqlparser_bigquery.rs
69
89.46%

Totals

Change from base Build<PHONE_NUMBER>:
-0.1%

Covered Lines:
19528

Relevant Lines:
22283

💛  - Coveralls


Conform PEP 706 in build_qt.py

Description
Python 3.14 is going to have a breaking change in tarfile.TarFile.extractall as announced in PEP 706. This commit makes sure that build_qt.py uses the new recommended pattern when available.
Closes #1084.
Issue IDs

https://github.com/google/mozc/issues/1084

Steps to test new behaviors (if any)
A clear and concise description about how to verify new behaviors (if any).

OS: Windows 11
Steps:

Make sure Python 3.12 is installed.
Try to build Qt as follows.

python -m pip install six requests
git clone https://github.com/google/mozc.git
cd mozc\src
python build_tools/update_deps.py
python build_tools/build_qt.py --release --confirm_license

Make sure there is no DeprecationWarning.
DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior.
  f.extractall(path=qt_src_dir, members=qt_extract_filter(f))

We have merged your PR.
Thank you for the contribution!


fix: useMountedState should not change state on componentDidUpdate lifecycle

useEffect when deps is not provided, It will be executed in the three life cycles of componentDidMount, componentDidUpdate, componentWillUnmount.
useMountedState should change state only in componentDidMount, componentWillUnmount.

:tada: This PR is included in version 17.1.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


⚠ Bofrost.fr has degraded performance

In a02a551, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1033 ms

Resolved: Bofrost.fr performance has improved in 04e4ce2 after 20 minutes.


Radio button in stepper doesn't work

Problem description
getStepContent(stepIndex) {
    switch (stepIndex) {
       case 0:
         return (
            <RadioButtonGroup name="shipSpeed" defaultSelected="not_light">
              <RadioButton
                value="light"
                label="Simple"
                style={styles.radioButton}
              />
              <RadioButton
                value="not_light"
                label="Selected by default"
                style={styles.radioButton}
              />
            </RadioButtonGroup>
        );
        case 1:
        ....
    }
}

Stepper Example in Basic Usage section from http://www.material-ui.com/#/components/stepper
Versions

Material-UI: 0.18.2
React: 15.6.0
Browser: Chrome 58.0.3029.110 (64-bit)

@oliviertassinari

Its working. Please share CodePen.

@dhavalsoni2001 Thanks for the feedback, we will reopen if we have a reproduction example :).


Add link with facebook credential

This enables linking an existing Firebase user with Facebook.

Yes! Improvement needed thanks.


drivers : spi : mec1501 : XEC SPI driver

SPI driver for MEC1501 QMSPI supporting synchronous only.
Signed-off-by: Scott Worley<EMAIL_ADDRESS>

Pushed update to fix Kconfig issue.

Removed code from soc.c that isn't part this change and causing Kconfig issue.

Does this driver actually work? To me it looks like in the transaction the TX buffers are handled first, and then RX buffers. Where as to my understanding they are to be handled simultaneously.


RagasMetric breaks when used with dataset

Describe the bug
RagasMetric breaks when used with dataset
To Reproduce
dataset.evaluate([RagasMetric])
Errors:
TypeError: RagasMetric.a_measure() got an unexpected keyword argument '_show_indicator'
and another
self.llm.set_run_config(run_config)
^^^^^^^^^^^^^^^^^^^^^^^

AttributeError: 'GPTModel' object has no attribute 'set_run_config'
Additional context
Add any other context about the problem here.

Hey @haarisedhi102 where are you finding this?
self.llm.set_run_config(run_config)

Also what version of deepeval are you on?

@penguine-ip This happens on the latest version of deepeval too (0.21.62). I suspect it's due to the dependency on ragas library.
It fails even after adding the below set_run_config to the llm.
    def set_run_config(self, run_config: RunConfig = RunConfig()):
        self.run_config = run_config

@lmpratti You're probably using the DeepEvalBaseLLM wrapper in the ragas metric. Unforuntately the ragas metric only accept langhcain chat models, you can read the docs here: https://docs.confident-ai.com/docs/metrics-ragas#example

@penguine-ip Thanks a ton! Is there a plan to support DeepEvalBaseLLM wrapped models for ragas metric?

@lmpratti Unfortunately no because ragas does not have their own ecosystem to support custom models, so out of our control. But we have our own similar implementation of the ragas metrics for this reason


Debian: runtime dependencies

Update: added ability to auto-detect Debian over non-Debian Linux distribution, expandle if there's more than just Debian supported.

Looks good, thanks for updating that!

I just has to adjust this routine because it was breaking the qmake procedures on any non-Linux/Debian systems. I just have it verifying the existence of "/bin/lsb_release" first, so please adjust that check as necessary to look at the proper location for your Linux/Debian installations.


Allow query-only servers to disable the HTTP collector

We have a Zipkin deployment where there is one instance of zipkin-server providing the query API and a second instance running the (kafka in our case) collector. The zipkin-server instance providing the query API will be exposed to HTTP traffic from our internal network and it is preferable if the exposed HTTP API is read-only to prevent users from creating span data. Disabling the HTTP collector accomplishes this.
The motivation for this change is similar to the rationale described on #1591, and the approach taken to implement this is very similar to the one from the PR for that issue (#1593).
These changes add a configuration point for enabling or disabling the HTTP collector in zipkin-server. This can be controlled through the property zipkin.collector.http.enabled or the corresponding environment variable HTTP_COLLECTOR_ENABLED. The collector is enabled by default.

Sounds reasonable. cc @sityro

sorry meant to cc @sirtyro

Looks good. On the env part, spring boot already avails upper underscore
env for correspinding properties. Here and elsewhere we are just making
shorter ones available. At any rate, I think this is good. Thanks!

thank you!

Sorry @adriancole , late to the party, but we like this and will def use it!


Save ips as part of compute properties for ondemand clusters

#1451  👈 (View in Graphite)
main

This stack of pull requests is managed by Graphite. Learn more about stacking.


REDasm,please

Project description
describe the project a little
Metadata

homepage URL:https://redasm.io/
source URL:https://github.com/REDasmOrg/REDasm
license: GPL-3.0 license
platforms:  linux, windows

Project description
REDasm is a cross platform disassembler with a modern codebase useful from the hobbyist to the professional reverse engineer.


Add codeql workflow to sync to repos

[x] Create GH_PAT token with full "repo" scope and add it to this repo

[ ] Create GH_PAT token with full "repo" scope and add it to this repo

I did this with account "nextcloud-android-bot".


AttributeError: No attribute named 'StPipeline.co_occurrence'

When I run data.tl.co_occurrence() function in version 0.13.0b1, I met the following problem:
`data.tl.co_occurrence(
method='stereopy',
cluster_res_key='leiden',
res_key='co_occurrence',
dist_thres=300, # max threshold to measure co-occurence
steps=10,  # step numbers to divide threshold interval evenly
genelist=None,
gene_thresh=0, # min threshold for gene expression in a cell
n_jobs=-1
)
File ~/miniconda3/envs/stereopy/lib/python3.8/site-packages/stereopy-0.13.0b1-py3.8.egg/stereo/algorithm/algorithm_base.py:91, in AlgorithmBase.get_attribute_helper(item, stereo_exp_data, res)
89     import(f"stereo.algorithm.{item}")
90 except:
---> 91     raise AttributeError(f"No attribute named 'StPipeline.{item}'")
93 # TODO: this may be not the best way to get sub-class
94 # num of subclasses may be like 100-200 at most
95 for sub_cls in AlgorithmBase.subclasses():
AttributeError: No attribute named 'StPipeline.co_occurrence'
`
It seems version update brings too much function errors and object inheriting problems. I have submitted some of them in github issures. Cloud you please give us some methods to solve them?

Co-occurrence analysis can be found in version 0.14.0b1, please install stereopy==0.14.0.b1.
Ray

Co-occurrence analysis can be found in version 0.14.0b1, please install stereopy==0.14.0.b1.
Ray

Thank you for your reply. This problem has been solved by update stereopy into version 0.14.0b1.


parse not found ??

Hi again,
Per your instruction, I installed via NPM:
C:\Users\mliss\Documents\GitHub\myProject>npm install gpxparser
npm WARN<EMAIL_ADDRESS>No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

<EMAIL_ADDRESS>added 1 package from 1 contributor and audited 404 packages in 5.092s
found 2 low severity vulnerabilities
run npm audit fix to fix them, or npm audit for details

It seemed to install ??
My useage:
at the top of my file:
let gpx = require('gpxparser');
In my function:
var fName = '';
fName = path.join(__dirname, './running.gpx');

var content = utilityFile.readTextFile_Sync(fName);

gpx.parse(content);
var totalDistance = gpx.tracks[0].distance.total;
console.log('running total distance ' + totalDistance);

but I am getting this error when debugging:
TypeError: gpx.parse is not a function
??

Hi again !
You need to instantiate the parser before using it :)
let gpxParser = require('gpxparser');
let parser = new gpxParser();
parser.parse('<gpx></gpx>');

console.log('running total distance ' + parser.tracks[0].distance.total);

I know that this way of using it is a little bit hard to understand, and I'm planning to refactor it in the near future.

Hey...
Will there be any issues if I do that globally and then reuse the parser within functions?
In other words at top of my file:
let gpxParser = require('gpxparser');
let parser = new gpxParser();
func1 = () =>{
parser.parse(...):
}
func2 = () =>{
parser.parse(...):
}

whoa... something new now:
ReferenceError: window is not defined
at gpxParser.parse (c:\Users\mliss\Documents\GitHub\instanttiming\node_modules\gpxparser\dist\GPXParser.min.js:1:216)

Hi, sorry for the late reply.
About your first question, the parse method will not reset the gpx object. So the result of the second call will be an addition of the two calls. I think you must instantiate two gpxParser. I think I will refactor this in the future to get something easier to use.
For your second question, I totally forgot this point sorry. The library use a DOMParser and some others DOM related functions, so you must use a Window object Polyfill (https://www.npmjs.com/package/window) to use browser features on your node.js code.
You can add these lines at the beginning of your code :
const Window = require('window');
global.window = new Window();

@Luuka why don't you add this to the readme? Or the the if where you do the check for module?

FYI, a new version has been published on GH & NPM.
It fix the node.js support issue by including the jsdom polyfill in the dependencies, and as @dscape suggested the initialization of the polyfill is automatic on a Node.js context.
Thanks for your report ! :)


.sh versions of .bat? [enhancement]

First great job... save us lots of time!
Has anyone already created .sh versions of the automation .bat scripts for those of us not on Windows?

Added in latest pull request


Incorrect public balance calculation on Near testnet

Some actions result in incorrcet displayed balance.
Reproduction steps:

Create new Near testnet account
Authorize, public balance should be equal to 199.99..
Deposit 50 tokens
Displayed public balance is 99.99.. , private palace is 50
Displayed public balance after balance update is 149.99..

Fixed in zeropoolnetwork/zeropool-client-js@b326bd98af35cb0b6472bf1e0f666f9fdc3aa4d8


Fix typo

Fixed a small typo in the Stopping the Server section.

@ragaller Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@ragaller Thank you for signing the Contributor License Agreement!

Thanks 😸


Can't use command "make" to instal Kivy

Hi guys, i'm new to the raspbery pi and Kivy. i'm trying to follow the instructions 11.11.1 to instal kivy on the pi
https://kivy.org/doc/stable/installation/installation-rpi.html
all is working but as soon as i need to input the command "make" i'm stuck. where would i be missing something?
Successfully installed Kivy Kivy-Garden-0.1.4
root@raspberrypi:/home/pi/Documents/kivy# ls
AUTHORS             LICENSE      README.md  examples        setup.cfg CODE_OF_CONDUCT.md  MANIFEST.in  build      kivy            setup.py Kivy.egg-info       Makefile     doc        pyproject.toml
root@raspberrypi:/home/pi/Documents/kivy# make
python setup.py build_ext --inplace   File "setup.py", line 1075     def glob_paths(*patterns, excludes=('.pyc', )):                                      ^ SyntaxError: invalid syntax make: *** [Makefile:35: build] Error 1
root@raspberrypi:/home/pi/Documents/kivy# cd kivy
root@raspberrypi:/home/pi/Documents/kivy/kivy# make
make: *** No targets specified and no makefile found.  Stop.
Any help would be welcome thanks, Mitch

Make sure that you have installed the necessary system packages, check on thi page https://kivy.org/doc/stable/installation/installation-linux-venvs.html#dependencies-with-sdl2 and try to do sudo apt-get install build-essential libgl1-mesa-dev


Add a "times" extension to int

As discussed here I think a times extension function to int would be very helpful addition to the SDK.
This is just syntactic sugar, but it would be useful if instead of:
for(int i = 0; i < 5; i++) {
  print(i); // prints 0, 1, 2, 3, 4
}

We could just do:
5.times(print); // prints 0, 1, 2, 3, 4

I know this is something small, but it's in the little things, on the little details, that we measure quality and care :)

You can already do this:
Iterable<int>.generate(5).forEach(print);

I am not a fan of putting too much stuff on the int type. Especially since this can easily be solved by just adding the following extension to your own project if you want this feature:
extension TimesOnIntExtension on int {
  void times(void Function(int) fun) =>
      Iterable<int>.generate(this).forEach(fun);
}

Yeah, I know, but I don't like all that boilerplate for a simple times and I also don't like to have the same copy-paste utility code in every project and I also don't like to make tiny packages that do one small thing. I just thought this was a neat feature and other languages have it, but if this is eventually refused, then I will go and make a package for it.

We are unlikely to put that method on int. We could do it without using extensions if we wanted to, but I don't think it's a particularly useful function with all the existing alternatives available. It just repeats, but doesn't return anything.
I'd be more interested in a shorter syntax for Iterable.generate, like 1.to(5), so you could do 1.to(5).forEach(print) or 1.to(5).map(...).
(But not actually 1.to(5), that's a little too ugly.)

I came up with this proposal precisely because I am kinda tired of the boilerplate in Iterable.generate, as you are, or the for loop. The times extension wasn't even my idea (as can be seen in the original issue), I honestly don't care how it's done, as long we have a quick, small, concise way to generate a finite number of repetitions.


main.min.js:1 Uncaught TypeError: this.generateFilterQuery is not a function

When a filter of type "search" is set the "Export" button does not work, with the following exception:
Uncaught TypeError: this.generateFilterQuery is not a function
    at t.getQueryBody (http://<IP_ADDRESS>:1358/dist/main.min.js:1:7421)
    at t.exportJsonData (http://<IP_ADDRESS>:1358/dist/main.min.js:1:22997)
    at t.open (http://<IP_ADDRESS>:1358/dist/main.min.js:2:22433)
    at Object.o.invokeGuardedCallback (http://<IP_ADDRESS>:1358/dist/main.min.js:15:16398)
    at s (http://<IP_ADDRESS>:1358/dist/main.min.js:12:21771)
    at Object.i [as executeDispatchesInOrder] (http://<IP_ADDRESS>:1358/dist/main.min.js:12:22018)
    at f (http://<IP_ADDRESS>:1358/dist/main.min.js:12:16782)
    at m (http://<IP_ADDRESS>:1358/dist/main.min.js:12:16908)
    at Array.forEach (native)
    at r (http://<IP_ADDRESS>:1358/dist/main.min.js:17:21744)
    at Object.processEventQueue (http://<IP_ADDRESS>:1358/dist/main.min.js:12:18205)

@isgroup-srl Does that work now?

Thanks, will check on monday!

@isgroup-srl Were you able to verify? I am closing the issue, feel free to re-open if you still see the exception.


.git is a file not a directory

Hey !
your git hooks seem really great, however when I try to copy the two files on '.git/hooks', It appears that .git is only a file.
Should we create a /.git/hooks/ folder ?
Thanks

It seems that I was on my dev branch. On my main branch i did found .git as a directory. Though, if i do the setup for the main branch, will it be usable on the dev branch?
I may not be clear... if I do the setup as in the README, and the create a commit on dev name ':docs: update something', will it display an emoji as expected?
Thanks

I went all through the setup process and everything worked well!
Wonderful job you did here, starred the repo!


Update OpenSUSE Config for 66

As per #392 , this PR will update the OpenSUSE configuration and packaging scripts to work with chromium 66.

I further tweaked the spec file in 44dd30b88e053c87e35b8a4844a190f9367e8ec2. Hopefully that didn't break anything.


Trim or demote spammy errors

The goal is to remove as many "expected" logs which are emitted with severity "error", so it becomes possible to grep the logs for "ERROR" and see something meaningful.
Fixes #108

Intermittent CI failure: #156


Strings change for answered/unanswered discussions

https://openedx.atlassian.net/browse/MA-1496
As per QA's nit:

for unanswered questions and answered questions It should show Unanswered Question /Answered Question.

@1zaman plz review

:+1:


Feature: Single endpoint to change status of domain

Is your feature request related to a problem? Please describe.
There are three different endpoint  (/enabled , /disable, /freeze) to change status of domain.
Describe the feature you are requesting, as well as the possible use case(s) for it.
@dborovcanin recommendations :
We should probably do the following:

~separate enable and disable and freeze from soft delete~
add delete endpoint - delete operation can't be undone
add change-status endpoint for all other changeable statuses.

Indicate the importance of this feature to you.
Must-have
Anything else?
No response

Due to the recent discussion (https://github.com/absmach/magistrala/pull/2127#discussion_r1542169662) and inactivity, this one will probably be discarded.

Closing according to: https://github.com/absmach/magistrala/pull/2127#issuecomment-2063950842.


FEATURE REQUEST: Allow manually setting default shell per host

USE CASE:
UI/UX preference for minimalism means I would like to be able to launch my desired shell for a given host without navigating to the specific entry for that shell. For example, on Windows, the Local Machine always uses CMD as the default shell, which means that I need to explicitly select "pwsh" to use Powershell 7 every time
DESIGN
There are two possible options:

Simpler: When editing a host (including Local Machine), populate a dropdown for "Default Shell" with known available shells

More Consistent with User Expectations/Learned Behavior: When editing a shell environment, add a checkbox for "[make|set as] default for this host"

NOTES
If the selected shell is removed or fails to launch, xpipe should probably fall back to the baked-in default

The thing with shells is that at least for remote systems, it will always use your default login shell. If you would like to use another shell on a remote system as default, changing the login shell for the user or for SSH would work.
I guess it would be theoretically possible to set such defaults with shell environments in xpipe, I will have to think about how to do this the best way.

Yeah, I agree this is not exactly elegant and muddies the definition of the
term "default".
What I'm really asking for here is that the term 'default' be scoped to
xpipe's host configuration rather than scoped to the remote system's own
defaults. That is, it would be asking the question "what shell do you want
to use if you don't specify one" instead of saying "use the remote system's
default shell if you don't specify one".
In that sense, the current behavior for this setting could be presented as
Default Shell = Let Remote Host Decide or Use Remote Default
On Sun, Jun 30, 2024 at 11:37 AM Christopher Schnick <
@.***> wrote:

The thing with shells is that at least for remote systems, it will always
use your default login shell. If you would like to use another shell on a
remote system as default, changing the login shell for the user or for SSH
would work.
I guess it would be theoretically possible to set such defaults with shell
environments in xpipe, I will have to think about how to do this the best
way.
—
Reply to this email directly, view it on GitHub
https://github.com/xpipe-io/xpipe/issues/288#issuecomment-2198646172,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABA3WH3XDUSOBJC4XUS2YSLZKBF7BAVCNFSM6AAAAABKEJ3HYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJYGY2DMMJXGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Brian "Neatchee" Resnik

This is now implemented in 11.3


Mention Loki along with ELK

Can we quote both, and can you please fix DCO? thanks

I am biased, but only one does Prometheus-style labels for logs, no?
On Tue, Nov 3, 2020, 23:00 Julien Pivotto<EMAIL_ADDRESS>wrote:

Can we mention both, and can you please fix DCO? thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/prometheus/docs/pull/1782#issuecomment-721396313, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFYII4UBXW7DQWZG7YEHLDSOB4OHANCNFSM4TJI774Q
.

I am biased, but only one does Prometheus-style labels for logs, no?

Yes, that's why it is listed first. The other one is kinda the open source standard right now.

What about we link to the CNCF landscape instead? https://landscape.cncf.io/category=logging&format=card-mode&grouping=category

What about we link to the CNCF landscape instead?

Sounds like a great idea! "Don't! Use a log aggregation system instead."

The landscape is confusing for users as evidenced again and again around
CNCF. I have asked TOC to address this several times, but to no avail.
Taking an opinionated stance seems better.
On Wed, Nov 4, 2020, 00:40 Tobias Schmidt<EMAIL_ADDRESS>wrote:

What about we link to the CNCF landscape instead?
Sounds like a great idea! "Don't! Use a log aggregation system
https://landscape.cncf.io/category=logging&format=card-mode&grouping=category
instead."
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/prometheus/docs/pull/1782#issuecomment-721431621, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFYII3CS5DKH4ICJXB57GDSOCIG7ANCNFSM4TJI774Q
.

I do not see anything wrong in the logging part of the landscape that is linked.


cli: add support for CI-ing only affected pipelines

pipelines are self-contained, so there is no point in running all pipelines if they are not modified. For this, we can add support for [popper:skip-untouched] or something alike.
This will inspect commits so that only pipelines that were modified are being tested.
WARNING: this only makes sense when a single commit is pushed; if multiple commits are pushed, we don't know how to inspect the entire set from the last time that the branch was updated on github. maybe there is a way of knowing this by applying some git-fu

to expand on what this issue is about: one practice that people working with Popper follow is that one of creating a .workflow in a folder, and having all the code that the workflow is referencing in that folder (or any subfolder in it). If a repo contains say 10 workflows, we might not want to be running them all the time by the CI service. So we might want to specify that we only want to run workflows whose dependencies have been modified, otherwise skip them.
btw, this is related to #565

@ivotron What does dependencies refer to in here ? is it the actions and their related files ?

popper doesn't read commit messages anymore. Will reopen if users request it


BUG: Fixed bug with Laguerre and Legendre polynomials

#7247 #7248

thanks!

This does not fix the problem with the LEgendre, does it?

maybe, but that bug doesn't seem to be present in master branch currently

This fix for Legendre and Languerre.
Example after fix:
>>> from scipy.special import legendre
>>> from scipy.special import genlaguerre
>>> genlaguerre(1, 1, monic=True)
poly1d([ 1., -2.])
>>> genlaguerre(1, 1, monic=False)
poly1d([-1.,  2.])
>>> genlaguerre(1, 1, monic=True)(0)
-2.0
>>> genlaguerre(1, 1, monic=False)(0)
2.0
>>> legendre(5).coeffs
array([  7.87500000e+00,   0.00000000e+00,  -8.75000000e+00,
        -4.37150316e-16,   1.87500000e+00,   0.00000000e+00])


Bug: Cannot find some repositories in the process of creating a new workspace

Describe the bug
I wanted to create a new workspace. But when I wanted to find a repository using "Search for repositories", it doesn't search the repository at all. Clicking enter also didn't do anything. I'm not sure if this happens to random repositories.
Screen Recording
https://github.com/open-sauced/app/assets/45172775/f23a2e2e-c346-4137-9a5b-9edae6de4aca
Steps to reproduce

Create a new workspace.
Click "Add repositories" button.
Try to search "open-sauced/docs" or "open-sauced/intro".
The repo doesn't show as a suggestion and it doesn't search it, too.

Yap, can reproduce this. Even when adding new repos to an existing wotkspace

Additionally, this happens whenever we want to search a repository in general.
I tried to search the repository from the search bar and got the same result as screen recording below:
https://github.com/open-sauced/app/assets/45172775/be02e83d-328e-45ee-9d84-20db99f0bb3d

There's some wonkiness in that search component. I think part of it might be throttling from GitHub, but I do think there is a genuine bug in there.

We switched this to use our api first, then fallback to GitHub


Properties: width, width@hover

Hi, what do you think about adding these props:
data-simplebar-v-width - sets width of the vertical thumb
data-simplebar-v-width-on-hover - sets width of the vertical thumb on hover
data-simplebar-h-width - sets width of the horizontal thumb
data-simplebar-h-width-on-hover - sets width of the horizontal thumb on hover
<div
  data-simplebar-v-width="5px"
  data-simplebar-v-width-on-hover="10px"
/>

Hi Alex,
This is defined by CSS, so the way to do that is via CSS overrides instead of using JS.
So something like:
.simplebar-track.simplebar-vertical { width: 5px }
.simplebar-track.simplebar-vertical:hover { width: 10px }

@Grsmto I tried it. Here's the summary:
This works:
.simplebar-track.simplebar-vertical {
  width: 5px !important
}

But this doesn't work:
.simplebar-track.simplebar-vertical:hover {
  width: 10px !important
}

It changes with to 10px but not on :hover, it works only after you click & start dragging.

Try .simplebar-track.simplebar-vertical.simplebar-hover.

@andersk thank you this works!

This behavior can be achieved in the following way, so the issue is resolved:
.simplebar-track.simplebar-vertical {
  width: 5px !important;
}
.simplebar-track.simplebar-vertical.simplebar-hover {
   width: 10px !important;
   margin-right: 0px;
}


Tests not loaded env from phpunit.xml

Describe the bug
When I run php artisan test, I expect that my env is testing, but in real env is local. I testing this with https://github.com/tarampampam/laravel-roadrunner-in-docker project

Expected behaviour
env must be taken from $_ENV
Actual behaviour
env taken from .env
Steps to reproduce
download https://github.com/tarampampam/laravel-roadrunner-in-docker
make install
make init
make shell
php artisan test

System information

Please, complete the following information:

Key
Value

PHP version
8.2

Current package version
5.12

RoadRunner version
2.12.3

Environment
docker-wsl

RoadRunner configuration file content
from https://github.com/tarampampam/laravel-roadrunner-in-docker

Package configuration file content
from https://github.com/tarampampam/laravel-roadrunner-in-docker

Additional context

Add any other context about the problem here.
Additionally I try to debug LoadEnvironmentVariables::checkForSpecificEnvironmentFile().

        $environment = Env::get('APP_ENV');

        var_dump($environment);
        var_dump($_ENV);
        if (! $environment) {
            return;
        }

I get output:
string(5) "local" array(0) { }
And when code reach CreatesApplication trait $_ENV is correct:
    public function createApplication()
    {
        /** @var \Illuminate\Foundation\Application $app */
        $app = require __DIR__.'/../bootstrap/app.php';

        $app->make(Kernel::class)->bootstrap();

        \rr\dump($app->runningInConsole(), $_ENV);
        return $app;
    }

output
true
array:10 [
  "APP_ENV" => "testing"
  "BCRYPT_ROUNDS" => "4"
  "CACHE_DRIVER" => "redis"
  "DB_CONNECTION" => "pgsql"
  "DB_DATABASE" => "insap"
  "MAIL_MAILER" => "smtp"
  "QUEUE_CONNECTION" => "rabbitmq"
  "SESSION_DRIVER" => "redis"
  "TELESCOPE_ENABLED" => ""
  "SHELL_VERBOSITY" => 0
]

How does this issue relate to the laravel-bridge package?

Anyway, you can try to set the following values in your phpunit.xml file:
<env name="APP_ENV" value="testing" force="true"/>
<server name="APP_ENV" value="testing"/>

All should be fine after that.

How does this issue relate to the laravel-bridge package?

Because this issue occurs only when I use roadrunner and in my project the only package that work with roadrunner is this package:)


请问如何联系commiter合并代码

Anybody merge the code

pls leave a PR id

pls leave a PR id

#3085,thank you


BUG: The way to segment dataset

@joelowj In function prepare_data_sets, it divides the dataset into train and validation sets in this way, not random, it will bring about these two datasets don't have the same distribution. According to the test, in nearly the first 13500, it will successfully generate 10000 positive data, and the last 6500 data are all negative. So it's better to shuffle the dataset before dividing or divide it randomly.

@pxzhang94, proposed this change to fix the issue with the data segmentation fault.
I will push the code, if it is agreeable.
perm0 = np.arange(len(vectors))
np.random.shuffle(perm0)
vectors = vectors[perm0]
labels = labels[perm0]

@joelowj Great!


feat: pass-credentials to repo

This adds the ability to include the --pass-credentials flag to the helm add repo command by:

Adding repo.passCredentials to the helmfile yaml
Changing state, helmexec, and app to include RepositorySpec.PassCredentials

Resolves #1898

Thanks! So happy to be a part of the project!


Add release documentation to README.md

Signed-off-by: Nathan Gillett<EMAIL_ADDRESS>

This look right to you, @erikerlandson; like the steps you used for v0.3.1?


snow scene

Thanks for your amazing libary,it is help me a lot .
now I am facing a question with useage,I want to create a snow scene with proto-engine,I refer to a similar scenario in the example，you used three.proton.js to complete the exmaple of snow scene,but the libary hasn't been updated in a long time, so i want to known if i want to achieve a similar scenario i should continue to use three.proton.js or tranform to use proto-engine to achieve this,Can I do this with just three-proton

Oh, thanks. Do you create a 2d or 3d snow? three.proton hasn't been updated for a long time (I'm really busy), but it still works normally. Please contact me if you have any questions.


Updating Event Permission Text

Hi,
Thank you for your contribution!
We've decided to go for the changes proposed in #1738 instead, since we feel they are more descriptive than the rewording suggested in #1734.
Happy Hacktoberfest! 🎃  🎃  👻  :octocat:


Fix duplicate Android packages being linked

Recent commit updated Android part of the link mechanism to use "implementation" instead of "compile" to align with what Gradle recommends: https://github.com/react-native-community/react-native-cli/commit/c6c34a2a6e0d5898a62bc10b7c2936cadba3e071
Unfortunately, it breaks the detection of an already installed packages.
The way "link" detects an installed package on Android is by looking for "compile(XXX)" inside build.gradle. We don't have a sophisticated tool for parsing and reading Gradle files, hence we use a really simple RegExp to look for informations that we want. It was always meant to be a temporary solution, so we are going to work on resolving that in the nearest future.
Meanwhile, what happens is that now, after the update, "link" will look for "implementation(XXX)" string instead to indicate that the given package is already linked.
This means that when "link" command is run on an existing codebase that still uses "compile" (e.g. just updated to a new project), it will not treat such project as installed and will add it once again, this time using implementation(XXX). This results with duplicate packages.
We should teach link/android/isInstalled.js to return "true" in both scenarios when "compile" and "implementation" are present. Both are valid right now in Gradle v3 (with "compile" being obsolete).
We should also make sure that "unlink" can handle both cases.
CC: @thymikee @dulmandakh (original reviewer of the PR)

Also - question - is the Gradle plugin version enforced by React Native? I am not really familiar, need to check, but... is the newer plugin version required, otherwise project will not build?
If not, I can see scenarios when v3 is not used (hence "implementation" is not even present). In that case, we should detect Gradle version before even proceeding.

IIRC, we landed Android Gralde Plugin 3.x in RN 0.56 and we must be using implementation because Gradle will show deprecation warning if you use compile or compileOnly. So we should've fixed linking a long before.
Usually, Android Gradle Plugin is versioned as same as Android Studio and used in it. And Google adds features, enhancements in it, so it's best to use latest version. Also Gradle version upgrades are mostly non-breaking, except 2.x to 3.x which require some manual work.
FINAL: Use Gradle 3.x

I'd like to add one more case where new CLI reports a duplicate:
implementation (project(':react-native-device-info')) {
    exclude group: 'com.google.android.gms'
}

Seems like the extra paren(s) before project is not taken into consideration


dns: adds test for dns over http2

Ticket
Redmine ticket: https://redmine.openinfosecfoundation.org/issues/5773
Suricata PR incoming

Replaced by https://github.com/OISF/suricata-verify/pull/1540


Failed to connecto pusher, nginx reverse proxy and SSL

Hello,
I have been trying to correct for the library to connect via nginx reverse proxy. But after making some changes, I can't get requests of any kind from being received with the command.
I leave below with the configuration that I have:
config/broadcasting.php
        'pusher' => [
            'driver' => 'pusher',
            'key' => env('PUSHER_APP_KEY'),
            'secret' => env('PUSHER_APP_SECRET'),
            'app_id' => env('PUSHER_APP_ID'),
            'options' => [
                'cluster' => env('PUSHER_APP_CLUSTER'),
                'encrypted' => true,
                'useTLS' => true,
                'host' => '<IP_ADDRESS>',
                'port' => 443,
                'scheme' => 'https',
                'curl_options' => [
                    CURLOPT_SSL_VERIFYHOST => 0,
                    CURLOPT_SSL_VERIFYPEER => 0,
                ],
            ],
        ],

config/websockets.php
'apps' => [
      [
          'id' => env('PUSHER_APP_ID'),
          'name' => env('APP_NAME'),
          'key' => env('PUSHER_APP_KEY'),
          'secret' => env('PUSHER_APP_SECRET'),
          'path' => env('PUSHER_APP_PATH'),
          'capacity' => null,
          'enable_client_messages' => true,
          'enable_statistics' => true,
          'encrypted' => false,
      ],
],

'ssl' => [
        'local_cert' => '/etc/letsencrypt/live/domain.com/cert.pem',
        'local_pk' => '/etc/letsencrypt/live/domain.com/privkey.pem',
        'passphrase' => env('LARAVEL_WEBSOCKETS_SSL_PASSPHRASE', null),
        'verify_peer' => false,
        'allow_self_signed' => true,
 ],

My nginx reverse proxy configuration:
server {
  listen [::]:443 http2 ssl;
  listen      443 http2 ssl;

  server_name ws-beta.domain.com;

  ssl_certificate     /etc/letsencrypt/live/domain.com/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem;

  location / {
    proxy_pass http://<IP_ADDRESS>:6001;
    proxy_read_timeout     60;
    proxy_connect_timeout  60;
    proxy_redirect         off;

    # Allow the use of websockets
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
  }
}

I'm using react, this files are in frontend directory.
laravel-echo.js
const WSHOST_ENV = process.env.REACT_APP_WS_BASE;

export const echo = new Echo({
    broadcaster: 'pusher',
    wsHost: WSHOST_ENV,
    wsPort: 443,
    wssHost: WSHOST_ENV,
    wssPort: 443,
    key: 'some_key',
    disableStats: true,
    enabledTransports: ['ws', 'wss'],
    encrypted: true,
    scheme: 'https',
    forceTLS: true,
    authEndpoint: "https://api-beta.domain.com/broadcasting/auth",
    auth: {
        headers: {
            Authorization: "Bearer " + localStorage.getItem('token'),
            Accept: "application/json",
        }
    },
    logToConsole: true
});

.env
REACT_APP_WS_BASE=ws-beta.domain.com
I'm starting using this command php artisan websockets:serve --port=6001 but stuck in this legend: Starting the WebSocket server on port 6001... and doesnt' connect with my client.
Thanks.

Hi @andreesc
It looks like as you've configured the websockets package to serve directly ssl encrypted (websockets.php), but configured nginx to pass the data via http (proxy_pass http://<IP_ADDRESS>:6001;).
Either allow self signed certs within nginx and update to https (proxy_pass) - or change your websockets.php config to http
If nginx and the websocket server are on the same server its normally acceptable to have http communication via localhost on the same server without https between nginx and websocket server

Hi @andreesc
It looks like as you've configured the websockets package to serve directly ssl encrypted (websockets.php), but configured nginx to pass the data via http (proxy_pass http://<IP_ADDRESS>:6001;).
Either allow self signed certs within nginx and update to https (proxy_pass) - or change your websockets.php config to http
If nginx and the websocket server are on the same server its normally acceptable to have http communication via localhost on the same server without https between nginx and websocket server

Hi @pk-informatics
If i understand you, the change in websockets.php is the following?
      ...
          'useTLS' => false,
            'host' => '<IP_ADDRESS>',
            'port' => 6001,
            'scheme' => 'http',
    ...

the required change is here https://github.com/beyondcode/laravel-websockets/blob/master/config/websockets.php#L240-L252 within websockets.php
The code snippet you've pasted is from the broadcasting.php file, ssl there is fine because broadcasting.php defines the communication settings for the websocket consumer

the required change is here https://github.com/beyondcode/laravel-websockets/blob/master/config/websockets.php#L240-L252 within websockets.php
The code snippet you've pasted is from the broadcasting.php file, ssl there is fine because broadcasting.php defines the communication settings for the websocket consumer

Thank, the connection already received but, when a post action to dispatch event return 500 error, with this message
 "message": "Pusher error: \r\n<title>404 Not Found</title>\r\n\r\n
404 Not Found
\r\n
nginx\r\n\r\n\r\n.",
    "exception": "Illuminate\\Broadcasting\\BroadcastException",
    "file": "/opt/beta/backend/vendor/laravel/framework/src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php",
    "line": 136,


deploy_runtime doesn't take correct versions from requirements.txt

Current requirements.txt has ibm-cos-sdk == 2.3.3
I modified it to ibm-cos-sdk == 2.4.0 .
Executed ./deploy_runtime, however ibm-cos-sdk was not updated to 2.4.0

./deploy_runtime uses an already build docker image: ibmfunctions/action-python-v3.6, so it doesn't take into account modifications in requirements.txt

@JosepSampe so how can we control cos-sdk there...or we can't for default one as it uses whatever is installed in cloud functions?

We can't. However, it is usually updated with latest packages. In my case this image contains ibm-cos-sdk == 2.4.0


Create versioned documentation

Update the docs so that they can be filtered based on version as was done in the Columbo docs.

There is documentation on how to implement versions in mkdocs here.


[MM-10471] Change permission from "manage_team" to "convert_public_channel" in converting public to private channel

Summary
change permission from "manage_team" to "convert_public_channel" in converting public to private channel.
Note: Will update commit hash of mattermost-redux once related PR is merged.
Ticket Link
Jira ticket: MM-10471
Checklist

[x] Ran make check-style to check for style errors (required for all pull requests)
[x] Ran make test to ensure unit and component tests passed
[x] Added or updated unit tests (required for all new features)
[x] Has server changes (https://github.com/mattermost/mattermost-server/pull/8832)
[x] Has redux changes (https://github.com/mattermost/mattermost-redux/pull/507)

Build failed due to the required constant from mattermost-redux. Will update commit hash once merged.

https://github.com/mattermost/mattermost-server/pull/8832#pullrequestreview-122057788
Will defer to v5.1 when roles migration becomes available.

I'll close this temporarily and will re-open as soon as the general solution for roles migration is available, probably by v5.1.


PUT: handle single boolean value

Hello,
json-server does not allow to put a single value request payload in a PUT route.
axios.put(`/articles/${payload.postMortem.id}/isReleased`, true)

json-server will say "SyntaxError: Unexpected token t in JSON at position 0 at JSON.parse ()"
If we wrap the boolean payload in an object like: {val: true}, it will work.
Hope you can do something cause it's pretty important!
(version:
"json-server": "^0.16.1")

This won't change I'm pretty sure. I read about this issue many times.

Actually sorry, I think I misunderstood.
Can't you just PATCH instead of PUT on route ending with id?
axios.patch(/articles/${payload.postMortem.id}, {isReleased: true})

No, the idea is not to find a workaround and especially not to change my spec

Just wanted to help, because you say it's so important and this seems to be the intended way.
If you can't change your spec no matter what, I think you can write a middleware, that does the trick.
I understand that you don't want a workaround, but since the last commit is 6 months ago, I wouldn't put too much hope in @typicode fixing it.
cheers


Close DBClient

I cannot see a way to close() a DBClient.
I have a JDBCClient backed by a Hikari pool and I'm running tests. After about 15 tests I get
FATAL: sorry, too many clients already

Environment Details

Helidon Version: 4.0.5
Helidon SE
JDK version:  Zulu21.30+15-CA (build 21.0.1+12-LTS)
OS: Sonoma 14.3.1
Docker version (if applicable): N/A

Problem Description
Whenever a DBClient is created, when using JDBC with Hikari it creates a connection pool. There is no way to shut down the DBClient afterwards so these connections stay open. After a number of tests - 15 in my case - Postgres refuses new connections.
To workaround I can force the database to restart (I use TestContainers) but that does make the tests slower.

HikariDataSource has a close() method, but HikariConnectionPool that holds the HikariDataSource does not, and never closes it


Responsive issue

Hi is there any way to make peatio fully responsive so that it can be viewed on mobile devices as well.
Thanks

short answer, yes.
The front end styling is completely separate from the back end mechanics.
Technically you could restyle the exisiting with ccs or create a whole new front end. I'm toying with both ideas now but i need to sort out my admin access issue first...

more specifically i will be working on a responsive front-end either way as soon as i have the technical issue sorted out.
details to follow...

Hello @sang-tech @mangeshgangwar
We have plans for recoding UI to Bootstrap 4 or som SPA framework like React.

@yivo Thanks Thats great..


Prepare for JWT goodness

What's New?

Added @roryaronson 's login page mockup to the /login URL (looks great, @roryaronson !)

What's Next?

Tie in API JWT support

Happy Friday!


SAM - Color of segmentation mask while interacting with the model is hardly visibile in grayscale images

My actions before raising this issue

[x] Read/searched the docs
[x] Searched past issues

Steps to Reproduce (for bugs)

use a very bright grayscale image
use an interactor to select positive / negative points
do not finish yet, the resulting mask is light gray and hardly visible in the image

Expected Behaviour and Possible Solution
would be nice to select the color of the mask in the settings or even better from the tool menu where the interactor is selected
Your Environment
Latest CVAT version from Github (v.2.4.3)

@maecky
Could you please provide a screenshot?

The interactor I am using here was HRNET - but the "issue" is the same with SAM. As long as I am in the "interactor mode" where I can add positive and negative points the mask is hardly visible and it is hard to judge if I am happy with the mask or not...
Would be nice to define the color myself - I understand that for color images this is not an issue, but for gray values it ist :)

@maecky if possible, I would like to work on this issue... Can you please assign me the same?