Plop throwing SyntaxError from node-plop

Alright, so first off, I'm pretty stoked to be taking Plop for a spin.  It seems super promising and can't wait to roll it into my workflow.
It seem as though node-plop is breaking the CLI tool at the moment.  Plop is installed both as a global and a dev dependency for my project.  However, Plop fails when I try invoking it.  I've tested my own plopfile as well as pulled the one from the example dir and also found another in a gist which was tried.  All of them yield the same issue.
Here is the stack trace for the issue:
~\AppData\Roaming\npm\node_modules\plop\node_modules\node-plop\lib\modules\node-plop.js:29
function nodePlop(plopfilePath = '', plopCfg = {}) {
                               ^

SyntaxError: Unexpected token =
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (~\AppData\Roaming\npm\node_modules\plop\node_modules\node-plop\lib\index.js:5:17)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)

Saw that too this morning.
you need node > 6 to have support for default function argument.
try to update your node version, and plop should work. But maybe then add a warning when installing plop that it requires node > 6 ?

Thanks for letting me know, I'll get a hot fix out very soon. My intent is to support node 4.0+ so this is just a defect. I wonder why the babel compile process doesn't transform this... very strange

Well, it is working, but requires a certain node version.
if your intent is to support node 4+, maybe you could add it in package.json ?
https://docs.npmjs.com/files/package.json#engines

I added engines to node-plop, but I should probably add that to plop as well. Thanks for the suggestion. I think what I need is a CI process that just runs all the tests on node 4

@amwmedia so sort of weird/interesting...I forked node-plop and when compiling, Babel transformed the default parameters properly.
The only other problem that happened thereafter was the path.posix.basename call for setting the plopfile path was triggering an error because the posix basename was returning the full path for whatever reason.  I changed the call to path.basename and now plop is working for me properly.
I can submit that as a PR if you'd like.  Although, it still doesn't solve the transpiler issue when the plugin's installed...Maybe because it's currently pulling 0.5.0 instead of 0.5.1?

Yeah it looks like Windows 7 at least isn't a fan of path.posix....

resolved in v1.7.1, please let me know if you see any other issues


Any way to know if you're in a PWA?

Wondering if there's anyway to apply conditional styling based on whether or not you're within a PWA. Would be nice to have if not.

@watzon you can check nuxt integration impl. here https://github.com/vite-pwa/nuxt/blob/main/templates/pwa.client.ts#L15 , check the link


Don't share events & Stream

Similar to https://github.com/ssbc/epidemic-broadcast-trees/pull/50. There actually was a problem. Events is declared as a global variable and we attach methods to things one, one being getMsgAuthor and so when you have multiple EBTs these end up overwriting each other.

I wonder if I should fix the this things as well, as I did in th eother branch?

Happy to see tests pass :)


Add SPIRV-Opt pass to isolate OpFunctionCall instructions

When a callee is large and contains many function calls, the inliner spends
a significant amount of time repeatedly walking the instructions looking
for inlining opportunities. This accounts for approx 10% of my profile
in dEQP-VK.ubo.random.all_shared_buffer.48 [which has 2 shaders, each of
which contains about 2K inlining opportunities] run on Swiftshader.
By splitting the callee block on either side of the call instruction, we
ensure that there is no large body of non-call instructions to repeatedly consider.
The resulting branches can be cleaned up by a later block merging pass.
Change-Id: Ib8c1420ac452aa591496f6bfedf8cc2ba7bc7416

Ah, yes. I had checked that phis would be OK, but you're right -- the back edge is a problem.

I have nothing to add beyond what Alan already mentioned. Add tests. For the OpLoopMerge, you can just move it from the post call block to the pre call block. I do not see a reason to not handle that case.
Also, do you want to add it to the standard set of optimizations here, here, and here? I can run some tests to see if it helps on some real games, which I think it will.

My concern is the following:
%header = OpLabel
OpLoopMerge %merge %continue None
OpBranchConditional %c %body1 %body2
%body1 = OpLabel
OpBranch %continue
%body2 = OpLabel
OpBranch %continue
%continue = OpLabel
OpBranchConditional %c1 %header %merge
%merge = OpLabel
...

Splitting this header would require introducing a selection merge. I don't see anything that forbids this loop, but I also doubt drivers expect to see it.

I haven't looked at the code.  But this might also break this rule for OpSampledImage:

All OpSampledImage instructions must be in the same block in which their Result  are consumed.

The inliner has special logic to ensure this rule is followed when we do actually inline a function call that is between the OpSampledImage instruction and the use of its result Id.   Pre-emptively splitting blocks at function calls will have to do the same.

There's a similar rule for when you get a scalar image or sampler from an aggregate:

Instructions for extracting a scalar image or scalar sampler out of a composite must only use dynamically-uniform indexes. They must be in the same block in which their Result id are consumed.

Just circling back to this now -- we found other ways to get the performance we need for now.
Issues with validity of the output may make this less useful for other clients of the optimizer, but for Swiftshader's case we don't actually need some of those properties. What is SPIRV-Tools' position on passes which don't preserve all the validity requirements, but are OK for their intended purpose?

We do not allow transformations that do not preserve validity.

@chrisforbes Has this been abandoned?  If so, we should close the PR.  We can open a new PR if we determine it is needed later.

Yes, we found the performance we needed a different way.


Automatically detect references on data and do not require distinction between data and metadata in configuration

The only difference between data and metadata is that metadata are kept in memory when unexposed. This could be automatically done when a Value reference to a metadata is made.

removed milestone

closed

bad idea


Add support for participant attributes

close https://github.com/livekit/client-sdk-flutter/issues/547

Passed in e2e test case
https://github.com/livekit/e2e-flutter/blob/main/lib/src/cases/room/participant_attributes.dart


Add basic controller

Pausing here to start consolidating upstream changes/fixes before continuing on.

I'll look this afternoon when I arrive
On Wed, Nov 9, 2016 at 9:33 AM David Eads<EMAIL_ADDRESS>wrote:

@deads2k commented on this pull request.
In
pkg/client/clientset_generated/internalclientset/typed/pkg/api/pkg_client.go
https://github.com/openshift/kube-aggregator/pull/5#pullrequestreview-7822989
:

@@ -52,13 +52,13 @@ func New(c restclient.Interface) *PkgApiClient {
}

func setConfigDefaults(config *restclient.Config) error {

gv, err := unversioned.ParseGroupVersion("apidiscovery.openshift.io/api")

gv, err := unversioned.ParseGroupVersion("apifederation.openshift.io/v1beta1")

@ncdc https://github.com/ncdc Where does the version here come from? I
want v1beta1, but its putting in api. I fixed the typo for the group name.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/openshift/kube-aggregator/pull/5#pullrequestreview-7822989,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAABYiVgJelljQWe39bwaSybg3dpoerdks5q8dnQgaJpZM4KtlyZ
.


feat(client): application migrations

Adds the option to run application migrations in the code, useful for e.g. migrating Discord resources after the database migrations have run.
Added an activation handler on the new migration service identifier that automatically passes a query runner to the migrations, so that the client does not have to instance one.

Chose to pass a query runner rather than using repositories as after new features/refactors, previously used repositories may not exist anymore breaking backwards compatibility. Using the query runner, this will not happen. Since the migrations are bound in the DI container, dependencies can still be injected in them if necessary.


patch: Force Heroku to rebuild docs daily

@rhampt brought it to our attention that docs are actually not being deployed even though we took action to run a Heroku GitHub Action daily in order to keep the external references updated. I checked it out, and each day the jobs end with "Everything up to date" since docs doesn't have many patches coming daily.
Hence, we need to rebuild the Heroku app everyday and I think this is solution for the same.
Signed-off-by: Vipul Gupta (@vipulgupta2048) <EMAIL_ADDRESS>

Please make sure to read the CONTRIBUTING document before opening the PR for relevant information on contributing to the documentation. Thanks!

@balena-ci I self-certify!


Row outline/hidden/collapsed attributes support (xlsx only)

@LastDragon-ru I'm converting this to Draft: feel free to ping me when you figured out how to get it working

@LastDragon-ru How about a fallback to 15 like it is done in StyleManager::getContentXmlAutomaticStylesSectionContent() ?
$defaultRowHeight = null === $this->options->DEFAULT_ROW_HEIGHT ? '15pt' : "{$this->options->DEFAULT_ROW_HEIGHT}pt";
Maybe make fallback a constant?

@LastDragon-ru @Slamdunk I found this PR, as I'm looking into using Openspout in a project, but we need the "collapsed" functionality. It looks like this PR is quite old.
What is the status actually? Are the two currently open conversations the only remaining things before this PR can be merged? Or are there more issues?
Maybe we can help completing this PR 🙂

What is the status actually?

@jhogervorst Unfortunately, I do not work on a project where this was used anymore, and have no time to update the PR. Sorry.

Are the two currently open conversations the only remaining things before this PR can be merged?

As I understand/remember

Enum should be used instead int for level

Need some workaround to add empty row without $options->DEFAULT_ROW_HEIGHT setting by user, that will not crash ms excel and/or merge multiple regions.

Maybe we can help completing this PR

Yes please: open a new one though.


Minor issues

I fixed some issues regarding Java 1.7 and 1.8. The project should now be compatible to both version.
Please review and merge.

Looks good to me. Please merge once travis is happy.
We may want to run travis on java 8 now as well, right?

Thx :thumbsup:


Link to "Compliance Framework for Industry Standards and Regulations" in section "Compliance standards" leads to a 404.

As per title above. Here is the mentioned section: https://docs.microsoft.com/en-us/microsoftteams/security-compliance-overview#compliance-standards

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

ID: ca579d63-182b-d6f5-8777-79248fa27ed9
Version Independent ID: b4c27d1b-b2f1-41ac-b15c-d12b448a539e
Content: Overview of security and compliance in Microsoft Teams - Microsoft Teams
Content Source: Teams/security-compliance-overview.md
Service: msteams
GitHub Login: @MicrosoftHeidi
Microsoft Alias: heidip

@jackhammer84 Thank you for submitting feedback and contributing to the docs. We are currently investigating this.

Hi was there any update to this link / PDF?
https://download.microsoft.com/download/1/4/3/1434ABAB-B8E9-412D-8C3A-187B5FCB7A2F/Compliance Framework document.pdf

@jackhammer84 Thank you for submitting feedback. We understand that this issue has been resolved.
Please feel free to re-open this issue if there is a specific area of the docs that we can improve or make better. Thank you.


Page with async setup does not call activated hook initially

Environment

Operating System: Linux
Node Version:     v18.18.0
Nuxt Version:     3.10.3
CLI Version:      3.10.1
Nitro Version:    2.8.1
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      devtools
Runtime Modules:  -
Build Modules:    -

But also in older Versions. In the project we are using Nuxt v3.7.4
Reproduction
https://stackblitz.com/edit/async-page-component-example?file=pages%2Findex.vue

Click on link "Async Page" => onActivated is not called up
Click on "Normal Page" => onActivated is called up directly
Click on "Async Page" link again => cached instance is loaded & onActivated is called up

Describe the bug
According to the documentation on the lifecycle of a component instance cached via keep-alive, the onActivated hook should be executed directly when the component is mounted. However, this does not seem to work if I add a top level await in the script setup and thus have an async setup. Then the onActivated hook is not called initially when mounting, only when returning to the page.
Additional context
No response
Logs
No response

Would you see if you can reproduce in a pure Vue project? I think this could be a Vue 3 + suspense issue.

I could not reproduce the bug in a pure Vue project @danielroe. In the pure Vue project, the onActivated hook is also initially called on pages with async setup.


Implemented generic code selection component

Added project codes to database
Created a generic component for fetching, displaying and selecting codes from the given code list ID

Note: The text_en column contains Finnish values for now, because otherwise they would be displayed as empty when English is selected.

True, added a new API test for testing the code endpoint. :+1: Also moved the existing project API test file under the new test directory.


[ASE-146] Fix civis parallel backend bug

When using civis.parallel.make_backend_factory with joblib, cancelling a child job fails to cancel all the remaining child jobs and hangs indefinitely
To reproduce:

Check out the minimal example: git checkout 38b0e02
Run example reproduce script: ./examples/parallel_cancel.py
Through the platform UI, cancel the first job

What's going wrong:

The first job gets cancelled, calling _CivisBackend.abort_everything which then should cancel all the other jobs
The second job is cancelled through the api in ContainerFuture.cancel
In the second job's callback, future.cancelled() == False, because the future hasn't resolved yet (I think?) and isn't aware that is_cancel_requested == True
This causes the third job to not get cancelled and the parent script hangs open indefinitely

Fix:

Disclaimer: This likely isn't the best fix but I just wanted to try an initial fix to see if it worked
I made the callback aware of is_cancel_requested, which correctly causes the the third job to get cancelled
The parent script correctly raises a CancelledError instead of hanging indefinitely

I think the CI errors might be resolved by bringing the branch up-to-date with master. See #394


[Feature]: Reorganise the error log meta data

Is there an existing issue for this?

[X] I have searched the existing issues

Summary
Here is a snapshot of an error that I faced while executing a query -

Here are some issues with the logged values -

actionId is not something I am interested in knowing.
The requestedAt property is confusing - is it a timestamp? Is so, this is also not really relevant to put here because I already have the timestamp on the top left.
The query and parameters passed are things I am actually interested in knowing, but these are embedded in a JSON dump and I need to expand them to get more details.

As an alternative to logging a JSON object which is difficult to read, can we have a better representation of the error which gives users the following details -

What is the error in plain English?
What is the stack trace?
What is the detailed error coming from my datasource?
What can I do to fix it?

Why should this be worked on?
If we have cleanly formatted error logs with relevant/contextual information, along with directions on how to fix the error, we can have users self serve and fix errors themselves.

Great points, @sribalajig! 👏
@Nikhil-Nandagopal, is the team interested in improving error handling?


Apply CodeQL/LGTM/Semmle static analysis to Envoy code base

GitHub now has CodeQL for OSS projects (https://securitylab.github.com/tools/codeql). This is Semmle (lgtm.com), a fairly powerful static analysis tool. We should look at setting this up for Envoy, analyzing reports and adding custom queries.

Apparently we automagically have some this running for our Python, https://lgtm.com/projects/g/envoyproxy/envoy?mode=list. There's apparently some Bazel joy required to get this to work with the C++.

Looking at the alerts Semmle is generating for Python it looks like it is defaulting to Python 2. glob.glob doesn't support Recursive in Python 2 (doco) but it is supported in Python 3 (doco).
I think it is being misidentified as Python 2 as there are commits that pre-date Jan 1 2017 - https://lgtm.com/help/lgtm/analysis-faqs#why-are-there-false-positives-in-my-python-project
Any concern with trying a LGTM project config file lgtm.yaml (docs) with?:
extraction:
  python:
    python_setup:
      version: 3

@moderation sounds good. I think the results from Python won't be very interesting at all, as these are just developer tools, but if we can setup a dedicated LGTM YAML and start to move it towards something we can be doing C++ analysis with, it'd be useful for sure.

At this point, future work would need:

Add proxy-specific queries, or queries that model past CVEs or regressions (https://securitylab.github.com/tools/codeql)
Provision our own machines for the analysis if we want to analyze more code at once, even nightly


mxnet error: redeclaration of 'kNone' when setting USE_CPP_PACKAGE = 1

Hi, I followed your setup instructions and could build the project successfully.
But when I set USE_CPP_PACKAGE = 1, the error occurs:

The redeclaration looks like this:
enum class QConvolutionScalingMode {
kNone = 0,
kBackward = 1,
kForward = 2,
kNone = 3
};
I tried to delete one 'kNone' in line 6866 of 'mxnet-cpp/op.h'. But the file seems to be generated by a wrapper. So the modification is useless.
Any help would be greatly appreciated.
Thank you.

Hi, would you like to check the new branch of BMXNet, which support Gluon and latest MXNet version:
https://github.com/hpi-xnor/BMXNet-v2


llama on TG codeowners change

Hi,
Could you please make the following people owners of models/demos/tg/llama3_70b?
@cglagovich
@caixunshiren

Hey you could just put up whatever changes to CODEOWNERS and it'll tag me automatically to review
No need for me to block you on this. for example: https://github.com/tenstorrent/tt-metal/pull/10490


detect conjugacies useful in BNP

detect Dirichlet + categorical and beta + categorical
(this should be easy since a categorical is just a multinomial with a single sample and I thought we actually already handled this...)

detect beta stick-breaking prior + categorical outcome (Chris has experience with stick-breaking so will look into this)

ksi_i ~ dcat(w)
w_k = z_k \prod_{l < k} (1-z_l)
z_k ~ dbeta

@paciorek Let me know if this gets to a stage where my help or code review would be useful.  Otherwise, I'll consider it off my plate, at least for now.

Case 1 is resolved by PR #578.
Will be looking into case 2.

This has been handled and we will address additional conjugacies as they arise in Claudia's work.


Occasionally, buildNpmPackage fails to download node_modules

Describe the bug
Sometimes, I get network related errors when I try to produce a buildNpmPackage. Here's an example:
node_modules/@jridgewell/gen-mapping
node_modules/@xtuc/long
node_modules/@xtuc/ieee754
node_modules/accepts
node_modules/astral-regex
node_modules/basic-auth
node_modules/bl
node_modules/brace-expansion
node_modules/decompress-tar/node_modules/bl
Error: unknown error
Caused by:
    [55] Failed sending data to the peer

From this ofborg attempt: https://logs.ofborg.org/?key=nixos/nixpkgs.257662&attempt_id=77d3e9d9-ef98-4308-b021-afff5f6c0015
I cannot reproduce this easily, and sometimes after a retry it works, so that's all the information I have to give.
https://github.com/NixOS/nixpkgs/pull/238452 and https://github.com/NixOS/nixpkgs/issues/225586 might be related?

I believe it might be npm's issue, rather than nix's, actually.

I think this is likely the same issue as #256873, I just haven't had time to dig into it

I believe it might be npm's issue, rather than nix's, actually.

It happens before npm touches stuff, so it's definitely something in our tooling

I see the same problem with fetch-npm-deps. If I run it with NIX_BUILD_CORES=1, it seems to work (or at least work more often).

So curl error 55 should be considered a network error and be retried, but it seems it isn't doing that. I'm wondering if we just need to bump curl-sys crate, so could someone who can replicate the issue test with the flake output github:lilystarlight/nixpkgs/upd/prefetch-npm-deps-deps#prefetch-npm-deps and see if it works with that?

When I added some more debug prints and searched for the error, I found people suggesting that it might be rate limiting - could be too many parallel or duplicate requests. WDYT?
Re npm: I do not face this issue in a regular npm install for an app that would error with Nix via fetch-npm-deps.

i can reproduce this quite consistently with my 32 threads
running with --cores 1 works so if anyone needs a temporary work around do that

Okay new branch for anyone who can test it: github:lilyinstarlight/nixpkgs/fix/prefetch-npm-deps-network-error-recovery
I think I've got it working now and will turn that branch into a PR soon

$ nix build github:lilyinstarlight/nixpkgs/fix/prefetch-npm-deps-network-error-recovery#webcord
[1/28/33 built, 34 copied (35.2/35.4 MiB), 49.0 MiB DL] building prefetch-npm-deps-0.1.0 (checkPhase):    Compiling isahc v1.7.2

Looks like it's stuck


add url to product page for each board

Description
We should introduce a new property to the boards.js list which is a string url to the product page of each board, suggested by @nnja ✨
Why?
This would be really handy for both contributors to understand what all of the boards are, and also for helpful error output if a board cannot be autosniffed (we can ask the user to verify that specific board with a link to the product page)

With product page you mean this for example Store Arduino UNO ?
I would be willing to do that.

@Lisiadito totally! Let me know if you run into tricky issues sourcing the right URLs. Some of the boards we support in avrgirl are no longer in circulation / available to buy. An info page would suffice if a buy link doesn't work.
Thank you! 😄

@noopkat I've found for most boards a page (buy or info). But I can't find a info page about the old ardunio nano.

@Lisiadito this is exactly the board I was thinking would give you the trouble 😂
I'll dig around for a suitable replacement. Thanks for the update!

@Lisiadito ok let me know if this is a silly idea to you, but I found the original Nano hardware info page from the Internet Archive and think this would be the most accurate we can find and still from the official website?

@noopkat hahaha I did exactly the same yesterday but wasn't sure if that's the best solution. But if that's the only link we both find I guess it's the best shot. I will add it and make the PR

I think this can be closed since the PR is merged.


[Feature Request]: Directly list all the runs when moving to Pipelines > Runs page

Feature description
As of now when user goes to Pipelines > Runs page of Dashoard they will likely switch between Scheduled and Triggered, based on their usage of the feature.
I think it would give a smoother experience having all the runs listed as soon as user reaches the Runs page. Some options I could think of:

merge scheduled and triggered runs in the same list and labeled in a way to be distinguished easily (filters would be great help) -> possible issue: handle different attributes in the same table
move the scheduled run to a dedicated page

Describe alternatives you've considered
No response
Anything else?
No response

Migrated to: https://issues.redhat.com/browse/RHOAIRFE-30


Cannot add "value" attribute to input in PDOM

In GFLB, while working on https://github.com/phetsims/gravity-force-lab-basics/issues/181, @twant and I found that the "value" attribute wasn't being set on any inputs in GFLB. aria-valuenow was though. Here is the code in the valueProperty listener:
          this.setAccessibleAttribute( 'aria-valuenow', formattedValue );

            // update the PDOM input value on Property change
            this.inputValue = formattedValue;

Furthermore, when we comment out the first line, the aria-valuenow goes away, and when we comment out the second, but change the first to try to add the value attribute, still value does not get added.
I seems like this isn't very high priority, because for screen readers valuenow seems to be filling the niche value fills. Even so this seems really buggy, and it would be good to investigate.
I wonder if inputValue option tests are working in AccessibilityTests.js? Whoever gets to this next.

I am wondering if the value is being set but it isn't showing up in the Chrome tools? For instance

No value attribute displayed in the inspected element, but getting .value looks correct.

Oh I see. We are setting the property, but not the value attribute.
document.getElementById('378-465-469-640-641-619-618-617-603').value
->"10"
document.getElementById('378-465-469-640-641-619-618-617-603').hasAttribute( 'value')
->false

I remember thinking about the difference between javascript properties and their HTML attribute counterparts during the construction of the PDOM trait, but I'm unsure about what the difference could be. @jessegreenberg in your opinion does this matter at all? It's not like we are encountering issues, @twant and I were just curious.

I remember this too, I think it is important in some cases. I remember that there are some behavior differences setting as javascript property vs HTML attibute. Here is the relevant issue, I read through it and I don't see any verification that they are different.
https://github.com/phetsims/scenery/issues/870

Honestly I can't remember, even after poking through those previous issues. Note that we have Accessibility.setAccessibleAttribute.asProperty to support differentiating these items (and a similar implementation in AccessiblePeer).
I'm glad we have the flexibility, because I remember that I tried to only use attributes before and I think it caused bugs. We can close this issue and note that we have the ability to decide how to set fields in PDOM elements.

Sound alright to you?

That sounds great, thanks.


Implement pause/unpause using the new architecture

In an effort to continue our architecture initiative, we should convert the next set of commands to the new architecture.
Acceptance Criteria:

Follows the models, services, adapters pattern that we have established
Tests check for the desired outcome (not just that functions have or haven't been called!)

Implementation Notes:
I propose we go with interfaces that look something like this:
type Suspender interface {
	Suspend(ctx context.Context, app models.Application) error
	Resume(ctx context.Context, app models.Application) error
}

Before implementing the interfaces, the person working on this ticket should write the interfaces, constructor(s) and tests before implementing the actual behavior. We can do a two-stage review: first just ensuring that the interfaces make sense, then a review of the actual implementation.

Might be helpful: https://fluxcd.io/docs/components/kustomize/api/#kustomize.toolkit.fluxcd.io/v1beta2.KustomizationSpec


Invoking prompt always return string even when JSON output is enabled.

I am using the invoke method in the typescript library to execute my prompts. The problem is that when I tried to call a prompt that returns a JSON it fails to validate the response as it is always a string.
const response = await invoke({
  projectName: 'projecy',
  slug: 'slug',
  input: {
    description,
    limit,
  },
  mode: 'auto',
  schema: z.record(z.any()),
  stream: false,
});

This is the error:
ZodError: [
  {
    "code": "invalid_type",
    "expected": "object",
    "received": "string",
    "path": [],
    "message": "Expected object, received string"
  }

It works if I set the schema to string.
JSON mode is enabled:

Any suggestion on how to fix it?

Ok, after a bit of debugging, the issue seems to be coming from the braintrust api. See screenshots:
My prompt:

JSON is enabled:

The results is a string:

ok, I am already doing that. But then what is the purpose of the schema property? Isn't it always gonna fail if it is different from string?

ok. Thanks for clarifying.  Maybe worth to add a note somewhere. It was a bit confusing in my opinion.


Creating API Gateway on AWS for Sigfox communication

Hi there,
Can you give me a tutorial how to create a API Gateway on AWS please? I'm doing a project related to bi-directional communication with Sigfox & AWS.
Thanks in advance for your time & support!

Hi: Sorry I have closed my AWS accounts so I can't show you the steps.  But I recall that when you create an AWS Lambda function, you can select an API Gateway template, and it will configure the API Gateway settings for you.
Could you try that?

You can also check this tutorial: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-create-api-as-simple-proxy-for-lambda.html

Hi, thanks for your reply. I've created a API Gateway in AWS Lambda function. I've done on configurations as your advice in Sigfox callback. However, when transferring information to data the gateway, the Sigfox callback shows an error of "502 Bad Gateway". Please have a look in the screenshoot https://imgur.com/Akqh8p5
Any suggestion? Thanks in advance!

Can you check the Sigfox callback screen: https://cdn-images-1.medium.com/max/480/1*1wzDWaToL4IXB3Ff-Js4pA.png
And check the box "Send SNI"? I think this option may be needed for AWS.
If that doesn't work, can you send me the screenshots of your Sigfox callback, as well as the AWS Lambda and API Gateway config? You can reach me at<EMAIL_ADDRESS>


Add K8S liveness and startup probes

This PR addresses https://github.com/confluentinc/streaming-ops/issues/66.

Thanks for the PR @nachomdo , I will try and review this when I have time coming up next month.

Thanks so much @rspurgeon  🙇


Delete or rename shell history: .ash_history

What type of PR is this?
/kind rule-update
Any specific area of the project related to this PR?
/area rules

What this PR does / why we need it:
Includes .ash_history in rule: Delete or rename shell history
Which issue(s) this PR fixes:

Fixes #1605
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

rule(macro truncate_shell_history): include .ash_history
rule(macro modify_shell_history): include .ash_history

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: bdashrad
To complete the pull request process, please assign kaizhe after the PR has been reviewed.
You can assign the PR to them by writing /assign @kaizhe in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

rules/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Welcome @bdashrad! It looks like this is your first PR to falcosecurity/falco 🎉

/milestone 0.32.0

/milestone 0.32.0
/cc @Kaizhe

Closing and reopening to trigger the CI
/close

@leogr: Closed this PR.

In response to this:

Closing and reopening to trigger the CI
/close

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

/reopen

@leogr: Reopened this PR.

In response to this:

/reopen

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

LGTM label has been added.  Git tree hash: d8bf707d3fcaff499c0da286aca464a434332179

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: bdashrad, leogr
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

rules/OWNERS [leogr]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Kaizhe ping :hugs:


Incorporate Known Rust Binaries for Analysis

Improve our ability to analyze Rust strings by adding well-known Rust programs to our testing process. This will help us thoroughly test and improve our Rust code detection methods.

I think this is done?


Cannot customize multiple pages with pagination like the 'blog' page

Discussed in https://github.com/alshedivat/al-folio/discussions/678

Originally posted by AtivJoshi May 21, 2022
I created a new folder called al-folio/misc and a file misc/index.html, a new folder _extras that contains all the posts that are to be displayed in the misc section and, created a new collection called extras in  _config.yml file. The misc/index.html has the following content:
---
layout: default
title: miscs
nav: true
nav_order: 3
pagination:
  enabled: true
  collection: extras
  permalink: /page/:num/
  per_page: 5
  sort_field: date
  sort_reverse: true
  trail:
    before: 1 # The number of links before the current page
    after: 3  # The number of links after the current page
---
Some text.

<!-- custom liquid code -->

Now, no matter what I put after the front-matter in misc/index.html, the misc page is always built according to the blog/index.html (i.e. the "Some text" string right after the front-matter is not displayed, instead the heading of blog/index,html is displayed ).  Although the articles in the _extras directory are all displayed correctly with pagination, the formatting is just like the "blog" page and I cannot change it. What should I do to customize the misc page?  Note that if I remove all the Liquid syntax, then the "Some text" string is displayed and the list of articles is not displayed.
Link to my relevant commit.

I tried to implement this on my site a long time back, but was unable to do it. Though, I don't know if the jekyll-paginate-v2 plugin supports multiple pages or not.
Maybe it would be a better idea to open an issue with the upstream plugin repo.


⚠ Bofrost.de has degraded performance

In bc80741, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1133 ms

Resolved: Bofrost.de performance has improved in 776b405.


Workflow for creating project and pushing existing code

Issue Description
I'm after a workflow when I already have some AppsScript code from an external source (e.g. from GitHub), and I want to create a new Google project and push the code there.
I had hoped I could do something like this:
clasp create --empty # Note, this flag doesn't exist
git clone SomeAppsScriptRepo
clasp push

Currently the only way to do this, as far as I can tell is:
clasp create --type TYPE --title TITLE
rm appsscript.json # We don't need this
git clone SomeAppsScriptRepo
clasp push

Specifications

Node version (node -v): v11.15.0
Version (clasp -v): 2.3.0
OS (Mac/Linux/Windows): Ubuntu 18.04

@multimeric What do you think of the solution proposed in #991?

So after this PR, the workflow would be:
git clone SomeAppsScriptRepo
clasp remote create <name>

Is that right? Because that would be better than even what I suggested.


Issues with develop branch

Describe the bug
I was having issues with #109 preventing me from using the release branch. As a result, I needed to try out the development branch. I have run into several issues immediately upon trying it that have kept me from trying out this application. As they all seem related or minor (and to avoid clogging the issues list about a development branch), I am just grouping them in one issue instead of making issues for each.
Issues I've found:

Logging in on a fresh instance doesn't seem to work. This is notable when the container needs to be recreated. I think the error might be coming from trying to log in when there are no users and recreating the container deletes existing users, but I'm not sure.
Bookmarking a site seems to fail if there is no favicon or if the app doesn't like the favicon
I've had some sites fail because they have an invalid URL.

To Reproduce
All of the following steps were taken to initialize my instance of Grimoire. I'll go over other steps as necessary for the specific issues I've listed:

Clone the github repository
Checkout the develop branch
Change the docker-compose file to use the develop tag instead of the latest tag
Run docker compose up

Expected behavior
I should be able to log in and add bookmarks.
Desktop:
This is what I'm using to access the web interface and what I'm using the extension on

OS: MacOS
Browser: Edge
Version: 128.0.2739.67

Additional context
I'm running the docker version of the program on a Synology NAS.
Errors
Logging in
When trying to log in after recreating the container, I get told I'm using invalid credentials and get this error:
grimoire  | 2024-09-09T20:44:53.460609538Z 420 |       e
grimoire  | 2024-09-09T20:44:53.461038738Z 421 |     );
grimoire  | 2024-09-09T20:44:53.461102663Z 422 |     if ("path" in error) {
grimoire  | 2024-09-09T20:44:53.461164725Z 423 |       let message = `Data returned from action inside ${route_id} is not serializable: ${error.message}`;
grimoire  | 2024-09-09T20:44:53.461229390Z 424 |       if (error.path !== "") message += ` (data.${error.path})`;
grimoire  | 2024-09-09T20:44:53.461286961Z 425 |       throw new Error(message);
grimoire  | 2024-09-09T20:44:53.461366833Z                   ^
grimoire  | 2024-09-09T20:44:53.461411352Z error: Data returned from action inside /login is not serializable: Cannot stringify arbitrary non-POJOs
grimoire  | 2024-09-09T20:44:53.461471066Z       at try_deserialize (/usr/src/app/build/server/index.js:425:13)
grimoire  | 2024-09-09T20:44:53.461525153Z       at /usr/src/app/build/server/index.js:1362:27
grimoire  | 2024-09-09T20:44:53.461567478Z

I think that this is because the user gets deleted on recreation, because I'm able to recreate the same user with the same details and then log in with that. I lose any bookmarks I had saved though
Favicon issues
When I try to add a bookmark to wordplayer.com, I get this error when using the extension:
grimoire  | 2024-09-09T21:09:09.431530860Z Error creating bookmark from API request undefined is not an object (evaluating 'urlMetadataMetadata?.favicons?.[0].href')

And this error when using the web interface:
grimoire  | 2024-09-09T21:12:37.637270400Z Fetching metadata for URL http://wordplayer.com/
grimoire  | 2024-09-09T21:12:38.554616951Z 66 |     url: urlMetadataMetadata?.url || urlMetadataMetadata?.["og:url"],
grimoire  | 2024-09-09T21:12:38.554874460Z 67 |     title: urlMetadataMetadata?.title || urlMetadataMetadata?.["og:title"],
grimoire  | 2024-09-09T21:12:38.554957345Z 68 |     description: urlMetadataMetadata?.description || urlMetadataMetadata?.["og:description"],
grimoire  | 2024-09-09T21:12:38.555036353Z 69 |     author: urlMetadataMetadata?.author || urlMetadataMetadata?.["twitter:creator"],
grimoire  | 2024-09-09T21:12:38.555102856Z 70 |     mainImageUrl: urlMetadataMetadata?.image || urlMetadataMetadata?.["og:image"],
grimoire  | 2024-09-09T21:12:38.555172428Z 71 |     iconUrl: getIconUrl(url, iconUrls[0] || urlMetadataMetadata?.favicons?.[0].href)
grimoire  | 2024-09-09T21:12:38.555239335Z                                                                                ^
grimoire  | 2024-09-09T21:12:38.555303689Z TypeError: undefined is not an object (evaluating 'urlMetadataMetadata?.favicons?.[0].href')
grimoire  | 2024-09-09T21:12:38.555374145Z       at /usr/src/app/build/server/chunks/get-metadata.js:71:77

Invalid URL
When I tried to bookmark a code snippet from playcode.io, I got this error when using the extension:
grimoire  | 2024-09-09T21:10:35.644667391Z Error creating bookmark from API request Invalid URL

The web interface doesn't give me any errors and it grabs all the metadata correctly according to the logs, but it doesn't display the metadata or give me the option to actually add the bookmark despite that.

Hello @reallemon - thank you for your input. It’s truly appreciated!
I'll investigate this as soon as possible and update you on my progress with the fixes. Stay tuned!

As for the below:

I think the error might be coming from trying to log in when there are no users and recreating the container deletes existing users, but I'm not sure.

In the docker-compose.yml file, we're mapping a volume to store the database and user files (currently only images). Have you created the volume and attached it to the /app/data directory inside the container?

In the docker-compose.yml file, we're mapping a volume to store the database and user files (currently only images). Have you created the volume and attached it to the /app/data directory inside the container?

Yeah, I've got that volume created and attached.

@reallemon I've spotted an issue with an invalid path being used in Dockerfile - it's fixed now and volume will work for /app/data path.
Also, there was a bug in the sign-in form, and it was resolved. Please check https://github.com/goniszewski/grimoire/releases/tag/v0.4.0-pre.3 for the updated version.


Format tag name [tag name] by [company name]

Please update your tag's name to match the format of [tag name] by [company name] since this is not your own company's tag template.
Thanks

Hello Michael,
I'm not sure to understand why do we need to change the tag name to add our company name as the company name appears in the brand.displayName field.
Example with another tag we developed:

Thank you for your answer.
Lucas

The template name has been updated according to this format: [tag name] by [company name].


[Feature] Tab shifting

General

[X] My feature does not exist in the latest version of Nexterm.
[X] I have checked that my feature has not been suggested by anyone else.

Your Idea
Idea came from this reddit comment. Make it possible to drag & drop the tabs to change their order / move them.

Kind of redundant with #25?


Fix: DO-2870: Multiselect rerenders

Motivation and Context

MultiSelect component is rerendering all elements when scrolling even when it's off-screen or not even opened.
The performance hit is proportional to the number of elements inside the scrollbar. After around 800 elements the render time takes more than 5ms and it starts to become noticeable.
In some exteme cases this can increase the total page render time by 100x.
On top of this, we're using an outdated version of Popper, which is no longer maintained. A more long-term solution would be to migrate over to Floating UI - its next evolution, which this PR also starts.
Implementation Description

Switched from usePopper to useFloating, maintaining all existing functionality.
Fixed rerendering issue when scrolling. Seems to be caused by a feature similar to autoUpdate, when elements are hidden instead of unmounted when closed. (https://floating-ui.com/docs/autoUpdate). Fixed by conditionally adding autoUpdate only when open.
Removed now redundant effect that was updating the floating element's position.

Any new dependencies Introduced

Floating UI. The next evolution of Popper.
https://floating-ui.com/docs/migration
How Has This Been Tested?

Locally in the storybook. All tests passing.
There is still one small issue of rerendering when the floating element is below the bottom edge of the screen that I haven't quite figured out, but it feels pretty minor compared to what it was before. Let me know if you have any ideas I might have missed (see gif).
PR Checklist:

[x] I have implemented all requirements? (see JIRA, project documentation).
[x] I am not affecting someone else's work, If I am, they are included as a reviewer.
[x] I have added relevant tests (unit, integration or regression).
[x] I have added comments to all the bits that are hard to follow.
[x] I have added/updated Documentation.
[x] I have updated the appropriate changelog with a line for my changes.

Screenshots (if appropriate):

BEFORE:
https://github.com/causalens/dara-ui/assets/119343173/7416556f-446a-4619-8621-16083ea0177c
AFTER:
https://github.com/causalens/dara-ui/assets/119343173/cce7e3f6-cdf2-4423-9fd3-0d127c28bdd6

What is the issue with the floating element being below the bottom edge of the screen? Is it rerendering too many times when outside view? Just curious

Yeah, it's rerendering but only when opened and only at the bottom, not at the top. It's very bizarre.

Also do we have a ticket to address this for normal select as well? I imagine it would suffer from the same problem

We have 6 other components using Popper right now, I'll go through them and apply similar fixes after this one.


PlaidLinkOnSuccessMetadata type missing account object

Hi Plaid team,
I just bumped the react-plaid-link version to 3.2.1
and when I look at the PlaidLinkOnSuccessMetadata type,
there's only the accounts object,
but if I log metadata from the onSuccess callback,
I can also see the account object.

+1
We have the same issue. It seems the TS definitions are not in sync with what's actually returned: https://github.com/plaid/react-plaid-link/blob/master/src/types/index.ts#L24-L28

Hi there all, account was deprecated a long time ago and should not be used as it cannot properly represent the case where a user selects multiple accounts (if that is enabled here). It is included in the callback to maintain backwards compatibility only. Please use accounts instead
https://plaid.com/docs/link/web/#link-web-onsuccess-metadata-account


fix: Add common handling of HTTP 403 errors

Add treatment for HTTP code 403

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


move functions to utils, Refactor

Looks good. Separating the main function entry point and putting it into a function makes it easy to move it into its own module.


"kernel does not support overlay fs" even though it does

Is this a BUG REPORT or FEATURE REQUEST?:

/kind bug

Description
podman fails to initialize telling me kernel does not support overlay fs: driver not supported. This is a standard Fedora 27 kernel. I presume this is related to the fact that I have XFS w/o dtype.
Steps to reproduce the issue:

podman --log-level debug images

Describe the results you received:
DEBU[0000] [graphdriver] trying provided driver "overlay"
DEBU[0000] overlay: override_kernelcheck=true
ERRO[0000] Could not get runtime: kernel does not support overlay fs: driver not supported

Describe the results you expected:
The list of images is presented.
Additional information you deem important (e.g. issue happens only occasionally):
Output of podman version:
Version:       0.3.4
Go Version:    go1.10
OS/Arch:       linux/amd64

Output of podman info:
could not get runtime: kernel does not support overlay fs: driver not supported

Additional environment details (AWS, VirtualBox, physical, etc.):
Fedora rawhide

Now I'm even more sure it's because of dtype b/c I created a new xfs partition with dtype and it works just fine. There, would be possible to

make the error message more precise?
and ideally suggest the user what it should do (reformat disk, use different backend)

WDYT?

I think we've seen this before - containers/storage was dropping specific error causes for certain things and instead giving a nonspecific driver not supported error. This was fixed in https://github.com/containers/storage/pull/163, but we haven't updated to pick up that fix. Let me open a PR to grab the latest version of c/storage and fix this, so we can have it resolved in the next release.

Since this is merged, I am going to close this Issue.


Updates made in default.html not showing

https://github.com/exemplumscratchmod/exemplumscratchmod.github.io I customized my default and it has been working for many weeks until today, and it put the description back and changed the header from "Exemplum" to exemplumscratchmod.github.io - and I didn't change anything.

Nm.


Attempt to reconnect after connect_error (server unreachable)

Attempt to reconnect up to 6 times after connect_error (e.g. when the server is unreachable).
My original understanding of connect_error was wrong.  After testing, what I see is that because of socket.io's reconnect logic, socketio automatically attempts a reconnect every ~5 seconds after a connect_error.  However we were (in many cases, not all due to weird race conditions) blocking this reconnect by calling socket.close().  I've changed the code to attempt up to 6 reconnects before giving up and closing the socket.
Tested by restarting and killing the connected servers.

I don't think you want to check in crazy-logic.js.
Otherwise, :+1:


Proposal: Ability to create Webpack based ng2 app

First off, great work guys!
Just an idea, and I would love to help if I can, but maybe we could have a webpack based app structure as well as SystemJS? Something along the lines of:
ng2 new myApp --webpack

I know it would require a lot of different files being added, different index.html etc, but just wondering what you guys thought! It might be nice since a lot of people are already familiar with Webpack.

if angular team goes for the features like tree-shaking, then bundling and minification with tools like rollup (for now) why distract them from it now? Well, my 2 cents..

+1

You're right alvipeo, I'll close this out for now, after talking to Mike & Zack it seems the Angular team is going more towards the SystemJS direction. So this might derail things (since a lot of things will be very different if you're using webpack).

Would be interesting to understand why they prefer SystemJS - thanks for
the response.
(Does SystemJS support chunking by routes ?)
On Monday, May 9, 2016, Mark Pieszak<EMAIL_ADDRESS>wrote:

You're right alvipeo, I'll close this out for now, after talking to Mike &
Zack it seems the Angular team is going more towards the SystemJS
direction. So this might derail things (since a lot of things will be very
different if you're using webpack).
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/angular/angular-cli/issues/676#issuecomment-217914139


help: can't login

please help. i have already installed jdk 17 and i put config, chromdriver, and lezhin comic downloader in one path

Could you run downloader with option -d and show me the logs and where chrome browser is stuck?

I dont understand how to do that. I'm a total newb

Just append option -d.

okay i did it and i cant open lezhin, here is what i got

it got redirected to the url https://www.lezhinus.com/en/login

Let me know the command that you executed on downloader.

It was something along with these line, i forgot the default location but i remember what i wrote exactly, which is java -jar lezhin-comics......
C>User>java -jar lezhin-comics-downloader-2.9.0.jar -l=en -n=SERIESCODE -d

Sorry to slow response.
I try to reproduce the error, but it failed... 😢

i think the problem was my java setup. i have no idea how to set it up so..

on that note i hope there will be lezhin downloader for android (for example: an extension as in Paperback for ios and tachi for android ) since it's easier to use


Set logo and name via env variable

[x] Default logo and name will be reservoir.market for all marketplaces
[x] Developer can set their own logo and name via the env variable

The developer can set NEXT_PUBLIC_NAVBAR_TITLE and NEXT_PUBLIC_NAVBAR_LOGO to set the title and logo in the navbar.


Reapply "Merge pull request #295 from YiqinZhang/sdcicd1328-new"

Reopening the changes that were originally merged in PR #295 by commit 57eb3332 for further review.

Add the osde2e test harness and migrated tests from osde2e. This includes improvements to the tests to not depend on osde2e.
Modified manager.Options to have no specified namespace and port.

$ make lint
...
main.go:1: : # github.com/openshift/certman-operator
./main.go:149:3: unknown field Namespace in struct literal of type manager.Options
./main.go:151:3: unknown field Port in struct literal of type manager.Options
./main.go:156:3: unknown field MetricsBindAddress in struct literal of type manager.Options
./main.go:164:11: options.Namespace undefined (type manager.Options has no field or method Namespace)
./main.go:165:28: undefined: cache.MultiNamespacedCacheBuilder (typecheck)
/*
make: *** [boilerplate/openshift/golang-osd-operator/standard.mk:186: go-check] Error 1

Commented out the CertificateReques status assertion as it fails on controller-runtime v0.16.3.
The test client does not update the status of the cert runtime object, likely due to the addition of the WithStatusSubresource() functionality.

Update 	fake.NewClientBuilder().WithScheme(s).WithRuntimeObjects(objects...).WithStatusSubresource(certRequest).Build() after controller-runtime 0.15.1 to fix the error below

make test
...
--- FAIL: TestReconcile (0.63s)
    --- FAIL: TestReconcile/reqeusts_a_new_cert (0.50s)
        certificaterequest_controller_test.go:364: Reconcile() return error: certificaterequests.certman.managed.openshift.io "clustername-1313-primary-cert-bundle" not found. was one expected? false
    --- FAIL: TestReconcile/handles_multiple_ingresses_and_cert_secrets (0.12s)
        certificaterequest_controller_test.go:364: Reconcile() return error: certificaterequests.certman.managed.openshift.io "clustername-1313-primary-cert-bundle" not found. was one expected? false

SDCICD-1326

/lgtm

/approve


Origins Forge v1.18.2-<IP_ADDRESS> - Causing Datapack Errors / Server Crash

Issue:
The most recent update of Origins is causing server crashes with the following warning - Failed to load datapacks.
debug.log
I assumed that since the errors only began after updating Origins, and because datapacks are the means with which we build custom origins, that the datapack error actually meant that the server was finding issues with the way a power or origin had been coded. Following through with this, I began testing our datapack from a list of 100+ powers and a dozen origins, slowly reintroducing items back into the server and restarting it until I managed to locate what was causing the crash. I found two powers that I believe are the culprits.
The first power is Growth, which simply produces a bonemeal effect around the caster. The second power, Change Weather, is slightly more complicated but in a fairly straightforward way, it detects the status of the weather on the server and updates it accordingly. Both powers are custom but worked without issue with the previous version of origins we were using, which was v<IP_ADDRESS>. Unfortunately, I haven't been able to identify anything within the code for these powers that immediately stands out as needing to be fixed, especially since they both worked fine before the change.
Here is the file for Growth:
growth.txt
Here is the file for Change Weather:
change_weather.txt
If it is a coding error on my end, any help would be much appreciated. Otherwise, I believe that something most likely broke in the update.
Thanks in advance!

This is a bug due to a field being wrongfully assigned on my end.
I'm in the process of sanitizing my inputs to figure out where everything went wrong.


Feature Request ( PUT ENV Variables in the node configuration)

Hello, I really like your node, but in order to fully switch to it, the ability to dynamically pass the connection parameters to the database is not enough. Would it be difficult for you to add them? For example, in this node https://flows.nodered.org/node/node-red-node-mongodb, you can set database connection parameters with envs.

Hi, thank you for this feedback and your request. I'm not 100% sure if I understand what you mean.
I guess you want to use environment variable in the mongodb configuration node to set your connection options for a specific environment. This is already possible - no additional feature necessary. Just use the ${} syntax inside a config field.
This is an example for an env variable "hostname" and "username".

I hope this fits your needs.

Yes, that's exactly what I meant, but it doesn't work for me with exactly this syntax


IBM z/OS  Get JCL job output via FTP

FTP Server OS: Unix / Windows / Embedded
FTP Server Type: Vsftpd / glFTPd / BFTPd / ProFTPD / Pure-FTPd / IBM CS FTP (z/OS, OS/400) / Windows CE / Windows Server IIS / Vax / VMS / OpenVMS / Tandem / HP NonStop
Client Computer OS: Windows / Ubuntu / Debian / Linux Mint / Arch Linux
FluentFTP Version: <IP_ADDRESS>
Framework: .NET 2 / 3.5 / 4 / 5 / 6 / 7 / 8 / UWP / Xamarin / Mono
.NET 5
We need to get JCL Job result from z/OS
I see a method OpenDataStream and if I send LIST {JobId} I can get Job Result.
I think that  if OpenDataStream can be public method we can use this easily.
I write method like this.
/// <summary>
/// Executes a command and get a stream
/// </summary>
/// <param name="command">The command to execute</param>
/// <returns>The servers reply to the command</returns>
public List<string> GetJCLResponse(string JobId)
	{
		List<string> listItems = new List<string>();
		using (var stream = OpenDataStream($"LIST {JobId} ", 0))
		{
			try
			{
				Log(FtpTraceLevel.Verbose, "+---------------------------------------+");
				{
					// GetListing will read file listings line-by-line (actually byte-by-byte)
					string buf;
					while ((buf = stream.ReadLine(Encoding)) != null)
					{
						if (buf.Length > 0)
						{
							listItems.Add(buf);
							Log(FtpTraceLevel.Verbose, "Listing:  " + buf);
						}
					}
				}

				Log(FtpTraceLevel.Verbose, "-----------------------------------------");
			}
			finally
			{
				stream.Close();
			}
		}

		return listItems;

	}

Logs :

<paste VERBOSE logs here>

Perhaps read this:
https://github.com/robinrodricks/FluentFTP/wiki/IBM-zOS-and-OS-400-Support#accessing-the-jes2-internal-reader-to-submit-batch-jobs-and-how-to-list-and-retrieve-job-output

FanGjango Thank you very much for quick response. İt is very helpful for us

Thank you. I have closed issue

@FanDjango  Thank you for support. I read this article but I think there is a problem about how can i get only one job result.
This article is not enough for solving problem. Is is very long way for getting only one job result.
FTP_Sess.GetListing("LIST"...
this function gets all of job results on Z/OS. I want to only one job result. I think it is very easy.  We can change GetListing method  for JCL jobs or Create new  method. If we send command LIST {JobId}  command it gives us like this result. We need to send command after LIST command.

Looks like a small special function is needed for this. I will think about it and report back.

Ok, I did it. Works for any type of system (you never know if this might be needed for other exotic systems). Works for ACTIVE and PASSIVE data connections. Works for proxy connections. Making OpenDataStream public would not have given us this,
The GitHub at the moment, if you want to use it before it gets merged, is:
find it here
Call it like this:
List<string> lines = FTP_Sess.GetCommandOutput("LIST JOB00044");

Output looks like this:

@FanDjango  Thank you very much. I have tested and it runs very well. Please merge to master and relase new package. It can be alpha or beta package. We can use it. Thanks again again and again

Released.
https://www.nuget.org/packages/FluentFTP/45.0.0

New: ExecuteMultiline API to execute an FTP command and return multiline output
New: Integration with FluentFTP.GnuTLS NuGet package to allow for GnuTLS TLS 1.3 streams

Thanks to @FanDjango for this awesome new API!


Video pretrained checkpoints with 8 frames?

Hello,
Congrats on the great work again! Is it possible to release pretrained checkpoints for 8 frames ?
Thanks a lot!

We have no plans to train more models at different frame counts. However, you can pass 8 frames to the existing 16 frame models by simply interpolating 8 frames -> 16 frames. Alternatively, if you edit the temporal position embedding to half of its original size, you could directly pass in 8 frames.

Just to affirm what @dbolya said, I found dropping only the pos_embed_temporal and decoder_pos_embed from the pretrained checkpoint was enough, and had no observable negative effects during training. The network trained with 8 frames converged more quickly than that trained with 16 frames anyway.


If Keyboard appears on top of Flip view and then closed, Flip view is not visible after that.

If Keyboard appears on top of Flip view and then closed, Flip view is not visible after that. It reappears if touched on the placeholder

Thank you for using EasyFlipView. Looks like any bug. I will check it later tonight and see what's the issue?
Can you please share any GIF etc. so that I can understand it more clearly?
Thanks


RTPS compile error  because of FASTRTPSGEN_DIR

I found compile error happens when there is no "FASTRTPSGEN_DIR" environment variable for RTPS.
Especially, the environment variable is not set, if the fastrtpsgen is installed by binary files.
To solve this problem, I check and insert the fastrtpsgen path automatically in python code.

I found it is related to #13756

Is there any problem? Could you please check it... @TSC21

Is there any problem? Could you please check it... @TSC21

All good! Thanks for the fix!

Thanks @stmoon!


api-put-object-streaming: Removed unnecessary partBuf copy to save allocations; no race detected.

Hi and thanks for the great work so far. 👋🏽
Following our discussion in https://github.com/minio/mc/issues/3376#issuecomment-806013131 I performed extended testing, benchmarking and profiling to figure out what's best for minio-go and the Thanos issue.
Proving tests:

Race test
Benchmark

No matter how hard I tried, I could not reproduce ANY race the fix was made for. I even try to trigger retries, and all works fine for Linux *os.File. I tried to look for any repro tests on your side but none was provided to prove that there is indeed any race. Perhaps the race was detected on certain OS? (windows/MacOS?)
The benchmarks show significant allocation problems while copying large files (PartSize 64MB). I also optimize naive chunk preallocations.
benchstat v1.txt v2-upgr.txt
name       old time/op    new time/op    delta
Upload-12     300ms ± 7%     283ms ± 7%     ~     (p=0.310 n=5+5)

name       old alloc/op   new alloc/op   delta
Upload-12    69.3MB ± 0%     0.5MB ± 3%  -99.23%  (p=0.008 n=5+5)

name       old allocs/op  new allocs/op  delta
Upload-12     3.33k ± 2%     3.16k ± 1%   -5.01%  (p=0.008 n=5+5)

I know you reduced default PartSize to 16MB (from 128MB) to reduce default allocation spread, but this is still unacceptable and 16MB part size have other tradeoffs (latency). So in this PR I propose to revert that fix and optimize allocations. I would love to be e able to use minio-go in Thanos and related projects, but we need this path to be leaner. One of the components Thanos sidecar is usually deployed with limited mem (100-200 MB), so optimizations in this library matters.
Perhaps if you don't want to accept this PR because you are afraid of (IMO unproven) potential races, you would be happy with adding extra option to Put API like ReuseReader?
I am happy to be proven wrong that we indeed have raced here (e.g I did not test other OS than Linux), but we can't accept 60x allocation regression for unexisting race. Let me know what do you think, thanks! 🤗
This version is also proposed to be used in Thanos: https://github.com/thanos-io/thanos/pull/5474
Fixes: https://github.com/thanos-io/thanos/issues/3967
Fixes: https://github.com/thanos-io/thanos/issues/5393

Let me think about this more.

@bwplotka
ReadAt is concurrency safe on *os.File, but the io.ReaderAt interface does not mandate that this is safe for all implementations.
Therefore assuming that it is, can lead to subtle bugs.

Ack.
Would you accept an explicit option to reuse reader in options then? (:

Ack.
Would you accept an explicit option to reuse reader in options then? (:

what I would suggest is we split the function instead of a generic ReaderAt make that ReaderAt by explicit *os.File - rest of them pay the penalty of being io.Reader instead since we can't reliably guarantee that concurrency is possible.

The actual issue because of a "retry" - I reproduced the problem even with this PR
==================
WARNING: DATA RACE
Write at 0x00c0034d2a08 by goroutine 132:
  io.(*SectionReader).Seek()
      /home/harsha/sdk/go1.18.3/src/io/io.go:534 +0x165
  github.com/minio/minio-go/v7.Client.executeMethod()
      /home/harsha/go/src/github.com/minio/minio-go/api.go:564 +0x4dd
  github.com/minio/minio-go/v7.Client.uploadPart()
      /home/harsha/go/src/github.com/minio/minio-go/api-put-object-multipart.go:282 +0x533
  github.com/minio/minio-go/v7.Client.putObjectMultipartStreamFromReadAt.func2()
      /home/harsha/go/src/github.com/minio/minio-go/api-put-object-streaming.go:171 +0x651
  github.com/minio/minio-go/v7.Client.putObjectMultipartStreamFromReadAt.func3()
      /home/harsha/go/src/github.com/minio/minio-go/api-put-object-streaming.go:192 +0x47

Previous write at 0x00c0034d2a08 by goroutine 401:
  ??()
      -:0 +0xffffffffffffffff
  net.(*conn).Write()
      /home/harsha/sdk/go1.18.3/src/net/net.go:195 +0xa4
  net.(*TCPConn).Write()
      <autogenerated>:1 +0x64
  net.(*writerOnly).Write()
      <autogenerated>:1 +0x76
  io.copyBuffer()
      /home/harsha/sdk/go1.18.3/src/io/io.go:428 +0x2dc
  io.Copy()
      /home/harsha/sdk/go1.18.3/src/io/io.go:385 +0x8d
  net.genericReadFrom()
      /home/harsha/sdk/go1.18.3/src/net/net.go:662 +0x28
  net.(*TCPConn).readFrom()
      /home/harsha/sdk/go1.18.3/src/net/tcpsock_posix.go:54 +0xcc
  net.(*TCPConn).ReadFrom()
      /home/harsha/sdk/go1.18.3/src/net/tcpsock.go:130 +0x68
  io.copyBuffer()
      /home/harsha/sdk/go1.18.3/src/io/io.go:412 +0x1c2
  io.Copy()
      /home/harsha/sdk/go1.18.3/src/io/io.go:385 +0x86
  net/http.persistConnWriter.ReadFrom()
      /home/harsha/sdk/go1.18.3/src/net/http/transport.go:1775 +0x18
  bufio.(*Writer).ReadFrom()
      /home/harsha/sdk/go1.18.3/src/bufio/bufio.go:768 +0x28d
  io.copyBuffer()
      /home/harsha/sdk/go1.18.3/src/io/io.go:412 +0x1c2
  io.Copy()
      /home/harsha/sdk/go1.18.3/src/io/io.go:385 +0x64
  net/http.(*transferWriter).doBodyCopy()
      /home/harsha/sdk/go1.18.3/src/net/http/transfer.go:411 +0x3e
  net/http.(*transferWriter).writeBody()
      /home/harsha/sdk/go1.18.3/src/net/http/transfer.go:369 +0x799
  net/http.(*Request).write()
      /home/harsha/sdk/go1.18.3/src/net/http/request.go:698 +0x1197
  net/http.(*persistConn).writeLoop()
      /home/harsha/sdk/go1.18.3/src/net/http/transport.go:2395 +0x2e4
  net/http.(*Transport).dialConn.func6()
      /home/harsha/sdk/go1.18.3/src/net/http/transport.go:1751 +0x39

Goroutine 132 (running) created at:
  github.com/minio/minio-go/v7.Client.putObjectMultipartStreamFromReadAt()
      /home/harsha/go/src/github.com/minio/minio-go/api-put-object-streaming.go:151 +0x79d
  github.com/minio/minio-go/v7.Client.putObjectMultipartStream()
      /home/harsha/go/src/github.com/minio/minio-go/api-put-object-streaming.go:49 +0x31a
  github.com/minio/minio-go/v7.Client.putObjectCommon()
      /home/harsha/go/src/github.com/minio/minio-go/api-put-object.go:241 +0x9f7
  github.com/minio/minio-go/v7.Client.PutObject()
      /home/harsha/go/src/github.com/minio/minio-go/api-put-object.go:208 +0x384
  main.main.func1()
      /home/harsha/go/src/github.com/minio/minio-go/race-test.go:95 +0x493
  main.main.func3()
      /home/harsha/go/src/github.com/minio/minio-go/race-test.go:111 +0x47

You are not able to reproduce this because you are not seeing the issue with retrying that is
triggered when one of the parallel uploads fails - since there is a Seek() call to re-upload, that
is inherently racy @bwplotka
To avoid that Seek we have to make sure that Seeking is not allowed if you are going to
use ReaderAt without buffering.
Instead, the Seek should be converted into a ReaderAt call again to avoid offset in parallel
or add a locked "SectionReader"
I reproduced it by taking the server up and down multiple times - this triggers the race.

Ack. I manually injected fault to "executeMethod" to trigger the race, but unsuccessfully.
Thanks for repro, it seems we know what we are looking for now then!

Let me fix it in your PR and send a PR to your fork - we can then merge it.

Amazing 😱
Your are the best all! <#


Revamp Backend Draft.

This is the draft for revamping the backend to follow our spec.

I'm going to be working on IP stuff from this branch, if that's ok


python3Packages.rtfunicode: init at 1.4

Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] 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

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.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

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 285275 run on x86_64-linux 1

4 packages built:

python311Packages.rtfunicode
python311Packages.rtfunicode.dist
python312Packages.rtfunicode
python312Packages.rtfunicode.dist

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/3369

@ofborg build python311Packages.rtfunicode python312Packages.rtfunicode


Control Center shows wrong path in file transfer.

Steps to reproduce:

Create environment.
Go to transfer file.
Click to one folder several times.

Result: Control Center will show incorrect path.

here is the screenshot:

Fixed in master


Add hash lock and secret lock routes

Add hash lock and secret lock routes.

Closes #188

Closes #187


.../dlib-face-recognition-android/third_party/miniglog/Android.mk: No such file or directory

Hi Gaurav. Thank you for interesting project!
I have small problem when I build native code (for armeabi-v7a), I can get the required libraries through:
./envsetup
But when it comes to:
ndk-build -j 2
It said:
TOP Level Path: <local_path>/dlib-face-recognition-android
jni/Android.mk:25: <local_path>/dlib-face-recognition-android/third_party/miniglog/Android.mk: No such file or directory
jni/jni_common/Android.mk:10: "Build jni_common"
jni/jni_common/Android.mk:16: jni/jni_common
"Won't build test's executable file"
.../Android/Sdk/ndk-bundle/build/core/build-binary.mk:693: Android NDK: Module android_dlib depends on undefined modules: miniglog
.../Android/Sdk/ndk-bundle/build/core/build-binary.mk:706: *** Android NDK: Aborting (set APP_ALLOW_MISSING_DEPS=true to allow missing dependencies)    .  Stop.

What should I do?
Thank you very much!

Hi Tan,
I just wanted to make sure that you tried git clone with the --recursive flag.
This is the complete command
git clone --recursive https://github.com/gv22ga/dlib-face-recognition-android.git

Thank you for your answer.
Yes. I cloned the repo with the --recursive flag.

@gv22ga  used --recursive the third_party is empty!!

For face detection, you can look into detect method of FaceRec class. FaceRec.java
Not sure why --recursive flag isn't working..

Anyone solve this issue?


Wondering why triggers are updated with overwrite set to false

I have a wskdeploy manifest yaml file that looks like:
package:
  name: messagehub-trigger
  version: 1.0
  license: Apache-2.0
  namespace: _
  dependencies:
    openwhisk-messagehub:
      location: /whisk.system/messaging
      inputs:
        kafka_brokers_sasl: $KAFKA_BROKERS
        user: $MESSAGEHUB_USER
        password: $MESSAGEHUB_PASS
        kafka_admin_url: $KAFKA_ADMIN_URL
  actions:
    process-message:
      location: actions/process-message.js
  triggers:
    message-received-trigger:
      source: openwhisk-messagehub/messageHubFeed
      inputs:
        isJSONData: true
        topic: $KAFKA_TOPIC
  rules:
      log-message-rule:
        trigger: message-received-trigger
        action: messagehub-trigger/process-message

When I changed the source of the message-received-trigger and ran wskdeploy I noticed that OpenWhisk didn't actually change the trigger, and after running with verbose I saw that the request was:
REQUEST:
[PUT]	https://openwhisk.ng.bluemix.net:443/api/v1/namespaces/_/triggers/message-received-trigger?overwrite=false

Why is it that everything else is sent with overwrite=true but trigger creations are sent with overwrite=false?

It looks like the relevant code is here and that trigger feed actions are treated differently: https://github.com/apache/incubator-openwhisk-wskdeploy/blob/a67e7285845828510c2c6c8849c950c37ca4576d/deployers/servicedeployer.go#L415

I think the wskdeploy needs to do more with feed actions to be able to updated them, it needs to delete the trigger and invoke the feed action with the with delete lifecycle, and then follow with normal feed creation.

@zachschultz You are right, I think it should be set to false.
_, _, err := deployer.Client.Triggers.Insert(t, false)

@zachschultz There is a PR #377 to address this issue. But I'm very curious to your case. What's the new value you want to update the source of the message-received-trigger?

Hi @daisy-ycguo, thanks for the PR! What was happening for us was that if we changed our manifest.yaml file to change the trigger in any way, no updates were actually propagating through because of the overwrite=false

@zachschultz can u verify if PR 337 allows this issue to be resolved?

@mrutkows let me build a wskdeploy with that PR included to test if it works

@zachschultz Are we able to close it ?

@daisy-ycguo On my most recent run with the new binary I now see this error Got error creating trigger with error message: A trigger feed is only permitted when the trigger is created (code 162316) and error code: 144.

@zachschultz please make sure the environment variables are setting to correct values. When I met with this error, it means feed openwhisk-cloudant/changes is not created successfully, which is caused by missing environment variables.
export CLOUDANT_HOSTNAME=f24a57b7-bluemix.cloudant.com
export CLOUDANT_USERNAME=f24a57b7-bluemix
export CLOUDANT_PASSWORD=24b84123bd42b1d3e4858af72576984
export CLOUDANT_DATABASE=cats

Fixed in https://github.com/apache/incubator-openwhisk-wskdeploy/pull/377


Add a way to manage computations over an MTG, considering scales, symbols...

We need to be able to manage how models are applied over an MTG, eventually by tweaking the way we traverse the MTG.
For example, we can have the photosynthesis computed for each leaf, and then a common pool of carbon at the plant scale. Obviously the photosynthesis must be run first.
We have different ways of managing this (and I'm not sure how they are done or if they are possible):

traverse the MTG to make a dependency graph at the scale of the MTG itself, based on the dependency graphs of each node. This can be computationnally intensive as we must traverse the whole MTG first. Or, we can also compute the dependency graph outside the MTG based on the dictionnay of models we give at initialization ? In any case, we must traverse the MTG several times, one time for each node dependency.
Use futures ? I don't know how these are handled in Julia, but it could potentially be helpful to traverse the MTG once, and that the results of a given scale (e.g. the plant) are just waiting for the computation of the other scale it depends on (e.g. the leaf). And in the end everything is available.

In any case, we first need to define a way of declaring that a model depends on the computation of another scale, e.g. for the carbon pool we could have:
PlantSimEngine.mtg_dep(::CommonCPool) = (photosynthesis=(scale = 1,),)

This code would define a dependency on the photosynthesis model from nodes that are of scale 1.
We would need ways of defining dependencies for the symbol or the id of a node too, e.g.:
PlantSimEngine.mtg_dep(::CommonCPool) = (photosynthesis=(scale = 1, id=1,symbol="Leaf"),)

We could also think about including a dependency on:

any node in the mtg
ancestors
descendants

Maybe the best way would be to visit the MTG from the node we are computing. If a ModelList from the current node has a dependency on a model in its descendants, then we could go an visit them, identify where is the model in their ModelList, and run the root model of this dependency. Then we would have to mark it as already simulated somehow to avoid re-running it when visiting these nodes (we can have a new field in the dependency tree that marks the id of the simulated time-step, if this id is already there, we don't simulate the model). And then continue with the node we were simulating already.

Instead of defining it in e.g. PlantSimEngine.mtg_dep, we could define the dependency of variables from other scales in the ModelList directly, something along this:
m =
ModelList(
    photosynthesis = FvCB() => "Leaf", # 1
    carbon_offer = ("Leaf" => :A,) => CommonCPool() => "Plant", # 2
    carbon_allocation = ("Plant" => :carbon_offer => first,) => CAllocationRelativeToDemand() => ["Leaf", "Internode"], # 3
)

Details:

FvCB() => "Leaf" means that we give the FvCB() to all leaves (node symbol == "Leaf") for photosynthesis;
("Leaf" => :A,) => CommonCPool() => "Plant" means that the input :A for the model CommonCPool() comes from the "Leaf" scale, and that CommonCPool() is applied at the plant node
("Plant" => :carbon_offer => first,) => CAllocationRelativeToDemand() => ["Leaf", "Internode"] means that we take the :carbon_offer from all nodes at the plant scale, take the first value only (this is to transform the vector of one into a single value) and give it as an input to CAllocationRelativeToDemand(), that is itself applied at both leaf and internode nodes

This way we can take inputs from other scales and give them to a given node, and we can define on which nodes a model is applied.
Then we can make the code that will build the simulation, grouping the model calls into scales whenever possible (so we traverse the mtg as little as possible), of course taking into account the dependencies between the models for the simulation order.
In the end, the code would be built automatically, and would look like something along this:
init_mtg_models!(mtg, m)

function PlantSimEngine.run!(m, mtg, meteo, [...])
    # Caching the traversals in the mtg root:
    traversal_cache!(mtg, symbol = "Leaf")
    traversal_cache!(mtg, symbol = ["Leaf", "Internode"])

    for (i, meteo_) in enumerate(Tables.rows(meteo))

        # Call the photosynthesis model over all leaves
        MultiScaleTreeGraph.traverse!(plant, symbol="Leaf") do leaf
            PlantSimEngine.run!(leaf[:models].models.photosynthesis, leaf[:models].models, leaf[:models].status[i], meteo_, constants, nothing)
        end

        mtg[:models].status[i].A = descendants(mtg, :A, symbol = "Leaf")
        PlantSimEngine.run!(mtg[:models].models.carbon_offer, mtg[:models].models, mtg[:models].status[i], meteo_, constants, nothing)

        # Here we get the values of the carbon_offer by visiting the plant, this is then used by the `carbon_allocation`:
        var_carbon_offer = typeof(inputs_(m.models.carbon_offer).carbon_offer)[] # Or something like this, here we have to pre-allocate a vector for the values of the carbon offer of the plant (may have several values if several plants)
        MultiScaleTreeGraph.traverse!(plant, symbol="Plant") do plant
            push!(var_carbon_offer, mtg[:models].status[i].carbon_offer)
        end
        var_carbon_offer = first(var_carbon_offer)

        MultiScaleTreeGraph.traverse!(plant, symbol=["Leaf", "Internode"]) do leaf_or_internode
            leaf_or_internode[:models].status[i].A = var_carbon_offer
            PlantSimEngine.run!(leaf_or_internode[:models].models.carbon_allocation, leaf_or_internode[:models].models, leaf_or_internode[:models].status[i], meteo_, constants, nothing)
        end
    end
end

This is fixed in #51


Change generator of ark-curve25519

In this test: https://github.com/arkworks-rs/nimue/blob/main/src/plugins/tests.rs#L43
I try to make compatible transcripts between arkworks and dalek. The reason it passes right now is that, at line 54, I negate the generator. It'd be nice if they both were compatible so that people can use transcripts interchangeably between the two libraries

Could you add a CHANGELOG entry please, this is a breaking change

done 🫡


camera brightness very low

While using the camera function the image is very dark, while when using the camera app the image is much brighter.
could this be a setting ?
device : lenovo tab e7

There is no setting to adjust the brightness of the camera.   I am not sure why the image would be darker for your device.


BUG: actingAs() not working for POST requests

Laravel Version: 5.5.14
PHP Version: 7.1
Database Driver & Version: MySQL Homestead Latest

Description:
When using phpunit testing, actingAs() is not authenticating POST requests. I am using Laravel Passport so it could be a factor.
Steps To Reproduce:

Create a POST route that requires authentication (auth:api middleware).
Create a new Test to create a user, authenticate as them and submit a POST request to route.

Expected Output
Authenticated request and action taken (my example was a create)
Actual Output
Unauthenticated JSON response from the endpoint. (used dump() to find out).
Test Code
public function testSuperAdminsCanCreateATeam()
{
    $faker = app(Generator::class);
    $data = [
        'name' => $faker->word,
            'company' => $faker->company,
            'address' => $faker->address,
            'telephone' => $faker->phoneNumber,
            'email' => $faker->unique()->safeEmail,
            'vat_number' => 0
        ];
        $user = factory(User::class)->create(['super_admin' => true]);

        $response = $this
            ->actingAs($user)
            ->json('POST', route('api.teams.store'), $data);

        $response
            ->dump()     // Dump here shows Unauthenticated response.
            ->assertStatus(Response::HTTP_CREATED)
            ->assertJson([
                'status' => 'success',
                'data' => array_merge(
                    ['owner_id' => $user->id],
                    $data
                )
            ]);
    }

Can you try it out with simpler example? I have tried actingAs (not this example that you have provided) and it works fine. I think the bug could be with how you are assigning roles or doing some authorisation check we don't know about

I'm using the default Passport guard, I don't have any custom authentication.
I'm also using the default auth:api middleware.
It could be a bug in Passport rather than Laravel itself, I'm not sure
On Sat, Oct 7, 2017 at 7:13 PM +0100, "Dylan DPC"<EMAIL_ADDRESS>wrote:
Can you try it out with simpler example? I have tried actingAs (not this example that you have provided) and it works fine. I think the bug could be with how you are assigning roles or doing some authorisation check we don't know about
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Do check this out: https://laravel.com/docs/5.5/passport#testing

@Jamesking56 try actingAs($user, 'api')

Can confirm that using Passport::actingAs($user) works.


PutSecureParameter and recursive GetAllParametersByPath

Add easier way to set secure SSM parameters
recursively get parameters for a given path. By recursive, I mean that it gets more than the limit of 10 parameters per invocation, which is an AWS API limit.

👋 hey @ingshtrom, thanks for your contribution 😄 . The limit on params will be fixed on #29. Can you please refactor your PR to include only the put parameter feature? 🙌

@geototti21 of course! I subscribed to #29 so I'll wait until it's merged to fully integrate. Thank you!

@geototti21 of course! I subscribed to #29 so I'll wait until it's merged to fully integrate. Thank you!

Thank you! check our new release v0.6.0 please

ready for review, PTAL @geototti21.
Thank you!

now I'm just using the stub client directly in the test object, but it still isn't working and now I'm just plain confused 😕

@ingshtrom apologies for the late reply, I pushed this commit that fixed your tests. It was more of a bigger problem in the tests that we didn't use a pointer receiver in the stub client, apologies for that.


chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-k8s-25-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 3493

Questions ?
Please refer to the Backport tool documentation


New improvements to make it usable for automatic installation

Please add more details documentations/how-to on wiki (example: guide to automatically install SharePoint 2016 on 4 vm in h.a. + 2 vm for sql and 2 vm for owa/oos: prepare sql, install module, ability this, launch this...) and example of configurations and options to use it.
I use autospinstaller , "SharePointDsc" have same or more features and simple configuration as it?
I want be able to easy define and do the same thing, but it seems very hard to do it now respect to autospinstaller.
And autospinstaller is easy debuggable and fixable in case of problems, SharePointDsc is more complicated (or not easy to learn).
The logical step must be (with a GUI as autospinstaller.com ? ):
-define number of server
-define account
-define common settings (web application, version of SharePoint, database name, central admin)
-define services application and role for every server (ex. put distributed cache and search in this server, but frontend here, but application here with this services)

Hi @paololec - I've been in conversation with @brianlala in regards to how we get customers to transition from AutoSPInstaller to SharePointDsc. We have some ideas in this regard, but nothing that we are ready to start implementing as yet. So if you are dependent on a GUI to create your SharePoint farm, then right now AutoSPInstaller is a better option. I'm hopeful this will change in future, but until we have some specific plans on that front I can't give you a better option.
I will however leave this issue open so we can have some discussion around this issue and as we get closer to implementing a GUI to create configurations with we can refer to this issue.

My 2 cents on this...
I agree that we can always work on improving documentation and expand on the examples. However, the real benefits of SharePointDsc is not in providing a master script or workflow for everyone to use. Everyone has different requirements on how their farm is built. But rather, SharePointDsc provides the building blocks for you to implement within your process, as simple or as complicated as needed. With SharePointDsc, you can focus on building the farm topology and configuration as code, maintaining it under source control, without focusing on the back end powershell needed to create a farm, create a web application, configure search, etc...

I would happily continue using AutoSPInstaller to deploy SharePoint environments, except for the way it handles passwords which DSC does a better and more secure job of and a few little things here and there that I've had to write extra functions.
While it's true every SharePoint install is different, AutoSPInstaller will pretty much do everything you need for 90% of SharePoint environments I've seen.
Are there any examples available anywhere of what you've been working on to incorporate the features of AutoSPInstaller? I've started modifiying the example files so that it takes most of it's input from and AutoSPInstallerInput.xml file... but I've still got a way to go.

Are you looking for a DSC Configuration that consumes the AutoSPInstaller XML file?
Seems like this would be straightforward to do.. Just feed the xml in as a parameter, then in the Configuration map specific settings to specific resources.
Would a standard AutoSPInstaller.xml file work as a sample?

@mrpullen I agree, this would be a fairly straightforward thing to do. We could even have it parse the XML up front to show warnings about the things that are in the XML file that we don't support or do yet. I feel like if we start with a standard XML file as an example though that would make a good starting point to a solution here.

<EMAIL_ADDRESS>And I had started to look at a AutoSP <--> SPDSC converter at one point, and I know Brian may also have something of his own. I'd be interested in helping out
Get Outlook for iOShttps://aka.ms/o0ukef

From: Brian Farnhill<EMAIL_ADDRESS>Sent: Tuesday, February 21, 2017 4:35:03 PM
To: PowerShell/SharePointDsc
Cc: Subscribed
Subject: Re: [PowerShell/SharePointDsc] New improvements to make it usable for automatic installation (#398)
@mrpullenhttps://github.com/mrpullen I agree, this would be a fairly straightforward thing to do. We could even have it parse the XML up front to show warnings about the things that are in the XML file that we don't support or do yet. I feel like if we start with a standard XML file as an example though that would make a good starting point to a solution here.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/PowerShell/SharePointDsc/issues/398#issuecomment-281488512, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACbdzWXgR895zrKyA9AqF0JbDcB4fQ50ks5re1iHgaJpZM4Jyp-J.

Closing this issue as per previous comments by https://github.com/PowerShell/SharePointDsc/issues/398#issuecomment-358305465. This is out of the scope of this resource module.


Simple: Thread local caches to avoid atomic overhead of Chunk in small object arenas

Right now allocation requires atomic operations. We should use a thread-local buffer so this isn't required in the common-case.
This would be somewhat difficult to do since we can have multiple running instances. Would we have to use thread_local? How does the performance overhead of that compare to using atomics?
Maybe we could make SmallObjectCache a static variable shared between instances. However, if we do that we'd have to differentiate between allocations from different collectors (in for_each and the linked list). This could also result in worse performance if all the different collectors end up messing with each others stuff.
This was much easier when it was just a comment in a config file.......

Maybe we could just make the cache the cold path. I think that would happen naturally if we implement Lazy Sweeping (#7). Is it acceptable if we still use atomics when allocating from the free list? We already use a loop there.....

Maybe do TLAB allocation? Some of Dora GCs and some JVM GCs use it. What Dora does it allocates 32KB memory for TLAB and if object fits into tlab (<8KB) then runtime allocates in tlab memory, this memory is not recycled but can be traced just fine.

TLAB is definitely an option I'm considering. I'm planning to look into this more deeply after I get multi threading support working.