Feature/lp 190 partnership type

JIRA link
https://companieshouse.atlassian.net/browse/LP-190
Change description
which-type page
Work checklist

[x] Tests added where applicable
[ ] UI changes look good on mobile
[x] UI changes meet accessibility criteria

Merge instructions
We are committed to keeping commit history clean, consistent and linear.  A BREAKING CHANGE can be part of commits of any type,
types other than fix: and feat: are allowed, for example build:, chore:, ci:, docs:, style:, refactor:, perf:, test:, and others,
footers other than BREAKING CHANGE: <description> may be provided.

CI: No security warnings found

CI: No security warnings found

CI: No security warnings found


resolvelib, test: handle relative URLs on 503-style indices

This should fix #410 -- I don't have a third-party index with relative URLs to test against, but I've surmised the behavior based on that report (and following the PEP).
cc @fi0rini -- could you give these changes a try and let me know if they work for you?
Signed-off-by: William Woodruff<EMAIL_ADDRESS>

Yep, confirmed locally, with a fake index like this:
packages:
Flask-2.0.1-py3-none-any.whl

simple:
Flask

where simple/Flask:

Flask-2.0.1-py3-none-any.whl

this resulted in a correctly resolved GET.

Confirmed locally, so I'm going to merge. @f10rini let us know if you get a chance to test it on your end as well 🙂

Hey guys, sorry to report that the command is still failing for us.
Gonna post the pip-audit output followed by some tracing related to the relative URLs so that you can see the difference. Looks like our path join is off for whatever reason.
The debug logs below show it going from
https://custom-repo.com:443/api/pypi/pypi-all/simple/alabaster/
to
https://custom-repo.com:443/api/pypi/simple/alabaster/0.7.10/alabaster-0.7.10-py2.py3-none-any.whl
There's no pypi-all there anymore so it went up one too many levels?
DEBUG:pip_audit._cli:parsed arguments: Namespace(local=False, requirements=[<_io.TextIOWrapper name='/home/nick/test_requirements.txt' mode='r' encoding='UTF-8'>], project_path=None, format=<OutputFormatChoice.Json: 'json'>, vulnerability_service=<VulnerabilityServiceChoice.Pypi: 'pypi'>, dry_run=False, strict=False, desc=<VulnerabilityDescriptionChoice.Auto: 'auto'>, cache_dir=PosixPath('/cache'), progress_spinner=<ProgressSpinnerChoice.Off: 'off'>, timeout=15, paths=[], verbose=True, fix=False, require_hashes=False, index_url='https://custom-repo.com/api/pypi/pypi-all/simple', extra_index_urls=[], skip_editable=False, no_deps=False, output=<_io.TextIOWrapper name='/report/pip-audit.json' mode='w' encoding='UTF-8'>, ignore_vulns=[])
DEBUG:cachecontrol.controller:Looking up "https://custom-repo.com/api/pypi/pypi-all/simple/alabaster" in the cache
DEBUG:cachecontrol.controller:No cache entry available
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): custom-repo.com:443
DEBUG:urllib3.connectionpool:https://custom-repo.com:443 "GET /api/pypi/pypi-all/simple/alabaster HTTP/1.1" 302 0
DEBUG:cachecontrol.controller:Status code 302 not in (200, 203, 300, 301, 308)
DEBUG:cachecontrol.controller:Looking up "https://custom-repo.com:443/api/pypi/pypi-all/simple/alabaster/" in the cache
DEBUG:cachecontrol.controller:No cache entry available
DEBUG:urllib3.connectionpool:https://custom-repo.com:443 "GET /api/pypi/pypi-all/simple/alabaster/ HTTP/1.1" 200 None
DEBUG:cachecontrol.controller:Updating cache with response from "https://custom-repo.com:443/api/pypi/pypi-all/simple/alabaster/"
DEBUG:cachecontrol.controller:Looking up "https://custom-repo.com/api/pypi/simple/alabaster/0.7.10/alabaster-0.7.10-py2.py3-none-any.whl" in the cache
DEBUG:cachecontrol.controller:No cache entry available
DEBUG:urllib3.connectionpool:https://custom-repo.com:443 "GET /api/pypi/simple/alabaster/0.7.10/alabaster-0.7.10-py2.py3-none-any.whl HTTP/1.1" 404 None
DEBUG:cachecontrol.controller:Status code 404 not in (200, 203, 300, 301, 308)
Traceback (most recent call last):
  File "/home/pipaudit/.local/bin/pip-audit", line 8, in <module>
    sys.exit(audit())
  File "/home/pipaudit/.local/lib/python3.9/site-packages/pip_audit/_cli.py", line 434, in audit
    for (spec, vulns) in auditor.audit(source):
  File "/home/pipaudit/.local/lib/python3.9/site-packages/pip_audit/_audit.py", line 66, in audit
    for dep, vulns in self._service.query_all(specs):
  File "/home/pipaudit/.local/lib/python3.9/site-packages/pip_audit/_service/interface.py", line 155, in query_all
    for spec in specs:
  File "/home/pipaudit/.local/lib/python3.9/site-packages/pip_audit/_dependency_source/requirement.py", line 114, in collect
    for _, dep in self._collect_cached_deps(filename, reqs):
  File "/home/pipaudit/.local/lib/python3.9/site-packages/pip_audit/_dependency_source/requirement.py", line 326, in _collect_cached_deps
    for req, resolved_deps in self._resolver.resolve_all(iter(req_values)):
  File "/home/pipaudit/.local/lib/python3.9/site-packages/pip_audit/_dependency_source/interface.py", line 87, in resolve_all
    yield (req, self.resolve(req))
  File "/home/pipaudit/.local/lib/python3.9/site-packages/pip_audit/_dependency_source/resolvelib/resolvelib.py", line 75, in resolve
    result = self.resolver.resolve([req])
  File "/home/pipaudit/.local/lib/python3.9/site-packages/resolvelib/resolvers.py", line 521, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "/home/pipaudit/.local/lib/python3.9/site-packages/resolvelib/resolvers.py", line 402, in resolve
    failure_causes = self._attempt_to_pin_criterion(name)
  File "/home/pipaudit/.local/lib/python3.9/site-packages/resolvelib/resolvers.py", line 238, in _attempt_to_pin_criterion
    criteria = self._get_updated_criteria(candidate)
  File "/home/pipaudit/.local/lib/python3.9/site-packages/resolvelib/resolvers.py", line 228, in _get_updated_criteria
    for requirement in self._p.get_dependencies(candidate=candidate):
  File "/home/pipaudit/.local/lib/python3.9/site-packages/pip_audit/_dependency_source/resolvelib/pypi_provider.py", line 392, in get_dependencies
    return candidate.dependencies
  File "/home/pipaudit/.local/lib/python3.9/site-packages/pip_audit/_dependency_source/resolvelib/pypi_provider.py", line 121, in dependencies
    self._dependencies = list(self._get_dependencies())
  File "/home/pipaudit/.local/lib/python3.9/site-packages/pip_audit/_dependency_source/resolvelib/pypi_provider.py", line 103, in _get_dependencies
    deps: List[str] = self.metadata.get_all("Requires-Dist", [])
  File "/home/pipaudit/.local/lib/python3.9/site-packages/pip_audit/_dependency_source/resolvelib/pypi_provider.py", line 94, in metadata
    self._metadata = self._get_metadata_for_wheel()
  File "/home/pipaudit/.local/lib/python3.9/site-packages/pip_audit/_dependency_source/resolvelib/pypi_provider.py", line 132, in _get_metadata_for_wheel
    with ZipFile(BytesIO(data)) as z:
  File "/usr/local/lib/python3.9/zipfile.py", line 1266, in __init__
    self._RealGetContents()
  File "/usr/local/lib/python3.9/zipfile.py", line 1333, in _RealGetContents
    raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

# if I try keeping the pypi-all here and trying request
$ wget https://custom-repo.com:443/api/pypi/pypi-all/simple/alabaster/0.7.10/alabaster-0.7.10-py2.py3-none-any.whl
--2022-11-18 19:33:45--  https://custom-repo.com/api/pypi/pypi-all/simple/alabaster/0.7.10/alabaster-0.7.10-py2.py3-none-any.whl
Resolving custom-repo.com (custom-repo.com)...
Connecting to custom-repo.com (custom-repo.com)... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12847 (13K) [application/octet-stream]
Saving to: ‘alabaster-0.7.10-py2.py3-none-any.whl’

100%[===================================================================>] 12,847      --.-K/s   in 0s

2022-11-18 19:33:45 (61.8 MB/s) - ‘alabaster-0.7.10-py2.py3-none-any.whl’ saved [12847/12847]

# example for djang
$ curl -L  https://custom-repo.com/api/pypi/pypi-all/simple/django


Do not log remember_token on User model

When I do logout in my app, the remember_token column is changed. This add a new record in activity_log table.
My User Model:
class User extends Authenticatable
{
    use HasDefender, LogsActivity;

    protected static $logAttributes = ['name', 'email'];

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'name', 'email'
    ];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'password', 'remember_token',
    ];

}

protected static $ignoreChangedAttributes = ['remember_token'];

@wartent provided the correct answer. Here's the documentation on that feature.

I added this configuration in my User model, but is not working.
class User extends Authenticatable
{

    use Notifiable, SoftDeletes, LogsActivity;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'name', 'email', 'password',
    ];

    protected $dates = ['deleted_at'];

    protected static $logAttributes = [
        'client_id', 'name', 'email', 'password', 'is_active'
    ];

    protected static $ignoreChangedAttributes = ['remember_token'];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'password', 'remember_token',
    ];

}

I have the same problem:
`class User extends Authenticatable
{
use
BelongsToEditors,
Comparable,
Nullable,
IsRelatedWith,
LogsActivity,
CausesActivity {
CausesActivity::activity insteadof LogsActivity;
CausesActivity::activity as causesActivity;
}
public $table = 'base_users';

protected $nullable = [ 'name' ];

protected $fillable = [
	'login',
	'password',
	'email',
	'name',
	'is_subscribed',
	'is_blocked',
	'is_admin'
];

protected $hidden = [
	'password',
	'remember_token',
];

protected $casts = [
	'is_subscribed' => 'boolean',
	'is_blocked'    => true,
	'is_admin'      => false
];

protected static $ignoreChangedAttributes = [
	'login',
	'password',
	'email',
	'name',
	'is_subscribed',
	'is_blocked',
	'is_admin',
	'remember_token',
	'updated_at',
	'created_at'
];

}`


placeholder of md-input has no enough space for some language charactors

Bug, feature request, or proposal:
bug
What is the expected behavior?

What is the current behavior?
Placeholder charactors is partially hidden.

Space between label and input is too close.

What are the steps to reproduce?
http://plnkr.co/edit/P6gPry6h457PiRv50FPB?p=preview
What is the use-case or motivation for changing an existing behavior?
To be compatible with non-English users
Which versions of Angular, Material, OS, browsers are affected?
Angular v2.4.7, Material v2.0.0-beta.2, ubuntu 16.10, chrome/firefox
Is there anything else we should know?

@e-cloud the plunker you provided seems to be behaving correctly (screenshots are ubuntu & chrome 56, but also looked fine in firefox):

@mmalerba Thank you.
I test the look in other system. They look fine. That's the weird thing.
And I dig a little bit more, and add extra fields for comparison.
It seems it caused by the system default sans-serif font. In my ubuntu my default is Noto Sans CJK SC Regular.

But I'm not 100% sure about this. Of course, this might off-topic.

Ah, so I can replicate on my system by explicitly setting just the <label> element to font-family: Noto Sans CJK SC Regular. Could you see if this plunker fixes your issue? I've added font-family: inherit to the <label> element. http://plnkr.co/edit/8vrFfML2qLH2r1IKXaru?p=preview

@mmalerba do you mean your plunkr works fine? It's still the same under my ubuntu chrome and firefox.
And I also test it under another computer(my colleague's), which has ubuntu and the same default sans-serif font. The result is, the problem still exists.
I think this might not be the scope of issue you should handle. Let me know and i will find some other ways to fix it. :)

Yeah it seems like probably outside the scope of material. Just wanted to check if it was something we could fix easily from our side.


authentication problems

I used to have two clusters, one with "security" enabled and a much older one that was set up before xpack was available to non paying customers without.   On Monday I finally bit the proverbial bullet and enabled security and TLS on the older clusters.  I now have most of the services working, but not cerebro :(
I cloned the cerebro account set up (user and password) to the newly secured cluster and inserted them in the config file:
Users connect to cerebro through an authenticated reverse proxy so there is no user authentication at this point
hosts = [
  { #newly secured cluster
    host = "https://es1.insec.auckland.ac.nz:9200"
    name = "security"
    headers-whitelist = [ "x-proxy-user", "x-proxy-roles", "X-Forwarded-For" ]
    auth = {
      username = "cerebro"
      password = "***********"
    }
  },
  { # this config has been working for months
    host = "https://secmonprd08.its.auckland.ac.nz:9200"
    name = "Test Cluster"
    auth = {
      username = "cerebro"
      password = "***********"
    }
    headers-whitelist = [ "x-proxy-user", "x-proxy-roles", "X-Forwarded-For" ]
  }
]

the original system still works fine but the security cluster now prompts for credentials.
What have I stuffed up?

After a lot of stuffing around search and checking everything I could think of I resorted to tracking the code with the ruby debugger and finding the verify code:
(rdb:1) l 111
[106, 115] in /var/lib/gems/2.7.0/gems/elasticsearch-8.3.0/lib/elasticsearch.rb
   106        warn(VALIDATION_WARNING)
   107        raise e
   108      end
   109
   110      def verify_with_version_or_header(version, headers)
=> 111        if version.nil? ||
   112           Gem::Version.new(version) < Gem::Version.new('8.0.0.pre') && version != '8.0.0-SNAPSHOT' ||
   113           headers['x-elastic-product'] != 'Elasticsearch'
   114
   115          raise Elasticsearch::UnsupportedProductError
(rdb:1) p version
"7.17.1"
(rdb:1) p Gem::Version.new(version)
#<Gem::Version "7.17.1">
(rdb:1) p headers['x-elastic-product']
"Elasticsearch"

we conclude that there is an issue with the gem version!
sensors@secmgrprd04:~$ gem info elasticsearch

*** LOCAL GEMS ***

elasticsearch (8.3.0)
    Author: Karel Minarik
    Homepage:
    https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/curren
    t/index.html
    License: Apache-2.0
    Installed at: /var/lib/gems/2.7.0

    Ruby integrations for Elasticsearch

Ah!  silly me I just followed the instructions and ran gem install elasticsearch and, of course it installed the most recent version.
So
sudo gem install elasticsearch -v 7.17.1
and don't forget as I did to also uninstall the original!
`sudo gem uninstall elasticsearch -v 8.3.0'
and everything works as expected!
It would be really helpful to have a more informative error message!  One should not have to delve into the guts of the api code to diagnose a simple problem!   I spent half a day trying to work out what was going on.

Finally figured out what the issue was -- bad password in the config file.


RISCV: Refactor inline ASM in favor of macro functions

This PR refactors the code to use macro functions from csr.h instead of repeating inline ASM, which results in cleaner and more maintainable code.

No impact on the existing logic of the code

The two csr_write_immediate() new instances are fine,
but the corresponding inline asm statements were not removed.
Please fix.

In fact, you don't need csr_write_immediate() at all.
Just use plain csr_write() with immediate arguments.
The inline asm constraint already accepts immediate values and the
assembler is smart enough to turn a csrw into a csrwi as appropriate.

Hi @manoj153, are you working on applying changes suggested by @npitre?

Changes were trivial so I just pushed them here.

This is not a proper commit message. Please split the content from the subject.

I have updated it. Can you confirm whether the current commit message is satisfactory?


KeyError

Hello, I have question about the error.
The following problem occurs when doing sequential example, the example included in this repo.

When iteration number over the 20, This kind of error come out (KeyError:2 or KeyError: 0)
Can you check example please?

This is a picture of the config.json file used above.
Is it correct to set the parallel option to 'True' when batches and Sampling_strategies are each 1?

Hello Choihojun
I just ran optimize_branin.py with your config file (replacing True with true) and it completes 30 iterations without a problem.
Did you install phoenics in a clean virtual environment?
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip install .
Alberto

Thanks for reply!!
I follow this link  ( https://pypi.org/project/phoenics/ )
My virtual environment was made by anaconda
Also I already did the command that you mention above
When I changed parallel = False, I succeed 150 iteration at once. But It took long time to finish.

Parallel must be set to True to speed-up the optimization of the acquisition function via multi-processing. You disabled that option and that is why it takes so long.
I can run the job with your config file and parallel = true, so I guess there must be something else that is causing the error. But with no additional information I cannot help.
Alberto

Can you tell me the list that what you want to know??
I want to solve it and also give you the additional information. But above comments shows everything...
Can you try 150 iteration for me and tell me your result??


Custom PIXI renderer not drawing on Macbook Safari

Expected Behavior
Data in PIXI.glCore.VertexArrayObject should draw on Macbook Safari.
Current Behavior
Macbook Safari does not draw. iPad Safari DOES draw. Chrome, Firefox and Edge all render correctly.
Possible Solution
Steps to Reproduce
Open the below fiddle with Macbook Safari. Notice how a green "X" does not appear. Do the same with iPad Safari. Notice how a green "X" appears.
Environment
Macbook Pro. Safari (12.0)

pixi.js version: 4.8.2
Browser: Safari 12.0
Device: Desktop

Cross posted over on HTML5 Game Devs: http://www.html5gamedevs.com/topic/40565-custom-pixi-renderer-not-drawing-on-macbook-safari
Howdy all!
I wrote a custom renderer plugin for PIXI to draw Glyph data generated from OpenType.js. I am using PIXI.glCore.VertexArrayObject to manage the index buffers and vertex buffers for the data. On every browser, this works fine with the exception of Macbook Safari. iPad Safari works, but Macbook Safari does not draw anything. No errors in the console. Simply nothing draws. The browser and hardware does have support for native VAO. Here is a simplified example:
https://jsfiddle.net/pyfdbz5v/
A green "X" should draw. On Edge, Chrome and Firefox this works fine. But if you try the fiddle using Safari on a Macbook (I am using Safari 12.0), nothing draws. No errors are logged. No WebGL errors were logged (using this: https://github.com/KhronosGroup/WebGLDeveloperTools). To further cloud the problem, if you try the fiddle using Safari on an iPad...The green "X" appears as expected.
I am having a hard time tracking down if this is a Macbook Safari bug or a weird bug in PIXI. Can anyone help me identify the cause for this odd behavior?
Reproduction Fiddle: https://jsfiddle.net/pyfdbz5v/
Here is a working Fiddle on Macbook Safari. This Fiddle uses raw WebGL and is outside of PIXI: https://jsfiddle.net/9x1gzkva/4/
EDIT: It should be noted that if I re-write the demo to use raw WebGL outside of PIXI and PIXI.glCore, then Macbook Safari does render as expected. (Fiddle coming shortly) So that adds evidence that the problem is somewhere in the PIXI code...but where? 😂

I found the problem. It was in my vertex shader code:
varying vec2 vTextureCoord;
attribute vec2 aTextureCoord;
...main:
vTextureCoord = aTextureCoord;
I am not using textures in this renderer, and I am not passing an attribute 'aTextureCoord'. The fragment shader only has a uniform for the color, so it wasn't using the varying. Every other browser happily assigns an undefined value to vTextureCoord, but for Macbook Safari, it silently fails...Leading to many hours of frustration 😂. The fact iPad Safari worked but Macbook Safari did not further made this confusing as all hell.
Not a PIXI issue, so going to close.


Exclude db/schema.rb from linting

This is fine, but at the same time, we didn't actually want to include db/schema.rb, so this shouldn't be necessary anywhere currently after all... well, it's fine.


.travis: load our AWS credentials from a file, not from environment variables

Previously Travis loaded AWS credentials from the environment, whereas we use the ~/.aws directory for all local operations. This brings Travis into line with local workflows, so we can simplify some of the docker run workflows in a separate PR.

Travis is sad because" botocore.exceptions.NoCredentialsError: Unable to locate credentials

Ah, it wants AWS credentials to use during tests. I think that's fixable (and really we probably shouldn't be using real credentials in tests!).


MVXNet fusion not work (iamge features can not use)

Help!
When I input diffrent images with same point data from KITTI on MVXNet,The results has no change.
I have tried to find some reason:
Is there are some coding error on MVXnet config ?
in MVXnet config , I can't see any config about image or fusion.
or
In  class MVXTwoStageDetector,
the function simple_test can;t use image feats because the property  with_img_bbox is always fales?
Why?so, what the meaning of image features ?
looking forward your response
This is MVXNet config
_base_ = ['../_base_/schedules/cosine.py', '../_base_/default_runtime.py']

# model settings
voxel_size = [0.05, 0.05, 0.1]
point_cloud_range = [0, -40, -3, 70.4, 40, 1]

model = dict(
    type='DynamicMVXFasterRCNN',
    img_backbone=dict(
        type='ResNet',
        depth=50,
        num_stages=4,
        out_indices=(0, 1, 2, 3),
        frozen_stages=1,
        norm_cfg=dict(type='BN', requires_grad=False),
        norm_eval=True,
        style='caffe'),
    img_neck=dict(
        type='FPN',
        in_channels=[256, 512, 1024, 2048],
        out_channels=256,
        num_outs=5),
    pts_voxel_layer=dict(
        max_num_points=-1,
        point_cloud_range=point_cloud_range,
        voxel_size=voxel_size,
        max_voxels=(-1, -1),
    ),
    pts_voxel_encoder=dict(
        type='DynamicVFE',
        in_channels=4,
        feat_channels=[64, 64],
        with_distance=False,
        voxel_size=voxel_size,
        with_cluster_center=True,
        with_voxel_center=True,
        point_cloud_range=point_cloud_range,
        fusion_layer=dict(
            type='PointFusion',
            img_channels=256,
            pts_channels=64,
            mid_channels=128,
            out_channels=128,
            img_levels=[0, 1, 2, 3, 4],
            align_corners=False,
            activate_out=True,
            fuse_out=False)),
    pts_middle_encoder=dict(
        type='SparseEncoder',
        in_channels=128,
        sparse_shape=[41, 1600, 1408],
        order=('conv', 'norm', 'act')),
    pts_backbone=dict(
        type='SECOND',
        in_channels=256,
        layer_nums=[5, 5],
        layer_strides=[1, 2],
        out_channels=[128, 256]),
    pts_neck=dict(
        type='SECONDFPN',
        in_channels=[128, 256],
        upsample_strides=[1, 2],
        out_channels=[256, 256]),
    pts_bbox_head=dict(
        type='Anchor3DHead',
        num_classes=3,
        in_channels=512,
        feat_channels=512,
        use_direction_classifier=True,
        anchor_generator=dict(
            type='Anchor3DRangeGenerator',
            ranges=[
                [0, -40.0, -0.6, 70.4, 40.0, -0.6],
                [0, -40.0, -0.6, 70.4, 40.0, -0.6],
                [0, -40.0, -1.78, 70.4, 40.0, -1.78],
            ],
            sizes=[[0.6, 0.8, 1.73], [0.6, 1.76, 1.73], [1.6, 3.9, 1.56]],
            rotations=[0, 1.57],
            reshape_out=False),
        assigner_per_size=True,
        diff_rad_by_sin=True,
        assign_per_class=True,
        bbox_coder=dict(type='DeltaXYZWLHRBBoxCoder'),
        loss_cls=dict(
            type='FocalLoss',
            use_sigmoid=True,
            gamma=2.0,
            alpha=0.25,
            loss_weight=1.0),
        loss_bbox=dict(type='SmoothL1Loss', beta=1.0 / 9.0, loss_weight=2.0),
        loss_dir=dict(
            type='CrossEntropyLoss', use_sigmoid=False, loss_weight=0.2)),
    # model training and testing settings
    train_cfg=dict(
        pts=dict(
            assigner=[
                dict(  # for Pedestrian
                    type='MaxIoUAssigner',
                    iou_calculator=dict(type='BboxOverlapsNearest3D'),
                    pos_iou_thr=0.35,
                    neg_iou_thr=0.2,
                    min_pos_iou=0.2,
                    ignore_iof_thr=-1),
                dict(  # for Cyclist
                    type='MaxIoUAssigner',
                    iou_calculator=dict(type='BboxOverlapsNearest3D'),
                    pos_iou_thr=0.35,
                    neg_iou_thr=0.2,
                    min_pos_iou=0.2,
                    ignore_iof_thr=-1),
                dict(  # for Car
                    type='MaxIoUAssigner',
                    iou_calculator=dict(type='BboxOverlapsNearest3D'),
                    pos_iou_thr=0.6,
                    neg_iou_thr=0.45,
                    min_pos_iou=0.45,
                    ignore_iof_thr=-1),
            ],
            allowed_border=0,
            pos_weight=-1,
            debug=False)),
    test_cfg=dict(
        pts=dict(
            use_rotate_nms=True,
            nms_across_levels=False,
            nms_thr=0.01,
            score_thr=0.1,
            min_bbox_size=0,
            nms_pre=100,
            max_num=50)))

as you can see ,There is no config for images .Comapre to imvotenet's Config:
     pts=dict(
            vote_module_cfg=dict(
                in_channels=256,
                vote_per_seed=1,
                gt_per_seed=3,
                conv_channels=(256, 256),
                conv_cfg=dict(type='Conv1d'),
                norm_cfg=dict(type='BN1d'),
                norm_feats=True,
                vote_loss=dict(
                    type='ChamferDistance',
                    mode='l1',
                    reduction='none',
                    loss_dst_weight=10.0)),
            vote_aggregation_cfg=dict(
                type='PointSAModule',
                num_point=256,
                radius=0.3,
                num_sample=16,
                mlp_channels=[256, 128, 128, 128],
                use_xyz=True,
                normalize_xyz=True)),
        img=dict(
            vote_module_cfg=dict(
                in_channels=256,
                vote_per_seed=1,
                gt_per_seed=3,
                conv_channels=(256, 256),
                conv_cfg=dict(type='Conv1d'),
                norm_cfg=dict(type='BN1d'),
                norm_feats=True,
                vote_loss=dict(
                    type='ChamferDistance',
                    mode='l1',
                    reduction='none',
                    loss_dst_weight=10.0)),
            vote_aggregation_cfg=dict(
                type='PointSAModule',
                num_point=256,
                radius=0.3,
                num_sample=16,
                mlp_channels=[256, 128, 128, 128],
                use_xyz=True,
                normalize_xyz=True)),
        loss_weights=[0.4, 0.3, 0.3]),
    img_mlp=dict(
        in_channel=18,
        conv_channels=(256, 256),
        conv_cfg=dict(type='Conv1d'),
        norm_cfg=dict(type='BN1d'),
        act_cfg=dict(type='ReLU')),
    fusion_layer=dict(
        type='VoteFusion',
        num_classes=len(class_names),
        max_imvote_per_pixel=3),

if with_img_bbox is true, it means model will output the detection results from image branch. However, MVXNet is not a model which fuses the detection results directly from point cloud branch and image branch (post-process), it uses image feature for fusing the image feature and point future during voxelization. You can see the details in https://github.com/open-mmlab/mmdetection3d/blob/86cc487cca2eb332ad4e6adf2fff8c879ffc2115/mmdet3d/models/detectors/mvx_faster_rcnn.py#L49

Thank you for your reply.
However, I also have a problem.
When I input diffrent images with same point data from KITTI on MVXNet,the results has no change.
I have checked the code, the feature from image have chagned,but the result have no change.
How can I get the right results?
(the original results)

(I have chagned the images to this , but have no effect on the result)

emmm ....  Maybe it's not my problem.
There is no need to modify the code, you can easily reproduce my bug by replacing the pictures in the demo with pictures of the same size.

python demo/multi_modality_demo.py demo/data/kitti/kitti_000008.bin demo/data/kitti/kitti_000008.png demo/data/kitti/kitti_000008_infos.pkl configs/mvxnet/dv_mvx-fpn_second_secfpn_adamw_2x8_80e_kitti-3d-3class.py checkpoints/dv_mvx-fpn_second_secfpn_adamw_2x8_80e_kitti-3d-3class_20200621_003904-10140f2d.pth

just replace kitti_000008.png with 'kitti_000009.png' or other pictures
https://github.com/open-mmlab/mmdetection3d/blob/master/docs/zh_cn/demo.md
I look forward to your help

We will reproduce the problem ASAP.

yes i encountered the same problem i think the model does not rely on the image feature heavily .

Sorry, I don't quite understand what you mean. Is this a problem or a feature of the model?
---Original---
From: "Khaled Mohmed @.>
Date: Thu, Feb 24, 2022 16:11 PM
To: @.>;
Cc<EMAIL_ADDRESS>Subject: Re: [open-mmlab/mmdetection3d] MVXNet fusion not work (iamge featurescan not use) (Issue #1243)
yes i encountered the same problem i think the model does not rely on the image feature heavily .
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: @.***>

@853108389 I think it is a problem .

We will reproduce the problem ASAP.
Thank you for the fusion model you provided. I hope you can notify me here after you fix this bug

Hello, I would like to ask how you got the kitti_000008_infos.pkl file when you run demo.py of mvx-net
Although I know that it is generated based on the annotation information, the official does not seem to give the specific format of this pkl file, or other conversion script etc.
if possible, could you please send me a copy of the pkl file you generated for me , I would be very grateful, this is my qq email<EMAIL_ADDRESS> Thank you very much

Hello, I would like to ask how you got the kitti_000008_infos.pkl file when you run demo.py of mvx-net
Although I know that it is generated based on the annotation information, the official does not seem to give the specific format of this pkl file, or other conversion script etc.
if possible, could you please send me a copy of the pkl file you generated for me , I would be very grateful, this is my qq email<EMAIL_ADDRESS>Thank you very much

@Chenfanqing , follow this doc to convert kitti to pkl: https://github.com/open-mmlab/mmdetection3d/blob/master/docs/en/datasets/kitti_det.md

I know it is quite late, but one way to prove this problem
is to multiply the input image by zero after it is read by the code and convered to numpy_array
x1 = np.array(input_lidar_points)  # shape -1, 4
x2 = np.array(input_pixels_image)  # shape -1, 3
--> I suggest doing the following
x2 = x2 * 0
this way the input image is an array of zeros
and do another experiment with lidar points array as zeros
x1 = x1 * 0
I think this will clear out this issue

@Tai-Wang, @VVsssssk, anyway is this issue solved?


Crash: After update chatterino can't start

I did the update and now Chatterino can't start anymore.

After a short google I found that the "GetDpiForWindow" is a Windows 10 thing so Chatterino just became incompatible with my OS. See https://msdn.microsoft.com/en-us/library/windows/desktop/mt748624(v=vs.85).aspx?f=255&MSPPError=-2147217396

Got fixed with version 2.0.4 by @fourtf in 7b5972f
If you had the broken version, -> Uninstall, download the new installer and reinstall.


Fix more JNI wrapper compiler warnings

Jenkins Linux amd64 Build #12333 [push] Fix more JNI wrapper com... started at 15:51

Jenkins Linux ppc64le Build #11339 [push] Fix more JNI wrapper com... started at 16:58

Jenkins Linux s390x Build #12346 [push] Fix more JNI wrapper com... started at 16:51

Jenkins Linux amd64 Build #12333 [push] Fix more JNI wrapper com... failed after 1 hr 3 min

Jenkins Linux s390x Build #12346 [push] Fix more JNI wrapper com... passed after 1 hr 36 min

Jenkins Linux ppc64le Build #11339 [push] Fix more JNI wrapper com... passed after 1 hr 50 min


[BUG] [EKS] Unable to re-import a deleted cluster

Rancher Server Setup

Rancher version: 2.10.0-alpha6
Installation option (Docker install/Helm Chart):

If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc): K3s

Proxy/Cert Details:

Information about the Cluster

Kubernetes version: 1.30
Cluster Type (Local/Downstream):

If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider): Hosted provider EKS

User Information

What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom)

If custom, define the set of permissions:
Admin

Describe the bug

Re-importing a deleted cluster returns the following error -
Failed to communicate with cluster: error creating service account: serviceaccounts "kontainer-engine" is forbidden: unable to create new content in namespace cattle-system because it is being terminated

To Reproduce

Import a cluster and delete it
Wait for 5-7 min
Re-import the cluster

Result
Unable to re-import the cluster. Seeing this error -
Failed to communicate with cluster: error creating service account: serviceaccounts "kontainer-engine" is forbidden: unable to create new content in namespace cattle-system because it is being terminated

Expected Result

The cluster should be re-imported without any error.
Screenshots

Additional context

It seems cattle-system namespace remains in Terminating state on downstream cluster after it is deleted in Step 1
> kubectl get ns
NAME                      STATUS        AGE
cattle-system             Terminating   25m
cattle-ui-plugin-system   Active        24m
default                   Active        37m
gke-managed-cim           Active        36m
gke-managed-system        Active        36m
gmp-public                Active        36m
gmp-system                Active        36m
kube-node-lease           Active        37m
kube-public               Active        37m
kube-system               Active        37m
local                     Active        24m

> kubectl get all -n cattle-system
NAME                                   READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/cattle-cluster-agent   0/1     0            0           25m

> kubectl describe ns cattle-system
Name:         cattle-system
Labels:       kubernetes.io/metadata.name=cattle-system
Annotations:  management.cattle.io/no-default-sa-token: true
Status:       Terminating
Conditions:
  Type                                         Status  LastTransitionTime               Reason                Message
  ----                                         ------  ------------------               ------                -------
  NamespaceDeletionDiscoveryFailure            False   Mon, 04 Nov 2024 16:28:44 +0530  ResourcesDiscovered   All resources successfully discovered
  NamespaceDeletionGroupVersionParsingFailure  False   Mon, 04 Nov 2024 16:28:44 +0530  ParsedGroupVersions   All legacy kube types successfully parsed
  NamespaceDeletionContentFailure              False   Mon, 04 Nov 2024 16:28:45 +0530  ContentDeleted        All content successfully deleted, may be waiting on finalization
  NamespaceContentRemaining                    True    Mon, 04 Nov 2024 16:28:44 +0530  SomeResourcesRemain   Some resources are remaining: deployments.apps has 1 resource instances
  NamespaceFinalizersRemaining                 True    Mon, 04 Nov 2024 16:28:44 +0530  SomeFinalizersRemain  Some content in the namespace has finalizers remaining: wrangler.cattle.io/legacy-k3sBasedUpgrader-deprecation in 1 resource instances

Per investigations completed by @cpinjani @yiannistri the namespace deletion is blocked by wrangler.cattle.io/legacy-k3sBasedUpgrader-deprecation finalizer which I guess was added as part of https://github.com/rancher/rancher/issues/42448.
@jiaqiluo , please take a look into it with priority.

The issue is reproduced on a Rancher 2.10.0-alpha6 Docker installation setup.
Causes
In the downstream cluster, the systemChart handler runs within the cattle-cluster-agent, adding the wrangler.cattle.io/legacy-k3sBasedUpgrader-deprecation finalizer to all Deployments in all namespaces. When an imported cluster is removed from Rancher, Rancher triggers a cleanup job on the downstream cluster to delete all Rancher-related resources. However, due to this finalizer, Deployments in the cattle-system namespace, as well as the namespace itself, become stuck in the removal process. This occurs even though the cleanup job reports success because it successfully initiates the namespace deletion.
Fixes
The cleanup job should remove the finalizer from all Deployments across all namespaces before proceeding with the deletion of those namespaces.

this issue can be validated on the latest head image

Fixed on v2.10-66ce2f133c38379570f59276799bebc222d9ef2d-head.
It works as expected for all the 3 hosted providers EKS, GKE, and AKS.

Shouldn't all Rancher related namespaces be deleted? I still see cattle-ui-plugin-system after the imported cluster is deleted.

Shouldn't all Rancher related namespaces be deleted? I still see cattle-ui-plugin-system after the imported cluster is deleted.

There is separate issue for it https://github.com/rancher/rancher/issues/47883


Hii, I wanted to added code for operations on Binary search tree.

Is your feature request related to a problem? Please describe.
I wanted to add code for BST - insertion, deletion, traversal, mirror images, height etc.
Describe the solution you'd like
I will add code for this problem statement. The code is completely written by me.
Describe alternatives you've considered
I will add comment for understanding.
Additional context
Add any other context or screenshots about the feature request here.

I would like to work on it. Please assign me.

@shinchancode you can add those codes, but make sure that those programs do not already exist.

I would like to work on it. Please assign me.

I would like to work on it. Please assign me.

This issue has been closed, you can either create a new issue or find another existing one.
@shubhamSM1298


Why does reset() exist for DeflateDecoder but no GzDecoder?

It's not a huge deal, but GzDecoder::new() has a heap allocation and if you're decompressing disjoint chunks from many readers, not being able to simply reset an existing decoder is a bit depressing, especially given that it's possible for DeflateDecoder. Wonder if it would make sense to add GzDecoder::reset(reader) method?

Also looking for this feature, am reading from a gzip compressed websocket and would really like to avoid the header heap allocation for each message.

Not what you asked for, but does https://github.com/rust-lang/flate2-rs/pull/323 fix this for you? It rewrites the gzip header parsing so that it does not allocate unless optional fields (extras, filename, comment, crc) are present.


Load css in the Scene

Hi, how can I do to load only once the css to the General Scene (AbstractJavaFxApplicationSupport) ?, instead of declaring it in all my views @FXMLView (css = {"..."}). Since my intention is that all views use the same css. Thank you so much :)

Thanks for your comment.
As far as I understand you want to set one css for all scenes globally. Since this is not supported from JavaFX itself I'm not sure yet, if this is the "JavaFX-way" to go - I need to think about it.
But you should be able to add your "global css" to all your views via the FXMLView-annotation (or with SceneBuilder directly).
Do you think of a global property (in the application.yaml) setting a css?

Of course, my intention is to be able to declare a css file that is recognized by all views (.fxml). For example, before using this framework I made it with this method when declaring the scene:
Scene scene = new Scene(parent);
scene.getStylesheets().add(Main.class.getResource("/css/roboto.css").toExternalForm());
scene.getStylesheets().add(Main.class.getResource("/css/style.css").toExternalForm());

And all views automatically recognize the .css without the need to explicitly declare it in all views. It would be interesting to be able to configure that property from the application.yml, would be very flexible and easy to maintain.

O.k. I'll take care of that.

Done with 1.3.19
Added a global javafx.css property. Be aware that the path is absolute to the classpath. To avoid ambiguity it needs to have a trailing slash: When global.css is under /src/main/resources/ in the maven project it will be:
javafx.css=/global.css
for the compiled and packaged app. (Will add more styling examples in the docu).

Done with 1.3.19


Add cast check in ExpressionTransformer

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Before castTransformer,  add validate  canCast, if false throw exceptions

it‘s will check in analyze.


Fix formatting bug in check node

Purpose

Fix formatting bug in check node in following scenario

json[] | error ItemArr = trap <json[]>Items;
foreach var item in check ItemArr {
     //some code goes inside here
}

Fixes #20780
Check List

[x] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Codecov Report

Merging #20882 into ballerina-1.1.x will not change coverage.
The diff coverage is n/a.

@@               Coverage Diff                @@
##           ballerina-1.1.x   #20882   +/-   ##
================================================
  Coverage            15.21%   15.21%
================================================
  Files                   50       50
  Lines                 1341     1341
  Branches               208      208
================================================
  Hits                   204      204
  Misses                1121     1121
  Partials                16       16

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 a24da47...cb1a238. Read the comment docs.


About packaging a release

What is the request?

I was wondering if it would be possible for you to package a release for easier installation.
Why is it useful?

This would be very helpful for users like me who would like to use Yasb without having to go through the process of setting it up manually.

And with launhing named yasb process by default instead of compiled cpp-code with launching python interpretator (my temp solution).


How about removing the folder PortableGit?

Since the folder contains tens of large files that resulted it cost too much time to clone the repo, consider about it, thanks 😄

the same to #59 so I close this one


Remove version: WinSCP.WinSCP.RC version 5.18.5-

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

Close with reason: Package still available.;


Please add few very useful features

Hi!  I found almost the same package with few very important features. What do you think about adding the same features to this package?
More info: https://github.com/mathec-x/express-file-based/issues?q=is%3Aissue+is%3Aclosed

It would be the best variant. I was also surprised that the author of the alternative package didn't even try to contribute to this one.

@mathec-x Would you please stop releasing the same package over and over again? https://github.com/mathec-x/express-next-api This is literally an 80% clone of this repo again.

@matthiaaas maybe @mathec-x don't know what fork is?

He does, I mean he opened a PR I merged recently.

Yea, I saw that, but I mean if someone wants to develop oss project based on another one in own repo, he can just fork it. And it will be right way to do that.

Btw, seems you can now close several issues with that PR, right?

Just because it's open source doesn't mean you can do whatever you want with the codebase.
Often there's a license you need to follow. Otherwise you should ask for permission directly.
And also, a soft rule to open source is to respect ownership and appreciate other's work by not just cloning a repo and distribute it with minimal changes on your own.


API Spec for Microsoft.UI.ThemeSettings class

This PR adds the proposed spec for the Microsoft.UI.ThemeSettings class.

This should have a few other things:

App theme currently used
App theme to override (if this is the default, app theme should return the default theme)
Default theme selected in Settings to be used in apps
Theme selected for the Windows shell in Settings (aka system theme, not very essential).
Whether the option to apply accent colour on the title bar is on or off.
Whether the option to apply accent on the taskbar is on or off (not very essential).

The app theme override property should probably persist automatically and be applied by the framework transparently. Maybe the class should implement INotifyPropertyChanged or be a DependencyObject to easily bind that to a XAML settings page.

/azp run


Converting to ESModule and Converting webpack to CommonJS

Hey @Tes-program, sorry reviewing the PR so late, I only get to work on it early mornings of Monday to Friday.
So, I have had time to review it, and it looks absolutely good, thank you so much.
I had a minor notice that the flag --experimental-modules wasn't necessarily needed for the project to build/work.
But overall, you saved me hours of debugging and research. I truly appreciate mate.


Support python 3.11

What
Support python 3.11.
Note: Will change the .python-version and .tool-versions files after integration tests pass on this branch
Testing
Ran
 $ poetry env use 3.11.2
$ poetry run pytest truss/tests -m 'integration'

@squidarth I think we also need to release new base images based on all the supported python versions. That requires that you updated this way of infering the python version from the environment as well: https://github.com/basetenlabs/truss/blob/c182964a7a7f9a82ba986091df1e09c2a3c32fde/truss/model_inference.py#L76


customizable colored boxes

@Benno2000 What is the plan for this PR?

Overall, I like the way to define custom boxes and also use counters. But currently it is not possible for me to define boxes before \begin{document}, which would be helpful to define custom boxes e.g. in the lecture.tex file that is included before \begin{document}.

What kind of error do you get? there should be no problem writing something like
\MakeNewBox{hello}{green} into the preamble.
Just make sure it happens after the uulm beamer theme is loaded.

You are correct, i missed this (although this would not have posed any problems it certainly is irritating!)
I have added the missing closing brace.

Perfect, thanks!
So we can merge this PR now? (What do you think @tthuem?)


added Verlet integration

This is to add verlet integration
I have done:

[x] updated TheAlgorithms.jl file
[x] added the code file
[x] added tests in test/math.jl
[x] ]test shows all test passed.

I will close the other PR because of the mess and add each file properly in seperate PRs

@ReneganRonin Thanks, because of no guidelines and my delay to review PRs, I think things are a bit messy.
We should merge this PR and solve the coverage later! Thanks.

Thanks to @ReneganRonin this PR seems good now :smile:


difference in Delta dot Ad g

I have found a difference between the code and the documentation in the pdf..; Investigate with Frédéric

solved


AT-1.4: System administrator create organization's employee's accounts

Test Case ID: AT-1.4
User Story: ALTA-1.4 (#33)
As a system administrator, I want to be able to create my client’s employee’s user account so that I can grant their employee access to ALTA.
Acceptance Criteria
Given that the user is logged in as a system administrator and is viewing the Manage Organizations page,

The user is able to select an organization by clicking on its respective row in the presented table.

The user selects the Employees side menu option.

The user is presented with a table displaying the affiliated employee user accounts and a Create button.

The user selects the Create button to display an empty form for the user to input the new user’s information.

Once the form is complete, the user submits the data by clicking the Save button. The user is then redirected back to the table to validate the creation of the user.

Accepted - but in the table displaying an organization's employee's, display the user's role
Also Add Employee's location to map audit assignment (Specially for Stock keepers)


Refactored RPC handling

Changes made:

enhanced float point precision, variable naming, annotation, function name

Sorry but this PR improves nothing either.

Adding type str to message in init of RPCRequestError is a minor thing and worth it, sure, but does it need a PR? No.
You rewrote the truncate_float function to be more readable, but it is less performant. There isn't really much difference and readability is not a big concern for functions defined with SDK for SDK users, they just have to use it.
There is absolutely not reason to modify lamport_to_sol function to change the value using division. In fact, division is slightly less performant than multiplication
Why would you remove string input option from verify_signature function and only allow bytes for message? Most beginners are familiar with entering a string for message, a public key and signature to get the result. We can convert it to bytes for them, like it was being done right now. Why remove?

Please make meaningful pull requests. Most of your pull requests have been closed due to providing non-essential value and sometimes instead making the code worse. This is not how you contribute to open source.


automatic encoder fails with fields with names like a-b

It seems like when I have a case class with similarly named fields, I can get encoders which don't work correctly:
 import io.circe._, io.circe.generic.semiauto._                                                  | package healthyswitchy
 import io.circe.syntax._                                                                        |
                                                                                | import io.circe._
 case class Foo(a: Int, b: Int, `a-c`: Int)                                                      | import io.circe.generic.extras._
                                                                                |
 object TestCirce extends scala.App {                                                            | sealed trait UpDown
                                                                                | case object Up extends UpDown
   implicit val fooEncoder: Encoder[Foo] = deriveEncoder                                         | case object Down extends UpDown
   println(Foo(a=1,b=2,`a-c`=3).asJson)                                                          |
 }                                                                                | object UpDown {

The output I get when running this:
[info] Running TestCirce
{
  "a" : 1,
  "b" : 3,
  "a-c" : 2
}

Note that the values of b and a-c have switched.

Even without circe in the picture, note that something perplexing is also happening with the generated toString:
scala> case class Foo(a: Int, b: Int, `a-c`: Int)
defined class Foo

scala> val foo = Foo(1, 2,3)
foo: Foo = Foo(1,3,2)

scala> foo.a
res0: Int = 1

scala> foo.b
res1: Int = 2

scala> foo.`a-c`
res2: Int = 3

Yeah, this is incredibly weird, and LabelledGeneric gets it wrong as well:
scala> case class Foo(a: Int, b: Int, `a-c`: Int)
defined class Foo

scala> val foo1 = Foo(1, 2, 3)
foo1: Foo = Foo(1,3,2)

scala> val foo2 = Foo(a = 1, b = 2, `a-c` = 3)
foo2: Foo = Foo(1,3,2)

scala> shapeless.LabelledGeneric[Foo].to(foo1)
res0: Int with shapeless.labelled.KeyTag[Symbol with shapeless.tag.Tagged[String("a")],Int] :: Int with shapeless.labelled.KeyTag[Symbol with shapeless.tag.Tagged[String("b")],Int] :: Int with shapeless.labelled.KeyTag[Symbol with shapeless.tag.Tagged[String("a-c")],Int] :: shapeless.HNil = 1 :: 3 :: 2 :: HNil

Weirdly enough it looks like it could be vaguely related to this bug I ran into last weekend.

@rossabaker shed some light on this:
scala> Foo(1, 2, 3).productIterator.toList
res4: List[Any] = List(1, 3, 2)

Another coworker noticed that the default ammonite pretty printer does not seem to be impacted by this, which I found curious.
Welcome to the Ammonite Repl 0.7.7
(Scala 2.11.8 Java 1.8.0_131)
@ case class Foo(a: Int, b: Int, `a-c`: Int)
defined class Foo
@ val foo = Foo(1,2,3)
foo: Foo = Foo(1, 2, 3)
@ foo.productIterator.foreach(println)
1
3
2

For what it's worth circe-derivation gets it right:
scala> case class Foo(a: Int, b: Int, `a-b`: Int)
defined class Foo

scala> io.circe.derivation.deriveEncoder[Foo].apply(Foo(1, 2, 3)).noSpaces
res0: String = {"a":1,"b":2,"a-b":3}

It looks like scalac generates a wrong order for members in productElement. Here is the output for -Xprint:jvm:
 <synthetic> def productElement(x$1: Int): Object = {
      case <synthetic> val x1: Int = x$1;
      (x1: Int) match {
        case 0 => scala.Int.box(iw$Foo.this.a())
        case 1 => scala.Int.box(iw$Foo.this.a-c())
        case 2 => scala.Int.box(iw$Foo.this.b())
        case _ => throw new IndexOutOfBoundsException(scala.Int.box(x$1).toString())
      }
    };

looks like https://github.com/scala/bug/issues/8831

I'm going to close this as out-of-scope for circe since we're just inheriting the behavior from Shapeless, and since there are a number of viable workarounds.


Implement aborting operations when keys are destroyed

When a key is closed, purged or destroyed (psa_close_key, psa_destroy_key, psa_purge_key), abort any active multipart operation using that key.
Prerequisite: a design that will also be compatible with the openless API.

A rough sketch proposed here:
https://github.com/ARMmbed/mbedtls/pull/5123
Each key slot gets an uint64_t that is randomized in a call to psa_wipe_key_slot. This ID is copied to a multipart object (along with the key ID used to lock the key) in the setup function, and later verified before each operation that uses the key.
Open questions:

Should we store a list of currently open key IDs?

If we can globally map the generated key ID to a key slot ID, we save space from a multipart operation object;
We might check if there's no key with a randomly generated ID in our 'store';
Should we reduce the size of an ID to uint32_t (or less) if we validate if a generated ID is unique?

Should this be extended to any other functions?


Intrusion Detection Signatures wont download. Errors when running rule-updater.py manually

Hi,
I have a new install that is fairly vanilla that has issues with downloading rules for the Intrusion Detection service. It originally worked fine, but I was having issues with traffic so I turned the rules off. Now it wont work at all and I can't download any rules.
This has happened twice now. The first time I did a re-install where it worked initially, but now stopped as mentioned above.

I this a known problem, or something about my configuration causing problems?
root@OPNsense:~ # /usr/local/opnsense/scripts/suricata/rule-updater.py
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py", li                                                                                ne 441, in wrap_socket
cnx.do_handshake()
File "/usr/local/lib/python3.7/site-packages/OpenSSL/SSL.py", line 1915, in do                                                                                _handshake
self._raise_ssl_error(self._ssl, result)
File "/usr/local/lib/python3.7/site-packages/OpenSSL/SSL.py", line 1647, in _r                                                                                aise_ssl_error
_raise_current_error()
File "/usr/local/lib/python3.7/site-packages/OpenSSL/_util.py", line 54, in ex                                                                                ception_from_error_queue
root@OPNsense:~ # /usr/local/opnsense/scripts/suricata/rule-updater.py
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py", line 441, in wrap_socket
cnx.do_handshake()
File "/usr/local/lib/python3.7/site-packages/OpenSSL/SSL.py", line 1915, in do_handshake
self._raise_ssl_error(self._ssl, result)
File "/usr/local/lib/python3.7/site-packages/OpenSSL/SSL.py", line 1647, in _raise_ssl_error
_raise_current_error()
File "/usr/local/lib/python3.7/site-packages/OpenSSL/_util.py", line 54, in exception_from_error_queue
raise exception_type(errors)
OpenSSL.SSL.Error: [('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 601, in urlopen
chunked=chunked)
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 346, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 850, in validate_conn
conn.connect()
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 326, in connect
ssl_context=context)
File "/usr/local/lib/python3.7/site-packages/urllib3/util/ssl.py", line 329, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/local/lib/python3.7/site-packages/urllib3/contrib/pyopenssl.py", line 448, in wrap_socket
raise ssl.SSLError('bad handshake: %r' % e)
ssl.SSLError: ("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')])",)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 388, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='urlhaus.abuse.ch', port=443): Max retries exceeded with url: /downloads/ids/ (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')])")))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/opnsense/scripts/suricata/rule-updater.py", line 103, in
headers=rule['http_headers'], version=remote_hash)
File "/usr/local/opnsense/scripts/suricata/lib/downloader.py", line 213, in download
fetch_result = self.fetch(url=url, auth=auth, headers=headers)
File "/usr/local/opnsense/scripts/suricata/lib/downloader.py", line 138, in fetch
req = requests.get(**req_opts)
File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='urlhaus.abuse.ch', port=443): Max retries exceeded with url: /downloads/ids/ (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')])")))

I also discovered a Problem with SSL/TLS under 19.7.7.
But in my case it is squid which is extremely slow.
Many of those errors:

kid1| ERROR: negotiating TLS on FD 26: error:00000000:lib(0):func(0):reason(0) (5/-1/54)
On 19.7.6 everything was fine..
@fichtner maybe something wrong with openssl?

The issue was a local network issues blocking .ch domains - false alarm!


Innovation - Using Objects

Score 2.7+/3.0

Completed code.org
Demonstration of use of objects and classes
Team Project using Spring Boot

Hacks
Code.org

Using Objects

Using Objects & Code.Org Learning

Shows using objects
Shows extends and inheritance

Other

SpringBoot Project Notebook & Basic Calculators

Implements GUI Desktop Application
Implements GUI Web Browser Application
Simple Calculators

SpringBoot Project Plan and Team
Personal Plan for Fastpages

Score 2.7+/3.0

Completed code.org
Demonstration of use of objects and classes
Team Project using Spring Boot


[v3] Bug on page scrolling area (with fix)

This is a (multiple allowed):

[x] bug

[ ] enhancement

[ ] feature-discussion (RFC)

Framework7 Version: v3 beta 6

Platform and Target: Any

Live Link or JSFiddle: Sorry, nobody ain't got time for that (https://www.youtube.com/watch?v=zGxwbhkDjZM)

What you did
Build a list with group-title items and scroll.
Expected Behavior
The scrollbar should not be clipped (hidden behind the navbar/statusbar). The sticky labels shoud work.
Actual Behavior
Two problems solved at the same time:

The scrollbar is behind the navbar (it is ugly and kinda non functional for certain users with certain mouse pads):

Using mobile scroll, the stick labels are also hidden behind navbar:
On mobile:

On tablet/desktop:

It seems that stick labels aren't working on mobile, but the truth is that is hidden beneath navbar.
Both issues have the same fix:
@media (min-width: 768px)
{
	.md .navbar ~ * .page-content, .md .navbar ~ .page-content
	{
		border-top: solid transparent 64px;
		padding-top: 0;
	}
}

.md .navbar ~ * .page-content, .md .navbar ~ .page-content
{
	border-top: solid transparent 56px;
	padding-top: 0;
}

.ios .navbar ~ *:not(.no-navbar) .page-content, .ios .navbar ~ .page-content
{
	border-top: solid transparent 44px;
	padding-top: 0;
}

By using a border instead of padding, I'm displacing the chrome of the element X pixels, and not just their contents. It has the same behavior, but now both scroll and stick labels are fixed.
Guess need the same kind of fix for subnavbar, toolbar, tabbar, etc.

Hi

The scrollbar is behind the navbar

This is actually by design, there is no ugly scrollbars in mobile apps. And such layout with page content behind navbar/toolbar allows to create more native experience with semi transparent/blur navbar background

Using mobile scroll, the stick labels are also hidden behind navbar:

This is Chrome-bug with position: sticky, it works everywhere else correctly (Safari, iOS, FireFox).


first iteration of zcash support

parse and check for addresses other than bitcoin
more tests
also rename some enum types since we had a typename clash

r? @patrickxb

If @malgorithms can generate me one!


Swift 5, Xcode 11.3 & Catalina Support + Updated Docs (README)

Hey Jason!
My name is Justin and I came across your project earlier today. Due to Google shutting down Fabric (come March 31st, 2020) and dropping analytics/crashlytics support for macOS, there is now a huge gap that needs to be filled when it comes to macOS analytics. I came across your project today looking for a solution and thought I'd give it a few updates of my own.
A lot of macOS developers, who had used Fabric for macOS analytics in the past, will no longer be able to use Fabric (due to it being shutdown), nor will they be able to use Firebase (as Google dropped support for macOS). Your project, however, could be the solution to a lot of developer's problems (come March 31st, when Fabric is shut down).
This build still needs to be tested by a 3rd party.
Project Changes

Converted to Swift 5.1 (manually, unfortunately)
Updated for Xcode 11.3 (project settings, variable fixes & Xcode UI bugs/changes)
Updated for compatibility with Catalina (macOS 10.15.2)
Fixed issues with pre-Swift 3 migration

Documentation (README)

Proof read
Corrected English spelling, grammar and punctuation
Edited sections for relevance
Made How-To steps easier to read
Updated screenshots with new Google Analytics UI panel
Updated steps for Google Analytics that were outdated
Updated sample code to reflect Swift 5 conversion

Note: The project structure is setup a bit different than how you originally had it; however, I based it on the Xcode 11 standard. Also used 4 indent spacing, as opposed to 2 spaces – I apologize if this causes any inconvenience!
Please feel free to edit any of your project, any way you see fit! :)
Hope this helps!
~ Justin Bush

Hi Justin,
Appreciate for you pull, thanks.
As you can see, I haven't updated this project for years. And in fact it works well for several existed projects.
And now I have no time to carefully review all your changes. I would like to merge then into new 'swift5' branch. And I will mentioned it in README.md. Is it ok for you?
For 2 spaces, you know, my screen is small :(
Have a good day.
BR,
Jason

Sounds awesome! Anything I can do to help. :) I apologize for the 4-space indents hahaha! Luckily there aren't too many different files, so one could quickly revert using Control + I when selecting all.
Have a great weekend! 👍
Justin

Thanks again for you contribution. 👍


Add package validation model to the GK API

Preparing the ground for the validation of packages using the SDK component for that, we're adding a model, to communicate with it.

Closed by PR #688
This is not yet complete: the validation container is not available yet...


Typescript extension restarting

Type: Bug
No idea. Typescript is restarting like crazy. I've tried rebooting. It just keeps reinitializing.

It does. And for me, it's not restarting but it just keeps crashing after each keystroke. When I restart the TS Server, it picks up, then I save something and it stops working again

Please try collecting the TS Server log from the crashed instance:

Set "typescript.tsserver.log": "verbose"

Restart VS Code and reproduce the problem

Open the TypeScript section of the output panel

At the very top, find the first line that prints to path to the semantic error log file. It should look something like:
[Info  - 19:54:59.247] <semantic> Log file: /Users/matb/Library/Application Support/Code - Insiders/logs/20200213T104930/exthost55/vscode.typescript-language-features/tsserver-log-ZT2zau/tsserver.log

That file contains the typescript logs.

Look through that log file for the first error or stack trace you see. If you can share the log, I can also take a look to see if anything stands out

⚠Warning: The TypeScript log may include information from your workspace, including file paths and source code. If you have any concerns about posting this publicly on Github, just let me know and we can arrange something else. On our side, we only use these logs to investigate issues like this

I'm having the same issue as OP, both on the latest stable and the latest insider build (working from macOS over linux via SSH).
I've noticed that (in my case at least) using a TS version up to 4.6.x worked, when using >=4.7.x it broke. Anyway that only happened in some specific files where type complexity was very high and recursive.
In the scenarios where it crashed it would should've shown an error using the versions that worked. Removing the errored line prevented TS server from crashing.
Hope this is helpful, unfortunately I cannot disclose the original code nor reproduce the issue on a simpler gist.

Closing as we need info from the original poster to investigate
@andreafdaf If you are still seeing this with TypeScript 4.9, please open an new GitHub issue with one of the files/projects that causes the crash


Added data_dir configuration options.

In certain deployment scenarios, we may not want (or be able) to write to the default ~/.lndk data directory. For example, the home directory may be mounted as read-only, or mounted using ephemeral storage.
This change adds a new data_dir configuration option to specify where LNDK should store data. If this option isn't specified, then falls back to the default ~/.lndk.

I tested both CLI flag and config file, it seems good. Thank you ✨
Maybe we have to think about log_dir. Should we put logs relative to data_dir when it specified? I think LNDK still create ~/.lndk directory and put logs in it, even if data_dir is not ~/.lndk.

I tested both CLI flag and config file, it seems good. Thank you ✨ Maybe we have to think about log_dir. Should we put logs relative to data_dir when it specified? I think LNDK still create ~/.lndk directory and put logs in it, even if data_dir is not ~/.lndk.

For my particular use case I'm just setting both data_dir and log_dir to somewhere other than ~/.lndk, and that works for me, but I like your suggestion that we fall back to data_dir if log_dir isn't specified? Something like log_dir -> data_dir -> ~/.lndk?

For my particular use case I'm just setting both data_dir and log_dir to somewhere other than ~/.lndk, and that works for me, but I like your suggestion that we fall back to data_dir if log_dir isn't specified? Something like log_dir -> data_dir -> ~/.lndk?

Thank you addressing it. I think that is better!
But I found something strange. It seems log_dir is treated as a file in the code🤔 If pass --log-dir=lndk-log, a log file is named as lndk-log. So in the new code, if we didn't set a log directory explicitly but only data directory, lndk creates the data directory and then try to create a log file with the same name to the data directory. This causes error.
My apologies for not recognizing this behavior. Maybe we can fix this the other PR 🙇

Ran and everything seems to work and found that we might want to set a broad definition (as I'll need to change the lndk.conf pr #193  too 😓 my bad).
First we must separate data_dir with lndk_dir to follow "standarness" of other projects (Bitcoin and LND):
lndk_dir: main repository, where lndk.conf could be stored (as defaults) and other dirs could be created or mounted, as data_dir
data_dir: directory where you must have a write permission as the deamon will write data (logs or TLS) inside. Usually it separates by networks.
Currently they are the same directory, lndk_dir does not exists but mounting data_dir in .lndk means that a conf in .lndk could be writable (not that nice). Therefore, we might want to in another PR do some more changes as we would like to add networks to the data_dir or we could use another approach of adding a prefix or something else (just thinking how to be a bit more future proof).
So what would that mean?
We might wanna do a breaking change on logs and app data, fix that log_dir to be a dir and add maybe log_file to be used. It will be needed anyway. Next configuration might wanna use a direct reference to the previous log (and wouldn't change) until we do something like rotating logs and sadly it will need a change. That might be really possible as stated here we could have a lot of onion traffic (and would be double of logs, lnd's and lndk's for the same pressure 😅).
Enough blabla, we could just go ahead with this PR and maybe a following one addressing the other issues or whatever works best.
@orbitalturtle or @dunxen might have a thought on doing breaking changes, but as LNDK is experimental I think it would be just acceptable.

Enough blabla, we could just go ahead with this PR and maybe a following one addressing the other issues or whatever works best.
@orbitalturtle or @dunxen might have a thought on doing breaking changes, but as LNDK is experimental I think it would be just acceptable.

Yeah, relatively frequent breaking changes are still fine IMO even if it relates to persistence. They'll be documented in the following release.
Sorry for the delay here! I'll be attending to a handful of LNDK PRs weekend!

We might wanna do a breaking change on logs and app data, fix that log_dir to be a dir and add maybe log_file to be used. It will be needed anyway. Next configuration might wanna use a direct reference to the previous log (and wouldn't change) until we do something like rotating logs and sadly it will need a change. That might be really possible as stated here we could have a lot of onion traffic (and would be double of logs, lnd's and lndk's for the same pressure 😅).

Thanks for the suggestions here, @a-mpch!
A few things:

I'm happy to have these breaking changes for the sake of clarity and accuracy. So we can go ahead and just outright replace all mentions and naming of log_dir with log_file. This can happen now in this PR.
In what case would we want to also keep a separate log_dir configuration option? Do we even need it? How would that play with log_file?
I agree that we can work at having separate configs for lndk_dir and data_dir. This can happen in a separate PR before the next release and we can discuss specifics. So let's leave the name data_dir as is for now to cover the single directory used by lndk for any conf to be stored and data to be written. We will align them in that new PR with more standard practices.

@a-mpch, @kannapoix, and @mhrheaume, what are your feelings on this?
tl;dr: Rename log_dir to log_file throughout the entire project in this PR and have follow-up PR discussing a split for lndk_dir & data_dir configuration.
cc @orbitalturtle

@a-mpch, @kannapoix, and @mhrheaume, what are your feelings on this?

@dunxen works for me!

Ugh, running into some hiccups running the integration tests. Assuming those are from my changes, I'll hopefully be able to reproduce locally shortly.

Ok, whew! MDM running on my machine didn't like the fact that the itests were downloading and running bitcoind, so I ended up running the tests in a Docker container. I'll post it in a separate PR if there's interest. Anyways, latest revision should pass!


[nrf fromlist] dts: common: nordic: Add clock source to timers

Add clock source to timers which indicates maximum frequency of the timer instance.
This enables execution of tests/drivers/counter/counter_basic_api on nrf54h20/cpurad
Upstream PR : https://github.com/zephyrproject-rtos/zephyr/pull/82901

Needed to add [nrf fromtree] commits to avoid conflicts or noups


refresh testing/refactor tests

make sure all the tests are up to date for MVP

What's status of this JohnDanz?

Tests are refactored; JD has moved on to augur.js tests.


Add metric descriptions to backend

This PR adds the mapping of metric names --> descriptions to the backend.
This aims to solve Issue #426 UI Optimization Plan where we can explain metrics to users.
Comments
In metric_descriptions.py, the description strings had to be broken down in the form of "xxx"\n"xxx" to pass the format checker (error falke8 E501 line too long)
Discussion
In the beginning, we considered to save a dataclass by referencing the documentation supported_metrics.md
class MetricDescription:
    id: int
    name: str
    description: str
    used_tasks: list[TaskType]
    ref_url: str=""

But considering the use case for this class is only to look up the descriptions, and not the other attributes, we figured we actually only needed a dictionary.
All the other information (reference URL and used tasks) can be found in the documentation if users wanted to learn more.
Next Steps
I will have two separate PRs for adding these descriptions in (1) system submit drawer and (2) analysis page.
Thanks to @lyuyangh for all the suggestions and discussions!

Sorry for the multiple formatting commits.
I am facing the deadlock issue where my local black format check wants a set of import As after import Bs, while github's isort format check wants import As before import Bs.
The latter commits used the tag --no-verify to skip those checks, that's why I had to format according to the messages from CI.

Could you also bump the API version in openapi.yaml?


Store properties of a body parameter in method.bodySchema.

Adds the capability to access body properties from inside templates by adding a new method.bodySchema property.
paths:
    /pets/cat:
        post:
          parameters:
            - name: ''
              in: body
              schema:
                $ref: '#/definitions/Cat'
              required: true

definitions:
    Cat:
        type: object
        properties:
            name:
              description: 'Name of cat'
              type: string
            sex:
              description: 'Sex of cat, male or female'
              type: string
        required: ['sex']

produces the following following method.bodySchema that can be used in the template:
- name: name
  type: string
  description: 'Name of cat'
  required: false
- name: sex
  type: string
  description: 'Sex of cat, male or female'
  required: true

This is similar to pull request #94 but only adds bodySchema.

@HawaiianSpork Could you provide a template example that is using this feature?

@wcandillon I updated the method.mustache template to include validation based on the new fields.  Is that what you are looking for?

The value for $ref is a path to the definitions section of the spec containing the definition of that parameter.  For instance:
{
	"swagger": "2.0",
	"basePath": "/",
	"paths": {
		"/rpc/login": {
			"post": {
				"tags": [
					"(rpc) login"
				],
				"produces": [
					"application/json"
				],
				"parameters": [
					{
						"required": false,
						"in": "header",
						"name": "Prefer",
						"type": "string",
						"enum": [
							"params=single-object"
						],
						"description": "Preference"
					},
					{
						"required": true,
						"schema": {
							"$ref": "#/definitions/(rpc) login"
						},
						"in": "body",
						"name": "args"
					}
				],
				"responses": {
					"200": {
						"description": "OK"
					}
				}
			}
		}
	},
	"definitions": {
		"(rpc) login": {
			"required": [
				"_username",
				"_password"
			],
			"properties": {
				"_username": {
					"format": "text",
					"type": "string"
				},
				"_password": {
					"format": "text",
					"type": "string"
				}
			},
			"type": "object"
		}
	}
}

I pulled this request and merged with head and fixed the conflict.  The merge was pretty much fine, just one small change to the line that has _.contains() to change it to the new method name _.includes().  I don't know if there is any way to generate a useful patch or anything to keep this PR up to date, but it was very useful to me and I'd like to see it merged.


footer alignment fixed

Related Issue #515

Description
fixed alignment

Screenshots
Before

After

We regret to inform you that we are closing the pull request you submitted as it does not include what we have assigned you and appears to be a case of spam. Kindly ensure to check our guidelines and procedures for creating pull requests in the future.
Thank you for your understanding.


travis-ci

travis-ci
https://github.com/xgqfrms-GitHub/Node-CLI-Tools/tree/master/travis-ci
https://travis-ci.org/xgqfrms-GitHub/Node-CLI-Tools/builds

https://travis-ci.org/xgqfrms/app-node-env/builds

https://developer.github.com/changes/2018-04-25-github-services-deprecation/
https://developer.github.com/apps/differences-between-apps/#about-github-apps/

https://docs.travis-ci.com/user/getting-started/


Localizable.strings file extracted to the new Translations module

Codecov Report

Merging #43 (15f19f9) into develop (bba4096) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop      #43   +/-   ##
========================================
  Coverage    79.94%   79.94%
========================================
  Files           59       59
  Lines         1551     1551
========================================
  Hits          1240     1240
  Misses         311      311

Impacted Files
Coverage Δ

...Sources/CV-UIKit/CollectionView/CellProvider.swift
100.00% <ø> (ø)

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


Entanglement verification tutorial

Summary
Advanced tutorial for using the entanglement verification features introduced with Ignis 0.3.
Will keep WIP till 0.3 is out because dependent on it
Details and comments

Just did the final adjustments to 0.3, this is ready from my side

Can you move this to the Qiskit tutorials repo here: https://github.com/Qiskit/qiskit-tutorials
However, this notebook currently throws an error here:
F = quantum_info.state_fidelity(psi_exp,tomo.fit())

QiskitError: 'Input quantum state is not a valid'

I'm not able to reproduce it, it runs successfully on many trials at my end. Any additional info?

If you can provide psi_exp and the job.result() that produces it, it may help

Terra master throws that error.  So I am guessing this tutorial will break on the next Qiskit version (tomorrow) as well.

I see. If it doesn't throw on stable, let's wait for the release then. I'll figure out what changed when I'll see the fall

The error looks to be an issue with the positive-definite calculation in Terra.  Once that is worked out, this should be reopened in https://github.com/Qiskit/qiskit-tutorials.

@nonhermitian any issue number in Terra? So I'll keep track


add autohotkey-installer

I use autohotkey a lot and was a bit frustrated by the original scoop install. After readings i propose this manifest as a new type of AHK installation using their installer and its command line options to get a more complete installation with shell menu entries.
Please consider adding it if you dont see too many mistakes, i am quite new in this.

@rasa Thanks for the advices

@hed0n1st thanks for the contribution


Mqtt use tls

The MQTT_NO_TLS variable is a negative condition, where every other cmake variable is a positive condition. Change MQTT_NO_TLS to MQTT_USE_TLS to avoid confusion.

Merge conflicts are resolved, and MQTT_USE_SSL defaults to no. Does this work?

Thanks! merged.


ORC-887: Remove ORC Twitter link from news page

What changes were proposed in this pull request?
This PR aims to remove ORC Twitter link from news page.

Why are the changes needed?
The twitter account has not used during last 3 years since 2018.

How was this patch tested?
N/A (We need to update asf-website branch after merging)

cc @omalley , @pgaref , @wgtmac , @williamhyun

Sorry to see it go. :(

Yeah, hoped we could keep it more up-to-date posting releases etc. -- assuming we still have access to that account

Thank you, @wgtmac and @pgaref .
Ya, there was missing information like these. We can add them back later when they are ready again.

https://snapcraft.io/orc
https://twitter.com/apacheorc

For now, we don't have any permissions for them.

Merged to main.

It was set up with TweetDeck so that anyone on the PMC at the time could
tweet out using the account. I seem to have lost the original password, but
let me reset it.
.. Owen
On Fri, Jul 30, 2021 at 3:48 PM Dongjoon Hyun @.***>
wrote:

Merged #790 https://github.com/apache/orc/pull/790 into main.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/apache/orc/pull/790#event-5092213896, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABSNSCEVKBZTRSG7CMDFELT2LCVBANCNFSM5BHZKVLA
.

Sure, thank you for checking it, @omalley .
Please share how to use it in private@orc at this time~


Copy over from Application Bootstrap template repo.

Ticket
N/A
Changes

What was added, updated, or removed in this PR.

USWDS + Storybook + Sass: https://github.com/navapbc/template-application-nextjs/pull/15
i18n for Next.js, Storybook, Jest: https://github.com/navapbc/template-application-nextjs/pull/24

Context for reviewers

Testing instructions, background context, more in-depth details of the implementation, and anything else you'd like to call out or ask reviewers. Explain how the changes were verified.

Copies over changes from Application Bootstrap template repo.
Testing

Screenshots, GIF demos, code examples or output to help show the changes working as expected. ProTip: you can drag and drop or paste images into this textbox.

Follow directions in README.md to run the docker container and test on localhost:3000 and test storybook on localhost:6006.

Closing in favor of #31


Centering in buttons

Hi,
I'm not sure if this is an egui-phosphor issue specifically, but when the icons are used within a button, they're not vertically centered/padded within by default.
I'm not even sure this is fixable on this end, since it's just a font. Perhaps some guidance could be given in the readme or examples to solve this, however.
Example:

(Notice the padding on the top but not the bottom)

hi! sorry for taking so long to get to this.
I'm unable to reproduce this issue on the debug_alignment example on this repo.
on this screenshot i've added two buttons to the demo, with nothing else changed compared to the labels:

are you sure there's nothing else in your project and its layout affecting either the size of those buttons or the font's baseline?
if so, could you try and create a minimal reproduction of the alignment failure on eframe? thanks!


Not able to draw polygon on map

Not able to draw Polygon map.

do you find a solution to do this  ?

Hi,
Plz check out our latest samples ported from Android.
Briefly, you will provide a GeoJSON source then Mapbox will draw it up.
Cheers.


fix: he breaks vite, replace with entities

When using CodeBlock / CodeSpan.
Stack trace:
TypeError: __vite_ssr_import_5__.encode is not a function
Please report this to https://github.com/markedjs/marked.
    at renderer.code (/.../web-garden/themes/simple-docs/node_modules/.pnpm/astro-remote@0.2.3/node_modules/astro-remote/lib/utils.ts:76:60)
    at renderer.<computed> [as code] (/.../web-garden/themes/simple-docs/node_modules/.pnpm/astro-remote@0.2.3/node_modules/astro-remote/node_modules/marked/lib/marked.esm.js:2751:41)
    at Parser.parse (/.../web-garden/themes/simple-docs/node_modules/.pnpm/astro-remote@0.2.3/node_modules/astro-remote/node_modules/marked/lib/marked.esm.js:2277:32)
    at parse (/.../web-garden/themes/simple-docs/node_modules/.pnpm/astro-remote@0.2.3/node_modules/astro-remote/node_modules/marked/lib/marked.esm.js:2211:19)
    at eval (/.../web-garden/themes/simple-docs/node_modules/.pnpm/astro-remote@0.2.3/node_modules/astro-remote/node_modules/marked/lib/marked.esm.js:2644:18)
    at Function.marked [as parse] (/.../web-garden/themes/simple-docs/node_modules/.pnpm/astro-remote@0.2.3/node_modules/astro-remote/node_modules/marked/lib/marked.esm.js:2659:48)
    at Module.markdown (/.../web-garden/themes/simple-docs/node_modules/.pnpm/astro-remote@0.2.3/node_modules/astro-remote/lib/utils.ts:92:54)
    at eval (/.../web-garden/themes/simple-docs/node_modules/.pnpm/astro-remote@0.2.3/node_modules/astro-remote/lib/Markdown.astro:17:47)
    at AstroComponentInstance.Markdown [as factory] (/.../astro-openapi/node_modules/.pnpm/astro@2.1.9/node_modules/astro/dist/runtime/server/astro-component.js:22:12)
    at AstroComponentInstance.init (/.../astro-openapi/node_modules/.pnpm/astro@2.1.9/node_modules/astro/dist/runtime/server/render/astro/instance.js:28:29)

entities is typed, and more updated / speedy.
Need more tests though.

Can confirm it works well with this fix in the wild, w<EMAIL_ADDRESS>https://astro-openapi.juliancataldo.com/learn/usage/client
(whole website uses astro-remote for sourcing MD)


Clean up in deinitialize: Merge openViewController and menuHandler.deInitialize. Remove openView

https://github.com/into-cps/intocps-ui/issues/113

Status on this?

Archive and open again if necessary

Done


Icons don't work with WSL

When working on WSL, the icons don't apply to the files. I looked at the extensions and it said this extension was installed locally, but not on my WSL instance (Ubuntu-18.04). How can it be installed in WSL?

@JetUni I don't think I follow, what are you trying to do with the icons and WSL?

I have VS code connected to WSL and I have this extension installed, but none of the icons are showing up like they should

@JetUni which extension? This repo is not for any extension.

Sorry, I must have this confused with another repo with the same name!


Found part of u-boot within DJI FW code

So - I found the GPL code in monolithic firmware module. I assume this means we have right for the whole module?
What next?
Should all findings be public, or better to keep details private?

For now I would keep it private ;-)

Since DJI did not responded to my e-mail, time to share the report:
https://gist.github.com/mefistotelis/ee88b8c5a213e78f6f0467573d28b970

I wonder if one could somehow automate this type of analysis based on statistical methods...

What I did in first step is just copy strings to Google. That can be automated. Then matching specific functions is harder..
When I started, I assumed DJI used SDK code from Atmel. So I first found Atmel SAM sources they freely (not under GPL) distribute. I expected everything to match Atmel libs. But around SD and MMC functions, there were substantial differences - code didn't matched. So I started googling various strings I found in the code; I was usually getting a few results, but one which was there for every string was u-boot. I downloaded it, reverted GIT repo to around the time when the firmware was published - and then noticed some functions are just identical.
So automated system would need to have at least strings from many GPL projects, best with dates when each line was added to the project. Then it would have to do strings of FW binary, and start matching.
The fact that firmwares are encrypted would have to be handled manually though. I mean, it's not hard to automate if you have a decryptor, like we do with drones up to Mavic. But then you only support the firmwares for which you made automatic decryption procedure.

turnitin.com for source code ;-)


reduce the Retry token expiry time to 10 seconds

The expiry time used to be 24 hours before. The reason for this long duration was that this included tokens that were issued to be used between separate connections in gQUIC. At the moment (since we don't have a fix for #1913 yet), we are only generating tokens for Retry packets, i.e. within a single connection. They are therefore expected to be used within a single round trip.

Codecov Report

Merging #1942 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff           @@
##           master   #1942   +/-   ##
======================================
  Coverage    85.9%   85.9%
======================================
  Files          98      98
  Lines        6781    6781
======================================
  Hits         5825    5825
  Misses        696     696
  Partials      260     260

Impacted Files
Coverage Δ

server.go
84.05% <100%> (ø)
:arrow_up:

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 4e709ef...4e741b9. Read the comment docs.


C++/WinRT should handle disconnected async completion handlers much like it does event handlers

Details: When invoking event handlers, C++/WinRT checks for well-known error codes, which handles cases where the event handler was disconnected. However, the invoke of the async operation completed handler contains no such checks.


"Add all missing members option" is not working

Issue Type: Bug
When you right click on a variable /xpath it displays an option saying "Add all missing members" which is not working currently
VS Code version: Code 1.36.1 (2213894ea0415ee8c85c5eea0d0ff81ecc191529, 2019-07-08T22:59:35.033Z)
OS version: Windows_NT x64 10.0.16299

Is this maybe an issue with a specific extension?


AWS Elastic Beanstalk Server URL for iOS Application

I've created an instance of Parse-Server on AWS, but I am unable to get my iOS app linking with the server. I was successful with Heroku, but not so far with AWS.
When I navigate to my environment URL (http://parseserver-7nebu-env.us-east-1.elasticbeanstalk.com), I get "I dream of being a web site", which is correct.
I've set up my environment variables including my mLab URI.
I used the following server url in my iOS implementation:
[Parse initializeWithConfiguration:[ParseClientConfiguration configurationWithBlock:^(id<ParseMutableClientConfiguration> configuration) {
        configuration.applicationId = @"app_id";
        configuration.clientKey = @"client_key";
        //configuration.server = @"https://my-app-name.herokuapp.com/parse"; // Heroku instance
        configuration.server = @"https://app-name-env.us-east-1.elasticbeanstalk.com/parse"; // Amazon Web Services instance
    }]];

No luck so far.
Any suggestions?
Thanks

Can you say what error messages you are seeing? Are there any logs on the server? Are you using the same client key and app id as on Heroku?

Sure. I am seeing different errors depending on what URL I have tried:
https://parseserver-7nebu-env.us-east-1.elasticbeanstalk.com/parse - This URL just hangs and times out with the message: [Error]: The request timed out. (Code: 100, Version: 1.12.0)
http://parseserver-7nebu-env.us-east-1.elasticbeanstalk.com/parse - [Error]: {"code":1,"message":"Internal server error."} (Code: 1, Version: 1.12.0)
parseserver-7nebu-env.us-east-1.elasticbeanstalk.com/parse -[Error]: unsupported URL (Code: 100, Version: 1.12.0)
http://parseserver-7nebu-env.us-east-1.elasticbeanstalk.com - [Error]: Failed to run command eventually with error: Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and option to allow fragments not set." UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}
https://parseserver-7nebu-env.us-east-1.elasticbeanstalk.com - This just hangs and times out with message: [Error]: The request timed out. (Code: 100, Version: 1.12.0)
And yes, I am using the same client key and app id as with Heroku.
Thanks

The correct format is with a / at the end of the URL for iOS.
https://parseserver-7nebu-env.us-east-1.elasticbeanstalk.com/parse/

@harrygt thanks for the response, but this didn't work for me either. It timed out.

Ok sorry can you try without https. Just:
https://parseserver-7nebu-env.us-east-1.elasticbeanstalk.com/parse/
The problem I think is that you can't request a certificate for Elastic Beanstalk, we had to use a custom domain so that the certificate was valid and therefore visiting it over https works. If http works as above then I think that is your issue.

@harrygt nope :( [Error]: {"code":1,"message":"Internal server error."} (Code: 1, Version: 1.12.0)

Doing some googling, the general pattern is that it's something to do with MongoDB replicasets? (I don't know what that means!)

Hmm. Ok do you have the following setup in your environment variables:

APP_ID = appid
DATABASE_URI = mongodb://###
MASTER_KEY = masterkey
NODE_ENV = production
PARSE_MOUNT = /parse

As for mlab.com did you export and import the data via mongoimport or did you hit the migrate button on parse.com?

I used the migrate tool in Parse. Would having a sandbox mLab collection and a production server instance be the issue? Just thinking out loud.
And yeah, all my environment variables are setup.
Thanks

Hmm no thats what we have running so no issues there.
Have you downloaded the Elastic Beanstalk CLI? If not, download that and do:
eb init
eb labs download
When you've made your changes then do
eb deploy
In the index.js file you should have the following setup correctly:
databaseURI: 'mongodb://####',
cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
appId: '###',
masterKey: '###',
fileKey: '###',
serverURL: 'http://###.elasticbeanstalk.com/parse',
filesAdapter: if needed

Ok, will do that and let you know. Thank you!

No luck unfortunately.
My index.js is:
var express = require('express');
var ParseServer = require('parse-server').ParseServer;

var databaseUri = process.env.DATABASE_URI || process.env.MONGOLAB_URI

if (!databaseUri) {
  console.log('DATABASE_URI not specified, falling back to localhost.');
}

var api = new ParseServer({
  databaseURI: databaseUri || 'mongodb://user:password@ds039155.mlab.com:39155/db-name',
  cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
  appId: process.env.APP_ID || '642k4TTqGk1mOVzIrlTyRgfNlCd5VJ26NtciiC66',
  fileKey: process.env.FILE_KEY || '2b70984c-83be-4c6c-a90f-4f71c9f3c64a',
  masterKey: process.env.MASTER_KEY || 'muH3zkWCHTKsxi3LRLTjiFaF2VpPqn7PzMNRbjwv',
  serverURL: 'http://parseserver-7nebu-env.us-east-1.elasticbeanstalk.com/parse'
});
// Client-keys like the javascript key or the .NET key are not necessary with parse-server
// If you wish you require them, you can set them as options in the initialization above:
// javascriptKey, restAPIKey, dotNetKey, clientKey

var app = express();

// Serve the Parse API on the /parse URL prefix
var mountPath = process.env.PARSE_MOUNT || '/parse';
app.use(mountPath, api);

// Parse Server plays nicely with the rest of your web routes
app.get('/', function(req, res) {
  res.status(200).send('I dream of being a web site.');
});

var port = process.env.PORT || 1337;

app.listen(port, function() {
    console.log('parse-server-example running on port ' + port + '.');
});

Check your heroku server logs after making these requests and let us know what they say.

I'm using AWS, not Heroku..?

Silly me.... Just ignore that word.  Check your server logs when making these requests and see what they say.

Did you solve this problem?

Second that. Stuck too.

i had also same problem ,here is my log
The request timed out. (Code: 100, Version: 1.12.0)
Network connection failed. Making attempt 4 after sleeping for 11.349660 seconds.

For me there were two issue that fixed this:

if it shows as timed out - make sure you are passing http, not https. https needs more stuff to do in aws
make sure you are passing correct mongoDB URI. I left it with one space inside and it was returning internal error for me.

Good luck!

@nickjf89 @drew-gross @harrygt @ShawnBaek
[Error]: unsupported URL (Code: 100, Version: 1.14.2)
i got this error after migration from parse to MLab+Heroku for downloading images and uploading images.please could you help me out