Decorators don't get applied inside class definitions in assignment expressions

TypeScript Version:  3.8.2

Search Terms:
decorators, assignment
Expected behavior:
__decorate should be called for both Working and NotWorking.
Actual behavior:
__decorate is called only for Working.

Related Issues:
Code
function methodDecorator = (proto, key, desc) => {
    console.log('methodDecorator called')
}

class Working {
    @methodDecorator myMethod() { console.log('myMethod called') }
}

let myVar = class NotWorking {
    @methodDecorator myMethod() { console.log('myMethod called')}
}

Output
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
function methodDecorator() { }
(proto, key, desc) => {
    console.log('methodDecorator called');
};
class Working {
    myMethod() { console.log('myMethod called'); }
}
__decorate([
    methodDecorator
], Working.prototype, "myMethod", null);
let myVar = class NotWorking {
    myMethod() { console.log('myMethod called'); }
};

Compiler Options
{
  "compilerOptions": {
    "noImplicitAny": true,
    "strictNullChecks": true,
    "strictFunctionTypes": true,
    "strictPropertyInitialization": true,
    "strictBindCallApply": true,
    "noImplicitThis": true,
    "noImplicitReturns": true,
    "useDefineForClassFields": false,
    "alwaysStrict": true,
    "allowUnreachableCode": false,
    "allowUnusedLabels": false,
    "downlevelIteration": false,
    "noEmitHelpers": false,
    "noLib": false,
    "noStrictGenericChecks": false,
    "noUnusedLocals": false,
    "noUnusedParameters": false,
    "esModuleInterop": true,
    "preserveConstEnums": false,
    "removeComments": false,
    "skipLibCheck": false,
    "checkJs": false,
    "allowJs": false,
    "declaration": true,
    "experimentalDecorators": false,
    "emitDecoratorMetadata": false,
    "target": "ES2017",
    "module": "ESNext"
  }
}

Playground Link: Provided

Of course there's no reason to declare a variable like myVar. My use case is passing constructor functions around in objects as shown below, but this seemed like the more general problem.
let o: any = {}
o.myVar = class NotWorking ...

We don't currently support decorators on class expressions and haven't since we introduced the feature. The reason you aren't seeing an error in the playground link you posted is that the declaration of methodDecorator is invalid. Here's an updated playground link:
https://www.typescriptlang.org/play/index.html?experimentalDecorators=true#code/CYUwxgNghgTiAEYD2A7AzgF3gWxBgFksACLhIxQbkBc8UKAngNwCwAUO5FGmvAOrkA1gEsUAc3gBvdvFnwAArgJFSyClRg4GAWTyFgACgCUUxKjRIIIAHQQkYgwHJsOvUURQIV4I5MBfdgCONissFwA1WHgAXkRoHngAOSQMARgRcSkZOUU3EjJ1ci1dZUMTSTN0Sxs7B2dXUo8vEB8jIKCgA

This isn't a bug, per se. We haven't added decorator support to class expressions yet as the proposal has been in flux and very different from our initial implementation for some time, so we have generally held off any major changes involving decorators.


List the PackageIdentifier of the package to be added to automation
Bitwarden.Bitwarden
Details about the application
https://community.bitwarden.com/t/please-use-winget-releaser-automatically-updates-winget-version/45263
https://github.com/microsoft/winget-pkgs/issues/81125
I'm not sure they are gonna implement it since I had to make the feature request outside Github
Please upvote my post there

You can create feature request at https://github.com/bitwarden/clients/issues, so it may get into the attention of the team who manages the releases for Bitwarden Client.
However, I have ficed the bug in the automation which prevents automatic update of Bitwarden 👍🏻

You can create a feature request at https://github.com/bitwarden/clients/issues, so it may get the attention of the team who manages the releases for Bitwarden Client.
However, I have fixed the bug in the automation which prevents the automatic updates of Bitwarden 👍🏻

Thanks. I agree it's probably better to create a request at Github to get the attention of the devs. But since you have fixed the automation, is there any advantage of having them use winget-releaser?

I'm re-opening this, and when you've created an issue at bitwarden's repo, mention it here so that I can track its status and outcome.

I'm re-opening this, and when you've created an issue at bitwarden's repo, mention it here so that I can track its status and outcome.

https://github.com/bitwarden/clients/issues/3816


f-droid.org release

Hi there!
I had the idea to write a Prometheus exporter for Android, but gladly I searched the web first and found that you've already started the work! This looks great, and I'd like to propose an release in the f-droid.org repository for free and open source apps, to increase visibility and to allow users to install this app easily. This pull request adds the required metadata (and updates Gradle as recommended by Android Studio). If this could get merged, I could propose the inclusion in the f-droid.org repository.
Thanks a lot!
Lukas

I'm using this exporter, so having it available in f-droid would really simplify installatiion. I also have more metrics added to it, I'd contribute them here to include them in f-droid distribution. Now I just manually compile and load a custom version on my devices.


Problem with pimd when more 300 secondary IPs used in vif

Hello, when I use pimd setup in a router,where one if vifs in pim is the ethernet iface,and this interface has more then 300 adresses(i checked 600), then multicast traffic stops to forward.
All works when used 300 IPs, when 600 - this problem exists. I don't know the exact limit.
My scheme : sender----r1----RP---r3----recv.
Net1 between sender and r1 , net2 between r1 abd rp(randevu), net3 - between rp and r3, net4 - between r3 and recv.
Rp is static.
Problem is in r3 : it has 2 ifaces in pim and one of ifaces has many ip adresses (all from one net with netmask /16)
Why this happens and how to overcome this?
I need about 1000 ip adresses in one interface ,that is used in pim.
Thanks.

Thank you for the report.  Although this may not be out of spec, it's definitely out of scope of this project at the moment. I suggest you find a corporate sponsor to help you out debugging this issue and send a PR to this project when you've root caused the problem.  There is is exactly nobody right now that would help you fix this problem free of charge.

You may close issue. It was my fault: 1 of IP addresses was the same as on another router.


Remove setback in rollDice

Describe the bug
If I do a chack for a skill with some remove setback dices these one don't remove the setback
To Reproduce
Do a check from crew skill of a vehicle. I don't know why from actor sheet the remove setback are not added in the dice roller
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots

Desktop (please complete the following information):

Foundry Version: v12.327
System Version:  1.903
Hosted on Forge: No

Solution
In pool.js file into the function renderDiceExpression line 219
if I add the follwing code before let dicePool ... it was fixed :
this.setback = Math.max(0,this.setback - this.remsetback);

This is by design. Many remove setbacks are situational. It's up to the user to apply them.


Minisim disappears on refresh

When the workspace is sized so the minisim is visible, if you you refresh the page, the minisim disappears. Likely a result of layout changes from the recent tutorial updates. Does not repro in Micro:bit, so likely specific to when the simSidebarTutorial flag is off.

Struggling to repro this now...

@thsparks is this specific to arcade? If it repros in microbit open in that repo as that is where we are all working right now.

It does not repro in microbit

@thsparks  doesn't repro anymore. Can you please test and reverify?


YogaKit (1.9.0) justifyContent doesn't work properly

Code:
   [self.view configureLayoutWithBlock:^(YGLayout * _Nonnull layout) {
        layout.isEnabled = YES;
        layout.width = YGPointValue(CGRectGetWidth(self.view.bounds));
        layout.height = YGPointValue(CGRectGetHeight(self.view.bounds));
        layout.alignItems = YGAlignCenter;
        layout.justifyContent = YGAlignCenter;
    }];
    UIView *grayView = ({
        UIView *view = [[UIView alloc] init];
        view.backgroundColor = [UIColor grayColor];
        view;
    });
    [self.view addSubview:grayView];
    [grayView configureLayoutWithBlock:^(YGLayout * _Nonnull layout) {
        layout.isEnabled = YES;
        layout.width = YGPointValue(320);
        layout.height = YGPointValue(80);
    }];
    [self.view.yoga applyLayoutPreservingOrigin:YES];

Expected Behavior
The grayView  is centered vertically.
Actual Behavior
The grayView sticks to the bottom,I found that layout.justifyContent = YGAlignFlexStart the grayView will be centered vertically.

Be sure that flexDirection is what you expect. Yoga defaults to column instead of row, which may switch the expected main and cross axis.


Fix broken link to hooks reference.

Fix a broken link to hooks.js

Pull request has no changes, current link is correct


add ExpansionHunter v5.0.0 image

Hey @hopedisastro, thanks for creating the PR! The hadolint linter has highlighted a few minor issues in your Dockerfile. Could you address these please?


[ETL-380] Add cleanup workflow

Jobs occur in develop only upon branch deletion
Delete namespaced stacks
Delete namespaced folder in cloudformation bucket

@rxu17 Could you take a look at this? I borrowed lines 16-18 from the upload-and-deploy action, but after merging into main and deleting the feature branch I get this error when the Sage-Bionetworks/action-pipenv-aws-setup@v3 step runs within the cleanup action:  "Error: Credentials could not be loaded, please check your action inputs: Could not load credentials from any providers." Although that same step seems to run without issue in the upload-and-deploy action. Did I copy/paste incorrectly?


add extra section in config file to tune embed etcd

For e.g., to change --heartbeat-interval and --election-timeout.

Hi @andelf
It is dangerous to let user change this, we should use a fixed configuration.


Design and Gedt data from Meal API

Create the basic shared code on the home page. -> done
Start individual interfaces.-> done
Take a picture and name from Meal API
Make pretty the home page

Hi @francksefu
Your project looks awesome! 🎉
Highlights 💯

No linters errors ✔
Descriptive pull request ✔
Descriptive commit messages ✔

Change Required :recycle:

We need to create a header and a footer for the home page :hourglass:

Optional suggestions
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


Limit error response in large union

Question
I am looking for ways to only see an error in a specific element of a union.
We have some models similar to this example from the docs:
...

class Dessert(BaseModel):
    kind: str

class Pie(Dessert):
    kind: Literal['pie']
    flavor: Optional[str]

class ApplePie(Pie):
    flavor: Literal['apple']

class PumpkinPie(Pie):
    flavor: Literal['pumpkin']

class Meal(BaseModel):
    dessert: Union[ApplePie, PumpkinPie, Pie, Dessert]

...

For the Union in the Meal class, if the input satisfies none of the models, it would throw errors for all. Our use case has over 10 different models that have different fields in the Union and the response is difficult to parse. Each different type is based on a literal string similar to above.
Is there a way to limit/filter errors so that the response is more actionable?
Previously to avoid this, I had one large generic model with Optional field on all elements that were only in some cases. And then custom validators for each element to see whether it was required for this type.
Please complete:

OS: macOS, Linux
Python version import sys; print(sys.version): 3.7
Pydantic version import pydantic; print(pydantic.VERSION): 0.32.2

Currently, I don't think there is a clean way to validate a union-typed field without seeing all the errors.

I recently put a little effort into building a type called DiscriminatedUnion with the same API as Union (and which is interpreted as such by mypy), but which pydantic treats specially:

During field initialization, it would check that:

All models in the (discriminated) union have the same value of a config setting indicating the discriminator property
All models in the union have that field annotated as a distinct Literal string

During parsing, it would:

First, look for the discriminator value; if invalid, that would be the only error you'd see.
If valid, try to parse the model as the one with that discriminated value. If parsing fails, that's the only error you'd see; otherwise the parsed value would be an object of the discriminated type.

I haven't finished the implementation, but I'm convinced it should be possible to implement without too much effort. I'd be curious if there are others interested in this version of the implementation, or if a different API would be preferable.

From the perspective of the current codebase I’m working with that implementation would be highly desirable.
I agree that it the swagger may behave weirdly but it already has some issues with anyOf as we discussed on another issue :)

I entirely agree that this would be great, see my comment: https://github.com/samuelcolvin/pydantic/issues/619#issuecomment-520221891 and more below that
You can see the bodge I'm using right now for this here.
The reason I haven't worked on descriminator yet was an effort to get version 1 released. Since this should be backwards compatible it should be possible to release in v1.1.
Closing this, if there's more feedback please comment on #619.


Automatically cancel the tox integration tests on force pushes

Uses this setting: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency

Great idea!

Unfortunately it doesn't work :-/
yet…

Now it works!


[#1396] improvement(UI): Reword update to edit

What changes were proposed in this pull request?
Reword Metalakes Actions button list Details, Update, Delete to Details, Edit, Delete as per #1396  mentioned.
Why are the changes needed?
Fix #1396
Does this PR introduce any user-facing change?
Yes, web UI changed
How was this patch tested?

@austin362667 Hi, I'm glad you could submit this commit.
I think these changes should not only be limited to the tooltip.
It also shows in the dialog title, submit button etc.
Can you help to changes them?
Example:

It also shows in the dialog title, submit button etc

Sure thing, how about leaving the submit button the same?

It also shows in the dialog title, submit button etc

Sure thing, how about leaving the submit button the same?

I'm not sure the Update button should name what, Edit, Submit or any other word.
Do you have any good suggestions?

Edit, Submit or any other word.
Do you have any good suggestions?

save seems to be a good fit ?

It also shows in the dialog title, submit button etc

Sure thing, how about leaving the submit button the same?

I'm not sure the Update button should name what, Edit, Submit or any other word. Do you have any good suggestions?

Think of Modify now

IMO Update on the button is fine, Submit is overused and too generic, Modify is OK, but I think Update is better.

IMO Update on the button is fine, Submit is overused and too generic, Modify is OK, but I think Update is better. . Note GitHub uses "Edit" and "Update comment" when editing comments

@austin362667 I agree that the tooltip and title display Edit, the submit button displays Update.


Michael/rox 9892 negate criteria

Description
A detailed explanation of the changes in your PR.
Feel free to remove this section if it is overkill for your PR, and the title of your PR is sufficiently descriptive.
Checklist

[ ] Investigated and inspected CI test results
[ ] Unit test and regression tests added
[ ] Evaluated and added CHANGELOG entry if required
[ ] Determined and documented upgrade steps
[ ] Documented user facing changes (create PR based on stackrox/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.
Testing Performed
TODO(replace-me)
Use this space to explain how you tested your PR, or, if you didn't test it, why
you did not do so. Valid reasons include, for example, "CI is sufficient",
"No testable changes". Feel free to attach JSON snippets, curl commands,
screenshots.
In addition to reviewing your code, reviewers must also review your testing
instructions and make sure they are sufficient.

https://github.com/stackrox/stackrox/pull/1185


Status Band Color

Hi.  We've been using this github action, and it works great for our use case.  However, we had one minor request I wanted to get on your radar.  Right now the status band isn't configurable and is always 'green'.  It would be great if we could customize that so we could make it red.  It would help the posts standout better in our use case.  If that's possible, let me know.  Thanks.

Hi @oniram307
Can you maybe elaborate on what you are trying to achieve? You are right, this color is not configurable but it is not fixed.
The color can change depending on the configuration/input.
So for example if you are using it in a workflow this job can change the notification color depending on previous jobs of the workflow that are added to the needs of the notification job (as long as the needs are passed as a json string as well)
Here a small example:
  testJob:     runs-on: ubuntu-latest     steps:       - uses: actions/checkout@v3       - run: |           exit 1   verifyAction: # make sure the action works on a clean machine without building     runs-on: ubuntu-latest     needs: [ testJob ]     if: ${{always()}}     steps:       - uses: actions/checkout@v3       - uses: ./         with:           webhook_url: ${{secrets.webhook}}           needs: ${{ toJson(needs) }}           job: ${{ toJson(job) }}           title: Custom title
Note that here the testJob exits with exit code 1. In that case this job fails but the notification is still triggered due to the if: ${{always()}}. The needs are passed by needs: ${{ toJson(needs) }} .
Base on the overall status the color is determined for the notification.
Does that help you already or do you still need a way of manually configuring the color?

As a further example check out this workflow run
Workflow file
Output theme color: "themeColor": "#b80707"

Ok, that did the trick.  Didn't pick up on that earlier.  Thanks for pointing that out.  One other question.  In the image below, output indicated?  It seems to be grabbing the filename "execute.yml" and stripping of the extension for the name.  However, the formal name for the workflow file defined in the "name" field is "Execute Workflow".  Is it possible to use that instead?

The execute job you marked is not the workflow name but the need that is configured for the notification. As you see in the title it says "execute workflow"
Execute is just one job in your Workflow that fails and causes the whole workflow to fail. If you want to see the workflow name there as well just rename the execute job to execute-workflow.
In case you had more needs configured for the notification they would all be listed in the notification with their success status
Hope that helps

Yup, get it now.  Thanks for the explanation.  If feasible, maybe consider adjusting the output to read like the below to make to remove any ambiguity?
Job: execute
Status: failure

Also, is there any option to suppress that line if I wanted to?

Yup, get it now. Thanks for the explanation. If feasible, maybe consider adjusting the output to read like the below to make to remove any ambiguity?
Job: execute Status: failure

The undelying data structure is a key value pair that I am using to display the job an each status. I currently prefer it that way but I will think about it.

Also, is there any option to suppress that line if I wanted to?

I will add a flag for you to omit this output and not display the job statuses :)

Checkout release v1.3.0

Fantastic.  Thank you so much.


Fix type mismatch in iOS interface orientation checks

Not sure why this error popped up when I enabled C++11 on the codebase,
but I guess this should fix it.
I guess these errors possibly pre-existed, but since they were introduced by two old PRs with existing build cache, they were not picked up until 5dae2ea77 forced a rebuild of the whole codebase?

Merging to fix CI, but please review and do any necessary further fixes.


feat: generate api コマンドを追加

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@f83f041). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #21   +/-   ##
=======================================
  Coverage        ?   80.16%
=======================================
  Files           ?       18
  Lines           ?      494
  Branches        ?       67
=======================================
  Hits            ?      396
  Misses          ?       98
  Partials        ?        0

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Add a circuit breaker for the post-transformer step when running in not-reindex mode

This is one of the actions from today's retro.
We want a circuit-breaker – but we want it after the transformer, not before.
Context
This is the first part of the catalogue pipeline:
graph LR
    S1[(source cat 1)] --> A1[adapter 1]
    S2[(source cat 2)] --> A2[adapter 2]
    S3[(source cat 3)] --> A3[adapter 3]
    A1 --> D[(adapter
database)]
    A2 --> D
    A3 --> D
    D --> T[transformer]
    T --> R[rest of pipeline]

We have various source catalogues (library, archive, images, etc.), and adapters that fetch the records and store them in a consistent format.
The adapters are designed to keep up with changes made in the source catalogues, e.g. a librarian updating a record. They're a mixture of push/pull, depending on the sources: some sources we have to poll from at an interval, others we get a push notification of updates.
The transformer turns the source records into our common Work model.
The transformer includes some short-circuit logic that will skip transforming a Work if we already have that Work in the pipeline, e.g. if an archivist updates a private field on a record
The pipeline has two modes:

batch/reindexing = when it expects lots of updates, and scales up resources and batching behaviour to match.
one-by-one/day-to-day = when it expects a handful of updates, and scales down to save money. Most of the day-to-day updates are from people editing records by hand.

graph LR
    C[(CALM
archive catalogue)] --> S[(Sierra
library catalogue)]

There's also an overnight process that syncs the CALM/Sierra (archive/library) catalogues. It updates every record, although normally this is updating the "last synced" field, so the transformer will filter out all the updates – we'll already have the transformed Work in the pipeline. This is several hundred thousand records.
(We do the sync because readers can only order items via Sierra, so we have to copy across CALM/archive items so they can be ordered.)
If something goes wrong in this filtering logic and we suddenly get hundreds of thousands of records in the rest of the pipeline when we're in "day-to-day" mode, the pipeline won't handle them very well. This is what caused the outage on Tuesday.
If the transformer sends more than, say, 10k records to the rest of the pipeline in one go and we're running in "day-to-day" mode, we should pause the rest of the pipeline and alert developers so we can investigate.

Given the infrequent nature of this problem, it is probably best to fix this in prose.  A troubleshooting document that states what happened and give a few pointers as to where to look.

The document is in place.  I have also added a new level of DLQ alerting: https://github.com/wellcomecollection/platform-infrastructure/pull/332


Add sorting to flutter version command

Fixes #31013
Description
This PR adds sorting to flutter version command
This makes v1.4.19 appear after v1.4.9 and not after v1.4.1
Related Issues
Fixes https://github.com/flutter/flutter/issues/31013
Tests
No tests
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I signed the CLA.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[ ] I updated/added relevant documentation (doc comments with ///).
[x] All existing and new tests are passing.
[x] The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (Please read Handling breaking changes). Replace this with a link to the e-mail where you asked for input on this proposed change.
[x] No, this is not a breaking change.

This ordering places newer versions last - should it be the other way around?

@jonahwilliams I think yes, but current flutter implementation does the opposite
Should I change it to show newer version first? It's just --sort=-creatordate instead of --sort=creatordate


feat: load wiki page

Closes #1

fetch wiki page and show results in console
add a todo to extract languages from page content

@rultor merge

@rultor merge

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

@rultor merge

@baudoliver7 Oops, I failed. You can see the full log here (spent 17s)
+ set -e
+ set -o pipefail
++ dirname ./run.sh
+ cd .
+ echo 11859
+ echo '1.70.6 5bcc93e7c'
1.70.6 5bcc93e7c
+ date
Thu Dec  9 19:22:38 CET 2021
+ uptime
 19:22:38 up 438 days,  4:28,  0 users,  load average: 4.47, 4.38, 4.50
+ cat
.rultor.yml in baudoliver7/home doesn't allow baudoliver7/ool-survey to use its assets (there are 1 friends), see http://doc.rultor.com/reference.html#assets
+ exit -1
'cid' file is absent, container wasn't started correctly


ClassNotFoundException when resolving cached task results using Gradle daemon

This bug have been reproduced and confirmed
Expected Behavior
Succeed
Current Behavior
Reported on the forum.
Context
Invoking a project with a custom Serializable class as input to a task will cause an exception on the second time the project in invoked. The task disable up-to-date check.
Steps to Reproduce (for bugs)
Code sample can be found here.
Your Environment

Build scan URL:

Work was spent trying to find the root of the issue as well as creating a simple test case. Commit 13e7c86 summarize the work. It seems to be an issue with deserializing a custom Serializable class as input from cache.

This is likely to be caused by the changes made to fix https://issues.gradle.org/browse/GRADLE-3537

@lhotari You are right and it is related in part to this issue. I simplified my test case and will start looking in Gradle class loaders.

The value for a task property can come from pretty much any ClassLoader, so fixing this by mixing together 2 hard coded ClassLoaders is a partial solution. It also introduces issues where a class with the same name is present in both places.
I can see 3 potential solutions:

When creating a cache entry, store the serialized binary value for each property in the cache entries, rather than the value itself. When comparing a property value against a new value to check if it has changed, deserialize the binary value from the cache entry using the ClassLoader of the new value and use equals() on the result.
Attach a logical id to each ClassLoader that Gradle creates. When creating a cache entry, store the serialized binary value for each property along with the id of the ClassLoader for the value. When comparing the property value against a new value, deserialize the binary value using the ClassLoader with the associated id.
Store the serialized binary value for each property in the cache entries. When comparing a property value against a new value, serialize the new value and compare the resulting binary values. Deprecate using a property value with a custom equals() method.

Option #3 is essentially the one that will be used when locating entries in the task output cache. It's probably not a great idea to use different approaches for the various kinds of output caching.

This limitation is quite tricky to solve. I committed a new patch with a new direction to solve this issue.
In a nutshell, this issue worked previously as it would simply grab the classloader for the current task class which happens to be the build script classloader where the serialized type is declared. The change in Gradle 3.2 fixed the scenario where the class was a Gradle core type and the serialized type was declared in buildSrc. In this case, we would be getting the core classloader (through the task class) that have no knowledge of the buildSrc and build script declared types. The solution would get the project level class loader. However, this class loader doesn't have any knowledge of the build script declared types. In order to solve this limitation while honoring the previously fixed use case.
Without any change to the local caching system, using the build script classloader directly would solve this problem. The problem I'm having is this classloader isn't referenced anywhere. Commit 99747c0b59b9919b24f22fd72de1187fcb9e726e try to expose the classloader by making a distinction between attaching the script to the ProjectInternal instance and setting the script. Once the script is set to the ProjectInternal instance, it can be retrieved later. The part I'm uneasy with is the special handling for when the build script is empty.

@lptr Do you have any insight on this? It seems like this would affect our handling of serializable properties for up-to-date checks/caching.

What happens if you remove the previous enum value? Can you deserialize value SomeEnum.FOO if the enum via the build script classloader is declared as enum SomeEnum { BAR, BAZ }?

@lptr Touché! Thanks @bamboo, @adammurdoch and @lptr for helping me to see the various limitation with the proposed solution. I opened issue gradle/gradle#919 to address option 3 from the proposition above. I will mark this issue as blocked. We will discuss this further to prioritize this work.
In the meantime, the proposed workaround are:

Move any custom Serializable type captured as task input inside buildSrc to expose them to the project's ClassLoader.
Remove unused task input capturing from custom task class definition only if it make sense.

Same issue was reported by a user of one of my plugins.

@adammurdoch It seems this was fixed with your work around ValueSnapshot (https://github.com/gradle/gradle/commit/ee61d0038ab42ea1f838e66e25578c96389f73b0) in Gradle 3.4. Can you confirm it's the expected behavior so we can close this issue?

I'm closing this issue as it seems fixed in Gradle 3.4. Please reopen if you get that problem again.


Restructure project.

We should restructure the project and make it more modular.

Finished after commit https://github.com/sharkov63/nvim-cfg/commit/e135bd6804b6c0d6ef013fb5eec19a786ad6ea2c


Proposals

To discuss ideas, any library you might think should have a wrapper or any ideas for improvements welcome!

Planned:

zookeeper
typeorm
eventstore
redis
express
apollo (how and to what degree still not certain)

higer order effect for RPC

react (extent to be defined, maybe context api for R propagation and Suspance wrappers for execution)

State what is the scope on the support of features beside migration.
Thinking about Queue, Stream, etc.. (some of which appears to be useful for some integrations)

Things that will definately be helpful and will fit easily in the current model are in my opinion:

Queue
Ref
Mutex/Semaphore
Managed

I though of Streams at least twice but I still have very much unclear what api to expose and to what extend streams should be integrated, if you have an example where streams are a solution we can look into it in details.

As a side note the reason for stating the integrations is to discover better all the needed lower level components and what a good api can look like (for example the RPC integration has helped shaping higher order interpreters)

@sledorze #10 can help on some of the above

Migration to Wave has been merged, next planned is expose apis for Mutex/Semaphore/etc with the proper overloads for env. Also wave has experimental streams implementation that we might leverage too


Map Documentation

Don't hesitate to suggest any change that might make it even clearer 👌

Codecov Report

Merging #96 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master    #96   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           7      7
  Lines         164    164
=====================================
  Hits          164    164

Continue to review full report at Codecov.

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


requirments.txt added for ease

Added requirments.txt for ease of installation just by a single command

Why is this ineligible?


Remove hardcoded IP address <IP_ADDRESS>

I noticed in the guide that you set <IP_ADDRESS> as the IP address for the provisioner. Is there any specific reason for this?
At least with my UniFi router it was quite easy to use another IP.
Here's the configuration I did on the router:

Create a separate network
Map the provisioner device's port to this new network
Do the same for the CM4-to-provision port
Set a fixed IP for the provisioner so that it doesn't change
Configure DHCP TFTP server IP in settings to the provisioner's fixed IP address

Now all I needed to do on the CM4 device was to change the hardcoded IP address in /var/lib/cmprovision/scriptexecute/cmdline.txt to the provisioner's IP. Then voila, provisioning works smoothly!
To avoid hardcoding - Perhaps you could add a setting in the Webui for the provisioner server IP? Defaulted to <IP_ADDRESS> for backwards compatibility.

I noticed in the guide that you set <IP_ADDRESS> as the IP address for the provisioner. Is there any specific reason for this?

Yes.
To make it harder for the user to misconfigure cmprovision to act as a DHCP server on the wrong network.
Handing computers on your normal office network an IP-address without gateway that will not give them Internet connectivity is not so nice.

Here's the configuration I did on the router:
Configure DHCP TFTP server IP in settings to the provisioner's fixed IP address

Don't think it is listening to your router's DHCP server.
The Pi boot firmware will only respond to DHCP packets that contain the magic string "Raspberry Pi Boot"
If it is working, it is likely that you have cmprovision's DHCP server running as well...

To avoid hardcoding - Perhaps you could add a setting in the Webui for the provisioner server IP?

I am missing the problem you are trying to solve.
Why is it a problem that cmprovision uses <IP_ADDRESS>/16 ?
And letting users bring their own DHCP server also introduces a lot of problems, we prefer not to give technical support on.
It usually will not work, unless you configure your DHCP server to send "Raspberry Pi Boot"
And it is easy to misconfigure it.
E.g. if a user let it hand out IP-addresses from a /24 pool and the addresses have a lease time of 1 week, which is a pretty common configuration, it can cause problems if user wants to provision more than 128 devices per week.

It works if you disable DHCP or set the network's DHCP relay to the CMprovision server ip (in Unifi).
Also Enable DHCP guarding and set the cmprovision server ip (it will restrict the switches to only allow this IP to serve DHCP leases and blocks others from doing so. It also does not notify you that the cmprovison is a "Rogue" DHCP server)
Also make sure the gateway ip (in unifi) is not X.X.X.1 but 2 for example
Example in unifi's network config
Gateway IP : <IP_ADDRESS>(/24)
Network Broadcast IP: <IP_ADDRESS>
Network IP Count: 254
Network IP Range: <IP_ADDRESS> - <IP_ADDRESS>
Network Subnet Mask: <IP_ADDRESS>
Reserve <IP_ADDRESS> for your cmprovision server ip.
Configure dnamasq to set the gateway and DNS to your unifi gateway. In the example above you will also have to change the subnetmask to <IP_ADDRESS> instead of <IP_ADDRESS>
dnsmasq.conf
dhcp-option=6,<IP_ADDRESS>
dhcp-option=3,<IP_ADDRESS>
Also remember to change cmdline.txt to the correct ip.
See, It's not as simple but it works.


webapp testing

Sort of implied as part of the implementation, but @samcunliffe and I were thinking it may be good to collect some notes/resources on the topic here.
This seems like a good starting point.
(For what is worth, I found the dash tutorials to be quite nice).
More to come!

also likely relevant (and mentioned in the Dash tutorial above): Selenium


Prevent noncopyable metatypes from being converted to Any

These metatypes are a gateway to more incorrect
uses of these noncopyable values because we don't
yet have the corresponding runtime support yet.
The other use cases of using metatypes of
noncopyable types in generics is not high enough to warrant people using them yet.
resolves rdar://106452518

@swift-ci please test

@swift-ci please test

This appears to have broken CI, put up a revert: https://github.com/apple/swift/pull/65648


Keep errors uncaught

Hello!
First of all just wanna say thank you for this library. It's very helpful in dealing with getting the content of a Notion page as markdown.
But I believe it is better if error handling would be delegated instead to the user of the library such that we're able to handle the errors ourselves. I understand that returning an empty array would ultimately be fine but I think it's better for the users to be able to handle the errors from the Notion API as they see fit. Some may not even want to have the error logged out.
Code in question below:
https://github.com/souvikinator/notion-to-md/blob/7780938e76c210c1a93332b17ee3b2143fda6a85/src/utils/notion.ts#L31-L34
I myself was surprised that enclosing await n2m.pageToMarkdown(pageId) in a try-catch block did not throw any errors when the pageId I supplied is invalid, hoping that I'll get the error and handle it on my end. But apparently the library was already doing that so I might have no way to catch that error and do my own handling.
If I'm not mistaken, just removing the try-catch block inside getBlockChildren() should be enough since if an error is thrown there, it would escalate all the way up to which function of the library we called.
Would like to know your thoughts on this.

Hey thanks for using notion-to-md.
That totally makes sense. I'll remove all the try catch block so that users have control over error handling. Should be fixed by the next release.

this should be fixed in the upcoming path v2.7.1

live in v3.0.0
Thanks for the contribution.


Add missing parameter docstring and removed unused parameter.

log_directory and config_name were not in the docstring
walltime parameter is not used inside JobQueueCluster (already in derived classes)
Moved down python in the docstring to match signature order.

Let's merge this for now.


[IS] Salesforce Outbound provisioning is not working in JIT mode when outbound provisioning in resident IDP also configured

Please follow below steps to reproduce the issue.

Add salesforce provisioning idp and configure salesforce outbound provisioning connector.
Add federated IDP google/facebook etc.
Add travelocity service provider and add federated IDP as IDP created in #2 and add outbound provisioning as salesforce IDP created in #1 and enable JIT under outbound provisioning.
Add salesforce IDP as resident service provider outbound provisioning
Login to Identity server management console and add a user. If salesforce outbound provisioning works fine it'll provision the user to salesforce successfully.
Then try to login to travelocity service provider. This should authenticate with the federated IDP and provision that user into salesforce. But it's not working.

Note: When debugging the code identified EnableJIT flag populate as disable reason is we have added Outbound provisioning for Resident service provider and the resident service provider doesn't have Enable JIT option if we trigger user adding option first global variable initialize with the false flag for EnableJIT. Then if we try authenticating the user, flag is still false and provisioning will not work.
Refer to : https://wso2.org/jira/browse/IDENTITY-6862

This behaviour is same for all the outbound provisioning connectors.

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


Fix capitalization error on protobuf wiki page

Changelog
Protobuf->protobuf
Docs
None
Description
One of these versions compiles, the other does not.

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

Thanks!


With the latest version of terminal (Windows Terminal Preview v1.5.3242.0), the script "deafult" not working correctly

(The Instance does not start).
The script working instead with Minimal e Flat

Cannot reproduce the issue. Can you try to run uninstall.ps1 first and then run install.ps1 again?

Your only option now is to use PowerShell ISE or VSCode with PowerShell extension to debug install.ps1 with break points. That can reveal what exactly happens on your machine and what might be wrong.

Solved! I didn't know that a custom terminal had to have a guid😅.
There is only one last little problem, I've set a custom icon for wsl bash but the administrator context menu (the normal work correctly) shows the Linux penguin instead of my custom icon.

These ☝ are the rows in settings.json

Solved! I didn't know that a custom terminal had to have a guid😅.

It seems that if you create a new profile via Windows Terminal UI, it won't give it a guid, so you'll need to edit the settings.json manually


ASK: how to configure nginx?

how to configure nginx?

yes i know this is my config, i got a blank page can you help me??
server {
        listen 80;
        listen [::]:80;
        listen 443 ssl;
        listen [::]:443 ssl;

        server_name myserver.net;
        root /home/myserver/DirectoryLister;

        ssl_certificate /etc/letsencrypt/live/myserver.net/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/myserver.net/privkey.pem;
		index index.php;

	    access_log /dev/stderr;
	    error_log /dev/stderr;

	    client_max_body_size 0;

	    location = /favicon.ico { access_log off; log_not_found off; }
	    location = /robots.txt  { access_log off; log_not_found off; }

	    location / {
	        try_files $uri /index.php$is_args$args;
	    }

	    location ~ \.php {
	        fastcgi_split_path_info ^(.+\.php)(.*)$;
	        fastcgi_pass unix:/run/php/php7.4-fpm.sock;
	        fastcgi_index index.php;

	        include fastcgi_params;

	        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
	    }

}


[Bug]: RestClient can not be executed correctly

Apache Hop version?
2.2
Java version?
11
Operating system
Linux
What happened?
When a hop workflow is started interactively from the command prompt when calling the restclient with https and tokens this
call gives the following error
rg.glassfish.jersey.message.internal.MessagingBinders$EnabledProvidersBinder bindToBinder
WARNING: A class javax.activation.DataSource for a default provider MessageBodyWriter<javax.activation.DataSource> was not found. The provider is not available.
Solution --> add the dependencies in the apache hop build to javax.activation or add manually in teh lib/core directy with
the javax.activation... jar
Issue Priority
Priority: 2
Issue Component
Component: Actions

remark the javax.activation is deprecated and is replaced with jakarta.activation (which is availabel in apache hop)
probably some imports of the restclients have to be modified


obsolete tutorial notebook

Hi acme team!
I am a newbie to RL and Acme. I was trying to run the quickstart.ipynb and tutorial.ipynb in the examples. The former ran smoothly. But when I tried to run the DP4GAgent example (i.e., the "dm-cartpole" environment), I failed to get it to work. Apparently some function calls in the tutorial notebook are obsolete. E.g., the tutorial still uses the argument " dataset: tf.data.Dataset" in the initialization of "d4pg.D4PGLearner()", which has been replaced by "dataset_iterator: Iterator[reverb.ReplaySample]" in commit 329aae50695ca0290d6c151b7bbd4cefb1ccf83d. It looks like one needs to use some ActorLearnerBuilder() class to build a DP4G agent now? But I have no idea how... I can't find any documents or examples online regarding this new method. Could you please help update the tutorials accordingly? Thank you so much!

Can you give it a try now? We have pushed a new release of Acme (0.2.3). Please reopen if you still hit this problem.

Hi qstanczyk,
Thanks for your response! I updated my Acme to the latest 0.2.4 version. But the tutorial note book still fails at the same place:
dataset = datasets.make_dataset(
server_address=replay_server_address,
batch_size=256,
environment_spec=environment_spec,
transition_adder=True)
failed with: ValueError: The make_reverb_dataset factory function no longer requires specs as as they should be passed as a signature to the reverb.Table when it is created. Consider either updating your code or falling back to the deprecated dataset factory in acme/datasets/deprecated.


Unable to call set target position for Smart Clothes Dryer device

Device Info as follows

hyd.airer.znlyj1 by Hyd
Firmware: 2.2.1

Keep hitting error when setting the target position of the rack.
Please help to check this out when you are free.
Thank you.

Hello,
I've checked your device's spec. Unfortunately, the device does not support setting target position. And this device seems has been fixed according to #227. Are you using the latest version of the component?
{"type":"urn:miot-spec-v2:device:airer:0000A00D:hyd-znlyj1:1","description":"Airer","services":[{"iid":1,"type":"urn:miot-spec-v2:service:device-information:00007801:hyd-znlyj1:1","description":"Device Information","properties":[{"iid":1,"type":"urn:miot-spec-v2:property:manufacturer:00000001:hyd-znlyj1:1","description":"Device Manufacturer","format":"string","access":["read"]},{"iid":2,"type":"urn:miot-spec-v2:property:model:00000002:hyd-znlyj1:1","description":"Device Model","format":"string","access":["read"]},{"iid":3,"type":"urn:miot-spec-v2:property:serial-number:00000003:hyd-znlyj1:1","description":"Device Serial Number","format":"string","access":["read"]},{"iid":4,"type":"urn:miot-spec-v2:property:firmware-revision:00000005:hyd-znlyj1:1","description":"Current Firmware Version","format":"string","access":["read"]}]},{"iid":2,"type":"urn:miot-spec-v2:service:airer:00007817:hyd-znlyj1:1","description":"Airer","properties":[{"iid":1,"type":"urn:miot-spec-v2:property:fault:00000009:hyd-znlyj1:1","description":"Device Fault","format":"uint8","access":["read","notify"],"unit":"none","value-list":[{"value":0,"description":"No Faults"},{"value":1,"description":"Obstruction"},{"value":2,"description":"Overweight"},{"value":3,"description":"Overheated"}]},{"iid":2,"type":"urn:miot-spec-v2:property:motor-control:00000038:hyd-znlyj1:1","description":"Motor Control","format":"uint8","access":["write"],"unit":"none","value-list":[{"value":0,"description":"Pause"},{"value":1,"description":"Up"},{"value":2,"description":"Down"}]},{"iid":3,"type":"urn:miot-spec-v2:property:current-position:00000039:hyd-znlyj1:1","description":"Current Position","format":"uint8","access":["read","notify"],"unit":"none","value-range":[0,2,1]},{"iid":4,"type":"urn:miot-spec-v2:property:status:00000007:hyd-znlyj1:1","description":"Status","format":"uint8","access":["read","notify"],"unit":"none","value-list":[{"value":0,"description":"Stopped"},{"value":1,"description":"Up"},{"value":2,"description":"Down"},{"value":3,"description":"Pause"}]}]},{"iid":3,"type":"urn:miot-spec-v2:service:light:00007802:hyd-znlyj1:1","description":"Light","properties":[{"iid":1,"type":"urn:miot-spec-v2:property:on:00000006:hyd-znlyj1:1","description":"Switch Status","format":"bool","access":["read","write","notify"],"unit":"none"}]}]}


Z app build 2 x

Letting everyone know how cool I am

@timmckeoun is super cool!
I am closing this PR, because I feel it was accidentally opened against the public repo.


Unable to install markdown

Encountered an error similar to #1594 when attempting to install markdown:
npm ERR! Failed unpacking /var/folders/Wk/WkX9yPHAFmmkKLkd0NjMpE+++TI/-Tmp-/npm-1320463042486/1320463042486-0.6991757173091173/tmp.tgz
npm ERR! couldn't unpack /var/folders/Wk/WkX9yPHAFmmkKLkd0NjMpE+++TI/-Tmp-/npm-1320463042486/1320463042486-0.6991757173091173/tmp.tgz to /var/folders/Wk/WkX9yPHAFmmkKLkd0NjMpE+++TI/-Tmp-/npm-1320463042486/1320463042486-0.6991757173091173/contents
npm ERR! Error: tar "-zmvxpf" "/var/folders/Wk/WkX9yPHAFmmkKLkd0NjMpE+++TI/-Tmp-/npm-1320463042486/1320463042486-0.6991757173091173/tmp.tgz" "-o"
npm ERR! failed with 2
npm ERR!     at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/tar.js:219:20)
npm ERR!     at ChildProcess.emit (events.js:67:17)
npm ERR!     at ChildProcess.onexit (child_process.js:192:12)
npm ERR! Report this entire log at:
npm ERR!     http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR<EMAIL_ADDRESS>npm ERR!
npm ERR! System Darwin 10.8.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "markdown"
npm ERR! cwd /Users/josephleblanc
npm ERR! node -v v0.4.12
npm ERR! npm -v 1.0.103
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/josephleblanc/npm-debug.log
npm not ok

Did you try both HEAD of npm, and updating tar, as suggested in #1594? Did either one make a difference?

I tried updating tar and upgraded to v0.1.103. I'm not able to compile current HEAD.

Still getting errors on v1.0.105
npm ERR! Failed unpacking /var/folders/Wk/WkX9yPHAFmmkKLkd0NjMpE+++TI/-Tmp-/npm-1320978874180/1320978874180-0.9704792429693043/tmp.tgz
npm ERR! couldn't unpack /var/folders/Wk/WkX9yPHAFmmkKLkd0NjMpE+++TI/-Tmp-/npm-1320978874180/1320978874180-0.9704792429693043/tmp.tgz to /var/folders/Wk/WkX9yPHAFmmkKLkd0NjMpE+++TI/-Tmp-/npm-1320978874180/1320978874180-0.9704792429693043/contents
npm ERR! Error: tar "-zmvxpf" "/var/folders/Wk/WkX9yPHAFmmkKLkd0NjMpE+++TI/-Tmp-/npm-1320978874180/1320978874180-0.9704792429693043/tmp.tgz"
npm ERR! failed with 2
npm ERR!     at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/tar.js:221:20)
npm ERR!     at ChildProcess.emit (events.js:67:17)
npm ERR!     at ChildProcess.onexit (child_process.js:192:12)
npm ERR! Report this entire log at:
npm ERR!     http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR<EMAIL_ADDRESS>npm ERR!
npm ERR! System Darwin 10.8.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "markdown"
npm ERR! cwd /Users/josephleblanc
npm ERR! node -v v0.4.12
npm ERR! npm -v 1.0.105
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/josephleblanc/npm-debug.log
npm not ok

Found the problem. While I updated tar, I didn't update gzip. The gzip on my system was 1.2.4; I'm now running 1.4.
I found this out when I tried copying that tmp.tgz file over into another folder and running tar "-zmvxpf" there. The entire archive decompressed okay, but I got these error messages interspersed with the verbose output:
[snip]
package/test/fixtures/Text-Markdown.mdtest/Links_multiline_bugs_1.text
package/test/fixtures/Text-Markdown.mdtest/Links_multiline_bugs_2.html
package/test/fixtures/Text-Markdown.mdtest/Links_multiline_bugs_2.json
package/test/fixtures/Text-Markdown.mdtest/Links_multiline_bugs_2.text
package/test/fixtures/Text-Markdown.mdtest/Links_reference_style.json
package/test/fixtures/Text-Markdown.mdtest/Links_reference_style.text
package/test/fixtures/Text-Markdown.mdtest/Links_reference_style.xhtml
package/test/fixtures/Text-Markdown.mdtest/Lists-multilevel-md5-edgecase.json
package/test/fixtures/Text-Markdown.mdtest/Lists-multilevel-md5-edgecase.text
gzip: stdin: decompression OK, trailing garbage ignored
package/test/fixtures/Text-Markdown.mdtest/Lists-multilevel-md5-edgecase.xhtml
package/test/fixtures/Text-Markdown.mdtest/PHP-ASP_tags.json
package/test/fixtures/Text-Markdown.mdtest/PHP-ASP_tags.text
package/test/fixtures/Text-Markdown.mdtest/PHP-ASP_tags.xhtml
package/test/fixtures/Text-Markdown.mdtest/Unicode.json
package/test/fixtures/Text-Markdown.mdtest/Unicode.text
package/test/fixtures/Text-Markdown.mdtest/Unicode.xhtml
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Upgrading gzip removed these messages entirely.

Unsure of the tracker etiquette here, so I will close this issue now that everything's working with the software updates in place.

@jileblanc Sorry for the slow response.
The 1.1 version (currently in alpha, bundled with node binary releases) should get around these issues, but doing the zlib and tar stuff internally rather than shelling out to system commands.
You might have better results using 0.6.4 and npm 1.1.0-alpha-6, which you can fetch via:
curl http://npmjs.org/install.sh | npm_install=alpha sh

Can't get the alpha to compile on my system at the moment. It's okay though, because getting the command line tools updated fixed it. Now if I can just get all of the modules I'm using to upgrade their stuff to work with Node 0.6.x ;)
On Dec 2, 2011, at 7:25 PM, Isaac Z. Schlueter wrote:

@jileblanc Sorry for the slow response.
The 1.1 version (currently in alpha, bundled with node binary releases) should get around these issues, but doing the zlib and tar stuff internally rather than shelling out to system commands.
You might have better results using 0.6.4 and npm 1.1.0-alpha-6, which you can fetch via:
curl http://npmjs.org/install.sh | npm_install=alpha sh

Reply to this email directly or view it on GitHub:
https://github.com/isaacs/npm/issues/1655#issuecomment-2998275

I have been having similar issues both on my local machine (os x) and externally (ubuntu)
edward$ npm install ostatus
npm ERR! couldn't unpack /var/folders/jm/8crvw4mx1vz6ldjh9r935zg80000gn/T/npm-1323042752603/1323042752605-0.4734669881872833/tmp.tgz to /var/folders/jm/8crvw4mx1vz6ldjh9r935zg80000gn/T/npm-1323042752603/1323042752605-0.4734669881872833
npm ERR! error installing<EMAIL_ADDRESS>Error: ENOENT, no such file or directory '/var/folders/jm/8crvw4mx1vz6ldjh9r935zg80000gn/T/npm-1323042752603/1323042752605-0.4734669881872833/package/package.json'
npm ERR! Error: ENOENT, no such file or directory '/var/folders/jm/8crvw4mx1vz6ldjh9r935zg80000gn/T/npm-1323042752603/1323042752605-0.4734669881872833/package/package.json'
npm ERR! Report this entire log at:
npm ERR!     http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR<EMAIL_ADDRESS>npm ERR!
npm ERR! System Darwin 11.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "ostatus"
npm ERR! cwd /Users/edward/Sites/loft.io
npm ERR! node -v v0.6.5
npm ERR! npm -v 1.1.0-alpha-6
npm ERR! path /var/folders/jm/8crvw4mx1vz6ldjh9r935zg80000gn/T/npm-1323042752603/1323042752605-0.4734669881872833/package/package.json
npm ERR! code ENOENT
npm ERR! message ENOENT, no such file or directory '/var/folders/jm/8crvw4mx1vz6ldjh9r935zg80000gn/T/npm-1323042752603/1323042752605-0.4734669881872833/package/package.json'
npm ERR! couldn't unpack /var/folders/jm/8crvw4mx1vz6ldjh9r935zg80000gn/T/npm-1323042752603/1323042752603-0.6861416406463832/tmp.tgz to /var/folders/jm/8crvw4mx1vz6ldjh9r935zg80000gn/T/npm-1323042752603/1323042752603-0.6861416406463832
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/edward/Sites/loft.io/npm-debug.log
npm not ok


Add a link to preview on main readme

Sometimes developers land on our main branch but are looking for preview documentation. We should make it easy for them to route themselves.

Our new doc has a pivot selector to let reader switch between stable and preview version. So I think this issue can be closed.


Method to get suggested users?

Hi @huttarichard , is there a method to get suggested users to follow based on a particular user? Something like similar users.
The app has the functionality, so I wonder if it's already doable with the existing code but couldn't find it.
Thanks

Doesn't look like it's implemented yet, but by inspecting traffic from the web IG client, the endpoint has the form:
https://www.instagram.com/graphql/query/?query_id=17845312237175864&variables={"id":"USER_ID"}
I was able to successfully hit this endpoint just now by using the following code:
`var getSimilarUsersURL = function(userId) {
const SIMILAR_USERS_BASE_URL = "https://www.instagram.com/graphql/query/?query_id=17845312237175864&variables=";
return SIMILAR_USERS_BASE_URL + '%7B%22id%22%3A%22' + userId + '%22%7D';
}
var getSimilarAccountsByUserId = function(session, userId) {
const requestUrl = getSimilarUsersURL(userId);
return new Client.Request(session)
.setMethod('GET')
.setUrl(requestUrl)
.send();
};`
Obviously this is a bit messy, but it works. If anyone wants to actually implement this that'd be great :)


DidDocument In indentity.rs Does Not Serialize Into Correct JSON-LD Did Document

You can see the DidDocument struct here - https://github.com/knox-networks/ssi/blob/7c3a9d2827451127d4d0c15536c636dea8775f88/core/src/identity.rs#L113-L120.
Does not do the correct renaming and structuring that is needed to support correct serialization in the same way that the Credential struct does - https://github.com/knox-networks/ssi/blob/7c3a9d2827451127d4d0c15536c636dea8775f88/core/src/credential.rs#L38-L57

We should:

[ ] Create a test case to make sure create_did_document creates a struct that serializes into a correct did document
[ ] Fix it by mirroring the same structure/renaming we did for the Credential struct


scheduling of appointments

the schedule feature
Describe the solution you'd like
a way to prevent users from login in after a certain number of users
I'd say about 10 > 20

the schedule feature
Describe the solution you'd like a way to prevent users from login in after a certain number of users
I'd say about 10 > 20

Login Restriction:

Define a max_threshold_limit = 10
Check if the number of current active users
If it is greater than the threshold then deny the login with a apologetic message
Else allow the person to log in.


Bug when doing postcode searching

Hello, I'd like to report a bug. This is related to the API not this package.
When I'm searching for postcodes using TypeAhead API, sometimes the results won't pop up. To get it working I need to type a comma after postcode.
For example, SR32DR won't show up, but if I type SR32DR, I get the results. I don't use this node package, instead I use direct API calls.

1 - Without a comma
2 - With a comma
API call as here - https://documentation.getaddress.io/Typeahead using search: ['postcode'].
Also it doesn't matter if I use encodeURI(postcode) or pass the postcode as it is in the request query params.

This is not a bug. Typeahead returns suggestions, not the same postcode you have entered.
Please only use GitHub to report code issues

Doesn’t make any sense. What’s the problem in returning the same exact postcode if it is in your system?


[SPARK-33605][BUILD] Add gcs-connector to hadoop-cloud module

What changes were proposed in this pull request?
This PR aims to add gcs-connector shaded jar to hadoop-cloud module.
Why are the changes needed?
To support Google Cloud Storage more easily.
Does this PR introduce any user-facing change?
Only one shaded jar file is added when the distribution is built with -Phadoop-cloud.
$ ls -alh gcs*
-rw-r--r--@ 1 dongjoon  staff    32M Aug 31 11:14 gcs-connector-hadoop3-2.2.7-shaded.jar

How was this patch tested?
BUILD
$ dev/make-distribution.sh -Phadoop-cloud

RUN
$ export KEYFILE=YOUR-credentials.json
$ export EMAIL=$(jq -r '.client_email' < $KEYFILE)
$ export PRIVATE_KEY_ID=$(jq -r '.private_key_id' < $KEYFILE)
$ export PRIVATE_KEY="$(jq -r '.private_key' < $KEYFILE)"
$ bin/spark-shell \
-c spark.hadoop.fs.gs.auth.service.account.email=$EMAIL \
-c spark.hadoop.fs.gs.auth.service.account.private.key.id=$PRIVATE_KEY_ID \
-c spark.hadoop.fs.gs.auth.service.account.private.key="$PRIVATE_KEY"
Setting default log level to "WARN".
To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel).
22/08/31 11:56:04 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Spark context Web UI available at http://localhost:4040
Spark context available as 'sc' (master = local[*], app id = local-1661972165062).
Spark session available as 'spark'.
Welcome to
      ____              __
     / __/__  ___ _____/ /__
    _\ \/ _ \/ _ `/ __/  '_/
   /___/ .__/\_,_/_/ /_/\_\   version 3.4.0-SNAPSHOT
      /_/

Using Scala version 2.12.16 (OpenJDK 64-Bit Server VM, Java 17.0.4)
Type in expressions to have them evaluated.
Type :help for more information.

scala> spark.read.text("gs://apache-spark-bucket/README.md").count()
res0: Long = 124

cc @sunchao , @steveloughran

Seems OK, but what does it buy us? GCS storage support? Only downside is increasing the sea of JARs in the project, I guess.

Yes, only for better GCS support for the users who use -Phadoop-cloud.
Apache Spark distribution doesn't use -Phadoop-cloud during our release process. So, the publish artifacts are not affected. The cost of 32M additional size increase is only on the user-side.

The failure is irrelevant to this PR. It seems that the base image publishing is broken again. cc @Yikun
#33 ERROR: failed commit on ref "manifest-sha256:d7fdbdf2cdb51876ca0c22c2e3b1865b11e2058fd9a07e59f281f7596cb00956": unexpected status: 403 Forbidden
 > exporting to image:
ERROR: failed to solve: failed commit on ref "manifest-sha256:d7fdbdf2cdb51876ca0c22c2e3b1865b11e2058fd9a07e59f281f7596cb00956": unexpected status: 403 Forbidden
Error: buildx failed with: ERROR: failed to solve: failed commit on ref "manifest-sha256:d7fdbdf2cdb51876ca0c22c2e3b1865b11e2058fd9a07e59f281f7596cb00956": unexpected status: 403 Forbidden

@dongjoon-hyun Thanks to ping me, this due to github action ghcr unstable, you could retry to make it work.

Thank you, but Base Image Build phase failed three times already .

@dongjoon-hyun I just saw your recreate the spark repo, so might default permisson has some changes on Github Action?
You could first set permission for your dongjoon-hyun/spark repo: https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/#setting-the-default-permissions-for-the-organization-or-repository
and we might need a separate pr to set spark permission for new created repo: https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/#setting-permissions-in-the-workflow

https://github.com/dongjoon-hyun/spark/settings/actions

It's weird. IIRC, I didn't change anything from my previous repo either when your PR applied this change.

Could you check this link?
https://github.com/users/dongjoon-hyun/packages/container/package/apache-spark-ci-image/settings

The potential issue might be you remove the old repo, but the images is not be deleted, then when create the new repo, the write permisson of this image are not configured to new repo.

I checked that mine is the same with you.

Let me try to clean up

curl -X DELETE -H "Accept: application/vnd.github+json" -H "Authorization: token $REPLACE_ME" https://api.github.com/user/packages/container/apache-spark-ci-image

Thank you so much, @Yikun . Now, it seems to work on my three PRs.

Thank you for review, @steveloughran .

note that the gcs connector (at leasts the builds off their master) are java 11 only; not sure where that stands w.r.t older releases
note that the gcs connector (at leasts the builds off their master) are java 11 only; not sure where that stands w.r.t older releases

I didn't realize this because I've been using Java 11+. If then, I had better close this PR and the JIRA officially.
Thank you, @srowen , @sunchao and @steveloughran !

Ur, wait. @steveloughran . It's Java 8, isn't it?
https://github.com/GoogleCloudDataproc/hadoop-connectors/blob/8453ce7ce7510e983bae7470909fbd02704c0539/pom.xml#L76-L77
    <build.java.source.version>8</build.java.source.version>
    <build.java.target.version>8</build.java.target.version>

This PR passed CI here.

https://github.com/dongjoon-hyun/spark/runs/8139684479?check_suite_focus=true

3.0.0 is java 11
    <build.java.source.version>11</build.java.source.version>
    <build.java.target.version>11</build.java.target.version>

that is hadoop-3.3.1, which simplifies my life a lot too...the streams even support IOStatistics. I've been testing my manifest committer through it and have to bump the test shell up to java11 for all to work

anyway, the version you are looking at is probably safe; it switched in feb 2022 (pr 726)

There is no 3.0.0 yet. :)

Thank you for your review, comments, and help, @srowen , @Yikun , @sunchao , @steveloughran . It seems that there is no other concerns, I'll merge this.


UI doesn't navigate to newly created Safe after creation

After creating a new Sepolia Safe on dev, the UI doesn't auto navigate to the newly created Safe. Instead, we are quickly shown a message saying "Your Safe was deployed but is not yet available to view. It has been added to your favorites list."
This was repeatable a few times.
This issue is present on dev (Sepolia), but not prod (Sepolia).
On prod (Sepolia), I'm unable to see this issue after many repeated attempts.

Actually, this behavior is a lot more sporadic than previous experienced. Going to close this for now.


Multiple renders keeps the previous state
When I render multiple views as components, they keep the state of previous arguments passed to them instead of reinitialize with default value each render.

Steps to reproduce the behavior:
Flight::render('myComponent', ['var1'=>1]);
Flight::render('myComponent', [ ]); // $var1 is still 1

Expected behaviour
Each render clean previous vars.
Environment:

OS: Windows
Browser: Firefox 62
PHP Version: 8.2.18
Flight Version: 3.8.1

This could be tagged as `v3.9.0


Disable Automatic File Opening in Safari

Could you add this to the Web browsing section instead? Perhaps something like, "if you insist on using Safari, at least configure it in such and such way ..."


adding NX, EX, XX capabilities to SET function for redis

Fixes #292

Current coverage is 80.23%

Merging #293 into master will increase coverage by +0.08% as of c307aeb

@@            master    #293   diff @@
======================================
  Files           70      70
  Stmts         3513    3526    +13
  Branches       446     449     +3
  Methods
======================================
+ Hit           2816    2829    +13
  Partial          0       0
  Missed         697     697

Review entire Coverage Diff as of c307aeb

Powered by Codecov. Updated on successful CI builds.

+1.  So annoyed I missed this :)

Any reason to use FiniteDuration and not Duration for TTL?

I would argue that these timeouts should never be infinitely long.

Actually I like that idea, setting Duration.inf can be the same as not adding the PX parameter.  Eliminates having to wrap in an option.


Includes missing introductions

Some files available in gen-apidocs/generators/static_includes are not included in the final documentation, due to a typo.

/assign @steveperry-53

/cc @tengqm

/lgtm
/approve


Documentation for k-planes add-on

Hi! Finally, the docs for the k-planes add-on.
Hope the page is clear, but let me know if you have any doubts!

The instructions were updated a little in the past few days, there are now two more files that need to be updated, https://docs.nerf.studio/en/latest/nerfology/methods/index.html#adding-your-own-method

sorry I totally missed the new requirements.. Should be fixed now!


Version 1.2.0 is almost always in Sync status or no sync

Version 1.2.0 is almost always in Sync status or no sync. Will this be fixed or is it better to go back to the previous version?

Same here. Syncs slower, than the chain moves forward... block 174214/177315 right now

When I start the application, an error appears and I have lost all the coins

I am in the same boat always syncing or I'm getting the message saying not synced.  I have only been synced for a few minutes since updating to 1.2.0

It's a complex problem because the timelords are a bit slow for that dfficulty. We did setup an 80 core machine with 128 GB RAM and after it's synched it should improve a lot.

miosukakura, thank you for your response, but still no syncing. I installed the previous version of the app, but it also doesn't sync. I lost 22,000 coins. How can I get them back?

@SergeyKGoncharov can you check now? Our nodes has been fully synched in the last 41 hours.

Hi, about 1 hour ago I installed 1.2.0 and it does not sync

can you pass me some peers to see if I can sync. Thank you.

Is this project abandoned?  I just learned about it today but seems like nothing will sync with 1.2.0

im having same issue, no connections

Guys I am telling you node address with their port no. . The issue will connecting issue will resolve
<IP_ADDRESS> : 8744
<IP_ADDRESS> : 8744
<IP_ADDRESS> : 8744
<IP_ADDRESS> : 8744
<IP_ADDRESS> : 8744

@SergeyKGoncharov can you check now? Our nodes has been fully synched in the last 41 hours.

I completely reinstalled the app with the removal of all directories and the synchronization now works and there is farming. The coins I received earlier were returned to me. However, the coins are not displayed on the Farming tab. I can only see them on the Wallet tab

's synched it should improve a lot.

That helped. Always Synced now.

Try these :-
<IP_ADDRESS> : 8744
<IP_ADDRESS> : 8744
<IP_ADDRESS> : 8744
<IP_ADDRESS> : 8744
<IP_ADDRESS> : 8744

Closing the issue


[Bugfix] [Network Speed] Fix no loading animation

Description

Add information display during speed measurement

Screencast
https://github.com/raycast/extensions/assets/36128970/ed8d4069-8e39-4d09-aa37-ae0c64c29fc0
Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

I don't see anything else than this when running it 🫠

Hi @pernielsentikaer, must be upgraded to the latest sonoma to display the data during the measurement. Which Mac system version do you have?
I just submitted a commit to add placeholder characters for a lower version of the system.

Which Mac system version do you have?

I'm on Sonoma 14.1 Beta (23B5056e)

Sonoma is enough.
Could you please try using the networkQuality command in the terminal to see if the test process is displayed in real time
https://github.com/raycast/extensions/assets/36128970/435bf7d6-0392-46c1-9108-971dff58bf18

Also, what does the page performance look like now during your speed tests with this extension? Can you take a screenshot if you can?

Sure @koinzhang

Hi @pernielsentikaer. It looks like different versions of sonoma (I'm using 14.0 on my device), networkQuality returns different strings, I've submitted a commit to fix this, please retest!


remove archive

After this, you need to set up GitHub milestone to manage the PR and issue, you will need the changelog for every release.

After this, you need to set up GitHub milestone to manage the PR and issue, you will need the changelog for every release.

Make sense to me.

After this, you need to set up GitHub milestone to manage the PR and issue, you will need the changelog for every release.

Do milestones need to be placed in the main repo? Or open issue in this repo?


Save button not correctly disabled when there's no changes

Describe the Bug
When editing a collection, the "Save" button should be disabled upon no changes to this collection.
However, in my case, I have Block Item Block inside collection Courses and the block has a "type: 'relationship'" to another collection Items, when collection Items is edited directly inside Courses, the "Save" button on the Courses editing page becomes clickable and throws error "This relationship field has the following invalid relationships: [object Object] 0" upon clicking.

This bug was introduced after upgrading from beta.103 to beta.104.
Link to the code that reproduces this issue
https://github.com/shangjieJayZhou/payload3.0-bug-report
Reproduction Steps

run "pnpm i"

copy everything in ".env.local.example" into a file ".env"

Either tweak the DATABASE_URI in .env to fit your local db, or make sure you have a locally running postgres db on 5432 with database "lms" and schema "payload-content"

run "pnpm dev"

(assume your payload is running on 3000) Log in to http://localhost:3000/admin

Go to collection Courses

Click "Create New" and you should be seeing this

Click "Add Content" and add an Item Block, and you should be seeing this

Click the "+" button on the right to add an item inside this newly created Item Block. Give it any name and price, should look something like this

Click "Save" to add this item and close this item window, you should be back to the Course page and see this

Click "Save" on the top right to save changes to this Course, after clicking "Save" there should be no error and you should see that the "Save" button now turns grey:

Go edit the item you just added by clicking on the edit icon on the item inside the Item Block, then change the name(or the price, doesn't matter) to something different and save, after saving you should see something like this:

Close the item window and you should be back to the course editing page, and you should see that the "Save" button is no longer greyed out and is clickable (while it SHOULD NOT be)

Click on "Save" and you should see an error, like this

Which area(s) are affected? (Select all that apply)
area: ui, plugin: nested-docs
Environment Info
Binaries:
Node: 20.13.1
npm: 10.5.2
Yarn: 1.22.22
pnpm: 9.7.0
Relevant Packages:
payload: 3.0.0-beta.123
next: 15.0.0
@payloadcms/db-mongodb: 3.0.0-beta.123
@payloadcms/db-postgres: 3.0.0-beta.123
@payloadcms/graphql: 3.0.0-beta.123
@payloadcms/next/utilities: 3.0.0-beta.123
@payloadcms/richtext-lexical: 3.0.0-beta.123
@payloadcms/richtext-slate: 3.0.0-beta.123
@payloadcms/translations: 3.0.0-beta.123
@payloadcms/ui/shared: 3.0.0-beta.123
react: 19.0.0-rc-65a56d0e-20241020
react-dom: 19.0.0-rc-65a56d0e-20241020
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 23.5.0: Wed May  1 20:19:05 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T8112
Available memory (MB): 16384
Available CPU cores: 8

Encountered the same bug (at least since v117)

Open document that has relationship
Click the edit icon of the relation
Make a change and click save
Close the modal
The save button lights up, clicking it shows this error:
This relationship field has the following invalid relationships: [object Object] 0

It seems that the relation modal passes down the complete object on save instead of just the id


Baileys repository

Are you going to suppor the new repository at https://github.com/WhiskeySockets/Baileys ?

Hi @muttley79
I've switched to the new repository, thanks for suggesting it.


Allow std::atomic usage of QuantityPoint with gcc-9

It appears to be impossible to define std::atomic variable of a QuantityPoint when using gcc-9 or older version.
Example:
#include <atomic>

using Kelvins = au::QuantityPointU32<au::Kelvins>;

int main()
{
    std::atomic<Kelvins> m_atomic_temp;
}

Output:
In function 'int main()':
<source>:5023:26: error: use of deleted function 'constexpr std::atomic<_Tp>::atomic() [with _Tp = au::QuantityPoint<au::Kelvins, unsigned int>]'
 5023 |     std::atomic<Kelvins> m_atomic_temp;
      |                          ^~~~~~~~~~~~~
In file included from <source>:5017:
/opt/compiler-explorer/gcc-9.5.0/include/c++/9.5.0/atomic:198:7: note: 'constexpr std::atomic<_Tp>::atomic() noexcept [with _Tp = au::QuantityPoint<au::Kelvins, unsigned int>]' is implicitly deleted because its exception-specification does not match the implicit exception-specification ''
  198 |       atomic() noexcept = default;
      |       ^~~~~~

In godbolt.org: https://godbolt.org/z/beG9Tfee3
On gcc-10 and up the above code compiles just fine.

I can reproduce on godbolt.  Looks like #120 would fix it.  @avrahamshukron, can you confirm?
And are there other std::atomic test cases you want to double check before we land #120?

I can confirm that #120 fixes the problem.
Currently I can only imagine atomic Quantity and atomic QuantityPoint, which are both covered, so I'm OK with #120 as-is.
Thank you for the very quick reply!


Dockerize the application

Describe the feature
when we dockerize any app it helps us in many ways like when some other user run this app in different operating system and different nodejs environment then he finds many difficulty in running this app but when we dockerize the app then user can run this app in any environment easily and also it helps in run our app in future also easily
kindly assign me this issue under Gssoc'24
Add ScreenShots
No screenshot needed
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

hi @agarwalhimanshugaya, I have a question. Is it possible to dockerize? If yes, how can this be done? Since this is an HTML, CSS, and Javascript based web application,  what base image can be used for this app? I would be glad to know more on this matter.

@RanjanaShenoy we can dockerize this using nginx element which give feature of load balancing and reverse proxy feature


Extended InteractiveRadialSet to allow multiple selection

see https://github.com/Microsoft/MixedRealityToolkit-Unity/issues/1135

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


Implement a blobless block endpoint

Alternatively, the Tendermint block endpoint could be modified to unwrap the BlobTx into Tx before returning it.

this is an idea we can explore! thanks for the good rec @blorgon1 . We'd have to implement the "blobless" block in a separate endpoint to not also break some important downstream things ofc, but this seems like the simplest change.
Originally posted by @evan-forbes in https://github.com/celestiaorg/celestia-app/issues/2715#issuecomment-1770985006

This seems a duplicate of https://github.com/celestiaorg/celestia-core/issues/1121 (or the other way around)

hi, any updates on this? can't run a subquery indexer for celestia due to this issue

can't run a subquery indexer for celestia due to this issue

hey @alexanderludwig , do you happen to have any docs describing what a subquery indexer is so we can make sure we're providing the correct approach?
to answer your question, this hasn't been planned yet. it would be decently easy to for someone / some llm to pick up since its mostly copying and past forking the existing block endpoint, iterating through the txs, if its a blobtx, only include the transaction and not the blob.


Make Kara's suggested fixes to build_integration.md

Add more context.
Delete unnecssary sections
imporove clarity
Define sanitizers, fuzzers, libFuzzer, fuzz targets for new users.

@olivekl What do you think?


policy/trace: Support recent api versions for {Deployment, ReplicaSet}

To add recent API versions apps{v1beta1, v1beta2, v1}.Deployments
and apps{v1beta2,v1}.ReplicaSet in cilium policy trace CLI.
Refactor with switch type statement, and move common code to separate
function
Fixes: #12882
Deprecated Note for k8s 1.16 https://kubernetes.io/blog/2019/07/18/api-deprecations-in-1-16/
policy/trace: Support recent api versions for {Deployment, ReplicaSet}

Coverage decreased (-0.01%) to 37.117% when pulling 8e9b8af9eb4633791d279186b89157018ab9c98d on sayboras:bugfix/cilium-policy into bfd972f36ecfbd4feec055fa0b8afe2e054b21ab on cilium:master.

test-me-please


use zope.event or xmonader/events to provide event system

https://github.com/xmonader/events

Needed to register for e.g. data change event of any instance.


Connection to Jupyter Notebook and Ethernet

Hello Andre, thanks a ton for your work and great documentation on this project. I am trying to learn more about the PYNQ Z2 platform and I am using this project as a starter to learn more about Vivado and other tools. I was able to successfully replicate your results by downloading the SD card image you provide, but I am trying to access jupyter notebooks and connecting my PYNQ Z2 board to the internet to upload some of the processed images to google cloud. For some reason, the jupyter notebooks that are supported on the board's original supported card image, are not available on the card image that I have downloaded from your project. I was wondering if you know the reason behind is or if you have any suggestions as to how I could approach enabling this to be able to upload some of the generated images from YOLO to GCP. Thank you in advance, Rodrigo.

Hello Rodrigo!
I'm glad my project and documentation are being helpful for you!
Beccause of lack of time, I could not reach the part of setting the Jupyter Notebook on the PYNQ-Z2 with the modified SD card image. However,this is how you might access the Jupyter Notebook on the board:

Connect your PYNQ-Z2 board to your internet router and configure your computer's IP accordingly. I went trough this doubt before on this issue.
On your computer (now connected to the board on the internet), you should browse http://pynq:9090/ or http://<IP_ADDRESS>, but on the last one you should replace "<IP_ADDRESS>" with the actual IP address of the board.
Having access to Jupyter you can now upload any files you want!

The files that appear when you use the original SD card image do not appear with the custom SD card image because those files are more examples presented by Xilinx for the user to experiment. This custom image aims to implement the DPU with the right configurations and so it did not prioretize the example notebooks. However, you can download some of the original files on this link from the Xilinx PYNQ repository.

I don't know how you can upload some of the images to Google cloud but I am pretty sure that would involve the installation of some specific package/ library that you would call on the notebook so you could move it to your cloud. Take a look at this and see if it helps. You might want to search something involving "upload to google cloud using jupyter notebook".
Other thing you have to take in consideration is that originally on this tutorial, you use YOLOv3 with a c++ script. On jupyter you have to use python on a Jupyter Notebook (.ipynb). I don't know how you could convert the c++ script to a jupyter notebook so I think the best thing to do is try to find some implementation already in ipynb. I found this one which should be compatible with my work (Scroll down the website until you find the tutorial).

It might need some modifications so feel free to contact me for help!
I hope this information is helpful! Good luck on your projects! :)

Hello Andre, thank you in advance for your thorough response. I read many suggestions to connect directly to the router, the problem is I am trying to access the internet through a local network in my office space, so I do not have access to a router. Did you find any ideas on how to go around this if you don't have access to a router? As a separate conversation, any pointers on how setting the Jupyter Notebook on the PYNQ-Z2 with the modified SD card image might be approached? Thank you in advance

Hello again Rodrigo.
The other option I know to connect the board to the internet without using the router is by using a Wi-fi extender. I haven't tried this method but here on this guide the author mentions that option and redirects to a page that might help get that set up.

These extenders are cheap as fas as I know so it might be a viable option.
Another option I read about was using a wi-fi dongle. This documentation mentions some dongles you can use that are tested. There are quite some forums about this but I need to read it better to understand how that should work.
To access jupyter notebook, you should do the setup normally as described here. But, on the Network connection part, you just do the connection to the router or wi-fi dongle or wi-fi extender. Then after everything is setup (including the USB connection), you just browse on Google or other browser the board IP address. To do this, you use this command ifconfig eth0, take a note of the IP address that appears and paste it on the browser like this: http://<IP_ADDRESS>, where "<IP_ADDRESS>" is the IP adress that appears on the command line that you took a note.
This will give you access to the jupyter notebook even on the custom SD card image. The password should be xilinx or root.
I hope this helps you. Feel free to ask any more questions!


Correct value for TIMESTAMP in test data.

Fixes #30

Codecov Report

Merging #34 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master    #34   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           4      4
  Lines         638    638
=====================================
  Hits          638    638

Continue to review full report at Codecov.

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


No target blank for download link

I've tested this in all non mobile browsers. since we have Content-Disposition, we no longer need target blank.
The exception may be iOS, but since we show native controls there - this may not be a problem


light spot version

Hello,
There will be a light hotspot version of this analyzer?
Thank you.

New logs dont have much data, you could count how many per day / hour and how many failed. For showing the single witnesses at least there is RSSI and SNR data available.
2022-05-12 06:33:32.624 156 [info] <0.2991.0>@miner_onion_server_light:decrypt:{230,13} sending witness at RSSI: -117, Frequency: 868.1, SNR: -1.2

I am also seeing the witness list report stopped working since light miner deployment.
Is there a workaround or a new version of this analyzer?

I am also seeing the witness list report stopped working since light miner deployment. Is there a workaround or a new version of this analyzer?

@inigoflores will have to adjust his script to the new log format
But as I said above there is not a lot of information anymore like before, since no more dialing challengers. All your miner is doing is submitting a witness once to a validator.
For now you you can only analyze by hand, put its pretty simple, just need to count the lines with "sending witness at [...]".

Thanks @steakneedy. Hope the script does get adjusted.
Is that "sending witness at" line a definitive indication of successfully sent data? Sorry I am not really an expert, just trying to relate to the old report

Thanks @steakneedy. Hope the script does get adjusted. Is that "sending witness at" line a definitive indication of successfully sent data? Sorry I am not really an expert, just trying to relate to the old report

It is unsuccessful if in the following lines in the log you find this:
2022-05-12 06:54:18.377 156 [warning] <0.15814.1>@miner_poc_grpc_client_statem:send_report:{539,5} failed to submit report.  OnionKeyHash: <<xxxxxxxxx>>, Report: {blockchain_poc_witness_v1_pb,<<xxxxxxxxxxx>>,1652338456770406504,-126,<<xxxxxxxxxxx>>,<<>>,-10.5,867.9,4,<<"SF12BW125">>}
otherwise it was successful.
In the failed line you can compare the RSSI SNR to the "sending witness at" line before (-126 / -10.5). So this has to be implemented in the script to check if submitting the witness has failed.

Thanks for the input, very useful.  I am waiting to gather some data in the logs to make sense of what can be used before I start coding. Unfortunately, I agree it's not much.
I'll try to have a beta version ready in the next 24 hours.
In the meantime, depending on your hotspot brand/model, this may work https://github.com/inigoflores/lora-packet-forwarder-analyzer .

I have now made the changes that will allow the tool to work on light hotspots. Let me know if you find any issues.
I will try to add more features if I discover any other useful stuff in the logs.

I have now made the changes that will allow the tool to work on light hotspots. Let me know if you find any issues.
I will try to add more features if I discover any other useful stuff in the logs.

That was fast 😄
Great job, can confirm its working with Sensecap logs. Thanks for your efforts.

Great job, works with controllino just fine.

I have now made the changes that will allow the tool to work on light hotspots. Let me know if you find any issues.
I will try to add more features if I discover any other useful stuff in the logs.

That was fast 😄
Great job, can confirm its working with Sensecap logs. Thanks for your efforts.

How did you install php on Sensecap. I can't figure this out.

How did you install php on Sensecap. I can't figure this out.

You have to run it inside the container. Instructions here https://github.com/inigoflores/helium-miner-log-analyzer/issues/10#issuecomment-1111427165

How did you install php on Sensecap. I can't figure this out.

You have to run it inside the container. Instructions here #10 (comment)

That worked, thank you!
Found a weird thing looking at the witness list now, not sure this is the correct place to discuss that, but it contains 8 successfully sent witnesses, but explorer only shows 3 of these. So either it lists witnesses that wasn't successfully sent or the network is really broken now?

Hi,
Thanks for the script it is very helpful. How easy would it be to add the spreading Factor (SF) variable from a witness? This will help to see if the SNR is actually decent compared to the SF that was used e.g. SF7 used for close hotspots as it provides the best data speeds 5470bps and thus less air time but the min RSSI -125 and SNR -7.5. Where as a witness using SF12 would only have a bit rate of 250 bps but can travel further and min RSSI -137 and SNR -20.
In the console logs it appears as the following SF7BW125, SF8BW125,SF9BW125,SF10BW125,SF11BW125,SF12BW125
https://www.thethingsnetwork.org/docs/lorawan/rssi-and-snr/snr-demodulation-limits.png

How easy would it be to add the spreading Factor (SF)

I will add the spreading factor to the list (the new miner versions seem to produce more useful log data).
However, if I'm not mistaken, PoC beacons are only transmitted using SF12BW125 data rate (I'm in Europe, not sure if it's different in other regions). Please provide log examples of a different data rates for received witnesses (data packets can use any).
Thanks

However, if I'm not mistaken, PoC beacons are only transmitted using SF12BW125 data rate (I'm in Europe, not sure if it's different in other regions). Please provide log examples of a different data rates for received witnesses (data packets can use any).

I think you may be right, I was using the following command "grep -i '{<<"freq">>,' /mnt/data/docker/volumes/1851574_miner-log/_data/console.log" and I could see lots of SF7 and a few SF12. The SF12 ones match up with witnesses. I think maybe the SF7 traffic was possibly for data transferred packets for IOT devices or P2P.

I ran a grep on my data and compared it with your results, and apparently you're not capturing everything. With grep I got 235 witness reports, but with your php only 217. I have copies of the output, so you can see the missing items. I highlighted the first 3 that I found missing from your report in an excel spreadsheet. php-data.txt shows the output of your program, so you can compare the output which might help you debug it. Initially, I used the following command, but when I saw a discrepancy in the count, I dug deeper.
grep "miner_onion_server_light:decrypt:" console.log.4 | grep "sending witness at RSSI"|wc -l
I hope you find this helpful. I don't know php at all, so I can't really help with the code directly.
grep-data.xls
php-data.txt


Webflux: No logs when request is filtered

Webflux: No logs when request is filtered out by a WebFilter
Description
In a spring cloud gateway application it is possible (and maybe common) to have a set of global WebFilters which are applied to all requests. It turns out, that having a WebFilter which prevents further request processing (e.g. by returning a 401), prevents logging of the whole request/response by Logbook.
Expected Behavior
All requests/responses should be logged, even if further request processing is cancelled by a WebFilter.
Actual Behavior
Currently there are no logs for affected requests/responses.
Possible Fix

Steps to Reproduce
Add a filter to your application, e.g.:
@Bean
public WebFilter securityFilter() {
    return ((exchange, chain) -> {
        if (exchange.getRequest().getPath().value().equals("/secured")) {
            exchange.getResponse().setStatusCode(HttpStatus.UNAUTHORIZED);
            return exchange.getResponse().setComplete();
        } else {
            return chain.filter(exchange);
        }
    });
}

Context

Your Environment

SpringBoot 3.1.2
Logbook 3.2.0

The fix will be part of 3.3.0


Show dock and menu for window when window is spawned.

@keybase/react-hackers @chrisnojima
The dockIcon helper and menubar weren't being called correctly, so you couldn't open up devTools with the keyboard shortcut or have a dock icon.

:+1:


formatting for Hive SQL is not working

when format:

There is no formatter for 'hive-sql' files installed.

https://github.com/glinmac/hive-sublime-text
This is the format for hive extension
.hql
.ql
.q

I also have the problem to use the plugin in vscode, so how to use it in vscode, instead of using in sublime text. when using it in sublime text, it is ok. but not work in vscode:
There is no formatter for 'hive-sql' files installed.

highlighting works fine, but how to format code? thanks


simple test cases add

I ran the test without --localhost flag and got this result, pretty good but seems we have a issue :D

I think that's because testnet won't assign you enough balance?

I think that's because testnet won't assign you enough balance?

actually, I ran it on mainnet, so yes, no balance 😆

This time should work but need a couple of additional commond tool lib. Output is a little messy but decent to me

✅ looking good


Option to toggle between finished and unfinished items

Would be nice to only show items that match a certain status (finished for example) in a separate section (could use a segmented control picker).

Probably covered by https://github.com/AvdLee/Roadmap/issues/7


Crash

Describe your bug here. Mind you, if you are modding, please try testing your bug in a clean version of the engine instead, this ensures the bug is actually caused by the engine itself. Also, if you're using an older version of JSE, please try the latest action build in the Actions tab or the latest release build. The issue has probably been fixed since that version. Oh yeah, and also be sure to check the pinned 'JS Engine: Known Issues' issue, to double check if your issue hasn't already been found!
Idk how to explain this
Command Prompt/Terminal/Crash logs (if existing)
C:\hostedtoolcache\windows\haxe\4.2.5\x64\std/haxe/format/JsonParser.hx (Line 318)
C:\hostedtoolcache\windows\haxe\4.2.5\x64\std/haxe/format/JsonParser.hx (Line 96)
C:\hostedtoolcache\windows\haxe\4.2.5\x64\std/haxe/format/JsonParser.hx (Line 57)
StageData.hx (Line 91)
StageData.hx (Line 63)
Song.hx (Line 149)
FreeplayState.hx (Line 571)
flixel/FlxState.hx (Line 239)
flixel/FlxGame.hx (Line 749)
flixel/FlxGame.hx (Line 679)
flixel/FlxGame.hx (Line 552)
openfl/events/EventDispatcher.hx (Line 426)
openfl/display/DisplayObject.hx (Line 1398)

Have you identified any steps to reproduce the bug? If so, please describe them below in as much detail as possible. Use images if possible.
I dont even know LMFAO

Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
Nope.
If you use 1.12.0 or earlier, did you have Optimized Chart Loading turned on?
No
Did you check for any similar issues to what you're reporting? Check, then come back here. If there is a similar issue, then do not report the issue, otherwise it will be marked as a duplicate.
No

Your stage JSON is formatted incorrectly.

badly formatted stage JSON