typo: Configuation -> Configuration

@nschonni : Thanks for your contribution! The author, @MikeJo5000, has been notified to review your proposed change.

#sign-off


About the output size and pretrained model

Hi, thank you for your work,
I would like to know if I can use extract_features2 to get vectors of 2048 for every window and if it is possible to load the weighs for the kinetics dataset? Also, I understand that I have to get the flow frames and then give them the model, is it right?  If so, could you recommend me a repository or something where I can get the code to apply the flow algorithm ?
Thank you in advance.

Hi, KarolyneFarfan. Sorry for the late reply.
To my knowledge, the output dimension of the I3D model should be 1024.  The commonly used 2028-dimension vector should be obtained by concatenating the rgb vector and optical flow vector, both in 1024-dimension.
You can seed the flow frames in a .npy file format into the model. The related two files, i.e., flow_extract.py and save_flowImg_npy.py have been uploaded just now.


SIIM benchmarks?

Would like to see how each SIIM models perform, speed and accuracy wise on Affine Distortions.
Some have already done benches on some OpenCV SIIMS (Comparison of OpenCV’s Feature Detectors and Feature Matchers by Frazer K. Noble) but it would be better to bench all SIIMs

Also https://github.com/CIRCL/carl-hauser/blob/master/SOTA/SOTA.md

Thank you DonaldTsang ! I'll take a look at those links :)
By the way, we did a benchmark of viewpoint tolerance for many descriptors in a SIAM paper. You can take a look at https://rdguez-mariano.github.io/pages/imas

for my use case I am trying to do https://github.com/pippy360/transformationInvariantImageSearch with image features rather than triangles, just a heads up.


File Explorer Addons Still Broken

Microsoft PowerToys version
.43
Running as admin

[X] Yes

Area(s) with issue?
MD Preview, SVG Preview
Steps to reproduce
Click on an svg or md file
✔ Expected Behavior
For a preview to be shown
❌ Actual Behavior
svgs display a message saying this file cant be previewed, and md displays this file cant be previewed due to an error in the markdown preview handler. additionally even if alternate functioning plugins are installed, and the powertoys versions are turned off, the alternates also dont work until turning powertoys on and then back off again after every reboot.
Other Software
SvgSee, but its presence or absence don't seem to matter.

Duplicate of #12550

I believe this's slightly different as both markdown and SVG previews are not displaying.
@mikekscholz can you please attach the logs generated by the Report Bug tool in the systray?

I verified my registrations too:
Preview Handler information:
GUID        : {45769bcc-e8fd-42d0-947e-02beef77a1f5}
Description : Microsoft.PowerToys.PreviewHandler.Markdown.MarkdownPreviewHandler
Module name : C:\Program Files\PowerToys\modules\FileExplorerPreview\MarkdownPreviewHandler.comhost.dll
Localserver :
Note: Preview Handler is registered on the file extension (.md)

Preview Handler information:
GUID        : {ddee2b8a-6807-48a6-bb20-2338174ff779}
Description : Microsoft.PowerToys.PreviewHandler.Svg.SvgPreviewHandler
Module name : C:\Program Files\PowerToys\modules\FileExplorerPreview\SvgPreviewHandler.comhost.dll
Localserver :
Note: Preview Handler is registered on the file extension (.svg)

PowerToysReport_2021-08-06-07-41-09.zip

Regarding the plugins keeping re-registering themselves on restart, that is a known bug that has been fixed once the next release is out : https://github.com/microsoft/PowerToys/issues/10524
I was unable to find anything useful in the logs that could explain what has happening, except that in registry-report-info we were unable to read some keys, but that could have been because the bug report was taken after disabling the handlers:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\PreviewHandlers
ERROR 2

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\PreviewHandlers
ERROR 2

Do you get any errors in the Event Viewer when the plugins fail?

Heres another bug report with previewers enabled generated after triggering errors in Event Viewer. This is the .md error output but the svg errors were nearly identical, the problem signature block was exactly identical.

Level	Date and Time	Source	Event ID	Task Category
Information	8/6/2021 11:09:46 AM	Windows Error Reporting	1001	None	"Fault bucket<PHONE_NUMBER>366561774, type 4
Event Name: APPCRASH
Response: Not available
Cab Id: 0
Problem signature:
P1: prevhost.exe
P2: 10.0.19041.746
P3: 22a33164
P4: NahimicOSD.dll
P5: <IP_ADDRESS>9
P6: 606c199b
P7: c000041d
P8:<PHONE_NUMBER>0157e0
P9:
P10:
Attached files:
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER5659.tmp.dmp
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER5745.tmp.WERInternalMetadata.xml
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER5755.tmp.xml
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER5755.tmp.csv
\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER5776.tmp.txt
These files may be available here:
\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_prevhost.exe_237c2733f3fe8940537d61813137973bf5c3645_ba7fa699_14abe04e-0641-40c5-8ba3-3a588d082b8e
Analysis symbol:
Rechecking for solution: 0
Report Id: 45d8990f-ed11-469e-93ad-0c7cfa19c5c7
Report Status: 268435456
Hashed bucket: 1f743727d19bf2814f5dc0394e24d1ee
Cab Guid: 0"
Error	8/6/2021 11:09:44 AM	Application Error	1000	(100)	"Faulting application name: prevhost.exe, version: 10.0.19041.746, time stamp: 0x22a33164
Faulting module name: NahimicOSD.dll, version: <IP_ADDRESS>9, time stamp: 0x606c199b
Exception code: 0xc000041d
Fault offset: 0x00000000000157e0
Faulting process id: 0x4f1c
Faulting application start time: 0x01d78ad514decc68
Faulting application path: C:\Windows\system32\prevhost.exe
Faulting module path: C:\ProgramData\A-Volute\DellInc.AlienwareSoundCenter\Modules\ScheduledModules\x64\NahimicOSD.dll
Report Id: 45d8990f-ed11-469e-93ad-0c7cfa19c5c7
Faulting package full name:
Faulting package-relative application ID: "

PowerToysReport_2021-08-06-11-14-05.zip

Is that implying that the Alienware CC is at fault here?

So stopping and disabling the Nahmic Service (part of realtek audio drivers) fixed the svg preview, but checking registrations with PreviewConfig showed that .md wasn't being registered anymore. I uninstalled, rebooted, and reinstalled powertoys with Nahmic disabled and both svg and md are now working. A bit of googling shows that Nahmic seems to be quite problematic with a wide array of different programs.

Ah I see, thank you for the context on Nahimic. We'll log this information and close this issue as an external dependency. If it arises again under a different context, feel free to reopen this issue and we'll continue investigating.


Crystal 0.27.0 breaking Time methods

I've been getting errors like undefined method 'epoch_ms' for Time while attempting to use this shard. I have kemal-session at v0.10.0, as it throws an error when I try updating to v0.11.0.
Error resolving kemal-session (0.11.0, 0.10.0)

Fixed by adding commit: a16f164d3dcfc6e720d566f9085285abdd5b7825 to my dependency.


identify all statements that can be EXPLAINed

Closes #1963.

This change is

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/59c13d5db490955801a5a03536badb1eacecd838/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/51cf1aade029f7c02acf91e11beb30b708191a0f/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/c9fe1835a9aec22365418db8b48bbe64623a7648/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/701c77b173d831b5f79f2f3444aec6be058fed09/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/f631d5df0657fbfdedf70a32f96abcaf6e3a7ed1/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/025ea30c201214398a569fc6e829f48a083b3e92/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/025ea30c201214398a569fc6e829f48a083b3e92/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/fd9684a76b69da3f2ae08456b821dc61496d51db/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/f4ef58ebe3c04f4143b1167a9cb4e290247d80a5/

LGTM, @lhirata!


Unreal: launching on Linux

This is fixing issues of launching Unreal on Linux.
🔙 Backport to 2.x - #1673

Depends on #1674

This already includes #1679

Can we add Unreal icon fix in this PR too?

NOTE:
We could maybe move the project preparation from prelaunch hook move to Python script which is executed as different process. So it's separated from tray and we may be able to display that "something is happening" with progress bar?

Tried only on Windows (it's not only linux changing) and it works. I have to trust that it works on linux as that needs to be compiled which I'm not capable of. It works from 4.26 on. We should mention that in docs if it's not there.

We should even stop from trying to run it with older versions.

Can we add Unreal icon fix in this PR too?

Damn, I thought it is already in.

We could maybe move the project preparation from prelaunch hook move to Python script which is executed as different process. So it's separated from tray and we may be able to display that "something is happening" with progress bar?

Possibly, but where would you display such progress bar?

Possibly, but where would you display such progress bar?

It is just an idea for future feature. Because if you'll run python script you can use Qt in it (like we do in nonpython hosts). But that may also cause other issues.


where the top data directory?

did you missing top "data" directory?
and after executing 'python ../src/data/make_dataset.py', it just only print "2018-09-04 13:35:22,438 - main - INFO - making final data set from raw data" and no data generating...

The top data directory is meant to be created on your local machine. To summarize, when I create a new github project repo I use the following resource: driven data cookiecutter templates. This template produces "empty" files in some of the directories to guide the developer's use of the template.
If you want the dataset used in the project go to my blog and in the Links section it has the download link for the data in parquet format.

The top data directory is meant to be created on your local machine. To summarize, when I create a new github project repo I use the following resource: driven data cookiecutter templates. This template produces "empty" files in some of the directories to guide the developer's use of the template.
If you want the dataset used in the project go to my blog and in the Links section it has the download link for the data in parquet format.

Hi, would you please share the download link again?  The kibot link and your provided link seem to have expired.  Thanks a lot!


WIP - Add diff tool

Usage
(virtualenv)/m/s/s/st2 git:add_diff_tool ❯❯❯ tools/diff-db-disk.py --actions --pack-dir=/opt/stackstorm/packs/cicd-docker  ✭ ✱
(virtualenv)/m/s/s/st2 git:add_diff_tool ❯❯❯ tools/diff-db-disk.py --actions --pack-dir=/opt/stackstorm/packs/cicd-docker --verbose
******************************************************************************
Checking if artifact cicd-docker.git_checkout_branch is present in both disk and db.
Artifact cicd-docker.git_checkout_branch exists in both disk and db.
Performing content diff for artifact cicd-docker.git_checkout_branch.
******************************************************************************
Checking if artifact cicd-docker.build_image is present in both disk and db.
Artifact cicd-docker.build_image exists in both disk and db.
Performing content diff for artifact cicd-docker.build_image.
******************************************************************************
Checking if artifact cicd-docker.git_simple_clone is present in both disk and db.
Artifact cicd-docker.git_simple_clone exists in both disk and db.
Performing content diff for artifact cicd-docker.git_simple_clone.
******************************************************************************
Checking if artifact cicd-docker.docker_image_build_and_push is present in both disk and db.
Artifact cicd-docker.docker_image_build_and_push exists in both disk and db.
Performing content diff for artifact cicd-docker.docker_image_build_and_push.
******************************************************************************
Checking if artifact cicd-docker.push_image is present in both disk and db.
Artifact cicd-docker.push_image exists in both disk and db.
Performing content diff for artifact cicd-docker.push_image.
******************************************************************************
Checking if artifact cicd-docker.pull_image is present in both disk and db.
Artifact cicd-docker.pull_image exists in both disk and db.
Performing content diff for artifact cicd-docker.pull_image.
(virtualenv)/m/s/s/st2 git:add_diff_tool ❯❯❯ tools/diff-db-disk.py --actions                                               ✭ ✱
#############################################################################
ACTIONS examples.echochain in db differs from what is in disk.
*** DB contents

--- Disk contents

***************

*** 3,17 ****

      "enabled": true,
      "entry_point": "chains/echochain.yaml",
      "name": "echochain",
-     "notify": {
-         "on_complete": {
-             "channels": [
-                 "slack"
-             ],
-             "data": {},
-             "message": "\"@channel: Action succeeded.\""
-         }
-     },
      "pack": "examples",
      "parameters": {},
      "ref": "examples.echochain",
--- 3,8 ----

(virtualenv)/m/s/s/st2 git:add_diff_tool ❯❯❯

LGTM.


Fix CRD yaml file for right explan information

Pull Request Test Coverage Report for Build 185125274

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 70.997%

Totals

Change from base Build 177788642:
0.0%

Covered Lines:
1082

Relevant Lines:
1524

💛  - Coveralls


Blazor ROPC

Fixes #33744
Fixes #33784
I needed a special INCLUDE for Blazor to distinguish between client-side/SPA and server-side Blazor projects. I also prefer to use the word "project" in the BWA/server-side context over "app" because BWA/hosted WASM is a solution of two or more projects that have different security requirements.

Internal previews
Toggle expand/collapse

📄 File
🔗 Preview link

aspnetcore/blazor/blazor-ef-core.md
ASP.NET Core Blazor with Entity Framework Core (EF Core)

aspnetcore/blazor/components/data-binding.md
ASP.NET Core Blazor data binding

aspnetcore/blazor/security/blazor-web-app-with-oidc.md
Secure an ASP.NET Core Blazor Web App with OpenID Connect (OIDC)

aspnetcore/blazor/security/index.md
aspnetcore/blazor/security/index

aspnetcore/blazor/security/server/account-confirmation-and-password-recovery.md
Account confirmation and password recovery in ASP.NET Core Blazor

aspnetcore/blazor/security/server/index.md
[Visual Studio](https://review.learn.microsoft.com/en-us/aspnet/core/blazor/security/server/index?branch=pr-en-us-33749)

aspnetcore/blazor/security/webassembly/index.md
Secure ASP.NET Core Blazor WebAssembly

aspnetcore/blazor/security/webassembly/standalone-with-identity.md
Secure ASP.NET Core Blazor WebAssembly with ASP.NET Core Identity

aspnetcore/blazor/tutorials/movie-database-app/part-1.md
Build a Blazor movie database app (Part 1 - Create a Blazor Web App)

aspnetcore/blazor/tutorials/movie-database-app/part-2.md
aspnetcore/blazor/tutorials/movie-database-app/part-2

aspnetcore/blazor/tutorials/movie-database-app/part-4.md
Build a Blazor movie database app (Part 4 - Work with a database)

I think we'll go ahead and merge this tomorrow (Monday) EOD. I think the only significant question is on if env vars offer enough protection for test/staging. Right now, the updates on this PR advise not to use them except in local dev testing, along with the Secret Manager tool.

BTW ... As soon as this goes in, I'll be updating the sample app and article with guidance to use the Secret Manager tool for the client secret. Tracked by :point_right: https://github.com/dotnet/AspNetCore.Docs/issues/33804.

@Rick-Anderson ... Try it now. I made the "recommendation" a bit strong by not even using the word "recommend." However, the recommendation is to avoid env vars outside of local development testing, so it might be ok to imperatively write "avoid" in the sentence.
You can probably look at the last commit to see the updates.


Fix Incorrectly generated sql with NONE aggregate type

What problem does this PR solve?
alter table tbl enable feature "UPDATE_FLEXIBLE_COLUMNS";

[2024-12-16 11:11:51.576]  WARN job sync failed, job: test, err: [normal] Error 1105 (HY000): errCode = 2, detailMessage =
mismatched input 'NONE' expecting {<EOF>, ';'}(line 1, pos 62)

exec sql ALTER TABLE `t` ADD COLUMN `__DORIS_SKIP_BITMAP_COL__` bitmap NONE NOT NULL DEFAULT BITMAP_EMPTY COMMENT "doris skip bitmap hidden column" AFTER `__DORIS_VERSION_COL__` failed
github.com/selectdb/ccr_syncer/pkg/ccr/base.(*Spec).DbExec
	/mnt/disk2/wangyixuan/ccr-syncer/pkg/ccr/base/spec.go:1166
github.com/selectdb/ccr_syncer/pkg/ccr/base.(*Spec).LightningSchemaChange
	/mnt/disk2/wangyixuan/ccr-syncer/pkg/ccr/base/spec.go:1242
github.com/selectdb/ccr_syncer/pkg/ccr.(*Job).handleLightningSchemaChange
	/mnt/disk2/wangyixuan/ccr-syncer/pkg/ccr/job.go:2107
github.com/selectdb/ccr_syncer/pkg/ccr.(*Job).handleBinlog
	/mnt/disk2/wangyixuan/ccr-syncer/pkg/ccr/job.go:2789
github.com/selectdb/ccr_syncer/pkg/ccr.(*Job).handleBinlogs
	/mnt/disk2/wangyixuan/ccr-syncer/pkg/ccr/job.go:2726
github.com/selectdb/ccr_syncer/pkg/ccr.(*Job).incrementalSync
	/mnt/disk2/wangyixuan/ccr-syncer/pkg/ccr/job.go:2905
github.com/selectdb/ccr_syncer/pkg/ccr.(*Job).dbSync
	/mnt/disk2/wangyixuan/ccr-syncer/pkg/ccr/job.go:2966
github.com/selectdb/ccr_syncer/pkg/ccr.(*Job).sync
	/mnt/disk2/wangyixuan/ccr-syncer/pkg/ccr/job.go:2983
github.com/selectdb/ccr_syncer/pkg/ccr.(*Job).run
	/mnt/disk2/wangyixuan/ccr-syncer/pkg/ccr/job.go:3041
github.com/selectdb/ccr_syncer/pkg/ccr.(*Job).Run
	/mnt/disk2/wangyixuan/ccr-syncer/pkg/ccr/job.go:3162
github.com/selectdb/ccr_syncer/pkg/ccr.(*JobManager).runJob.func1
	/mnt/disk2/wangyixuan/ccr-syncer/pkg/ccr/job_manager.go:166
runtime.goexit
	/mnt/disk2/wangyixuan/go_1_23/go/src/runtime/asm_amd64.s:1700 job=test line=ccr/job.go:3046

Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)

Test

[ ] Regression test
[ ] Unit Test
[ ] Manual test (add detailed scripts or steps below)
[ ] No need to test or manual test. Explain why:

[ ] This is a refactor/code format and no logic has been changed.
[ ] Previous test can cover this change.
[ ] No code files have been changed.
[ ] Other reason

Behavior changed:

[ ] No.
[ ] Yes.

Does this need documentation?

[ ] No.
[ ] Yes.

Check List (For Reviewer who merge this PR)

[ ] Confirm the release note
[ ] Confirm test cases
[ ] Confirm document
[ ] Add branch pick label

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.
Please clearly describe your PR:

What problem was fixed (it's best to include specific error reporting information). How it was fixed.
Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
What features were added. Why was this function added?
Which code was refactored and why was this part of the code refactored?
Which functions were optimized and what is the difference before and after the optimization?

run buildall

run buildall


Extract highlight decorations to a separate file

@Tyriar The build failed, would love another review. Many thanks! ❤


CacheInMemory = true , retrieve as file ?

Hey,
I would like to know if it's possible to retrieve as a file the cache and save it as krbcache somewhere (i want to do it manually and not use CacheInMemory)
Thanks!

I don't understand what you're trying to do. Why would you want to mix these two scenarios?

I don't understand what you're trying to do. Why would you want to mix these two scenarios?

I'm trying to send a krbcache file to another application via HTTPS protocol, So I'm trying to avoid using to store it in my own app using the cacheInMemory.

Sure, you can just configure the cache property to use the file cache directly.

Sure, you can just configure the cache property to use the file cache directly.

Thank you! :)


1-2 BACKPORT: Update example kube file to use rust smallbank tp

Signed-off-by: Ryan Beck-Buysse<EMAIL_ADDRESS>

Master PR: https://github.com/hyperledger/sawtooth-core/pull/2214


Ensure ECC GeneratePercentilesFromProbabilities plugin follows CF conventions

Updated 20/09/2017
As an IMPROVER developer I want the GeneratePercentilesFromProbabilities plugin to follow the same temporary CF conventions as other parts of the code so it can be used in conjunction with other plugins.
The code should already work with the temporary conventions for percentile data. This ticket should update GeneratePercentilesFromProbabilities to work with the conventions for probabilistic data.
Related issues: #49 , #30
Acceptance criteria:

Implement agreed temporary CF conventions for probabilistic data to plugin.
Test with probability cubes from the suite (with a threshold dimension and the correct temporary metatdata).
Update unit tests and any affected ECC CLI tests.

Completed.


[MM-18168] Support better changelog display for multiselect options

Summary
Currently, when a multiselect field's value changes, we use the fromString and toString that Jira gives us in the changelog. Unfortunately, Jira does not provide much info in the changelog for multiselect fields.
There are two improvements to be made here:

For label fields, include the toString to the output to show the user the current state of the field. This will work on Jira Cloud and Jira Server.

For every other kind of multiselect, look through the issue payload and find the field's current value. This will only work with Jira Cloud.

Ticket Link
https://mattermost.atlassian.net/browse/MM-18168
Additional Info
Consider this situation: The issue currently has version 1 set to the fix version. Adding version 2 will have this in the changelog:
"changelog": {
    "id": "12630",
    "items": [
        {
            "field": "Fix Version",
            "fieldtype": "jira",
            "fieldId": "fixVersions",
            "from": null,
            "fromString": null,
            "to": "10000",
            "toString": "version 2"
        }
    ]
}

version 1 is not present, so we need to parse the rest of the issue payload in order to find the current value of the field. This is only possible with Jira Cloud, since Jira Server does not provide a fieldId here, and the field values are expressed with the fieldId in the other portion of the issue payload. We could fetch the issue from Jira's API for Jira Server, but we should not hit Jira's API for every webhook call. Curious what you think about this @levb and @cpoile

It should say something like: ... added fix version "version 2" to the issue. The fix version value is now: [version 1, version2]

Closing issues due to inactivity. This issue can be re-opened with more interest from our community.


readme to reference secretOrKey

Description
The readme needs to reference the required environment variable secretOrKey so I added it.
Test Plan

view the readme, ensure its update to reference the variable

Good catch. I'd rather add it under the first section of postgres setup and rename that to environment setup or something. So that all the env variables can be set together.

@perfectlynormalbeast Great! I've addressed your comment.


Deep defaults

We're currently in the process of migrating from mongoose to papr. Here's a question that I have:
Say I have schema for users collection:
const userSchema = schema(
  {
    numPosts: types.number(),

    emailPreferences: types.object({
      monthly: types.boolean(),
      newsletter: types.boolean(),
      followers: types.boolean(),
    }),

    appreciations: types.array(types.object({
      badge: types.objectId(),
      count: types.number(),
    })),
  },
  {
    defaults: {
      numPosts: 0,

      emailPreferences: {
        monthly: true,
        newsletter: true,
        followers: true,
      },

     appreciations: [
        {
          count: 0
        }
      ],
    }
  }
)

As you can see, I have 3 root fields in this schema: numPosts, emailPreferences, and appreciations. I use papr's default functionality for all 3.
For numPosts, it's straight forward.
As for emailPreferences, what happens when I try to insert an object that only has one field defined ? will papr merge that with the defaults of the 2 remaining fields ?
EDIT: The answer is no. It will not be merged w/ the other defaults. When I tried the following insert:
UserModel.insertOne({
        name: "dsafnaisdhfujabsf1",
        email<EMAIL_ADDRESS>        username: "dsafnaisdhfujabsf1",
        emailPreferences: {
          newsletter: false,
        },
      });

The resulting document only included newsletter: false:
...
emailPreferences: { newsletter: false },

This is not ideal. The expected behaviour here is that it should merge the one field I defined with other undefined fields from the defaults object.
And as for appreciations, how do I represent defaults for an array of objects ? is this the correct way ?
What would happen if I try to insert this document without appreciations field ? will it insert just the count field ?
EDIT: the answer is yes. Papr is going to insert an array that contains: appreciations: [{ count: 0 }] by default.
The expected behaviour here is that these defaults are only used when I try to insert an array. How do I achieve this ?
Does Papr allow me to use nested schemas ?
EDIT: the answer is no. Papr models will work, but they will not make use of the nested schema.
Overall, I think the current API for defaults in papr is really limited and confusing. I believe defaults shouldn't be in a separate object. They should be included in the type definitions themselves. Which is the case in mongoose and ts-mongoose:
newsletter: Type.boolean({ default: false })

Is such a change possible/planned ? And if not, how can I achieve the same capabilities for defining defaults using Papr ?
Thanks a lot for your amazing package.

@avaly please take a look at this. Thanks a lot.

So I started today by testing things out. I edited the main issue body to reflect my findings.

Thank you so much for this issue and for the detailed notes and testing @BahaaZidan!!
You're absolutely right that defaults are quite limited currently. When we built papr we consciously wanted to keep the API as simple as possible, avoiding much of the complexity that makes a library like mongoose so unwieldy. For example, we likely won't want to support dynamic defaults because of the complexity they would introduce.
That said, you bring up some quite valid limitations of defaults as currently spec'd. All of your examples are absolutely valid use-cases we might consider supporting, though I wouldn't go so far as to give an estimate as to when we would have a chance to look at them. But we are always open to PRs!

Overall, I think the current API for defaults in papr is really limited and confusing.

I don't disagree with you on this one, and an API that more closely matches mongoose was considered when we initially designed the library. At the time it was decided that it would introduce too much overhead to the design, but we haven't revisited it since, and with the evolution of Typescript in the intervening time, it may be more feasible.

@ejmartin504  Thanks for the response.
If I'm to implement this, would you allow such a API change ? or will I have to implement in a way that's compatible with both APIs ?

@BahaaZidan  there are two issues here:

the defaults not working as expected for nested objects
the API design

Are you suggesting working on the API design itself? I think we might be open to such a change, depending on the complexity, but I would recommend submitting PRs for the actual issues with deep defaults you're running into first.

@ejmartin504  I might be wrong here. But I think the deep default limitation is a result from the API design. As it is right now, I'm finding it really hard to implement it without limiting one use case in favor of the other. An example:
Let's say I have this schema:
const userSchema = schema(
  {
    appreciations: types.array(types.object({
      badge: types.objectId(),
      count: types.number(),
    })),
  },
  {
    defaults: {
     appreciations: [
        {
          count: 0
        }
      ],
    }
  }
)

There are a couple different use cases that I can think of right now:

I want the default value of appreciations to be an empty array. But at the same time I want that whenever someone tries to insert an object, the default value of count should be taken into account.
I want the default value of appreciations to be an array that contains one object with the value of count. [What Papr currently supports]

How can we support both use cases with the current API ? Because I believe both of them are valid.

@BahaaZidan that is a good point. I guess I was thinking your example of emailPreferences might be a more reasonable place to start given the current API. The appreciations situation with the array is quite a bit more difficult to conceptualize with the current API design, I agree.
So if you want to propose and implement an alternative API that accounts for this use-case, we will certainly consider it!

@ejmartin504 From an API standpoint, I think the defaults API of ts-mongoose (may she rest in piece) is a good place to be at.
const userSchema = schema(
  {
    appreciations: types.array(types.object({
      badge: types.objectId(),
      count: types.number({ default: 0 }),
    }), { default: [] }),
  }
)

What do you think about this ?

I'm OOO now, but I saw this thread and wanted to comment.
Regarding your last comment about the API resembling the ts-mongoose one, I remember that was an initial implementation of our first version of paper, before we open sourced it. But we had to move away from that API, because we need the defaults type as a genetic type as well at the top level of a Model in order to use it in certain methods like insertOne, etc.
If you can make this API change, and keep all the existing functionality in the tests, we're more than happy to consider such a change.

With #527 and #678 I think the defaults logic is pretty advanced at this point.


React.Component translated

Finally!!!
This page was so long and Hard! :D
with many important aspects of translation because some sentences weren't understandable in Persian, So I've changed some of them regard to their content and purpose.
Thanks again!
P.S: I've updated my keyboard layout so Half-Space and other Persian characters shouldn't be a problem from now on!

Great job @hosseinAMD!
Please give me some time to review it :sweat_smile:

Great job @hosseinAMD!
Please give me some time to review it 😅

@sorousht
Hi soroush
First, Thank you for your efforts
Second, I wonder to know if any advance happened in reviewing this page?

Hi @hosseinAMD
Thank you for collaborating as well!
I try to find some free time during the week to start reviewing this PR, but usually, I spend some time on weekends.
Would you like to start a new page in the meanwhile?

Hi @hosseinAMD
Thank you for collaborating as well!
I try to find some free time during the week to start reviewing this PR, but usually, I spend some time on weekends.
Would you like to start a new page in the meanwhile?

Sure i can do it...
I will post a comment on Issue 1!

@sorousht
I don't know it's correct or not but github merged my new translation pull request with this!
Anyway, here is my new translation file!

have you used a single branch for both PRs?

have you used a single branch for both PRs?

@sorousht
No. I've used 2 different branches

The PR shows that you pushed your commits into branch master of your clone. You need two branches in which you have the changes only one page. If you need help for that, let me know :)

The PR shows that you pushed your commits into branch master of your clone. You need two branches in which you have the changes only one page. If you need help for that, let me know :)

I've merged them in my local repo after pushing by ingle branches!
Let me take a look

The PR shows that you pushed your commits into branch master of your clone. You need two branches in which you have the changes only one page. If you need help for that, let me know :)

I've merged them in my local repo after pushing by ingle branches!
Let me take a look

Created a different pull request for test utils... do you need a new one for here too?

Now you have 2 PRs, both having the same changes. In this one, the changes of content/docs/addons-test-utils.md should be reverted. For #156, the changes of content/docs/reference-react-component.md should be reverted. In result, you will have 2 PRs each containing only changes of one file.


Code analysis: There must be exactly one space character on each side of [and/or] - ID: AA0001

I am not sure why this syntax passes the "one space" rule:
        if (myInt > 0) or
            (myInt < 0) and
            (myInt = 0)
        then begin
            //do some stuff
        end;

and this does not:
        if (myInt > 0)
            or (myInt < 0)
            and (myInt = 0)
        then begin
            //do some stuff
        end;

in the first case OR and AND are preceded by a space followed by CR/LF and not a space so it should violate the rule.  In the second case the OR and AND are most certainly surrounded by a space.  If the first is valid would not the second also be valid per the description of the violation?
I prefer the second syntax as it is much easier to read if the conditions get long/complicated.

In what build was this fixed?  Just pulled down the latest bcsandbox (GB). Installed new VSIX, Still getting this reported as a problem.  Is there a new/update DLL that needs to be installed?


router shows offline

Hi After updating to 2.18 router shows offline status and its pernamently syncing last 12 hrs,ports are open please help me

The miner is working in light mode now. so it will not need to open any ports.
If you still have problems with your miners, please summit the SN and more information in https://panther.global/. the tech support team will fix it for you. thanks


ViolenceLevelOverride: allows overriding level of violence in the game

Some builds like JP/GER have low-violence-only EXEs, this should allow those to have full violence enabled instead, similarly full-violence EXEs should now be able to act like low-violence ones too.
More details in #153
Tested across 1.0.6/1.0.6jpn/1.0.6dbg/1.1.0, seems to be updating the pSys->field_9 field fine, haven't been able to test with German release yet though since I don't have the EXE for it atm.
I'm not totally sure if all the violence censorship is removed in JP/GER however since I'm not that familiar with those versions.
If someone with those versions wants to try testing, here's a build of this PR with violence set to full: re4_tweaks-violenceLevelOverride.zip
E: ah, I've been told German copy is now uncensored, so guess we don't need to worry about testing with that - it'd still be interesting to get a look at the old censored release though, if any German owners know how to use DepotDownloader, the depot for that is at https://steamdb.info/depot/254702/ - looks like it should still be accessible to German owners.

Nice work, emoose.

E: ah, I've been told German copy is now uncensored, so guess we don't need to worry about testing with that

Yeah, it happened when ver 1.1.0 was released, AFAIK. New German owners were given that new version instead of the old, censored 1.0.6.
I'll merge this now, since the likelihood of someone reading this having the old censored version is pretty slim.
Thank you!

Ah just realized I forgot to add any kind of logs for this (like the ini settings logging), might want to add that in before any new release, in case this does cause any issue...


The program works, but the balance does not change

The program works, transactions take place, but the balance does not change (0.000000000). Why? I heard that you first need to send money to the wallet account. This is true? Please give instructions on this.

How do you check the balance? Can you provide your address?

How do you check the balance? Can you provide your address?

I check ´the balance on owerview tab:
https://yadi.sk/i/X9HDwrS6Rs7dvw
Adress:
PJfw92FGJji3d4SSZoRoJEmE4MXLk3Z97y (from "Receiving addresses", right?)

@Linkdealer It looks like there are no coins behind this address. Did you transfer the conns to him?

@Linkdealer It looks like there are no coins behind this address. Did you transfer the conns to him?

no, I did not transfer money there. I can't find a description of how it works anywhere. There is no manual. I have to learn everything step by step from my own experience.

@Linkdealer
You can start from here. Also feel free to ask further questions
https://github.com/pocketnetteam/pocketnet.core/tree/0.20/doc/help

@Linkdealer
You can start from here. Also feel free to ask further questions https://github.com/pocketnetteam/pocketnet.core/tree/0.20/doc/help

Thanks! I will study.


Use iron-lazy-pages instead of iron-pages

Lazy-loading results in a lower first load time, since not all pages have to be loaded (only those you open). The benefit will be increasing over time when more pages are added.

It seems to work as intended, code looks good.


The DefaultNumberOfRows How can I use?

Hi~,
I want to set a startRow, and then get 5 row start with  startRow ,when i set 5 to DefaultNumberOfRows ,it is not living.How can i do?

What is it returning instead?

DefaultNumberOfRows is a constant, so you can't really set it.


Adding Wordpress shortcode regex.

I find myself needing to use this a lot doing Wordpress dev. Great project!

Thanks


Failure activating local auth

Great work on getting more authentication options for Rancher!
I have problems activating local auth. When pressing the "Enable Local Auth" button, it fails with a call to token and a 401 Unauthorized error (inspected with Chrome DevTools). Also, after the error, I'm logged in as the user I specified in the local auth settings, and Rancher still prompts me to set up access control.
Rancher version: 0.37
Rancher host OS: CoreOS stable (766.3.0)
Browser: Chrome 46.0.2490.22 beta-m (64-bit) on Windows. No extensions enabled, other browsers produce the same result.
I can reproduce the problem; a clean copy of Rancher and going straight to setting up local auth produces the same results.

I've been unable to reproduce and have no issues turning it on.
Just to confirm, you're able to produce on a fresh install (no upgrades or links to existing DB)?
Can you provide how you start rancher server?
Can you also provide the rancher server logs? http://docs.rancher.com/rancher/faqs/troubleshooting/ will provide you how to get the detailedd logs.

Any chance you have an external DB? We have a forums issue that seems similar to yours and we are thinking this might be a race condition.
http://forums.rancher.com/t/will-not-authorize-local-access-control/472/2

Yes, able to reproduce with a fresh install and no external DB enabled. The only thing that I do differently is give the rancher server container a distinct name, like rancher-server-0.37.

Logs:
2015-09-16 06:37:08,600 DEBUG [:] [] [] [] [tp1503027776-16] [i.c.p.e.memory.InMemoryEventService ] Subscribing to [resource.change;account=5]
2015-09-16 06:37:41,110 DEBUG [:] [] [] [] [tp1503027776-16] [c.p.e.p.i.DefaultProcessInstanceImpl] Attempting to run process [credential.create:147] on resource [11]
2015-09-16 06:37:41,111 INFO  [7434eb41-f2f7-4c2b-90b9-63809a66846c:147] [credential:11] [credential.create] [] [tp1503027776-16] [c.p.e.p.i.DefaultProcessInstanceImpl] Changing state [requested->registering] on [credential:11]
2015-09-16 06:37:41,112 DEBUG [7434eb41-f2f7-4c2b-90b9-63809a66846c:147] [credential:11] [credential.create] [] [tp1503027776-16] [c.p.e.p.i.DefaultProcessInstanceImpl] Exiting with code [SCHEDULED] : SCHEDULED
2015-09-16 06:37:41,113 DEBUG [:] [] [] [] [tp1503027776-16] [c.p.e.p.i.DefaultProcessInstanceImpl] Exiting [SCHEDULED] process [credential.create:147] on resource [11]
2015-09-16 06:37:41,132 DEBUG [:] [] [] [] [cutorService-18] [c.p.e.p.i.DefaultProcessInstanceImpl] Attempting to run process [credential.create:147] on resource [11]
2015-09-16 06:37:41,191 DEBUG [a7dfa249-d01c-4c62-aecb-44533d83b70c:147] [credential:11] [credential.create->(AgentApiKeyCreate)] [] [cutorService-18] [c.p.e.p.i.DefaultProcessInstanceImpl] Running pre listener [AgentApiKeyCreate]
2015-09-16 06:37:41,191 DEBUG [a7dfa249-d01c-4c62-aecb-44533d83b70c:147] [credential:11] [credential.create->(AgentApiKeyCreate)] [] [cutorService-18] [c.p.e.p.i.DefaultProcessInstanceImpl] Finished pre listener [AgentApiKeyCreate]
2015-09-16 06:37:41,192 DEBUG [a7dfa249-d01c-4c62-aecb-44533d83b70c:147] [credential:11] [credential.create->(ApiKeyCreate)] [] [cutorService-18] [c.p.e.p.i.DefaultProcessInstanceImpl] Running pre listener [ApiKeyCreate]
2015-09-16 06:37:41,192 DEBUG [a7dfa249-d01c-4c62-aecb-44533d83b70c:147] [credential:11] [credential.create->(ApiKeyCreate)] [] [cutorService-18] [c.p.e.p.i.DefaultProcessInstanceImpl] Finished pre listener [ApiKeyCreate]
2015-09-16 06:37:41,192 DEBUG [a7dfa249-d01c-4c62-aecb-44533d83b70c:147] [credential:11] [credential.create->(RegisterTokenCreate)] [] [cutorService-18] [c.p.e.p.i.DefaultProcessInstanceImpl] Running pre listener [RegisterTokenCreate]
2015-09-16 06:37:41,192 DEBUG [a7dfa249-d01c-4c62-aecb-44533d83b70c:147] [credential:11] [credential.create->(RegisterTokenCreate)] [] [cutorService-18] [c.p.e.p.i.DefaultProcessInstanceImpl] Finished pre listener [RegisterTokenCreate]
2015-09-16 06:37:41,192 DEBUG [a7dfa249-d01c-4c62-aecb-44533d83b70c:147] [credential:11] [credential.create->(SshKeyCreate)] [] [cutorService-18] [c.p.e.p.i.DefaultProcessInstanceImpl] Running pre listener [SshKeyCreate]
2015-09-16 06:37:41,192 DEBUG [a7dfa249-d01c-4c62-aecb-44533d83b70c:147] [credential:11] [credential.create->(SshKeyCreate)] [] [cutorService-18] [c.p.e.p.i.DefaultProcessInstanceImpl] Finished pre listener [SshKeyCreate]
2015-09-16 06:37:41,194 DEBUG [a7dfa249-d01c-4c62-aecb-44533d83b70c:147] [credential:11] [credential.create->(ActivateByDefault)] [] [cutorService-18] [c.p.e.p.i.DefaultProcessInstanceImpl] Running post listener [ActivateByDefault]
2015-09-16 06:37:41,194 DEBUG [a7dfa249-d01c-4c62-aecb-44533d83b70c:147] [credential:11] [credential.create->(ActivateByDefault)] [] [cutorService-18] [c.p.e.p.i.DefaultProcessInstanceImpl] Finished post listener [ActivateByDefault]
2015-09-16 06:37:41,200 INFO  [9308c91f-2d9d-4b31-b21b-f85955d8521b:147] [credential:11] [credential.activate] [] [cutorService-18] [c.p.e.p.i.DefaultProcessInstanceImpl] Changing state [registering->activating] on [credential:11]
2015-09-16 06:37:41,206 INFO  [9308c91f-2d9d-4b31-b21b-f85955d8521b:147] [credential:11] [credential.activate] [] [cutorService-18] [c.p.e.p.i.DefaultProcessInstanceImpl] Changing state [activating->active] on [credential:11]
2015-09-16 06:37:41,215 DEBUG [:] [] [] [] [cutorService-18] [c.p.e.p.i.DefaultProcessInstanceImpl] Exiting [DONE] process [credential.activate:147] on resource [11]

@markbastiaans I have finally been able to reproduce. Please see https://github.com/rancher/rancher/issues/2051
Basically, if you are using an account that already has an existing entry in our account table (we create some default users (admin, system, superadmin)) and had no hosts, local auth fails to do some linking in our backend DB, but if you click on the button again (with no changes to the user info), it should authenticate you and turn it on.

Let me know if it's the same bug and I can close this one. Thanks for reporting!

If the workarounds don't work for you, can you provide the information from the DB?
Can you provide some information from the database?

Exec into the rancher server database. On the host run docker exec -it <server_container_id> bash
Switch to mysql. mysql
Switch to cattle DB. use cattle;
Provide the following table information.
select * from account;
select * from credential;
select * from setting;

I had the same problem. I hacked around it by manually changing the setting db values:
mysql> select * from setting;
+----+------------------------------+-------------------------------+
| id | name                         | value                         |
+----+------------------------------+-------------------------------+
|  1 | api.auth.provider.configured | localAuthConfig               |
|  2 | api.security.enabled         | true                          |
|  3 | api.auth.local.access.mode   | restricted                    |

Then I had to go to /static/login and login again.
then it works.

@deniseschannon it might be the same bug, but I can't seem to get authorization setup even after I click "Enable Local Auth" for the second time.
Database dumps from my latest try (with some hosts added after the fact, hashes / hostname removed):
mysql> select * from account;
+----+-----------------------+------------+-----------------------+-------------+----------+---------------------+---------+-------------+-----------------------------------+-------------+------------------+
| id | name                  | kind       | uuid                  | description | state    | created             | removed | remove_time | data                              | external_id | external_id_type |
+----+-----------------------+------------+-----------------------+-------------+----------+---------------------+---------+-------------+-----------------------------------+-------------+------------------+
|  1 |                       | admin      | admin                 | NULL        | active   | NULL                | NULL    | NULL        | {"fields":{"hasLoggedIn":true}}   | NULL        | NULL             |
|  2 | system                | system     | system                | NULL        | inactive | NULL                | NULL    | NULL        | NULL                              | NULL        | NULL             |
|  3 | superadmin            | superadmin | superadmin            | NULL        | inactive | NULL                | NULL    | NULL        | NULL                              | NULL        | NULL             |
|  4 | token                 | token      | token                 | NULL        | active   | 2015-09-15 06:54:18 | NULL    | NULL        | {}                                | NULL        | NULL             |
|  5 | Default               | project    | adminProject          | NULL        | active   | 2015-09-15 06:54:18 | NULL    | NULL        | {"fields":{"defaultNetworkId":5}} | NULL        | NULL             |
|  6 | machineServiceAccount | service    | machineServiceAccount | NULL        | active   | 2015-09-15 07:04:24 | NULL    | NULL        | {}                                | NULL        | NULL             |
|  7 | NULL                  | agent      | agentAccount1         | NULL        | active   | 2015-09-15 07:05:40 | NULL    | NULL        | {}                                | NULL        | NULL             |
|  8 | NULL                  | agent      | agentAccount2         | NULL        | active   | 2015-09-15 07:05:47 | NULL    | NULL        | {}                                | NULL        | NULL             |
|  9 | NULL                  | agent      | agentAccount3         | NULL        | active   | 2015-09-15 07:05:54 | NULL    | NULL        | {}                                | NULL        | NULL             |
| 10 | NULL                  | agent      | agentAccount4         | NULL        | active   | 2015-09-15 07:06:49 | NULL    | NULL        | {}                                | NULL        | NULL             |
| 11 | NULL                  | agent      | agentAccount5         | NULL        | active   | 2015-09-15 07:06:49 | NULL    | NULL        | {}                                | NULL        | NULL             |
| 12 | NULL                  | agent      | agentAccount6         | NULL        | active   | 2015-09-15 07:06:49 | NULL    | NULL        | {}                                | NULL        | NULL             |
+----+-----------------------+------------+-----------------------+-------------+----------+---------------------+---------+-------------+-----------------------------------+-------------+------------------+
12 rows in set (0.00 sec)

mysql> select * from credential;
+----+------+------------+-------------------+--------------------------------------+-------------+--------+---------------------+---------+-------------+------+----------------------+----------------------------------------------------------------------------------------------+-------------+
| id | name | account_id | kind              | uuid                                 | description | state  | created             | removed | remove_time | data | public_value         | secret_value                                                                                | registry_id |
+----+------+------------+-------------------+--------------------------------------+-------------+--------+---------------------+---------+-------------+------+----------------------+----------------------------------------------------------------------------------------------+-------------+
|  1 | NULL |          5 | apiKey            | 642f113c-fa53-47b7-bd8e-18182777efb9 | NULL        | active | 2015-09-15 06:59:57 | NULL    | NULL        | {}   | 02C22B91DF6D7A7535B5 | SHA256:<HASH> |        NULL |
|  2 | NULL |          6 | agentApiKey       | aa6b2a70-bcf2-427a-9c95-a65ff2b7e22d | NULL        | active | 2015-09-15 07:04:24 | NULL    | NULL        | {}   | BF4E4793DDD80E31AC3A | ZQNfbbjXhvnpCiDn9zVbJbdTxihSsw1eh6BDghtE                                                     |        NULL |
|  3 | NULL |          5 | registrationToken | 48e922ff-089a-4172-aaab-ab2751458b8a | NULL        | active | 2015-09-15 07:04:25 | NULL    | NULL        | {}   | D74F910C11536CF44DB5 | tiD7bPDskuNwPo1e19omSAwTozpNaG29BD1f1aWg                                                     |        NULL |
|  4 | NULL |          7 | agentApiKey       | e63a538b-8957-40a8-813e-c7cb404c9017 | NULL        | active | 2015-09-15 07:05:40 | NULL    | NULL        | {}   | 5B0ED60B765B5D4E707F | 3uqiwgR2H1nqVYTg6h3oWharoYauWUA17Q4o6Y6z                                                     |        NULL |
|  5 | NULL |          8 | agentApiKey       | 26809f2e-9247-480e-badd-79c729d86d36 | NULL        | active | 2015-09-15 07:05:47 | NULL    | NULL        | {}   | 5EB738BD9222246FD13C | 9UcRNacTMV5RZz3pZ2awJdaeds7KfzmsShGxsg33                                                     |        NULL |
|  6 | NULL |          9 | agentApiKey       | cbb1715a-dd7a-492d-b7cf-20963c642ddf | NULL        | active | 2015-09-15 07:05:54 | NULL    | NULL        | {}   | 4C3E23193F82AED1241E | QVoDmqUNWed2XypzY7oH1mfsBeVAGAXQmUrVX1r4                                                     |        NULL |
|  7 | NULL |         10 | agentApiKey       | b2b9b585-a8dd-4710-898a-5cc2e644d780 | NULL        | active | 2015-09-15 07:06:49 | NULL    | NULL        | {}   | DDEBA2E4307144B0EEFE | CbLvtfEDRAh99KCSpgMGUctdCurf8u6gigsPouV2                                                     |        NULL |
|  8 | NULL |         12 | agentApiKey       | a7084547-5120-4068-a41b-fc7898d3089c | NULL        | active | 2015-09-15 07:06:49 | NULL    | NULL        | {}   | 66D88C1932314FCE1489 | t5EhpHNk5gK3ih2ihH3ouJt4kXRbmbP3HRCkP4s9                                                     |        NULL |
|  9 | NULL |         11 | agentApiKey       | d44d0510-3e30-4217-8255-00dff1bba476 | NULL        | active | 2015-09-15 07:06:49 | NULL    | NULL        | {}   | 7A703D5125CAD2FD325B | uocpKB5Kgveb2zrEr7vWSqMFnxXY44cCyJyx7AtP                                                     |        NULL |
| 10 | NULL |          6 | agentApiKey       | 11aaef17-3596-4183-811d-ab7c845e19a4 | NULL        | active | 2015-09-15 19:04:48 | NULL    | NULL        | {}   | 941EE475897931C1CE58 | ZheaiVhN8N7CYP4SwhwD2fWsYhMU8ovTmXMFX3hD                                                     |        NULL |
| 12 | NULL |          6 | agentApiKey       | 38de3970-78f1-43f6-b122-d56afa09bd3a | NULL        | active | 2015-09-16 07:05:08 | NULL    | NULL        | {}   | 6802AA7E36C999B9899D | ope31Tp1o2iyBE1VuxrdxbuJCXMSwBfyc6CX9aBH                                                     |        NULL |
| 14 | NULL |          6 | agentApiKey       | d3c1f203-a7c8-4d1b-9797-f27d10bbcbdd | NULL        | active | 2015-09-16 19:05:31 | NULL    | NULL        | {}   | 38E82FFA60DD5225A023 | fn6aDJd4aRirqX6uohGvyUwoN3AiSjCGzF2BrTxE                                                     |        NULL |
| 15 | NULL |          6 | agentApiKey       | c9feac9f-7df4-4cef-b540-d4c37b262791 | NULL        | active | 2015-09-17 07:05:47 | NULL    | NULL        | {}   | 0FA70C270A4A5399C753 | EoRMxqz3zjSC6u5bmS7CFW5V2zRtehuBeRM15Exp                                                     |        NULL |
| 21 | NULL |          1 | password          | d3cc4532-a80a-4e33-b71a-2aff45b7aa1c | NULL        | active | 2015-09-17 10:31:23 | NULL    | NULL        | {}   | admin                | SHA256:<HASH> |        NULL |
+----+------+------------+-------------------+--------------------------------------+-------------+--------+---------------------+---------+-------------+------+----------------------+----------------------------------------------------------------------------------------------+-------------+
14 rows in set (0.00 sec)

mysql> select * from setting;
+----+------------------------------+---------------------------------+
| id | name                         | value                           |
+----+------------------------------+---------------------------------+
|  1 | api.auth.provider.configured | localAuthConfig                 |
|  2 | api.host                     | http://<HOSTNAME>:8080 |
|  3 | api.security.enabled         | false                           |
|  4 | api.auth.local.access.mode   | unrestricted                    |
+----+------------------------------+---------------------------------+
4 rows in set (0.00 sec)

@markbastiaans Can you run the following SQL statements to get your localAuth working?
update setting set value="true" where name="api.security.enabled";
update account set external_id=21, external_id_type="rancher_id" where id=1;

Afterwards, you should be able to refresh the UI and login using your admin account.
Note: There is some setting that is not triggering these to be automatically updated that is logged in #2051, but we will track the fixing of it in that issue.

I've fixed it as @slimadvies outlined. Changing the two settings and restarting the Rancher container worked for me.


RFC: remove theming

I'm starting to think we should remove built in theming and just let users use the theming library themselves. Having theming built in adds overhead and code complexity to styled that I don't think is necessary. I prefer to just import my theme file but I may be an outlier.
Some notes.
If we remove theming...

Styled because a pure function component and we can create an eagar factory with createEagerFactory to call it 🔥
Bundle size will drop
Performance will be better
Users that want theming can just wrap styled with withTheme
We may be able to add theming conditionally with babel option (we could just wrap styled with withTheme and import it if the user wants theming)

I'd be happy with the decrease in bundle size when not using theming. Emotion currently sitting around 3.4kb in my app

@Connorelsea since version 6.0 , you have to opt-in for themeing to use it.

closed in #225

Personally, I wouldn't mind if theming could be automatically like so:
import styled from "emotion/react/themed";

export default styled.div`...`;

Which would be the equivalent of:
import styled from "emotion/react";
import { withTheme } from "theming";

export default withTheme(styled.div`...`);

Having converted a large styled-components repo to emotion, everything was largely find/replace besides wrapping all of the components with withTheme.


THRIFT-4619: Transport SASL Client fo go

I've tested this against hive using gssapi and plain mechanisms with gohive

Thanks for the PR, but I don't think this belongs here upstream, especially with that third party dependency. As far as I can see, gohive doesn't even have a license specified, which is a showstopper on its own.
I recommend maintaining this outside the tree, like Python and Perl communities do.


Refund extra field

Added a fee_paid attribute to the fee model.
Duplicated validation from the staff app and added tests for obvious scenarios
This will need to be refactored into three date fields but after discussing with @jitenp this is the MVP implementation!

Apart from the comment (which is just a nit pick): proper wicked.


No "Sent" folder

No "Sent" folder avilable now

Really I think Sent Folder is very important feature.

Please, provide details about the e-mail servers you are using.
In order for Isotope to detect the Sent folder, the IMAP server must provide a folder with the  \Sent attribute.
I'm not experiencing this issue either with GMail server or Office 365 e-mail accounts:

is client responsibility to save copy into "Sent" folder or IMAP Server? I use dovecot+exim4, and i have no sent copies of emails....
But folder is created automatically


fix: localData is not a function

Hi
First I want to thank you for this amazing library, which makes us developers lives easier.
I've encountered the error moment.localeData is not a function and used the solution that was provided in #207 and it worked.
The problem with the solution is that I have to modify this library's index file in node_modules which is not the proper way to handle the error.
So I created this pull request and applied the solution. I hope to see it being merged pretty soon.
Thanks

Hi, Thanks for the PR. Are you sure that this is not going to break old code?
Maybe this fixes usage in Vue.js but breaks older usage in Node.js.
@alitaheri Do you have any opinion on this?

Actually, I'm using Material-ui picker library in a React project which has date-io library as dependency, which in turn has moment-jalaali library as dependency, it is 0.9.1 version if I'm not mistaken.
I have opted to use Vite js instead of CRA which resulted in the error.
That being said, I don't think it will break older usages.
When requireing a package in a js file, it will point to the main field in package.json, which includes name of the main file of the package and its relative address to package.json file. But it is possible to be extra specific about the file you wish to include and add the file name after package name, it's a bit overuse when package exports only one file, but useful when a package has multiple files with different functionalities to offer.
So using require('moment/moment') is more detailed way of using require('moment'), it should not break older usages.

Great, thanks. v0.9.4 is published.

Thanks


 This removes it and cleans it up a bunch.
https://jira.sakaiproject.org/browse/SAK-33857

This probably makes sense to remove after the 12.0 release.

Updated and ready to go.

Steve, can you address the conflicts here?

I think it's a good time to merge over the next month or so whenever these conflicts are resolved

Maybe get the rest of the latest gbng backports done first (for the updated
graph code), then merge.
On Wed, May 16, 2018 at 1:18 AM Code Hugger (Matthew Jones) <
<EMAIL_ADDRESS>wrote:

I think it's a good time to merge over the next month or so whenever these
conflicts are resolved
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/sakaiproject/sakai/pull/5257#issuecomment-389205890,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAH4abhx1Mh7FB1bq9KlE9voYpus-BMDks5tyvHYgaJpZM4RyCmh
.

Updated with master

@jonespm and @ern - I dont intend to fix all of the Gradebook Classic issues that codacy has, should we just merge this now?

Ya I wouldn't worry about those, I think the time is good to merge this.

It is done 👐


Combining shaders?

Is it possible to combine shaders similarly to what is done in Retroarch?

Not possible yet, but may be possible one day
Got another issue about it here: https://github.com/CnCNet/cnc-ddraw/issues/6 so I'm closing this one!


Vue 3

Hey,
This is not ready to merge, but I wanted to see if you were interested in that work. I basically migrated your code to work with Vue 3 (tested with 3.1.2). I haven't updated any of your tests.

Any assistance needed here? would love to use this on vue3

@atymic component already updated to vue3.


Fix bug with list title in listview with outlook style

http://forum.metroui.org.ua/viewtopic.php?pid=1347

added


feat: Add a way for Middleware process_request() to indicate whether routing should proceed or the response should just be rendered immediately

We can either set an attribute on resp, or simply support returning a truthy value to indicate whether or not the routing should be short-circuited. Other ideas?
Should we also do this for process_resource()?

Yes please.  We would like this too so that we can have middleware that does caching and doesn't proceed to the actual resource if the response is already cached.

Why wouldn't it be preferred to raise an HTTPError or HTTPStatus? Raising an exception is a really nice pattern for short-circuiting handlers and middleware.

@mattgiles raising an exception is very handy for short-circuiting request processing indeed.
However, there are both philosophic and technical reasons why it is not always the preferred way.
First, in Python (and many other languages) raising an exception signals that something unusual or unexpected has happened as opposed to the ordinary case. If, for instance, CORS middleware is rendering a response to OPTIONS, it is completely normal behaviour, not any exception in the program logic. Furthermore, these HTTPStatus exceptions would be handled in the API's error handlers registered with add_error_handler which might confuse the user if he or she is already handling any HTTPStatus exceptions this way.
Second, short-circuiting the response has a slightly different meaning in the request processing chain. The response object is not created solely by the last middleware short-circuiting it, but potentially modified by earlier middlewares, hooks etc in the chain, whereas raising an HTTPStatus requires you to craft it from the scratch. What is more, HTTPStatus does not provide the same interface as Response does. For instance, suppose you have some imaginary cache middleware returning a cached version of the response which is streamed from an internal caching server. Right now you can only provide body, headers and status, but not an equivalent of resp.stream. The same goes for many utility properties, although you can set many of the through headers, but you lose the convenient interface. Sure, maybe HTTPStatus could be redesigned to wrap a Response somehow, but it is IMHO valid to question the pattern itself.

A comment on the issue itself. It would feel very natural supporting a truthy value to indicate whether or not the routing should be short-circuited. However, we would need to find an alternate way (such as an attribute on resp) if we further pursue https://github.com/falconry/falcon/issues/1047 .

@vytas7 totally. That's super reasonable, and makes sense on several counts. I was curious, and appreciate the thoughtful response.
To elaborate on my curiosity. I don't know if I agree that, in Python, exceptions are idiomatic only in cases where something has gone wrong. Python is also unlike many languages insofar as its exception handling can be used proactively to manage the flow of control.
Indeed, part of what I find so elegant about falcon is the main loop in API.__call__, a prominent feature of which is the explicit handling of both HTTPError and HTTPStatus as exception classes. The original idea might have been to lean in to the semantic similarity between HTTP error codes and program exceptions -- but that choice being made, it's no surprise that the broader identity of HTTP status codes and exceptions was embraced.
It's an intuitive and simple pattern: falcon provides a well-structured flow for requests and responses to traverse, but if at any point in that flow I determine exactly what the content of the response should be, I can jump out. Because this seems to be exactly the situation this issue is considering, I guess I was curious why it would be pursued by other means.
As you point out, these exception classes do not do what you need them to in order to address this issue in its particulars. But, as you also point out, they could -- and in a way which seems harmonious with #1047.

I'll go ahead and take a stab at this.


chaosdaemon: check if qdisc exists before deleting it

Signed-off-by: cwen0<EMAIL_ADDRESS>In this pr, chaosdaemon will check qdisc exists before deleting it and split large functions into multiple small functions, fix #110

When to destroy a ipset? i don't found it.

And if chaosdaemon got a panic after creating the ipset: ${name}old, how does chaos-mesh clear this temporary ipset?

When to destroy a ipset? i don't find it. And FlushIpSet is so complicated, why not flush the ipset first and then add ips into it?

The deletion of ipset has no effect on the network chaos and this retained ipset can help us to troubleshoot. @YangKeao PTAL

@you06 can you help to test this. Maybe it fix some network issue you have meet

@mahjonp Aha, ipset will not be deleted.
I think we can add extra delete hook method for two phase reconciler to delete ipset on deletion.
Deleting and creating ipset for every recover is also acceptable now. After fixing some stability issue about network namespace, ipset and iptables is stable enough to modify frequently.

Codecov Report

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

@@           Coverage Diff           @@
##             master   #116   +/-   ##
=======================================
  Coverage          ?    40%
=======================================
  Files             ?     17
  Lines             ?    600
  Branches          ?      0
=======================================
  Hits              ?    240
  Misses            ?    329
  Partials          ?     31

Continue to review full report at Codecov.

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

ptal @you06


Release notes for 326

Iceberg
* Fix an error when creating a table with S3 location when using ``file`` metastore. (:issue:`1858`)

Hive
* Fix an error when creating a table with S3 location when using ``file`` metastore. (:issue:`1664`)

https://github.com/prestosql/presto/issues/1858
https://github.com/prestosql/presto/pull/1664

Hive
 - Optimizations in ``sql-standard`` Hive security. (:issue:`1922`)

#1922

MySQL
* Add support for showing column comment. (:issue:`1840`)

PostgreSQL
* Add support for showing column comment. (:issue:`1840`)

Redshift
* Add support for showing column comment. (:issue:`1840`)

https://github.com/prestosql/presto/pull/1840

General
-------

* Fix performance regression in joins. (issue:`2047`)

https://github.com/prestosql/presto/pull/2047

RPM
 - Allow to install Presto RPM on system with Java 11 installed. (:issue:`2057`)

#2057

General
- Fix bug when query was cancelled during semantic analysis but semantic analysis time counter was still counting time. (:issue:`2055`)

#2055

JDBC based connectors
---
 - Collect JMX statistics for ``ConnectionFactory``. This contains information how many times and how long it takes to create and close JDBC connections. (:issue:`2024`)

Phoenix connector
-  Collect JMX statistics for ``ConnectionFactory``. This contains information how many times and how long it takes to create and close JDBC connections. (:issue:`2024`)
-  Collect JMX statistics for ``JdbcClient``. This contains information how many times and how long it takes to call each method of ``JdbcClient``. (:issue:`2024`)

#2024

General
-------
* Improve performance of processing map columns. (:issue:`2015`)

#2015

Hive
* Fix a CDH 5.x metastore compatibility issue resulting in the metastore discarding stats computed with :doc:`/sql/analyze`. (:issue:`973`)

https://github.com/prestosql/presto/pull/973

General
* Add :doc:`/connector/memsql`. (:issue:`1906`)

https://github.com/prestosql/presto/pull/1906

Hive Changes
---
* Improve performance for Glue metastore by fetching partitions in parallel. (:issue:`1465`)

#1465

General
-------
* Support JWT for :doc:`/security/internal-communication`. (:issue:`2032`)

Maybe security section instead?
#2032

* Improve performance of ``INSERT`` and ``CREATE TABLE ... AS`` queries containing redundant ORDER BY clauses. (:issue:`2044`)

#2044

* Fix incorrect query results when query contains ``LEFT JOIN`` over ``UNNEST``. (:issue:`2097`)

https://github.com/prestosql/presto/pull/2097


Ender IO crash 1.7.10

Issue Description:
I installed the latest version of Ender IO for 1.7.10 from curse, upon launch it immediately crashed. I looked at the crash report and it reads: Initializing game
java.lang.IllegalArgumentException: minecraft:beetroot_seeds is not a vaild string. Strings should be either an oredict name, or in the format objectname;damage (damage is optional)
at com.enderio.core.common.util.ItemUtil.parseStringIntoRecipeItem(ItemUtil.java:104)
that is not the whole script as it is very long. just to be clear, Ender IO was the only mod i had installed
What happens: It crashed on startup, I've been having the same issue with all versions of Ender IO for 1.7.10
What you expected to happen: I expected it to crash because I've had the same issue for a while, however i was hoping it would run normally
Steps to reproduce:

install forge and Ender IO versions listen below
launch game (if you are unable to reproduce the crash I apologize for wasting your time)

...

Affected Versions:

EnderIO: 1.7.10-<IP_ADDRESS>
EnderCore: 1.7.10-<IP_ADDRESS>9
Minecraft: 1.7.10
Forge: 1.7.10-Forge 10.13.1566

Your most recent log file where the issue was present:
[pastebin/gist/etc link here]

beetroot_seeds doesn't exist in 1.7.10. remove it from your crops.json

PS: You are using config files from an 1.10.2 installation with 1.7.10. Don't do that.

HELP I HAVE THE SAME!!!!!!!!!!!!!!!!!!!!!!!!!!!

oh ik maybe remove beetroot seeds form the json?


Uncaught TypeError: Cannot read property 'Symbol(toStringTag)' of null

When loading<EMAIL_ADDRESS>it will throw this exception here since it's being called with null
For development I configured
System.config({
  defaultJSExtensions: true,
  transpiler: "babel",
  babelOptions: {
    "optional": [
      "es7.decorators",
      "es7.classProperties"
    ],
    "sourceMaps": "inline"
  },

and get this error

So, checking this for null or undefined should do the trick right? Would you be interested to submit a PR for that? @stoffeastrom

Yes that should be sufficient. Just stumbled on this. I will see if I can get it up and running. If so it should be fast fixing a PR

I can release it almost immediately if you send a PR :)

Confirmed this is same issue from earlier

If I can do it via my phone :). Just need to get my kids sleeping then I'll look into it
Sent from my iPhone

On 9 mars 2016, at 19:33, Patrick Walters<EMAIL_ADDRESS>wrote:
Confirmed this is same issue from earlier
—
Reply to this email directly or view it on GitHub.


Add TSBVI 3d Printer(s) to the printers wiki page

Add the TSBVI 3d printer(s) and associated recommendations to this page:
https://github.com/tactile-graphics/guides/wiki/3d-printer-settings

Added for PLA


Make use of contextual components for {{fa-list}}

@homu r+

:pushpin: Commit f478029 has been approved by martndemus

:zap: Test exempted - status


Language switcher in the admin site is not displayed

The language-switcher dropdown menu is not displayed in the admin site. The language switcher is present at the login form.
I have a working project and I created a dummy project using default settings in order to reproduce it and found that both setups have the same results.
Versions:

Python 2.7.11 64-bit, Windows 7
Django 1.8.3, Mezzanine 4.0.0, django-modeltranslation 0.11
Django 1.10.1, Mezzanine 4.2.0, django-modeltranslation branch master-dj110-integration which has Django 1.10 support

Using following settings:
USE_L10N = True
USE_I18N = True
USE_MODELTRANSLATION = True
LANGUAGES = (
    ('hu', _('Magyar')),
    ('en', _('English')),
    ('de', _('Deutsch'))
)

After digging around, I think I found the problem.
In the template core/admin/includes/dropdown_menu.html the „LANGUAGES” template variable is not populated, is empty, therefore failing the
{% if settings.USE_L10N and LANGUAGES|length > 1 %}
test on line 25 (line numbers are for 4.2.0) , therefore the language switcher is not displayed. This template is loaded via the admin_dropdown_menu  template tag (core/template_tags/mezzanine_tags.py line 667). The template_vars variable inside this function is not populated with the LANGUAGES from settings.
My workaround is to add LANGUAGES to TEMPLATE_ACCESSIBLE_SETTINGS (it is not there by default), and then either

replace LANGUAGES with settings.LANGUAGES in the dropdown_menu.html template or
populate template_vars explicitly in the template tag with a line added after line 686: template_vars["LANGUAGES"] = context["settings"][”LANGUAGES”]

Thanks for all the detail!
It regressed in 71873e1ef11b7817d94595aaa8c96a513f4b26c4 - I have the correct fix incoming.


IDs not matching PDB characteristics (chain number and ID, for instance)

Hi, first of all, thank you for the huge contribution of putting ProteinNet together great contribution to the comunity indeed.
I am now trying to fetch from PDB the Beta Carbon coordinates for each protein on ProteinNet for my algorithm. The problem is that I cannot intuitively do so via Biopython since some ID's wont inform the chain used on ProteinNet.
'1IQ8_d1iq8b4',
'1S2M_d1s2ma2',
'1IZ6_d1iz6b2',
Those 3 proteins as an example, have "strange" descriptors in place of chain id and number.  What do they mean after all? How could I fetch the same sequence and structure as given in ProteinNet?
I am well aware of the problems regarding mmCIF files, and the mismatch of sequences. Is there any way to solve it? I really need to implement this change.
THanks

Hi, the descriptors are described on this page.

I also wanted to thank you for this very useful library. I have the same question as posted above, and unfortunately I couldn't find the answer in the linked documentation, but please let me know if I'm missing something. I found that about 28,000 of the records in the Training 100 file have the unexpected format described above for the ID field, e.g. '1IQ8_d1iq8b4', and the remainder are of the expected format, e.g. '1Z5O_1_A'. Do you have any insight on this? Many thanks in advance.

Hi @jessevig, thanks for pointing this out. I had missed what the issue was. You're right, there's a second type of identifier, relating to entries from ASTRAL and not the PDB, which is a database of individual protein domains as opposed to full-length proteins. I found that combining both is helpful in training models. In your example, "1IQ8" is the PDB id of the original chain from which the ASTRAL domain is derived, and "d1iq8b4" is the ASTRAL id.

Got it, thanks for the explanation!


Refactor NodePattern::Compiler (using recursion rather than state machine and explicit stack)

This makes the compiler code smaller, easier to understand, and faster (due to using the Ruby evaluation stack rather than an explicit software stack). It will be easier to modify and extend as well.
At the same time, I'd like to open some discussion about where we want this NodePattern code to go.
@bbatsov said earlier today:

Now that we've used node patterns a bit I know that I like them a lot, but I hate dealing with multiline strings. Ideally we'd be able to represent them is some more structured manner.

I've been thinking about this. We could use Ruby arrays as S-expressions and represent them that way. That would mean losing out on the extra syntax like {} and [] and so on, which makes them signficantly more terse.
After looking at "pattern" code for a while, this kind of thing doesn't look bad to me:
def_node_matcher, :predicate?, <<-END
  {(type1 (nested ...))
   (type2 [!x !y] ...)
   (type3 _ :symbol _)}
END

If the node pattern is very brief, and doesn't nest more than about 2 levels, just a single-line string looks good to my eyes. Otherwise, the << notation for multiline strings seems to help.
I was prompted to invent NodePattern after seeing how much repetitive AST destructure-and-check code is in RuboCop. The idea is to compress all this code down into something very terse, with all the "filler" compressed out and only the "meat" left. If you used to program primarily in C/C++/Java before learning Ruby, you know how empowering it can be to code in a language which compresses every 10 lines of code down to 2. Since there is so much less code on the page, you can understand it far more quickly. Just visually, as you scan down the page, the meaning of the code stands out so much more when not loaded with repetitive "filler". You can iterate faster and try more things. That is what I hope this will do for RuboCop.
At the same time:

The pattern language should be simple enough that a new dev can learn it in a few minutes
The compiler should be simple and fast
The compiled code should also be fast
It should be visually pleasing
It should integrate well with the host language (Ruby)

A note on the last one. The NodePattern language is not Turing-complete, nor should it be. In many places, when processing ASTs, the full power of a general programming language is needed to implement some check. Rather than adding more and more features to NodePattern to increase its power, I would prefer to make the power of Ruby available where it is needed, without throwing out NodePattern and going back to tedious manual destructuring.
The only step I have taken in this direction is adding "predicates" to NodePattern -- you can use something like assignment? as a pattern, and it will call assignment? on the target node. As we extend Node with more custom predicates, this will make node patterns more and more powerful.
I feel something more is still needed, though. Question: should NodePattern have some syntax for inserting an arbitrary Ruby expression into a pattern? What would that look like? Or could the way that NodePattern is invoked be adjusted, to make it more flexible and better able to integrate with Ruby?
I'm also thinking of the following addition: ^ to move "up" a level and match against the target node's parent, ^^ to match against the grandparent, and so on. What do you think about this? Is the pattern language getting too complicated?

I've experimented with inserting arbitrary Ruby expressions into a pattern string, and it doesn't work well. It looks very "noisy", and the mix of 2 languages makes it harder to "parse" visually.
This would help a lot: a way to call an arbitrary Ruby method in the context which a matcher method is defined in. For example, if you are defining an AST-matching method in Cop, then there should be a way to call any other method in Cop (and pass the target AST node as an argument).

If the node pattern is very brief, and doesn't nest more than about 2 levels, just a single-line string looks good to my eyes. Otherwise, the << notation for multiline strings seems to help.

I've thought about this and it's bearable. Still, it's kind of annoying you have do indentation in the heredoc "manually". I guess I've been spoiled by lisps - there encoding info into a string is pretty uncommon.

I feel something more is still needed, though. Question: should NodePattern have some syntax for inserting an arbitrary Ruby expression into a pattern? What would that look like? Or could the way that NodePattern is invoked be adjusted, to make it more flexible and better able to integrate with Ruby?

No bright ideas come to mind right away.

I'm also thinking of the following addition: ^ to move "up" a level and match against the target node's parent, ^^ to match against the grandparent, and so on. What do you think about this? Is the pattern language getting too complicated?

We've need parent info here and there, so this might be useful. Probably the biggest gain from using astrolabe was that it made it easy to access the parent node.

I guess I've been spoiled by lisps - there encoding info into a string is pretty uncommon.

This whole thing of having our own little compiler which builds Ruby code strings at runtime and eval's them to define methods, is just our own ad-hoc, hacky version of Lisp macros. (If I wasn't a Lisp programmer, I would never have thought of doing it.) We are working around the lack of first-class macros here.

We've need parent info here and there, so this might be useful.

OK, let me add it. But if we discover that it's not really all that useful, let's take it out later, to simplify things.

Added ^.

Hmm, this turned out to be simpler than I imagined. :-) Nice work!

Let's wrap your 2 outstanding PRs and I'll cut a new release.


A couple of small fixes to scripts

Credit to David_Dyer for noticing an issue with DeployTemplate.ps1. David left the following note at the bottom of the page:
David_Dyer Dec 2, 2017
DeployTemplate.ps1 - Line 35 - New-AzureStorageContext cmdlet is missing the mandatory StorageAccountName parameter

@sryabkov : Thanks for your contribution to the Azure documentation! The author, @georgewallace, has been notified to review your proposed change.


[ZEPPELIN-4359] Interpreter list is incorrect after recent changes

What is this PR for?
Recently, the names of the artifacts were changed to exclude explicit Scala version. This PR fixes this problem. Also, missing interpreters were added to list.
What type of PR is it?
Bug Fix & Improvement
What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-4359

LGTM


IP cores generated by Vivado HLS not automatically included in SNAP project

When an operation that requires the use of an IP core, like floating point addition, is used in an hls action, Vivado HLS will generate a vhdl file as toplevel for this IP core, and a tcl script to generate the IP core. However, currently it seems to me like this generated IP core is not added to the SNAP project during 'make model' or 'make image', resulting in the IP core being treated as a black box with no behaviour.

Some more information about this issue:
It seems that @$(MAKE) -s .create_ip_done in the $SNAP_ROOT/hardware/Makefile below create_project: is not actually running the create_ip.tcl script. And when I force it to run this script, it will set action_vhdl to: ‘[SNAP_ROOT]/actions/hls_memcopy/hw/hlsMemcopy_xcku060-ffva1156-2-e/memcopy/sim/vhdl\n[SNAP_ROOT]/actions/hls_memcopy/hw/hlsMemcopy_xcku060-ffva1156-2-e/memcopy/syn/vhdl\n[SNAP_ROOT]/actions/hls_memcopy/hw/hlsMemcopy_xcku060-ffva1156-2-e/memcopy/impl/vhdl\n[SNAP_ROOT]/actions/hls_memcopy/hw/vhdl' , which causes [file exists $action_vhdl] == 1  to fail, which in turn causes it to not import any user IP files.
My current solution/work-around to solve this problem is adding the following code to the import user IP section of create_framework.tcl:
set tcl_exists [exec find $action_dir/ -name *.tcl]
if { $tcl_exists != "" } {
foreach tcl_file [glob -nocomplain -dir $action_dir *.tcl] {
set tcl_file_name [exec basename $tcl_file]
puts "                        sourcing $tcl_file_name"
source $tcl_file >> $log_file
}
}
Is this additional code actually necessary, or am I missing something?

@TomHogervorst could it be that your workspace was not clean when you started? Particularly could it be that the file hardware/.create_ip_done still existed from a previous run. This is the only reason I can think of for create_ip.tcl not getting executed.
Our idea behind that is that you only have to create the IPs once because in most cases they won't change. If you are actually adding IP after you created the framework, then you'd have to call make clean before calling make model or make image again.

@boekholt You are right that I had not cleaned the workspace after adding the IP cores, which was the reason create_ip.tcl was not executed. However, because that script adds multiple paths to its $action_vhdl variable, it still fails to import the ip cores from any of those paths.

@TomHogervorst Another question regarding your second comment ("some more information..."):
I can't see how the statement
set action_vhdl  $action_root/hw/vhdl

can set $action_vhdl to the string containing multiple paths as you described.
Could it be that your environment variable $ACTION_ROOT (which should be defined in snap_env.sh) isn't set up properly?

Oh, in the create_ip.tcl script that I'm using, action vhdl is set with the statement:
set action_vhdl  [exec find $::env(ACTION_ROOT) -name vhdl]
I must've been using an old version of this script. Thank you for your help and time.


Fix the pattern AST creation function

Fixes #326
It seems like stix2.pattern_visitor.create_pattern_object() was written based on a copy-paste of a function from the pattern validator.  But it wasn't changed enough.  I fixed it up:

The docstring still mentioned validation.  That's not what the function does.  It was totally wrong.  I gave it a better one.
That pattern[:2] junk was from the validator checking whether the pattern starts with brackets.  It doesn't belong in the AST builder.  I removed it.
An error listener was used which produced messages with "FAIL:".  That makes sense in the context of validation, but not here.  There is no success/fail test happening.  I switched to a different error listener which produces a more appropriate message.
I did an ANTLR parser setup similar to the pattern matcher, with BailErrorStrategy and the appropriate error handling, so that parse errors result in exceptions with sensible error messages.

If we want to make visitor use more convenient, maybe we should give the Pattern class(es) from the pattern validator a visit() method analogous to the walk() method?
An example of error output now (with Python 3):
Traceback (most recent call last):
  File "c:\programming\python\stix\pattern-validator\stix2patterns\v20\grammars\STIXPatternParser.py", line 2090, in primitiveLiteral
    raise NoViableAltException(self)
antlr4.error.Errors.NoViableAltException: None

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "testx_pattern_parse.py", line 3, in <module>
    errs = create_pattern_object(pattern="[ file: name = 'weirdname]")
  File "C:\Programming\python\stix\cti-python-stix2\stix2\pattern_visitor.py", line 363, in create_pattern_object
    six.raise_from(
  File "<string>", line 3, in raise_from
stix2patterns.exceptions.ParseException: 1:15: no viable alternative at input '''

Codecov Report

Merging #344 into master will increase coverage by 0.01%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##           master     #344      +/-   ##
==========================================
+ Coverage    98.1%   98.11%   +0.01%
==========================================
  Files         124      124
  Lines       14185    13867     -318
==========================================
- Hits        13916    13606     -310
+ Misses        269      261       -8

Impacted Files
Coverage Δ

stix2/pattern_visitor.py
73.56% <66.66%> (-1%)
:arrow_down:

stix2/datastore/filesystem.py
92.88% <0%> (-0.12%)
:arrow_down:

stix2/patterns.py
98% <0%> (-0.02%)
:arrow_down:

stix2/test/v21/test_datastore_filesystem.py
99.17% <0%> (-0.02%)
:arrow_down:

stix2/test/v20/test_datastore_filesystem.py
99.19% <0%> (-0.02%)
:arrow_down:

stix2/test/v21/test_relationship.py
100% <0%> (ø)
:arrow_up:

stix2/test/v20/test_campaign.py
100% <0%> (ø)
:arrow_up:

stix2/test/v21/test_core.py
100% <0%> (ø)
:arrow_up:

stix2/test/v21/test_attack_pattern.py
100% <0%> (ø)
:arrow_up:

stix2/test/v21/test_custom.py
100% <0%> (ø)
:arrow_up:

... and 62 more

Continue to review full report at Codecov.

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

Looks great! I think we should have a test case to make sure the right exception class is being thrown.
I wouldn't be opposed to also adding a visit() method.

I added the visit() method and changed create_pattern_object() to take advantage of it.  Of course, travis tests won't pass until a new version of the pattern validator is released which has the change.  (And we too are suffering from the ANTLR 4.8 issue.)


Gemini : \r bug?

I've noticed an issue when using Gemini. Sometimes, \r characters appear at the end of all lines in the output. I'm not sure if this is caused by Gemini or by the integration with claude-dev, but it's randomly creating unexpected behavior. Could you please investigate this and see if there's a way to prevent these extra carriage return characters from appearing? Thank you for looking into this matter.

That's exactly how I'll fix this @bradlishman 👍 Gemini has a known issue with function calling where it double escapes certain characters. Will get this fix out ASAP

Fixed in v1.7.1!


[SymfonySecurity] keep only voters, the rest is too complex

[x] rename
[x] drop firewall feature
[x] make tests pass

Ref #71


Test fixes for NumPy 2

Fixes to make the test suite pass with both NumPy 1.x and NumPy 2.x.

LGTM! I'll go ahead and merge this since it seems to be fairly straightforward, with no functionality changes.

Thanks!


[BUG]: Missing bigint import in drizzle-kit introspect

What version of drizzle-orm are you using?
0.28.2
What version of drizzle-kit are you using?
0.19.12
Describe the Bug
If you try to launch drizzle-kit introspect:mysql on a db containing a bigint, it will be generated yet the import at line 1 won't include it, needing you to do it manually.
Expected behavior
It should automatically import bigint
Environment & setup
Node 18, but it happens also in node 20.

Can you confirm this is still an issue in the latest version?

HI @Angelelz I just updated to drizzle-kit 0.20.6 (latest) drizzle-orm 0.29.1 (latest) but the issue persists.

I am facing this issue too in latest version.

This should be fixed in<EMAIL_ADDRESS>If you still encounter this issue, please reopen the ticket


Interactivity for output filtering

Description
This is an extension of the task https://github.com/kubeshop/botkube/issues/742 that brings Slack interactivity for the new feature.
AC

Implement the design according to the prototypes: https://www.figma.com/proto/UcaGQ1UiBziOQbNPmSwE0T/grep?page-id=0%3A1&node-id=2%3A173&viewport=163%2C220%2C0.08&scaling=scale-down&starting-point-node-id=2%3A173&show-proto-sidebar=1

Support just the first flow

Slack only for now
Manual tests of the interactivity part for now
Skip "Open in editor" button
Dropped: ~Stretch: Support AND/OR dropdown + additional text fields rendered as dynamic form (you can add them as many as you want).~
Minimal scope: static form:

single text field
To agree with @lpetkov - whether this text field is in modal or embedded directly in the message

Always attach "Filter output" button for each command output
Single modal open by button with a single text filter

Filtering logic is out of scope as it is implemented as a part of #742
Document it (minimal scope: Add documentation in Usage document)
Cover basic telemetry

Some update on the design decision after we discussed with @lpetkov :

There is a restriction on slack about action items which is  you cannot attach them to slack file upload. As a solution, we replied as a thread to file upload, and this reply message is a simple Filter Output input action.
Once the thread is created, the upcoming commands to that thread is also replied under that thread.

Design:
Don't use dropdowns, use:

Attach the filter output section only if message has >= 15 lines.
It can be done in an easy way, pseudocode:
	markdown := interactive.RenderMessage(b.mdFormatter, interactive.Message{})
	lines := strings.SplitN(markdown, "\n", 16)
	if len(lines) == 16 {
		// we reach the limit, let's add a filter section
	}

Update: I will hide the "Delete" option for actionable notifications for now. This doesn't impact the "Actionable messages" feature at all.
I discussed the edge case with @lpetkov (which happens when user explicitly enables the "delete" verb for given K8s resource). Unfortunately I ran out of time - sounds like a rare edge case not worth to invest in right now, as we have different priorities related to Kubecon.
I will create a follow-up task for that and we can see if people really want to delete K8s resources from notifications 🙂

Closing as completed as the whole functionality is already on main and documentation is also in place 👍


Does MFEM include a discretization feature (Tetrahedrons, Hexagons)?

We're looking to add FEA simulation capabilities in our software, hopefully using Mfem.
We're already loading STL and STEP files as triangular shell meshs and are looking for a mesh discretization.
I found references to PMesh or DRACO on the LLNL website but not sure if these are included in MFEM?

Hi Pierre,
We do support a number of external meshing packages for both tetrahedral and hexahedral meshes, bit MFEM does not include a general internal meshing capability.
Specifically,

We support the Gmsh, CUBIT, NETGEN and TrueGrid mesh generators, see https://mfem.org/meshing/
Can read meshes in VTK and NURBS format (adding readers for new formats is easy), see https://mfem.org/mesh-formats/
Have some simple internal mesh generation capabilities, see https://mfem.org/examples/#meshing
Have integration with the PUMI parallel mesh infrastructure, see https://www.scorec.rpi.edu/pumi/

For the case you are describing (an input of STL shell mesh), the simplest way may be to use NETGEN to build a volume mesh which can then be read and used in MFEM. We will be happy to assist in that if you run into difficulties.
Hope this helps,
Tzanio

Closing this, but please feel free to reopen if you have any further questions.


Hera Workflows Don't show on Argo Dashboard

Hello! 👋🏾👋🏾
I am currently running the hera workflows example code for the [coin flip].
When I run the code, I can't see the workflow on my Argo dashboard (see first screenshot below). However, when I run it a second time, I get an error message saying that the workflow already exists (see second screenshot below). What could be the reason for this apparent contradiction?

I think it may have something to do with the fact that whenever I submit a workflow, even though I submit to the argo namespace, it shows under the default namespace?

Hello @munachisonwadike! Thank you for the issue submission! 🙂 This is a consequence of this line in the workflow. If you set the namespace on the workflow object itself I think everything will be fine. Upon reflection this is an indication that the workflow service namespace interaction with workflow submission is not set up properly. I believe only the workflow objects should have the namespace and the service be agnostic to the namespace. I will add this as a breaking change in a future release. In the mean time, I believe using namespace on workflow objects will solve the problem!


glogg: init at 1.1.4

Motivation for this change
This is a fine large file explorer / log explorer which is missing.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ x ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ x ] Tested execution of all binary files (usually in ./result/bin/)
[ x ] Fits CONTRIBUTING.md.

Didn't test darwin, but if the test fail, I'll change the platform meta.

@GrahamcOfBorg build glogg

Success on aarch64-linux (full log)
Attempted: glogg
Partial log (click to expand)
glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/6nh4gfzq5fxww3g0p92hs4hr314kvm34-glogg-1.1.4
shrinking /nix/store/6nh4gfzq5fxww3g0p92hs4hr314kvm34-glogg-1.1.4/bin/glogg
strip is /nix/store/gp7fylxwn18b7pl2c18ks89hsiaxyfvf-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/6nh4gfzq5fxww3g0p92hs4hr314kvm34-glogg-1.1.4/bin
patching script interpreter paths in /nix/store/6nh4gfzq5fxww3g0p92hs4hr314kvm34-glogg-1.1.4
checking for references to /build in /nix/store/6nh4gfzq5fxww3g0p92hs4hr314kvm34-glogg-1.1.4...
postPatchMkspecs
/nix/store/6nh4gfzq5fxww3g0p92hs4hr314kvm34-glogg-1.1.4

Success on x86_64-linux (full log)
Attempted: glogg
Partial log (click to expand)
glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/zv0wn7wlw87q2jm355rbcnnc6zk7ykvz-glogg-1.1.4
shrinking /nix/store/zv0wn7wlw87q2jm355rbcnnc6zk7ykvz-glogg-1.1.4/bin/glogg
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/zv0wn7wlw87q2jm355rbcnnc6zk7ykvz-glogg-1.1.4/bin
patching script interpreter paths in /nix/store/zv0wn7wlw87q2jm355rbcnnc6zk7ykvz-glogg-1.1.4
checking for references to /build in /nix/store/zv0wn7wlw87q2jm355rbcnnc6zk7ykvz-glogg-1.1.4...
postPatchMkspecs
/nix/store/zv0wn7wlw87q2jm355rbcnnc6zk7ykvz-glogg-1.1.4

Closing -> #50520