ACCUMULO-4153: Update the getCodec method to no longer be synchronize…

…d using static initializer in enum
Targeting 1.6 as that is the branch we are currently using. I'd rather re-target than ask someone to cherry-pick back.

@madrob When are you cutting 1.7.2? I'd like to make an additional change per @keith-turner and get this into 1.7.2, but don't wanna to slow you down.

Made some change per Keith to avoid synchronization entirely. I initially didn't notice those two functions causing issues; however, I agree that the synchronization isn't necessary. Removing it by using a codec cache when we aren't using the default buffer size for that specific codec.

I'm looking at branching after ACCUMULO-4157 makes it in, so there is still time.

@madrob FWIW, the build.sh branches for you, if it helps. Of course, you can still branch first, then let build.sh branch again. It's all local anyway.

@phrocker  I am finished looking at this.  +1

Would anyone be opposed to me squashing this into a single commit?

Would anyone be opposed to me squashing this into a single commit?

I'm not.

Unfortunately this slipped through the cracks and did not make it into 1.7.2.  Bummer, I really wanted this in 1.7.2.
I merged this from 1.6 to master, running mvn clean verify -DskipITs at each step.  The merge from 1.6 to 1.7 had some conflicts, checkstyle, and findbugs issues that I resolved in the merge commit.


Error message can be improved when user enters invalid IP Address for bank account

Bug Description
Error message can be improved when user enters invalid IP Address for bank account
Steps to Reproduce

Go to 'Bank'
Go to Add bank
Add invalid bank address
See error message

Expected behavior
When user try connect  to invalid bank IP address then error message should be "Bank do not exists"or "Invalid bank address"
Actual behavior
It displays "Timeout exceeded error"
Screenshots/Recordings

OS and Browser

OS: [Windows 7, Linux]

Additional context
App version : 1.0.0-alpha.22
Account Number
15e164325715c9552911caf7e3ea1759f4c2ccba5fd82864a4d811d67935c4f9

Created a pull request for this issue here


raft: consolidate all append message sending

This PR consolidates all decision-making about sending append messages into a single maybeSendAppend method. Previously, the behaviour depended on the sendIfEmpty flag which was set/unset depending on the circumstances in which the method is called. This is unnecessary because the Progress struct contains enough information about the leader->follower flow state, so maybeSendAppend can be made stand-alone.
In a follow-up PR, the consolidated maybeSendAppend method will be used to implement a more flexible message flow control.
Part of #130

@ahrtr PTAL. Also asking @bdarnell to review (@nvanbenschoten and @erikgrinaker can't look at at it this week).

Will take a closer look this week.
A generic comment, in order to make the review easier, suggest to breakdown this PR. Such as,

get code refactor, method/function renaming, comment updating etc. in one PR, so that they can be reviewed and merged asap.
If you change any logic or adding any new field, then it needs super careful review, please try to make such PR as small as possible (e.g. < 100 lines of code change).

@bdarnell We have an issue for the commit index acks you described: #131. And a draft PR for it: #132. It's not necessary for the flow control change here though.

Closing this PR, since it has been superseded by https://github.com/cockroachdb/cockroach/pull/124006 in CRDB.


Enhancement: Support for C# files

What features would you like to see added?
I was quite disappointed with the lack of support for C# files (.cs), as I wanted to use LibreChat for C# programming.
Is there a way to get around this, without manually converting each file to text? ChatGPT and Claude.ai both support C# files, so it's a shame that LibreChat doesn’t. I’m very impressed with LibreChat so far, but I would definitely love support for C# file attachments to be implemented, and I doubt I’m the only one who feels that way.
More details
When attempting to attach a C# file:

LibreChat version: LibreChat v0.7.5-rc2
Which components are impacted by your request?
General, UI
Pictures
No response
Code of Conduct

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

It shouldn't be a shame because we can add it :)

And technically, looking at the code, this is meant to be supported already, but the mimetype is a mismatch:
  'text/x-c',
  'text/x-c++',

Thank you. Is there a way to fix this by configuring a file, or do I have to wait for an update to LibreChat?


⚠ Adacta-fintech.com has degraded performance

In 1024287, Adacta-fintech.com (https://www.adacta-fintech.com) experienced degraded performance:

HTTP code: 200
Response time: 5582 ms

Resolved: Adacta-fintech.com performance has improved in 9d0349e.


Update editor readme

The current relative links in the README won't show up correctly on npmjs with the published package. Update them to be links to the GitHub raw image.
Minor typo fixes and move all images into a sub-folder.

@bbastings can you review the updates here?

@kabentley @pmconne @bbastings mind taking a look?


Template creation fails if name includes "-"

Was brought up a while back by someone attempting to use the template projects, but not documented.
dotnet new osu-framework-game --name "test-game"

Also spaces don't work.

I'm reasonably sure this is a dotnet-level limitation (as in dashes and spaces are not valid in namespace names), so I'm not super sure what can be done here...

Maybe just need warnings in that case (in the wiki/readmes)...

Looks like this is a pretty common issue faced by a lot of projects and... looks to have been already fixed by a new version of the templating sdk / json. Unfortunately the examples repository hasn't been updated with any new examples, so this is going to require some further reading and trial and error.
There is an interim solution, but it's not pretty: https://github.com/dotnet/templating/issues/1168#issuecomment-318795094. If we want to support the previous version of the templating system this is the only option, but seems like wasted effort (would sooner just add a warning against using hyphens/spaces for the time being).
A glimpse at a more correct solution can maybe be seen at https://github.com/dotnet/templating/issues/1168#issuecomment-364592031.

Dropping priority as a solution to this is considerable effort.


Natural Language Processing

Incoming messages currently have to be in the format:
exact park name
exact ride name
integer wait time

This should be replaced with natural language processing in a few parts:

[x] Extract park name, ride name, and wait time
[x] Use fuzzy matching to allow partial names

Canceled:

Extract "hours," "minutes," etc, then convert

We did something like this for Firewatch, so I know it's possible. Even a naive implementation would be a huge improvement.

Completed name + time extraction with pure fuzzy matching & regular expressions. Naive implementation, but it does a pretty good job. Canceled extraction of time keyword ("hours" or "minutes" or similar) - saving for future matching / NLP improvements.


TYPO3 and ddev 1.19.3 and Docker Desktop 4.9.0 does not work on Linux Mint 20.3

Is there an existing issue for this?

[X] I have searched the existing issues

Run a Diagnostic and Paste Link Here
After and upgrade from Docker Desktop 4.8.2 to 4.9.0 this morning, all TYPO3 projects stopped working. The TYPO3 Backend becomes unusable.
Downgrade to Docker 4.8.2 solved the problem.
Current Behavior
TYPO3 logs the following error:
The temporary cache file "/var/www/html/typo3temp/var/cache/data/l10n/xxxx.temp" could not be written.
This absolute path is (of course) out of ddev's reach.
Expected Behavior
An absolute path is not to be used.
It was not defined by me in config.yaml
Steps To Reproduce
No response
Anything else?
After some testing on other machines, I came to the conclusion that Docker Desktop 4.9.0 must be buggy. For example on a Macbook M1 the Docker Dashboard is completely empty (plain white) as long as ddev is running. After a ddev poweroff, Docker Dashboard is normal again with its usual content.

Hi @dbunkerd - When you were creating the issue you were requested to do a ddev debug test and put it in a gist; that gives me lots of information about your environment.  Could you please do that? You can edit the issue and add the link.
There are lots of issues reported with Docker Desktop 4.8.2 and 4.9.0 - Most of them are related to turning on experimental settings. Do you have any experimental settings turned on?
I imagine you have a docker-compose.*.yaml which puts a special tmpfs on your TYPO3 projects? What happens if you remove that?

Oh, you're using Docker Desktop for Linux? You're probably the first person I've heard of that's doing that. I haven't tried it. How long have you been using it?
I would probably recommend using the normal Linux Docker Engine, using the regular instructions.  Docker on Linux is really, really predictable and stable. Docker Desktop on all platforms has trouble with every single release.

Hi @rfay
thanks for your quick reply. I am using Docker Desktop for Linux, because I also use it with Windows and on a Macbook M1. But I've followed your advice and purged Docker Desktop on Linux and used Docker Engine instead. Everything is fine now.
Please find the requested gists for all three scenarios in my original issue.

The docker-compose.*.yaml files are part of your project - you added them. (I'm not talking about .ddev-docker-compose*, but rather about docker-compose.*.yaml, which is commonly used to set the var directory on typo3.
You may want to open an issue with the Docker folks if you can pin this down and you're interested. https://github.com/docker/desktop-linux/issues
Thanks for the gists. You can't imagine how much those help me. Dozens of questions I then don't have to ask, back-and-forth.
I note that the plain-vanilla project that ddev debug test created on Docker Desktop 4.9.0 was fine, so I imagine the problem is that mounting a tmpfs volume on your var/tmp (which lots of people do in TYPO3-land) is the problem. That should be easy to check and easy to replicate for an issue over in the Docker Desktop for Linux issue queue.
I'm going to close this as it doesn't seem to have anything to do with ddev, but happy to continue the conversation here or elsewhere.


No shadows on card/dialog

When I add one card or dialog, there is no shadow... I'm doing something wrong?

Make sure you have heavy elements enabled (uncheck Hide Heavy Elements in the View menu)


Crawler not looking in no-srr / client-only tag

Steps to reproduce

Add relative dynamic routes within a no-srr / client-only tag, the default crawler will not search these routes when using nuxt generate.

What is Expected?
I would expect all relative routes to create a route in full static mode. Ignoring client-only is irrelevant as this is usually used for client side functionality, not to hide route.
What is actually happening?
Missing route on generation.

Yes, I explained this, however why can these routes not be crawled?
Also, this should be added to the docs, it shouldn't be an assumption as <client-only> does not mean the route is NOT valid!

Ok, fair answer, I still think it should be added as a gotcha into the documentation.


how to generate avatar automatically?

Gitea version (or commit ref): 1.13.4
Git version:
Operating system: linux

the older version support this feature:
generate avatar for every user from it's name, but when  I use the latest version, This feature is missing and can not automatically generate an avatar based on my initials. For example, generate a picture by Bai with three letters.
How Do I get this feature back so I can clearly identify users without having to upload their avatar.
We are a small group of only a few people,

this should not happen ...

I don't known why, but if you edit the app.ini as the following, the feature will be activated:

Then gittea will generate avatar automatically.
Maybe the reason is:
There are some web server can generate avatar automatically:

Gavator(https://cn.gravatar.com/) blocked in China
Federated Avatars(https://cdn.libravatar.org/) can be accessed in China
...

and gitea uses Gavator by default

I think this is your network problem. Please check chrome devtools network to confirm that.

多谢,确实是因为被墙了的原因,但是生成的头像是随机的,我记得早期的版本生成的头像是根据名字来的,比如我的头像可能是一个很大的N

Hm, that feature maybe dropped?


X1C7: Configuration?

Thanks for providing this tool. I installed s-tui and stress and see that I can't get over 2400Mhz on battery even though the turbo boost of my i7-8565U should go up to 4600Mhz. I run Ubuntu 19.04.
I installed as per the documentation, but did not change anything at all in /etc/lenovo_fix.conf as I have no idea what I would be doing.
Is there a config somewhere for the i7-8565U?

I guess that you are limited by bios or tlp.

For me it also doesn't work well on X1C7, but it's looks more like it is easily overheating. If I have a core on 100%, within seconds the temperature rises to 100°C - sometimes even the fan doesn't have enough time to spin up. Is it supposed to be like that? Without throttled, it looks more reasonable and limiting itself at ~85°C.

My system received a firmware update for the embedded controller (via Ubuntu, mentioning performance fixes for us Linux users) and after I applied that fw update, I have s-tui in stress mode showing CPU frequency values way above what I posted two weeks ago.
Looks like Lenovo finally fixed part of their side!
https://fwupd.org/lvfs/device/com.lenovo.ThinkPadN2HHT.firmware

Thanks a lot. I downloaded, unfortunately "fwupdmgr install ...Lenovo-ThinkPad-X1Carbon7th-X1Yoga4th-ECFirmware-1.10.cab" gave me a "no supported devices found" back. Do I have to take care with using fwupdmgr to update it?


multiauth:make {guard} on laravel 8 not working

On Laravel 8.10.0 when I try to create a new auth I get this error.
php artisan multiauth:make teacher
Step 1. Teacher Guard is added to config/auth.php file
Step 2. New Controllers for Teacher is added to App\Http\Controller{Teacher}
Step 3. Routes for teacher is added to routes/teacher.php file
ErrorException
Undefined offset: 0
at vendor/bitfumes/laravel-multiauth/src/Console/Commands/MakeMultiAuthCommand.php:184
180▕             return;
181▕         }
182▕
183▕         preg_match('/\s+/**\n\s+*\s(\w+\s)+"web"\s(\w+\s)+\w+.\n/', $provider, $match);
➜ 184▕         $provider = str_replace($match[0], $map . $match[0], $provider);
185▕         /********** Function Call **********/
186▕
187▕         $map_call = file_get_contents($this->stub_path . '/routes/map_call.stub');
188▕
  +16 vendor frames

17  artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

Fixed with new release, please update the packege


Checksum mismatch warnings

The following results in many warnings about unfinished LFN sequences:
set RUST_LOG=warn
cargo test

See https://github.com/rafalh/rust-fatfs/blob/master/src/dir.rs#L674
Are these warnings about mismatched checksums indicative of a bug in rust-fatfs?
For example, are they attempting to parse directory entries that are not in use or follow a directory entry that indicates end-of-directory?

This is caused by the same problem as #12 - missing check for LFN existence. I am working on that.


Token support

We will be adding the feature to mint tokens (both fungible and non-fungible) via Workbench, and there are also lots of built-in tokens on mainnet etc. However, Workbench's account support and rendering of what's happening is pretty basic and low level right now and doesn't understand tokens.
This type of view ideally should show existing token balances, etc., or mint properties if it's a mint:

Likewise once https://github.com/workbenchapp/solana-workbench/pull/73 lands it should show probably show diffs of tokens/SOL in txns like how explorer does

yup, I'm intending to add something for the v0.4.0 headline #63 - so that I know that the create token (and transfer token) works


adding kloth to madscience

Link to project: https://github.com/klothoplatform/klotho
Why it should be added: As far as we know there's no project like it. It introduces JSDoc like annotations that developers add, and klotho reads the application AST, including the annotations, and creates a deployable cloud native application. The node implementation is the most advanced and complete one.

Thanks for the suggestion. I'm unfortunately going to pass on this one.


VSTS gives FailedToUpdateApplicationInsightsResource code 201 on deploy Azure App Service

Environment

Server - VSTS

Issue Description
We are seeing a warning from app deploys originating with an Application Insights release annotation update.  From the code in azure-arm-rest/azure-arm-appinsights.ts, the update method expects a 200 status code response and the documentation at https://docs.microsoft.com/en-us/rest/api/application-insights/components/createorupdate indicates that would be what is returned.  However, we are getting a 201 status code which results in an error that AzureClient.ts emits with getFormattedError as "(CODE ${error.statusCode})":
public getFormattedError(error: any): string {
        if(error && error.message) {
            if(error.statusCode) {
                var errorMessage = typeof error.message.valueOf() == 'string' ? error.message
                    : (error.message.Code || error.message.code) + " - " + (error.message.Message || error.message.message)
                error.message = `${errorMessage} (CODE: ${error.statusCode})`
            }

            return error.message;
        }

        return error;
    }

Error logs
2018-08-13T21:04:47.6668592Z Successfully deployed web package to App Service.
2018-08-13T21:04:50.2459456Z ##[warning]Can't find loc string for key: FailedToUpdateApplicationInsightsResource
2018-08-13T21:04:50.2464136Z Failed to add release annotation. Error: FailedToUpdateApplicationInsightsResource relode-apps undefined - undefined (CODE: 201)
2018-08-13T21:04:53.3416677Z Successfully updated deployment History at https://relode-api-staging.scm.azurewebsites.net/api/deployments/17861534194290237
2018-08-13T21:04:53.3510848Z ##[section]Finishing: Deploy API

We're having the same issue after updating our NuGet packages. Currently investigating if it has something to do with the restraint on Microsoft.ApplicationInsights.DependencyCollector version 2.7.1 which requires Microsoft.ApplicationInsights to be version 2.7.1. Currently we have version 2.7.2 installed.
Error logs
2018-08-15T01:05:56.8351185Z ##[warning]Can\'t find loc string for key: FailedToUpdateApplicationInsightsResource 2018-08-15T01:05:56.8361270Z Failed to add release annotation. Error: FailedToUpdateApplicationInsightsResource XXXXXXXX undefined - undefined (CODE: 201) 2018-08-15T01:06:03.7285149Z Successfully updated deployment History at https://xxxxxx.scm.azurewebsites.net/api/deployments/SOME_NUMBER

I am getting a similar problem...  shown as a 400 response from the Annotations endpoint, with debug on...
2018-08-15T10:20:39.8002502Z ##[debug][PUT]https://management.azure.com/subscriptions/xxxx/resourceGroups/xxxx/providers/microsoft.insights/components/myappinsresource123/Annotations?api-version=2015-05-01 2018-08-15T10:20:40.4916839Z ##[debug]addReleaseAnnotation. Data : {"statusCode":400,"statusMessage":"Bad Request","headers":{"cache-control":"no-cache","pragma":"no-cache","content-length":"36","content-type":"application/json; charset=utf-8","expires":"-1","strict-transport-security":"max-age=31536000; includeSubDomains","x-content-type-options":"nosniff","x-ms-ratelimit-remaining-subscription-writes":"1199","server":"Microsoft-IIS/8.5","x-ms-request-id":"xxxxx","x-ms-correlation-request-id":"xxxxx","x-ms-routing-request-id":"NORTHEUROPE:20180815T00xxxxx","date":"Wed, 15 Aug 2018 10:20:40 GMT","connection":"close"},"body":{"Message":"An error has occurred."}} 2018-08-15T10:20:40.4982899Z ##[warning]Can\'t find loc string for key: FailedToUpdateApplicationInsightsResource 2018-08-15T10:20:40.4993165Z ##[debug]Processed: ##vso[task.issue type=warning;]Can\'t find loc string for key: FailedToUpdateApplicationInsightsResource 2018-08-15T10:20:40.4993615Z Failed to add release annotation. Error: FailedToUpdateApplicationInsightsResource myappinsresource123 undefined - An error has occurred. (CODE: 400)

CC: @frankguodongchen and @barustum in case it's error on Application Insights side, not in VSTS

To clarify on our issue, we are receiving what looks like a HTTP 201 if I trace the error through the formatter correctly.  201 is a CREATED which is a success but the code above is looking for HTTP 200.  https://httpstatuses.com/201

@jlcj1974 did it work for you before? I wonder if something was changed recently

The warning started for us with releases on Monday 8/13/2018.

It seems like the release annotations endpoint now returns a 201 instead of 200. @frankguodongchen and @barustum, please let us know if there has been any update recently so that we can fix the task accordingly.

I'll take a look.
Adding @jpiyali as FYI.

@asranja  - Annotations always returned 201 and not 200 for creation of annotation. However, the response code is not returned from the VSTS task. So, not sure where you are using this for validation purposes.

I checked the code and there have not been any changes in this route for sometime. We saw a few failures with 400 but not for any create requests. Please provide x-ms-correlation-request-id to help with investigation.

Where would I find that?

I'm seeing the same warnings when using VSTS to deploy Function Apps:
2018-08-17T09:46:46.3005386Z ##[warning]Can't find loc string for key: FailedToUpdateApplicationInsightsResource
2018-08-17T09:46:46.3021074Z Failed to add release annotation. Error: FailedToUpdateApplicationInsightsResource <my_app_name> undefined - undefined (CODE: 201)

@jlcj1974 x-ms-correlation-request-id should not be needed for return code of 201.

Same problem here with VSTS WebApp deployment.
No changes were made on our side and this configuration was working without any flaws for almost a year.

Sorry I am a bit confused as to what more you need. If the application insights endpoint is returning a 201 on success, it just seems like the VSTS task code in github needs to change from checking for 200 to 201.
Joe Christopher
Sent from my phone

On Aug 17, 2018 at 05:14,  <Ashish Ranjan (mailto:notifications@github.com)>  wrote:
@jlcj1974 (https://github.com/jlcj1974)  x-ms-correlation-request-id should not be needed for return code of 201.
—
You are receiving this because you were mentioned.
Reply to this email directly,   view it on GitHub (https://github.com/Microsoft/vsts-tasks/issues/8022#issuecomment-413821735), or   mute the thread (https://github.com/notifications/unsubscribe-auth/AC3TOR-us0F83cMZX8nxm2xOvCj7x6iTks5uRpd5gaJpZM4V7jcn).

We have identified a possible regression. A peer team is working on a fix.

To summarize:

@jlcj1974 Yes the return code changed from 200 to 201, which is the correct response code. @asranja is making the fix in his script to account for the 201 response code.

We are also fixing an issue in our backend code that may result in 400s. Fix will be in PROD next week

@pb-qs I am not sure why you're getting the 400. Can you provide me with the resource name so I can look at our logs and check the failure for you.

Thank you for your help!

On Aug 17, 2018 at 18:36,  <Basel Rustum (mailto:notifications@github.com)>  wrote:
To summarize:
@jlcj1974 (https://github.com/jlcj1974)  Yes the return code changed from 200 to 201, which is the correct response code.  @asranja (https://github.com/asranja)  is making the fix in his script to account for the 201 response code.
We are also fixing an issue in our backend code that may result in 400s. Fix will be in PROD next week
@pb-qs (https://github.com/pb-qs)  I am not sure why you're getting the 400. Can you provide me with the resource name so I can look at our logs and check the failure for you.
—
You are receiving this because you were mentioned.
Reply to this email directly,   view it on GitHub (https://github.com/Microsoft/vsts-tasks/issues/8022#issuecomment-414012892), or   mute the thread (https://github.com/notifications/unsubscribe-auth/AC3TOVLGaO7_GvWU4VmYm4Xji3j5XkGOks5uR1N-gaJpZM4V7jcn).

The error message is being poorly described I think.
The problem might be related to the fact the Web app being registered with App Insights was using an App Svc Plan which was in a resource group that the agent didn't have permissions on.  All withing locked VNETs with NSGs too.
When we added the VSTS agent account to the ASP's resource group as contributor  the warning went away.
Many thanks,
Peter
Qualitas Software  |  e<EMAIL_ADDRESS>-------- Original Message --------
Subject: Re: [Microsoft/vsts-tasks] VSTS gives FailedToUpdateApplicationInsightsResource code 201 on deploy Azure App Service (#8022)
From: "Basel Rustum"<EMAIL_ADDRESS>Date: Sat, August 18, 2018 12:36 am
To: "Microsoft/vsts-tasks"<EMAIL_ADDRESS>CC: "pb-qs" peter.barnet@qualitassoftware.com,"Mention"<EMAIL_ADDRESS>To summarize:

@jlcj1974 Yes the return code changed from 200 to 201, which is the correct response code. @asranja is making the fix in his script to account for the 201 response code.

We are also fixing an issue in our backend code that may result in 400s. Fix will be in PROD next week

@pb-qs I am not sure why you're getting the 400. Can you provide me with the resource name so I can look at our logs and check the failure for you.

--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/Microsoft/vsts-tasks/issues/8022#issuecomment-414012892

I got the same issue with 201 response code, but it doesn't seem to deploy.
Do you know when @asranja will fix this script to account for the 201 response code and push it to PROD?

Getting this too, but nothing was deployed apart from the function.json.
Have other peoples apps successfully been deployed with this error?

We have made the fix in the App Service task. It should take a few days for the fix to be rolled out on all the accounts.

I am getting this with an Azure API App deployment. It is actually causing the entire package not to be deployed to the App Service, which returns a 500 because of this error.

@stylesm , Can you please share the debug logs (set variable system.debug to true and rerun the release)?

@vincentdass I actually re-ran the deployment to the same environment / App Service and it worked fine. I haven't experienced this issue since, but I guess it is intermittent?

@stylesm , feel free to reopen / create a new thread if the issue occurs again.

Summary
Azure Application Insights REST API for create release annotation started returning 201 instead of 200 as status code.  This caused the failure in VSTS task which expected 200. The fix is made to check for both the status code (200 & 201) as successful state.

As an fyi, appinsights reverted that change last week thursday to return 200 again. This will not break anything since the vsts task here checks for both 200 and 201.


feat: add transferable records

Summary
What is the background of this pull request?

Missing Transferable Records support and assertion

Changes

What are the changes made in this pull request?

Added function to generate tokenId for TransferableRecords
Added validation / assertion for credentialStatus type TransferableRecords

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Better to give password protect on Status Page and enhance the time or view

It is also better to have lock options on the Status page and give details overview like 30daysstatus on status pages monitors.

Extended uptime statistics/different options is currently covered by PR #437 which is not being merged due to performance implications.
Passwords on status pages is one of the requests of #530


Feature/42 create fe header

Describe your changes
Issue ticket number and link
closese #48
Checklist before requesting a review

[x] I have performed a self-review of my code
[x] If it is a core feature, I have added thorough tests.

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

Project coverage is 79.47%. Comparing base (0764c96) to head (00cc958).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff              @@
##               main      #51      +/-   ##
============================================
+ Coverage     78.24%   79.47%   +1.22%
  Complexity      133      133
============================================
  Files            49       51       +2
  Lines           708      760      +52
  Branches         38       39       +1
============================================
+ Hits            554      604      +50
- Misses          145      147       +2
  Partials          9        9

Flag
Coverage Δ

frontend
89.57% <100.00%> (+1.65%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files
Coverage Δ

frontend/src/app/auth/login/login.component.ts
100.00% <100.00%> (ø)

...ontend/src/app/auth/register/register.component.ts
100.00% <ø> (ø)

.../src/app/shared/navigation/navigation.component.ts
100.00% <100.00%> (ø)

...weather/weather-detail/weather-detail.component.ts
100.00% <100.00%> (ø)

...p/weather/weather-graph/weather-graph.component.ts
100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes


Naming conflict

Hello,
I'm a maintainer of the moment.js project.  We are starting to get bug reports because people are confusing your library with ours.  Could you kindly rename your project to something else?
In particular, the npm package name momentjs is too similar to our moment package name, and thus people that want to install moment.js, expecting the full API of moment.js, end up installing your package instead.   Please remove/rename your npm package to prevent this confusion.
Also, since it appears that parts of your code are taken from the moment.js code, then please give appropriate attribution in your readme and license file.  The MIT license allows for modification, but requires the original copyright notice to be retained.  It's sufficient to state something like:
Parts of this code are from the moment.js project, http://momentjs.com
Copyright (c) 2011-2016 Tim Wood, Iskren Chernev, Moment.js contributors

Thanks.

I am so sorry, I didn't realized there is such a problem.
I found that if I rename the momentjs package, that will cause a lot of problems.
Our team use this package, and we deployed it in many place.
I could give a declaration about the difference in my readme,  on the top of the page, and in English.
In the end, my code just wrote by myself, it has no relationship with the moment.js code, I will not give the attribution in my readme and license file.
Thanks.

Sorry, but this isn't really a good solution for either of us.  Your readme, logo, website, api, etc. are very clearly set up to compete with moment.js.  That there's competition is fine - there are lots of good date libraries out there.  That you are calling it the exact same thing as ours is just not very respectful to the JavaScript community.  Anyone who actually wants your library might choose ours instead, and vice-versa.
Please understand that moment.js has over 5 MILLION downloads per month on npm, has over 27,000 stars and 3,900 forks on GitHub, and is used in many thousands of high-profile public and private web applications, etc.  When those developers accidently use your library instead of ours, and have problems with it, they not only turn to us with erroneous support incidents, but they also get a bad opinion of the library, which can spill over into social media.
Essentially what you are doing is trademark infringement.  Please stop.  Rename your library to something else.  Thanks.

Agree 100% with @mj1856, please rename.

i agree, @vvpvvp moment.js is a really nice open-source project. It would be respectful to observe this request.
thanks,

Prime example:
http://stackoverflow.com/questions/40147500/incorrect-momentjs-formatting-output-using-examples-from-their-main-page

We have resolved the issue with npm.  Please consider renaming your library also.  Thanks.


Adds png pattern opacity support

Add the options to have a background color, with a semi-transparent pattern on top, as discussed in #16

https://www.youtube.com/watch?v=aHN6AViJAvI
?

The diff in https://github.com/foretagsplatsen/pattern-fill/commit/d29034840a71d9a592b61b7965dc452b4aefb48c is too great to merge. It seems like you changed the line endings or something, because all lines are changed.

I accidentally replace spaces with tabs. Let me try to fix it ;)

I cleaned it up :smile:
Sorry again :wink:

There's still a lot of non-related changes here...
https://github.com/foretagsplatsen/pattern-fill/commit/5cafff34b30d087825e2fb5ac57fe9f18e201b1a

See #18 for a clean version


Fix WrapPanel when ItemWidth < Available Size

What does the pull request do?
Fixes WrapPanel when ItemWith < Available Size.
What is the current behavior?
Children aren't arranged correctly. They become invisible.
What is the updated/expected behavior with this PR?
Children should display.
How was the solution implemented (if it's not obvious)?
Changing the ArrangeOverride method.
Checklist

[ ] Added unit tests (if possible)?
[ ] Added XML documentation to any related classes?
[ ] Consider submitting a PR to https://github.com/AvaloniaUI/avalonia-docs with user documentation

@SuperJMN,
Please read the following Contributor License Agreement (CLA). If you agree with the CLA, please reply with the following:
@cla-avalonia agree

Contributor License Agreement
Contribution License Agreement
This Contribution License Agreement ( “Agreement” ) is agreed to by the party signing below ( “You” ),
and conveys certain license rights to the AvaloniaUI OÜ ( “AvaloniaUI OÜ” ) for Your contributions to
AvaloniaUI OÜ open source projects. This Agreement is effective as of the latest signature date below.
1. Definitions.
“Code” means the computer software code, whether in human-readable or machine-executable form,
that is delivered by You to AvaloniaUI OÜ under this Agreement.
“Project” means any of the projects owned or managed by AvaloniaUI OÜ and offered under a license
approved by the Open Source Initiative (www.opensource.org).
“Submit” is the act of uploading, submitting, transmitting, or distributing code or other content to any
Project, including but not limited to communication on electronic mailing lists, source code control
systems, and issue tracking systems that are managed by, or on behalf of, the Project for the purpose of
discussing and improving that Project, but excluding communication that is conspicuously marked or
otherwise designated in writing by You as “Not a Submission.”
“Submission” means the Code and any other copyrightable material Submitted by You, including any
associated comments and documentation.
2. Your Submission. You must agree to the terms of this Agreement before making a Submission to any
Project. This Agreement covers any and all Submissions that You, now or in the future (except as
described in Section 4 below), Submit to any Project.
3. Originality of Work.  You represent that each of Your Submissions is entirely Your
original work. Should You wish to Submit materials that are not Your original work,
You may Submit them separately to the Project if You (a) retain all copyright and
license information that was in the materials as you received them, (b) in the
description accompanying your Submission, include the phrase "Submission
containing materials of a third party:" followed by the names of the third party and any
licenses or other restrictions of which You are aware, and (c) follow any other
instructions in the Project's written guidelines concerning Submissions.
4. Your Employer. References to “employer” in this Agreement include Your employer or anyone else
for whom You are acting in making Your Submission, e.g. as a contractor, vendor, or agent. If Your
Submission is made in the course of Your work for an employer or Your employer has intellectual
property rights in Your Submission by contract or applicable law, You must secure permission from Your
employer to make the Submission before signing this Agreement. In that case, the term “You” in this
Agreement will refer to You and the employer collectively. If You change employers in the future and
desire to Submit additional Submissions for the new employer, then You agree to sign a new Agreement
and secure permission from the new employer before Submitting those Submissions.
5. Licenses.
a. Copyright License. You grant AvaloniaUI OÜ, and those who receive the Submission directly
or indirectly from AvaloniaUI OÜ, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable
license in the Submission to reproduce, prepare derivative works of, publicly display, publicly perform,
and distribute the Submission and such derivative works, and to sublicense any or all of the foregoing
rights to third parties.
b. Patent License. You grant AvaloniaUI OÜ, and those who receive the Submission directly or
indirectly from AvaloniaUI OÜ, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license
under Your patent claims that are necessarily infringed by the Submission or the combination of the
Submission with the Project to which it was Submitted to make, have made, use, offer to sell, sell and
import or otherwise dispose of the Submission alone or with the Project.
c. Other Rights Reserved. Each party reserves all rights not expressly granted in this Agreement.
No additional licenses or rights whatsoever (including, without limitation, any implied licenses) are
granted by implication, exhaustion, estoppel or otherwise.
6. Representations and Warranties. You represent that You are legally entitled to grant the above
licenses. You represent that each of Your Submissions is entirely Your original work (except as You may
have disclosed under Section 3 ). You represent that You have secured permission from Your employer to
make the Submission in cases where Your Submission is made in the course of Your work for Your
employer or Your employer has intellectual property rights in Your Submission by contract or applicable
law. If You are signing this Agreement on behalf of Your employer, You represent and warrant that You
have the necessary authority to bind the listed employer to the obligations contained in this Agreement.
You are not expected to provide support for Your Submission, unless You choose to do so. UNLESS
REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING, AND EXCEPT FOR THE WARRANTIES
EXPRESSLY STATED IN SECTIONS 3, 4, AND 6 , THE SUBMISSION PROVIDED UNDER THIS AGREEMENT IS
PROVIDED WITHOUT WARRANTY OF ANY KIND, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY OF
NONINFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
7. Notice to AvaloniaUI OÜ. You agree to notify AvaloniaUI OÜ in writing of any facts or
circumstances of which You later become aware that would make Your representations in this
Agreement inaccurate in any respect.
8. Information about Submissions. You agree that contributions to Projects and information about
contributions may be maintained indefinitely and disclosed publicly, including Your name and other
information that You submit with Your Submission.
9. Governing Law/Jurisdiction. This Agreement is governed by the laws of the Republic of Estonia, and
the parties consent to exclusive jurisdiction and venue in the courts sitting in Talinn,
Estonia. The parties waive all defenses of lack of personal jurisdiction and forum non-conveniens.
10. Entire Agreement/Assignment. This Agreement is the entire agreement between the parties, and
supersedes any and all prior agreements, understandings or communications, written or oral, between
the parties relating to the subject matter hereof. This Agreement may be assigned by AvaloniaUI OÜ.
AvaloniaUI OÜ dedicates this Contribution License Agreement to the public domain according to the Creative Commons CC0 1.

@SuperJMN,
Please read the following Contributor License Agreement (CLA). If you agree with the CLA, please reply with the following:
@cla-avalonia agree

Contributor License Agreement

@cla-avalonia agree

Thank you for your contribution!
Can you please add a matching unit test?

See https://github.com/AvaloniaUI/Avalonia/issues/16191 and https://github.com/AvaloniaUI/Avalonia/issues/16487 for related. WrapPanel port from WPF doesn't work in all cases because Avalonia arrange doesn't follow WPF rules. This part can't be fixed until v12 since it's a major breaking change and it was unclear from the team which approach was preferred.


Reduce warnings due to calling conventions

Removes C4229 "anachronism used: modifiers on data are ignored" warnings
Reduces warning count from 82 to 6

Testing:
Literally just play the game for a bit, load some mods, see if you notice any new crashes?

@ASpoonPlaysGames what would be a good way to test this? Just play the game and hope everything works? ^^"

@ASpoonPlaysGames what would be a good way to test this? Just play the game and hope everything works? ^^"

Pretty much, yeah

Merging based on previous reviews.


target field should be coloured as they are almost always nicknames

We can use the same logic as for sender nicks.

Stealthily added in 8b04486f9298a929b01f1e27f0efcf71141b6110.


Access Denied with a Local Administrator User

Hello,
I am facing an issue.
My interactive user session is LIEGILY, this user is a simple user on the workstation.  We have a second user who is local administrator of our workstation. In my case ADMGILY.
If I start the PowerShell with "run as administrator", the credential windows for a admin user popped out, in which I enter my ADMGILY user.  The PowerShell title shows : "Administrator: Windows PowerShell".  and using for instance "Get-CPrivilege liegily" shows me the result.

but when i start the powershell with "run as different user" and put the same credential, the PowerShell Title doesn't show "Adminstrator:", and when I run the same command, I received an "access denied"

I think you check the administrator flag, not of the user belongs to Local Administrators group (or the user belongs to a group, that belongs to another group, aso..., that belongs to the Local Administrators group
best regards
Yves

We don't do an administrator check in Get-CPrivilege. The access denied error you're getting is coming from the Windows API, not Carbon.

In fact, I have shortcut to open PowerShell with "runas.exe" command with the proper user. The credential form doesn't show that way. How could I succeed to run my script in this case ?


TypeError: Cannot read property 'parser' of undefined

When using the function tokenize with the template {{bar}}}}{{/bar}} like the following, a TypeError occurs.
tokenize("{{bar}}}}{{/bar}}");

The stack trace of the TypeError.
file:///path/handlebars.js:1988
	                if (this.yy.parser) {
	                           ^

TypeError: Cannot read property 'parser' of undefined
    at Object.parseError (file:///path/handlebars.js:1988:29)
    at Object.next (file:///path/handlebars.js:2117:34)
    at Object.lex (file:///path/handlebars.js:2121:31)

I don't understand your expectations. Throwing an error seems legit to me. I can see that the your error is not a really good one, but the compile-method shows a better error (see https://jsfiddle.net/9D88g/130/).
You template is not syntactically correct, because it closes the first bar-literal with four brackets instead of two. Did you want to output }} inside the bar-block?

@nknapp Since this template is syntactically incorrect, I expect an error is thrown like how your jsfiddle example shows using the compile method. However, a TypeError occurs and no error is thrown.

I'm not sure what "compile" does differently, but the function you are referencing is part of a test-case. It is probably not generic enough to throw meaningful exeptions. Could you tell me why you are using this function?
If you need to parse the template without compiling it to JavaScript, I suggest you use the compilter and a visitor as described in https://github.com/wycats/handlebars.js/blob/master/docs/compiler-api.md#ast-visitor

@nknapp I am working on a testing tool and my tool found such an input that can cause a TypeError in your library based on how you test your library. That's why I am using this function from the test case.

Can you use Handlebars.parse(): https://jsfiddle.net/9D88g/136/
Or otherwise, what would you like me to do?

@nknapp I notice at line 1988 the if condition if (this.yy.parser). If you change it to if (this.yy && this.yy.parser), TypeError will not occur and you can get the same error as Handlebars.parse(). Since that part of the code is generated by Jison, do you have any ideas how to fix that?

xref-ing jison issue: https://github.com/zaach/jison/issues/358

Closing due to inactivity and because this is probably an error in jison


⚠ ClamAV has degraded performance

In 029a92c, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 186 ms

Resolved: ClamAV performance has improved in 393cb20.


support for triangular meshes with vertices and faces

Meshcat is awesome. I want to know if I can visualize an arbitrary triangular mesh with vertices and faces. I have code which is generating the mesh online and I want to visualize it using meshcat. Is it possible?

I am seriously considering using meshcat and meshcat-python for my project. Having this support can get me working with meshcat right away.

This should be working as soon as https://github.com/rdeits/meshcat-python/pull/59 is merged! Can you please let me know if that works for your use case?

Thanks! Works great for me :)


Opacity

I am trying to implement a heatmap with high opacity but when I set minOpacity it seems to not have any effect. Is there something I am missing?

Can you set up a JSFiddle reproducing your problem?

https://jsfiddle.net/wSytj/79/
minOpacity at line 48

Just confirmed minOpacity works properly in the latest release, the one in JSFiddle was probably an outdated build.


[CI] Attempt to capture yet another common PyPy error

In previous PRs, I have tried to improve the situation with tests being flaky on PyPy (specially via timeouts).
Still, there seems to be problems with ProcessPoolExecutor:

https://github.com/pypa/setuptools/runs/5241255918?check_suite_focus=true#step:5:321
https://github.com/pypa/setuptools/runs/5250475520?check_suite_focus=true#step:5:38

This might be related to the fact that pytest-xdist can struggle to run tests that use threads/processes themselves and that can be worse in PyPy. One alternative could be disabling xdist for PyPy (but I don't know how much longer the tests would take)
Summary of changes

Intercept futures.process.BrokenProcessPool/MemoryError on PyPy and xfail

Closes
Pull Request Checklist

[ ] Changes have tests
[ ] News fragment added in changelog.d/.
(See documentation for details)

The errors in PyPy are always fun: ValueError: Egg metadata expected at build/bdist.macosx-10.7-x86_64/wheel/foo-0.0.0-py3.7.egg-info but not found


Not able to compile for QNX

Required information
Operating system:
Ubuntu 18.04 LTS
Compiler version:
QCC 5.4.0
I am trying to build Iceoryx for QNX by sourcing QNX SDP 7.0 in my terminal, through the provided script and the toolchain file for x86_64. But I am getting the following error
/home/indramani/iceoryx/iceoryx_hoofs/platform/qnx/source/grp.cpp:21:53: error: 'getgrouplist' was not declared in this scope

@Indra5196 @huangzhixin
Was one of you able to test my proposal?

@Indra5196 @huangzhixin Was one of you able to test my proposal?

Hi, I just had a try, it does not work. I updated to the latest master branch and did similar changes as you.

The following is the build log :
log.txt

this work done. qnx_sdp70_common.cmake
SET(CMAKE_CXX_FLAGS_DEBUG "-std=c++14")
SET(CMAKE_CXX_FLAGS_RELEASE "-std=c++14")

@Indra5196 @huangzhixin Do you have any updates? There is no problem on our side. Maybe you can try what @stonebbq1 proposes

I will close this issue for now if there are any objections, feel free to reopen it.


Does this framework maintainable in 2023?

Hello guys!
Question
Does this framework maintainable in 2023?

Howdy. Yes, we are still maintaining it. Took a break for a while from the burnout, but starting back up.

Howdy. Yes, we are still maintaining it. Took a break for a while from the burnout, but starting back up.

Great news!


feat: automatically replace fetch polyfills (isomorphic-fetch, node-fetch, unidici etc) with shims

A common pattern in the node ecosystem is to use polyfills for fetch. These polyfills are usually built on top of http/https built ins. Trying to use these on Workers fails because we don't have these built ins. Trying to use node_compat doesn't currently solve this problem, because the polyfills we use for http are built on XMLHTTPRequest, which isn't even available on Workers. All this rigmarole for an api that's natively available on Workers.
While we should separately build better polyfills, my suggestion here is to automatically replace said fetch polyfills with shims to the native api. There may be slight behaviour quirks, but that's a lot better than the current situation where they don't even work.

This wouldn't work for custom builds, so we could also have documentation (and maybe plugins for webpack esbuild etc) that lets folks apply it themselves.

@jasnell How much will this problem be alleviated in the long run by node compat? Will it include implementations of the http module etc...?

I’m going to close this issue for now, since this is a limitation of the node_compat system. Going forward, the Workers runtime is working on adding support for more Node.JS builtins, including possibly the node:http module.
In the meantime, the best solution for now is to include your own polyfills of Node.JS builtins like http.


REL - 2024.11.2

Pull request checklist

[x] Did you test this change locally?
[x] Did you update the documentation (if required)?
[x] Did you add/update relevant tests for this change (if required)?

I guess it’s okay that the server and UI versions are not the same?

I guess it’s okay that the server and UI versions are not the same?

yep. We did a release of the server earlier in the month. So the next version should be 2024.11.2.


Dataset description

Hi~ Could you explain to me the detailed fields description exiting in the dataset?  I have difficulty in recognizing the meaning of each field. Thanks!

Hi,
Thanks for your question. "title", "section", and "subevents" are the original text. Fields ended with activities are the activities extracted by the ASER extraction pipeline. Fileds ended with "srls" are SRL parsing results. "v_o" means verb and object.


fix(card-in-card): adjust card in card wrapper width on Collapsed grid mode

Related Ticket(s)
https://github.com/carbon-design-system/carbon-for-ibm-dotcom/issues/5485
Description

This PR fixes the grid alignment issue seen on the Card Group with Card in Card variant when the grid mode is changed to collapsed.

Changelog

Just some CSS styling changes.

Testing Instructions

Visit the Card Group with Card in Card variant - ?path=/story/components-card-group--with-card-in-card
Adjust the Grid Mode knob to Collapsed (1px)
Ensure that the card within the Card in Card component aligns with the Card Group items.
Ensure that the border-bottom line is set correctly on all breakpoints.

Current:

Expected:

@shixiedesign No prob! Thanks for catching this alignment bug.
@RaphaelAmadeu @jeffchew Please take a look at the code and let me know if the changes look good or whether there are things within the docs that I'm missing.

Hey @proeung , can you take a look at the web components ci-checks? It looks to be failing at the moment.

Hey @proeung , can you take a look at the web components ci-checks? It looks to be failing at the moment.

@jeffchew Just fixed the CI check error (see - https://github.com/carbon-design-system/carbon-for-ibm-dotcom/pull/5494/commits/0603f1415e0872bb521a158f6b0a93a8b83de2dd). Please take a look again.

I see this PR is to fix grid alignment, so I don't want to distract too much from the original intent. Do we have an issue opened already for the rounded corners and extra border width on focus for this component?


Azure CLI command exposes the wrong port

If you follow the article's FastAPI instructions exactly, ingress to the container app is blocked. This is because the docker container exposes to port 3100, but the azcli command here exposes port 80. It immediately worked when I changed the ingress port to 3100.
https://learn.microsoft.com/en-us/azure/developer/python/tutorial-containerize-simple-web-app?tabs=web-app-fastapi#deploy-to-web-app-to-azure
az containerapp up
--resource-group web-fastapi-aca-rg --name web-aca-app \
--ingress external --target-port 80 --source .
The command above should be changed from "--target-port 80" to "--target-port 3100".
Edit: submitted PR here: #1208
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 991b7193-7756-1662-ca0d-c89b53c61658
Version Independent ID: 991b7193-7756-1662-ca0d-c89b53c61658
Content: Deploy a Flask or FastAPI web app as a container in Azure Container Apps
Content Source: articles/python/tutorial-containerize-simple-web-app.md
Service: azure-python
GitHub Login: @bobtabor-msft
Microsoft Alias: rotabor

Hi @mattdonnelly10 Thanks for your feedback! You're absolutely right -- the CLI command is wrong. I saw your PR and incorporated it into a PR against our private repo with a couple of other changes I want to make. I'm going to go ahead and close your PR for that reason. The change should be up in the next couple of days.
Also, apologies for the tardiness of the response on this one. We had an internal mix-up and lost track of a few issues. That said, we very much appreciate your contribution to improving our documentation!
-Jimaco
Fixed in: https://github.com/MicrosoftDocs/azure-dev-docs-pr/pull/5188

No worries @JimacoMS4. Glad it'll be fixed, appreciate your diligence.


Use eval instead of require so that we don't have to generate files for real-time facades

The generation (and caching) of files for real-time facade classes was useless imo. AFAIK there was no real performance boost to writing and caching those files, since we were only skipping one str_replace() call.
So if there's no performance boost, my personal preference is to avoid generating files whenever possible. This PR uses eval() instead of require so that we can skip writing an actual file. Yes eval() has a bad rep, but in this case it's really no big deal, since it does exactly the same thing as an include.

Hmm, I think the suggestion that StyleCl proposes actually makes the code less readable. Do you really want me to remove the spaces so that StyleCl accepts my PR?

Eval can't be opcached.

The framework never adds spaces in string concatenation. Looks strange until you get used to it.

@taylorotwell did you ever benchmark it to see how great the difference in performance is? If not, would you be open to letting me benchmark it and possibly re-open this PR based on the results?


Remove try/catch in gracefully_exit

https://github.com/2gis/stf-utils/blob/master/connector.py#L25-L35

Wondering if this is the same problem -- I am running into a situation where running python connector.py & adb devices runs indefinitely as such:
2016-05-03 12:01:01,609 INFO Starting connect service... 2016-05-03 12:01:01,609 DEBUG Created list of wanted devices groups: [{'min_sdk': 16, 'wanted_amount': '10', 'group_name': 'alfa', 'connected_devices': [], 'max_sdk': 23, 'specs': {'provider_name': 'ANY', 'manufacturer': 'ANY', 'platform': 'Android', 'abi': 'x86', 'serial': 'ANY', 'model': 'ANY'}, 'added_devices': []}, {'min_sdk': 1, 'wanted_amount': '2', 'group_name': 'beta', 'connected_devices': [], 'max_sdk': 99, 'specs': {'provider_name': 'ANY', 'manufacturer': 'ANY', 'platform': 'Android', 'abi': 'ANY', 'serial': 'ANY', 'version': '4.1.2', 'model': 'ANY'}, 'added_devices': []}] 2016-05-03 12:01:02,232 DEBUG Device 36bdda8f is available 2016-05-03 12:01:02,364 DEBUG Device LGD8559407806f is available 2016-05-03 12:01:02,527 DEBUG Device 0961e8f813dc0cd7 is available 2016-05-03 12:01:02,778 DEBUG Device ce9e0d24 is available 2016-05-03 12:01:02,896 DEBUG Device 48606d4d is available 2016-05-03 12:01:03,094 DEBUG Device 84B7N15A04003695 is available 2016-05-03 12:01:03,216 DEBUG Device a2291211 is available 2016-05-03 12:01:03,334 DEBUG Device 4cd1caf8 is available 2016-05-03 12:01:03,453 DEBUG Device BH9044X11F is available 2016-05-03 12:01:03,580 DEBUG Device f73c4ba3 is available 2016-05-03 12:01:03,957 DEBUG Device LGD8554813a07f is available 2016-05-03 12:01:03,957 INFO Got avaliable devices for connect: ['36bdda8f', 'LGD8559407806f', '0961e8f813dc0cd7', 'ce9e0d24', '48606d4d', '84B7N15A04003695', 'a2291211', '4cd1caf8', 'BH9044X11F', 'f73c4ba3', 'LGD8554813a07f'] 2016-05-03 12:01:03,957 INFO Trying connect devices... Wanted Amount: 10. Actual Amount: 0 2016-05-03 12:01:04,778 DEBUG Device 36bdda8f is available 2016-05-03 12:01:04,977 DEBUG Device LGD8559407806f is available

@tomioueda, It is expected behaviour of connector.py to run indefinitely - it was designed to work as a daemon - while it is up, it keeps connections with connected devices and periodically tries to connect more devices, if not all specified in spec.json are connected yet. When you kill connector.py process, it closes all connections and releases devices from STF.
So, If you want to hide output from it, you can redirect it to file:
python connector.py > connector.log &
PID=$!
adb devices

After those commands connector.py will run in a background and will try to connect all devices specified in spec.json and save output to file connector.log. To stop it, you should kill connector.py procces by pid:
kill $PID

2016-05-31 15:08:14,128 INFO Starting connect service...
2016-05-31 15:08:14,137 DEBUG Created list of wanted devices groups: [{'connected_devices': [], 'wanted_amount': u'10', 'min_sdk': 16, 'added_devices': [], 'group_name': u'alfa', 'max_sdk': 23, 'specs': {u'abi': u'x86', u'provider_name': u'ANY', u'platform': u'Android', u'model': u'ANY', u'serial': u'ANY', u'manufacturer': u'ANY'}}, {'connected_devices': [], 'wanted_amount': u'2', 'min_sdk': 1, 'added_devices': [], 'group_name': u'beta', 'max_sdk': 99, 'specs': {u'abi': u'ANY', u'provider_name': u'ANY', u'platform': u'Android', u'version': u'4.1.2', u'model': u'ANY', u'serial': u'ANY', u'manufacturer': u'ANY'}}]
2016-05-31 15:08:14,147 INFO Starting <STFDevicesConnector(Thread-1, started<PHONE_NUMBER>09312)>...
2016-05-31 15:08:14,326 INFO Starting <STFConnectedDevicesWatcher(Thread-2, started<PHONE_NUMBER>66880)>...
2016-05-31 15:08:16,763 DEBUG Device CC52BYC03680 is available
2016-05-31 15:08:16,885 INFO Got avaliable devices for connect:
[u'CC52BYC03680']
2016-05-31 15:08:16,885 INFO Trying connect devices... Wanted Amount: 10. Actual Amount: 0
2016-05-31 15:08:18,874 DEBUG Device CC52BYC03680 is available
2016-05-31 15:08:19,009 INFO Got avaliable devices for connect:
[u'CC52BYC03680']
2016-05-31 15:08:19,009 INFO Trying connect devices... Wanted Amount: 2. Actual Amount: 0
2016-05-31 15:08:22,631 DEBUG Device CC52BYC03680 is available
2016-05-31 15:08:22,761 INFO Got avaliable devices for connect:
[u'CC52BYC03680']
2016-05-31 15:08:22,761 INFO Trying connect devices... Wanted Amount: 10. Actual Amount: 0
2016-05-31 15:08:24,303 DEBUG Device CC52BYC03680 is available
2016-05-31 15:08:24,439 INFO Got avaliable devices for connect:
[u'CC52BYC03680']
2016-05-31 15:08:24,439 INFO Trying connect devices... Wanted Amount: 2. Actual Amount: 0
2016-05-31 15:08:28,085 DEBUG Device CC52BYC03680 is available
2016-05-31 15:08:28,208 INFO Got avaliable devices for connect:
[u'CC52BYC03680']
2016-05-31 15:08:28,208 INFO Trying connect devices... Wanted Amount: 10. Actual Amount: 0
2016-05-31 15:08:28,759 DEBUG Device CC52BYC03680 is available
2016-05-31 15:08:28,894 INFO Got avaliable devices for connect:
[u'CC52BYC03680']
It shows that the device is available to debug. But when I check for all the list of connected devices, using adb devices , no devices are listed. How to know if the devices are  binded  to our system?
The above is the snippet when I run python connector.py & adb devices.
Can you help me out with this issue?

@adheesh24 It seems, you should edit your spec.json file.
spec.json contains specifications of wanted devices.
If you want to connect all devices on your STF, your spec.json should be like this:
[
{
"group_name": "alfa",
"amount": "999"
}
]

2016-05-31 15:35:31,345 INFO Starting connect service...
2016-05-31 15:35:31,345 DEBUG Created list of wanted devices groups: [{'connected_devices': [], 'wanted_amount': u'999', 'min_sdk': 1, 'added_devices': [], 'group_name': u'alfa', 'max_sdk': 99, 'specs': {}}]
2016-05-31 15:35:31,346 INFO Starting <STFDevicesConnector(Thread-1, started<PHONE_NUMBER>09312)>...
2016-05-31 15:35:31,454 INFO Starting <STFConnectedDevicesWatcher(Thread-2, started<PHONE_NUMBER>15904)>...
2016-05-31 15:35:32,021 DEBUG Device CC52BYC03680 is available
2016-05-31 15:35:32,160 INFO Got avaliable devices for connect:
[u'CC52BYC03680']
2016-05-31 15:35:32,160 INFO Trying connect devices... Wanted Amount: 999. Actual Amount: 0
2016-05-31 15:35:32,284 DEBUG Device CC52BYC03680 is available
2016-05-31 15:35:32,363 DEBUG Got remote connect url 192.168..:*** for connect by adb for device CC52BYC03680
2016-05-31 15:35:32,363 DEBUG ADB start connecting 192.168..:***
2016-05-31 15:35:32,364 DEBUG Executing adb command: ['adb', 'connect', u'192.168..:']
2016-05-31 15:35:32,496 DEBUG Deleted device CC52BYC03680
2016-05-31 15:35:32,497 ERROR ADB Connection Error during connection for 192.168..:** with CC52BYC03680.
Device CC52BYC03680
I get ADB connection error after I update my spec.son file.

Can you connect to your device if you click "Use" in web-interface and execute shell command, displayed  in "Remote debug" field ? adb connect host:port

got this

daemon not running. starting it now on port 5038 *
daemon started successfully *
connected to ip

and do you see connected device in adb devices ?

No,Cant see the list of connected devices.

daemon not running. starting it now on port 5038 *
daemon started successfully *
List of devices attached

If you don't see your device connected in adb devices after you clicked "Use" in web-interface and executed commands:
adb connect _host_:_port_
adb devices

then try to create issue to https://github.com/openstf/stf, since it is base functionality, and stf-utils need it to operate properly

@adheesh24
please create another issue in stf-utils with complete description of your problem, since this issue's name has nothing to do with it.


Allow client to specify no include paths when server has default include paths

Where the server decides to use default include paths, i.e. when the client does not provide any include paths, there seems no way for the client to specify that it does not want any include paths.
I.e. these two requests:
GET /api/posts
GET /api/post?include

both use the default include paths. However, in the second one the client has specified no include paths, so none should be used... i.e. default include paths should only be used if the client has not provided an include query parameter.
This is potentially breaking though (i.e. if there are clients out there doing request with an empty include parameter), so probably needs to be fixed for 2.0.

This should be considered a bug IMO as it violates JSON:API specification:

Inclusion of Related Resources
[...]
If an endpoint supports the include parameter and a client supplies it, the server MUST NOT include unrequested resource objects in the included section of the compound document.
https://jsonapi.org/format/#fetching-includes

Yeah agreed. I'll take another look at it to see if it can be fixed in a 1.x release...

This is not fixable in 1.x because the neomerx package uses the default include paths from the schema if the include paths from the encoding parameters are empty. I.e. there is no way for the client to indicate that it wants nothing included.
Parsing here:
https://github.com/neomerx/json-api/blob/c911b7494496e79f9de72ee40d6a2b791caaf95b/src/Http/Query/QueryParametersParser.php#L77-L83
And decision as to whether to use the defaults from the schema here:
https://github.com/neomerx/json-api/blob/c911b7494496e79f9de72ee40d6a2b791caaf95b/src/Encoder/Parameters/ParametersAnalyzer.php#L188-L201
Will have to investigate what happens in more recent versions of the neomerx encoder before deciding whether to raise an issue in that package.


Document project validations

https://github.com/lutraconsulting/qgis-mergin-plugin/issues?q=is%3Aissue+is%3Aopen+label%3Avalidation
@alexbruy is working on plugin validations, best to document and add to docs!

https://github.com/lutraconsulting/qgis-mergin-plugin/pull/367#event-6345481243


SAMZA-2734: [Elasticity] Update last processed offset after an envelope is finished processing when elasticity is enabled

Feature: Elasticity (SAMZA-2687) for a Samza job allows job to have more tasks than the number of input SystemStreamPartition(SSP). Thus, a job can scale up beyond its input partition count without needing the repartition the input stream.
This current PR is to update the last processed offsets maintained by the OffsetManager during processing stage of the container correctly when elasticity is enabled.
Changes:

Modify OffsetManager.udpate to correctly identify the ssp even with keyBucket info is not present in the given parameter ssp
Modify SystemConsumers to provide the ssp,offset to Chooser after all the registrations are done. This is because, chooser is given an ssp without keyBucket but a container could be processing multiple keyBuckets within the same ssp. So after registration for all is complete, the smallest offset is given to the chooser.

Tests: TBD
API changes: no public api change
Upgrade instructions: none
Usage instructions: None.
Backwards compatible: yes. does not affect the existing flow

lgtm

IIUC, we want to add some validation to fail if
elasticity-factor > 1 and broadcast-streams is enabled?


Collect curriculum and attendance from last week and this week

@zachlatta

[x] Armijo High School
[x] Glenaeon Rudolf Steiner School
[x] USC Hybrid School Meeting cancelled due to UC college app deadline extensions

@MaxWofford

[x] Project Cipher
[x] Ravenwood High School Meets every other week.
[x] San Leandro High School
[x] South Brunswick High School

@jonleung

[ ] Elizabeth High School
[ ] San Mateo High School
[ ] Cherry Hill High School East
[ ] Lowell High School

As discussed during standups on Thu Dec-17, we decided to close this issue because we want to prioritize Hack Series.


Unable to reproduce the result achieved on matterport Mask-RCNN with the same config on mmdet

This may be seem like a hyperparameter search or find your own cure kinda question but here it goes.
I do have a dataset consisting of nearly 400 1000*1000px gray level images. There are 3 classes, and annotated objects are no larger than 40x40 pixels. I first give it a go at matterport-mask-rcnn implementation. Training was slow but I was able to achieve approx 0.36 mAP score. After figuring out to implement the same architecture on mmdet, I could only get 0.07 mAP which means there is something going really wrong. For sanity check, json file annotations are showing correctly on builtin viewer function (forgot its name:)). Here is the base config file and things I changed are commented:
# model settings
model = dict(
    type='MaskRCNN',
    pretrained=None,
    backbone=dict(
        type='ResNet',
        depth=101,
        num_stages=4,
        out_indices=(0, 1, 2, 3),
        frozen_stages=0, # for retraining all layers
        norm_cfg=dict(type='BN', requires_grad=True),
        norm_eval=False, # Set this to false since pretrained weights are not used (Correct me if I'm wrong)
        style='pytorch'),
    neck=dict(
        type='FPN',
        in_channels=[256, 512, 1024, 2048],
        out_channels=256,
        num_outs=5),
    rpn_head=dict(
        type='RPNHead',
        in_channels=256,
        feat_channels=256,
        anchor_generator=dict(
            type='AnchorGenerator',
            scales=[8],
            ratios=[0.5, 1.0, 2.0],
            strides=[4, 8, 16, 32, 64]),
        bbox_coder=dict(
            type='DeltaXYWHBBoxCoder',
            target_means=[.0, .0, .0, .0],
            target_stds=[1.0, 1.0, 1.0, 1.0]),
        loss_cls=dict(
            type='CrossEntropyLoss', use_sigmoid=True, loss_weight=1.0),
        loss_bbox=dict(type='L1Loss', loss_weight=1.0)),
    roi_head=dict(
        type='StandardRoIHead',
        bbox_roi_extractor=dict(
            type='SingleRoIExtractor',
            roi_layer=dict(type='RoIAlign', output_size=7, sampling_ratio=0),
            out_channels=256,
            featmap_strides=[4, 8, 16, 32]),
        bbox_head=dict(
            type='Shared2FCBBoxHead',
            in_channels=256,
            fc_out_channels=1024,
            roi_feat_size=7,
            num_classes=3, # set classes
            bbox_coder=dict(
                type='DeltaXYWHBBoxCoder',
                target_means=[0., 0., 0., 0.],
                target_stds=[0.1, 0.1, 0.2, 0.2]),
            reg_class_agnostic=False,
            loss_cls=dict(
                type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0),
            loss_bbox=dict(type='L1Loss', loss_weight=1.0)),
        mask_roi_extractor=dict(
            type='SingleRoIExtractor',
            roi_layer=dict(type='RoIAlign', output_size=14, sampling_ratio=0),
            out_channels=256,
            featmap_strides=[4, 8, 16, 32]),
        mask_head=dict(
            type='FCNMaskHead',
            num_convs=4,
            in_channels=256,
            conv_out_channels=256,
            num_classes=3, # set classes again
            loss_mask=dict(
                type='CrossEntropyLoss', use_mask=True, loss_weight=1.0))))
# model training and testing settings
train_cfg = dict(
    rpn=dict(
        assigner=dict(
            type='MaxIoUAssigner',
            pos_iou_thr=0.7,
            neg_iou_thr=0.3,
            min_pos_iou=0.3,
            match_low_quality=True,
            ignore_iof_thr=-1),
        sampler=dict(
            type='RandomSampler',
            num=256,
            pos_fraction=0.5,
            neg_pos_ub=-1,
            add_gt_as_proposals=False),
        allowed_border=-1,
        pos_weight=-1,
        debug=False),
    rpn_proposal=dict(
        nms_across_levels=False,
        nms_pre=2000,
        nms_post=1000,
        max_num=1000,
        nms_thr=0.7,
        min_bbox_size=0),
    rcnn=dict(
        assigner=dict(
            type='MaxIoUAssigner',
            pos_iou_thr=0.5,
            neg_iou_thr=0.5,
            min_pos_iou=0.5,
            match_low_quality=True,
            ignore_iof_thr=-1),
        sampler=dict(
            type='RandomSampler',
            num=512,
            pos_fraction=0.25,
            neg_pos_ub=-1,
            add_gt_as_proposals=True),
        mask_size=28,
        pos_weight=-1,
        debug=False))
test_cfg = dict(
    rpn=dict(
        nms_across_levels=False,
        nms_pre=1000,
        nms_post=1000,
        max_num=1000,
        nms_thr=0.7,
        min_bbox_size=0),
    rcnn=dict(
        score_thr=0.05,
        nms=dict(type='nms', iou_threshold=0.5),
        max_per_img=100,
        mask_thr_binary=0.5))

#Dataset
dataset_type = 'CocoDataset'
img_norm_cfg = dict(
    mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=False) # Set it false since I'm grayscale (Again correct me if is is not proper)
train_pipeline = [
    dict(type='LoadImageFromFile'),
    dict(type='LoadAnnotations', with_bbox=True, with_mask=True),
    dict(type='Resize', img_scale=(1000, 1000), keep_ratio=True),
    dict(type='RandomFlip', flip_ratio=0.0), # disabled flip for reproducbility. Also main.py file has some seeds.
    dict(type='Normalize', **img_norm_cfg),
    dict(type='Pad', size_divisor=32),
    dict(type='DefaultFormatBundle'),
    dict(type='Collect', keys=['img', 'gt_bboxes', 'gt_labels', 'gt_masks']),
]
test_pipeline = [
    dict(type='LoadImageFromFile'),
    dict(
        type='MultiScaleFlipAug',
        img_scale=(1000, 1000),
        flip=False,
        transforms=[
            dict(type='Resize', keep_ratio=True),
            dict(type='RandomFlip'),
            dict(type='Normalize', **img_norm_cfg),
            dict(type='Pad', size_divisor=32),
            dict(type='ImageToTensor', keys=['img']),
            dict(type='Collect', keys=['img']),
        ])
]

classes = ('a', 'b', 'c')
data = dict(
    samples_per_gpu=1,
    workers_per_gpu=2,
    train=dict(
        type=dataset_type,
        ann_file='pathtotrainjson',
        img_prefix='pathtotrainds',
        classes=classes,
        pipeline = train_pipeline),
    val=dict(
        type=dataset_type,
        ann_file='pathtovaljson',
        img_prefix='pathtovalidds',
        classes=classes,
        pipeline = train_pipeline),
    test=dict(
        type=dataset_type,
        img_prefix='pathtotestds',
        pipeline=test_pipeline)) # I don't use validation. I do just train till it converges.
evaluation = dict(metric=['bbox', 'segm'])

#schedule
optimizer = dict(type='SGD', lr=0.02 / 8, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=None)
lr_config = dict(
policy='step',
warmup='linear',
warmup_iters=500,
warmup_ratio=0.001,
step=[8, 11])
total_epochs = 100

#default runtime
checkpoint_config = dict(interval=100)
log_config = dict(interval=10, hooks=[dict(type='TextLoggerHook')])
dist_params = dict(backend='nccl')
log_level = 'INFO'
load_from = None
resume_from = None
workflow = [('train', 1)]
work_dir = './work_dirs/blabla'
gpu_ids = range(0, 1)

And here is after 30th epoch:
{"mode": "train", "epoch": 30, "iter": 390, "lr": 3e-05, "memory": 4216, "data_time": 0.03175, "loss_rpn_cls": 0.0102, "loss_rpn_bbox": 0.01336, "loss_cls": 0.04268, "acc": 98.45703, "loss_bbox": 0.08635, "loss_mask": 0.20926, "loss": 0.36185, "time": 0.51338}

Hi @colt18, I'm sorry I might not give you some useful suggestions yet. Do you find something wrong yet?

@v-qjqs Well it seems that default config for mrcnn doesn't works for my dataset even I tried out many parameters and it didn't go well. So I just gave up trying. For now, matterport mrcnn works better for my case and looks like I'll stick to that even though I'd like to work with mmdet. Well, obviously this thing is a parameter search and I'm out of luck for sure.


[stable/node-local-dns]: Fix template rendering

Description
I'm really sorry; in my previous pull request I didn't test the template rendering very well.
The result was wrong
loopbind <IP_ADDRESS> <IP_ADDRESS>

Checklist

[x] Title of the PR starts with chart name (e.g. [stable/mychartname])
[x] I have read the contribution instructions, bumped chart version and regenerated the docs
[x] Github actions are passing

@max-rocket-internet


fix build: add ssh-agent for authorized pushes using GH > R12

same fix as for build-plugin https://github.com/axonivy/project-build-plugin/commit/1230673ffce060a48d30a269372fff28ce06d8e1

👍


[FLINK-7477] [FLINK-7480] Various improvements to Flink scripts

@rmetzger I addressed your comments.

+1 to merge (assuming command is available on all operating systems / or is a bash command?)

It's a bash command, AFAIK.

Hey, notice that this commit is part of this PR but it not merged into branch 1.5 and 1.6, neither in master. I wonder whether it will be merged?

I just stumbled across this as well.
The commit @ruankd referred to was indeed not committed.


[BEAM-5532] Update Spark runner to Spark version 2.3.2

Please add a meaningful description for your change here

Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.
Post-Commit Tests Status (on master branch)

Lang
SDK
Apex
Dataflow
Flink
Gearpump
Samza
Spark

Go

---
---
---
---
---
---

Java

Python

---

---
---
---

Run Spark ValidatesRunner

Done, good to merge @jbonofre


Fixed some minor typos in docs

Was going through docs and found some typos. :)

merged via 6e5c0a1b646d3e955121b699a156405cda34d553. Thanks!


Update owlapi-distribution to 4.5.21

Updates net.sourceforge.owlapi:owlapi-distribution from 4.5.15 to 4.5.21.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "net.sourceforge.owlapi", artifactId = "owlapi-distribution" } ]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #119.


backend 400 times out entire request

When a fragment returns a 400 (and possibly other 4XX / 5XX that aren't 404), fail fast. Currently a 400 appears to time out the entire request.

Will take a look first thing tomorrow am.

Was due to a handler that responded to the 400 that didn't then terminate the response as it should, so an issue in our application vs Compoxure.


Error messages not appearing for syntax errors when using --compiler and --watch

I'm using the ts-node to compile TypeScript tests as described in their README, however when there is a compilation error in a test file, no error message is displayed in watch mode (works fine with a single run). I've done some investigation and it appears the problem is two fold:

The mocha watcher catches the exception that is thrown by require, but only prints e.stack. The works because Node puts the error message into e.stack in addition to the stack trace.
ts-node only sets e.message instead of e.stack, so the error message is lost.

Would you accept a PR that changed the error printing logic to this?
if (e.stack) {
  console.log(e.stack);
} else {
  console.log(e.message);
}

This should preserve the existing behavior and allow error messages from ts-node to be displayed.

@mylesmegyesi We just started running into this issue after updating a few of our NPM packages. We found that if we reverted our ts-node package back to the previous version we were using (1.3.0), we were able to see errors again. Reverting mocha did not fix the problem.
So it looks like this may be an issue with ts-node instead of mocha?

I wouldn't say that either Mocha or ts-node has a problem per se, but there are mismatched assumptions. Mocha assumes that content of the error resides in e.stack and ts-node assumes that consumers will only be reading e.message. That being said, I think that both sides should take steps to make less assumptions about their integration points. On Mocha's side, the simple change that I have proposed above will remove Mocha's assumptions about where the error message resides. On ts-node's side, they should hydrate the e.stack property.
I'm more than willing to submit a PR to implement this change if it is desired.

This is working again since ts-node 1.7.1.


Create 'datasets' folder

This avoids /bin/sh: 1: cannot create datasets/dewiki.sampled_revisions.20k_2015.tsv: Directory nonexistent on a clean installation.

you can make the datasets folder and put .gitignore in it (read this http://stackoverflow.com/questions/115983/how-can-i-add-an-empty-directory-to-a-git-repository ) but it's just a suggestion.

+1 for adding a placeholder file to the datasets directory.  I think that, eventually, we should commit some labeled data to that directory.  For now, I've committed out wikidata revision sample to it.


New Reporter for Moesif API analytics dashboard.

Purpose
Choreo platform user should be able to send API analytics to Moesif platform [1] given that user has provided a one-time write only Moesif key [2].
Goals
Should be able to direct analytics events to Moesif platform securely, reliably by adhering to multi-tenant architecture.
Approach
This implementation shares many similarities to already existing Reporters.
Only addition is Moesif reporter is communicating with an external microservice to handle end user details.
Automation tests

Unit tests

Covered for Moesif event builder

Status
Draft (Microservice should be in prod to proceed ).

Closing this PR since recent modifications are much different from this implementation


Error: Couldn't switch to requested monitor resolution

Hello,
Since a week or so ago I keep encountering this error every time I try to launch a game from Heroic Launcher or Steam alike:

I'm on Fedora 39 (KDE Wayland) on a laptop with dedicated Nvidia GPU, and am not yet very proficient in the ways of Linux. I tried reinstalling Fedora several times (for this and other unrelated issues) and for a couple of days everything works flawlessly, but then breaks suddenly and without any evident reason. Searching online for answers I found that disabling the "Auto Install/Update DXVK on Prefix" and "Auto Install/Update VKD3D on Prefix" options on Heroic works as a rough patch; similarly, setting PROTON_USE_WINED3D11=1 %COMMAND% as a launch option on Steam, I manage to launch the games (albeit with major graphical glitches and performance impairments). I figured to ask here about it since the issue seems to be related to dxvk. Here is one of the games' log file after a launch attempt:
game-LastPlay.log
Any help is appreciated as I really don't know how to approach this. Thanks
Edit: since I forgot to mention it, here's my system information.

GPU: NVIDIA GTX 1650 Ti (Mobile)
Driver: 550.67
DXVK version: 2.3.1 (through Heroic Launcher and Steam flatpaks)
OS: Fedora 39 (KDE spin, Wayland compositor)

Doesn't seem to be a Wayland-specific issue because the error pops up in X11 sessions too. Furthermore, sometimes (though rarely) upon booting up everything works without throwing any errors, and I can perfectly play my games.
Edit 2: I found a temporary solution that works really well for some reason.  After doing so every game runs flawlessly and the system behaves like there wasn't any error in the first place. I can't really wrap my head around it as of why it works, but I'm not complaining tbh
Edit3: Found a permanent solution, check my last comment!

err:   D3D11SwapChain: Failed to recreate swap chain: -13
err:   DXGI: CreateSwapChainForHwnd: Failed to create swap chain, hr -2147467259

Looks like some problem with PRIME maybe? For some reason we're unable to create a Vulkan swap chain on the game's window, but the reason for that can be pretty much anything from messed up driver setup (shouldn't really be a problem since Turing should just work out of the box), the wine build being weird, some launcher setting weird environment variables that fuck things up, or the specific game doing something weird. Extremely hard to remote-debug these things.
Maybe try something like DXVK_FILTER_DEVICE_NAME=Intel to force it to run on the integrated GPU and see if that works for now.

I don't really know about the drivers, installed smoothly from rpmfusion and signed for safe boot. I already reinstalled them once to be sure a few days ago, but the issue persisted. Setting DXVK_FILTER_DEVICE_NAME=Intel does run the game, but of course there are performance hits on more demanding titles (for the record, almost every game I tried firing up from both Steam and Heroic throws this error).
Since remote-debugging is not viable, how would I go about investigating it? I'm pretty new to Linux so I'm just asking about some good debugging practices. Also, in the event I manage to launch the game, would the log be of any use? Thank you for your patience. I'm kinda going insane with this

Hello, with the help of some (way) more knowledgeable people (than me) I found a solution for everyone having the same issue. Basically the root of it was that during boot, one of the Nvidia kernel modules failed to load. In my case, nvidia-modprobe failed to initialize, and as a result, some key system files were missing at startup; for me it was the /dev/nvidia-modeset device file. The curious thing is that vulkaninfo fixed the issue because it directly attempts to call nvidia-modprobe after the boot initialization (as explained well here and also here). This means that running vulkaninfo deals the same exact result as running nvidia-modprobe -m (to load the modeset module and create the missing file). Now, the easiest and preferred way to automatically run nvidia-modprobe when the Nvidia module is loaded during boot, is by setting a custom udev rule: the structure of which is almost identical to this one made for Arch. There are some personal differences in the KERNEL and DRIVER arguments based on how each is called in the host machine, so let's go step by step:

You may want to check if you have nvidia-drm.modeset=1 in the boot parameters. If not, it is preferred to add it (there are plenty of resources online on how to add a boot parameter in GRUB, I don't wanna make expansive explanations. Also note that depending on the distro of choice, the spelling could need a _ instead of - so check for your distro);
Create a new file in /etc/udev/rules.d called nvidia-modprobe.rules;
Copy the contents of the Arch rule in the newly created file;
Run udevadm info -a -n /dev/dri/cardX, where X is the number of your dGPU. Should be either 0 or 1 (you should be able to infer which card the command targeted by looking at the output anyways);
Find the right KERNEL and DRIVER entries listed by the command and replace the default ones in the nvidia-modprobe.rules file with those (in my case they were KERNEL=="card1" and DRIVER=="");
Add the right flags to the line RUN+="/usr/bin/nvidia-modprobe -c 0 -u. I, for example, had to add -m to rebuild the right missing module (modeset);
Save the file, reboot and you should be good!

Thanks for reporting back.


X-buttons in input fields

Whenever you type something in an input field you have to manually press backspace until the entire string is gone. Could an x-button help clear this immediately?
Another solution:
Take new members as an example: whenever a new member has been added, please remove them from the input field, so it's ready for the next member:)

#83 implements your "another solution", but I am currently working on adding an 'x' to as many input fields as I can


running path 2024.07

Added

running path:

addeddescription attribute (see Issue #5)

Changed

running path:

running path arrays now contain named attributes (see Issue #4)
when using points_of_interest minimum one item required
measures for points_of_interest can now take three values: "front", "middle", and "rear"

Removed

running path:

removed name attribute (see Issue #5)

Uh nice! This is really cool.
Some ideas / questions:

why must points_of_interest have at least one item? Is it a problem to have an empty array?
what do you think about making speed and resistance optional? This would further simpilfy the file. So only on speed / resistance changes it has to be defined. Also resistance could be set to 0 if never defined. I think this would be pretty cool for manual defintion of a file

I thought about a slighty different approach to have the position as the key for the following attributes like this:
    characteristic_sections:
       0.0:
          speed:      1
          resistance: 0.00
       1.0:
          speed:      2
          resistance: 0.00

I thought about a slighty different approach to have the position as the key

It is not allowed to have a non-string key in valid json (see json schema: object.
Even though, I like the idea.

what do you think about making speed and resistance optional? This would further simpilfy the file. So only on speed / resistance changes it has to be defined. Also resistance could be set to 0 if never defined. I think this would be pretty cool for manual defintion of a file

Definitely, commit will come.

why must points_of_interest have at least one item? Is it a problem to have an empty array?

When it exist, there should be at least one element in my opinion.

It is not allowed to have a non-string key in valid json (see json schema: object.
Even though, I like the idea.

Yes, I know. Position would be a string. This is not optimal.

Do you a better way to test the schema? Especially, the part with the reason for the error in the invalid test.

It is not allowed to have a non-string key in valid json (see json schema: object.

Even though, I like the idea.

Yes, I know. Position would be a string. This is not optimal.

That's why I would like to avoid it. It was your idea to make the attributes explicit by the way. 😅

That's why I would like to avoid it. It was your idea to make the attributes explicit by the way. 😅

I still think that its better than before :smile:

why must points_of_interest have at least one item? Is it a problem to have an empty array?

When it exist, there should be at least one element in my opinion.

Implemented in fb796c0.
The array could have zero items when writing the file manual and POIs are commented out. This should not make the file invalid.


Validate has unhandled exception with bad patterns

Rather than returning the appropriate error message, there is an unhandled exception.
Using Python3.
Tested with "validate-pattern" and sending in "file:size = 1280"

I wasn't haven't this problem before.  This might be something I did.  Closing for now.

Thanks, @infosec-alchemist . We'll look into this.

Hi @infosec-alchemist! This appears to be an issue for the pattern validator, not the stix validator. I was unable to generate an unhandled exception with that input and replicate your issue. If this is still a problem, would you mind creating a new issue on the pattern validator repo and including some more info on the specific exception being thrown and a stack trace?
Thanks!


Triggers do not work when install under non-public schema

If I install the extension under a schema different from public, creating a new record under group_users results in the following error:
ERROR:  42P01: relation "group_users" does not exist
QUERY:  UPDATE auth.users
  SET raw_app_meta_data = JSONB_SET(
      raw_app_meta_data,
      '{groups}',
      JSONB_STRIP_NULLS(
        JSONB_SET(
          COALESCE(raw_app_meta_data->'groups', '{}'::JSONB),
          ARRAY[_group_id::TEXT],
          COALESCE(
            (SELECT JSONB_AGG("role")
             FROM group_users gu
             WHERE gu.group_id = _group_id
               AND gu.user_id = _user_id
            ),
            'null'::JSONB
          )
        )
      )
    )
  WHERE id = _user_id

The insert query I used is:
  insert into supabase_rbac.group_users (group_id, user_id)
  values ('9adaeec1-11c9-411c-966c-ef9b8352cc67', 'a0555121-ffed-4751-9de5-18e5f51cbb69');

I think group_users needs to be prefixed with the correct schema.

Oh good catch. Though I'm not actually sure how to resolve since I'm new to using this TLE / database.dev version of packaging. I will look into other packages to see how they resolve this. There must be a way to detect which schema this gets installed into. Thanks for the report.

This is fixed in This should be fixed as of 1.0.0 release


Flashing context menus

https://user-images.githubusercontent.com/90208727/192094872-68cbb30b-1778-4d8f-91e7-dad7edd2fd3d.mp4
This is not a hyprland specific bug (found it on sway aswell), but it doesn't withdraw the fact that it's annoying, I use many of the options from vscode menu. The weird thing is for vscode it works perfectly for some lines whilst it doesn't for others and sometimes it just magically disappears after restarted vscode, same is with firefox. I did not find this bug in any of the gnome apps tho (i.e nautilus, eog, etc)

Is your system up to date? I haven't seen this issue in quite a while, it seems strange that it appears now.
Also, are you running on nvidia? If yes, is your wlroots patched?

monitor config gib

Is your system up to date? I haven't seen this issue in quite a while, it seems strange that it appears now. Also, are you running on nvidia? If yes, is your wlroots patched?

Yesh, my hyprland-git is up to date
No, I am using an amd gpu (integrated)

which Hyprland?

monitor config gib

In hyprland.conf?
monitor=preferred,auto,1

thats wrong innit?
monitor=,preferred,auto,1

which Hyprland?

https://aur.archlinux.org/packages/hyprland-git

thats wrong innit?
monitor=,preferred,auto,1

ye sorry , its monitor=,preferred,auto,1 only mb

which Hyprland?

https://aur.archlinux.org/packages/hyprland-git

Uhh, I mean, run the command which Hyprland
It's possible that you got a Hyprland exec in /usr/local/bin, which doesn't get updated by the pkgbuild, therefore giving you a out-of-date Hyprland

oh mb,
its output was /usr/bin/Hyprland

check for gaps in the layout. hyprctl monitors

check for gaps in the layout. hyprctl monitors

no clue then

Sed, i mean its not a hyprland only problem so nvm, atleast y'all tried to help meh

@System-x64 I can confirm I am seeing the same bug - for about a week now. Indeed, it is not hyprland specific. I have seen it in sway too. it seems to be webapp related. Electron apps, and firefox. It is a bit annoying, but for now I'm just using the workarounds (keyboard) and waiting for a fix. What surprises me though is that the other hyprlanders are not seeing that. Might be graphic card related? I am using an intel integrated (VGA compatible controller: Intel Corporation Comet Lake UHD Graphics (rev 04)) on both my laptop and desktop, and having the issue on both.

I have the same bug. If I run Firefox with xwayland the problems disappears completely.

I don't on neither my RX 6700 XT desktop or my Ryzen 7 Laptop

I don't on either my RX 6700 XT desktop or my Ryzen 7 Laptop

R u using the AUR version (if so, which one?) or client compiled?

man I compile my own compositor by myself. I don't use the AUR.

Nope. Doesn't help still getting those flickers

I have the same issue with integrated Intel graphics on NixOS. The only app I use that's affected is Firefox.

I think this is a general webapp issue. I'm using chromium and I'm seeing this flickering for entire web pages, only when using hyprland (but I don't have any other wlroots-based compositors that work with my system).

This got solved for me with Firefox 106.
Can confirm that this issue is fixed for me aswell

But my code, it's still the same :(
So this is a more of an application based issue than hyprland based....

UPDATE 6/23: FIXED. Apparently these applications were not running natively on wayland and their context menus were being treated like a separate window.
https://wiki.hyprland.org/Getting-Started/Master-Tutorial/#force-apps-to-use-wayland