Error Code=-999

Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLKey=https://myURL, NSLocalizedDescription=cancelled, NSErrorFailingURLStringKey=https://https://myURL}), _metrics: nil)
This error occurs while trying to upload images as multipartFormData.
this is my code:
` var headers = Dictionary<String,String>()
var defaultHeaders = Alamofire.SessionManager.defaultHTTPHeaders
if let token = UserDefaults.standard.object(forKey: "jwt") as? String{
defaultHeaders["Authorization"] = "Bearer " + token
}
    let configuration = URLSessionConfiguration.default
    configuration.httpAdditionalHeaders = headers

    let sessionManager = Alamofire.SessionManager(configuration: configuration)

    sessionManager.upload(multipartFormData: { (multipartFormData) in
        for imageURL in imagesURLs{
            multipartFormData.append(imageURL, withName: "file[]")
        }
    }, to: "\(devURL)/resources/image", encodingCompletion: { encodingResult in

        switch encodingResult {

        case .success(let upload, _, _):
            upload.response { response in
                print(response)
            }
        case .failure(let encodingError):
            print(encodingError)
        }

    })`

Yes, you need to keep a reference to the manager you're using, as when it falls out of scope and is deinitd all of your pending requests are cancelled, leading to the error you see.
We use our GitHub project for bug reports and feature requests. In the future, you should open questions like this on Stack Overflow and tag alamofire.
Cheers. 🍻

From our Contribution Guidelines
Asking Questions
We don't use GitHub as a support forum. For any usage questions that are not specific to the project itself, please ask on Stack Overflow instead. By doing so, you'll be more likely to quickly solve your problem, and you'll allow anyone else with the same question to find the answer. This also allows maintainers to focus on improving the project for others.

Thanks!


vscode rust-analyzer: fix for darwin

Motivation for this change
Building vs code plugin rust-analyzer fails on Darwin.
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[x] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Similar thing done here before:
https://github.com/NixOS/nixpkgs/commit/13028f24f47b5e6b3a433ca1a4715d3def438446

Result of nixpkgs-review pr 151719 run on aarch64-darwin 1

1 package failed to build:

vscode-extensions.matklad.rust-analyzer

Result of nixpkgs-review pr 151719 run on x86_64-darwin 1

1 package failed to build:

vscode-extensions.matklad.rust-analyzer

The posted darwin build results are with sandbox turned on, and the issue is with being unable to access /usr/sbin/pkgutil.

already fixed in fa272718c8ad


[Miomio] Downloader invocation on http://hdus.qqfire.com/ fails

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 2<IP_ADDRESS>. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

[ ] I've verified and I assure that I'm running youtube-dl 2<IP_ADDRESS>

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

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:
$ youtube-dl -v http://www.miomio.tv/watch/cc312326/
[debug] System config: [u'-o', u'~/Movies/%(title)s.%(ext)s']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'http://www.miomio.tv/watch/cc312326/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2<IP_ADDRESS>
[debug] Python version 2.7.13 - Darwin-16.4.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.2.4, ffprobe 3.2.4
[debug] Proxy map: {}
[miomio.tv] 312326: Downloading webpage
[miomio.tv] 312326: Downloading player webpage
[debug] Invoking downloader on u'http://hdus.qqfire.com/789BB66D3FF62017136B28A7B67F02149173170226MTQ4ODE0MzkzYzIxNzJkZjBjMTQ5MT149173148814393500482E89603C021B.ic'
ERROR: unable to download video data: <urlopen error [Errno 60] Operation timed out>
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1791, in process_info
    success = dl(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1733, in dl
    return fd.download(name, info)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 353, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/http.py", line 61, in real_download
    data = self.ydl.urlopen(request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2093, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 447, in _open
    '_open', req)
  File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 918, in http_open
    req)
  File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1198, in do_open
    raise URLError(err)
URLError: <urlopen error [Errno 60] Operation timed out>
...
<end of log>

Description of your issue, suggested solution and other information
Derrived from issue #12170, since the downloader invocation fails on the the newly used video server hdus.qqfire.com

Can you watch it in browsers (Chrome/Firefox/...)?

Yes, it plays without problems on Safari(10.0.3) and on a clean install of Firefox(51.0.1)

Well, I get no video in a clean Firefox 51

I had to refresh once or twice to get it streaming though on Firefox, but Safari works right of the bat

Refresh several times on both Sierra and Firefox but still no videos.

There seems to be some videos that require specific plug-ins, but this shouldn't have been one of these. For example:
Works for me:
http://www.miomio.tv/watch/cc313610/
Doesn't work:
http://www.miomio.tv/watch/cc313254/
Once the picture of the video loads, you should press play and then wait for a while (sometimes up to 5 minutes for me)
As for now there is also a new problem with the webpage downloader, detailed in issue #12388

Thanks this will be fixed in the next issue. Now http://www.miomio.tv/watch/cc312326/ reports a 404 error when loading the video, so this issue is no longer valid.


Fix size and position of header notification badge icon

The icons in the page header were made smaller for desktop mode but the notification overlay was forgotten - this PR fixes the size of that on desktop.
It also fixes the colour of the separator between the icons in the header - although the colour currently used is lighter than I'd like.

Codecov Report

Merging #4778 (9782b5c) into master (f41cf5f) will decrease coverage by 26.65%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master    #4778       +/-   ##
===========================================
- Coverage   54.30%   27.64%   -26.66%
===========================================
  Files        1122       59     -1063
  Lines       39152     4619    -34533
  Branches     4914        0     -4914
===========================================
- Hits        21260     1277    -19983
+ Misses      17715     3164    -14551
- Partials      177      178        +1


Issue with k8s.io/docs/tutorials/configuration/configure-java-microservice/configure-java-microservice/

https://kubernetes.io/docs/tutorials/configuration/configure-java-microservice/configure-java-microservice/
Previously there was an interactive tutorial, which is now disabled.
It would be good to have new (non-interactive?) tutorial instead of removed one.

Hi @todaviaCaliente, you can use killercoda and minikube to setup local cluster.

@todaviaCaliente, you can discuss and recommend replacements at https://github.com/kubernetes/website/discussions/38878

/close not-planned
We already have an overall issue about the removal of Katacoda


Move to Azure for Windows builds

Checklist

[x] Used a fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

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

@conda-forge/libiconv This is ready for review/merge.

Thanks @xhochy ! 😀


Move into CocoaPods core

http://media4.giphy.com/media/qvdqF0PGFPfyg/giphy.gif

LOL

Would be awesome in this: https://github.com/CocoaPods/CocoaPods/commit/2a6d86a82b43c07699601c0a7cfaa7e3f892a647

As something like :generate_products /shurg

I'm less convinced we want it in CP itself considering that the Swift team seems to think that static libs are the future again :)

Is that really true for apps though? They've said that frameworks are on their agenda, not sure about the dynamic bit. There's still valid space for people wanting the "I want to copy & paste it into my app" experience.

happy to see this going to core

now that ABI compat has been pushed back a yeah, I guess static libs are delayed again?


Fix incorrect week number calculation for fall quarter and time zone issues

Description
Adjusted quarter begin date for fall quarters to Monday rather than Thursday within the findWeek function in api/src/helpers/week.ts and subtracted 1 to start the counter at week 0 for fall. Added dayjs and used it to handle time zone issues by creating dates in PST/PDT even if the server is in another time zone. Added fix to adjust any quarter begin/end dates received from the mongo cache in UTC+0 to be in PST/PDT. Fixed processRow function to force quarter begin/end dates to be created and cached in PST/PDT moving forward. Previously the current week would increment 7 or 8 hours earlier than it should have due to dates not being created in the right time zone. Fixes issue #244
Steps to verify/test this change:
Change your system date/time and check the week number.
Todos:

[ ] Write tests
[ ] Write documentation

Does not work as intended on production. Week number seems to be off by 1 on 2/27/2023. Displays week 7 on prod despite it showing week 8 (correctly) on dev.
Update at 4PM: Now shows correct week. Seems to be 16 hours late. Have to investigate dayjs, seems to not be keeping the time zone in pacific as expected


[Bug] Get connection timeout error to PyPI from a specific IP range (<IP_ADDRESS>/24)

Describe the bug

We cannot install python packages from PyPI. We get a connection timeout error to PyPI from a specific IP range.
Our hosts are using a specific IP range to access public network (including PyPI): <IP_ADDRESS>/24
Some command output:
> pip install django -v
Downloading/unpacking django
  Could not fetch URL https://pypi.python.org/simple/django/: connection error: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /simple/django/ (Caused by <class 'socket.error'>: [Errno 99] Cannot assign requested address)
  Will skip URL https://pypi.python.org/simple/django/ when looking for download links for django
  Could not fetch URL https://pypi.python.org/simple/: connection error: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /simple/ (Caused by <class 'socket.error'>: [Errno 99] Cannot assign requested address)
  Will skip URL https://pypi.python.org/simple/ when looking for download links for django
  Cannot fetch index base URL https://pypi.python.org/simple/
  Could not fetch URL https://pypi.python.org/simple/django/: connection error: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /simple/django/ (Caused by <class 'socket.error'>: [Errno 99] Cannot assign requested address)
  Will skip URL https://pypi.python.org/simple/django/ when looking for download links for django
  Could not find any downloads that satisfy the requirement django
Cleaning up...
  Removing temporary dir /tmp/pip_build_root...
No distributions at all found for django
Exception information:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1178, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 277, in find_requirement
    raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for django

Storing debug log for failure in /root/.pip/pip.log

> curl -m 60 --head -v --ipv4 https://pypi.org
* Rebuilt URL to: https://pypi.org/
* Hostname was NOT found in DNS cache
*   Trying <IP_ADDRESS>...
* After 29998ms connect time, move on!
* connect to <IP_ADDRESS> port 443 failed: Connection timed out
*   Trying <IP_ADDRESS>...
* After 14998ms connect time, move on!
* connect to <IP_ADDRESS> port 443 failed: Connection timed out
*   Trying <IP_ADDRESS>...
* After 7498ms connect time, move on!
* connect to <IP_ADDRESS> port 443 failed: Connection timed out
*   Trying <IP_ADDRESS>...
* After 3749ms connect time, move on!
* connect to <IP_ADDRESS> port 443 failed: Connection timed out
* Failed to connect to pypi.org port 443: Connection timed out
* Closing connection 0
curl: (7) Failed to connect to pypi.org port 443: Connection timed out

> traceroute pypi.org
traceroute to pypi.org (<IP_ADDRESS>), 30 hops max, 60 byte packets
 1  <IP_ADDRESS> (<IP_ADDRESS>)  0.181 ms  0.172 ms  0.147 ms
 2  <IP_ADDRESS> (<IP_ADDRESS>)  0.165 ms <IP_ADDRESS> (<IP_ADDRESS>)  0.126 ms <IP_ADDRESS> (<IP_ADDRESS>)  0.123 ms
 3  <IP_ADDRESS> (<IP_ADDRESS>)  0.143 ms <IP_ADDRESS> (<IP_ADDRESS>)  0.176 ms <IP_ADDRESS> (<IP_ADDRESS>)  0.152 ms
 4  <IP_ADDRESS> (<IP_ADDRESS>)  0.672 ms  0.634 ms <IP_ADDRESS> (<IP_ADDRESS>)  0.638 ms
 5  <IP_ADDRESS> (<IP_ADDRESS>)  0.760 ms <IP_ADDRESS> (<IP_ADDRESS>)  0.773 ms <IP_ADDRESS> (<IP_ADDRESS>)  0.761 ms
 6  xe-0-3-1.mpr3.las1.us.zip.zayo.com (<IP_ADDRESS>)  1.186 ms IPYX-077072-010-ZYO.mpr3.las1.us.zip.zayo.com (<IP_ADDRESS>)  9.518 ms xe-0-3-1.mpr3.las1.us.zip.zayo.com (<IP_ADDRESS>)  9.479 ms
 7  ae7.cs2.las2.us.eth.zayo.com (<IP_ADDRESS>)  8.817 ms  8.874 ms  8.832 ms
 8  ae0.cs1.las2.us.eth.zayo.com (<IP_ADDRESS>)  8.777 ms  8.810 ms  8.855 ms
 9  ae6.cs1.lax112.us.eth.zayo.com (<IP_ADDRESS>)  12.128 ms  8.760 ms  8.728 ms
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *

I want to ask are there any firewall rules or whitelists mechanism that block traffic from <IP_ADDRESS>/24?
Expected behavior

Packages are installed successfully.
To Reproduce

My Platform

root@vai-computing-con-020:~# pip -V
pip 8.1.1 from /usr/lib/python2.7/dist-packages (python 2.7)

root@vai-computing-con-020:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.7 LTS
Release:	16.04
Codename:	xenial

The IP range <IP_ADDRESS>/24 is not on our block list. Please file a network access issue here: https://github.com/pypa/pypi-support/issues/new/choose


Outboard entry from in-memory blob store doesn't get removed when S3 object was deleted

Wondering if that's also an issue for updated files?


Snorkel v0.6 release

Main things to do (by this coming Monday):

[x] New extended Spouses dataset + simplified intro tutorial
[x] TF bindings fixes + refactoring ( #681 )
[ ] Finalize BRAT annotation tool integration
[ ] Other minor fixes / etc. (Issues marked with label v0.6)

Input welcome on other things that should be priorities!

Wrap-up TODOs:

Merge new_intro into master
Point readthedocs to master
Create stable v0.6 tag
Announcement & etc.
Cleanup of issues!


FGPA: out-of-memory

https://github.com/mahdiqezlou/LyTomo_Watershed/blob/a443880a5c67f36da56988132b0242fb9e48d4f6/src/lytomo_watershed/fgpa.py#L236
Issue : This is too large for each rank.
test : For MDPL2 ( 3840^3, 1cGpc/h), the memory for each instance of this array is ~ 31 G. So, with 12 cpus per node, it barely fits to the memory.
Solution :  Maybe just pass the chunks of the density arrays on each rank to the root with the corresponding  indices (or the limits) and then build the full array. It should save the memory by a factor of 8 at least.

[x] Find the best MPI operations for this.

#14 fixes this.


Issue with the updated seisflows installation

I have been trying to freshly install seisflows and pyatoa under an environment called 'adjtomo'. However, I noticed that the seisflows package does not require the requirements.txt file anymore. On following the instructions (https://seisflows.readthedocs.io/en/latest/), it seems to create a new environment called 'seisflows'.
How do I fix this?

Hi @mishuyetsam, sorry you're having trouble with installation. Yes, since the changes introduced in #149, we did away with the requirements.txt and setup.py files in favor of a new pyproject.toml file. These accomplish the same task of allowing SeisFlows to be installed as a package.
Thank you for pointing this out. After trying this out myself I realize the alternative instructions are incorrect and will only allow creating an environment called seisflows as you have experienced. You will need to add a -n/--name flag to specifically name the Conda environment you want to install to. That is:
conda create -n adjtomo
# git clone and cd to seisflows
conda env update -f environment.yml -n adjtomo
conda activate adjtomo

I just tried this out on my machine and was successfully able to install SeisFlows into my adjtomo environment
(adjtomo) [bchow@blackbox seisflows]$ conda env update -f environment.yml -n adjtomo
...
# To activate this environment, use
#
#     $ conda activate adjtomo
#
# To deactivate an active environment, use
#
#     $ conda deactivate
(adjtomo) [bchow@blackbox seisflows]$ seisflows
usage: seisflows [-h] [-w [WORKDIR]] [-p [PARAMETER_FILE]]
                 {setup,configure,swap,submit,resume,restart,clean,par,sempar,check,init,plot2d,plotst,print,reset,debug,examples}

Please let me know if that works for you. If so then I will update the documentation page with the corrected installation procedure.

Thank you for the concise explanation. I followed it and it's finally set up and running!

Closing as complete! Please re-open if this issue still persists for you.


Commits should be in present tense, not in past

Bug description
Your description shows commits in the past tense which is not the way the git is supposed to be used
aicommits version
latest
Environment
System:
    OS: Windows 10 10.0.19043
    CPU: (12) x64 Intel(R) Xeon(R) E-2176M  CPU @ 2.70GHz
    Memory: 15.46 GB / 31.73 GB
Binaries:
    Node: 16.14.2 - C:\Program Files\nodejs\node.EXE
    npm: 9.6.3 - C:\Program Files\nodejs\npm.CMD

Can you contribute a fix?

[ ] I’m interested in opening a pull request for this issue.

Not sure if there's anything we can do here.
I haven't seen past-tense messages, and the prompt says use present tense:
https://github.com/Nutlope/aicommits/blob/9b24444a2e78ddf3c9adbc3824673f6ea2a3ffa3/src/utils/openai.ts#L100


Added Cdata class to allow writing of CDATA values

Sometimes it's desired to use CDATA in the resulting XML file instead of regular XML escaping.
Cdata wrapper class allows to achieve this:
$html_desc = '
Some HTML code
';
$offer = (new OfferSimple())
    ->setDescription(new Cdata($html_desc))

will result in
<description><![CDATA[
Some HTML code
]]></description>

instead of
<description><p>Some HTML code</p></description>

Hi, Thank you for PR.
There are some code style problems https://travis-ci.org/Bukashk0zzz/YmlGenerator/jobs/516475287
Can you please fix them before I merge this?

Sure, I'll commit the fixed version soon.

Codecov Report

Merging #21 into master will decrease coverage by 1.15%.
The diff coverage is 11.11%.

@@             Coverage Diff              @@
##             master      #21      +/-   ##
============================================
- Coverage       100%   98.84%   -1.16%
- Complexity      245      248       +3
============================================
  Files            17       18       +1
  Lines           682      691       +9
============================================
+ Hits            682      683       +1
- Misses            0        8       +8

Impacted Files
Coverage Δ
Complexity Δ

src/Cdata.php
0% <0%> (ø)
2 <2> (?)

src/Generator.php
96.61% <20%> (-3.39%)
47 <0> (+1)

Continue to review full report at Codecov.

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

Fixed all code style issues, added a test for the Cdata class: OfferCdataGeneratorTest.
Had to raise method visibility of AbstractGeneratorTest::createOffers() to protected because it didn't allow to define custom offer description: description set in overridden createOffer() was overwritten by
    ->setDescription($this->faker->sentence)


createHandleSyncViaMethod and createHandleSubscribe rely on a global buildDate

createHandleSyncViaMethod and createHandleSubscribe rely on a global buildDate to pull in the lastest changes from a collection.
That was great when we have global collections which were all sent to the client, but collections are now sent per route. If we use buildDate for a collection which hasn't been rendered on the server, we won't synchronise most of the data.
This needs changing.

This date requirement has now been removed completely.


the fix for the directives_ordering lint does not respect line comments

The bulk fix for the directives_ordering lint does not respect line comments. Specifically, running dart fix --apply on something like:
// @dart=2.10

import 'package:test/test.dart';

import 'package:pub/src/exit_codes.dart' as exit_codes;

import '../descriptor.dart' as d;
import '../test_pub.dart';

will produce:
import 'package:pub/src/exit_codes.dart' as exit_codes;
// @dart=2.10

import 'package:test/test.dart';

import '../descriptor.dart' as d;
import '../test_pub.dart';

This is particularly problematic as because we've moved the position of the language directive comment, the code is now interpreted as null safe code, when the file has not yet been migrated to use null safety; we immediately show analysis errors in the file.

This also occurs if you just choose the 'organize imports' quick fix for the lint issue.

This issue made https://github.com/dart-lang/pub/pull/3036 significantly harder - there were several dozens files to manually patch up after dart fix ran.

Any updates here?

I do recall making some fixes to sorting, but the most recent one I can find is quite a while ago (d3b0979b04f594f93ad49990e51d06314c6ab816). It looks like the line comment here is being attached to the import and being moved with it, which I think is only supposed to happen when there's no blank line between them.
Although I wonder whether the language version should be treated specially, because even without a blank line it shouldn't be moved? For example:
// @dart=2.10
import 'bbb';
import 'aaa';

// some comment about bbb (or perhaps an //ignore)
import 'bbb';
import 'aaa';

Without special handling, both of these look the same, but I think the result of sorting should move the comment with import bbb in the second example, but not the first?

Yes, the version comment has to come before any non-comment token in the file. But when I try the first example in IntelliJ it works as expected. The comment in the second case doesn't get moved, but that might have been intentional. If the example is
import 'bbb.dart';
// some comment
import 'aaa.dart';

then the comment does get moved, which is an improvement over what it used to be.
It's possible that the fix doesn't use the same underlying code to re-order directives, but I thought that had been fixed as well.

I also don't seem to be able to reproduce the original issue described above either with a recent nightly or 2.13.4 (I tried Sort Members, Organise Imports and dart fix / Fix All).
However, looking at some of the files in the linked PR, I did find the language comment going missing with this example:
// Copyright (c) 2020, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// @dart=2.10
import 'dart:io' show File;

import 'package:path/path.dart' as p;
import 'package:test/test.dart';

import 'package:pub/src/exit_codes.dart' as exit_codes;

import '../../descriptor.dart' as d;
import '../../test_pub.dart';

If I use Organize Imports I get:
// Copyright (c) 2020, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'package:path/path.dart' as p;
import 'package:pub/src/exit_codes.dart' as exit_codes;
import 'package:test/test.dart';

import '../../descriptor.dart' as d;
import '../../test_pub.dart';

But if I use Sort Members the language version does not go missing (which is strange given my change linked above claims to make these use the same code). I'll take a look at what's going on there.

I see what happened. Organize Imports removes the unused dart:io and the comment was "attached" to it so it was removed to. With some tweaks, I can repro Devon's original issue (both for sorting and organizing):
// Copyright

// @dart=2.10

import 'package:test/test.dart';
import 'dart:io' show File;

File f;

Results in:
// Copyright

import 'dart:io' show File;

// @dart=2.10

import 'package:test/test.dart';

File f;

It doesn't happen if the // Copyright comment isn't there as the language directive comment is treated as the "library comment", but otherwise it isn't (because there's a blank line). I guess if there's a language directive, it (and everything above it) should always be considered part of the library comment.

https://dart-review.googlesource.com/c/sdk/+/209100/ handles the cases I could come up with. When skipping over the library comment we'll also now skip over any language tokens.

The comment in the second case doesn't get moved, but that might have been intentional.

I think you're right - looking at the code, it seems we assume the very first comment in the file is always a "library comment" and will only attach a line to the first import if there's a blank line before it.

I think that assuming that the comment is a library comment is reasonable. I'd guess that it's uncommon to have comments (other than 'ignore') on a directive and relatively common to have a file header. We could consider special casing ignore comments, but it probably won't happen often in practice.


[BUG] Charts don't work

Describe the bug
I wanted to try this library out so I downloaded it, but when trying to load even the examples I get errors because of misnamed files (i.e. LineChart.tscn is actually named line_chart.tscn)
I see you're going through some refactoring but it would be cool to have the master branch at a useable version.
To Reproduce
Steps to reproduce the behavior:

Go to 'github.com'
Click on 'clone'
Scroll down to 'your project'
Try to create a chart

Expected behavior
That the master branch holds a stable version
Desktop (please complete the following information):

OS: Mac
Godot Engine Version 3.2
Plugin Version master

Hi @tavurth ,
Thanks for this issue. I'll manage to update this plugin as soon as possible to make it usable.
I have been waiting for a contributor to release some changes, but we are both pretty busy, so the plugin has been left back for a while.

It's been long time, I have been trying to get it working, is there any alternatives to this project?

@sairam4123 @tavurth Name mismatches are now solved, you can use LineChart with no issues whatsoever now ;)

Can you show how to use this project? I have been trying to draw a line chart for my pandemic Simulator.

@sairam4123  sure I can help you!! do you mind joining my Discord so we can have a chat there?
or if you prefer you can use the discussion tabs here.


FEAT Implemented selection sort

Implemented selection sort algorithm

[x] Implemented selection sort
[x] Quality of code updates and bug-fixes
[x] Tested algorithm: PASSING

Looks good to me 👍🏼


Inconsistent Presentation Heuristics For Key and Foreign Key

The following are how we provide a presentation value for each of the column types:

Foreign Key Pseudo-column:

For the caption: Use the row-name value if possible, otherwise return the presentation value of the constituent columns joined by ":".
For the link: If the caption doesn't have "<a" in the computed HTML value, add a link to the row.

Key Pseudo-column (self-link):

If available, use the markdown_pattern provided on key-display annotation. Don't add any self-link since markdown_pattern might include a link.
Return the presentation value of the constituent columns joined by ":" as caption. If any of the columns are markdown or have markdown_pattern, don't add any link. Otherwise add a self-link.

As you can see, the logic for adding a "link" to the row is different for Key and Foreign key Pseudo-columns. One is doing an extra check for "<a" in the value, while the other one gives up on adding a link when there's a markdown_pattern defined. We should add this extra check to key pseudo-columns too.

Changes for this has been merged with master. As it is stated in the issue, we are now checking for a tag (using /<a\b.+href=/ regular expression) in the key display. If we don't find any, we're going to add the self-link.


The property on entity type is part of a key and so cannot be modified or marked as modified

I use Entity Framework 7.0.0-rc1-final with SQL 2014 LocalDB (code first). I have model class:
public class UnitGroup {
    public int UnitGroupId { get; private set; }
    public string Name { get; set; }

    public ObservableCollection<Unit> UnitSet { get; set; }
    public UnitGroup() {
        UnitSet = new ObservableCollection<Unit>();
    }
}

I use this delegate for fluent configuration:
Action<EntityTypeBuilder<UnitGroup>> UnitGroupConfig = delegate (EntityTypeBuilder<UnitGroup> e) {
        e.Property(p => p.Name).IsVarchar(25).IsRequired();

        e.HasAlternateKey(p => p.Name);
    };

IsVarchar() is my extension method:
public static PropertyBuilder IsVarchar(this PropertyBuilder<string> propertyBuilder, int maxLength) {
        return propertyBuilder.HasColumnType($"varchar({maxLength})");
    }

Then I use it like this:
protected override void OnModelCreating(ModelBuilder modelBuilder) {
        modelBuilder.Entity<UnitGroup>(e => UnitGroupConfig(e));
}

This is migration code for this table:
migrationBuilder.CreateTable(
            name: "UnitGroup",
            columns: table => new
            {
                UnitGroupId = table.Column<int>(nullable: false)
                    .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
                Name = table.Column<string>(type: "varchar(25)", nullable: false)
            },
            constraints: table =>
            {
                table.PrimaryKey("PK_UnitGroup", x => x.UnitGroupId);
                table.UniqueConstraint("AK_UnitGroup_Name", x => x.Name);
            });

I wrap EF in my Prism Data Module as DataService:
public class DataService : IDataService {
private DataContext context;

public DataService() {
    context = new DataContext();
}

public IQueryable<T> GetAsTracking<T>(params Expression<Func<T, object>>[] includes) where T : class {
    return includes.Aggregate(context.Set<T>().AsTracking(), (source, expression) => {
        if (expression.Body is MemberExpression) {
            return source.Include(expression);
        }
        return source;
    });
}

public int SaveChanges() {
    return context.SaveChanges();
}
}

Finally, I try to run code like this:
var ds = new DataService();
var ug = ds.GetAsTracking<UnitGroup>().First();
ug.Name="new value";
ds.SaveChanges();

and get this error:

The property 'Name' on entity type 'UnitGroup' is part of a key and so cannot be modified or marked as modified.

I have found similar questions. It was problem in editing primary key all the time. I checked all described parts twice. Property Name is not part of primary key, it's part of unique key. When I have used EF6, I had code in partial class of migration:
CreateIndex("UnitGroup", "Name", unique: true);
wich was created same unique key and I had ability to edit Name. Why now it's impossible now, in EF7?

In EF Core, an alternate key is designed to be used as the target of a relationship (i.e. there will be a foreign key that points to it). Currently EF does not support changing the values - though we do have https://github.com/aspnet/EntityFramework/issues/4073 tracking enabling this in the future.
If you just want a unique index on the property, then use this code:
modelBuilder.Entity<UnitGroup>().HasIndex(u => u.Name).IsUnique();

This was great information to find but the docs kind of make it seem like alternate keys serve the same function as unique indexes:
"An alternate key serves as a alternate unique identifier for each entity instance in addition to the primary key. When using a relational database this maps to the concept of a unique index/constraint." Took a bit to find out that only this field wasn't updating and then why. Thanks!


distributed trainig ,  build from soure code ?

is it necessary  to build from source code for distributed traing on muti-machine ?
in default the make/config.mk USE_DIST_KVSTORE = 1
if i install mxnet through pip install mxnet-cu92 ,is this value of USE_DIST_KVSTORE  1?

Hi @Davdi , please refer the compilation flag table in https://github.com/apache/incubator-mxnet/issues/8671 for detailed configurations.

Hi @Davdi , please refer the compilation flag table in #8671 for detailed configurations.


[oap-native-sql] Enable mvn package to build native libs

What changes were proposed in this pull request?
Added the generate resource phase in spark columnar core to execute compile.sh and build the native library.
How was this patch tested?
Manually tested.

@JiayiChen785 thanks for improving this!


Updated to use NavigationChanged instead of SpatialReferenceChanged.

@anttikajanus - Do we need to unload the NavigationChanged event handler before switching between samples on this one?

Looks good. Please merge.


Building from source on Orange Pi

Concerning my problems with building from source at least I have been successful.
Just for documentation (is there any platform to post something like this?):
Fritz!Box used 7272, firmware 6.87
Orange Pi Zero LTS 512MB Single Board with Armbian 20.08.17 Focal with Linux 5.8.16-sunxi
go version go1.15.6 linux/arm
git clone https://github.com/bpicode/fritzctl.git fritzctl
cd fritzctl
make build
cp fritzctl /usr/bin

Produced a working binary, but no version info (due to lack in Makefile).
make man
cp os/man/fritzctl.1.gz /usr/share/man/man1

Produced a working manual entry for fritzctl (I would like to get a working
man woman
No manual entry for woman

this easy, too.)
After I've done this,
go get github.com/bpicode/fritzctl
worked, too (??? didn't do it before), and produced a working binary in ./go/bin with different size, roughly 3MB bigger, no version info either.
Eeehm, which one should be the actual version?

As of now, there is no comprehensive documentation on to how to build from source. Typically, go devs are familiar with the structure and it builds just like any other go project.

The version can be set with an environment variable, e.g. by running
FRITZCTL_VERSION=1.4.24 make build

The observation that go get produces a different binary is not surprising, since in Makefile#L13 we use different compiler/linker flags. Both binaries should be fine from a functional standpoint.

Closing due to inactivity. Feel free to re-open if there are further questions.

Closing due to inactivity. Feel free to re-open if there are further questions.


Crash when dragging already present file to a pane

Open a file.
Cmd+K, right to open it in a neighboring pane.
Drag the new view into the original pane.
Atom crashes.

This should have worked fine. There should be no problems with multiple tabs simultaneously editing one file.

@alexchandel Can you try the 1.4.0 betas please?

@50Wliu Crash is gone, but I got Uncaught TypeError #9918 when I edited some text in one of the panes and undid it, so it may still need some work, or that may be unrelated.

that may be unrelated

Yeah, we've been getting a few reports of that exception.  I'm going to re-open that issue since it doesn't appear to be solved.


Removed D3D9.

That does end an era.

It is a shame this happened. What is the last good version with D3D9 support? And was D3D8 ever supported?

@EyeAndTea

What is the last good version with D3D9 support?

Just grab commit before this one.

And was D3D8 ever supported?

Never.


Reference other branches for defaults?

I have A TOML-File like this
[main]
bla = 1
[parts]
[parts.partA]
hello = "World"
foo = "Bar"
[parts.partB]
hello = "Gestalt"
extends = "partA"
Now I'd like to parse this file into a hierarchy of java records.
Problem for my specific usecase: As shown in partB above, some parts may depend on other parts oder a default-section. Is there a way to create some kind of hook, which would jump intop the decoding process and make PartB have all the other values from PartB? (so that partB has after that hello=Gestalt, foo=Bar, extends=partA)
my initial hope after reading the mentioning of sub configurations in the documentation, it would be possible to get a branch from the config, check for any extends/defaults, get the extended branch and set it as default/fallback for the first branch (like in gestalt-builder for fallback-files, but maybe even recursive).
Any thoughts? Thanks.

@brainbytes42 i have moved the second part of your bug here.

It isnt exactly as described , but have you looked into https://github.com/lightbend/config?tab=readme-ov-file#uses-of-substitutions.

This is the goal of the post processors. They allow you to modify the config tree in any way.
The only current post processor TransformerPostProcessor only deals with leaf values and allows string substitution.
But in theory the post processor should allow any modification of the tree including inserting one branch into another. But it hasn't been tested with anything other than changing leaf values.
I can investigate adding a new post processor to include this functionality.
I was thinking of something more like
[main]
bla = 1

[parts]

[parts.partA]
hello = "World"
foo = "Bar"

[parts.partB]
hello = "Gestalt"
${insert} = "parts.partA"

So all the values from parts.partA would be inserted into parts.partB. But parts.partB would take priority, so if there was duplicates the values in parts.partB would take precedence.

Hi,
I've chosen to migrate my config-format to HOCON, which provides the substitution/extension-mechanism. Thanks for the hint - I thought about that before, but had started with TOML... ;-)
So now I have something like this
parts = {
    partA = {
        hello = "World"
        foo = "Bar"
    }
    partB = ${parts.partA} {
        hello = "Gestalt"
    }
}

and with your library, I can parse this to records - nice. :-)

It is probably too late to help. But I have added a feature to allow node substitutions.
https://github.com/gestalt-config/gestalt?tab=readme-ov-file#node-substitution-include-nodes
If you are able to give it a try let me know if it works for you. This should work across all file types, not just HOCON.


Could you please provide standalone executable?

Could you please provide standalone executable?

@m7mdyahia it looks like there is a standalone executable in the bin folder.

yes @lymereJ  but it didn't work for me on windows 10 64 bit
so I re-build the project and re-build wx-widgets

#3 added the 64bit excutable

I just tried both the 32-bit and 64-bit executables on both Windows 10 and Windows 7 (both 64-bit), and the programs crash when clicking either the Dump or Convert buttons ("An unhandled exception occured. Press Abort to terminate").
Any ideas?

download the sources and recompile
it isn't an easy job

imacmill, sorry I was not around is it still crashing?


Way to wait until call finishes?

Hi,
I am new to node.js and mongodb and I'm trying to implement some functionality in which I want to save a bunch of docs into a couple of collections, and get those docs later to do some stuff with them. I was wondering how could I call synchronously some of these mongojs methods. I'll explain this:

I have implemented a module called Mongo which exports some functions. One of this module's function called getDocuments() calls mongojs db.collection.find( {} ) function and returns all the docs inside the collection.
In another module, I need to define a variable to save that collection array. After that, I will do some stuff with that array:

// requiring my module
var Mongo = require("./my_mongo_module");
var mongo =  new Mongo();

...

var myDocs = mongo.getDocuments();
// do stuff here with myDocs...

How can I get to execute the code belowmongo.getDocuments() only after I got all the docs? I guess this way db.collection.find({}) is being executed asynchronously... Am I right? How could I just wait until  db.collection.find({}) returns something?
Thank you in advanced.

Node.js is asynchronous by nature so what you want cannot be done. You have to add a callback to the getDocuments function that gets called with the docs so you can do stuff like this.
mongo.getDocuments(function(err, myDocs) {
  // do stuff here with myDocs...
});


GhostError with 1.0.0-rc.1 in Docker

Issue Summary
When ghost start is executed, it tries to start with the ghost system user which might not be present unless explicitly created
A summary of the issue and the browser/OS environment in which it occurs.
Logs:
Ghost-CLI version: 1.0.0-rc.2
[01:10:46] Checking system Node.js version [started]
[01:10:46] Checking system Node.js version [completed]
[01:10:46] Checking current folder permissions [started]
[01:10:46] Checking current folder permissions [completed]
[01:10:46] Checking operating system [started]
[01:10:46] Checking operating system [skipped]
[01:10:46] Checking MySQL is installed [started]
[01:10:46] Checking MySQL is installed [skipped]
[01:10:46] Checking for latest Ghost version [started]
[01:11:01] Checking for latest Ghost version [completed]
[01:11:01] Setting up install directory [started]
[01:11:01] Setting up install directory [completed]
[01:11:01] Downloading and installing Ghost [started]
[01:11:01] Downloading and installing Ghost v1.0.0-rc.1 [title changed]
[01:11:01] Getting download information [started]
[01:11:15] Getting download information [completed]
[01:11:15] Downloading [started]
[01:11:27] Downloading [completed]
[01:11:27] Installing dependencies [started]
[01:11:34] → yarn install v0.27.5
[01:11:42] → [1/4] Resolving packages...
[01:11:55] → [2/4] Fetching packages...
[01:16:31] → [3/4] Linking dependencies...
[01:18:03] → [4/4] Building fresh packages...
[01:33:09] → Done in 1295.08s.
[01:33:09] Installing dependencies [completed]
[01:33:09] Downloading and installing Ghost v1.0.0-rc.1 [completed]
[01:33:09] Finishing install process [started]
[01:33:09] Linking latest Ghost and recording versions [started]
[01:33:09] Linking latest Ghost and recording versions [completed]
[01:33:09] Linking latest Casper [started]
[01:33:09] Linking latest Casper [completed]
[01:33:09] Finishing install process [completed]
✔ Configuring Ghost
[01:33:11] Setting up instance [started]
[01:33:11] Setting up instance [completed]
[01:33:11] Running database migrations [started]
[01:34:19] Running database migrations [completed]
[01:34:19] Validating config [started]
[01:34:19] Validating config [completed]
✖ Starting Ghost
A GhostError occured.

Message: Ghost process exited with code: 1

Steps to Reproduce
A docker script is available to build a Docker image containing Ghost: https://github.com/kennethlimcp/Ghost-1.0/blob/master/Dockerfile
Technical details:

Ghost Version: 1.0.0-rc.1
Node Version: 6.5-slim
Browser/OS: Alpine
Database: sqlite

Hey @kennethlimcp!
Thanks for your report and thanks for testing the release candidate 👍
Could you please move this bug report over to https://github.com/TryGhost/Ghost-CLI/issues?
👋

Hi @kennethlimcp
I think the first part of the problem here is using ghost install local on what is not a local install 😉  This will only setup your blog to run in development mode, uses sqlite3, and misses several important steps.
I understand that you're using docker (which is not part of our officially recommended stack) & I'm not sure what it is you need exactly. However, I think that the cli offers enough options that you should be able to find a better way to approach this now that the docs are nearing completion: https://docs.ghost.org/nethlimcp
If you need further help, I recommend slack (I see you are already there). if you are certain there is a bug please raise on Ghost-CLI (haha @kirrg001 got there first 😁 )


TypeError: window.Parsley.addAsyncValidator is not a function

I get "TypeError: window.Parsley.addAsyncValidator is not a function" with the following code:

In the head element I have the following (both scripts' urls are correct - I have checked that):
<script type="text/javascript" src="/lib/parsleyjs/dist/parsley.remote.js"></script>
<script type="text/javascript" src="/lib/parsleyjs/dist/parsley.js"></script>

The actual code above I have placed inside the body element. I'm using version 2.2.0-rc1

Please load one or the other, but not both. In your case you need the remote version.
Sorry about the confusion. We plan on merging those versions in the (hopefully) near future.

This text in docs is a bit confusing to me then:
"To use this plugin, either load parsley.remote.js before loading parsley.js, or directly load parsley.remote.js. "

Sorry about that. I had updated the doc, but not pushed to gh-pages. Should be good now.

Same issue here:
http://parsleyjs.org/doc/index.html#psly-installation-localization
See section "Custom remote validators".
The example has both of these:

Oh my! Fixed, thanks :smiling_imp:


Fixed memory leaks

By the way, let me know if you have some style guides, dos and do nots etc.
I personally use zig fmt but this repo doesn't seem to so I'm refraining from letting the muscle memory take over.

This seems to have fixed the vast majority of leaks, I will test editing more files and seeing how many allocations are counted by the leak counter.
Also we no longer leak with every RPC :D

Also, I don't think it's a good idea to use an ArenaAllocator as our base allocator for this program, since we don't have clear points where we want to clear it all and refill it but we rather need to shrink/realloc memory frequently, this will waste a lot of memory.
In practise you can see that by cutting and pasting text around or rearranging lines, we use more and more memory even without the leaks fixed by this PR.
Ideally we would use some good general purpose allocator (with a freelist etc) for the base allocator but one is not provided by std yet.
I propose we use std.heap.page_allocator as the base allocator for now, since most of the allocation happen by local Arenas (e.g. zig.parse, some of the new code on this PR etc.) and switch to a better allocator when the Generic Composable allocators PR is merged in zig.
I tested this and the memory usage is much better, even for more files open the base memory usage is down and adding a lot of text + moving things around requires barely more memory (e.g. I copied std.mem.Allocator.alloc for about 1000 lines of code and needed 0.1 MB more memory, from 0.8 to 0.9 MB while with less files open and just cut pasting and minor edits I went up to 40 MB of memory fast using the page allocator).
Please let me know if that sounds reasonable, I can add it to this PR.

That sounds very reasonable, so you can definitely add it to the PR! Thanks so much for your hard work fixing everything!

Cheers, I will add it then.
Please merge the other PR if it works for you first, since there will be a couple of conflicts I will have to merge with this one :)

Looks perfect, merging now!


TRM Verification Functions Exclude Reads

Previously the storage check for double-inserting has relied on the
reads done inside the logic. Instead, we now read outside and feed in
the commitment and nullifier sets separately.
Moreover, makes functions publicly usable.

This is important for Client-side verification.

However we may not need it if we have current time reads from the storage. However that might risk some desync as that might read from uncommitted storage.


Potential False Positive on Catching Exceptions

Hi All
Thanks for all the work on this project. It's been very useful to get my code all up to sniff ;)
I'm getting what I think might be a potential false positive. I have the following try / catch code block:
// View variables.
try {
     $jid   = get_query_var( 'jid', 0 );
     $job = $this->jobsApp->getJob( $jid );

     $title = $this->getJobTitle( $job );
} catch ( \ErrorException $e ) {
     // Log error data.
     echo $e->getMessage();
     exit();
}

PHPCS is complaining that I'm echoing directly without escaping:
Expected next thing to be an escaping function (see Codex for 'Data Validation'), not '$e'
I guess that's a reasonable requirement, but considering its a thrown exception from further up the chain I don't see why escaping it would be necessary. I can rid myself of the error by using the escape function:
echo esc_textarea( $e->getMessage() );

And I'm sure I could whitelist it as well. I don't know if it matters much, I'm fine with using the escape function, it won't hurt anything. But just incase anyone else agrees with me this should be allowed I figured I'd mention it. Any thoughts?

I guess that's a reasonable requirement, but considering its a thrown exception from further up the chain I don't see why escaping it would be necessary.

What if, up the chain, was this:
throw new Exception( 'Unknown value: ' . $_POST['var'] );

Oops, now we have the potential for XSS.

However, we can all agree that this is safe, without any knowledge of what happened up the chain:
     echo esc_html( $e->getMessage() );

And even WPCS is smart enough to figure it out.
That is the basic principle of late escaping: make no assumptions about whether the data is safe already, just escape it at the last possible moment.
This could be a false positive (its possible that everything up the chain is safe), but ignoring it is just as likely to result in some false negatives.

Ah, you're right. Thanks for the example, that explains the reasoning and issue perfectly.


Fresh install broken on Pi 3

Summary
Microk8s is not fully starting on a fresh install of Ubuntu Server 22.04.2 arm64 on a CM3+ module with eMMC. I have already tried installing linux-modules-extra-raspi, but there was no change. I tried installing Ubuntu 22.04.2 fresh again, but it resulted in the same issue. Performing any microk8s commands takes a long time to execute. CPU is around 50% load and memory around 60% load at idle with micok8s installed and started, despite no pods added. Most microk8s commands hang and never complete. Journalctl constantly mentions that the network plugin is not ready:
microk8s.daemon-kubelite[2095]: E0531 21:28:35.752093    2095 kubelet.go:2475] "Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized"
Reproduction Steps

Install a fresh copy of Ubuntu Server 22.04.2 arm64
Perform apt update and apt upgrade
Install extra modules with sudo apt install linux-modules-extra-raspi
Install microk8s with sudo snap install microk8s --classic

Introspection Report
inspection-report-20230531_215943.tar.gz

Hey @0anth ,
Thanks for reaching out. Have you updated the boot parameters to enable cgroup as described here?

Hi, I have, but it also seemed to make no difference.
turing@turing-master:~$ sudo cat /boot/firmware/cmdline.txt cgroup_enable=memory cgroup_memory=1 console=serial0,115200 dwc_otg.lpm_enable=0 console=tty1 root=LABEL=writable rootfstype=ext4 rootwait fixrtc quiet splash

I previously ran K3s on the same CM3+, and although not the fastest, it did run ok. I have 7 modules available, so the individual load on each node shouldn't be too high once it actually gets going. This is a homelab environment and not production, so I'm willing to turn off HA and any other non-critical services if it will help the control plane.

 We've usually observed this issue on Raspberry Pi's with slow storage, which leads to unstability with apiserver and the whole cluster. Do you have any information about your eMMC storage?
I'd suggest checking out Raspberry Pi and systems with low disk performance under our troubleshooting page.

I tested the disk and got the following results:
Timing cached reads:   874 MB in  2.00 seconds = 437.79 MB/sec
Timing buffered disk reads:  64 MB in  3.02 seconds =  21.19 MB/sec
629145600 bytes (629 MB, 600 MiB) copied, 32.8676 s, 19.1 MB/s
I tried configuring journald with Storage=volatile and rebooting, but microk8s is still not starting correctly.

Just a thought - if the control plane is the problem, could you add something juicier than a Pi for the leader node, and then join all the Pi modules as worker-only nodes? You can use microk8s join --worker ... for that.
Or if you don't have other servers, maybe you could get one Pi to run on a proper magnetic/SSD, and then use that as the leader. Then all the Pi modules can join, again as worker-only.


feat: rename referentialIntegrity in relationMode

Done and merged on main with https://github.com/prisma/prisma/pull/14221


Register Delegate throw's StackOverflow

Description
I'm working on some general container abstractions. With this the goal is to be able to provide a registration like:
void Register<T>(Func<IServiceProvider, T> factoryMethod)
{
    c.RegisterDelegate(typeof(T), r => factoryMethod(r.Resolve<IServiceProvider>());
}

The issue is when you call c.Resolve<T>() it appears to throw a StackOverflow thus killing my unit tests.

For reference you can see the tests in the Prism.Container.Extensions repo.

If IServiceProvider is MS one, then u don't need to resolve it, resolver is already implementing it.
c.RegisterDelegate(typeof(T), r => factoryMethod(r));

For the rest will look when I have time. I am on vacation till 20th of May.

tried updating the one for IServiceProvider which yes it is the MS one, and what you have shown there seems to be throwing a SO Exception still because it totally kills the test runner the second I try to resolve the type.

@dansiegel,
The sample is working for me: https://dotnetfiddle.net/46ZoI4
Could you make it fail?

not sure entirely what the issue was but I was able to get this resolved. Thanks!


search mixin

prototype search mixin
support Search Mixin

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (82593d3) to head (4b5bc5f).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff            @@
##              main       #39   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            8         9    +1
  Lines          519       522    +3
=========================================
+ Hits           519       522    +3

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Normalize CSS classnames between all components

We should have conventional names for all our components.
For example, dropdown's header classname is .labelSpacing where as TextField is .header.  They both are managing the same part of it's component.
Both should either be .header or something else

we need a CSS review to determine standards


Sync frequency?

The following blog in Japanese is being maintained and claims that the Hyper-V Time Synchronization Service (VMICTimeSync) syncs up every 5 seconds.
https://blogs.technet.microsoft.com/jpaztech/2017/04/11/clocksync/
If that's correct, can that be added to this doc as well?

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

ID: a81f4b67-b43e-089b-3b61-f29bc3142543
Version Independent ID: a9e8a903-8eab-972e-acfb-a4eeb60defcc
Content: Time sync for Windows VMs in Azure
Content Source: articles/virtual-machines/windows/time-sync.md
Service: virtual-machines-windows
GitHub Login: @zr-msft
Microsoft Alias: zarhoads

Thanks for the feedback! We are currently investigating and will update you shortly.

@dcbrown16 I have assigned the issue to the content author to investigate further and update the document as appropriate.
@zr-msft Can you please take a look and update the doc as appropriate. Thanks :)

Thank you for creating this issue @dcbrown16.
I have a fix for this issue and I'll add it to the docs soon.
#please-close


Add meshmodel component support

Signed-off-by: Ruturaj Mohite<EMAIL_ADDRESS>Description
Adds meshmodel support and components to the Linkerd adapter
This PR fixes #
Notes for Reviewers
Signed commits

[ ] Yes, I signed my commits.

@gr455 Can you also run the utility to produce the meshmodel components from available OAM components?

@gr455 Can you also run the utility to produce the meshmodel components from available OAM components?

Yes, there is a little blocker with that, but it'll be done, the PR is WIP still

@Revolyssup Can you check broadly if all the components are there?


platform.h suggest supported gcc version is 8.4. __builtin_bit_cast used by bx.inl wasn't defined until version 11

I think the project is targetting minimum C++17 and GCC 8.4
https://github.com/bkaradzic/bx/blob/3e9604c7434127b9d5b8964cdebfdc7ac4693581/include/bx/platform.h#L469
__builtin_bit_cast didn't get implemented in GCC until version 11, (April 27, 2021).
bx.inl uses built-in
https://github.com/bkaradzic/bx/blob/3e9604c7434127b9d5b8964cdebfdc7ac4693581/include/bx/inline/bx.inl#L171
resulting in error: '__builtin_bit_cast' was not declared in this scope when building with GCC 9, 10 (tested)
GNU suggests using std::bit_cast (introduced in C++20) instead of the built-in.
GNU GCC Documentation
The built-in is intended to be used by implementations of the std::bit_cast C++ template function. Programs should make use of the latter function rather than invoking the built-in directly.

Fixed. Thanks!


The content of the original blog post is out of date

In https://coreos.com/blog/the-prometheus-operator.html, under the "Service Monitoring" heading, the example prometheus spec uses serviceMonitors as a key instead of the actual serviceMonitorSelector key. In testing out a setup in my own environment, I based my prometheus.yaml on this key and it caused a hell of lot of hair pulling.
The documentation here in the repo is nice and clear, and being alpha you've certainly mentioned anything is subject to change, but just in case people's entry to this pretty rad idea is through that post (as was mine), you might want to save them some frustration.

Thanks for reporting. We are aware of this and a while ago added a note saying:

Note that the Prometheus Operator is under heavy development, follow the project on GitHub for latest information.

Maybe it's not prominent enough. Do you have an idea of where we could place it to be more noticeable?

You know I actually did read that at the top and it was noticeable, for sure, and this could totally be just on me, but as I was running through this example both the manifest content on the post, as well as the manifests that are linked to (i.e. https://coreos.com/operators/prometheus/latest/servicemonitor-frontend.yaml) are using the old serviceMonitors key, so you actually can't get through the example and see the ease and power of the operator any more.
This could be fine as it is quite clear that we are in alpha territory here, but I just thought that the rest of the post was a pretty great introduction to a very promising tool, so didn't want people to be turned off when they couldn't work through the example.
Perhaps continuing to repeat that note as one proceeds down the post, after each step or code example and maybe being more clear that this example may break and that is why you need to check out the project on github? Might be overkill but just throwing it out there.
Also this is a total nit so feel free to close this issue whenever. I just wanted to provide some feedback around my experience in case it would be helpful for any future users.

Totally valid concern so thanks for bringing it up 🙂 . Maybe we can change the message to be something like:
Note that for all of the following examples to work properly you must use the versions specified in this blog post and referenced manifests (and a Kubernetes v1.4.x cluster). The Prometheus Operator is under heavy development, so once you are finished with this introduction of the Operator we recommend checking out the latest state of the Operator on Github.
What do you think @zkmoney?

Oh very interesting. I was using minikube with v1.5 of k8s. If I had been on 1.4 the manifests would have worked? If that is the case, then totally, the updated message would be a big help. And I might even add in something like "state and specs" since specifically those definition documents were where I found the answers to my problems.
Happy to help out! Really looking forward to the continued development of this, and please let me know if there is anything else I can do to get involved. Would be happy to contribute to bug fixes/feature development, as once this is in beta I would like to use it in production.

I'll make sure we add a note about the Kubernetes version used. It was previously tested with a v1.4.5 cluster with minikube IIRC.

I just heard back from @mxinden who went through the blog post with a v1.4.5 cluster, and it did indeed work. So I will make sure that we add it to the blog post.

Great stuff. Thanks for the update!

We now explicitly mention that the version and manifests used in the blog post are targeted at v1.4.x and v1.3.x clusters, and referred to the docs and kube-prometheus for v1.5.0+ clusters. Sounds good to you @zkmoney ?

That sounds good to me. Thank you!
On Thu, Jan 26, 2017 at 10:03 AM Frederic Branczyk<EMAIL_ADDRESS>wrote:

We now explicitly mention
https://coreos.com/blog/the-prometheus-operator.html#prometheus-operator-in-action
that the version and manifests used in the blog post are targeted at
v1.4.x and v1.3.x clusters, and referred to the docs and kube-prometheus
for v1.5.0+ clusters. Sounds good to you @zkmoney
https://github.com/zkmoney ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/coreos/prometheus-operator/issues/112#issuecomment-275409833,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATM25ZvVci6P1W-XSHY7Wj2pTxtUA-pKks5rWLVdgaJpZM4LovU1
.

--
Zachary Kilgore
Senior Engineer @ Raise Marketplace, Inc.

Great thanks for reporting and bearing with me! 🎉


ImportError: cannot import name 'pinvh'

Hi,thank you for your greate work!
I had a configuration problem that I spent two days trying to solve.
I tried to find a solution in Google and Baidu, and tried to reconfigure the environment and reinstall anaconda.But it still can't solve this problem.
Not only does this problem occur when you run your program, it also occurs in ‘’https://github.com/vana77/Bottom-up-Clustering-Person-Re-identification‘’.
I'm eager to get your help！Best wishes！
Details of the questions are as follows：
(one-shot) mickey@a208-System-Product-Name:~/Exploit-Unknown-Gradually$ python3 run.py --dataset DukeMTMC-VideoReID --logs_dir logs/DukeMTMC-VideoReID_EF_10/ --EF 10 --mode Dissimilarity --max_frames 900
Traceback (most recent call last):
File "run.py", line 2, in
from reid.eug import *
File "/home/mickey/Exploit-Unknown-Gradually/reid/init.py", line 7, in
from . import metric_learning
File "/home/mickey/Exploit-Unknown-Gradually/reid/metric_learning/init.py", line 3, in
from metric_learn import (ITML_Supervised, LMNN, LSML_Supervised,
File "/home/mickey/miniconda3/envs/one-shot/lib/python3.6/site-packages/metric_learn/init.py", line 8, in
from .sdml import SDML, SDML_Supervised
File "/home/mickey/miniconda3/envs/one-shot/lib/python3.6/site-packages/metric_learn/sdml.py", line 15, in
from sklearn.utils.extmath import pinvh
ImportError: cannot import name 'pinvh'

Hi,
It is because you did not install the necessary package correctly.
Could you please try import metric_learning without our code? Did it meet the same error?
From the information you provided, this is due to the broken of python package metric_learning.
You may re-install the necessary packages (numpy, scipy, metric_learn) to solve the issue.
Or, you may try the Anaconda3 (version 5.2). And setup environments based on Anaconda.

@Yu-Wu
Thank you for your help!
It's really because the metric-learn package is damaged.
With your help, find the source of the problem, and then find a solution. Thank you.


Reset() form that has validation errors

In a form with validation functions specified, I have a reset form button that calls this.props.reset() to clear all form fields:
<Button id='clear' type='reset' icon='remove' onClick={this.closeAndReset} />

where the onClick function is:
closeAndReset = () => {
    console.log("inside closeAndReset")
    this.props.reset()
    // other things
  }

Assuming the below validation function:
const asyncValidate = (values) => {
  return axios.get(something(values.label).url)
  .then((response) => {
    if (condition_fails)
      throw { label: 'Async error message' }
  })
}

If a user enters some incorrect value in the label field, and then presses the button that triggers the form reset, the form will not reset.  The console log statement is not executed either, so it seems the onClick event is not triggered. Instead, it will throw the validation error above.  The second reset button click will then reset the form.
Basically, the reset button click causes an onBlur event of the label field, which triggers the validation prior to the reset.   Is there a commonly accepted solution for this?

the problem turned out unrelated to Redux Form. Here is actually what happens:

click on field that has "Required" validation
click on the "reset" button, located at the bottom of the form
validation is triggered
validation causes a "Required" label to appear below the concerned field
onClick should be triggered here, but the error label that was created by the validation caused the elements below it to be pushed down.  This causes the "reset" button to be pushed below the mouse cursor, and the click event happens outside of the button.


Add pkce support

Add PKCE support when requested by the client. Used reference is displayed in RFC 7636. Only for the authorization_code flow.
https://datatracker.ietf.org/doc/html/rfc7636
New requests optionally include the query parameters: code_challenge and code_challenge_method on the  initial authorize request, then on token_endpoint it is required to contain a code_verifier parameter containing the code_verifier used to create the hash passed earlier as code_challenge.

This helps a lot, hope it gets merged quickly . .

Hello @maxxiefjv and thanks for this effort.
I can see that pyoidc (aka oic) already implements PKCE support.
Is there a reason we cannot use that support directly?
see,

https://github.com/OpenIDC/pyoidc/blob/f6d836af9d204331f12e17a6fe549e7cce02afe1/src/oic/extension/provider.py#L552-L561
https://github.com/OpenIDC/pyoidc/blob/eb19aecb4f0eb5f71679688cb484cc2d081bd983/src/oic/oauth2/__init__.py#L1034-L1039
https://github.com/OpenIDC/pyoidc/blob/eb19aecb4f0eb5f71679688cb484cc2d081bd983/src/oic/extension/client.py#L289

Hi @c00kiemon5ter,
Thanks for the reply!
Sorry for my late response. To be honest, I missed that implementation completely. Although, it seems to me its an incomplete extension? Or I am missing some features here? (Also, I believe that this library does not use the Client class extensively making the use of the functions in their classes not so straight forward as one might like)
Reusing as much code as possible, I now changed the code_verifier to use the function included in the OIC provider extension (which also allows the removal of the dependency on the nacl library).  Note though, that this function lacks plaintext support, even though the RFC7637 (https://datatracker.ietf.org/doc/html/rfc7636#section-4.2) standard shows that should be supported. Hence, I removed the test.
Looking forward to your thoughts on this

thank you @maxxiefjv


About image rotation augmentation

Hi Zhijian and Haotian,
Thanks for open sourcing the BEVFusion! It is a great work and I like it a lot!
I was reading through the code and I am a bit confused by the image augmentation code: Are there specific reasons you do the rotation at the last step? It seems that doing so will result in worse image quality (jagged pixels):
img = Image.open("./data/nuscenes/samples/CAM_FRONT/n015-2018-07-11-11-54-16+0800__CAM_FRONT__1531281560162460.jpg")
transform_image = img.resize(resize_dims)
transform_image = transform_image.crop(crop)
transform_image = transform_image.rotate(rotate)

compared with rotate first:
img = Image.open("./data/nuscenes/samples/CAM_FRONT/n015-2018-07-11-11-54-16+0800__CAM_FRONT__1531281560162460.jpg")
transform_image = img.rotate(rotate)
transform_image = transform_image.resize(resize_dims)
transform_image = transform_image.crop(crop)

Also, I am guessing the flip augmentation matrix here should probably be
b = torch.Tensor([crop[2] - crop[0] - 1, 0])

according to PIL flipping code.
Thanks again for your great work!

Hi @YurongYou,
Thanks for the comments! For the image rotation augmentation, I believe we just follow the original implementation of LSS when we implement it. For flip augmentation, it is a good point, but I guess the difference is not very large. How do you think about it @zhijian-liu ?
Best,
Haotian

@kentang-mit, I think we should make it correct. Could you please re-run some experiments when you have the bandwidth?

@zhijian-liu, sure, I will have a try recently, perhaps late this week or early next week.

Thanks!

Thanks! For the rotation-first implementation, I just implemented the corresponding post-homography transformation (need to input ori_shape). Feel free to double-check and use it :)
# adjust image
img = img.rotate(rotate)
img = img.resize(resize_dims)
img = img.crop(crop)
if flip:
    img = img.transpose(method=Image.FLIP_LEFT_RIGHT)
# post-homography transformation
W, H = ori_shape
theta = rotate / 180 * np.pi
A = torch.Tensor(
    [
        [np.cos(theta), np.sin(theta)],
        [-np.sin(theta), np.cos(theta)],
    ]
)
b = torch.Tensor([W, H]) / 2
b = A.matmul(-b) + b

rotation = A.matmul(rotation)
translation = A.matmul(translation) + b

rotation *= resize
translation *= resize
translation -= torch.Tensor(crop[:2])
if flip:
    A = torch.Tensor([[-1, 0], [0, 1]])
    b = torch.Tensor([crop[2] - crop[0] - 1, 0])
    rotation = A.matmul(rotation)
    translation = A.matmul(translation) + b

Thanks a lot!

Hi, When i dump image tensor after image transform, it shows as below.

I believe there is something wrong here, is not it? if it is so, could you tell me what is going wrong here? Thanks!

Could any one explain why should we do that in this way?
I am a quite junior student and my own dataset's coordinate system is different from that of nuscenes. More specificly, the x-axis points to the front of the vehicle, and the y-axis points to the left of the vehicle, while for nuscese x-axis to right, y-axis to front.
In the above mentioned cases, should I change the code?

After learning for a day, I seem understand the reason.
However, I think the transform matrix here should probably be
            transform[:2, 2] = translation


Windows Defender detects FluentWPF.dll as virus

Windows Defender thinks FluentWPF.dll is a virus since release 0.8.0. I updated the nuget package yesterday. But the notification appeared today. Maybe because of automatic quick scan in background.
It says the behaviour of the software is potentially unwanted.

Hi, @Armin2208
Thanks for the feedback.
I'm using Kaspersky Internet Security, and it doesn't detect any threats.
I think it could be misdetection in Windows Defender.

I'll check it with Windows Defender later.
But I'm busy with work this week.
I'll check it in this weekend.
Please wait for a while.
I am sorry for the inconvenience.

Hi, @Armin2208
I tried to scan FlluentWPF0.8.0 with Windows Defender, but any threats were not detected.
Is Windows Defender still detecting any threats in your environment?

Luckily you're right. Windows Defender doesn't recognize FluentWPF anymore as virus. Maybe someone at Microsoft checked this :)
Now again worry free, have a nice weekend <3

Thanks 😃
I'm glad to hear that.

Wow mate, now I tested Auto Dark Mode with FluentWPF in the newest Insider-Preview in a virtual machine and this time not Defender itself detected FluentWPF.dll as bad software, but the new option to find potential unwanted software.
Good thing: Defender makes it clear that it isn't a real virus, it's more like: We think the program behaves in a way that you don't want. So no Red X, they use a yellow indicator.
Interesting change, I think with time this will also vanish.


Update URL for build status badge

Before:
After:

Reviewer: @mlunoe

CC @ssk2

SHIP IT

Thanks for doing this @philipnrmn


[Performance]: Sampler account for most of time comparing to prefill and decode

Your current environment

The output of `python collect_env.py`
Your output of `python collect_env.py` here

Model Input Dumps
No response
🐛 Describe the bug
Do profiling with qwen2vl, I found that sampler account for most of time during inference, am I right?  Is it an issue?

preprocess:  10ms
vision encoder:  252ms
prefill 46ms + sampler 225ms
(decoding inference 2ms + decoding sampler  18ms ) * 62 = 1240ms

Before submitting a new issue...

[X] Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Seems it trigger by sampling_metadata.skip_sampler_cpu_output. When to set skip_sampler_cpu_output to true?
    if not sampling_metadata.skip_sampler_cpu_output:
        # GPU<->CPU sync happens here.
        # This also converts the sampler output to a Python object.
        # Return Pythonized sampler result & sampled token ids
        return get_pythonized_sample_results(
            maybe_deferred_args), sampled_token_ids_tensor
    else:
        # Defer sampler result Pythonization; return deferred
        # Pythonization args & sampled token ids
        return (
            maybe_deferred_args,
            sampled_token_ids_tensor,
        )


Release v7.0.0

TODO:

[x] smoke test with https://gist.github.com/sttts/06f5e440540ac629a313f28ad8002277
[x] update release notes https://github.com/kubernetes/client-go/pull/389
[ ] update README https://github.com/kubernetes/client-go/pull/391

/cc @nikhita @caesarxuchao

@nikhita @caesarxuchao please check https://github.com/kubernetes/client-go/releases/tag/v7.0.0-rc. Smoke tests were green. From my side it's ready to go.


mysql-install-priviledges - percona::access_grants line 28

On line 28 in access_grants, I receive an error. Inside the error logs, it seems there was an issue saving the client.pem file to the server under /etc/chef/client.pem. Would you all happen to know how to fix this? I have attempted to run this as sudo but that doesn't seem to fix the issue

Hi @awworrell you can talk this in https://github.com/phlipper/chef-percona/issues/362

Thanks.


Verify code for Fill Failed blocks data entry + reset_gui

Current code:
self.fillblocks_entry = tk.Checkbutton(self, variable=self.tape.fillBlocks)

Shouldn't this be:
self.fillblocks_entry = tk.Checkbutton(self, variable=self.tape.fBlocks)

Also code in reset_gui doesn't look quit right. See also omimgr.

All fixed now.


raise version of grunt-bower-task

I tried these commands to according to the README:
$ git clone https://github.com/yoichiro/chrome_mysql_admin.git
$ cd chrome_mysql_admin
$ npm install
$ grunt

But got this error:
Fatal error: Arguments to path.join must be strings

By googling, I found node on my machine and grunt-bower-task are incompatible.
Then, I modified the version of the package and make it to build.
Pages I found https://github.com/yatskevich/grunt-bower-task/issues/122
My environment
> node --version
v0.12.4

> grunt --version
grunt-cli v0.1.13
grunt v0.4.5

I might get something wrong because I'm new to node and grunt (and modern JavaScript development).
Thanks in advance.

@igrep Thank you for this pull request!


docs: Add examples for github action

Here is my proposal for the github action in the publishing section of the documentation.
Jobs

Version
Checks for changes in the package.json file. If there is a change, it retrieves the version of your extension.
Submit
Submits your extension to the store using the wxt submit command.

pnpm and npm code-group.
Here's a link to my CI Deploy to show you how it works.
I follow the pnpm continuous integration guide  and your publishing section.

Could there be a section called "dispatch" and another called "by commit"?

Maybe we just list the two steps that are important (zip and submit), then link to each of our projects for a full workflow?

I think it's a good idea, it could look like what I've pushed.


SRV entries not supported

I just managed to import my godaddy managed domain, since I want it to be managed by terraform.
But I can not work with that, because I have 2 SRV entries for SIP support.
I'd like to keep those entries.
Could you please add support for SRV entries in your plugin?

@n3integration just ran into this issue, and I have created a PR for this fix, could you please kindly review this change? thanks


add enum for compliance in policy dependency crd

Signed-off-by: Will Kutler<EMAIL_ADDRESS>refs:

https://issues.redhat.com/browse/ACM-2021?filter=-1

/cc @mprahl


Fix references to elastic agent path in spring cloud docs

The docs mention specifying the application jar in javaagent under jvm-options when it should be the elastic APM agent's jar file path. This PR aims to fix the confusion around the same.

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

@KarlErickson
After you've reviewed the proposed changes and determined that they're ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
Thanks!
#label:"aq-pr-triaged"

Thanks, @avinashupadhya99 !
#sign-off


Yuva Feedback

Yuva Feedback - To validate my feedback related to documents has been captured by MS

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

ID: c7b0bed0-d344-9e32-f789-ddebb0309ecf
Version Independent ID: 6c821f59-d507-df49-19c7-9a98dd162bf0
Content: Windows 10, version 1709 and newer diagnostic data for the Full level (Windows 10)
Content Source: windows/privacy/windows-diagnostic-data.md
Product: w10
GitHub Login: @DaniHalfin
Microsoft Alias: daniha

Hi @dyuvaraaj, is there an issue you want to address ?

Hello Dani,
I don’t have issues with MS docs.
Thanks,
Yuvaraj
On Fri, Mar 8, 2019 at 6:07 PM Dani Halfin<EMAIL_ADDRESS>wrote:

Hi @dyuvaraaj https://github.com/dyuvaraaj, is there an issue you want
to address ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/windows-itpro-docs/issues/2876#issuecomment-471135543,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ArXklRIqWPuHSD8f870L3f5l5fZpvtLkks5vUxXQgaJpZM4bmZ-g
.

Feedback can also be given by using the Feedback Hub in Windows (Windows-Key + F) or via UserVoice for Office applications: https://blogs.technet.microsoft.com/o365guy/2018/01/02/submit-product-feedback-or-feature-requests-to-microsofts-virtual-suggestion-boxes/ .
Other than that, it looks like this issue ticket can be closed.

@AndreaBarr - This issue can be closed. Thank you.


⚠ Jenkins Plugins Artifactory has degraded performance

In c72a94b, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1278 ms

Resolved: Jenkins Plugins Artifactory performance has improved in e099ae0 after 26 minutes.


tiltfile2: remove unused makeBlob function

Or we could expose it (and test it) for people who have a string that they want to turn into a blob... Which could be useful. Anyway, your choice, and good for us to have shared context on.

Currently, and I think this should always be the case, anything that takes a Blob actually takes a union of Blob and str. I don't see any reason why a function would only take a Blob, do you?


Some exceptions are only logged so that debuggers or systemd don't get them

Is this still an issue? Can you elaborate?

I don't know..


Could I prove a new root is base on the old root with the proof of all new appended items?

Original Issue
If I have a MMR (denoted as mmr), and its current root is old_root.
I append some new items (denoted as new_items) into the MMR:
let mut positions = Vec::new();
for i in new_items {
    let pos MMR.push(i).unwrap();
}
positions.push(pos);

Then I can get a new root and a proof for the new_items:
let new_root = mmr.get_root().unwrap();
let proof = mmr.gen_proof(positions).unwrap();

Could the follow test always be passed?
let items = proof.proof_items();
let peak = items.iter().skip(1).fold(items[0].clone(), |p, item| {
    MyMerge::merge_peaks(&p, item).unwrap()
});

assert_eq!(peak, old_root);

Update 2023-06-12 18:30
An API is required, since the order of proof items is not left-to-right or right-to-left.
See the follow demos:
     6
   /   \
  2     5
 / \   / \
0   1 3   4

Proof for 4 is [3, 2], proof items are right-to-left peaks.
     6
   /   \
  2     5     9
 / \   /  \  / \
0   1 3   4  7  8

Proof for 8 is [6, 7], proof items are left-to-right peaks.
          14
       /       \
     6          13            21
   /   \       /   \        /    \
  2     5     9     12     17     20
 / \   /  \  / \   /  \   /  \    / \
0   1 3   4 7   8 10  11 15  16  18 19

Proof for 19 is [14, 18, 17], proof items are randomize-ordered peaks.

I think it's because you need to consider the order in which the right leaf nodes are merged before fn bagging_peaks_hashes is called, I think the following code should solve your problem, can you try it?
    pub fn verify_incremental(&self, root: T, prev_root: T, incremental: Vec<T>) -> Result<bool> {
        let current_leaves_count = get_peak_map(self.mmr_size);
        if current_leaves_count <= incremental.len() as u64 {
            return Err(Error::CorruptedProof);
        }
        // Test if previous root is correct.
        let prev_leaves_count = current_leaves_count - incremental.len() as u64;
        let prev_peaks_positions = {
            let prev_index = prev_leaves_count - 1;
            let prev_mmr_size = leaf_index_to_mmr_size(prev_index);
            let prev_peaks_positions = get_peaks(prev_mmr_size);
            if prev_peaks_positions.len() != self.proof.len() {
                return Err(Error::CorruptedProof);
            }
            prev_peaks_positions
        };
        let current_peaks_positions = get_peaks(self.mmr_size);

        let mut reverse_index = prev_peaks_positions.len();
        for (i, position) in prev_peaks_positions.iter().enumerate() {
            if *position < current_peaks_positions[i] {
                reverse_index = i;
                break;
            }
        }
        if reverse_index == prev_peaks_positions.len() {
            reverse_index = prev_peaks_positions.len() - 1;
        }
        let mut prev_peaks: Vec<_> = self.proof_items().iter().map(|peak| peak.clone()).collect();
        let mut reverse_peaks = prev_peaks.split_off(reverse_index);
        reverse_peaks.reverse();
        prev_peaks.extend(reverse_peaks);

        let calculated_prev_root = bagging_peaks_hashes::<T, M>(prev_peaks)?;
        if calculated_prev_root != prev_root {
            return Ok(false);
        }

        // Test if incremental leaves are correct.
        let leaves = incremental
            .into_iter()
            .enumerate()
            .map(|(index, leaf)| {
                let pos = leaf_index_to_pos(prev_leaves_count + index as u64);
                (pos, leaf)
            })
            .collect();
        self.verify(root, leaves)
    }


RVSDG translation error: Function returning loaded value doesn't return state edge

The following program panics with RunType egglog:
@load(p: ptr<int>) {
    v: int = load p;
    ret v;
}

@main(p: ptr<int>) {
    v: int = call @load p;
}

with this message:
thread 'main' panicked at dag_in_context/src/typechecker.rs:331:21:
Index out of bounds. Tuple has type (TupleT (TCons (StateT) (TNil))), index is 1. Expr:
(Get (Call "load" (Concat (Single (Get (Arg (Unknown) (InFunc "dummy")) 0)) (Single (Get (Arg (Unknown) (InFunc "dummy")) 1)))) 1)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I think we see the problem - that a function returning a loaded value doesn't return a state edge - when we print this simple program as RVSDG:
@main(p: ptr<int>) {
    v: int = load p;
    ret v;
}

I think the issue is with the load function, which returns something but doesn't declare a return type. I get errors when I try to interpret calls to load in a main that doesn't take a pointer param.
If I add the following test to eggcc it passes:
@load(p: ptr<int>): int {
    v: int = load p;
    ret v;
}

@main() {
    one: int = const 1;
    p: ptr<int> = alloc one;
    store p one;
    v: int = call @load p;
    free p;
    print v;
}

Thoughts?

Oops, you're right. Closing


Refactor remove implementation to improve readability

Summary or solution description
Refactored list remove built-in method.
Part of an overall refactoring to unify code generator logic and built-in methods generation.
How to Reproduce
https://github.com/CityOfZion/neo3-boa/blob/57b4554b061890a79bcf55d3a678828a5a353ffc/boa3_test/test_sc/list_test/RemoveIntValue.py#L6-L10
Tests
https://github.com/CityOfZion/neo3-boa/blob/57b4554b061890a79bcf55d3a678828a5a353ffc/boa3_test/tests/compiler_tests/test_list.py#L1787-L1843
Platform:

OS: Windows 10 x64
Python version: Python 3.7+

Task linked: CU-864eq300n Refactor remove implementation to improve readability


[Feature] Distance measuring calculator.

Description
I want to add a distance measuring calculator which calculates the distance based on the given values of speed and time using the formula distance=speed X time.
Please assign this task to me.
Screenshots
No response
Checklist

[X] I have checked the existing issues.
[X] I follow Contributing Guidelines of this project.
[X] I am a GSSOC'24 contributor.
[ ] I am a IWOC'24 contributor.
[ ] I am a JWOC'24 contributor.
[ ] I am a SWOC'24 contributor.

Code of Conduct

[X] I agree to follow this project's "Code of Conduct".

Hi @Rakesh9100 please assign this issue to me.

issue already open for this #1595

@Rakesh9100 please close this issue


lib/options: Better mergeEqualOption error for uncomparable types

Motivation for this change
For an option definition that uses lib.options.mergeEqualOption
underneath, like types.anything, an error is thrown when multiple
functions are assigned, indicating that functions can't be compared for
equivalence:
error: The option `test' has conflicting definition values:
- In `xxx': <function>
- In `xxx': <function>
(use '--show-trace' to show detailed location information)

However, the error message didn't use the correct files. While above
error indicates that both definitions are in the xxx file, that's in
fact not true. Above error was generated with
options.test = lib.mkOption {
  type = lib.types.anything;
};

imports = [
  {
    _file = "yyy";
    test = y: y;
  }
  {
    _file = "xxx";
    test = x: x;
  }
];

With this change, the error uses the correct file locations:
error: The option `test' has conflicting definition values:
- In `xxx': <function>
- In `yyy': <function>
(use '--show-trace' to show detailed location information)

Ping @roberth
Things done

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

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Would you mind adding a test case?


Any help appreciated. This issue is blocking most of auto complete features in android studio for flutter.

Analyzer Feedback from IntelliJ
Version information

IDEA AI-191.8<IP_ADDRESS>10548
2.5.0-edge.1ef83b86ae637ffe7359173804cbc6d3fa25e6db
AI-191.8<IP_ADDRESS>10548, JRE 1.8.0_202-release-1483-b03x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 1366x768

Exception
Dart analysis server, SDK version 2.5.0-edge.1ef83b86ae637ffe7359173804cbc6d3fa25e6db, server version 1.27.2, error: Captured exception
NoSuchMethodError: The getter 'iterator' was called on null.
Receiver: null
Tried calling: iterator
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1      _protocolAvailableSuggestionSet (package:analysis_server/src/domains/completion/available_suggestions.dart:233:35)
#2      createCompletionAvailableSuggestionsNotification.<anonymous closure> (package:analysis_server/src/domains/completion/available_suggestions.dart:78:14)
#3      MappedListIterable.elementAt (dart:_internal/iterable.dart:415:29)
#4      ListIterable.toList (dart:_internal/iterable.dart:219:19)
#5      createCompletionAvailableSuggestionsNotification (package:analysis_server/src/domains/completion/available_suggestions.dart:79:8)
#6      CompletionDomainHandler.setSubscriptions.<anonymous closure> (package:analysis_server/src/domain_completion.dart:497:11)
#7      new DeclarationsTrackerData.<anonymous closure> (package:analysis_server/src/domains/completion/available_suggestions.dart:306:9)
#8      _rootRunUnary (dart:async/zone.dart:1132:38)
#9      _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#10     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#11     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#12     _DelayedData.perform (dart:async/stream_impl.dart:591:14)
#13     _StreamImplEvents.handleNext (dart:async/stream_impl.dart:707:11)
#14     _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:667:7)
#15     _rootRun (dart:async/zone.dart:1120:38)
#16     _CustomZone.run (dart:async/zone.dart:1021:19)
#17     _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#18     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#19     _rootRun (dart:async/zone.dart:1124:13)
#20     _CustomZone.run (dart:async/zone.dart:1021:19)
#21     _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#22     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#23     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#24     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#25     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:391:30)
#26     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:416:5)
#27     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)

For additional log information, please append the contents of
file://C:\Users\User\AppData\Local\Temp\report.txt.

Apologies that we didn't get to this issue before it became stale. Please re-open if you encounter this on a recent version of Dart.


Do not save logs when RayJob status is missing

It is because of RHODS-12857. Utilities which save the logs require RayJob status which may not be available.

/lgtm

/approve


Slot processing stubs

PR description
Added:

slot scheduler
slot processing stubs
block processing stubs
epoch processing stubs

Blocked by #25


NG911 Core Services Data Updates

Data updates on a roughly monthly schedule plus out-of-cycle updates:

PSAP Boundaries
Address Points
Road Centerlines
Response Polygons (near future)

Law
Fire
EMS

This data was updated on 8/8/2023

Sprint 5

Next update

scheduled for 9/7/2023

@gregbunce did this happen and can we close this down?

@gregbunce please provide a comment and close this issue/task

This has been successfully completed.


Update to 92.1 homeassistant

Hi, I've been using this custom component for a while and it's been great, thank you.
Recently I upgraded to home assistant 92.1 and it broke the custom component, I noticed you've carried out some updates over the last few days to match up to the new api however when ever I try to install it tells me the platform is not loaded.
I do still get the warning that home assistant is using the custom component warmup4ie
I've tried installing via the pip method and manually but have got the same result.
I just wanted to know if this is due to the changes within home assistant which I know you've been working on (appreciate you're busy and I'm not expecting an instant answer or resolution) or if I've screwed up the installation somehow?
Thanks

All works great with the updates.
Issue closed.


[Tokio Branch] hyper::server::request::Request::deconstruct() does not return Request.body

As per title.
You can get a tuple with (self.method, self.uri, self.version, self.headers) by calling request.deconstruct(), that consumes request.
Alternatively you can get just request body by using request.body() but that also consumes the request.
There is no way of getting both the deconstructed request items and the request body from a single request.

Hm, should it return Option<Body> or just Body? I'm actually a bit curious why both Some<Body::Empty> and None are options when constructing a request.
From the code it seems like it just treats None as Body::Empty anyways:
    #[inline]
    pub fn body(self) -> Body {
        self.body.unwrap_or_else(|| {
            trace!("Request::body empty");
            Body::empty()
        })
    }

My reasoning for using an Option<Body> internally is because 1) you cannot query a Body to see if it is empty, so therefore 2) you cannot know from just the Body whether you should pass a Message::WithBody(head, body) or Message::WithoutBody(head) to tokio. Maybe it makes sense to add a method to Body to check if it is empty. But I don't think that it being an Option<Body> needs to be made known to a user. Actually, considering that it is only needed for constructing the Message, and Request is constructed from a Message, not into one, the option can probably be removed from Request...

closed by https://github.com/hyperium/hyper/commit/f1785dc5700129db26889f55969e9f9b2e22ac7a