[boost-python] Fix boost-python linking to release python in debug bu…

Fixes #23374
This is the third time this issue is fixed 😹
https://github.com/microsoft/vcpkg/pull/1453/commits/d88f53de9c284cfc67ba21707d60a44ba41ede8a
https://github.com/microsoft/vcpkg/pull/15352/commits/87e8ead9c202fd638cc18742bed3101cdf8297b7

CI errors are aftermaths of #23322, I've reverted it locally and build succeeded.

Something fishy here:
error: Unable to find file or target named
error:     '/boost//D:/installed/x64-windows/debug/lib/boost_python310-vc140-mt-gd.lib'
error: referred to from project at
error:     '..'

I couldn't reproduce this locally.

boost-mpi[python3] failed:
error: Unable to find file or target named
error:     '/boost//D:/installed/x64-windows/debug/lib/boost_python310-vc140-mt-gd.lib'
error: referred to from project at
error:     '..'

boost-python now produces boost_python310-vc140-mt-gyd.lib. Note y in suffix.
Looks like b2 bug for me...

Any progress here?
Needs my help?

@JackBoosY little help would be awesome.
I was thinking about making new feature in boost-python to build both variants in debug build (python-debugging=on and off).

The boost-python library should be boost_python310-vc140-mt-gyd.lib, not boost_python310-vc140-mt-gd.lib.
The file path prefix /boost// works, but the file name is incorrect.
So the isuse should be boost-python instead of boost-mpi.

There are some extra logs which is different with the origin boost-python build:
...
vcpkg\buildtrees\boost-python\x64-windows-dbg\user-config.jam:8: Unescaped special character in argument <linkflags>/machine:x64
...
'python' is not recognized as an internal or external command,
operable program or batch file.
...
<define>_DEBUG...
...

The boost-python library should be boost_python310-vc140-mt-gyd.lib, not boost_python310-vc140-mt-gd.lib.

Did you mean the other way around? boost_python310-vc140-mt-gyd.lib is what is generated after this PR and it's not what boost-mpi expects.
Still, both are valid. y prefix means "using a special debug build of python" (https://www.boost.org/doc/libs/1_78_0/more/getting_started/windows.html#library-naming).

The boost-python library should be boost_python310-vc140-mt-gyd.lib, not boost_python310-vc140-mt-gd.lib.

Did you mean the other way around? boost_python310-vc140-mt-gyd.lib is what is generated after this PR and it's not what boost-mpi expects. Still, both are valid. y prefix means "using a special debug build of python" (https://www.boost.org/doc/libs/1_78_0/more/getting_started/windows.html#library-naming).

Therefore, the expected boost-python name should be fixed in boost-mpi side.

There's also a CMake bug: https://gitlab.kitware.com/cmake/cmake/-/issues/23372

A few general notes:
In my experience, C++ programs that embed Python will fail to link in Debug configuration, unless the python-debugging flag is turned on. So I think that this behavior should be the default behavior, rather than folks having to set a special VCPKG flag in a custom triplet to enable it. However, if anyone has objections, I would certainly be open to hearing them.
Also in my experience, the system Python installation is not usable with vcpkg anyway. So I wouldn't worry about breaking that functionality; it's already broken. Others' experience may be different, though. I'd like to hear if that's the case.

Good to see progress on this PR. Hopefully we can get it merged in soon.

boost-graph-parallel failed because it had no idea whether boost-mpi was built with python3 feature or not (i.e. has y tag or not). I don't see how that can be mitigated with current implementation...

@ras0219-msft Any ideas?

I've extended internal manipulations with boost libraries filenames to also rename -gyd- files to -gd-. This is really how it should've been in the first place.

This latest code passed all the automated tests. That's a good sign.


GetExcelDataType returns Numeric for date formatted cells

I am planning to use your lib for a project, but as I am testing it on some test data I get an issue using the .GetExcelDataType(i) method, it seems to consistently return the type Numeric for cells formated as Datetime.
Am I missing something basic? Is there a better way to determine if a cell should be interpreted as datetime?
Using the .GetString method returns a correctly formatted datetime string.
Example data available below:
https://www.contextures.com/tablesamples/sampledatasafety.zip

That is correct and expected behavior. Internally, "date" values in Excel are stored as numbers which are formatted to be displayed as a datetime format. You can use the ExcelDataReader.GetFormat(int ordinal) to get the format info for a cell, then check the ExcelFormat.Kind property which will indicate if the format is Numeric, Date or Time.


Update Sonar references in 'about' page

The company public name changed from SonarSource to Sonar in 2022
Add distinct links for the 3 tools

thanks!


File selection not possible for special setup of the FilePathParam

When using the "param::FilePathParam::FilePathFlags_::Flag_NoExistenceCheck" flag on creating a FilePathParam, proper selection of a file or folder via GUI is impossible.
Steps to reproduce the behavior:

Create a module or modify a module to have a FilePathParam.
On creation of the FilePathParam set the flags (the second parameter of the constructor) to "param::FilePathParam::FilePathFlags_::Flag_NoExistenceCheck".
Upon running MegaMol, try to modify the file path of the created FilePathParam by navigating through the MegaMol-internal file system representation.
It should not be possible to select any folder or file via mouse interaction. Instead, the current folder is set to "." and nothing else happens.

Expected behavior
It should be possible to select files or folders normally without the unexpected jumping.
Environment

OS: Windows 11
GPU: Nvidia RTX 2080Ti
Driver version 511.65

It is mandatory to always state whether the FilePathParam should check for a file, directory, or both. You should use the flag Flag_File_ToBeCreated if you want to use the FilePathParam to hold a not existing file, e.g.
Of course, the FilePathParam flag interface should not provide flags that can not be used on their own. This will be fixed in a pull request soon...


Panel configuration is being ignored

I have a simple panel configuration of one panel on top with a clock and tray icons.
With the latest home rebuild locked at ffeef9dc96a5a0e442479c94a6000f93b69aeaac, it always adds only the default panel.
Other things like background image are changed as expected.
Rolling back my home manager configuration locked at 5af3d8f504d1d63aef73eda65c7a946c3fe3ac7a does not have this problem.

Same for me, I thought i was making some mistakes in the configuration, but after seeing this issue, I tried to rollback to https://github.com/pjones/plasma-manager/commit/5af3d8f504d1d63aef73eda65c7a946c3fe3ac7a and it starts to work as expected.

I got the same Problem. Thought, i did something wrong.

My bad, there is a syntax-error when not using multi-displays it appears, which I just forgot to check. Should be an easy fix luckily. I will fix later today.

That would be weird, because I am using multiple displays.

With panels on multiple screens @valeth?

Only one panel on the primary screen

Yeah that makes sense. I did fix the bug I was talking about in #150. Could anyone check if this solves the issues with panels? It now works on my config anyway.

Just tested it, seems to work like intended now


Adding agent with keylime_tenant results in 404 and keylime.tpm2 - ERROR - wrong public key type

Environment

OS / version: Fedora 29
Processor architecture: x86_64
TPM Manufacturer: Intel
Keylime version: master

Description
Run the following command:
keylime_tenant -v 1<verifier_ip> -t <agent_ip> -f /root/excludes.txt --uuid D432FBB3-D2F1-4A97-9EF7-75BD81C00000 --whitelist /root/whitelist.txt --exclude /root/excludes.txt
The verifier logs
keylime.cloudverifier - INFO - PUT returning 404 response. agent id: D432FBB3-D2F1-4A97-9EF7-75BD81C00000 not found.

The keylime_tenant shows the following stack trace:
2019-04-16 09:30:59.533 - keylime.tenant - WARNING - CAUTION: using default password for private key, please set private_key_pw to a strong password
2019-04-16 09:30:59.533 - keylime.tenant - INFO - Setting up client TLS in /var/lib/keylime/cv_ca
2019-04-16 09:30:59.538 - keylime.tenant - INFO - TPM PCR Mask from policy is 0x408000
2019-04-16 09:30:59.538 - keylime.tenant - INFO - vTPM PCR Mask from policy is 0x808000
2019-04-16 09:31:01.424 - keylime.registrar_client - INFO - Setting up client TLS...
2019-04-16 09:31:01.432 - keylime.registrar_client - WARNING - CAUTION: using default password for private key, please set private_key_pw to a strong password
2019-04-16 09:31:01.465 - keylime.tpm2 - ERROR - wrong public key type
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/keylime-1.2-py2.7.egg/keylime/tpm2.py", line 625, in verify_ek
    signcert = M2Crypto.X509.load_cert_string(trusted_certs[signer])
  File "/usr/lib64/python2.7/site-packages/M2Crypto/X509.py", line 851, in load_cert_string
    return load_cert_bio(bio, format)
  File "/usr/lib64/python2.7/site-packages/M2Crypto/X509.py", line 827, in load_cert_bio
    cptr = m2.x509_read_pem(bio._ptr())
X509Error: wrong public key type
Traceback (most recent call last):
  File "/usr/bin/keylime_tenant", line 11, in <module>
    load_entry_point('keylime==1.2', 'console_scripts', 'keylime_tenant')()
  File "/usr/lib/python2.7/site-packages/keylime-1.2-py2.7.egg/keylime/tenant.py", line 732, in main
    mytenant.do_quote()
  File "/usr/lib/python2.7/site-packages/keylime-1.2-py2.7.egg/keylime/tenant.py", line 624, in do_quote
    self.do_cvstop()
  File "/usr/lib/python2.7/site-packages/keylime-1.2-py2.7.egg/keylime/tenant.py", line 527, in do_cvstop
    raise UserError("Update command response: %d Unexpected response from Cloud Verifier."%response.status_code)
keylime.tenant.UserError: Update command response: 404 Unexpected response from Cloud Verifier.

Expected behavior vs. actual behavior
Steps to reproduce problem
Steps outlined above.

I have suspicion it has something to do with https://github.com/keylime/python-keylime/commit/82b9c670c0a118966cbfdf4004fddb7ab3a196d4#diff-242fc79fc17586955d7b4bcd2c12f4d5
I don't believe it should be responding with a 404 (UUID not found), when we are trying to add the agent.

Is this with a physical TPM or emulated?  That part of the code should not be running for an emulated TPM (verify_ek, which should be disabled in keylime.conf for emulated).
I'm also not sure why the verifier is performing a PUT (reactivate) when you're trying to perform a first-time 'add' command, unless the agent had already been provisioned?

Its a physical TPM

If you run tpm2_nvlist on that machine, does it list a key under slot 0x1c00002?
If it does exist, then can you export it and see what it looks like:
tpm2_nvread -x 0x1c00002 -s <KEY_SIZE_FROM_ABOVE_COMMAND> -f /my/output/file


rclone-browser: init at 1.2

Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Fits CONTRIBUTING.md.

I would rather close the PR, since it isn't going to work as expected.

What isn't working? It's working fine for me.


Adding icons in the support section

I'd like to add icons beside the headings in the 'How to Support' section

It'll look somewhat like this (with paragraphs)

Or like this

Just tell me which one do you prefer and I'll work on it

I'll go with the first one.

Sure!


Extension causes high cpu load

Issue Type: Performance
Extension Name: azurerm-vscode-tools
Extension Version: 0.15.1
OS Version: Windows_NT x64 10.0.19041
VS Code version: 1.55.2

:warning: Make sure to attach this file from your home-directory:
:warning:c:\Users\anehl\AppData\Local\Temp\msazurermtools.azurerm-vscode-tools-unresponsive.cpuprofile.txt
Find more details here: https://github.com/microsoft/vscode/wiki/Explain-extension-causes-high-cpu-load

@sayd0003 Thanks for the report, but I can't investigate if you don't attach the msazurermtools.azurerm-vscode-tools-unresponsive.cpuprofile.txt file that the bug report asks for (see above).


Certain new Crunchyroll videos return a sample clip error

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like that [x])
Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.07.09. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

[X ] I've verified and I assure that I'm running youtube-dl 2017.07.09

Before submitting an issue make sure you have:

[x] At least skimmed through README and most notably FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[X ] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
D:\Users\User\Downloads\youtube-dl2>youtube-dl.exe -v http://www.crunchyroll.com/in-another-world-with-my-smartphone/episode-1-awakening-and-another-world-742187 -f best --write-sub --sub-lang enUS --cookies cookies.txt
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'http://www.crunchyroll.com/in-another-world-with-my-smartphone/episode-1-awakening-and-another-world-742187', '-f', 'best', '--write-sub', '--sub-lang', 'enUS', '--cookies', 'cookies.txt']
[debug] Encodings: locale cp932, fs mbcs, out cp932, pref cp932
[debug] youtube-dl version 2017.07.09
[debug] Python version 3.4.4 - Windows-10-10.0.14393
[debug] exe versions: ffmpeg 3.2.2, ffprobe 3.2.2, rtmpdump 2.4
[debug] Proxy map: {}
[Crunchyroll] 742187: Downloading webpage
ERROR: This is a sample clip. To watch the full video, start a free trial today!; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp7cj3193h\build\youtube_dl\YoutubeDL.py", line 762, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp7cj3193h\build\youtube_dl\extractor\common.py", line 433, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp7cj3193h\build\youtube_dl\extractor\crunchyroll.py", line 400, in _real_extract
youtube_dl.utils.ExtractorError: This is a sample clip. To watch the full video, start a free trial today!; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

### Description of your *issue*, suggested solution and other information

This error only applies to certain videos on Crunchyroll. It seems to only be certain new videos. Every older video I've tried works fine as well as most new ones.

This video requires a subscription.

Obviously it requires a subscription. My subscription works fine for other videos. Why do only certain videos have this problem?

Same problem here for videos marked with the Yellow Crown Icon..


Remote creation of numpy arrays is slow on large lists

(From email)
The code below takes 5-10 seconds to run, which is 5-10 seconds too many:
import scriptcontext as sc
np = sc.sticky['numpy']

np.array(range(10000))

The solution is to load the list first to the remote, then create the array from the remote list, to avoid numpy reading the items of the list one by one through the connection:
import scriptcontext as sc
np = sc.sticky['numpy']

r_range = rpyc.utils.classic.deliver(rpy, range(10000))
np.array(r_range)

This supposes:
[] That tomerfiliba/rpyc#251 is fixed, so use a version after tomerfiliba/rpyc@e97f860
[] That the GH components have a reference to the connection in rpy.


MGDOBR-1180 - Archive artifacts with junit test results

MGDOBR-1180
Archive junit test results for E2E tests.
PR owner checklist
Please make sure that your PR meets the following requirements:

[ ] Your code is properly formatted according to this configuration.
Run mvn clean verify -DskipTests so that imports are correctly set.
[ ] Your commit messages are clear and reference the JIRA issue e.g: "[MGDOBR-1] - $clear_explanation_of_what_you_did"
[ ] The layers in the kustomize folder have been updated accordingly.
[ ] All new functionality is tested
[ ] Pull Request title is properly formatted: MGDOBR-XYZ Subject
[ ] Pull Request contains link to the JIRA issue
[ ] Pull Request contains link to any dependent or related Pull Request
[ ] Pull Request contains description of the issue
[ ] Pull Request does not include fixes for issues other than the main ticket

PR reviewer(s) checklist

[ ] Check if code and Github action workflows have been modified and if the modification is safe
[ ] If the modification is safe, add the safe to test label

How to trigger pipelines and use the bots:

Run the end to end pipeline
Annotate the pull request with the label: safe to test. If you want to run the pipeline again, remove and add it again.

Rebase the pull request
Comment with: /rebase.

Deploy BOT
Comment with `/deploy <dev,stable> when the PR has been merged to deploy to a target environment.

@jiripetrlik @sutaakar - just out of curiosity and not related to this PR.
I noticed we have two files named stable-cluster-check.yml and stage-cluster-check.yml.
Are they duplicated? shouldn't we have only one for stage environment?

@afalhambra no, we actually have both stable and stage environments.


update-deps: track master

We tracked release-0.14 for the 0.14 release, now we need to track master again.

/lgtm


Bump Go to 1.14

https://travis-ci.org/github/liamg/tfsec/jobs/680604403
run 'go mod vendor' to sync, or use -mod=mod or -mod=readonly to ignore the vendor directory

would you be OK with removing vendor/*?


InfoLayer not working on Mapsui.Forms 2.0.0 beta 17

I can't get infolayer working in my forms project. Only testing with android right now.
`
private void RefreshLayer(ILayer features, IStyle style, string layerName, bool ClearCache)
{
var selectedLayers = MapControl.Map.Layers.FirstOrDefault(l => l.Name == layerName);
if (selectedLayers != null)
{
features.IsMapInfoLayer = true;
MapControl.Map.Layers.Remove(selectedLayers);
MapControl.Map.Layers.Add(features);
MapControl.Info += MapOnInfo;
//THEN THIS NEVER GETS CALLED WHILE TAPPING ON LINES
private void MapOnInfo(object sender, MapInfoEventArgs e)
{
if (e.MapInfo?.Feature != null)
{
var item = e.MapInfo?.Feature;
item = item;
}
}
`

Sorry, wrong repo to be asking this question in.

I‘m not sure, if this is the case. Since 2.0 the Forms implementation is integrated into Mapsui. The the question is, what you use: a wrapper around the native MapControls or the Forms MapControl?

@mattmiley - This is fixed in the current master for MapControl. The Info event wasn't being called correctly. It is still not correct as of beta 25. But if another build comes out it should be fixed.

Thank you, I'll watch for the next prerelease.


Mobile View

In the mobile size screen i think the image should be above the text, it may add a bit better user interactivity with the website. Putting the text first won't seem that nice. Please have a look and if you think it is a valid issue then please assign me the issue under LGMSOC'21.

I think this is okay.


Encoding is enforced in some places

Takes has some places in code where UTF-8 encoding is enforced, e.g. RsPrint uses Utf8OutputStreamWriter to convert response body to UTF-8 string. I think it's not correct, because Takes user should be able to configure global encoding via JVM arguments, e.g. to use UTF-8 encoding: -Dfile.encoding=UTF-8.
So I'm suggesting to use Charset.defaultCharset() or InputStreamReader.getEncoding() where possible. This way can change Takes encoding via args.

@paulodamaso/z please, pay attention to this issue


Update Go version

The linux runtime Go 1.18 is not supported any more (run 'az webapp list-runtimes --os Linux' to confirm)

@msangapu-msft
Can you review the proposed changes? Note that the validation warnings must be resolved before merging.
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

Close/reopen to clear warnings

#sign-off


Worker executor does not support null values

Consider the following task:
// buildSrc/src/main/java/MyCustomTask.java
import org.gradle.api.Action;
import org.gradle.api.DefaultTask;
import org.gradle.api.tasks.*;
import org.gradle.workers.*;

import javax.inject.Inject;

class MyCustomTask extends DefaultTask {
    String myMessage;

    private final WorkerExecutor workerExecutor;

    @Inject
    public MyCustomTask(WorkerExecutor workerExecutor) {
        super();
        this.workerExecutor = workerExecutor;
    }

    @TaskAction
    public void run() {
        workerExecutor.submit(MyCustomRunnable.class, new Action<WorkerConfiguration>() {
            @Override
            public void execute(WorkerConfiguration workerConfiguration) {
                workerConfiguration.params(myMessage);
            }
        });
    }

    public static class MyCustomRunnable implements Runnable {
        private final String message;

        @Inject
        public MyCustomRunnable(String message) {
            super();
            this.message = message;
        }

        @Override
        public void run() {
            System.out.println(message);
        }
    }
}

And the following build script:
// build.gradle

task printHelloWorld(type: MyCustomTask) {
    myMessage = "Hello, World!"
}

task printNull(type: MyCustomTask) {
    myMessage = null
}

Running printHelloWorld prints "Hello, World!".
Running printNull fails with NPE.
Scan with the stacktrace: https://scans.gradle.com/s/segkpbzwzjdvg/failure?openFailures=WzBd&openStackTraces=WzEse31d#top=0
Expected behaviour: I think null values are useful for passing optional values, and they should be supported.

Similar to, if not the same as, #2405.

Yep, duplicate of #2405


Autoscaling

Implement autoscaling for cluster services

Hi! @VadymBerezdetskyi !
Thanks for the issue, could you please add more context to this issue ?
What's your use case for Autoscaling support in the operator ?

Are you interested on implementing this feature ?


JSONB/JSON type in model not supported

JSON support for MySql and Postgres was released, but VSCode does not recognize these types yet.

What version of the extension are you using?

Sorry, looks like I had an error on my schema.


ERROR: unable to locate youtube-dl details in

Can't build it on heroku - v1.11.0 version. Related to permissions
ERROR: unable to locate youtube-dl details in /tmp/build_cae19459a70227cbc28692e5fc17dbe6/vikmeup-MinNodeExpress-127efed7f713a1c21eecc88b513e2df99aa395dd/node_modules/youtube-dl/bin

@fent Anything on this?

@vikmeup can you provide entire output during installation

That's the most I can get, it's related to the last commit with permissions.

@vikmeup well it looks like it's not permissions ...
Once deployed and during source build installation path is pointing to /tmp/build_f7aee58993d7588e89d11e25033fb42b/node_modules/youtube-dl/ but at run time it's /app/node_modules/youtube-dl/ hence inability to locate bin.
We might need a special behaviour for heroku.

@vikmeup try latest master it should work fine on heroku now

@przemyslawpluta works fine now! Thanks for fixing it.
Please push a new release :)

I also had the same problem. For what it's worth, the error reported with babel-node and Node.js 6.9.1 is different and hard to decipher. Pasting below in case others are searching for the same error message.
ubuntu@ip-172-31-16-178:~/Workspace/example-dot-com$ make test
babel-node test.js
path.js:7
    throw new TypeError('Path must be a string. Received ' + inspect(path));
    ^

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.dirname (path.js:1324:5)
    at Object.<anonymous> (/home/ubuntu/Workspace/example-dot-com/node_modules/youtube-dl/lib/youtube-dl.js:19:71)
    at Module._compile (module.js:570:32)
    at Module._extensions..js (module.js:579:10)
    at Object.require.extensions.(anonymous function) [as .js] (/home/ubuntu/.yarn-config/global/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/ubuntu/Workspace/example-dot-com/src/Video.js:19:1)
    at Module._compile (module.js:570:32)
    at loader (/home/ubuntu/.yarn-config/global/node_modules/babel-register/lib/node.js:144:5)
    at Object.require.extensions.(anonymous function) [as .js] (/home/ubuntu/.yarn-config/global/node_modules/babel-register/lib/node.js:154:7)
    at Module.load (module.js:487:32)
Makefile:23: recipe for target 'test' failed
make: *** [test] Error 1

same issue

I'm getting the same error :\

same???

I came up with a hacky solution that's working for me
Install youtube-dl as a buildpack and then point your binary towards that on Heroku

Not on heroku here. But I tracked down the issue to the downloader.js. There is a postinstall script that requests this page http://rg3.github.io/youtube-dl/download.html then does some regex matching to get the current binary download url. For some reason the html that comes back from request is all corrupted and the regex doesn't match anything, so the binary isn't downloaded. I can't reproduce this in a local environment, only experiencing it on AWS ec2 with node 6.11.1.

Nice find, I have a feeling it's something to do with Ubuntu vs OS X. Are you using OS X locally?

How did you fix this error?


run 'python grounding_dino_demo.py ' get error

/home/agmap/users/conda/gsam/lib/python3.10/site-packages/torch/functional.py:504: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:3483.)
return _VF.meshgrid(tensors, **kwargs)  # type: ignore[attr-defined]
final text_encoder_type: bert-base-uncased
Some weights of the model checkpoint at bert-base-uncased were not used when initializing BertModel: ['cls.predictions.transform.dense.bias', 'cls.predictions.decoder.weight', 'cls.predictions.transform.dense.weight', 'cls.seq_relationship.weight', 'cls.predictions.transform.LayerNorm.weight', 'cls.seq_relationship.bias', 'cls.predictions.transform.LayerNorm.bias', 'cls.predictions.bias']

This IS expected if you are initializing BertModel from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model).
This IS NOT expected if you are initializing BertModel from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model).
_IncompatibleKeys(missing_keys=[], unexpected_keys=['label_enc.weight'])
/home/agmap/users/conda/gsam/lib/python3.10/site-packages/transformers/modeling_utils.py:862: FutureWarning: The device argument is deprecated and will be removed in v5 of Transformers.
warnings.warn(
/home/agmap/users/conda/gsam/lib/python3.10/site-packages/torch/utils/checkpoint.py:31: UserWarning: None of the inputs have requires_grad=True. Gradients will be None
warnings.warn("None of the inputs have requires_grad=True. Gradients will be None")

Hello, it seems like a warning more than error? Would you like to share more info with us about this~

I have same question, and no output

I have same question, and no output

I have same question, but when I change DEVICE = "cuda:5" to  DEVICE = "cuda", it works.

I have same question, but when I change DEVICE = "cuda:5" to DEVICE = "cuda", it works.
Is that the sentence you changed:
export CUDA_VISIBLE_DEVICES=0
python grounded_sam_demo.py
--config GroundingDINO/groundingdino/config/GroundingDINO_SwinT_OGC.py
--grounded_checkpoint groundingdino_swint_ogc.pth
--sam_checkpoint sam_vit_h_4b8939.pth
--input_image assets/demo1.jpg
--output_dir "outputs"
--box_threshold 0.3
--text_threshold 0.25
--text_prompt "bear"
--device "cuda"

I have same question, but when I change DEVICE = "cuda:5" to DEVICE = "cuda", it works.

It's something wrong with the custom operator MultiscaleDeformable Attention, it did not support to set specific CUDA device for inference, to solve this problem you can set the CUDA_VISIBLE_DEVICES before running the demo:
CUDA_VISIBLE_DEVICES=5
python demo.py


Sass: Apply a Style Until a Condition is Met with @while Text-1 not passing test

Describe your problem and how to reproduce it:
On the Sass task called "Sass: Apply a Style Until a Condition is Met with @while" the test does not pass for text-1
Add a Link to the page with the problem:
https://learn.freecodecamp.org/front-end-libraries/sass/apply-a-style-until-a-condition-is-met-with-while
Tell us about your browser and operating system:

Browser Name: Chrome
Browser Version: 71.0.3578.98
Operating System: Windows 10 64bit

If possible, add a screenshot here (you can drag and drop, png, jpg, gif, etc. in this box):

Can you post your actual code, vs. a screenshot, because it appears as if your code is correct, but maybe you have some hidden characters which are throwing off the tests.  Also, did you bring this issue up on the forum first?

Sure:
`
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello`

Sure

  $x: 1;
  @while $x < 11 {
    .text-#{$x} { font-size: 5px * $x;}
    $x : $x + 1;
    }

</style>

Hello

Hello

Hello

Hello

Hello

Hello

Hello

Hello

Hello

Hello
```

Your code passes when I use it.  You may just need to refresh your browser or clear your cache and try again.  If you would have posted this to the forum, you would have received the same instructions and a much faster response.

I already closed and restarted my browser multiple times however. I am aware that this issue was opened some times earlier on here as well and has since been closed. I tried all the instructions however and it still does not work for me.
What I have not done yet is clearing my cache, however since I am in incognito mode (I am using someone elses notebook for the moment) this should not be much of an issue right?

@RandellDawson I don't think the PR fixing it hasn't been shipped yet. When did we last push the repo to production ?

@mstachalski I am wondering if you have a browser setting which is affecting your ability to go below 6.6667px.  I will ask some others for some more feedback on why you maybe seeing that one specific test related to the text-1 class.
As far as the 2nd issues regarding the increment error, that is a bug in the tests which has yet to be fixed (@thecodingaviator I tested this same code locally on the latest version of the master branch` and it still fails.  I have created PR #35100 to deal with the spacing issues related to incrementing the index.

I was able to get a similar error when my browser was zoomed to 80%. Try making the zoom 100% or other zoom levels and run the tests again @mstachalski.

@RandellDawson Chrome's minimum font size is 6px.

@mstachalski What zoom percentage are you using when you experience this issue.  If you change to 100% zoom, do you still experience the problem?

Hey, sorry for my late reply.
I don't remember anymore since it was quite some time ago. I'm pretty sure it was on 100%. However I was programming on a convertible laptop , alike Microsoft surface. Maybe the screen size / resolution / ratio of that might be the issue?

To anyone who has had problems with this challenge using Chrome, if you go to chrome://settings/fonts and make sure you set minimum font size to the lowest setting, does that allow you to pass all the tests?

To anyone who has had problems with this challenge using Chrome, if you go to chrome://settings/fonts and make sure you set minimum font size to the lowest setting, does that allow you to pass all the tests?

@mstachalski  and @RandellDawson
Thank for your reporting and handling this issue. You saved my day!


Enable compile downstream build everywhere

This should enable automatic start of compile downstream build (not full downstream built) for all 7.x repositories. I will leave the decision to enable this to others, however I think it should be beneficial.

i agree it can help, but is this really useful for all repositories - meaning even ones they are not used in any downstream repositories?
I would rather instead of this global one change to add more repos which APIs are used in downstream. Like jbpm, optaplanner or so. We really don't need to enable CDB on all 20+ repositories IMHO.

I agree Marek, that it doesn't make sense for repositories without any dependent repository. I will update the PR.

Thanks @baldimir for your proposal!!
I agree with @mareknovotny and we would also overload an already overloaded jenkins machine, I'm always about having as much PR checks as possible to help developers to take decisions over a particular change proposal but we have to balance how useful those PR checks really are vs the resources we have for running them.

closing as out dated


PR + Issue Labeler GitHub Action

A GitHub action to label new issue and PR with Hacktoberfest label.

Can you provide more information on what steps you expect in the pipeline? Only lint and tests?

@Lukitaduarte Check the description, it is updated now.

i'm on this

@Mrgove10 Assigning it to you.

hey @himanshusharma89 I am relatively new to flutter and have made some apps but want to learn more about it and open source as well, Can you please assign me a beginner friendly issue or something. Thankyou

Sure @Dhruv-Sachdev1313, I'll create some and tag you in it.

Hi @Mrgove10, any update?

Hello,
I tried something but doesnt realy work, I will unassign myself.

i can work on it @himanshusharma89

Okay, @Lukitaduarte. Assigning it to you.

Hey @Lukitaduarte, any update?

Hi @himanshusharma89, sorry but delay I will work on it tomorrow, but if someone appears before, you can sign for it;)

Okay @Lukitaduarte, take your time.

@Lukitaduarte Any update?


Added mention of nbdev to installation docs

I auto-generated README.md by editing nbs/index.ipynb and running nbdev_build_docs.
This process seems to have removed the header comment about the README file being auto-generated.
Are we supposed to manually add the header after running nbdev_build_docs?
I'm happy to do more work before this PR gets merged.

Closing this PR as it's been a while. I added a different mention of nbdev in the index/README.


Remove contentious rule FC001

Originally the FC001 rule matched against symbols, which I brought up (issue #1) as contrary to what Opscode and other Chef trainers using Opscode's materials teach students, which is to access node attributes with strings as keys.
Read the original issue for more background on my reasoning. The rule itself is contentious, as people have varying preference between node attributes as a string, symbol or method. Symbols are the leading way to access attributes per the survey I posted (233 respondents in ~2 weeks), followed by strings. While this is not representative of every Chef user, the trend for these %'s was consistent while the survey was open.
This rule was brought up in assorted conversations at the Chef Community Summit last week, and I propose that the rule be removed from foodcritic entirely. Functionally there is absolutely no difference between symbols and strings, as symbols in node attributes are converted to strings by the underlying library anyway. This is purely a "what color should we paint the bikeshed?" issue.
Here's the pie graph of the survey's results:
https://www.evernote.com/shard/s5/sh/1fc5a0c9-bdd0-44f4-8f5a-ed2ddc9d2cfd/a13f36acd7cfa2a468f7829e5549209f

Dunno if anyone still cares, but the Chef implementation of Mashes converts all symbols internally to strings anyway, so arguments about how ruby does things are irrelevant since symbols are always slower in Chef.  Given that and the fact that new users will stumble over :foo_bar working vs. :foo-bar failing (and then needing to learn the :"foo-bar" syntax), the winner here is strings.
And it used to be doubly-awful to use symbols since not only would they get converted to strings, but the symbols that were created first would never be garbage collected until very recent MRI rubies.


Fix Log routing + minor fixes on Log

Fixes: https://github.com/01org/mavlink-router/issues/103

Fixed #103 for me on my Ubuntu 16.04 x86-64 desktop.

Thank you, pull request merged! :octocat: Sent from GH.


New release for eo-sys-0.0.11

New release for eo-sys-0.0.11

PR-Codex overview
This PR focuses on updating the version of the org.eolang.sys package and its dependencies.
Detailed summary

Updated the version of org.eolang.sys package and its dependencies from 0.0.10 to 0.0.11.
Added tests package to org.eolang.sys.
Updated the home field of org.eolang.sys.call, org.eolang.sys.uname, and org.eolang.sys.win32 objects.
Changed the command line argument for the win32 function in org.eolang.sys.win32 object.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@rultor merge

@rultor merge

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge

@yegor256 Done! FYI, the full log is here (took me 18min)


Broken theme even after adjusting localhost SSL settings

Problem
I've tried creating a theme a few times by following the instructions and it when i run yarn start its broken. I fixed the HTTPS blocked issue but even with assets loading the site appears broken.

How did you fix this? You closed the issue without stating your solution. 😃  @joshbedo


Make the interactive brainfuck commandline respond to EOF (Ctrl-d).

Implements behavior similar to interpreters such as python, node.
Will quit the interpreter when EOF, "^D", is entered as the
first character.

Cool!


Write for us

I'm sorry for writing here but it was the only way to contact you,
Write for us
You are good in the cybersecurity field? Then you can write for us about your own tool on GitHub and the use of it.
Your article will be published with your name and a link to your website and social media accounts if you want.
please reply to this Email:kalitutwrite @ gmail .com
Walid Salame
www. kalitut .com
Twitter: @xKaliSec

I would seriously love to promote my tool as I feel it can help ameture
hackers please I will appreciate your help
On Thursday, February 18, 2021, Walid Salame<EMAIL_ADDRESS>wrote:

I'm sorry for writing here but it was the only way to contact you,
Write for us
You are good in the cybersecurity field? Then you can write for us about
your own tool on GitHub and the use of it.
Your article will be published with your name and a link to your website
and social media accounts if you want.
please reply to this Email:kalitutwrite @ gmail .com
Walid Salame
www. kalitut .com
Twitter: @xKaliSec
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/morpheuslord/Brute-Hacking-Framework/issues/1, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AQ25N75Q5AVPO7J4NJ2W4VLS7TG53ANCNFSM4XZ32IPA
.

Great, please write your article and send it to my email kalitutwrite@gmail .com or you can email me there for help on how to write it perfectly

Great, please write your article and send it to my email kalitutwrite@gmail .com or you can email me there for help on how to write it perfectly

I have written an email please check the email
And u can email to my other email address
<EMAIL_ADDRESS>

i checked the email, i wanted you to write a new article more details and easy tutorial for usage,
indeed in the email, i see you copied the same github page

i checked the email, i wanted you to write a new article more details and easy tutorial for usage,
indeed in the email, i see you copied the same github page

Y'a u see I am very bad at explaining stuff so I will edit it and add various tutorials links for all the tools and I will add some Gifs for running all the tools with the Readme copy

i checked the email, i wanted you to write a new article more details and easy tutorial for usage,
indeed in the email, i see you copied the same github page

I am from India and over here we are having 2nd pu board exams and I have to study for that so I am not able to spend time for programming and updating the tool.

i checked the email, i wanted you to write a new article more details and easy tutorial for usage,
indeed in the email, i see you copied the same github page

U can add this lines to the article rest all is self explanatory
usage
It's easy to use to run the tools u need to type :
λ list
In the command interface U will be shown all the tools included by me This command will lead to the main framework
λ Brute-framework
U need to type this command to access most of the tools If u type this command in the total kit
In brute-framework u can see all the tools included
U will be prompted to this command interface after u type
λ Brute-Framework
U have to type help command in the new interface to see the listed commands
Users[]- help
U can access other tools by checking the user_aliases.cmd file in the config folder u can add and delete tools from it U can take YouTube for learning the nessary skills I prefer these YouTube channel :- *nullbyte *networkchuck *zsecurity.
And for brute framework original code check this channel :- *TechnicalUserX.
Thank u

Or u can even check the Readme.md file from the Brute-Hacking-Framework-SourceCode repo that's fully explained in it

I have sent you a new mail and I think that much is enough my tool is easy to understand I think so I really don't know


The "Import/export jobs" blade doesn´t exist anymore on the Azure Portal

This document refers to go to the Import/Export blade on the Azure Portal to create new Job, however this blade got removed (or was moved to someplace else)
I´m referring to this section:
"Perform the following steps to create an export job in the Azure portal.
 Log on to https://portal.azure.com/.
 Go to All services > Storage > Import/export jobs."     <==== This is not valid anymore.

Can we please consider fixing this public documentation!?
Thanks

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

ID: b51e3a8d-6204-ac1b-996f-4b855e431df8
Version Independent ID: 7ccaa486-db3e-7e9c-9960-b9af8134d896
Content: Using Azure Import/Export to transfer data to Azure Blobs
Content Source: articles/storage/common/storage-import-export-data-to-blobs.md
Service: storage
Sub-service: common
GitHub Login: @alkohli
Microsoft Alias: alkohli

@diegoalb Thanks for bringing this to our attention. There is an existing issue open for this. Please follow it for updates.
https://github.com/MicrosoftDocs/azure-docs/issues/68773

@diegoalb Thanks for bringing this to our attention. There is an existing issue open for this. Please follow it for updates.
https://github.com/MicrosoftDocs/azure-docs/issues/68773


Provide lock functionality for "local" cluster in HA mode

In a 2.0 HA install setup, it's very easy to accidentally modify the "local" cluster. I know this is like shooting on self in the foot. But can we provide a safety lock?

With HA, you have the ability to hide the local cluster:
https://rancher.com/docs/rancher/v2.x/en/installation/ha/helm-rancher/chart-options/#import-local-cluster


trained policy file

Hi, how can I find the policy file (.ckpt or .xml, or .tflite file)? I need it. please upload it.

If you're looking for the policy file (.ckpt, or .xml, or .tflite), you can find it in the Model Management section. There, you'll see a collection of files, including the assets file and the necessary .tflite files. Simply navigate to the Model Management tab, and you should find what you're looking for.
And If you've trained your own model and are looking for the policy file, you'll typically navigate to the directory named "policy".

Thanks. but I didn't see the location of tflite files. in the model management section, we can just see models and not their locations in phone storage.

The tflite files are downloaded from web using this json file. You can visit path for particular model and download it from there.
config.json

Yeah, thanks. but how can I get autopilot_float.tflite ? because in config.json , it doesn't have url.

For autopilot_float.tflite :- autopilot
Its all available in https://storage.googleapis.com/openbot_models/<Model_Name>
You have to just put model name and the tflite will be download.


Missing verbose_format: ".... {date} ......" in UI mode

Describe the bug
Argument verbose_format is missing in UI configuration mode, resulting in a display regression compared to the yaml mode.
I was using the conf below to produce a simple date (ie : 13 Mar )
verbose_state: True
verbose_format: "{date}"
date_format: %d %b
UI mode doesn't allow verbose_format option and the output is on 13 Mar, in 4 days
Version
Last version for everythings

The UI does support verbose format configuration

Ok thanks, might be a cache issue as i don’t have the verbose format field on my UI

Weird. It is on the first step, where you configure the frequency. And it is not a recent feature.

I found why, my fault in fact because i've put literal curly bracket in this label when i had done the french translation

Thanks for your screenshot !


AutocorrectLogic#safe_autocorrect? may be returning true erroneously

It appears like safe_autocorrect? may be returning true for cases where autocorrection is not safe.
For example, Lint/BooleanSymbol supports autocorrection, but the docs report that it is unsafe. Additionally, the RuboCop's default.yml agrees and has SafeAutoCorrect: false.
However, if you were to instantiate the cop and ask if it was safe, it would return true:
RuboCop::Cop::Lint::BooleanSymbol.new.safe_autocorrect?
=> true

Is this a bug? It's affecting which cops Standard thinks are safe to autocorrect, so I'm trying to find the proper way to ascertain whether a violation is safely autocorrectable programmatically.
Thank you for all your hard work!!! 💚

@koic, could you take a look at this? I am concerned Standard may be running unsafe autocorrections as a result 😬

Yeah, I'll look into it later. Thank you for the feedback!

This looks like unexpected behavior. Either way I think it's a bug and opened #11729 as a patch.

Thanks!!


Title: Unexpected Application Shutdown

Type: Bug
Steps to Reproduce:
Open the application.
Navigate to the ‘Settings’ menu.
Click on the ‘Update’ button.
Actual Result: The application shuts down unexpectedly with an error message “Application has stopped working”.
Expected Result: The application should start the update process without any errors.
Additional Information: This issue occurs on both Windows and macOS versions of the application. It seems to be more frequent when the system is under heavy load.
VS Code version: Code 1.83.0 (e7e037083ff4455cf320e344325dacb480062c3c, 2023-10-03T16:12:16.321Z)
OS version: Windows_NT x64 10.0.22631
Modes:

Hi @markjpT
Thanks for reaching VS Marketplace Team, Would you kindly describe the problem with a screenshot for better investigation?
FYI: If the issue is specific to VS Code editor and tools. It is best to reach out VS Code team at  https://github.com/microsoft/vscode/issues.
Thanks,
VS Marketplace Team

Closing the issue since there has been no updates on the information requested.
If the issue still persists, please feel free to reopen and create a new issue.


Project still active ?

Hi,
someone knows if this project is still active? Looks like last commit is 3 month ago and alot of not merged pull requests. Maybe there is a active fork somewhere around? Still have problems with not restarting nginx-gen, and issue about this topic is open for a while now, and I cant see any answeres from Jwilder somewhere :(

Why do you still need docker-gen? Consider switching to Traefik, it solves the same problem.

Why do you still need docker-gen? Consider switching to Traefik, it solves the same problem.

it´s somehow different :D
I tried Traefik, but I have other problems with it, much less Documentation and help for Treafik at the moment, and I wasn´t able to get Collabora to run with Traefik and I´m not alone with this Problem  :(

@sikmir you may not have helped @Aschenbecher but this little comment made me find Traefik and I hadn't seen it before. It is exactly what I was after. I started adding in a new environment variable and then adjusting the template to fit, but that is the one.
For those looking to do www redirects, if the goal is to have a single place to redirect your domain to you can add a new environment variable DEFAULT_REDIRECT_HOST then add this into the tmpl:
{{/* Get the DEFAULT_REDIRECT_HOST defined by containers w/ the same vhost */}}
{{ $redirect_host := trim (or (first (groupByKeys $containers "Env.DEFAULT_REDIRECT_HOST")) $host) }}

Change the 301 redirect line for https redirects to
return 301 https://{{ $redirect_host }}$request_uri;
and in the server blocks wrap this around before you include the vhosts (that goes in the else bit)
{{ if ne $redirect_host $host }}
    return 301 https://{{ $redirect_host }}$request_uri;
{{ else }}
    ....
{{ end }}

Something like that should work and be configurable per domain I think
Related: https://github.com/jwilder/nginx-proxy/issues/1254
I did almost get a more complicated redirect variable working, but the scoping of variables in the golang text templates makes it very difficult to do within the tmpl file and I don't know enough go to customise any other bits.

Could this project to converted to use Traefik instead of Nginx? It seems a lot easier to configure and has a nice UI frontend.

This is a good project, but getting stale without any active merging of PRs

as a quite note: I came to this project after I was using Traefik and looking for an alternative.

Why should Traefik be better? I really like Nginx, it is an industry standard and supports many plugins including modsecurity. There doesn't seem to be WAF in Traefik for example (https://github.com/containous/traefik/issues/431 and no custom plugins https://github.com/containous/traefik/issues/1336). Traefik also doesn't have the control plane and data plane separated (it is in Traefik Enterprise Edition only) so if Traefik is hacked, the attacker could access the docker socket.
It is also popular to use Nginx for Kubernetes ingress https://github.com/kubernetes/ingress-nginx.
And docker-gen is capable of generating basically any configuration file, not just for Nginx. This project makes sense to me but probably needs a new maintainer.

Like others have said, docker-gen is more general purpose than just part of an ingress. And Nginx is our go to reverse proxy any day.
We do use Traefik and love it for what it does. Unfortunately we also need fastcgi for some services which Traefik is currently not planning to support. Docker-gen actually solves our problems perfectly. When used with Nginx, the fact that we can maintain our own nginx.tmpl gives us full control over things which is a godsend.
Be really sad to see this project go.


Alternative cookie implementation

Description
This is an alternative Cookie object implementation for the HTTP component and others (Security, Session).

A CookieInterface defines the basic methods for all HTTP cookies.
A ClonableCookieInterface, which extends CookieInterface defines methods of an immutable HTTP cookie.
A Cookie implementing ClonableCookieInterface representing an immutable HTTP cookie object.
A CookieStore represents an immutable collection of Cookie objects.

This tried to retain BC as much as possible by retaining previous logic. However, inevitable changes include ResponseTrait::getCookies() will return an array of Cookies instead of array of arrays; ResponseTrait::getCookie() will return Cookie[]|Cookie|null instead of array of arrays, array, or null;
Checklist:

[x] Securely signed commits
[x] Component(s) with PHPdocs
[x] Unit testing, with >80% coverage
[x] Conforms to style guide

To-do:

[ ] Integration with Security and Session components
[ ] Find regressions with other components
[ ] User guide updated
[ ] Upgrading instructions

It looks solid. I hope to look at this code during the week.
But I have a general question. Is this rewrite adds any missing features or resolve underlying problems that the previous implementation had? I'm asking about it because of BC. Cookies are most likely used quite often, so any change would be painful to developers.

It looks solid. I hope to look at this code during the week.
But I have a general question. Is this rewrite adds any missing features or resolve underlying problems that the previous implementation had? I'm asking about it because of BC. Cookies are most likely used quite often, so any change would be painful to developers.

This is inconsistent with Build Cookie Class PR #3983 !!

This is inconsistent with Build Cookie Class PR #3983 !!

It looks solid. I hope to look at this code during the week.
But I have a general question. Is this rewrite adds any missing features or resolve underlying problems that the previous implementation had? I'm asking about it because of BC. Cookies are most likely used quite often, so any change would be painful to developers.

This adds new features on top of current implementation to retain BC so I'm not certain if the current has some bugs. Honestly, when I integrated the initial state of the Cookie to the HTTP layer, I found IMO "absurd" defaults so I need to modify a lot to retain BC. I have annotated places where BC was retained. There were some defaulting, like in path, that I feel buggy that I opt not to include.
Most of the references here are MDN and RFCs on cookies.

It looks solid. I hope to look at this code during the week.
But I have a general question. Is this rewrite adds any missing features or resolve underlying problems that the previous implementation had? I'm asking about it because of BC. Cookies are most likely used quite often, so any change would be painful to developers.

This adds new features on top of current implementation to retain BC so I'm not certain if the current has some bugs. Honestly, when I integrated the initial state of the Cookie to the HTTP layer, I found IMO "absurd" defaults so I need to modify a lot to retain BC. I have annotated places where BC was retained. There were some defaulting, like in path, that I feel buggy that I opt not to include.
Most of the references here are MDN and RFCs on cookies.

This is inconsistent with Build Cookie Class PR #3983 !!

Yes, because this is an alternative.

This is inconsistent with Build Cookie Class PR #3983 !!

Yes, because this is an alternative.

s is an alternative.

I already started PR 30days ago and still under progress why we don't finish it ? and then make improvements to it?

s is an alternative.

I already started PR 30days ago and still under progress why we don't finish it ? and then make improvements to it?

I think I like how it works, but we would need clear guidance on how to migrate our existing code to the new Cookie class. Also, this definitely can't go to the 4.0.x branch - the change is just too big.
4.1 feels more proper for such a change but I would like to hear what others think about it.

I think I like how it works, but we would need clear guidance on how to migrate our existing code to the new Cookie class. Also, this definitely can't go to the 4.0.x branch - the change is just too big.
4.1 feels more proper for such a change but I would like to hear what others think about it.


nz-modal trigger (nzAfterClose) when component init

Version
1.1.1
Environment
angular 6
Reproduction link
https://stackblitz.com/edit/ng-zorro-antd-start-m1gh88
Steps to reproduce
check the console
What is expected?
don't trigger afterClose when component init
What is actually happening?
trigger afterClose when component init
Other?

you use nzVisible = false to close the modal, the afterClose will be called as designed.


what command to this bot ?

check to main.js
only available commands:
halo
save
resend
sticker
tagme
replyme
shutdown

just that


Where to get tfhub_module.pb?

I am trying to get the immediate layer output of Bert, and according to the solution in this issue, it seems like I have to use tensorflow 1.0.
But when I change from tf 2.0 to tf 1.0, I got the error in this issue, and according to the comment it is because I do not have the file tfhub_module.pb which is expected by hub.Module
What can I do? Any suggestions will be highly appreciated!

Hi @iamxpy,
the TF2 Bert models don't expose intermediate layers. You can try using TF1 models, like this one: https://tfhub.dev/google/bert_cased_L-12_H-768_A-12/1.

@vbardiovskyg Thanks for your reply! Still I want to know what is the difference between bert_uncased_L-12_H-768_A-12 and bert_en_uncased_L-12_H-768_A-12? Implemention Version (tf1 or tf2)? Or the former is not pre-trained on English corpus (Its name does not contain "en")?

They are both trained on English, not sure why the "en" was not included in the handle. Those two models were published by different publishers (internal teams), so they might have different naming schemes.

@vbardiovskyg Got it, thanks a lot!


Pet card design colors,button and description

@felipeands  i want work on this issue please assign me this issue

Hello I am Bhumika a contributor from GSSoC , I want to contribute in adding new features and solving issues, can i do that?

@AakankshaSarode Can you please elaborate.

I want to contribute in adding new features and solving issues, can i do that?


Firestore GeoPoint Type

Similar to issue #12437, the Firestore plugin should convert GeoPoint data types from the store to an official Dart type, if one exists.
GeoPoint Reference
Firestore Data Types

I don't think we have a defined type for this yet, but we could create one.

Is this a request for the Dart team? Should we move it over to the Dart SDK?
cc @kasperl

This would just be a trivial type (class with two final doubles) in the plugin.

Ah, I see. Thanks.

Looks like this issue will cause the app to crash with the following exception:
Unsupported value: <FIRGeoPoint: (59.583559, 11.167059)> of type FIRGeoPoint
*** Assertion failure in -[FlutterStandardWriter writeValue:], ../../flutter/shell/platform/darwin/ios/framework/Source/FlutterStandardCodec.mm:321
Lost connection to device.
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unsupported value for standard codec'
	*** First throw call stack:
	(
		0   CoreFoundation                      0x000000010d885b0b __exceptionPreprocess + 171
		1   libobjc.A.dylib                     0x000000010d2ea141 objc_exception_throw + 48
		2   CoreFoundation                      0x000000010d889cf2 +[NSException raise:format:arguments:] + 98

(just some added context in case anyone is Googling for a solution to the above error)

Any update on this? I'm running into the same issue

Any update ? , i need to create this kind o document:
.setData({'value': 12, 'location': new GeoPoint(longitude: 3.4, latitude: 4.5) });

The fork mentioned in this PR https://github.com/flutter/plugins/pull/343 works for me for now :) seems close to merging

Can be closed, via flutter/plugins#429

@pauldemarco
This issue has been moved to https://github.com/FirebaseExtended/flutterfire/issues/956. Any further collaboration will be done there.

hi can anyone tell me how can i retrieve geopoint from firebase.
i am getting an error "type Geopoint is not a subtype of type String".In phone
code to add:
IconButton(
icon: Icon(Icons.search, color: Colors.black), onPressed: (){
Firestore.instance.collection('Location').add({
'location':
new GeoPoint(position.latitude,position.longitude),
});
      },),

code to retrieve:
class _PageeetState extends State {
@override
Widget build(BuildContext context) {
return Scaffold(
body: StreamBuilder(
stream: Firestore.instance.collection('Location'.toString()).snapshots(),
builder: (BuildContext context, AsyncSnapshot snapshot) {
if (!snapshot.hasData) return Text("There is no expense");
return ListView(children: getExpenseItems(snapshot));
},
),
);
}
getExpenseItems(AsyncSnapshot snapshot) {
return snapshot.data.documents
.map(
(doc) => Card(
    shape: RoundedRectangleBorder(
      borderRadius: BorderRadius.circular(20.0),),
    child: Padding(
      padding: const EdgeInsets.all(8.0),
      child: ListTile(
        title: Text.rich(
          TextSpan(
            text: 'location: ', // default text style
            children: <TextSpan>[
              TextSpan(text: doc['location'],),
            ],
          ),
        ),
      ),
    ),
  ),
)
    .toList();

}
}


Post-hoc EMA with non-deepcopyable model

I'm trying to figure out how to use the PostHocEMA module with a model that can't be deep copied.  I see that KarrasEMA has a ema_model argument meant to accommodate this use case, but there doesn't seem to be a way to specify it via PostHocEMA.
If I haven't just overlooked something, would you be interested in a PR to address this?  I think the simplest fix would look something like this:

Add an ema_models argument to PostHocEMA.  This would have to be a list of models, with the same length as gammas.
Add ema_model and tmp_ema_model arguments to PostHocEMA.synthesize_ema_model().

Alternatively, the model argument could be changed to accept either a nn.Module or a zero-argument callable that returns a nn.Module.  This would probably be a slightly bigger change under the hood, but I think the resulting API would be a bit nicer.

@kalekundert hey Kale, do you want to see if 0.7.4 works for you for the PostHocEMA ?

I haven't tried PostHocEMA yet, but I did notice that 0.7.4 breaks the old ema_model argument to EMA.  I think the problem is here:
https://github.com/lucidrains/ema-pytorch/blob/7f6cd7511e4b4726b09087c5a37584f012dc2ad7/ema_pytorch/ema_pytorch.py#L104-L105
Because torch modules are also callable, this code triggers even if the user passes an instantiated torch module.  I think the code instead needs to be if not isinstance(ema_model, nn.Module):.

@kalekundert oops, yes you are right! thank you

I ran into one other issue while testing PostHocEMA, but I made a PR to fix it: #34

@kalekundert thanks for the pull request! 🙏

Thanks for implementing this feature so quickly!


How to do the training on multiple images or image pair data?

Thank you for your contribution!
I tried to make a custom image pair dataset as:
{"image": ["image1.jpg","image2.jpg"], "text": "The following is a conversation between a curious human and AI assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\nHuman: \nHuman: \nHuman: Can you compare the different between these two images?\nAI: xxxx", "task_type": "xxx"}
However the training loss is always NaN.
How can I train a custom image pair dataset, or how did you train your video data?
Thank you so much!

I think you miss the  token as the placeholder for the image inputs? You may try this:
{"image": ["image1.jpg","image2.jpg"], "text": "The following is a conversation between a curious human and AI assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\nHuman: <image>\nHuman: <image>\nHuman: Can you compare the different between these two images?\nAI: xxxx", "task_type": "xxx"}

Thank you for your answer!
I'm sorry for my type error, I have the input token in the custom data, otherwise the program would report error.
But I think this is not the reason which caused the NaN, is there any possibility that data of specific task caused the nonconvergence? The custom dataset is about the urban landscape estimation and comparison.
I first tried to convert the case data in OwlEval to the train and val data as:
{"image": ["./OwlEval/cases/5.jpg"], "text": "The following is a conversation between a curious human and AI assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\nHuman: \nHuman: Where is the frisbee in the image? \nAI: The frisbee is in the air, being caught by the man in red.\n", "task_type": "gpt4instruct_sft"}
... totally 82 lines
Then tried to train, and the loss converged as:
0.7644 0.7428 ... 0.0154, in about 1000 iters.
Then I tried my dataset as:
{"image": ["image1.jpg","image2.jpg"], "text": "The following is a conversation between a curious human and AI assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\nHuman: \nHuman: \nHuman: Can you compare the different between these two images?\nAI: xxxx", "task_type": "xxx"}
... totally 4000 lines,
the loss is:
NaN NaN NaN.
To figure out the problem, I mixed the case data and the custom data as:
case data for 82 lines + custom data for 10 lines, it converged.
Then we change the setting to:
case data for 82 lines + custom data for 40 lines, it was NaN.
I trained our data just on the second stage, with A100 40G *4 GPUs, batchsize 4x4.
So I want to ask if there is any additional requirement or restriction for the dataset, or is there any training tricks?

I have met the similar case. I think there are some overflow during the training. I recommend you to have a look on the validation which is more reliable.

请问解决了吗，我也遇到了loss=nan这个问题

我和他遇到了一样的问题，在你们的数据集上，loss不为nan，在自己的数据集上，loss为nan

我和他遇到了一样的问题，在你们的数据集上，loss不为nan，在自己的数据集上，loss为nan

There is a high possibility that the issue is caused by the prompt being too long and the part complement being cut off during preprocessing. As a result, the label_mask is all -100 and CrossEntropy will return a loss of NaN. There are three potential solutions to this problem:

Prevent feeding input_ids that do not include any complement.
Set the reduction='none' in the CrossEntropyLoss of Llama and reduce the loss with an epsilon value likeoutputs.loss = (outputs.loss * loss_mask.view(-1)).sum()/(loss_mask.sum()+1e-5).
Simply set output.loss=0 if you get a loss of NaN.


simpler wheat decoding

instead of looking for a specific char at a specific point, drop the first (unencoded) character from the port after reading the lang
Low priority. If we find bugs in the original we can switch to this. Otherwise the original seems fine.

What happens cross-platform (read-char will deal with \n but what about Windows style CRLF?)

Good question. This PR might be a downgrade. I'll ask S. to test on Windows later.

Any reasons not to close this PR unmerged? @sidprasad @bennn


Creating a Greengrass Group with a device generates incorrect Cloudformation output.

Using your example as base code I modified it slightly to add a thing into the group:
let a_s = new iot.CfnThing(this, 'a_sensor', {
          thingName: 'MyThingSensor',
        })
       let a_group = new gg.Group(this, 'a_group', {
            core: new gg.Core(this, 'a_core', {
                thing: a_t,
                syncShadow: true,
                certificateArn: props.certificateArnCore
            }),
            devices: [new gg.Device(this, 'a_sensor_device', {
              thing: a_s,
              syncShadow: false,
              certificateArn: props.certificateArnSensor
            })],
            functions: [gg_lambda],
            subscriptions: subscriptions,
            loggers: [localLogger],
            resources: [tmp_folder]
        })

Unfortunately this fails with the following error during deployment:
AwsBlueprintIotStack failed: ValidationError: Template error: resource asensor does not support attribute type arn in Fn::GetAtt
Template error: resource asensor does not support attribute type arn in Fn::GetAtt

After looking into CF template output I noticed the following:
"agroupagroupdevicesA720B9C5": {
      "Type": "AWS::Greengrass::DeviceDefinition",
      "Properties": {
        "Name": "a_group",
        "InitialVersion": {
          "Devices": [
            {
              "CertificateArn": "arn:aws:iot:eu-central-1:980409644593:cert/263d1b96d60b71109613cedd6c3b701e96a99d706b9f622db2161d099ab21e62",
              "Id": "a_sensor_device",
              "SyncShadow": false,
              "ThingArn": {
                "Fn::GetAtt": [
                  "asensor",
                  "arn"
                ]
              }
            }
          ]
        }
      },

If you look at the ThingArn it tries to use GetAtt which indeed does not exist. Analyzing the same block of code for the thing that is associated to GG Core, it generated the ARN diffferenly:
...
"ThingArn": {
"Fn::Join": [
  "",
  [
    "arn:",
    {
      "Ref": "AWS::Partition"
    },
    ":iot:",
    {
      "Ref": "AWS::Region"
    },
    ":",
    {
      "Ref": "AWS::AccountId"
    },
    ":thing/MyThingCore"
  ]
]
}
...

And this works.
My question is, is this CDK related or related to your CDK constructs?
Regards,
Nikolai

Can you get the latest commit and test it?

Works as expected now. Appreciated!
Closing.


Fix bug when link inside a ol at line start

Hey, how's going on about this PR? This fixes links go after a ol tag will output the wrong tag.
1. [[link][http://abc.com]]

will output like
1. [link][http://abc.com]]


Does not switch back to relative when exiting insert mode with ^C

Why was this issue closed? I'm still observing this problem with the latest version.

I think ^C does not actually allow the plugin to do anything, taking you back to insert mode immediately.
Use:
inoremap <C-c> <Esc>

Hey both! Missed this one back in 2015. I don't use ^C to get out of insert mode, so I never noticed this isn't working, but I can reproduce this.
Using ^C doesn't seem to trigger the InsertLeave autocommand event, which is causing this. Aside from @RatanRSur's remap, I don't know how to fix it in numbertoggle, but I'd love a pull request if anyone has a great idea.

Thanks to both of you for being so responsive to an old issue!
Just to explain why @RatanRSur's suggestion alone wouldn't work for me: I use ^C because of the lag Esc causes when leaving insert mode. I'd have to also set 'noesckeys' in order for remapping ^C to be sufficient. That may be find for me, but for someone else, unsetting esckeys may not be desirable.
So there is some practical need to find another way to hook ^C. I'll keep an eye out for other ideas.

Using <C-c> to exit insert mode intentionally does not trigger the InsertLeave autocommand, and consequently this should not be changed. See :h i_CTRL-C

I think remapping <c-c> should be the best option here, but I’d rather not add that to the main plugin, as I’d prefer not to do any remapping if I don’t have to, and also because I don’t <c-c> to get out of insert mode.
If you do, I’d recommend @AndrewRadev’s suggestion to remap <c-c> yourself in your ~/.vimrc:
inoremap <silent> <c-c> set nornu<cr>


Release 0.2.0

Hello @celanthe,
I created another release:
https://github.com/camunda-community-hub/bpmn-driven-testing/releases/tag/0.2.0
It includes a rework of the test case API, which defines how a developer can implement and interact with the generated test cases:
https://github.com/camunda-community-hub/bpmn-driven-testing/issues/21
Best regards,
Gabor

Hi @gclaussn! This is fantastic. I've gone ahead and released this, and you should see it on Maven Central in a few hours! :) Thank you for your wonderful contributions to Camunda!


build failure2

Traceback (most recent call last):
File "build.py", line 222, in
main()
File "build.py", line 210, in main
build()
File "build.py", line 107, in build
need_update = os.path.getmtime(filename) > os.path.getmtime(objectname)
File "/usr/local/var/pyenv/versions/3.5.0/lib/python3.5/genericpath.py", line 55, in getmtime
return os.stat(filename).st_mtime
FileNotFoundError: [Errno 2] No such file or directory: 'base/nvti.o'

逻辑可能有一点问题，base目录和util目录的.o文件都先调用了

已更新。


Fix metadata resolution for getter and setters

Signed-off-by: Hanif Bin Ariffin<EMAIL_ADDRESS>

Description:

Fix metadata resolution on getter/setter.
BREAKING CHANGE:
None that I am aware of.

Related issue (if exists):
https://github.com/swc-project/swc/issues/5252

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

You can do UPDATE=1 cargo test to update test reference files

getting this error
   Compiling swc_css v0.127.10 (/home/hbina/git/swc/crates/swc_css)
error: custom attribute panicked
   --> crates/swc_html_parser/tests/fixture.rs:489:1
    |
489 | #[testing::fixture("tests/html5lib-tests/tokenizer/**/*.test")]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: message: No test found

error: custom attribute panicked
   --> crates/swc_html_parser/tests/fixture.rs:968:1
    |
968 | #[testing::fixture("tests/html5lib-tests/tree-construction/**/*.dat")]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: message: No test found

error: unused imports: `fs`, `mem::take`
 --> crates/swc_html_parser/tests/fixture.rs:7:11
  |
7 | use std::{fs, mem::take, path::PathBuf};
  |           ^^  ^^^^^^^^^
  |
note: the lint level is defined here
 --> crates/swc_html_parser/tests/fixture.rs:1:9
  |
1 | #![deny(warnings)]
  |         ^^^^^^^^
  = note: `#[deny(unused_imports)]` implied by `#[deny(warnings)]`

error: unused import: `serde_json::Value`
 --> crates/swc_html_parser/tests/fixture.rs:9:5
  |
9 | use serde_json::Value;
  |     ^^^^^^^^^^^^^^^^^

error: unused imports: `JsWord`, `js_word`
  --> crates/swc_html_parser/tests/fixture.rs:10:17
   |
10 | use swc_atoms::{js_word, JsWord};
   |                 ^^^^^^^  ^^^^^^

error: unused imports: `BytePos`, `StringInput`, `collections::AHashSet`
  --> crates/swc_html_parser/tests/fixture.rs:12:5
   |
12 |     collections::AHashSet,
   |     ^^^^^^^^^^^^^^^^^^^^^
13 |     errors::Handler,
14 |     input::{SourceFileInput, StringInput},
   |                              ^^^^^^^^^^^
15 |     BytePos, Spanned,
   |     ^^^^^^^

error: unused imports: `State`, `error::ErrorKind`
  --> crates/swc_html_parser/tests/fixture.rs:19:5
   |
19 |     error::ErrorKind,
   |     ^^^^^^^^^^^^^^^^
20 |     lexer::{Lexer, State},
   |                    ^^^^^

warning: unused variable: `handler`
  --> crates/swc_css_modules/tests/fixture.rs:37:35
   |
37 |     testing::run_test(false, |cm, handler| {
   |                                   ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handler`
   |
   = note: `#[warn(unused_variables)]` on by default

error: unused import: `input::ParserInput`
  --> crates/swc_html_parser/tests/fixture.rs:21:14
   |
21 |     parser::{input::ParserInput, PResult, Parser, ParserConfig},
   |              ^^^^^^^^^^^^^^^^^^

error: could not compile `swc_html_parser` due to 8 previous errors
warning: build failed, waiting for other jobs to finish...
warning: `swc_css_modules` (test "fixture") generated 1 warning

Checkout submodules. And you can run cargo test in each directories

Closing as the target issue is fixed


Confusing error when using PostgreSQL

When using PostgreSQL as backend, an error of the following format will show up when specifying an invalid table name for a model:
relation "table_name" does not exist
Example traceback:
error: relation "project_news_item" does not exist
    at Connection.parseE (/home/sven/projects/fancyshelf/node_modules/pg/lib/connection.js:534:11)
    at Connection.parseMessage (/home/sven/projects/fancyshelf/node_modules/pg/lib/connection.js:361:17)
    at Socket.<anonymous> (/home/sven/projects/fancyshelf/node_modules/pg/lib/connection.js:105:22)
    at Socket.emit (events.js:95:17)
    at Socket.<anonymous> (_stream_readable.js:764:14)
    at Socket.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:426:10)
    at emitReadable (_stream_readable.js:422:5)
    at readableAddChunk (_stream_readable.js:165:9)
    at Socket.Readable.push (_stream_readable.js:127:10)

While I understand that this is an error message that is emitted by the pg library, it's rather confusing in the context of Bookshelf due to the overloaded use of the term 'relation'. Perhaps it'd be an idea to 'wrap' the error with a less confusing error message, when this particular error occurs?

Not convinced this needs to change. Wrapping all known DB errors with nicer ones would be great but that's potentially a breaking change and certainly a big hassle. Unless this is a priority or someone wants to put in serious work on a proposal or PR I think this can be closed. This is a case where abstracting over the DB client has a significant time cost for very little gain.


[Feature] Develop endpoint to retrieve Kafka connection details

Description:
We need to implement a new endpoint to provide the connection details for Kafka (host and port). This will allow clients to dynamically retrieve the Kafka configuration.
Requirements:

Develop a new endpoint /kafka/connection-details:

Method: GET
Response Example:{
    "kafka_host": "example.kafka.host",
    "kafka_port": 9092
}

Error Handling: If there is an issue retrieving Kafka settings, return an appropriate error message with a 500 status code.

The endpoint should use configuration values for kafka_host and kafka_port loaded from environment variables.

Notes:

Use a BaseSettings-based configuration class to manage the Kafka settings.
The .env file should provide the configuration for the kafka_host and kafka_port.
Include any necessary imports and handle edge cases to ensure the endpoint works as expected.

Acceptance Criteria:

A GET request to /kafka/connection-details returns the Kafka host and port as a JSON response.
The endpoint uses values from the environment variables and properly handles missing or invalid configurations.
Tests are provided to validate the endpoint functionality.

Expected Output:
A successful response with Kafka connection details:
{
    "kafka_host": "example.kafka.host",
    "kafka_port": 9092
}

Done in #12


Pyroscope Java profiling not working after following documentation

What's wrong?
After following the documentation here, profiling of Java processes results in the following errors for all processes:
{"ts":"2024-09-04T20:14:23.991554124Z","level":"error","msg":"failed to get process info","component_path":"/","component_id":"discovery.process.all","err":"readlink /proc/1/exe: permission denied","pid":1}
{"ts":"2024-09-04T20:14:23.991644175Z","level":"error","msg":"failed to get process info","component_path":"/","component_id":"discovery.process.all","err":"readlink /proc/2/exe: permission denied","pid":2}
{"ts":"2024-09-04T20:14:23.991677615Z","level":"error","msg":"failed to get process info","component_path":"/","component_id":"discovery.process.all","err":"readlink /proc/3/exe: permission denied","pid":3}
{"ts":"2024-09-04T20:14:23.991708775Z","level":"error","msg":"failed to get process info","component_path":"/","component_id":"discovery.process.all","err":"readlink /proc/4/exe: permission denied","pid":4}
{"ts":"2024-09-04T20:14:23.991749485Z","level":"error","msg":"failed to get process info","component_path":"/","component_id":"discovery.process.all","err":"readlink /proc/6/exe: permission denied","pid":6}
{"ts":"2024-09-04T20:14:23.991779286Z","level":"error","msg":"failed to get process info","component_path":"/","component_id":"discovery.process.all","err":"readlink /proc/8/exe: permission denied","pid":8}
{"ts":"2024-09-04T20:14:23.991807106Z","level":"error","msg":"failed to get process info","component_path":"/","component_id":"discovery.process.all","err":"readlink /proc/9/exe: permission denied","pid":9}
...

Helm values:
alloy:
  configMap:
    create: false
    name: alloy-config
    key: config.alloy
  stabilityLevel: "generally-available"
  enableReporting: false
  securityContext:
    runAsUser: 0

controller:
  type: daemonset
  hostPID: true

Alloy config:
logging {
	level  = "info"
	format = "json"
}

discovery.kubernetes "local_pods" {
  selectors {
    field = "spec.nodeName=" + env("HOSTNAME")
    role = "pod"
  }
  role = "pod"
}

discovery.relabel "java_pods" {
  targets = discovery.kubernetes.local_pods.targets
  // Filter only java processes
  rule {
    source_labels = ["__meta_process_exe"]
    action = "keep"
    regex = ".*/java$"
  }
  rule {
    action = "drop"
    regex = "Succeeded|Failed|Completed"
    source_labels = ["__meta_kubernetes_pod_phase"]
  }
  rule {
    action = "replace"
    source_labels = ["__meta_kubernetes_namespace"]
    target_label = "namespace"
  }
  rule {
    action = "replace"
    source_labels = ["__meta_kubernetes_pod_name"]
    target_label = "pod"
  }
  rule {
    action = "replace"
    source_labels = ["__meta_kubernetes_pod_node_name"]
    target_label = "node"
  }
  rule {
    action = "replace"
    source_labels = ["__meta_kubernetes_pod_container_name"]
    target_label = "container"
  }
  // Provide arbitrary service_name label, otherwise it will be inferred from discovery labels automatically
  rule {
    action = "replace"
    regex = "(.*)@(.*)"
    replacement = "java/${1}/${2}"
    separator = "@"
    source_labels = ["__meta_kubernetes_namespace", "__meta_kubernetes_pod_container_name"]
    target_label = "service_name"
  }
}

pyroscope.java "java" {
  forward_to = [pyroscope.write.pyroscope_write.receiver]
  targets = discovery.relabel.java_pods.output
}

pyroscope.write "pyroscope_write" {
	endpoint {
		url = "http://pyroscope.pyroscope.svc.cluster.local:4040"
	}
}

Steps to reproduce
Install Alloy in a Kubernetes cluster using the above values and configuration
System information
Linux version 5.10.223-212.873.amzn2.x86_64
Software version
Grafana Alloy v1.3.1
Configuration
logging {
	level  = "info"
	format = "json"
}

discovery.kubernetes "local_pods" {
  selectors {
    field = "spec.nodeName=" + env("HOSTNAME")
    role = "pod"
  }
  role = "pod"
}

discovery.relabel "java_pods" {
  targets = discovery.kubernetes.local_pods.targets
  // Filter only java processes
  rule {
    source_labels = ["__meta_process_exe"]
    action = "keep"
    regex = ".*/java$"
  }
  rule {
    action = "drop"
    regex = "Succeeded|Failed|Completed"
    source_labels = ["__meta_kubernetes_pod_phase"]
  }
  rule {
    action = "replace"
    source_labels = ["__meta_kubernetes_namespace"]
    target_label = "namespace"
  }
  rule {
    action = "replace"
    source_labels = ["__meta_kubernetes_pod_name"]
    target_label = "pod"
  }
  rule {
    action = "replace"
    source_labels = ["__meta_kubernetes_pod_node_name"]
    target_label = "node"
  }
  rule {
    action = "replace"
    source_labels = ["__meta_kubernetes_pod_container_name"]
    target_label = "container"
  }
  // Provide arbitrary service_name label, otherwise it will be inferred from discovery labels automatically
  rule {
    action = "replace"
    regex = "(.*)@(.*)"
    replacement = "java/${1}/${2}"
    separator = "@"
    source_labels = ["__meta_kubernetes_namespace", "__meta_kubernetes_pod_container_name"]
    target_label = "service_name"
  }
}

pyroscope.java "java" {
  forward_to = [pyroscope.write.pyroscope_write.receiver]
  targets = discovery.relabel.java_pods.output
}

pyroscope.write "pyroscope_write" {
	endpoint {
		url = "http://pyroscope.pyroscope.svc.cluster.local:4040"
	}
}

Logs
{"ts":"2024-09-04T20:14:23.783384097Z","level":"info","boringcrypto enabled":false}
{"ts":"2024-09-04T20:14:23.783438837Z","level":"info","msg":"starting complete graph evaluation","controller_path":"/","controller_id":"","trace_id":"c1709a86c9849a4bc42d9586b31a673f"}
{"ts":"2024-09-04T20:14:23.783469298Z","level":"info","msg":"finished node evaluation","controller_path":"/","controller_id":"","trace_id":"c1709a86c9849a4bc42d9586b31a673f","node_id":"logging","duration":119411}
{"ts":"2024-09-04T20:14:23.783507508Z","level":"info","msg":"finished node evaluation","controller_path":"/","controller_id":"","trace_id":"c1709a86c9849a4bc42d9586b31a673f","node_id":"labelstore","duration":9270}
{"ts":"2024-09-04T20:14:23.783551438Z","level":"info","msg":"finished node evaluation","controller_path":"/","controller_id":"","trace_id":"c1709a86c9849a4bc42d9586b31a673f","node_id":"tracing","duration":8990}
{"ts":"2024-09-04T20:14:23.783574438Z","level":"info","msg":"finished node evaluation","controller_path":"/","controller_id":"","trace_id":"c1709a86c9849a4bc42d9586b31a673f","node_id":"otel","duration":1810}
{"ts":"2024-09-04T20:14:23.78361252Z","level":"info","msg":"applying non-TLS config to HTTP server","service":"http"}
{"ts":"2024-09-04T20:14:23.78362498Z","level":"info","msg":"finished node evaluation","controller_path":"/","controller_id":"","trace_id":"c1709a86c9849a4bc42d9586b31a673f","node_id":"http","duration":32892}
{"ts":"2024-09-04T20:14:23.783952992Z","level":"info","msg":"finished node evaluation","controller_path":"/","controller_id":"","trace_id":"c1709a86c9849a4bc42d9586b31a673f","node_id":"cluster","duration":2580}
{"ts":"2024-09-04T20:14:23.784420467Z","level":"info","msg":"Using pod service account via in-cluster config","component_path":"/","component_id":"discovery.kubernetes.local_pods"}
{"ts":"2024-09-04T20:14:23.784886451Z","level":"info","msg":"finished node evaluation","controller_path":"/","controller_id":"","trace_id":"c1709a86c9849a4bc42d9586b31a673f","node_id":"discovery.kubernetes.local_pods","duration":877908}
{"ts":"2024-09-04T20:14:23.785026342Z","level":"info","msg":"finished node evaluation","controller_path":"/","controller_id":"","trace_id":"c1709a86c9849a4bc42d9586b31a673f","node_id":"discovery.process.all","duration":90800}
{"ts":"2024-09-04T20:14:23.785502667Z","level":"info","msg":"finished node evaluation","controller_path":"/","controller_id":"","trace_id":"c1709a86c9849a4bc42d9586b31a673f","node_id":"discovery.relabel.java_pods","duration":403204}
{"ts":"2024-09-04T20:14:23.786070292Z","level":"info","msg":"finished node evaluation","controller_path":"/","controller_id":"","trace_id":"c1709a86c9849a4bc42d9586b31a673f","node_id":"pyroscope.write.pyroscope_write","duration":518875}
{"ts":"2024-09-04T20:14:23.929998101Z","level":"info","msg":"finished node evaluation","controller_path":"/","controller_id":"","trace_id":"c1709a86c9849a4bc42d9586b31a673f","node_id":"pyroscope.java.java","duration":143866429}
{"ts":"2024-09-04T20:14:23.930232423Z","level":"info","msg":"finished node evaluation","controller_path":"/","controller_id":"","trace_id":"c1709a86c9849a4bc42d9586b31a673f","node_id":"remotecfg","duration":132201}
{"ts":"2024-09-04T20:14:23.930302133Z","level":"info","msg":"finished node evaluation","controller_path":"/","controller_id":"","trace_id":"c1709a86c9849a4bc42d9586b31a673f","node_id":"livedebugging","duration":25870}
{"ts":"2024-09-04T20:14:23.930370644Z","level":"info","msg":"finished node evaluation","controller_path":"/","controller_id":"","trace_id":"c1709a86c9849a4bc42d9586b31a673f","node_id":"ui","duration":14340}
{"ts":"2024-09-04T20:14:23.930394904Z","level":"info","msg":"finished complete graph evaluation","controller_path":"/","controller_id":"","trace_id":"c1709a86c9849a4bc42d9586b31a673f","duration":147237459}
{"ts":"2024-09-04T20:14:23.931033431Z","level":"info","msg":"scheduling loaded components and services"}
{"ts":"2024-09-04T20:14:23.931588126Z","level":"info","msg":"starting cluster node","service":"cluster","peers_count":0,"peers":"","advertise_addr":"<IP_ADDRESS>:12345"}
{"ts":"2024-09-04T20:14:23.932640515Z","level":"info","msg":"peers changed","service":"cluster","peers_count":1,"peers":"grafana-alloy-4pt7h"}
{"ts":"2024-09-04T20:14:23.933006819Z","level":"info","msg":"now listening for http traffic","service":"http","addr":"<IP_ADDRESS>:12345"}
{"ts":"2024-09-04T20:14:23.991554124Z","level":"error","msg":"failed to get process info","component_path":"/","component_id":"discovery.process.all","err":"readlink /proc/1/exe: permission denied","pid":1}
{"ts":"2024-09-04T20:14:23.991644175Z","level":"error","msg":"failed to get process info","component_path":"/","component_id":"discovery.process.all","err":"readlink /proc/2/exe: permission denied","pid":2}
{"ts":"2024-09-04T20:14:23.991677615Z","level":"error","msg":"failed to get process info","component_path":"/","component_id":"discovery.process.all","err":"readlink /proc/3/exe: permission denied","pid":3}
{"ts":"2024-09-04T20:14:23.991708775Z","level":"error","msg":"failed to get process info","component_path":"/","component_id":"discovery.process.all","err":"readlink /proc/4/exe: permission denied","pid":4}
{"ts":"2024-09-04T20:14:23.991749485Z","level":"error","msg":"failed to get process info","component_path":"/","component_id":"discovery.process.all","err":"readlink /proc/6/exe: permission denied","pid":6}
{"ts":"2024-09-04T20:14:23.991779286Z","level":"error","msg":"failed to get process info","component_path":"/","component_id":"discovery.process.all","err":"readlink /proc/8/exe: permission denied","pid":8}
{"ts":"2024-09-04T20:14:23.991807106Z","level":"error","msg":"failed to get process info","component_path":"/","component_id":"discovery.process.all","err":"readlink /proc/9/exe: permission denied","pid":9}

Adding the following allows the container to read what it needs:
alloy:
  # ...
  securityContext:
    runAsUser: 0
    runAsNonRoot: false
    capabilities:
      add:
        - all

Is it documented anywhere which capabilities are required for Alloy to function?
Thanks

Yes, it is documented https://grafana.com/docs/alloy/latest/reference/components/pyroscope/pyroscope.java/#pyroscopejava

Yes, it is documented https://grafana.com/docs/alloy/latest/reference/components/pyroscope/pyroscope.java/#pyroscopejava

Hi @korniltsev! The only thing I can see in that documentation is a note about requiring root and running inside the host pid namespace, but that is not necessarily sufficient for things to work if linux capabilities are enabled (of which they will usually be in any well-configured production environment).
Took a little trial and error, but we found that the following was sufficient for our use case (using Grafana Alloy only to scrape data for Pyroscope):
alloy:
  # ...
  securityContext:
    runAsUser: 0
    runAsNonRoot: false
    capabilities:
      add:
        - PERFMON
        - SYS_PTRACE
        - SYS_RESOURCE
        - SYS_ADMIN

We run it as "privileged" root.
I agree we need to update docs


Update neo4j v3.3.1

Update neo4j v3.3.1
TODO:

[x] Fix broken tests
[x] Utilize new timeout monitoring added in 3.1
[x] Run integration test with full stack

Coverage remained the same at ?% when pulling 073f9d3ffa790e7ea077e7d08b0284b2564139a8 on update-neo4j-291217 into 46049b93b3df8c5e8b9756125af99da85c44c078 on master.

I've removed the execution guard as this is deprecated, and instead have the query service rely on the dbms.transaction.timeout configuration.  It may be ideal to have a backup timeout - and it looks like previously we attempted to hardcode a timeout of 5 minutes.  However, I have removed this since I could not find an accessor method to get to the config setting.  I expected something like graphDB.getConfig().get( GraphDatabaseSettings.transaction_timeout ).


Typings only expose isEnabled (v5.0.2)

Should I be casting the type myself?

The rest of the properties are conditioned on an if-statement. See the docs and read the type definition file.


pgvector-python client support for sparse vectors.

Does PGVector python client supports sparse vector embeddings storage in postgresDB like Splade?

Hi @anugrahastephen, it's available on master, but isn't released yet (still making adjustments). I also added an example for sparse search.

Hi @ankane , thank you for your quick response. Hope you release the feature soon.
Thanks for the project, it has been a great experience working with it.

Just released 0.3.0 🎉
SparseVector([1, 0, 2, 0, 3, 0])
# or
SparseVector({0: 1, 2: 2, 4: 3}, 6)


make push :latest configurable

What this PR does / why we need it:
make push :latest configurable
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:

NONE

Yes, because of that: https://github.com/gardener/gardener/blob/master/.ci/pipeline_definitions#L17-L23. However, I recommend to only use actual releases for non-dev scenarios.
What do you mean regarding the draft release notes? Can you explain again?

From @rfranzke:

What do you mean regarding the draft release notes? Can you explain again?

I thought draft releases could also be tagging with latest, but reading the .ci/pipeline_definitions I saw that's not the case.

The draft release notes are giving an overview about the features that were merged since the last release and do not refer to "a" latest release. We basically use a similar means like Kubernetes itself to get to release notes by scanning for certain formalised release note comments in the PRs.
Independent of that, we could use tag_as_latest: True in the pipeline definition to tag the latest (built) image as latest.


Fix trigonometric function's output when input is inf

There are some problems:
sin(inf) should be NaN, not Infinity
sin(-inf) should be NaN, not -Infinity
cos(inf) should be NaN, not Infinity
cos(-inf) should be NaN, not -Infinity
tan(inf) should be NaN, not Infinity
tan(-inf) should be NaN, not -Infinity
asin(inf) should be NaN, not Infinity
asin(-inf) should be NaN, not -Infinity
acos(inf) should be NaN, not Infinity
acos(-inf) should be NaN, not -Infinity
Verify it in python (Not only python, I get same resutlt in C, rust, and the like):
>>> import numpy as np
>>> import warnings
>>> warnings.simplefilter("ignore") # ignore warnings because numpy will throw warnings when output contains `nan`
>>> numbers_contain_inf = np.array([-np.inf, np.inf, 0.0, 1.0])
>>> np.sin(numbers_contain_inf)
array([       nan,        nan, 0.        , 0.84147098])
>>> np.cos(numbers_contain_inf)
array([       nan,        nan, 1.        , 0.54030231])
>>> np.tan(numbers_contain_inf)
array([       nan,        nan, 0.        , 1.55740772])
>>> np.arcsin(numbers_contain_inf)
array([       nan,        nan, 0.        , 1.57079633])
>>> np.arccos(numbers_contain_inf)
array([       nan,        nan, 1.57079633, 0.        ])
>>>

Pull Request Test Coverage Report for Build 4286
Details

5 of 5 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 81.246%

Totals

Change from base Build 4282:
0.0%

Covered Lines:
4605

Relevant Lines:
5668

💛  - Coveralls


[STRMCMP-1607] Relaxing the numpy version

Based on STRMCMP-1607 this PR relaxes the version of numpy.
Pinning it to < 1.22.0 because higher versions require python >=3.8

👀 @sethsaperstein-lyft @maghamravi


5.x : Allow to define eviction settings when provisioning worker node pools

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

New or Affected Resource(s)
It is currently not possible to define node_eviction_node_pool_settings in the oci_containerengine_node_pool here
The resulting error comes when you want to destroy the node pool and there are pod workload that are not able to be force evicted (ex: calico daemonset pods or privileged ones) from an instance member. The work request will fails and you might have to delete the instance manually with the UI.
Being able to set eviction_grace_duration and is_force_delete_after_grace_duration sub-params could potentially help to force drain the node in that situation.
Potential Terraform Configuration

add the required variables here and propagate them in the upper-module.
References

@devoncrouse this was done in 4.x: https://github.com/oracle-terraform-modules/terraform-oci-oke/blob/main/modules/oke/nodepools.tf#L76. Can you please look into it for 5.x as well?