File shares info not writing to IT Glue, much like was happening with the AD one

There seems to have been an update to the ActiveDirectory.ps1 with the new Initialize-ActiveDirectoryFlexAsset.ps1 command being recently introduced. Is that accurate?
Prior, trying the ActiveDirectory.ps1 ran fine but it never updated IT Glue. Now that this new command to ensure the AD Flex Asset is properly created, it runs just fine.
I'm having the same issues with the FileShares.ps1. It seems to be grabbing all the correct info about file shares on the server that is run, but never actually writes to IT Glue and gives no error. Any suggestions?

I'll have a peak at the Initialize-ActiveDirectoryFlexAsset.ps1 code in the meantime.
Thanks,

I am getting no errors just showing me in green under each share
File Shares flex asset configuration file found!
But nothing showing in IT-Glue

Same thing is happening to me, anything new in here?

Mikekanet, after I make that change I get the error
C:\fileshares\FileShares.ps1 : ERROR: File Shares flex asset configuration file was found. Please create one and
re-run the script.
At line:1 char:1

.\FileShares.ps1 -api api_config-FileShares.psd1 -organization "Katlin Travel Gr ...

  + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
  + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,FileShares.ps1

Nevermind, figured out the solve for my earlier comment but still not working overall.  Everything is green it just doesn't put the data in IT Glue

There are a couple of bugs in the fileshares.ps1 file but after fixing those so I have correct data I now get
New-ITGlueFlexibleAssets : {"errors":[{"status":401,"title":"Unauthorized","detail":"Unauthorized resource
access","source":{"pointer":"id"}}]}
At C:\jobs\itglue\FileShares.ps1:245 char:49

...         $api__output_data = New-ITGlueFlexibleAssets -data $api__body

                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-ITGlueFlexibleAssets

Code is currently
$api__body = formatAPIData # format data for API call                        $api__org_id = $api__body.data.attributes.organization_id                        $api__flex_asset_id = $api_config.flex_asset_id
Should be
$api__body = formatAPIData # format data for API call                        #$api__org_id = $api__body.data.attributes.organization_id                         $api__org_id = $api__body.attributes.organization_id                        #$api__flex_asset_id = $api_config.flex_asset_id                         $api__flex_asset_id = $api_config.flexible_asset_type_id
This will at least now poplate api__body. Looking as to why this is unauthorised?

I also found a couple of instances for the server/diskpath where it looks like the code was expecting the routine to be run against multiple machines. However the samples /command line show it being run against one machine. As a result, looping through server results in referencing an array when there is only one value so $currentserver=$server[$i] ends up as a null value instead of the current server name.
The same can be said with the diskpath.
After I changed the above, i still find that the $api__body.attributes.traits.servers is blank after the $api_body = formatapidata is called.  At that point $post has the server name in it, but the server gets lost when api_body is created.
I manually set it in the script but I'm still getting the unauthorised resource access.


Deprecate newFormatter with TimestampFormatter.FormatterTask and newParser with TimestampParser.ParserTask in TimestampFormat

@muga Thanks!
But, sorry that I realized that we don't need to add the alternative methods newFormatter(DateTimeZone) and newParser(DateTimeZone). TimestampFormatter and TimestampParser can be created directly. Adding new methods may introduce other dependencies...
I've removed them in abef66c. Can you have another quick look?

Thanks! Merging.


Update ARTCARMA questionnaires

Update ARTCARMA ADHD_Medication_use_daily questionnaire

I think LGTM, though I can't quite follow all the branching logic. The new meds also look like additional questions so won't be changing existing questionnaires?

Yup, it is mostly just additional questions.


"required" over an array of objects is ignored

Hi 👋🏻
First, I want to say thank you for putting this library together, it's already proved super useful to me, and makes me sleep better at night 🙏🏻
I've recently been running into what I think might be a limitation of svarog though, and wanted to check if it was one indeed, or if there simply was an issue between the chair and the keyboard.
It seems that array of objects definitions ignore the required properties. I've looked into the currently described limitations, but couldn't figure out if it was the expected behavior in the current state of the tool.
For instance, validating:
{
  "stuffed": [
    {
      "foo": "hello, I'm Pierrot le foo"
    }
  ]
}

with the following schema
{
    "$schema": "http://json-schema.org/draft-07/schema",
    "$id": "Stuff",
    "type": "object",
    "properties": {
        "stuffed": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "foo": {
                        "type": "string"
                    },
                    "bar": {
                        "type": "string"
                    }
                },
                "required": [
                    "foo",
                    "bar"
                ]
            }
        }
    },

In the context of this security rules
match /stuff/{stuffID} {
  allow create: if isValid("Stuff");

I would expect the isValid("Stuff") call to fail, and the security rules making the document creation also fail as a result, because bar was not present. It is the behavior shown by external JSON Schema validators. Is it Svarog's expected behavior? Is it a known limitation? How can I contribute to make this behavior supported if that's the case?
Cheers!

This is such a well-written issue I feel bad telling you that what you’re describing can’t be done in CEL at the moment :)
To validate an array of arbitrary size, we’d need a way to iterate over it and, sadly, the subset of CEL used in Security Rules does not provide one at the moment (a team member has mentioned on Reddit they were considering it a year ago, but I haven’t heard of any progress since). Recursive calls aren’t supported, so that’s off the table, plus there’s a call depth limit of 20, which puts even more constraints on the generated code.
So for now Svarog supports only tuple validation for arrays. However, if you have a solution (or an idea) – I’ll be more than happy to look into and implement it because it’s been the most prominent issue with this tool so far.

Hehe, no worries at all! Thanks a lot for taking the time to answer in detail 🤝 though. I understand better why it is not possible then, and I've learned something about CEL on top of that. Here's to being able to do this kind of checks in the future 🦖 🦕 Cheers!


Safe RL using PID: langrangian ppo objective issue

In https://github.com/astooke/rlpyt/blob/master/rlpyt/projects/safe/cppo_pid.py -
if self.objective_penalized:
# This, or just add c_advantage into advantage?
c_surr_1 = ratio * c_advantage
c_surr_2 = clipped_ratio * c_advantage
c_surrogate = torch.max(c_surr_1, c_surr_2)
c_loss = self.cost_penalty * valid_mean(c_surrogate, valid)
if self.use_beta_kl:
c_loss *= self._beta_kl
elif self.use_beta_grad:
c_loss *= self._beta_grad
if self.diff_norm:  # (1 - lam) * R + lam * C
pi_loss *= (1 - self.cost_penalty)
pi_loss += c_loss
elif self.sum_norm:  # 1 / (1 + lam) * (R + lam * C)
pi_loss += c_loss
pi_loss /= (1 + self.cost_penalty)
else:
pi_loss += c_loss
shoudn't this be pi_loss -= c_loss since self.cost_penalty is also not negative previously.

Okay just saw it -r_loss


Update Issue Templates to follow other Powertools runtimes best practices

Update Issue Templates to follow other Powertools runtimes best practices(Python & .Net)

Add maintenance template: https://github.com/awslabs/aws-lambda-powertools-python/blob/develop/.github/ISSUE_TEMPLATE/maintenance.yml
Add Share your work template: https://github.com/awslabs/aws-lambda-powertools-python/blob/develop/.github/ISSUE_TEMPLATE/share_your_work.yml
Add Documentation Improvements template: https://github.com/awslabs/aws-lambda-powertools-python/blob/develop/.github/ISSUE_TEMPLATE/documentation_improvements.yml
Disable Blank issues and Add Ask a general question template; https://github.com/awslabs/aws-lambda-powertools-python/blob/develop/.github/ISSUE_TEMPLATE/config.yml
Add missing "triage" label to Documentation template:

closed with #1062


add support for Plug Mini (JP)

:recycle: Current situation
Plug Mini JP (model j) advertisements are not parsed. There is no support to operate Plug Mini devices.
:bulb: Proposed solution
Noble interprets Plug Mini JP differently. For some reason, advertisement payload is found in noble's advertisement.manufacturerData. An attempt is made to parse this data into meaningful information. The Plug Mini US (model g ?) may do so differently but I'm not sure.
:gear: Release Notes

support for model j PlugMini devices
parses PlugMini advertisements into something like :{
  model: 'j',
  modelName: 'WoPlugMini',
  state: 'on',
  delay: false,
  timer: false,
  syncUtcTime: false,
  overload: true,
  currentPower: 33.5   // watt
}

the SwitchbotDeviceWoPlugMini class should function in theory, but doesn't work well with Raspberry Pi 3B+ (noble disconnects when getService() is called; this happens in python too, so I think this is a hardware issue. In fact the official app sometimes doesn't work (especially when signal is weak).

:heavy_plus_sign: Additional Information
Only tested on RasperryPi3B+
Testing
(no tests were added)
Reviewer Nudging

the advertisement unit contains a new method to parse PlugMiniJ packets; coding style is a bit different, please advise if I should follow existing style
the base switchbot-device unit contains changes to the parse method; please check if my changes are acceptable

Many thanks!

@cocoabox Would you wanna add support for color bulb and light strip? I have started in the beta branch.


fix: XSS vulnerability in components tab

Fixes https://github.com/vuejs/devtools/issues/725

cc @Tofandel
Can you checkout this branch and see if this fixes the vulnerability problem?


CC License for Non-Code (Assets) Portion of Gitea

Description
Currently whole Gitea sources (codes and non-code assets including images) are licensed under MIT license. However, for non-code assets, it might be preferable to dual-license also under Creative Commons license.
Regarding CC license choice, we can choose between:

CC-BY
CC-BY-SA
CC-BY-ND
CC-BY-NC
CC-BY-NC-ND

Note: Any CC licenses with either NC (NoCommercial) or ND (NoDerivatives) clauses or both are considered non-free and may not be suitable for in particular Debian.
Please discuss here for choosing the appropriate license.

Since no one reply to this issue yet, I close.


Not getting great results

Hey @Janspiry, I was trying to infer on a few images to get their super-resolution variants.
Here's the result of the inference: https://wandb.ai/ayush-thakur/sr_ffhq/runs/9zfkm2zm

I have used the following checkpoint: 16×16 -> 128×128 on FFHQ-CelebaHQ
The output images (middle column) are definitely super-resolution but not preserving the semantics very well. Can you let me know what I might be missing?

Maybe you need to retrain it on a new dataset because there are quite different data distribution.


support H-DETR

Motivation
Support hybrid-matching method
Modification
configs/deformable_detr: add baseline configs
configs/h-deformable-detr: add h-deformable-detr configs
mmdet/models/utils/transformer.py: enable tricks and decoder_self_attn_mask
mmdet/models/dense_heads/hybrid_branch_deformable_detr_head.py: enable hybrid branch strategy and tricks
mmdet/models/dense_heads/deformable_detr_head.py: enable tricks

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

Hi @PhoenixZ810,
We'd like to express our appreciation for your valuable contributions to the mmdetection. Your efforts have significantly aided in enhancing the project's quality.
It is our pleasure to invite you to join our community thorugh Discord_Special Interest Group (SIG) channel. This is a great place to share your experiences, discuss ideas, and connect with other like-minded people. To become a part of the SIG channel, send a message to the moderator, OpenMMLab, briefly introduce yourself and mention your open-source contributions in the #introductions channel. Our team will gladly facilitate your entry. We eagerly await your presence. Please follow this link to join us: https://discord.gg/UjgXkPWNqA.
If you're on WeChat, we'd also love for you to join our community there. Just add our assistant using the WeChat ID: openmmlabwx. When sending the friend request, remember to include the remark "mmsig + Github ID".
Thanks again for your awesome contribution, and we're excited to have you as part of our community!


Upgrade vuetify

@brianhelba, what was the impetus behind this PR?

As part of #668 , I tried upgrading Vuetify. However, I realized that the v2.4.0 release has some breaking code changes, such that the site layout has problems after the upgrade. I started perform the proper code migrations, but I ran out of time to complete it. I've pushed this branch to save the work that I started, in case someone finds it helpful as a basis for completing the upgrade.

I will close this for now and we can re-open if needed. Thanks Brian.


Global Widgets Data

Overview
Updating existing widgets, where possible, to display global data.

This is starting to look great!


Feature/ui improvements

Fixes #
Describe the changes you have made in this PR -
Screenshots of the changes (If any) -
Note: Please check Allow edits from maintainers. if you would like us to assist in the PR.

Coverage increased (+0.07%) to 84.444% when pulling be31109c68a533e811e637b0badb83535f1dc9b2 on feature/UI_Improvements into f90d68617bac5f6b68f72674bfea1d8255607e87 on new_UI.


MRG, CI: Try VTK pre

Fix recent DeprecationWarnings
Try --pre build of VTK 9.1.0

The disadvantage is that in --pre we no longer test mayavi, but that seems appropriate given that Mayavi isn't being updated very actively anymore, and we're hopefully dropping support for it soon.

VTK 9.1.0 prerelease works, which is great! Hopefully once it lands in full form and in Conda we can remove some pins...
Ready for review/merge from my end


add eval fields to bilinear and linear forms

Fix eval fields for linear and bilinear forms

Tests are not working.
Example
    V  = ScalarFunctionSpace('V', domain)
    u  = element_of(V, name='u')
    F  = element_of(V, name='F')

    # Linear form l: V --> R
    l = LinearForm(v, integral(domain, F * v))

    # Create computational domain from topological domain
    domain_h = discretize(domain, ncells=ncells, comm=comm)

    # Discrete spaces
    Vh = discretize(V, domain_h, degree=degree)

    # descrtize the linear form
    lh = discretize(l, domain_h, Vh)

gives the error
  File "/home/ratnania/PYCCEL/psydac/psydac/api/discretization.py", line 660, in discretize
    return DiscreteLinearForm(a, kernel_expr, *args, **kwargs)
  File "/home/ratnania/PYCCEL/psydac/psydac/api/fem.py", line 425, in __init__
    BasicDiscrete.__init__(self, expr, kernel_expr, quad_order=quad_order, **kwargs)
  File "/home/ratnania/PYCCEL/psydac/psydac/api/basic.py", line 282, in __init__
    BasicCodeGen.__init__(self, expr, **kwargs)
  File "/home/ratnania/PYCCEL/psydac/psydac/api/basic.py", line 90, in __init__
    ast = self._create_ast( expr, tag, backend=backend, **kwargs )
  File "/home/ratnania/PYCCEL/psydac/psydac/api/basic.py", line 312, in _create_ast
    return AST(expr, kernel_expr, discrete_space, tag, quad_order=quad_order)
  File "/home/ratnania/PYCCEL/psydac/psydac/api/ast/fem.py", line 305, in __init__
    atomic_expr_field[a[0]].append(f)
KeyError: F

Tests are not working.
Example
    V  = ScalarFunctionSpace('V', domain)
    u  = element_of(V, name='u')
    F  = element_of(V, name='F')

    # Linear form l: V --> R
    l = LinearForm(v, integral(domain, F * v))

    # Create computational domain from topological domain
    domain_h = discretize(domain, ncells=ncells, comm=comm)

    # Discrete spaces
    Vh = discretize(V, domain_h, degree=degree)

    # descrtize the linear form
    lh = discretize(l, domain_h, Vh)

gives the error
  File "/home/ratnania/PYCCEL/psydac/psydac/api/discretization.py", line 660, in discretize
    return DiscreteLinearForm(a, kernel_expr, *args, **kwargs)
  File "/home/ratnania/PYCCEL/psydac/psydac/api/fem.py", line 425, in __init__
    BasicDiscrete.__init__(self, expr, kernel_expr, quad_order=quad_order, **kwargs)
  File "/home/ratnania/PYCCEL/psydac/psydac/api/basic.py", line 282, in __init__
    BasicCodeGen.__init__(self, expr, **kwargs)
  File "/home/ratnania/PYCCEL/psydac/psydac/api/basic.py", line 90, in __init__
    ast = self._create_ast( expr, tag, backend=backend, **kwargs )
  File "/home/ratnania/PYCCEL/psydac/psydac/api/basic.py", line 312, in _create_ast
    return AST(expr, kernel_expr, discrete_space, tag, quad_order=quad_order)
  File "/home/ratnania/PYCCEL/psydac/psydac/api/ast/fem.py", line 305, in __init__
    atomic_expr_field[a[0]].append(f)
KeyError: F

Tests are not working.
Example
    V  = ScalarFunctionSpace('V', domain)
    u  = element_of(V, name='u')
    F  = element_of(V, name='F')

    # Linear form l: V --> R
    l = LinearForm(v, integral(domain, F * v))

    # Create computational domain from topological domain
    domain_h = discretize(domain, ncells=ncells, comm=comm)

    # Discrete spaces
    Vh = discretize(V, domain_h, degree=degree)

    # descrtize the linear form
    lh = discretize(l, domain_h, Vh)

gives the error
  File "/home/ratnania/PYCCEL/psydac/psydac/api/discretization.py", line 660, in discretize
    return DiscreteLinearForm(a, kernel_expr, *args, **kwargs)
  File "/home/ratnania/PYCCEL/psydac/psydac/api/fem.py", line 425, in __init__
    BasicDiscrete.__init__(self, expr, kernel_expr, quad_order=quad_order, **kwargs)
  File "/home/ratnania/PYCCEL/psydac/psydac/api/basic.py", line 282, in __init__
    BasicCodeGen.__init__(self, expr, **kwargs)
  File "/home/ratnania/PYCCEL/psydac/psydac/api/basic.py", line 90, in __init__
    ast = self._create_ast( expr, tag, backend=backend, **kwargs )
  File "/home/ratnania/PYCCEL/psydac/psydac/api/basic.py", line 312, in _create_ast
    return AST(expr, kernel_expr, discrete_space, tag, quad_order=quad_order)
  File "/home/ratnania/PYCCEL/psydac/psydac/api/ast/fem.py", line 305, in __init__
    atomic_expr_field[a[0]].append(f)
KeyError: F

you need a new version of Sympde, which is waiting to be merged in Sympde

Tests are not working.
Example
    V  = ScalarFunctionSpace('V', domain)
    u  = element_of(V, name='u')
    F  = element_of(V, name='F')

    # Linear form l: V --> R
    l = LinearForm(v, integral(domain, F * v))

    # Create computational domain from topological domain
    domain_h = discretize(domain, ncells=ncells, comm=comm)

    # Discrete spaces
    Vh = discretize(V, domain_h, degree=degree)

    # descrtize the linear form
    lh = discretize(l, domain_h, Vh)

gives the error
  File "/home/ratnania/PYCCEL/psydac/psydac/api/discretization.py", line 660, in discretize
    return DiscreteLinearForm(a, kernel_expr, *args, **kwargs)
  File "/home/ratnania/PYCCEL/psydac/psydac/api/fem.py", line 425, in __init__
    BasicDiscrete.__init__(self, expr, kernel_expr, quad_order=quad_order, **kwargs)
  File "/home/ratnania/PYCCEL/psydac/psydac/api/basic.py", line 282, in __init__
    BasicCodeGen.__init__(self, expr, **kwargs)
  File "/home/ratnania/PYCCEL/psydac/psydac/api/basic.py", line 90, in __init__
    ast = self._create_ast( expr, tag, backend=backend, **kwargs )
  File "/home/ratnania/PYCCEL/psydac/psydac/api/basic.py", line 312, in _create_ast
    return AST(expr, kernel_expr, discrete_space, tag, quad_order=quad_order)
  File "/home/ratnania/PYCCEL/psydac/psydac/api/ast/fem.py", line 305, in __init__
    atomic_expr_field[a[0]].append(f)
KeyError: F

you need a new version of Sympde, which is waiting to be merged in Sympde

@ratnania The required PR was merged in SymPDE, and a new version uploaded to PyPI. You can try again now.

@ratnania The required PR was merged in SymPDE, and a new version uploaded to PyPI. You can try again now.

The unit tests still don't convince me. You solve a Poisson's equation only to obtain a field that approximates an exact solution, and then you assemble something else using this field.
You don't need to solve a Poisson's equation to get an approximate field!
You can use interpolation instead:
1. Start from an analytical Sympy expression

2. Lambdify the field so that you can evaluate it

3. Compute a discrete field that **interpolates** the analytical field

4. Compare the two fields to get an error estimate (optional)

5. Assemble whatever you want with both fields

6. Compare the matrices/vectors that you have obtained

If you don't want to use interpolation, you could obtain the discrete field using an L^2 projection of the analytical field:
a = BilinearForm((u, v), integral(domain, u * v))
l = LinearForm(v, integral(domain, F_sym * v))

But I think interpolation is faster.

I prefer to use the L2 projection.

The unit tests still don't convince me. You solve a Poisson's equation only to obtain a field that approximates an exact solution, and then you assemble something else using this field.
You don't need to solve a Poisson's equation to get an approximate field!
You can use interpolation instead:
1. Start from an analytical Sympy expression

2. Lambdify the field so that you can evaluate it

3. Compute a discrete field that **interpolates** the analytical field

4. Compare the two fields to get an error estimate (optional)

5. Assemble whatever you want with both fields

6. Compare the matrices/vectors that you have obtained

If you don't want to use interpolation, you could obtain the discrete field using an L^2 projection of the analytical field:
a = BilinearForm((u, v), integral(domain, u * v))
l = LinearForm(v, integral(domain, F_sym * v))

But I think interpolation is faster.

I prefer to use the L2 projection.

I prefer to use the L2 projection.

I think the unit tests are going to be slower if you use L2 projection. You can use the compute_interpolant method of class TensorFemSpace, which is extensively tested.

I prefer to use the L2 projection.

I think the unit tests are going to be slower if you use L2 projection. You can use the compute_interpolant method of class TensorFemSpace, which is extensively tested.

compute_interpolant

it's not that slow, it takes 6 seconds for all the tests, the other approach needs the spaces to be distributed.

compute_interpolant

it's not that slow, it takes 6 seconds for all the tests, the other approach needs the spaces to be distributed.

@saidctb you can use the following 2D non-linear Poisson problem

@saidctb you can use the following 2D non-linear Poisson problem

In order to run the non-linear Poisson test, we need the changes in SymPDE's PR #89.

In order to run the non-linear Poisson test, we need the changes in SymPDE's PR #89.


Change title

Message queue implemented in PHP with Redis as a backend.
This isn't really right anymore, is it?

Just came across this as well when I saw your change in the other PR :)

Other PR?

The change to composer.json in #171.

Seems like this can be closed.


Update contributing docs

There's a few things here and probably a lot still to do.

Removed price explorer scripts in favour of querying MongoDB directly
Moved docs from price explorer scripts into contributing guide
Added ToC to contributing guide
Updated usage-based resource docs to remove the "two levels of support" and update the output examples
Added docs for Azure creds

LGTM. We should probably add a sentence somewhere about how devs can find PriceHash when writing integration tests.

LGTM. We should probably add a sentence somewhere about how devs can find PriceHash when writing integration tests.

I found the easiest thing was to write the test with an empty pricehash then copy the output from the test failure:
 testutil.go:94:
        	Error Trace:	testutil.go:94
        	Error:      	Not equal:
        	            	expected: ""
        	            	actual  : "d991ea538483f74fd655b3233c61b427-ee3dd7e4624338037ca6fea0933a662f"

        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1 @@
        	            	-
        	            	+d991ea538483f74fd655b3233c61b427-ee3dd7e4624338037ca6fea0933a662f
        	Test:       	TestRedshiftCluster
        	Messages:   	unexpected price hash for Backup Storage (first 50 TB)

I found the easiest thing was to write the test with an empty pricehash then copy the output from the test failure

The issue I see with this is that you're relying on the test being correct. Although, this will be less of an issue if we have the hints when writing the integration tests.

Going to merge this for just now to unblock Azure contributors, but the contributing docs in general is something we need to keep iterating on.


#13246: Remove unary_backward_op.hpp

Issue : #13246
CI : PASSED

https://github.com/tenstorrent/tt-metal/actions/runs/11137666399 - passed


[Event Request Change] [Procedure Change] Codeunit 5870 Calculate BOM Tree

Codeunit 5870 "Calculate BOM Tree"
Please change parameter "Routing Line" in Publisher "OnAfterTransferFromProdRouting" to var.
OnAfterTransferFromProdRouting(BOMBuffer, RoutingLine); // ##### change parameter RoutingLine to var #####
Furthermore change parameter "Routing Line" to var likewise in procedure "CalcRoutingLineCosts".
CalcRoutingLineCosts(RoutingLine, LotSize, ParentBOMBuffer."Scrap %", BOMBuffer, ParentItem); // ##### change parameter RoutingLine to var #####
If this is not possible, please realise this alternative:
Please add BomBuffer as a var Parameter to the publisher "OnBeforeCalcRoutingLineCosts".
local procedure CalcRoutingLineCosts(RoutingLine: Record "Routing Line"; LotSize: Decimal; ScrapPct: Decimal; var BOMBuffer: Record "BOM Buffer"; ParentItem: Record Item)
var
...
begin
    // ##### Please add BOMBuffer as var parameter #####
    OnBeforeCalcRoutingLineCosts(RoutingLine, LotSize, ScrapPct, ParentItem,);

    CalcStdCost.SetProperties(WorkDate, false, false, false, '', false);
    CalcStdCost.CalcRtngLineCost(
      RoutingLine, CostCalculationMgt.CalcQtyAdjdForBOMScrap(LotSize, ScrapPct), CapCost, SubcontractedCapCost, CapOverhead);

    OnCalcRoutingLineCostsOnBeforeBOMBufferAdd(RoutingLine, LotSize, ScrapPct, CapCost, SubcontractedCapCost, CapOverhead, BOMBuffer);

    BOMBuffer.AddCapacityCost(CapCost, CapCost);
    BOMBuffer.AddSubcontrdCost(SubcontractedCapCost, SubcontractedCapCost);
    BOMBuffer.AddCapOvhdCost(CapOverhead, CapOverhead);
end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 47656.


OAM fieldPath should have leading dot

What problem are you facing?

OAM fieldPaths are specified as JSON field paths with a leading dot, for example .spec.containers[0].image

https://github.com/oam-dev/spec/blob/master/4.component.md#parameter
But in fieldPath library here, we can't add leading dot.
https://github.com/crossplane/crossplane-runtime/blob/master/pkg/fieldpath/fieldpath_test.go#L216

https://github.com/kubernetes/community/blob/ddc11a7/contributors/devel/sig-architecture/api-conventions.md#selecting-fields
Kubernetes API convention is to omit the leading dot. We use this library for Kubernetes things as well as OAM things; I think it would be easier to update the OAM convention to omit the leading dot.

I agree, we just need align with OAM spec

Seems like we'll change the OAM spec to reflect the library, rather than the other way around, so I'm going to close this issue.


Remove or fix "Edit on GitHub" button for samples

And sample index.

We should fix it with docinfo: https://mrhaki.blogspot.com/2015/04/awesome-asciidoctor-adding-custom.html

We can specify :docinfodir: so the docinfo.html files can be relocated. For this, I suggest introducing some sort of content FileCollection or expose the AsciidoctorTask. Both serve the purpose of attaching a dependency to the AsciidoctorTask. I'm leaning toward exposing the AsciidoctorTask so the code on gradle/gradle configuring the AsciidoctorTask wouldn't really depends on the implementation of the plugin.

Duplicate of #10487 ?

Not really, the symptom are the same but this is related to the new sample portal. The other issue is related to the fact that some adoc files are moved and renamed which cause older links to point at 404 location.

A fix was push for the yet-to-be release sample plugin. I'm waiting to solve the issue with the release of the plugin.

This should be fixed except for the sample index. See https://github.com/gradle/gradle/issues/11020 instead.


Add Value Sets for CertLogic

Currently the CertLogic does not use any value sets. This should be fixed because it might be needed for some country rules in the EU.

Done; available in the next version


Add All Exhibitors View to Fairs

Links to LD-31

Fails

:no_entry_sign:

Missing Test Files:

src/lib/Scenes/Fair/__fixtures__/__tests__/index-tests.ts
src/lib/Scenes/Fair/Components/__tests__/ArtistsExhibitorsWorksLink-tests.tsx

If these files are supposed to not exist, please update your PR body to include "#skip_new_tests".

Warnings

:warning:

This PR comes from a fork, and won't get JS generated for QA testing this PR inside the Emission Example app.

  Generated by :no_entry_sign: dangerJS


Add comment to cell

Excellent job BTW. Thank you so much !
How can i add a comment to a cell ?

Any update on this?  I agree that this feature would be very helpful.

Please answer- thanks!

Comments (aka Notes) added to v1.12.0


Nwt fix s3 goamz & Aliyun OSS delete

Fix Delete method's notion of subpaths for s3-goamz and aliyun OSS.
Signed-off-by: RIchard Scothern<EMAIL_ADDRESS>

cc @nwt @dmcgowan

LGTM

Current coverage is 61.08% (diff: 100%)

Merging #2005 into master will increase coverage by 0.06%

@@             master      #2005   diff @@
==========================================
  Files           125        125
  Lines         11136      11150    +14
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           6795       6811    +16
+ Misses         3453       3452     -1
+ Partials        888        887     -1

Powered by Codecov. Last update 717ac03...a621a86


feat: initial changes for support for isDevelopmentMode=enabled

Skip firebase init in dev mode.
Add logging for AuthService in dev mode
Disable PortKey initialization in dev mode

Hi @waveywaves some thoughts towards this pull request.
The separation between ENV and isDevelopmentMode is intentional in its naming and use case.
The ENV signifies the environment the app is running in, signfying configuration to load in dev / stage or prod env.
The isDevelopmentMode is a bit different in required use case, it tells the app that it can run without dependencies such as firebase, GitHub configuration etc.
The ENV development still needs firebase / gcp / GitHub etc because it simply is about running potpie's backend locally. But isDevelopmentMode disables all these to bring in support for lrunning without most dependencies and support local parsing for example, and other things in future.
You might need to redo some stuff in the PR for this.

Hey @vineetshar, ah okay. Thanks for helping me out with that. I'll update this info in the contributing doc in that case if it isn't there.

@vineetshar I have updated the PR, lmkwyt

@vineetshar the PR is ready for review. Thank you in advance.

@dhirenmathur thank you for looking into this, updated based on your review

@dhirenmathur thank you for looking into this, updated based on your review

@waveywaves one feedback left about user creation, can we do that as well please.

@vineetshar yes, shall revert to the comment asap

Approving this since disabling the mentioned things work as part of this PR. But development mode will be fully functional once we support parsing (which is to be done today 28th Nov), before that it is not really usable but is outside the scope of this specific pull request.


dead letter subscription not working with pub sub routing

I use the following declarative subscription.yaml for pub sub routing
apiVersion: dapr.io/v2alpha1
kind: Subscription
metadata:
  name: mysubscriptions
  namespace: default
spec:
  pubsubname: pubsub
  topic: inventory
  deadLetterTopic: poisonMessages
  routes:
    rules:
      - match: event.type == "Widget"
        path: /inventory/widgets
      - match: event.type == "Gadget"
        path: /inventory/gadgets
    default: /inventory/products
scopes:
  - pubsubrouting-service

and the following endpoints
app.MapPost("/inventory/widgets", (Widget widget) =>
{
    Console.WriteLine("Subscriber received : " + widget);
    return Results.Ok();
});

app.MapPost("/inventory/gadgets", (Gadget gadget) =>
{
    Console.WriteLine("Subscriber received : " + gadget);
    return Results.Ok();
});

app.MapPost("/inventory/products", (Product product) =>
{
    Console.WriteLine("Subscriber received (default) : " + product);
    return Results.Ok();
});

app.MapPost("/failedMessages", (JsonDocument message) =>
{
    Console.WriteLine("Subscriber received (dead letter) : " + message);
    return Results.Ok();
});

The routing works fine for a Widget, Gadget and also for a Thingamajig. Widget, Gadget and Thingamajig all derive from a base abstract Product. Thingamajig is correctly consumed as a Product by the endpoint for the default route thanks to polymorphic deserialization in STJ in .NET 7.0.
If a NotAProduct is published to the inventory topic then this cannot be consumed by the endpoint for the default route and the message is published to the dead letter topic.
I also have a deadletter-subscription.yaml that subscribes to the dead letter topic.
apiVersion: dapr.io/v2alpha1
kind: Subscription
metadata:
  name: deadlettertopics
  namespace: default
spec:
  pubsubname: pubsub
  topic: poisonMessages
  route: /failedMessages
scopes:
  - pubsubrouting-service

However, this dead letter subscription fails to deliver the message to the endpoint. In the logs I see
level=warning msg="retriable error returned from app while processing pub/sub event <nil>, topic: inventory, body: System.NotSupportedException: Deserialization of types without a parameterless constructor, a singular parameterized constructor, or a parameterized constructor annotated with 'JsonConstructorAttribute' is not supported. Type 'PubSubRouting.Interfaces.Product'. Path: $ | LineNumber: 0 | BytePositionInLine: 15.\n ---> System.NotSupportedException: Deserialization of types without a parameterless constructor, a singular parameterized constructor, or a parameterized constructor annotated with 'JsonConstructorAttribute' is not supported. Type 'PubSubRouting.Interfaces.Product'.\n   --- End of inner exception stack trace ---\n   at System.Text.Json.ThrowHelper.ThrowNotSupportedException(ReadStack& state, Utf8JsonReader& reader, NotSupportedException ex)\n   at System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)\n   at System.Text.Json.Serialization.JsonConverter`1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value)\n   at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)\n   at System.Text.Json.Serialization.JsonConverter`1.ReadCoreAsObject(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)\n   at System.Text.Json.JsonSerializer.ReadCore[TValue](Utf8JsonReader& reader, JsonTypeInfo jsonTypeInfo, ReadStack& state)\n   at System.Text.Json.JsonSerializer.ContinueDeserialize[TValue](ReadBufferState& bufferState, JsonReaderState& jsonReaderState, ReadStack& readStack, JsonTypeInfo jsonTypeInfo)\n   at System.Text.Json.JsonSerializer.ReadFromStreamAsync[TValue](Stream utf8Json, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken)\n   at Microsoft.AspNetCore.Http.HttpRequestJsonExtensions.ReadFromJsonAsync(HttpRequest request, Type type, JsonSerializerOptions options, CancellationToken cancellationToken)\n   at Microsoft.AspNetCore.Http.HttpRequestJsonExtensions.ReadFromJsonAsync(HttpRequest request, Type type, JsonSerializerOptions options, CancellationToken cancellationToken)\n   at Microsoft.AspNetCore.Http.RequestDelegateFactory.<HandleRequestBodyAndCompileRequestDelegateForJson>g__TryReadBodyAsync|89_0(HttpContext httpContext, Type bodyType, String parameterTypeName, String parameterName, Boolean allowEmptyRequestBody, Boolean throwOnBadRequest)\n   at Microsoft.AspNetCore.Http.RequestDelegateFactory.<>c__DisplayClass89_2.<<HandleRequestBodyAndCompileRequestDelegateForJson>b__2>d.MoveNext()\n--- End of stack trace from previous location ---\n   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)\n   at Dapr.CloudEventsMiddleware.ProcessBodyAsync(HttpContext httpContext, String charSet)\n   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)\n\nHEADERS\n=======\nHost: <IP_ADDRESS>:80\nUser-Agent: fasthttp\nContent-Type: application/cloudevents+json\ntraceparent: 00-f40eea4a4537a1c0c5060fc62864a079-f063c2e3735d44d9-01\nContent-Length: 398\nPubsubname: pubsub\n. status code returned: 500" app_id=pubsubrouting-service instance=cea8108eec8c scope=dapr.runtime type=log ver=1.9.5
level=debug msg="rabbitmq pub/sub: publishing message to poisonMessages" app_id=pubsubrouting-service instance=cea8108eec8c scope=dapr.contrib type=log ver=1.9.5
level=debug msg="rabbitmq pub/sub: acking message '' from topic 'inventory'" app_id=pubsubrouting-service instance=cea8108eec8c scope=dapr.contrib type=log ver=1.9.5
level=debug msg="no matching route for event <nil> in pubsub pubsub and topic poisonMessages; skipping" app_id=pubsubrouting-service instance=cea8108eec8c scope=dapr.runtime type=log ver=1.9.5
level=debug msg="rabbitmq pub/sub: acking message '' from topic 'poisonMessages'" app_id=pubsubrouting-service instance=cea8108eec8c scope=dapr.contrib type=log ver=1.9.5

The logs say there is no matching route for the event in the deadletter subscription and the message is simply acknowledged. What am I missing? Please advise
You can find a repro here:
https://github.com/RemcoBlok/dapr-samples/tree/main/pub-sub-routing-http

Just to clarify, this works fine when using programmatic subscriptions, but does not work with declarative subscriptions.
With the two declarative subscription yaml component files and with RabbitMQ as pubsub type I can see an inventory exchange bound to a pubsubrouting-service-inventory  queue and a poisonMessages exchange bound to a pubsubrouting-service-poisonMessages queue.
So both subscription components are picked up, but the dead letter subscription fails to deliver the message to the endpoint.

@RemcoBlok - Thanks for opening this issue. It looks like the problem you're having is in the runtime though. Especially if this works with programmatic subscriptions but not declarative. I'd recommend opening an issue in dapr/dapr.
Can you show how you did it programmatically though? Maybe it'll help show the difference between the two.


20170106 graphs

when the graphs load the selected period is 6h, however if you click on the 6h button again the graph changes slightly. This is a fix for that behaviour

@ariandora Nice! thanks - will review shortly.

@simonmorley  there is more coming to the graphs today. Just wandering - do you want to have whole numbers (y axis) on the 'Wireless Clients' charts on the Boxes list page?

@ariandora OOOOOh nice! I'll commit this then and see what's coming.
Not sure about the axis yet - will have to see locally.

@simonmorley ok, I will create a pull request for it from another branch and u can decide when u have time ;)


Feature/dh/new backend

Hey, Home page Database integration is up and ready for someone to review. Currently we only have one user.

You must go to /home_db to access the new home page

Great start
This is a good-enough start for the backend! I'll ask you to give me some time to work on some links within the dining-page PR (35) but I think we can safely merge this and start working on login, balance, etc. so long as its not dining.


Injectable Button Config #15989

just figured out how to actually update the api files!

Missing PR description and inactivity after review was left - if this is something you'd still like to contribute, feel free to reopen a rebased version


[2.x] Fix for VSelect component to use float values

Description
Fixed handling for float values in Select component.
Previously, all Number values were handled always as int.
If you used float, the Select field just didn't determine the stored value.

hey @eudaco can you share with me how you use your field?

Hi @haringsrob ,
For example, when I use a field for rating, I have a set of values like this:
 @formField('select', [             'name' => 'rating.value',             'label' => 'Rating',             'unpack' => false,             'options' => [                 [                     'value' => 5.0,                     'label' => '5.0 / 5.0'                 ],                 [                     'value' => 4.9,                     'label' => '4.9 / 5.0'                 ],                 [                     'value' => 4.8,                     'label' => '4.8 / 5.0'                 ],                 [                     'value' => 4.7,                     'label' => '4.7 / 5.0'                 ],                 [                     'value' => 4.6,                     'label' => '4.6 / 5.0'                 ],                 [                     'value' => 4.5,                     'label' => '4.5 / 5.0'                 ],                 ...             ]         ])
In this case, the field after saving the value doesn't work correctly, and the saved value isn't displayed (or displayed incorrectly)


Remove unnecesary values from paths.yml

@robwise @kaizencodes, if this passes CI, we should merge.

This change is

Coverage remained the same at 97.967% when pulling 481363b4f8f341e53d7ea01315c0daab5bd3c7e1 on remove-extra-values-webpacker-config into 0db1381022c9f2d1e2358326cd628519bef76b81 on master.


Travis Help

Hi,
What can I do when PR makes "modules/clientutils.js: line 43, col 47, This function has too many statements" ?
Regards

Can you be a bit more specific, perhaps a link to the given Travis build if possible?

Hi paazmaya,
Thanks for you solicitude.
I try to do a new PR , but it always give me 2 errors on jshint test :
https://travis-ci.org/n1k0/casperjs/jobs/53980633

The errors you are seeing are from JSHint, which is used to validate the JavaScript code.
You can run it locally after installing it with npm i -g jshint,
jshint .

Ouh yes, and to fix those, you would need to reduce the amount of parameters and statements as described in the messages

I just have a look to your gitBook  "Modern Web tools with Node.js". it's brillant. Very good job.
I'm really a begginer

How many parameters could I use ? 4 / 5
With modules/clientUtils.js do I erase some Functions or Create a new file to do the same features ?
Is there any configuration possible to change limit parameters for jshint ?

paazmaya,
I just install locally jshint but I have not the same errors:
bin/bootstrap.js: line 87, col 10, This function's cyclomatic complexity is too high. (11)
modules/casper.js: line 411, col 48, This function's cyclomatic complexity is too high. (9)
modules/casper.js: line 803, col 46, This function's cyclomatic complexity is too high. (8)
modules/casper.js: line 1342, col 36, This function's cyclomatic complexity is too high. (8)
modules/casper.js: line 1416, col 38, This function's cyclomatic complexity is too high. (11)
modules/casper.js: line 1555, col 44, This function's cyclomatic complexity is too high. (9)
modules/casper.js: line 1619, col 37, This function's cyclomatic complexity is too high. (8)
modules/casper.js: line 1718, col 40, This function's cyclomatic complexity is too high. (9)
modules/casper.js: line 2353, col 64, This function has too many parameters. (6)
modules/clientutils.js: line 310, col 34, This function's cyclomatic complexity is too high. (11)
modules/clientutils.js: line 648, col 66, This function's cyclomatic complexity is too high. (8)
modules/clientutils.js: line 696, col 67, This function's cyclomatic complexity is too high. (8)
modules/clientutils.js: line 940, col 42, This function's cyclomatic complexity is too high. (9)
modules/clientutils.js: line 43, col 47, This function has too many statements. (44)
Please Help Me

@jefleponot did you manage to solve those issues?
There is a #1133 waiting to be merged and it will offer better visibility on the linting errors

Hi @paazmaya
I solve  "waiting to be merged and it will offer better visibility on the linting errors" in creating a closure.
but "This function's cyclomatic complexity is too high" issue is always here.

Well the way to fix the given lint error, is to make the function simpler, perhaps by splitting it to a two functions.
Here is the documentation for the rule http://eslint.org/docs/rules/complexity
Please see the related links at the bottom to help you get forward.

thanks paazmaya.
I could refactor next week.

Is this issue with Travis solved?

@jefleponot This issue seems to be obsolete to me, since @paazmaya moved to using eslint and the code is annotated, so that travis build will pass (be it with lots of lint warnings, though). Closing. Feel free to re-open if your issue is still relevant.


Create a contact info block

LinkedIn 💼
Email<EMAIL_ADDRESS>📧
YouTube🎥
Phone (+51) 985116789 📞

I also have a twitter handle
Twitter


Add additional matchers

Adds some additional matchers like not, or leq. I couldn't be bothered to write tests because the code is so incredibly simple.

Any plans to put this in?

@tschuchortdev the code is simple, but it's still code, and the tests would protect it from breaking in the future. For example, if the functions get reordered, and accidentally change bodies or something we don't know yet. Verifying a basic requirement that the function delegates to the right one (by validating what it does e.g. tests would be different for lt and leq).

I think this is already merged in #508

agreed


how to close after start headless?

how do you programmatically close everything after start headless? i.e. close the bridge and shutdown the java subprocess

relevant for: https://github.com/ianhi/pycro-plus-bridge/pull/1

The bridge will close itself automatically when its desctructor runs after any Java objects are no longer in use.
The java subprocess that contains the core is just meant to automatically shut down when the python process that calls it ends, since you usually don't need to be creating and destroying cores in a single python script. But wouldn't be too hard to add a method to kill the subprocess if its needed

This will be closed by https://github.com/micro-manager/pycro-manager/pull/392
which should enable
from pycromanager.acq_utils import cleanup
cleanup()

to close any open subprocesses


Fix regression in xfce alias

Description of changes
Currently, xfce.catfish and xfce.xfce4-terminal fail to build on current master (6e514cffb59684ec3170c590830249f3a5e1f503) due to a regression in a cleanup from PR #174277. This re-adds the vte and dconf config lines again.
Fixes #174880
Things done

Built on platform(s)

[x] x86_64-linux (tested with xfce.catfish)
[x] aarch64-linux (tested with xfce.catfish)
[ ] x86_64-darwin
[ ] aarch64-darwin

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

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

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

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

[x] Fits CONTRIBUTING.md.

My solution is https://github.com/NixOS/nixpkgs/pull/174914

But @jtojnar suggestion of  moving aliases out of the scope looks better. I will update my PR.

But @jtojnar suggestion of moving aliases out of the scope looks better. I will update my PR.

Done in https://github.com/NixOS/nixpkgs/pull/174931


Create logistic_regression_sgmcmc.ipynb

Question
I'm not sure whether or not I should implement non subspace optimizer since it was removed from my stack. Therefore, I keep non subspace ones as they were
Figures
Non subspace

Subspace

I’ll merge tomorrow
On Sun, Oct 3, 2021 at 4:59 PM Aleyna Kara @.***> wrote:

Question
I'm not sure whether or not I should implement non subspace optimizer
since it was removed from my stack. Therefore, I keep non subspace one as
it was
Figures Non subspace
[image: image]
https://user-images.githubusercontent.com/36455180/135777789-01335205-1113-408a-bc29-37a2a4349164.png
Subspace
[image: image]
https://user-images.githubusercontent.com/36455180/135777793-e1db9412-844b-478a-9f4e-ed530f175378.png
You can view, comment on, or merge this pull request online at:
https://github.com/probml/probml-notebooks/pull/38
Commit Summary

Create logistic_regression_sgmcmc.ipynb
https://github.com/probml/probml-notebooks/pull/38/commits/54849c4b226e1ffdadbcc84640c79adfeba07756

File Changes

A notebooks/logistic_regression_sgmcmc.ipynb
https://github.com/probml/probml-notebooks/pull/38/files#diff-9b011a0c8b67c23e32cacd6f5a7d4a961d9e5989927c2c57df170364d90820e5
(3668)

Patch Links:

https://github.com/probml/probml-notebooks/pull/38.patch
https://github.com/probml/probml-notebooks/pull/38.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/probml/probml-notebooks/pull/38, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABDK6EGK7VZ2VVP35T5TBCTUFDU6BANCNFSM5FIE74KQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--
Sent from Gmail Mobile


Changing item the PCM buffer is not called anymore

I can see the callback called goo on first item, when I change the item with method: replaceCurrentItemWithPlayerItem
    AVPlayerItem *item = [self audioItem];
    [self.player replaceCurrentItemWithPlayerItem:item];

the callback audioPCMBufferFetchedWithCallbackBlock is not called anymore.
I've also tried:
    [self.player play];
    [self.player setMeteringEnabled:YES];

    [self.player audioPCMBufferFetchedWithCallbackBlock:^(AVAudioPCMBuffer *audioPCMBuffer, BOOL iSuccess) {

    }];

forcing metering enabled to YES again...but nothing changes.
Are there come known issues with audio/video items?
How can I fix?

Apologies for the delay in replying. This should work again if you set metering enabled to YES again. I am not sure why it was happening since I was not able to reproduce this when I set it to YES again. If you found any solution, please submit a PR.

Hey,
From the way the codebase is set up, to fix this issue do something like this to fix this issue:
[self.player setMeteringEnabled:NO];
[self.player replaceCurrentItemWithPlayerItem:item];
[self.player setMeteringEnabled:YES];

I.E make sure to turn metering off before changing the player item and then turn back on after replacement.
This behavior happens because of the -(void)setMeteringEnabled:(BOOL)iMeterinngEnabled method in ACBAudioProcessHelper.m file.
- (void)setMeteringEnabled:(BOOL)iMeteringEnabled {

    if (!self.isMeteringEnabled && iMeteringEnabled) {
       c
    } else if (self.isMeteringEnabled && !iMeteringEnabled) {
        self.player.currentItem.audioMix = nil;
    }

    _meteringEnabled = iMeteringEnabled;
}

 [self setupMetering] is never called for the new item unless you manually turn off metering and then turn it on again.

This should be fixed in v2.1. I have added a new replaceCurrentItemAndUpdateMeteringForPlayerItem which should do the above automatically. Please update here if it doesn't work for you.


Scan4all Update(nuclei/xray)?

Hello,
I still use this tool. It really makes my job a lot easier. Can you add new nuclei and xray poc files and update the app?

You can add the response directory in the config directory of the current directory where the program is running
However, the template for nuclei is not compatible with previous versions
Recently, I have been busy with AI related projects and currently have no time
Looking forward to your and others' contributions in their open-source work

this really upset me. Your project is really good. Since this project of yours is big, I could not fully understand it. Normally I would do this myself, I couldn't.


Start: Switch between preset without a delete

This PR adds a symlink creation function which create the symlink
to respective preset before creating the instance. It will allow
user to switch preset without deleting the existing vm but it has
to be stopped first.
/hold
This need to be tested on windows and some more checks are required before it become mergeable.

We do need to check if any of preset in running state before starting the preset.
Handle the situation if user already have ~/.crc/machine/crc folder and didn't deleted before this change.

Maybe make this a linux and macOS only feature for now?

@praveenkumar @cfergeau anything we still wanna consider?

Maybe make this a linux and macOS only feature for now?

due to symlinks? you can use something similar on Windows using junctions, so that should not be limitation.
Perhaps better to describe what we want to do.


Didn't write actual content to file when running examples/gpt2

when i execute command cargo run --release --example gpt2 then
automatically download shakespeare.txt file to data folder
but, it didn't write content to file from https://raw.githubusercontent.com/karpathy/char-rnn/master/data/tinyshakespeare/input.txt
because write content code just disabled on download_shakespeare_data inside of dataloader.rs

#5 PR


mystical agriculture farmland not recognized

I'm playing the ATM8 modpack and I spent far too much time trying to get the harvester pylon to work.  I found that the harvester pylon doesn't seem to recognize crops grown on the mystical agriculture farmland.  I don't know if this is a bug or intended, but I thought I would mention it.

Sorry I got it working.  I restarted the game and it started working correctly.


Duplicate Time Validator

The function of time.TimeCorrectEncodingValidator() in create_validity_validator_container() is equal to time.UtcTimeCorrectSyntaxValidator() plus time.GeneralizedTimeCorrectSyntaxValidator().
And in the end, these three are all in doc_validator of crl.
def create_validity_validator_container(additional_validators=None):
    if additional_validators is None:
        additional_validators = []
    return validation.ValidatorContainer(
        validators=[
                       crl_validity.CrlSaneValidityPeriodValidator(),
                       time.TimeCorrectEncodingValidator(),
                   ] + additional_validators,
        path='certificateList.tbsCertList'
    )

Thanks, I think the ValidatorContainer's path should be scoped to certificateList.tbsCertList.thisUpdate and certificateList.tbsCertList.nextUpdate to ensure that GeneralizedTime values appearing CRL extensions are not incorrectly flagged if they contain a year between 1950 and 2049.
Also consider having the TimeCorrectEncodingValidator merely return upon encountering an invalid syntax value instead of raising a finding that will be duplicated by the Syntax validators.


Present the test projects a quickstarts, still run them as itests

@jpkrohling could you please review and eventually merge?
The main goal of this PR is to recycle our test projects as quickstarts - i.e. to add some didactic value to them through moving them to a more prominent place, linking to them from the top level README adding a quickstart level README (initially only to the revision quickstart).

+1 , looks good to me!


Crash Report

Describe the bug

lorri watch produces error
To Reproduce
Steps to reproduce the behavior:

run lorri watch

Expected behavior

Expected the program to work.
Metadata

name = 'lorri'
operating_system = 'unix:OSX'
crate_version = '1.6.0'
explanation = '''
Panic occurred in file 'src/build_loop.rs' at line 238
'''
cause = '''
Unrecoverable error:
Io {
    msg: "AddRootError { source: Os { code: 13, kind: PermissionDenied, message: \"Permission denied\" }, msg: \"Failed to create missing nix user gc directory: /nix/var/nix/gcroots/per-user/randyburrell\" }",
}'''
method = 'Panic'
backtrace = '''

   0: 0x10e1958c3 - <unresolved>
   1: 0x10dff821e - <unresolved>
   2: 0x10df93077 - <unresolved>
   3: 0x10dfb4643 - <unresolved>
   4: 0x10e14a0e9 - <unresolved>
   5: 0x7ff80279f1d3 - __pthread_start'''

$ lorri info
GC roots exist, shell_gc_root: /Users/randyburrell/Library/Caches/com.github.nix-community.lorri.lorri.lorri/gc_roots/51c71c0c68ac338ce2c335cdd203134c/gc_root/shell_gc_root

$ uname -a
Darwin Randys-MacBook-Pro.local 22.5.0 Darwin Kernel Version 22.5.0: Mon Apr 24 20:51:50 PDT 2023; root:xnu-8796.121.2~5/RELEASE_X86_64 x86_64 i386 Darwin

Additional context

Thanks for the report

@nyarly do you have any idea what could be the possible fix? lorri is not updating my shell or environment whenever I change my nix config file.

That's a good question - I'll see how much help I can be. I'm less experienced with the Darwin environment.
Lorri wants to create a GC root for your project, and passes commands to Nix to do so. The error you're getting suggests there's a permissions issue creating the root at /nix/var/nix/gcroots/per-user/randyburrell - that may all be incredibly obvious already, but just establishing the root cause.
I'd check to see that nix-shell works with the project, and see what the permissions are on that directory - if it exists, even.
Lorri ought to have a better approach to handling this issue. We'd need to look into particulars about what it could do, though.

I'm seeing this same error every time I do a 'lorri watch', running on Windows/WSL2. I've included the toml file as text since github won't let me attach a TOML file. The original file name was "/tmp/report-2a9e5838-6784-43c0-92f0-e39b7ea898ca.toml".
name = 'lorri'
operating_system = 'unix:Ubuntu'
crate_version = '1.6.0'
explanation = '''
Panic occurred in file 'src/build_loop.rs' at line 238
'''
cause = '''
Unrecoverable error:
Io {
    msg: "AddRootError { source: Os { code: 13, kind: PermissionDenied, message: \"Permission denied\" }, msg: \"Failed to create missing nix user gc directory: /nix/var/nix/gcroots/per-user/ashebanow\" }",
}'''
method = 'Panic'
backtrace = '''

   0: 0x55b51245e2b6 - lorri::build_loop::BuildLoop::forever::h6bd3eba14169990d
   1: 0x55b512420e68 - std::panicking::try::h142838059837ff89
   2: 0x55b5124109f2 - std::sys_common::backtrace::__rust_begin_short_backtrace::h6f298be63434d7f3
   3: 0x55b512483809 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h7d1f44b2c36cceed
   4: 0x55b5125c5703 - std::sys::unix::thread::Thread::new::thread_start::h4514580219a899c5
   5: 0x7f979bd10e64 - start_thread
   6: 0x7f979bd929f0 - __GI___clone3
   7:        0x0 - <unresolved>'''

Oh, and I should add that manually creating the directory (as root) changes the error to:
Failed to symlink /home/ashebanow/.cache/lorri/gc_roots/3aada8720869adbdbdd99445d6f72682/gc_root/shell_gc_root to /nix/var/nix/gcroots/per-user/ashebanow/3aada8720869adbdbdd99445d6f72682-shell_gc_root
I then tried changing the owner of /nix/var/nix/gcroots/per-user/ashebanow to be ashebanow, and everything works.

I decided to use another solution since lori doesn't work for me

@nyarly Out of curiosity, was the bug actually fixed? If so, can you point me at the commit? I'm always interested in seeing how rust handles such situations.

No - I closed it prematurely based on Randy's departure. I'll need to be able to characterize the issue better before I could work on it (although a PR would be appreciated.)
Missing per-user GC roots strikes me as something that needs consideration: in a working Nix system (even a per-user install), those directories should already exist. I'm not sure how you'd've installed Lorri in the first place without that?

I am facing the same issue and found some possible explanation here: https://github.com/NixOS/nix/issues/8564#issuecomment-1932315668.

facing probably the same thing, here is the crash report, I am going to try to see what I can do to fix it locally first
name = 'lorri'
operating_system = 'unix:Unknown'
crate_version = '1.6.0'
explanation = '''
Panic occurred in file 'src/build_loop.rs' at line 238
'''
cause = '''
Unrecoverable error:
Io {
    msg: "AddRootError { source: Os { code: 13, kind: PermissionDenied, message: \"Permission denied\" }, msg: \"Failed to create missing nix user gc directory: /nix/var/nix/gcroots/per-user/dianao\" }",
}'''
method = 'Panic'
backtrace = '''

   0: 0x564b4927f921 - lorri::build_loop::BuildLoop::forever::h94bef58eeed4c3e7
   1: 0x564b492779f7 - std::sys_common::backtrace::__rust_begin_short_backtrace::he06bfefd46870e6b
   2: 0x564b49295622 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h1a6233b6a69fd0c2
   3: 0x564b493e7a45 - std::sys::unix::thread::Thread::new::thread_start::hdf0ce3dbe0807413
   4: 0x7f699622f383 - start_thread
   5: 0x7f69962b200c - __clone3
   6:        0x0 - <unresolved>'''

For the time being, I created my own directory in per-user with my {user} and chowned it to my user. This seems to solve it for now, but it is definitely not elegant :smile:

I'm actively working on fixing this issue in particular. It appears to be a change made in the Nix installer at some point, and I'm figuring out how best to approach gcroots now.

For the time being, @DianaOlympos has the right idea: create the per-user/$user directory manually. We'll have a real fix out soon.

For the time being, @DianaOlympos has the right idea: create the per-user/$user directory manually. We'll have a real fix out soon.

Oh sure, give Diana all the credit, even though I said the same thing in this thread four months earlier ;-)
In all seriousness, though, really happy to hear a fix is in the works. Thanks!

c.f. https://github.com/nix-community/lorri/issues/119#issuecomment-2195297067

This bug is fixed in 1.7.0, which is in nixpkgs as of NixOS 24.05. Thank you for your patience!


update from upstream

chore(deps): update returntocorp/semgrep docker tag to v1.66.2
chore(deps): update returntocorp/semgrep docker tag to v1.67.0
chore: try codecov
chore(deps): pin codecov/codecov-action action to ab904c4
chore(deps): update codecov/codecov-action action to v3.1.6
chore(deps): update codecov/codecov-action action to v4
chore(deps): lock file maintenance
chore(deps): update rust to v1.77.1
chore(deps): update rust:1.77.1 docker digest to 19daf5b
chore(deps): update rust:1.77.1 docker digest to e3d3230
chore: support for ARM64
chore: try OCI
chore: build with matrix
fix: platform name
chore: also add rust target to name
fix: filepaths were wrong
fix: use artifact v4 settings
chore: correct params
chore: debugging
chore: export docker
chore(deps): pin docker/setup-qemu-action action to 6882732
chore(deps): update npm to >=10.5.1
chore(deps): update node.js to >=20.12.1
feat: multi-platform images
chore(deps): update dependency semantic-release to v23.0.7
feat: codecov
chore: prettier
chore(deps): update codecov/codecov-action action to v4.2.0
chore(deps): update mcr.microsoft.com/devcontainers/rust:1-1-bullseye docker digest to 6a90fc9

:tada: This PR is included in version 1.5.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Fix backend.copyto for mismatched dtypes to CuPy ndarray

Fixes a parameter initialization bug. See https://github.com/chainer/chainer/pull/7965#issuecomment-525143855.

Thanks for the comments. I'll address them in a separate PR. Removed test_variable.py from this one. PTAL.

Should copyto support dtype casting?
I think copyto is a low-level function which usual users don't use.
I feel it's better to fix the caller to handle dtypes rather than adding convenient features into copyto.

Random ideas:

Automatic casting is error-prone, assuming that backend.copyto is used in model definitions more often than in training loops.
backend.copyto could always check dtypes.
strides (or just contiguity) might also matter.
numpy.copyto supports casting.

I'm okay with making it strict, not allowing different dtypes. This functions is by no means a hot spot so we can afford some checking. We could also take inspiration from numpy.copyto and allow the caller to control the casting behavior, but that's a bit overkill considering the current use cases of this function.
@toslunar do you have concrete cases where stride checking would be beneficial?

@toslunar do you have concrete cases where stride checking would be beneficial?

Not really.  Loading NHWC-layout parameters, maybe.  A low-level copy-to sounds like memcpy.

We discussed the status of the PR internally.

The issue is classified as a bug because the behavior depends on the contiguity of the arrays.
Since the master branch is stable now, it's better to align the behavior to the permissive side, i.e. allowing casting always (rather than denying it).

Jenkins, test this please.

Jenkins CI test (for commit 0aa2ad707fc4ebcea56d74fc94c95180a6ec0879, target branch master) succeeded!

@toslunar This pull-request is marked as st:test-and-merge, but there were no activities for the last 3 days. Could you check?

Jenkins, test this please.

Jenkins CI test (for commit 5bbb615cff10750bcd31fc768909cc5dc73f01e2, target branch master) succeeded!

/test

/test

Jenkins, test this please

Jenkins CI test (for commit 5bbb615cff10750bcd31fc768909cc5dc73f01e2, target branch master) failed with status FAILURE.

Jenkins, test this please

Jenkins CI test (for commit 5bbb615cff10750bcd31fc768909cc5dc73f01e2, target branch master) succeeded!

FlexCI failures: timeout of chainer/tests/chainer_tests/functions_tests/rnn_tests/test_function_slstm.py

Re-running pfCI still fails on the same tests
[FAILED] /chainer/tests/chainer_tests/functions_tests/normalization_tests/test_l2_normalization.py (60 failed, 486 passed, 102 skipped, 648 deselected in 36.70 seconds)
Also now, both of them added some extra errors.
Will clone and verify locally 😢

Jenkins, test this please

Jenkins CI test (for commit 5bbb615cff10750bcd31fc768909cc5dc73f01e2, target branch master) succeeded!

Jenkins, test this please

Jenkins CI test (for commit 5bbb615cff10750bcd31fc768909cc5dc73f01e2, target branch master) succeeded!


POC test to show bug DOS vector exists Show 1 node accepting multiple streams for the same content

What was wrong?
How was it fixed?
To-Do

[ ] Clean up commit history and use conventional commits.

The PR will never be ready for review, and it really isn't  a work in process cause there is no work to progress. I used proof of concept because that is all this PR is a proof of concept.

Sure, but I'm just recommending [WIP] since that's the conventional way we signal to each other that a pr can be effectively ignored for whatever reason

I thought that is what draft is for. This PR doesn't include WIP, but is marked as draft https://github.com/ethereum/trin/pull/1029

Closing this PR. We have implemented basic protection a while ago. This POC is unmaintained


add 'TigerVNC Viewer.app' v1.4.1

Thanks. Merged as b86132f, with the following changes:

interpolated version where possible;
added a comment clarifying that bintray.com is the official download provider;
removed :target (docs).


Fix exception "Promise has already been resolved" when reached limit of connections

When I set, for instance, max 5 connections like
new AmpMySql\Pool($config, 5);

It's throwing an exception when this limit has reached and need to wait for one of the connection releases.

I've also been hitting this issue in my codebase - I'm not 100% sure what's going on here but I rebased this as #5 .

Sorry this flew under my radar for so long. Somewhere along the way I noticed this myself in v2.x and fixed it in https://github.com/amphp/sql-common/commit/08b00eb8e37383fba7b5ecbfd1adb1f8e3b795d2. I just pushed the fix to v1.x.
Thanks for the PR!


use trait-objects for transports in real_engine

PR summary
The main impetus for this change is that, before this, we could not treat a gateway as a transport (i.e. as the sub-layer for TransportCrypto). This work was needed in order to be able to refer to a gateway as a trait-object for a transport.
Rust does not make this easy, as upcasting to super-traits is not yet supported (there are several other internals threads that similarly peter out without coming to any conclusion)
So... we make a super-fat pointer in the form of GatewayWrapper that keep references to all the forms of traits we might need.
As a side effect, I think the code is actually more ergonomic, i.e. we got to change all those explicit method calls like:
// from
Dht::post(&mut *self.network_gateway.borrow_mut(), cmd)?;
// to
self.network_gateway.as_dht_mut().post(cmd)?;

Review checklist

[ ] The story has unit or integration tests
[ ] No new bugs, and any tech-debt is identified and justified
[ ] There is enough API documentation (how to use)
[ ] There is enough code documentation (how the code works)

I really enjoy the wrappers around Arc<RwLock<T>> :+1:


Can't login in to api-store as a self singed user.

Steps to reproduce:

Register new user to IoTS as a self signed user.
Try to log in to https://localhost:9443/api-store with newly registered user.

Even after clicking login button in login UI, api-store still shows the sign in button instead of user name in right most corner.

admin can define the particular role in user update panel.
Then after clicking login button in login UI, api-store  shows the username in right most corner


Rename amop tools name from subscribe to subscriber

Codecov Report

Merging #111 into dev will increase coverage by 0.03%.
The diff coverage is 20.51%.

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


Python plugin 'binja-retdec' could not be loaded

OS Version
Windows 10
Python
I have both: 3.6 & 2.7
Binary Ninja
Version 1.1.989 Personal (2017-11-07 06:25:32)
Error messages:
Traceback (most recent call last):
  File "C:\Users\xxxx\AppData\Roaming\Binary Ninja\plugins\binja-retdec\__init__.py", line 12, in <module>
  File "C:\Users\xxxx\AppData\Roaming\Binary Ninja\plugins\binja-retdec\retdec.py", line 9, in <module>
    import requests
ImportError: No module named requests
Python plugin 'binja-retdec' could not be loaded

I did run:
pip install requests
pip3 install requests
pip3 install pygments
pip install pygments

output:
C:\Users\xxxx>pip install pygments
Requirement already satisfied: pygments in c:\python27\lib\site-packages

C:\Users\xxxx>pip install requests
Requirement already satisfied: requests in c:\python27\lib\site-packages
Requirement already satisfied: urllib3<1.23,>=1.21.1 in c:\python27\lib\site-packages (from requests)
Requirement already satisfied: idna<2.7,>=2.5 in c:\python27\lib\site-packages (from requests)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\python27\lib\site-packages (from requests)
Requirement already satisfied: certifi>=2017.4.17 in c:\python27\lib\site-packages (from requests)

This is not a bug related to the tool but to your setup.
Try importing requests from Binja Python interpreter. If it fails, then post it as a binary-ninja issue.
Thanks.

@hugsy thanks for your reply; I've tried that and it does fail indeed.
Do you happen to know what's the difference between the python interpreter the OS offers and the one inside Binary Ninja?
ps: I've already opened a ticket for support regarding this issue.

I really don't know tbh. From inside binja, you can always try to install the package by invoking pip from the embedded Python interpreter like this:
>>> import pip
>>> pip.main(['install', "requests"])

Not sure how it'll turn out though.
Anyway, I'm closing this ticket since it's not an issue of binja-retdec.


Add file system completion for #r and #load directives in scripts

We could just port http://source.roslyn.io/#Microsoft.CodeAnalysis.CSharp.InteractiveEditorFeatures/Completion/FileSystem/LoadDirectiveCompletionProvider.cs and http://source.roslyn.io/#Microsoft.CodeAnalysis.CSharp.InteractiveEditorFeatures/Completion/FileSystem/ReferenceDirectiveCompletionProvider.cs

It's turned out we need Roslyn's Microsoft.CodeAnalysis.Scripting assembly to add FSharp.Editor to it's internals visible to list, see https://github.com/dotnet/roslyn/issues/16823

Haven't looked in details but there are minor adjustments we would need to make in their code:
private static readonly Regex s_directiveRegex = new Regex(@"#load\s+(""[^""]*""?)", RegexOptions.Compiled);

in F#, it support the @ verbatim string so that regex needs to be updated to account for that.
It is a great idea to bring that feature to .fsx :+1:


Show dialog close even when event has passed

Moves DialogClose so it is rendered even when event has passed.

Another good catch! Thanks


MNT: do not hard-code the forwarded port

I'm now sticking other random things into the PR so self-merging to keep it moving again.


Add conda builds

We have a quantopian conda channel. Empyrical should be part of it so that our zipline and pyfolio conda builds can depend on it.

To me, the zipline build doesn't feel like quite the right medium for building pyfolio packages.

Right now the zipline jobs build conda packages for the versions of zipline that they test (currently 2.7 and 3.4).  I believe pyfolio has historically run ahead of zipline in its support of newer python/numpy/pandas, so probably we'd only build pyfolio packages for those configurations that zipline supports?
The zipline jobs currently build conda packages only for zipline and zipline's dependencies, and this process adds a bunch of time to each job.  I'd prefer not to have zipline developers waiting while their branch also builds packages that zipline doesn't need.

What do you think about having the pyfolio job build pyfolio packages (and any missing packages for its dependencies, e.g. empyrical), in the same way that zipline does?

That makes sense. Alternatively, we can add pyfolio to conda-forge. Ultimately I think we should move zipline and empyrical too, but pyfolio could be a good trial run.

That's a good idea.  One feature that conda-forge wouldn't give us is CI of the packaging process, which I think has been valuable for zipline.  But if the packaging of pyfolio usually works, and it's ok to wait for a release to package, then conda-forge is probably enough.

https://github.com/quantopian/pyfolio/issues/342

Sorry but I am new to here and was trying to install pyfolio through conda. It seems the package is not in Quantopian channel on conda? Just wondering how to do this.
Last time I used pip install pyfolio and seemed there were some conflicts with matplotlib and I never solved that. Just in case I am making a similar mistake this time. Thanks!


docs(icon): add link to theming icons section

🔗 Linked issue
❓ Type of change

[x]  📖 Documentation (updates to the documentation or readme)
[ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality)
[ ] ✨ New feature (a non-breaking change that adds functionality)
[ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)
[ ] 📚 Description

📝 Checklist

[ ] I have linked an issue or discussion.
[ ] I have updated the documentation accordingly.

Thanks for the review @benjamincanac 🙏


Can't Send Extension to SeaMonkey

Describe the problem and steps to reproduce it:
(Please include as many details as possible.)
What happened?

I want to send the add-on package that I have sent to Firefox for SeaMonkey. But I get Thunderbird Mail error :(

What did you expect to happen?

Establishing the necessary steps to submit the plugin

Anything else we should know?
(Please include a link to the page, screenshots and any relevant files.)

https://addons.thunderbird.net/tr/developers/upload/0923e11df7114e8e827fbf402e97e47b

Hey there, this is actually working expected but the text appears to be slightly incorrect. A GUID is required for all extensions on addons.thunderbird.net.
You can find an example of a GUID from our sample-extensions repo:
https://github.com/thundernest/sample-extensions/blob/master/hello-world/manifest.json#L9
In this case you need to add or update your browser_specific_settings area, and add an id. This id can be a unique UUID or an email like string (so maybe like<EMAIL_ADDRESS>Cheers,
Mel

Hey there, this is actually working expected but the text appears to be slightly incorrect. A GUID is required for all extensions on addons.thunderbird.net.
You can find an example of a GUID from our sample-extensions repo: https://github.com/thundernest/sample-extensions/blob/master/hello-world/manifest.json#L9
In this case you need to add or update your browser_specific_settings area, and add an id. This id can be a unique UUID or an email like string (so maybe like<EMAIL_ADDRESS>Cheers, Mel

Thanks for Help :)


feature:ieod支持moa和ticket

Codecov Report

Merging #181 (29f27b2) into v2.6.x_develop (e7acd0d) will decrease coverage by 21.51%.
The diff coverage is n/a.

@@                 Coverage Diff                 @@
##           v2.6.x_develop     #181       +/-   ##
===================================================
- Coverage           50.85%   29.33%   -21.52%
===================================================
  Files                 695        3      -692
  Lines               37136       75    -37061
===================================================
- Hits                18884       22    -18862
+ Misses              18252       53    -18199

Impacted Files
Coverage Δ

config/__init__.py
17.39% <0.00%> (-82.61%)
:arrow_down:

settings.py
26.31% <0.00%> (-44.74%)
:arrow_down:

itsm/openapi/ticket/views.py

itsm/ticket/models/ticket.py

itsm/ticket/tasks.py

iam/exceptions.py

itsm/postman/views.py

pipeline/log/models.py

pipeline/core/flow/activity/__init__.py

itsm/misc/templatetags/__init__.py

... and 683 more

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 e7acd0d...29f27b2. Read the comment docs.


Prevent duplicate Windows releases

Appveyor differs from TravisCI in that Appveyor will
kick off a CI run for a push to GitHub that is only
tags, no new commits.
As detailed in issue #1655, this combined with the
two pushes to release we do in release.sh means that
we do two release to bintray for each Windows release.
Initially I was going to merge the two git pushes into
a single push to solve the problem. After some thought,
I decided that the best solution is to make TravisCI and
Appveyor behave the same. If they continue to behave
differently in this regard, we might encounter additional
odd errors in the future.
Closes #1655

I like this choice, @SeanTAllen and @jemc.


No interface files after installing with homebrew

Hi, I installed shogun using the following command:
brew install homebrew/science/shogun
But I'm unable to locate any of the interface files (I'd like to use shogun in R).  I followed the instructions shown here: http://www.shogun-toolbox.org/examples/latest/quickstart/interfaces.html but was unable to locate shogun.R in any of the folders (include, lib, share) in the top directory.  Perhaps my installation is incorrect?  Do I need to run cmake or related commands?
I noticed that there was a similar question earlier this year; not sure if it was resolved: https://github.com/shogun-toolbox/shogun/issues/3594
Thanks very much!

@krc3004 please read about the shogun formula a bit in homebrew, i.e. brew info shogun, you will see that there are many options for the formula that are turned off by default... one of which is --with-r that will build the R interface for you.


refmt doesnt handle "//" comment syntax

Refmt doesn't handle the new Comment Syntax from https://github.com/facebook/reason/pull/2254
refmt errors:
File "X.re", line 2, characters 0-2:
Error: 0: <syntax error>

Refmt version
Reason 3.3.3 @ fefe5e4d

As far as I can tell the last update to this repo was April 2018 and this bug was raised in June 2019, so I don't see how a fix could have been released after this. This bug is still there with 3.3.3 which appears to be the latest version.

You can use bsrefmt instead of refmt. As mentioned in #103 this repo appears to be archived, it's not mentioned in the editor plugins anymore.
I commented in #103 that if you're using Vim you can run bsrefmt easily enough with the comment :!bsrefmt --in-place %
bsrefmt --version gives 3.6.0 and as far as I understand refmt was just the same base bsrefmt.
bsrefmt does fix this issue and handle single line comments.


External authentication

This change is

 minor comments

Reviewed 5 of 5 files at r1.
Review status: all files reviewed at latest revision, 3 unresolved discussions.

auth_server/authn/ext_auth.go, line 42 [r1] (raw file):

const (
	ExtAuthAllowed ExtAuthStatus = 0

I guess that iota would not make the error codes explicit ?
const (
  ExtAuthAllowed ExtAuthStatus = iota
  ExtAuthDenied
  ExtAuthNoMatch
  ExtAuthError
)

auth_server/authn/ext_auth.go, line 67 [r1] (raw file):

}

func (r ExtAuthRequest) String() string {

this is already a non-pointer receiver method, there is no need to make a copy

auth_server/authn/ext_auth.go, line 98 [r1] (raw file):

	}
	glog.V(2).Infof("%s %s -> %d", cmd.Path, cmd.Args, es)
	switch es {

why not case ExtAuthStatus(es) ?

Comments from Reviewable

Review status: 4 of 5 files reviewed at latest revision, 3 unresolved discussions.

auth_server/authn/ext_auth.go, line 42 [r1] (raw file):
Previously, mmikulicic (Marko Mikulicic) wrote…
> I guess that iota would not make the error codes explicit ?
>
> ```
> const (
>   ExtAuthAllowed ExtAuthStatus = iota
>   ExtAuthDenied
>   ExtAuthNoMatch
>   ExtAuthError
> )
> ```
>

yes, because i use them as exit codes i want it to be explicit

auth_server/authn/ext_auth.go, line 67 [r1] (raw file):
Previously, mmikulicic (Marko Mikulicic) wrote…
> this is already a non-pointer receiver method, there is no need to make a copy

Done.

auth_server/authn/ext_auth.go, line 98 [r1] (raw file):
Previously, mmikulicic (Marko Mikulicic) wrote…
> why not `case ExtAuthStatus(es)` ?

i was worried about default case, but it seems to be working fine. done.

Comments from Reviewable

Reviewed 1 of 1 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Error in disabled IPv6 system

I am running wakapi on Devuan 5 (Debian 12) and I have trouble when trying to run wakapi with IPv6 disabled in the system.
This is the error I get
2024-07-25T10:59:03.700948862+03:00 [INFO ] 👉 Listening for HTTP on <IP_ADDRESS>:3000... ✅
2024-07-25T10:59:03.701442753+03:00 [INFO ] 👉 Listening for HTTP on [::1]:3000... ✅
2024-07-25T10:59:03.701970314+03:00 [ERROR] listen tcp [::1]:3000: bind: cannot assign requested address
panic: listen tcp [::1]:3000: bind: cannot assign requested address

goroutine 54 [running]:
github.com/emvi/logbuch.(*StandardFormatter).Pnc(0x2593400?, {0xc000e60a00?, 0xc000e60a00?}, {0x0?, 0x0?, 0x0?})
        /home/runner/go/pkg/mod/github.com/emvi/logbuch@v1.2.0/standard_formatter.go:57 +0x37
github.com/emvi/logbuch.(*Logger).Fatal(0x2593400, {0xc000e60a00, 0x3c}, {0x0, 0x0, 0x0})
        /home/runner/go/pkg/mod/github.com/emvi/logbuch@v1.2.0/logger.go:132 +0x72
github.com/emvi/logbuch.Fatal(...)
        /home/runner/go/pkg/mod/github.com/emvi/logbuch@v1.2.0/funcs.go:55
main.listen.func5()
        /home/runner/work/wakapi/wakapi/main.go:426 +0x47
created by main.listen in goroutine 1
        /home/runner/work/wakapi/wakapi/main.go:424 +0x866

The line listen_ipv6: #::1 has no effect in disabling the server.  The only workaround is to enable again IPv6.
Thank for your help.
P. S. In the config file there is the comment # set to '-' to disable ipv6 but writing something like listen_ipv6: - triggers an error. Maybe the comment is misleading?

Duplicate of #620, #584.
In YAML, set listen_ipv6: '', as explained in the docs.

Thank you! It is working. The fact is that the documentation is misleading it says set to '-' to disable ipv6 not set to '' as I mentioned above.


Consider supporting iframe silent refresh in Authorization Code + PKCE flow

Recently released versions 8.x introduced support for "Code Flow" (Authorization Code + PKCE). While trying to upgrade my sample repositlory to utilize this flow I'm running into an issue.
It seems that silent refresh via an iframe is not supported with Code Flow in angular-oauth2-oidc?
Current situation
Even though you could ask for offline_access as suggested by the Code Flow docs for this library, and then utilize refresh() instead, I think the iframe method can be at least as useful, if not more. It allows you to initiate a silent refresh when starting your application (if you want this negates the need for localStorage too), and in general prevents having to ask for refresh tokens (which are often deemed too powerful for SPA's).
I shortly wondered if "the iframe silent refresh trick" would even work with Code Flow, but found some evidence that it should do so:

E.g. Auth0's silent auth tutorial also mentions using it with Code Flow
There's another Angular OAuth library promoting similar behavior
In my experimental branch I observe that the library can be made to try and do iframe-based silent refresh, it just fails to handle the iframe state after silent login

So, I think our library could and should support it just fine.
The code
Here's the relevant tryLogin method:
https://github.com/manfredsteyer/angular-oauth2-oidc/blob/a1652dc58e38377ce1e352feafb9656136e98fa0/projects/lib/src/oauth-service.ts#L1374-L1381
This method is called:

For initial login sequences, possibly grabbing the code hash fragment parameter and others from the window.location
When called based on silent renew iframe messages fired when the auth server successfully does a "no prompt" login, redirecting the iframe back to the silent-refresh.html page

As you can see in the code above, tryLoginCodeFlow is called without arguments, that is the iframe's message is discarded in the second scenario.
This makes sense, as the method does not support being called with a customHashFragment grabbed from the iframe's message:
https://github.com/manfredsteyer/angular-oauth2-oidc/blob/a1652dc58e38377ce1e352feafb9656136e98fa0/projects/lib/src/oauth-service.ts#L1398-L1401
Proposed change
I propose we change tryLoginCodeFlow to support passing along something like LoginOptions. We most likely would need to tweak things, as with the code flow the response data is in the query string parameter, not the hash fragment (I think?).

In this commit in my sample repo you can see some of the hoops I'd have to jump through in my production applications too. Would be really nice to have the silentRefresh() also supported in code flow :D - hoping the offered PR is indeed as simple as it can be!

@ErazerBrecht:

With refresh tokens you are working completely outside the user session, that's why it's called offline_access.

Honestly, this is an implementation/ configuration detail. The current best practices document suggest to limit the usage of such a refresh-token for the time of the session.
The only concern that stays -- also after respecting the current best practices document -- is that the refresh_token can be stolen via XSS. The iframe trick can help here b/c it allows to use http-only cookies.

@jeroenheijmans I'll make this a priority.


Error installing NHS.UK frontend using npm

During a gulp pipeline to compile Sass files to CSS, the command-line reported errors from math.div(dividend, divisor) calls in the following files:

/packages/core/tools/functions.scss
/packages/core/tools/_typography.scss
/packages/core/utilities/_grid-widths.scss
/packages/core/vendors/sass-mq.scss

The errors are fixed by replacing math.div(dividend, divisor) calls with dividend / divisor expressions.


Bug: Overflow cutting off labs

"After opening the app and moving from Home to Labs, the labs are cut off. But if you switch out and back within the same session, it seems to show the labs normally again:"

Haven't been able to reproduce this locally. @luxaritas have you seen this bug?

I haven't seen this, but the cutoff point seems to align with the padding of #puzzle-scroll - which also doesn't seem to have any effect?

Er, I guess looking at it again it doesn't quite match, but regardless I don't see anything that should cause this...

Ran a test build on my iPhone SE, and I am able to consistently reproduce this - I'll look into it


Fixed issue #3461 by updating matplotlib.py

Summary
Fixes issue #3461 .
Details and comments
The slash and the text denoting the number of classical bits when using circuit.draw(output="mpl") for a transpiled circuit were completely outside the circuit figure. This was because the circuit figure itself shifts a bit to the right side of the frame when drawing for transpiled circuits and the postion of the text and the slash for the number of classical bits were fixed and not relative to the circuit diagram. This was corrected by replacing their positions relative to the circuit diagram.

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

can you please post screenshots of how it looks like now, both in the case of a simple circuit and a transpiled/mapped circuit?

Sure. The simple circuit looks like

As for the transpiled circuit, it looks like


Module Creator Errors on Configure and Create Package

Description of bug
Trying to use the Module Creator to make quick test module.
Steps to reproduce

Create Page
Place Module Creator Module on Page
Provide required information to create a module. (C#, User-Control)
Module is added to page.
Click module gear icon and select develop.
Click create package
Receive Error message - "A critical error has occurred. Please check the Admin Logs for further details."

Current behavior
Error Message
Expected behavior
Install Package is created
Screenshots

Error information
AbsoluteURL:/Default.aspx
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:57bfa4bf-fc12-48c4-930a-dfe681c2fbc2
AssemblyVersion:9.8.1
PortalId:0
UserId:1
TabId:1106
RawUrl:/Testing-Pages/User-Reg-Expired/ctl/ViewSource/ModuleId/1451/ctlid/303?ReturnURL=/Testing-Pages/User-Reg-Expired&popUp=true
Referrer:http://dnndev.me/Testing-Pages/User-Reg-Expired/ctl/ViewSource/ModuleId/1451/ctlid/303?ReturnURL=/Testing-Pages/User-Reg-Expired&popUp=true
UserAgent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36 Edg/88.0.705.68
ExceptionHash:eP6xokbN5rU4oR+vp4/9NDeAwbE=
Message:Object reference not set to an instance of an object.
StackTrace:
InnerMessage:Object reference not set to an instance of an object.
InnerStackTrace:
at Dnn.Module.ModuleCreator.ViewSource.OnPackageClick(Object sender, EventArgs e)
at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e)
at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.d__523.MoveNext()
Source:
FileName:
FileLineNumber:0
FileColumnNumber:0
Method:
Server Name: DESKTOP-ITGOR02

[ ] 10.00.00 alpha build

[ ] 09.09.00 release candidate

[X] 09.08.01 latest supported release

[ ] Chrome

[ ] Firefox

[ ] Safari

[ ] Internet Explorer 11

[ ] Microsoft Edge (Classic)

[X] Microsoft Edge Chromium

The Module Creator was removed from the default install in 9.8.1.  Try installing the latest version from https://github.com/DNNCommunity/Dnn.ModuleCreator/releases/tag/v9.8.1 and see if that works.  You may be using an out-of-date version (what version of DNN did you upgrade to 9.8.1 from?)

Upgraded from DNN 9.7.2. Must of over looked or ignored the release notes indicating removal of the module. Found them now.
Upgraded the Module from prior version of 9.7.2 to the 9.8.1 version from the link you provided. Same error.
AbsoluteURL:/Default.aspx
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:4c80d9cf-ce6b-40aa-85eb-28ac69780949
AssemblyVersion:9.8.1
PortalId:0
UserId:1
TabId:1106
RawUrl:/Testing-Pages/User-Reg-Expired/ctl/ViewSource/ModuleId/1451/ctlid/303?ReturnURL=/Testing-Pages/User-Reg-Expired&popUp=true
Referrer:http://dnndev.me/Testing-Pages/User-Reg-Expired/ctl/ViewSource/ModuleId/1451/ctlid/303?ReturnURL=/Testing-Pages/User-Reg-Expired&popUp=true
UserAgent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36 Edg/88.0.705.68
ExceptionHash:eP6xokbN5rU4oR+vp4/9NDeAwbE=
Message:Object reference not set to an instance of an object.
StackTrace:
InnerMessage:Object reference not set to an instance of an object.
InnerStackTrace:
at Dnn.Module.ModuleCreator.ViewSource.OnPackageClick(Object sender, EventArgs e)
at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e)
at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.d__523.MoveNext()
Source:
FileName:
FileLineNumber:0
FileColumnNumber:0
Method:

Should I open this in the new GitHub Repo? Since it's been removed from for DNN.

Yes, if you wouldn't mind, this issue should go in that other repo now.  Thanks!

Opened in the other repo.
https://github.com/DNNCommunity/Dnn.ModuleCreator/issues/16


Implement gradle plugin

Should resolve #5

Will be in a separate repo https://github.com/raniejade/kspec-gradle-plugin.


[Python] Add ListView conversion to numpy/pandas

Describe the enhancement requested
Add conversion to numpy and pandas from ListView and LargeListView types in PyArrow.
Component(s)
Python

Issue resolved by pull request 40482
https://github.com/apache/arrow/pull/40482


Update Solc version from 0.8.18 to 0.8.24

Notable changes
v0.8.18

Use named parameters in mappings

// before
mapping(address => uint256) public balanceOf;

// after
mapping(address userAddress => uint256 balance) public balanceOf;

v0.8.19:

User-defined value types, blog post

v0.8.20:

Defaults to EVM version Shanghai
PUSH0 support: make that the target chain supports it, Arbitrum and Gnosis chain now support it.

Run cast call -r <RPC_URL> --create 0x5f, if it returns 0x then it supports it, otherwise it returns an error.

v0.8.21

Immutable variables initialization is now optional
Qualified access to foreign events now allows emitting events defined in other contracts not inherited from.

v0.8.22

Ugly unchecked increments in for loops no longer necessary to save gas
Events can now be defined at file-level, outside a contract

v0.8.23

Nothing at language level

v0.8.24

Support for Cancun features, not enabled by default
Notable Cancun features

EIP-1153: Transient storage TSTORE and TLOAD opcodes, not in Solidity yet.
EIP-4844: Blob transactions, adds blobhash() and block. blobbasefee.
EIP-6780 SELFDESTRUCT limitations: it doesn't clear storage and contract code anymore unless the contract was created in the same transaction.

v0.8.25

Defaults to EVM version Cancun.
MCOPY instead of MLOAD/MSTORE while copying byte arrays.
Emit transient storage warning only for the first occurrence of tstore.

Hardhat doesn't support v0.8.25 yet. resource


Implement meta-logging to capture changes at each solve step

Tracking lots of individual log message outputs is useful (though still tricky) for development and debugging purposes, but it's mostly useless for end users. One approach to making the output more intelligible would be to create a summary of the state of the solver at each major step in the solve loop, and potentially computing some kind of delta between these states.

Actually...once again, pub provides a great guide. Verbose/trace solver logging should look like this.
MAYBE we have a version for debugging specifically...but if the trace is well done, it's probably unnecessary.

Got the basics together, so calling this one good enough for MVP.