Locking yourself out from the admin panel

Bug Report
It is possible to lock yourself out from the admin panel completely when using an auth-enabled collection as admin users which has a required relationship field.
Expected Behavior
Payload should either

send a warning when parsing the payload config
ignore the required relationship when creating the first user

Current Behavior
Payload greets you with the /create-first-user page. The form requires you to choose an option for the required relationship field. Since no entities of the target collection exist none can be choosen and you are stuck.
Possible Solution

skip validation hooks for /create-first-user when it comes to relationship fields
give out a configuration warning when starting payload

Steps to Reproduce

Checkout the getting started payload template
Uncomment the Examples collection
alter the Users collection to

const Users: CollectionConfig = {
  slug: 'users',
  auth: true,
  admin: {
    useAsTitle: 'email',
  },
  fields: [
    {
      name: 'example',
      type: 'relationship',
      relationTo: 'examples'
      hasMany: false,
      required: true,
    }
  ],
};

Start payload

Detailed Description
Payload version: latest (and possibly anything before that)
Browser: any

Hey @TimHal — I think this is actually by design and would be fairly convoluted to fix if we wanted to allow the bypassing of relationship fields on the create-first-user operation.
I kinda feel like this is up to the dev to fix as the schema, having a required relationship, clearly dictates that users are required to have data in required relationship fields in order to create a user.
However, I think there are a few ways that we can avoid having this problem:

If you have a required relationship field on your users collection, you could seed data within Payload onInit to ensure that there are documents available within your relationship field to use.
You could also write a custom validate function that uses fetch to check and see if there are any relationships present, and if none present, then don't require a value within the relationship field. If there ARE relationships present, then validate normally. This would be pretty simple and would not require seeding.

What do you think? I'm going to convert this to a discussion for now but I really would love to know your thoughts!


feat(core): functions values adapters

Added possibility to define adapters via standalone functions returning values object.
PR Checklist
Please check if your PR fulfills the following requirements:

[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

What is the new behavior?
Added possibility to define adapters via standalone functions returning values object.
await Config.register({
  template: AppSettings,
  adapter: async () => ({
    PORT: 3000,
    DB_URL: 'localhost:5467',
    DB_PASSWORD: 'password',
    DB_RECONNECT_DELAYS: '56,98,34,72',
  }),
});

Codecov Report

Merging #16 (1e9a539) into main (585b3c5) will increase coverage by 0.08%.
The diff coverage is 97.61%.

:exclamation: Current head 1e9a539 differs from pull request most recent head f30862a. Consider uploading reports for the commit f30862a to get more accurate results

@@            Coverage Diff             @@
##             main      #16      +/-   ##
==========================================
+ Coverage   97.76%   97.85%   +0.08%
==========================================
  Files          34       34
  Lines         358      373      +15
  Branches       65       69       +4
==========================================
+ Hits          350      365      +15
  Misses          8        8

Flag
Coverage Δ

unittests
97.85% <97.61%> (+0.08%)
:arrow_up:

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

Impacted Files
Coverage Δ

...lib/adapters/class-adapters/plain/plain.adapter.ts
100.00% <ø> (ø)

packages/nest/lib/config.module.ts
84.21% <85.71%> (+2.96%)
:arrow_up:

...kages/core/lib/loader/decorators/from.decorator.ts
100.00% <100.00%> (ø)

...ges/core/lib/loader/decorators/nested.decorator.ts
100.00% <100.00%> (ø)

packages/core/lib/loader/loader.impl.ts
100.00% <100.00%> (ø)

...kages/core/lib/manager/container/container.impl.ts
100.00% <100.00%> (ø)

packages/core/lib/manager/manager.impl.ts
97.36% <100.00%> (+0.07%)
:arrow_up:

...core/lib/manager/source-group/source-group.impl.ts
100.00% <100.00%> (ø)

...ages/core/lib/validator/errors/validation.error.ts
100.00% <100.00%> (ø)

packages/core/lib/validator/validator.impl.ts
95.55% <100.00%> (+0.20%)
:arrow_up:

... and 3 more


Use open rather than file for Python 3 compatibility

It does exactly the same thing, but works with Python 3

bump

Please merge this?


From where do i get the server-app-id ?,

Azure documentation issue guidance
Thanks for opening an issue in the Azure technical documentation repository.
We use GitHub issues as the primary channel for customer and community feedback about the Azure documentation.
Creating an issue
We prefer that you create documentation feedback issues using the Feedback link on the published article - the feedback control on the doc page creates an issue that contains all the article details so you can focus on the feedback part.
You can also create a feedback issue here in the repo. If you do this, please make sure your issue lists:

[ ] The relevant Azure service or technology.
[ ] A link to the published documentation article that you have feedback about.
[ ] Clear, specific feedback that the author can act on.

Pull requests and article contributions
If you know the change that is needed in an article, we encourage you to submit the changes directly using a pull request. If the change is large, or if you want to contribute an entire article, follow these guidelines:

[ ] Don't surprise us with a big pull request or a pull request with a new article! Submit an issue that describes the details of the proposed large change or new article.
[ ] Include the service or technology area.

We'll route the issue to the appropriate content team for review and discussion.
Tech support and product feedback
If you would like to contact Microsoft about other things, such as product feedback or tech support, please review these guidelines:

If you need technical support using Azure, the paid and free support options are described here: https://azure.microsoft.com/support/options/.

Each article in the Azure technical documentation contains a product feedback button - it's best to submit product feedback directly from a relevant article. Otherwise, you can submit product feedback for most Azure products in the following product feedback forum: https://feedback.azure.com/forums/34192--general-feedback.

@way2arun, Thanks for posting the question! To better assist you, could you please share the Azure doc for which this feedback is applicable to and also provide more details on your query/scenario?

Hi
https://docs.microsoft.com/en-us/azure/templates/microsoft.containerservice/2019-06-01/managedclusters
there is an attribute to add server-app-id

@tomfitz could you please take a look?

This question really should go to someone from AKS. Maybe @mlearned ?
Here is a link with some related info - Integrate Azure Active Directory with Azure Kubernetes Service using the Azure CLI.


mosh: support cross compile

Description of changes
Adds support for cross compiling mosh. Tested the cross compile from amd64 and tested execution on aarch64.

Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

adding strictDeps = true on such PRs helps preventing unintentional regressions in the future.

Added strictDeps = true and tested native and cross compilation

Oops, there's a problem with this - bin/.mosh-wrapped now has an unpatched perl shebang line.

Oops, there's a problem with this - bin/.mosh-wrapped now has an unpatched perl shebang line.

perl has to be added to buildInputs too

Added perl back to the buildInputs, as it's a runtime dependency.
Removed the dependency on perlPackages.IOTty. That package doesn't cross compile. It's not necessary and works fine without it. Upstream removed it from their debian control file in 1.2.4. Link: https://github.com/mobile-shell/mosh/commit/8290e387af43ed0ed07e3ff9ae338ff624692ae3. The current control file does not depend on it either: https://github.com/mobile-shell/mosh/blob/master/debian/control


Start RelativeTemporalAction at 100% when reversed

TemporalAction subtracts the percent from 1 on update if reverse is true. In RelativeTemporalAction, update subtracts the current percent from the last percent. That means the first update will be ~1, and since lastPercent is 0, that value will be passed on to updateRelative.
Since we're moving backwards when reversed, I think it makes sense to start 1 here.

I see similar issues in a number of other actions: SizeToAction, MoveToAction, RotateToAction, and others will fail because their begin()s don't swap with end values on reverse. Should these all be updated so the the actions properly move backwards, or am I misunderstanding how setReverse() should work?

So what I'm trying to do is create SymmetricAction, which is a DelegateAction that animates an action, calls restart and setReverse(true) at the end, then animates the object back to its original state. setReverse(true) works fine in cases where the action hasn't run yet, but breaks in cases where the actor starts at the action's end state.
Would it be possible to support this?

Not a high priority, and I can achieve the behavior I want by creating my own Action subclass, so I'll go ahead and close this out.


Add arbiw bash theme.

A clean 2-line theme not focused on rubyists :)
Line example:
willybarro@willybarro [17:00:29] [~/.bash_it] [master ✗]
 $ ps aux | grep nginx

@willybarro would you like to follow this up? this will need some documentation


update the scala installation tutorial on intellij

Description
Fix the scala installation doc
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[x] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
[x] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[x] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes
@zachgk @lanking520 @piyushghai @andrewfayres @frankfliu
Comments

@mxnet-label-bot add [pr-awaiting-merge]


do not ship extra files in the gem

slows down download
adds weight to external repos when they use vendor/cache

@tlunter

@grosser can you rebase this? thanks.

done


Fix Unbox

> import qualified Data.Vector.Unboxed as UV
> UV.fromList [minBound, 0, maxBound] :: UV.Vector TimeStamp
[1677-09-21T00:12:43.145224192Z,1970-01-01T00:00:00.000000000Z,2262-04-11T23:47:16.854775807Z]

@afcowie this fixes your existing PR.


[Bug] Invisible / non-breakable space are not highlighted depending on the adjacent character

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: vscode.dev / monaco-editor playground
OS Version: Firefox 109

Steps to Reproduce:

Copy paste the following code in an editor (online, playground or Diff in VSCode, as default Markdown settings do not highlight invisible chars):

“ coucou ”
" coucou "
« coucou »

---

a“ coucou ”
a" coucou "
a« coucou »

All single word in this example are wrapped in non-breakable space (Option + Space on macOS).
BUT, depending on which kind of quote surround them, they are not highlighted.

On the first three examples, only the straight quotes enable the highligted quotes to be displayed.
Also, on the last three examples, when the left quote has a word-char before (the a char in this example), the non-breakable spaces are then highligted.
The expectations:

On the first three examples, all the invisible spaces should be highlighted.
On the last three examples, all the invisible spaces should be highlighted (which is correct).

It sounds like a regex not matching some unicode chars — maybe one of vs/base/common/strings.ts? But I'm not fluent enough in Unicode ranges and VSCode to have an idea of what's going on here.
Any help appreciated,
Happy to bring in clarification in case of not being clear enough.
Cheers,
Thom

I cannot reproduce:

Also, the text of your issue contains no non-breakable space, but GitHub may have removed it.

Indeed, GitHub removes the non-breaking spaces in the output. When you edit/get raw message it's fine.
I copy/pasted the above example in the Monarch editor:

What is the output of your IDE when you disable "invalid characters" (they are invalid for coding, but actually used for text editing in scientific writing — the context I'm using Monaco Editor with). I wonder of the outcome when your IDE only displays invisible chars.

This has been fixed, this is why I couldn't reproduce.
Please try the nightly monaco-editor/vscode insiders release.

Yeah, great thank you 🙂


kubectl complete error: command not found: __debug

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind bug

/kind feature

What happened:
When using kubectl with autocomplete, e.g. kubectl create -f nginx <TAB>, then there is command not found: __debug error reported:
kubectl create -f ng__kubectl_filedir:3: command not found: __debug
__kubectl_filedir:20: command not found: __debug
inx

kubectl version: v1.10.0-alpha.3.1792+891b471064ddc1.
What you expected to happen:
kubectl should autocomplete with no errors.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:

Kubernetes version (use kubectl version):
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release):
Kernel (e.g. uname -a):
Install tools:
Others:

This issue is a duplicate of:
https://github.com/kubernetes/kubernetes/issues/60517
https://github.com/kubernetes/kubernetes/issues/61017
This issue has been fixed yesterday (3/13/2018): https://github.com/kubernetes/kubernetes/pull/61129
It is being cherry-picked into 1.10 release

@seans3 Cool. Thanks


wwcode feature request: show who approved an expense

We'd love to be able to leverage the current feature that admins can approve items; however it's not useful to us if we can't see who has approved. Could we suggest being able to see who's approved as a future feature?

Thank you for taking the time to report an issue 🙏
The easier it is for us to reproduce it, the faster we can solve it.
So please try to be as complete as possible when filing your issue.

URL:
Logged in as: (just provide your username or the url of your profile)
Error message if any:
Expected result:
Browser:
Bonus point if you can add a screenshot :-)
Thank you and have a wonderful day/evening!
(and sorry for inconvenience! We'll do our best to solve this ASAP)

This is interesting and something I'd find useful too.

closing in favour of https://github.com/opencollective/opencollective/issues/1326


ARROW-2491: [Python] raise NotImplementedError on from_buffers with nested types

Note you've got a flake8 failure.

Failure is due to Plasma


as-ascii-int for char atom

We need something like this to support the char type from the c language

@IngeniariusSoftware why ascii? I would just make char.as-int.

@yegor256 , ok, thanks

@IngeniariusSoftware you are welcome to submit a pull request

@IngeniariusSoftware still working on this?

@yegor256 not yet


convert softmax

Hi,
I have a problem with the softmax activation layer, it seems the code is supposed to handle this case but it gives me the following error:
Unsupported activation in the layer(<function softmax at 0x1365b6320>)
details:
python=3.7, keras2onnx=1.7, tensorflow=2.2.0, onnx=1.5
Thanks!
Shira

Please give more information about the softmax layer, is it a tf layer? Since we don't have the model, can you give the stack trace?

It seems that this doesn't work
model.layers[-1].activation = tf.keras.activations.softmax
and this does
model.layers[-1].activation = tf.keras.activations.linear
output = tf.keras.layers.Softmax()(model.output)
model=tf.keras.Model(inputs=model.inputs, outputs=output)`

Fixed here, please pull keras2onnx master and try again.


Enable third party copy support (with OpenSSL 1.1)

Checklist

[x] Used a fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Blocked by #15.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


Data not available

Hi, when I'm trying to use design_bench.make to set up tasks, it fails to download GFP data.
Checking the code, I found that in file disk_resource.py, line 105, request.get got 404, showing that the data url https://storage.googleapis.com/design-bench/gfp/gfp-x-0.npy is not available now. Could you please fix it?

Hi,
We are currently working on a solution. For now, please see:
https://github.com/brandontrabucco/design-bench/issues/11
And the specifically the comment I made at the bottom (which is a temporary solution for now).

See: https://github.com/brandontrabucco/design-bench/issues/11#issuecomment-2067352331


[loc][query][VSCode] Please clarify placeholder

Hi, we have a question from our translator. Can you help please? Thanks!
Source:
Problems parsing theme file: {0}
File Name:
src\vs\workbench\services\themes\electron-browser\themeService.nls.resx
Resource ID:
".resx", 0; "error.cannotparse"
Query:
Does this placeholder mean the name of the file? Thanks.

Yes, the placeholder is a path to the file.


Error in Installation guide for Azure

in https://dcos.io/docs/1.7/administration/installing/cloud/azure/
# Connect to master node with ssh
$ ssh -p2200 azureuser@MASTER_LOAD_BALANCER -L 8000:localhost:80

# Install virtualenv
$ sudo apt-get -y install virtualenv

# Install CLI on the master node and configure with http://localhost
$ mkdir -p dcos && cd dcos &&
$ curl -O https://downloads.dcos.io/dcos-cli/install-optout.sh && \
   bash ./install-optout.sh . http://localhost && \
   source ./bin/env-setup

# Now you can use the DC/OS CLI:
$ dcos package search

should modifiy
$ curl -O https://downloads.dcos.io/dcos-cli/install-optout.sh && \
   bash ./install-optout.sh . http://localhost && \
   source ./bin/env-setup

as
$ curl -O https://downloads.dcos.io/dcos-cli/install-optout.sh && \
   bash ./install-optout.sh . http://localhost:8000 && \
   source ./bin/env-setup

since the local port for the ssh tunnel is 8000

Great catch @waitingkuo! Would you like to send in a PR to fix this yourself? BTW, we're in the process of moving all the issues to DCOS JIRA so appreciate it if you'd, going forward, raise an issue there ;)

Moved to Jira, see https://dcosjira.atlassian.net/browse/DCOS-152


Optimize udp efficiency.

create span stream protocol
change udp socket to datagram channel
reuse send buffer by gathering channel

good


Validating Many to Many Relationship Existance?

Which Category is your question related to?
Amplify schema.graphql access patterns
Amplify CLI Version
4.18.0
What AWS Services are you utilizing?
AppSync/Amplify
Hi, wondering if anyone has guidance on quick validation of many to many relationship between 2 tables given the ids of both connected tables. This might be more of a general noSQL question, but would I be better off just creating a separate table for this where the id is a concat of the 2 ids?

Hi @kennandavison, have you seen our documentation on this? It shows a working example schema and some queries.
https://docs.amplify.aws/cli/graphql-transformer/directives#many-to-many-connections
Closing this issue for now. Let me know below if there's anything that needs to be clarified or if you have further questions and we can re-open the issue.


Fix interface cleanup

Description

The vfConfig structure deleted too early and the inject module can not find the information to delete the interface.
Debug printouts added in cases when interface is added or deleted.
Issue link

Related to: networkservicemesh/deployments-k8s#9778
How Has This Been Tested?

[ ] Added unit testing to cover
[x] Tested manually
[ ] Tested by integration testing
[ ] Have not tested

Types of changes

[x] Bug fix
[ ] New functionality
[ ] Documentation
[ ] Refactoring
[ ] CI

@ljkiraly
Nice catch!
Perhaps it would be better if we changed the calls order in inject?
For example, currently it works like:
{
        ...
	rv, err := next.Client(ctx).Close(ctx, conn, opts...)
	injectErr := move(ctx, conn, c.vfRefCountMap, &c.vfRefCountMutex, metadata.IsClient(c), true)
	...
}

But we can change it to
{
        ...
	injectErr := move(ctx, conn, c.vfRefCountMap, &c.vfRefCountMutex, metadata.IsClient(c), true)
        if injectErr!=nil {
        ...
        }
	rv, err := next.Client(ctx).Close(ctx, conn, opts...)
	...
}

(same for server, I think)
Because it would be nice if the same element controlled adding and removing from vfconfig (mechanisms/kernel).

@ljkiraly I think it can be merged. Would you like to resolve comment https://github.com/networkservicemesh/sdk-ovs/pull/275#issuecomment-1784658463 before merging?

@ljkiraly I think it can be merged. Would you like to resolve comment #275 (comment) before merging?

@denis-tingaikin Yes, please do not merge this yet. The comment is valid and I am to test with the proposed modification.

@ljkiraly Sure, all good

This is also fixed in sdk-kernel by correction: https://github.com/networkservicemesh/sdk-kernel/pull/618


new provider mimmi20

@mimmi20 can u do a review, if i map the correct fields?

@mimmi20 got all things covered now, will update the PR tomorrow :+1:

@mimmi20 can u do a last review?
The question is now...

creating v2.x (and do maintenance for 1.x)
or just create a new v1.x with higher requirements...
or leave 5.6 requirement (since it will fail, when your package is required)

Need to think about that a bit

@ThaDafinser I do not have the time to maintain two versions. I am still working on the complexity, and I am still adding devices and browsers which are not detected yet. I dont want to add PHP 5.6 to my supported PHP versions because I want to add PHP 7+ features in the future.

@mimmi20 leave your package as php 7+.
it was more about this package ;-)

@ThaDafinser Any news here?


C++ initializer list not recognized

Issue: VS Code will not accept C++ initializer list
[GCC] Error Reported relative to EACH line of the source code (84 errors in total):
{
"resource": "/home/jim/CodeProjects/HexGameProject/HexGame/Source/gamepiecemanager.cpp",
"owner": "cmake-build-diags",
"code": "undefined",
"severity": 8,
"message": "expected primary-expression before '0'",
"source": "GCC",
"startLineNumber": 597,
"startColumn": 27,
"endLineNumber": 597,
"endColumn": 1000
}
Installed Version; Code-OSS Ver. 1.27.2
Installed Extensions:
C/C++
C/C++ Snippets
Clang-Format
CMake
CMake Tools
Git History
Material Icon Theme
Shader languages support for VSCode
Source Code:
namespace Engine
{
class UTF32 //char character, unicode value
{
private:
std::map<uint8_t, unsigned long> CharCodeMap =
{
{u8' ', 0x20},
{u8'!', 0x21},
{u8'#', 0x23},
{u8'$', 0x24},
{u8'%', 0x25},
{u8'&', 0x26},
{u8'(', 0x28},
{u8')', 0x29},
{u8'*', 0x2a},
{u8'+', 0x2b},
{u8',', 0x2c},
{u8'-', 0x2d},
{u8'.', 0x2e},
{u8'/', 0x2f},
{u8'0', 0x30},
{u8'1', 0x31},
{u8'2', 0x32},
{u8'3', 0x33},
{u8'4', 0x34},
{u8'5', 0x35},
{u8'6', 0x36},
{u8'7', 0x37},
{u8'8', 0x38},
{u8'9', 0x39},
{u8':', 0x3a},
{u8';', 0x3b},
{u8'<', 0x3c},
{u8'=', 0x3d},
{u8'>', 0x3e},
{u8'?', 0x3f},
{u8'@', 0x40},
{u8'A', 0x41},
{u8'B', 0x42},
{u8'C', 0x43},
{u8'D', 0x44},
{u8'E', 0x45},
{u8'F', 0x46},
{u8'G', 0x47},
{u8'H', 0x48},
{u8'I', 0x49},
{u8'J', 0x4a},
{u8'K', 0x4b},
{u8'L', 0x4c},
{u8'M', 0x4d},
{u8'N', 0x4e},
{u8'O', 0x4f},
{u8'P', 0x50},
{u8'Q', 0x51},
{u8'R', 0x52},
{u8'S', 0x53},
{u8'T', 0x54},
{u8'U', 0x55},
{u8'V', 0x56},
{u8'W', 0x57},
{u8'X', 0x58},
{u8'Y', 0x59},
{u8'Z', 0x5a},
{u8'[', 0x5b},
{u8']', 0x5d},
{u8'^', 0x5e},
{u8'_', 0x5f},
{u8'`', 0x60},
{u8'a', 0x61},
{u8'b', 0x62},
{u8'c', 0x63},
{u8'd', 0x64},
{u8'e', 0x65},
{u8'f', 0x66},
{u8'g', 0x67},
{u8'h', 0x68},
{u8'i', 0x69},
{u8'j', 0x6a},
{u8'k', 0x6b},
{u8'l', 0x6c},
{u8'm', 0x6d},
{u8'n', 0x6e},
{u8'o', 0x6f},
{u8'p', 0x70},
{u8'q', 0x71},
{u8'r', 0x72},
{u8's', 0x73},
{u8't', 0x74},
{u8'u', 0x75},
{u8'v', 0x76},
{u8'w', 0x77},
{u8'x', 0x78},
{u8'y', 0x79},
{u8'z', 0x7a},
{u8'{', 0x7b},
{u8'|', 0x7c},
{u8'}', 0x7d},
{u8'~', 0x7e}
};
void GamePieceManager::Create_GPF_Map()
{
uint32_t Ndx{};
GPF_Map.insert({0x30, {u8'0', ++Ndx}});
GPF_Map.insert({0x31, {u8'1', ++Ndx}});
GPF_Map.insert({0x32, {u8'2', ++Ndx}});
GPF_Map.insert({0x33, {u8'3', ++Ndx}});
GPF_Map.insert({0x34, {u8'4', ++Ndx}});
GPF_Map.insert({0x35, {u8'5', ++Ndx}});
GPF_Map.insert({0x36, {u8'6', ++Ndx}});
GPF_Map.insert({0x37, {u8'7', ++Ndx}});
GPF_Map.insert({0x38, {u8'8', ++Ndx}});
GPF_Map.insert({0x39, {u8'9', ++Ndx}});

}
The system is: Linux - 4.18.10-arch1-1-ARCH - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/bin/gcc
Build flags:
Id flags:
The output was:
0
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"
The C compiler identification is GNU, found in "/home/jim/CodeProjects/HexGameProject/build/CMakeFiles/3.12.2/CompilerIdC/a.out"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /usr/bin/g++
Build flags:
Id flags:
The output was:
0
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"
The CXX compiler identification is GNU, found in "/home/jim/CodeProjects/HexGameProject/build/CMakeFiles/3.12.2/CompilerIdCXX/a.out"
Determining if the C compiler works passed with the following output:
Change Dir: /home/jim/CodeProjects/HexGameProject/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_bbf7c/fast"
/usr/bin/make -f CMakeFiles/cmTC_bbf7c.dir/build.make CMakeFiles/cmTC_bbf7c.dir/build
make[1]: Entering directory '/home/jim/CodeProjects/HexGameProject/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_bbf7c.dir/testCCompiler.c.o
/usr/bin/gcc    -o CMakeFiles/cmTC_bbf7c.dir/testCCompiler.c.o   -c /home/jim/CodeProjects/HexGameProject/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_bbf7c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_bbf7c.dir/link.txt --verbose=1
/usr/bin/gcc      CMakeFiles/cmTC_bbf7c.dir/testCCompiler.c.o  -o cmTC_bbf7c
make[1]: Leaving directory '/home/jim/CodeProjects/HexGameProject/build/CMakeFiles/CMakeTmp'
Detecting C compiler ABI info compiled with the following output:
Change Dir: /home/jim/CodeProjects/HexGameProject/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_87c4c/fast"
/usr/bin/make -f CMakeFiles/cmTC_87c4c.dir/build.make CMakeFiles/cmTC_87c4c.dir/build
make[1]: Entering directory '/home/jim/CodeProjects/HexGameProject/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_87c4c.dir/CMakeCCompilerABI.c.o
/usr/bin/gcc    -o CMakeFiles/cmTC_87c4c.dir/CMakeCCompilerABI.c.o   -c /usr/share/cmake-3.12/Modules/CMakeCCompilerABI.c
Linking C executable cmTC_87c4c
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_87c4c.dir/link.txt --verbose=1
/usr/bin/gcc     -v CMakeFiles/cmTC_87c4c.dir/CMakeCCompilerABI.c.o  -o cmTC_87c4c
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp --enable-cet=auto
Thread model: posix
gcc version 8.2.1 20180831 (GCC)
COMPILER_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../lib/:/lib/../lib/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_87c4c' '-mtune=generic' '-march=x86-64'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/collect2 -plugin /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/lto-wrapper -plugin-opt=-fresolution=/tmp/cc15pOwQ.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o cmTC_87c4c /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../lib/Scrt1.o /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../lib/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/crtbeginS.o -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1 -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../..
COLLECT_GCC=/usr/bin/g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp --enable-cet=auto
Thread model: posix
gcc version 8.2.1 20180831 (GCC)
COMPILER_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../lib/:/lib/../lib/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_f05a3' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/collect2 -plugin /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/lto-wrapper -plugin-opt=-fresolution=/tmp/ccuwsM7q.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o cmTC_f05a3 /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../lib/Scrt1.o /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../lib/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/crtbeginS.o -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1 -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../..   Maybe you mean to ask on vscode-cpptools?

Yes, the problem presists when CMake Tools has been removed. Both
vsCode, and ccpTools have commented that the problem is not caused by
their code. I'll look elsewhere. Thanks!!
On Tue, 2018-10-09 at 21:09 -0700, vector-of-bool wrote:

Sorry, but I'm not sure that this is an issue with CMake Tools. Maybe
you mean to ask on vscode-cpptools?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c5
5493e4bb","name":"GitHub"},"entity":{"external_key":"github/vector-
of-bool/vscode-cmake-tools","title":"vector-of-bool/vscode-cmake-
tools","subtitle":"GitHub repository","main_image_url":"
https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open
in GitHub","url":"
https://github.com/vector-of-bool/vscode-cmake-tools"}},"updates":{"snippets":[{"icon":"PERSON","message":"@vector-of-bool
in #555: Sorry, but I'm not sure that this is an issue with CMake
Tools. Maybe you mean to ask on vscode- cpptools?"}],"action":{"name":"View Issue","url":"
https://github.com/vector-of-bool/vscode-cmake-tools/issues/555#issuecomment-428431333
"}}}
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "
https://github.com/vector-of-bool/vscode-cmake-tools/issues/555#issuecomment-428431333
",
"url": "
https://github.com/vector-of-bool/vscode-cmake-tools/issues/555#issuecomment-428431333
",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [vector-of-bool/vscode-cmake-tools] C++ initializer
list not recognized (#555)",
"sections": [
{
"text": "",
"activityTitle": "vector-of-bool",
"activityImage": "
https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@vector-of-bool",
"facts": [
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n"commandName":
"IssueComment",\n"repositoryFullName": "vector-of-bool/vscode-
cmake-tools",\n"issueId": 555,\n"IssueComment":
"{{IssueComment.value}}"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n"commandName": "IssueClose",\n"repositoryFullName":
"vector-of-bool/vscode-cmake-tools",\n"issueId": 555\n}"
},
{
"targets": [
{
"os": "default",
"uri": "
https://github.com/vector-of-bool/vscode-cmake-tools/issues/555#issuecomment-428431333
"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n"commandName": "MuteNotification",\n"threadId":
387749834\n}"
}
],
"themeColor": "26292E"
}
]

I do not see a problem with this initializer list code on linux.  It works for me (minus the incorrect syntax highlighting).  I'll create an issue on the cpptools repo for the syntax highlighting problem.


toDate() doesn't create copy of date

Description of the Issue and Steps to Reproduce:
Calling a toDate() on a moment will not create a copy of the date wrapped by the moment, but a pointer to the actual date that is still used by the moment.
Example:
var m = new moment();
var begin_date = m.startOf('month').toDate();
var end_date = m.endOf('month').toDate();
console.log(begin_date);
console.log(end_date);

returns
Fri Mar 31 2017 23:59:59 GMT+0200 (CEST)
Fri Mar 31 2017 23:59:59 GMT+0200 (CEST)

Here I expected the begin_date to be March 1st.
Environment:
Using on server. Meteor <IP_ADDRESS>, node 4.7.3, momentjs 2.13.0
If you are reporting an issue, please run the following code in the environment you are using and include the output:
console.log( (new Date()).toString())
console.log((new Date()).toLocaleString())
console.log( (new Date()).getTimezoneOffset())
console.log( navigator.userAgent)
console.log(moment.version)

the navigator.userAgent crashed the application, logs of other calls:
Wed Mar 22 2017 10:26:51 GMT+0100 (CET)
3/22/2017, 10:26:51 AM
-60
2.13.0

This behavior was changed in either 2.16 or 2.17 - can't remember which. Upgrade your version of the library.


Support for macOS, tvOS and macOS

Build started again: https://travis-ci.org/jsonmodel/jsonmodel/builds/203767227
It does need to work and fully run/succeed before I can merge.

Thanks @priya87. Apologies for the delay.

Thank you @billinghamj


[CLOSED] skip constructor: collectAnnArgsTicks

 Issue by sweirich
Thursday Jun 27, 2019 at 19:12 GMT
Originally opened as https://github.com/antalsz/hs-to-coq/issues/132

Skipping the AnnTick constructor with this function produces:
collectAnnArgsTicks :: (Tickish Var -> Bool) -> AnnExpr b a
                       -> (AnnExpr b a, [AnnExpr b a], [Tickish Var])
collectAnnArgsTicks tickishOk expr
  = go expr [] []
  where
    go (_, AnnApp f a)  as ts = go f (a:as) ts
    go (_, AnnTick t e) as ts | tickishOk t
                              = go e as (t:ts)
    go e                as ts = (e, as, reverse ts)

Definition collectArgsTicks {b}
   : (Tickish Id -> bool) ->
     Expr b -> (Expr b * list (Arg b) * list (Tickish Id))%type :=
  fun skipTick expr =>
    let fix go arg_0__ arg_1__ arg_2__
              := match arg_0__, arg_1__, arg_2__ with
                 | App f a, as_, ts => go f (cons a as_) ts
                 | as_, ts =>
                     if skipTick t : bool then go e as_ (cons t ts) else
                     match arg_0__, arg_1__, arg_2__ with
                     | e, as_, ts => pair (pair e as_) (GHC.List.reverse ts)
                     end
                 end in
    go expr nil nil.

i.e. Error: Expecting 3 patterns but found 2.

 Comment by antalsz
Thursday Jun 27, 2019 at 19:41 GMT

These are a straight-up bug, and I’m fairly sure I know the cause (although I haven’t looked at the source yet) – should be totally fixable!

 Comment by sweirich
Thursday Jun 27, 2019 at 19:39 GMT

What is the likelyhood you will be able to extend hs-to-coq to be able to handle these examples?
They seem fairly central to our development.

 Comment by sweirich
Thursday Jun 27, 2019 at 19:43 GMT

Ok! I'm going to stop trying to do skip these constructors now and pick up again after you have cracked it. I will commit and push to this branch now (in this broken state) in case you want to try out your fixes. But don't think you need to finish.


Cloning a dwarf turns them into a human when they pop out

Description

On the title
Reproduction

Clone a dwarf

maybe important that it was urist mchands the dwarf not a chosen race dwarf

Similar to #8972 as we've had this issue in the past with data not carrying to clones and everyone being cloned as a human.


Add missing require to RSpec generator root

Fix #1301.
This fixes an issue where Rail's autoload does not find it in some
environments.

Note to self: backport this to the 3-2-maintenance branch after merge.

LGTM, although I wonder if this shows a problem in the way the generators are tested.  Might be worth putting some effort into improving them?

@myronmarston if I could reproduce it'd be happy too. However, it seems neither Jon nor I have been able to yet.

Makes sense.  Merge when green.

BTW, are you planning to cut a 3.2.1 release with this after you backport it?  If you need help with that, let me know.


thread search quality of life improvements

Wrap around the results
Bunch of hotkeys to iterate through results.

cc @joshblum @adamjspooner


New version is not in PowershellGallery

Hi,
It looks like new version is released but not in Powershell Gallery?
Thanks.

I am not aware of any other release than 1.27. Internally, I'm using a newer version, but it's internal.


After using #r "nuget" line numbers of errors do not line up correctly

E.g.
#r "nuget:Microsoft.ML,1.4.0"
#r "nuget:Microsoft.ML.OnnxTransformer,1.4.0"
var x = hello, world;

reports:
(1,1): error CS0819: Implicitly-typed variables cannot have multiple declarators
(1,9): error CS0103: The name 'hello' does not exist in the current context

Error should occur on line 3 not line 1.

Add formatter to handle the line position error

This appears fixed:


Upgrade to ffi 2.0.1 - Dart 2.17

Hi,
ffi package (https://pub.dev/packages/ffi) is updated and requires dart 2.17 to be used.
Some others packages already use that version, so I have problems upgrading because a conflict with flutter_qjs ffi version.
Thanks.

force the use of ffi version 2.0.1, make the following changes to the app’s pubspec.yaml file:
dependency_overrides:
  ffi: ^2.0.1


Github permission denied when running yarn add quirrel/blitz

Bug Report
I'm following the tutorial on Processing Uploads in the Background. When I try to install the quirrel/blitz package, I get an error--
yarn add quirrel/blitz && npm run dev
yarn add v1.22.10
[1/4] Resolving packages...
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads<EMAIL_ADDRESS>Directory: /home/chris/Documents/giftalert
Output:
<EMAIL_ADDRESS>Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Input Code
yarn add quirrel/blitz
Expected behavior/code
Expected quirrel/blitz package to be installed under node_packages
Environment

Quirrel version: 1.2.0
Node/npm version: v14.16.0

I see that there is a different way of installing quirrel. blitz install quirrel
https://docs.quirrel.dev/getting-started/blitz-js


Inline changes view has folding actions

Testing #37164

cc @aeschli

The inline diff editor seems to not show the folding gutter annotations. IMO that should happen here too.

@aeschli And how is that achieved?

@alexandrudima Can you you help?

The problem was that the folding decorations were created on the model, not on the editor.
So the folding icons show up also in editors that have folding turned off.


Several devices of same type on same bus - how to address?

Hello! I am trying to implement device driver, but researching samples found what drivers model assumed we have single device of any type. For example HTS221 on I2C bus. What if I need to add several devices on same bus. We have only single HTS221_GPIO_DEV_NAME.
Reviewed several device drivers Kfiles - most have device name and device address. Looks like no way now to assign several addresses to same bus.
May be I am wrong and dont understand something. Anyway any help could be good.

Most or all of the sensor drivers assume only one instance, but could be refactored to support multiple instances. The uart and i2c drivers are better about supporting multiple instances, since it is much more common to need multiple uarts than it is to need multiple humidity sensors.

@MaureenHelm I believe that the I2C driver model also suffers from the same issue as reported by @webhive. Yet, more than one instance of the same driver seems like a very comme use case on a given I2C bus.

@MaureenHelm I believe that the I2C driver model also suffers from the same issue as reported by @webhive. Yet, more than one instance of the same driver seems like a very comme use case on a given I2C bus.

Is there a specific I2C driver you're looking at? We refactored a lot of drivers to support multiple instances last year, and have been enforcing it on new drivers since then.
https://docs.zephyrproject.org/latest/guides/dts/howtos.html#write-device-drivers-using-devicetree-apis

@MaureenHelm does  tmp116 driver support multiple instances? how to check if driver supports multiple?


e2e test failure: need to ensure idempotent application of Conditions

Describe the bug
This e2e test failure (PPND=true) was caused by the fact that the ISBServiceRollout Condition failed to get set idempotently in the code.
We attempted to set it here but got a resource version conflict error, then failed to enter that same code block on the subsequent reconciliation. Need to make sure there's no way that can happen.

Message from the maintainers:
Impacted by this bug? Give it a 👍. We often sort issues this way to know what to prioritize.

Hello, I tried to solve the issue.
This is what I did:
Update the ProcessChildObjectWithPPND function to ensure that the ISBServiceRollout Condition is set idempotently, avoiding resource version conflict errors and ensuring the condition is set on subsequent reconciliations.
You can review changes in this commit: https://github.com/lattaai13/numaproj-numaplane-421/commit/7353149ddd8df6f5136946d00299db46ef813e48.

[!CAUTION]
Disclaimer: The commit was created by Latta AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.

This issue was tried to solve for free by Latta AI - https://latta.ai/ourmission
If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.


missing lib linkage

Hey @septag
Just trying to compile your tool :D
It gave following error when linking:
  sxd.lib(os.obj) : error LNK2019: unresolved external symbol _GetProcessMemoryInfo@12 referenced in function _sx_os_processmem [glslcc\.build\src\glslcc.vcxproj]
So I added  #pragma comment(lib, "psapi.lib") somewhere to fix it :)
PS: Suggestion: what about providing binary releases?

Thanks, fixed it in cmake file.
and yes I'll put a binary as soon as it gets relatively stable

Fixed!


math/big: z.Exp(x, y, m) does not return, stuck in a dead loop

What version of Go are you using (go version)?

$ go version
go version go1.14.4 windows/amd64

Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\User\AppData\Local\go-build
set GOENV=C:\Users\User\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=D:\Go\workspace
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=D:\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=D:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\User\AppData\Local\Temp\go-build471823414=/tmp/go-build -gno-record-gcc-switches

What did you do?

func main() {
z := big.NewInt(0)
x := big.NewInt(54493)
y := big.NewInt(2636432291)
z.Exp(x, y, nil) <- program stuck at here, running forever and does not return...
fmt.Println("result: ", *z)
}
What did you expect to see?
expect to see  z = x**y
What did you see instead?
nothing...

Are you sure its stuck forever and not just taking a long time?
54493**2636432291 is going to be a huge number. Do you know any other programming language that is able to compute it in reasonable time on your computer?
(Im trying to compute the number of ram that is needed to present the number and will report back)

54493 > 2**15 and<PHONE_NUMBER> > 2**31. So we have 54493**2636432291 > (2**15)**(2**31) = 2**(<IP_ADDRESS>0) which means at least 4.026.531.840 bytes ~= 4 gigabyte  to represent the number exactly in ram (uncompressed). Since we rounded down twice it might as well be 8 gigabyte ram and that doesnt count in overhead for internal datastructures. Computing the number converting it to base 10 and printing it out will take a while. If the base 10 is computed as a whole we need about a byte per character to represent around log(10,2) ~= 3.32 bits So we have <IP_ADDRESS>0 / log(10,2) ~= 32gigabyte ram needed to represent and print the number in base 10.

Using ivy, we can easily calculate its logarithm base 2:
2636432291 * 2 log 54493
41481054344.5

So the number is 2 to the power of that, or 2**41,481,054,344.5 or 10 to the power of 12,487,041,609.5, more than 12 billion decimal digits. Your machine needs 41.4/8 or 5.2GB of memory just to hold the result. As is explained above, you really need much more than that, and converting it to decimal to print it.... well, it won't happy today.

Based on DDR4 system total memory bandwidth on a normal computer being about 32 gigabyte/sec from RAM If we assume doubling the number needs to be done at least 2**31 times and is done sequentially as a whole each time I guesstimate 4 years runtime. Surely cache local strategies will be able to improve on that on the other side the computer also needs to do the multiplications and write out the results so I think a few years give or take will be needed.
Does computing this number came up in a real world scenario or is based on some LeetCode question asking about the last digits of the result of this exponentiation?
https://github.com/rqg0717/LeetCode

Using ivy, we can easily calculate its logarithm base 2:
2636432291 * 2 log 54493
41481054344.5

So the number is 2 to the power of that, or 2**41,481,054,344.5 or 10 to the power of 12,487,041,609.5, more than 12 billion decimal digits. Your machine needs 41.4/8 or 5.2GB of memory just to hold the result. As is explained above, you really need much more than that, and converting it to decimal to print it.... well, it won't happen today.

How about a 256-bit big integer please? I need to calculate 256-bit int ** 256-bit int...

Does computing this number came up in a real world scenario or is based on some LeetCode question asking about the last digits of the result of this exponentiation?
https://github.com/rqg0717/LeetCode

I need it in https://github.com/rqg0717/Homomorphic-encryption in a real world scenario. Thank you.

Are you sure its stuck forever and not just taking a long time?
54493**2636432291 is going to be a huge number. Do you know any other programming language that is able to compute it in reasonable time (how long does it take?) on your computer without filling up all the ram and e.g. swapping to disk which will make it even slower?

Yes, we have not faced any issue using C# in https://github.com/rqg0717/Homomorphic-encryption

Your C# example is using https://en.wikipedia.org/wiki/Modular_exponentiation, not computing the exponent directly, which is the only way to achieve this in a reasonable time period for crypto purposes.

In C# you're doing the modular reductions as the computation proceeds
BigInteger em = ((g.modPow(m, nsqr)) * (r.modPow(n, nsqr))) % nsqr;

In Go, you're doing all the math first and then the modular reduction.
gm.Exp(&g, m, nil)
rn.Exp(&rn, &n, nil)

I believe this should be
gm.Exp(&g, m, &nsqr)
rn.Exp(&rn, &n, &nsqr)

In C# you're doing the modular reductions as the computation proceeds
BigInteger em = ((g.modPow(m, nsqr)) * (r.modPow(n, nsqr))) % nsqr;

In Go, you're doing all the math first and then the modular reduction.
gm.Exp(&g, m, nil)
rn.Exp(&rn, &n, nil)

I believe this should be
gm.Exp(&g, m, &nsqr)
rn.Exp(&rn, &n, &nsqr)

You are absolutely right! Thank you very much and sorry for the trouble.

Your C# example is using https://en.wikipedia.org/wiki/Modular_exponentiation, not computing the exponent directly, which is the only way to achieve this in a reasonable time period for crypto purposes.

 Thank you very much and sorry for the trouble.


Make resolvers return $this for chaining

Being able to chain resolver calls will allow for turning simple cases into one-liners, which is a good thing.
(Interestingly, this is most interesting when only doing one call, which is technically not chaining perhaps. Still, it's not possible without returning this, because you need to pass the object to the storage.)

Putting this in 0.5 because it's a really simple change to make the API cleaner and it's absolutely the right time for things like that (and because it's small, it won't affect the scope too much).


A language/format for 3D rendering

3D rendering in modern engines often use command buffers and optimize the order of draw calls. There are also techniques where you sort draw calls in parallel. This requires a different kind of thinking and lots of tasks that machines are better at than humans.
So far, we have look at this as an API problem (Gfx, Glium), but due to the massive amount of work, the focus has been low level.
Maybe this could be treated like a high level language problem, where you type check and generate shaders and such for different targets. By collecting as much information about rendering upfront, one could do early optimization, maybe before even running the program. A language could also be used to determine whether it will work for a given version of a graphics API.
I looked at Ogre3D, which uses a custom format for materials. However, the idea could be extended to all the technical details of 3D rendering, such that you have a separation between game logic and rendering. This could also make it easier to switch between different techniques without rewriting lot of code.
The language would be declarative instead of procedural, in order to let the rendering engine do optimizations. Partial evaluation is a possible technique that would work for any function that returns data that can be stored.
Materials could be described in a graph format such that it can be edited with Mush.
Example:
// Assets will be loaded when needed.
grass: Texture = load_png("grass.png")
// Ask semantics, which is configured at startup.
landscape: Mesh = load_mesh(ask for "landscape mesh file")

// Types can be declared and will be checked.
Mat4: Type = [[f32; 4]; 4]
UV: Type = [f32; 2]
Position: Type = [f32; 3]

textured: Program = {
  buffers { uv : UV, pos : Position }
  uniforms { transformation : Mat4 }
  vertex_shader (GLSL 150): load_vertex_shader("textured_150.glsv")
  fragment_shader (GLSL 150): load_fragment_shader("textured_150.glsf")
}

// You communicate with Rust through functions.
fn render_grass(transformation: Mat4) {
  enable_depth()
  Textured.render(uv: landscape.uvs, pos: landscape.vertices,
    transformation: transformation)
}

// Watch semantics, where the material is reloaded if the file changes.
metal: Material = load_material(watch file "metal.mat")

fn render_sphere(pos: Position) {
  enable_depth()
  metal.render(pos: pos)
}

// A scene optimizes for the order you expect to call functions.
// `[]` is used for sequence, `{}` is used for choice.
world: Scene = [
  render_grass,
  render_sphere
]

// At startup you create a render object.
let render = render::new_opengl(OpenGL::V3_2)
  .tell_string("landscape mesh file", "landscape.obj")
  .build()
  .unwrap();

// Alternative, save setup and load from prepared binary.
// render.save("render_config.opengl.bin");
// let render = render::load("render_config.opengl.bin").unwrap();

// When you call prepare, it loads the assets needed.
let render_grass = render.prepare("render_grass");
let render_sphere = render.prepare("render_sphere");
let scene = render.scene("world");
for e in window {
  if let Some(args) = e.render_args() {
    let transform = math::id();
    render.begin_scene(&scene);
    render.call(render_grass, &[transform.into()]);
    render.call(render_sphere, &[[1.0, 0.0, 0.0].into()]);
    render.end_scene(&scene);
  }
}

I need to work on other stuff first, so closing this now.


Increase Line Height for larger topic names

In the case of a larger topic name, which requires line breaks, the text lines are "glued" together.

I wanted to push a forked branch with a suggested fix, but I do not have enough permissions. 😞


Efficient tree implementations for the mtree_cwm instruction

The instruction mtree_cwm is defined as:

Copies a Merkle tree with root R and updates a node at depth d and index i in the copied tree to value V′.

We currently have the following tree implementations:

Sparse Merkle Tree
Merkle Mountain Range
Simple Merkle Tree

For all the data structures above, depending on the size of the tree a copy is potentially a very expensive operation. The issue is about how to design the above structure as so to support a more efficient mtree_cwm

The semantics of mtree_cwm implies in both a new copy, and a change to this copy. The issue at the hand is the cost of the copy itself. To remove it we can use copy-on-write, or use a persistent data structure.

This issue may be superseded by the discussion of the AdviceProvider changes (https://github.com/0xPolygonMiden/miden-vm/discussions/750) and the proposed replacement of mtree_cwm by mtree_clone (https://github.com/0xPolygonMiden/miden-vm/issues/762). Wdyt?


fix: Normalize newlines of read definitions

This PR fixes #19 by replacing CRLF with LF after reading definition files.

Thanks for the PR. I believe this issue was resolved in the latest version.


Add Semicolons to zoom.js

But... why?

I know that semicolons are optional in JS. It is considered "best practice", and makes minification easier.


Cannot use due to automatic filtering of all assemblies starting with "Microsoft"

I was really excited and eager to use this project in a new webapp that our team is building here at Microsoft. Unfortunately, as things currently stand, I am not able to. It makes sense to exclude the Microsoft framework assemblies from scanning; however, the current logic is unintentionally also excluding our custom webapp assemblies. This is because even our internal custom assembly names are also required to start with "Microsoft".
I would like to propose a solution where any specified assemblies via the EndpointDiscoveryOptions.Assemblies prop would bypass the hard coded exclusion check. In that way, I can pass in the "Microsoft.MyWebApp" assembly and it will still get scanned while the "Microsoft.AspNetCore.Authorization" assembly would still get excluded as desired.
If I submit a PR with the proposed changes, would you be willing to consider merging it in?

thanks for bringing this to our attention.
v4.3.1 has been released with a fix.
now you can do:
builder.Services.AddFastEndpoints(o =>
{
    o.DisableAutoDiscovery = true;
    o.Assemblies = new[] { typeof(Microsoft.MyWebApp).Assembly };
});


Wombo API images coming out really broken

My wombo API images are coming out very weird and broken.
This is what I'm sending for image spec
"input_spec": {
"style": 5,
"prompt": 'Merlin',
"width": 512,
"height": 512
}
and its coming out completely busted. Help?

The image is blurry and doesn't make any sense. Nothing about it looks like Merlin at all.

You might be in the wrong place, my API doesn't take an input_spec parameter and is working perfectly fine with the following code:
const WomboDream = require('dream-api');

WomboDream.generateImage(5, "Merlin").then((image) => {
    console.log(image);
});

Okay, I am using the same API as this gothub repo... just calling it manually instead of through the github repo.
If you go to the dist folder... and open the api.js file... you will see that "under the hood" the body that's passed is:
var jsonData = {
"input_spec": {
"prompt": prompt,
"style": style,
"display_freq": freq
}
};
Since I am doing exactly the same thing... how is the quality much better for you?
Can you do me a favor and just check prompt "Meflin" and Fantasy.. and let me know if it returns a good image?

The only thing I'm doing differently is I am passing a width and a height parameter. I wonder if that could be the cause.... weird.

Hmmm... still trying to figure this out. When I omit the height and width the task fails.

You can see in the screenshot, Dream doesn't support height and width parameters, they get disregarded when actually processing the task. From what I can tell, API versions 1 and 2 do not support height and width. The new premium API and wombot do, but they are not publicly available.
Is there a reason why you are trying to use the internal methods instead of the public ones? Are you trying to use a different API endpoint and are you calling the checkStatus function after you generate the task ID? It sounds like the image isn't done processing.


Threshold for HMD Rotation.

Hello! I'd like to request a feature for the camera2 mod. Whilst playing the game, I have this tendency to kind of, look slightly to the left, by about 5-10 degrees. This obviously isn't usually a problem at all, but I've also recently gotten into making short-form content for Beatsaber, and this is where I'm having a problem. When exporting a finished video, I export it vertically for mobile resolution (1080x1920, 9:16 aspect ratio), and due to this slight left head turn, all of the content is at the very right hand side of the screen due to the tight view in the middle of the recording. So, my feature request is this:
Add some kind of "Threshold" system for rotation, where, if the HMD's vertical (Z axis) rotation is within a certain threshold, the camera is either forced or optionally is at least nudged back towards facing directly forward. This system will allow me (or anyone else utilizing this feature) to still be able to look around, behind, above, and to the sides unrestricted, whilst also making the gameplay more centred on the screen. Below, I have attached a picture of the issue I was talking about before of the gameplay being at the very right hand side of the screen.

Notice how the "gameplay" is off centre and the right saber is barely visible compared to the left saber. Ideally, I'd love for a non-intrusive method to re-centre my camera to face forwards. Fixing this issue.

Hi, this is already possible, it just happens to not be exposed in the ingame UI
If you edit the config file of your camera, you can use the targetRot option to offset the look direction of the camera compared to what it would normally be.
Additionally, you can use Smoothfollow > limits to constrain the range the camera can rotate if you want to do that


grafana: add metrics of all transactions in pool by type

Related to #11475

let's though...I have a hunch this should be rate? I'm going to push some commits to the branch :)


internal/core/convert: cue tag can't be parsed when cue contains a comma (using cuego)

What version of CUE are you using (cue version)?

$ cue version
cue version v0.4.3 darwin/arm64

Does this issue reproduce with the latest release?
Yes
What did you do?

package main

import (
	"fmt"

	"cuelang.org/go/cuego"
)

type Comma struct {
	Letters string `json:"letters,omitempty" cue:"=~\"^[a-z](,[a-z])*$\",opt"`
}
type Semikolon struct {
	Letters string `json:"letters,omitempty" cue:"=~\"^[a-z](;[a-z])*$\",opt"`
}

func main() {
	s := Semikolon{"a;b;c;d"}
	if err := cuego.Validate(s); err != nil {
		fmt.Println(err)
	} else {
		fmt.Println(s.Letters)
	}
	c := Comma{"a,b,c,d"}
	if err := cuego.Validate(c); err != nil {
		fmt.Println(err)
	} else {
		fmt.Println(c.Letters)
	}
}

What did you expect to see?
a;b;c;d
a,b,c,d

What did you see instead?
a;b;c;d
invalid tag "=~\"^[a-z](" for field "letters": string literal not terminated (and 1 more errors)

The functions parsing the cue tag strips everything after the first comma to allow adding options (like "opt" or "req").
I see three possible ways to change the parser:

strip "known" options from the end (currently "opt" and "req")
find and skip pairs of (not escaped) quotes from the start
assume the options can't contain a quote: split at the first comma after the last quote (if any)

I'm in favor of option #3 as it would be relatively simple to implement while still being generic.
I've implemented a fix and can prepare a PR if you'd like me to.

Personally, I agree that option 1 isn't great, and option 3 seems reasonable to me. Option 2 also seems reasonable, but I agree that the extra code doesn't seem necessary right away. cc @rogpeppe @4ad to see if they have thoughts.

Agreed with @mpvl that this is a worthwhile improvement.


all: testdata/*.gz files should zero mtime in headers

Apparently Debian expects to be able to zero mtimes in imported trees. I don't understand exactly why that's a problem, since I don't think we look at the mtime, but it's easy enough to zero those bytes to make Debian happy. We should probably do that.
---------- Forwarded message ---------
From: Sean Burford<EMAIL_ADDRESS>Date: Wed, Mar 23, 2016 at 7:20 PM
Subject: Fixing timestamps in golang testcase .gz files?
To: Russ Cox<EMAIL_ADDRESS>Hi,
In https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=819030 I ask the golang debian package maintainers to skip overwriting of the gzip header mtimes on these golang files (because their reproducible build script produces unique versions of these files with every new package version):
./usr/share/go/src/encoding/json/testdata/code.json.gz
./usr/share/go/src/debug/elf/testdata/hello-world-core.gz
./usr/share/go/src/compress/gzip/testdata/issue6550.gz
Looking at the source for the normalizer (https://anonscm.debian.org/git/reproducible/strip-nondeterminism.git/tree/lib/File/StripNondeterminism/handlers/gzip.pm), a global fix would be to zero the mtimes on these files upstream (in the go source).  ie. zero bytes 4-7 in each of those files.
How would I go about arranging this?

I'll send the CL.

On 24 March 2016 at 13:21, Caleb Spare<EMAIL_ADDRESS>wrote:

I'll send the CL.

Thanks, I'd been looking at the bug report and getting slightly confused by
it :-)

if our test suite doesn't complain about the changed mtime
by Debian's reproducible build script, why should we care
about changed mtime in the *.gz files.

@minux

*.gz files are not compressible, so changing
the 120KB file will add 120KB to the repo, or does git do
delta compression on binary files too?

Yes, binary files can be delta-compressed in packfiles just fine.


Is a full Weight axis (from 100 to 900) and a Width axis planned?

For example: despite being unrelated to this project, Archivo gained a fully variable version with Width and Weight axes.

Note: Sorry for this being a duplicate of #16, but please would you keep this open for someone who are interested on this? Thank you!

If necessary, see https://github.com/google/fonts/issues/1440 .


File encryption and decryption

Can we encrypt and decrypt files like mp3, video files

@shalini-whiz   it is working with video files?


Add Key.SignData

Fixes #86 CC: @chrisfenner, depends on #94
Code, Tests, and Documentation for SignData have been added. Common code has been moved to a getSignature function.
SignData does the following:

If the key is unrestricted, Go performs the hashing and passed the hash digest to tpm2.Sign
If the key is restricted, we first call tpm2.Hash to get a hash ticket, then pass the ticket and digest to tpm2.Sign.

@lulumel0n @chrisfenner  this is now ready for review PTAL


invidious: unstable-2023-06-06 -> unstable-2023-07-05

Description of changes
Update invidious to the latest version.
@sbruder @infinisil
Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

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

1 package built:

invidious


Module 3 exercises [Edith Kwablah]

Module3ex1(Land condition).pdf
Module3ex2(Market suitability).pdf

Well done, Edith. Your maps look great, and it is clear that you understand the material in Module 3 and can successfully apply it using the graphical modeler. Thanks for your participation


Redshift Serializable isolations and dbt transactions

Describe the feature
We use dbt on top of Redshift at a decent scale. It's about 1600 models, many updated hourly and every quarter hour. We also have a large BI instance hooked up to the same database. As we approached 1000 BI users we started to have rampant serializable isolation violations in redshift. As you may know this is the only isolation available, but the granularity is at the table level. If the BI tool joins a source table for a dbt model and that model's output, it is very easy to get a non serializable sequence of events.
We have found that the inbuilt redshift materializations hold long transactions while doing the following:
Table:

CTAS into new table
ALTER cur -> old
ALTER new -> cur

Incremental:

CTAS into tmp table
delete from cur where id in tmp
insert into cur * from tmp

Describe alternatives you've considered
We tried Redshift's new datashare feature to get, effectively, a kind of snapshot isolation but it's cumbersome.
Who will this benefit?
Redshift users who encounter this issue. We're not sure how many there are out there. This could increase the commit queue delays since there are two commits but decrease the serialization issues. As well, in the table materialization, it could leave a stray _new table which is cleaned up in the next run, if you get a failure in the ALTER
Are you interested in contributing this feature?
Our solution was to break the above into two separate transactions after each CTAS and have been running it for two weeks. It has reduced our serialization errors 100x. We can submit the code as a PR attached to this issue but wanted to see if this is something that would be accepted before we posted. They are done as:
{% materialization incremental, adapter='redshift' -%}

We are running into this issue frequently as well. @nicku33 do you have a fork or change you could share with the workaround you implemented? Is it still working for you?

Hey @nicku33 we are also getting the same error quite frequently (serializable isolation violation) can you share any workaround you implemented.

Hey @nicku33 I'm also becoming increasingly effected by this error, if you could share any work around you have implemented it would be very much appreciated thank you 😁

Hey sorry, I've been just buried lately.
Here is the materialization we wrote.
We scan for locks all the time in redshift and migrate the lock-prone ones to this. It makes vacuum work really hard though. I think the hope is that since we are replacing all rows, you still get high scan rate since entire blocks will be marked deleted. Still it might be hard on the catalog.  I'm also trying to get someone from AWS/Redshift to chime in on this .
If dbt folk think this would make a good materialization for inclusion we'll make a PR. Maybe there's a better name than soft_replace
soft_replace.sql
{% macro replace_all_rows(tmp_relation, target_relation) %}
    delete from {{ target_relation }} where true;
    insert into {{ target_relation }} ( select * from {{ tmp_relation }} );
{%- endmacro %}

{% materialization soft_replace, default -%}

  {% set target_relation = this.incorporate(type='table') %}
  {% set existing_relation = load_relation(this) %}
  {% set tmp_relation = make_temp_relation(this) %}

  {{ run_hooks(pre_hooks, inside_transaction=False) }}

  -- `BEGIN` happens here:
  {{ run_hooks(pre_hooks, inside_transaction=True) }}

  {% set to_drop = [] %}
  {% if existing_relation is none %}
      {% set build_sql = create_table_as(False, target_relation, sql) %}
  {% elif existing_relation.is_view or should_full_refresh() %}
      {#-- Make sure the backup doesn't exist so we don't encounter issues with the rename below #}
      {% set backup_identifier = existing_relation.identifier ~ "__dbt_backup" %}
      {% set backup_relation = existing_relation.incorporate(path={"identifier": backup_identifier}) %}
      {% do adapter.drop_relation(backup_relation) %}

      {% do adapter.rename_relation(target_relation, backup_relation) %}
      {% set build_sql = create_table_as(False, target_relation, sql) %}
      {% do to_drop.append(backup_relation) %}
  {% else %}
      {% set tmp_relation = make_temp_relation(target_relation) %}
      {% set create_sql = create_table_as(True, tmp_relation, sql) %}
      {% call statement("run_query_statement", fetch_result=false, auto_begin=true) %}
        {{ create_sql }}

      {% endcall %}
      -- COMMITTING so that our tmp table isn't holding up changes on what informed it
      {% do adapter.commit() %}

      {% do adapter.expand_target_column_types(
             from_relation=tmp_relation,
             to_relation=target_relation) %}
      {% set build_sql = replace_all_rows(tmp_relation, target_relation) %}
  {% endif %}

  {% call statement("main") %}
      {{ build_sql }}
  {% endcall %}

  {% do persist_docs(target_relation, model) %}

  {{ run_hooks(post_hooks, inside_transaction=True) }}

  -- `COMMIT` happens here
  {% do adapter.commit() %}

  {% for rel in to_drop %}
      {% do adapter.drop_relation(rel) %}
  {% endfor %}

  {{ run_hooks(post_hooks, inside_transaction=False) }}

  {{ return({'relations': [target_relation]}) }}

{%- endmaterialization %}

@nicku33 thanks for your code.
What I did to make this less painful was add in a shell retry loop for any failed models - at least for us, this has really helped in practice - previously our runs failed most days and after adding we have succeeded on retry so far. However, I would imagine we are lot smaller in scale than many other folks, but in case anyone finds this useful too...
That said, we did have to move off of DBT cloud and run DBT ourselves in a scheduled container. DBT cloud jobs appear to only allow you to reference state for the last passing job - I wanted to add a 'follow up' retry job(s) in DBT cloud, but this type of retry selects errors from the previous run.
This runs dbt run via poetry then loops through running it again, referencing state from the prior run to re-run any failed models until completion until the limit of 5 retries has been exhausted.
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'

# function to handle retries, called later
function dbt_retry () {
  # retry any errors and downstream models
  if (poetry run dbt run --select result:error+ --defer --state previous_target)
  then
    echo "retry succeeded"
  else
    echo "retry failed: sleeping 1 minute"
    # copy target again to use success/failure state on the next retry
    sleep 60
    cp -r target previous_target && false
  fi
}

# remove ./target if it exists
rm -rf target
# do a full run normally
poetry run dbt run || true
cp -r target previous_target
# retry up to 5X for any fails
for i in 1 2 3 4 5; do dbt_retry && break; done

We tried retries but eventually even that didn't work. This was a table which had, at any given time, 5-20 concurrent readers as it was read by BI. We needed low latency so no chance to materialize something uncontended.

@nicku33 We incorporated the soft_replace materialization for our models that most frequently had serializable isolation violations and haven't experienced that issue in a week! Thank you for sharing!

Wonder if this can help: https://aws.amazon.com/about-aws/whats-new/2022/05/amazon-redshift-snapshot-isolation-level-support-concurrent-transactions/

Wonder if this can help: https://aws.amazon.com/about-aws/whats-new/2022/05/amazon-redshift-snapshot-isolation-level-support-concurrent-transactions/

It looks like snapshot support for DDL does not have rename table, which is the key to table swaps for 'table' materialization. https://docs.aws.amazon.com/redshift/latest/dg/c_serial_isolation.html


Get all EC2 IP addresses

See https://github.com/arkadiyt/aws_public_ips/issues/28

I'm already doing this.  https://github.com/duo-labs/cloudmapper/blob/ca0153ac1439229afd60ec3ca5496de68022fbc0/shared/nodes.py#L320


(FACT-1222) Update OS release regex for SPARC Solaris 10

SPARC and X86 Solaris systems contain slightly different
release strings in /etc/release. They differ by a single
character, where SPARC uses the letter 's' and X86 uses
the letter 'x'. This commit relaxes the regex used to grab
this string so as to be compatible with both architectures.

Tested in Sol10 SPARC and x86:
Sol 10 SPARC:
-bash-3.2# /opt/puppetlabs/puppet/bin/facter os
{
  architecture => "sun4v",
  family => "Solaris",
  hardware => "sun4v",
  name => "Solaris",
  release => {
    full => "10_u10",
    major => "10",
    minor => "10"
  }
}

sol 10 x86:
-bash-3.2# /opt/puppetlabs/puppet/bin/facter os
-bash-3.2# /opt/puppetlabs/puppet/bin/facter os
{
  architecture => "i86pc",
  family => "Solaris",
  hardware => "i86pc",
  name => "Solaris",
  release => {
    full => "10_u11",
    major => "10",
    minor => "11"
  }
}

What's it actually matching in /etc/release?

The lines we're matching are:
x86:
Oracle Solaris 10 1/13 s10x_u11wos_24a X86
SPARC:
Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC
Notice the 'x' and 's' which differ between the two.


fix: adding missing appwrite volume

Thanks to @stnguyen90 and @michachan
we realised that there is a missing volume dependency. Link to docker-compose
I've tested the code locally by running the whole stack, and stuff that didn't work previously works fine now.
I am not sure if it's good practice to share stuff through /tmp, but for the time being, could we get it in, so we have a functional version of appwrite?
Keep up the great work, KUDOS to everyone who participated in the search and @andrasbacsai for making Coolify a thing ;)
Output from local:

One note- I think Prettier may have impacted lines outside of the change. Can I suggest making 2 separate commits with the stylistic changes or removing them from this PR?

One note- I think Prettier may have impacted lines outside of the change. Can I suggest making 2 separate commits with the stylistic changes or removing them from this PR?

I've added you as contributor to my fork. If you do it GH will recognise you as a proper contributor !

My mistake- it was just how github was reading the diffs. LGTM

Also, are you supposed to merge into next instead of main?


feat: New bootstrap function

Bootstrap function that checks for the required configuration and return a
function to stop the Datadog integration.
Closes: https://github.com/coopnorge/go-datadog-lib/issues/427

@bendiknesbo, @hadrienk, @hawi74 should we introduce metrics improvements in this PR?
Ref:

https://github.com/coopnorge/go-datadog-lib/issues/433

I have remove the ability to enable/disable tracing and profiling individually. After some offline conversation I belive the right thing is to either disable or enable the integration with Datadog given that this is Coop's method to ensure that the right insight into the components is provided for operational use.


Takes for ever on android repo

It took me 10 hrs for 3241 files to be analyzed for an android repo, is this normal or am i missing something

@startthread: sounds like a lot of time indeed. Which build system are you using ?

I am using gradle wrapper to build

Is the issue still present in the latest version of Infer? Maybe we can add some logging to Infer to narrow down the issue to eg a particular file or class in your project.

Please re-open if you are still experiencing this with the latest release.


Avoid wiping existing DBs on git pull

Hi there - I am planning to get into your app over the coming weeks. Can you please explain how to take advantage of:
COLLECTON_NAME_FOR_INGESTED_DOCS="" # collection name for the docs you want to ingest
DOCS_TO_INGEST_DIR_OR_FILE="" # path to directory or single file with your docs to ingest

I'd like to be assured that when I a pull a new release that I will still have access to my existing doc collections, please.
Thanks.

Sure, the easiest way is to set:
VECTORDB_DIR="some-custom-dir-name-outside-of-project-dir/" # directory of your doc database

That way you don't have to worry about the chroma/ directory being freshly pulled from this repo. To make sure your custom directory contains the default collection docdocgo-documentation, which is what the chroma/ directory contains initially, you should be able to simply copy the contents of chroma/ to your chosen custom directory.
As an alternative way to handle the issue of the default collection, you can create your own version of the default collection by ingesting the README, along with any other files you wish to be included. To make the resulting collection the default collection, use the command /db rename --default <admin pwd you set>, where the admin password is the value you assigned to the BYPASS_SETTINGS_RESTRICTIONS_PASSWORD environment variable.
The environment variables you mentioned in your post are only useful if you want to ingest documents not using the Streamlit UI, but in console mode. If you are using the Streamlit UI, there is not much advantage in ingesting via the console mode.
Thank you for flagging this issue. I have been so focused on the multi-user, cloud db use case that I haven't done enough due diligence to iron out the wrinkles in the local db use case.

Thanks for advice.


Enhance/update Events and Handlers

Hi,
This PR contains following changes

pkg/event/event.go

Added func Message() to event package, to avoid code repetition across all handlers.
Added provision for changing the message format based on object kind.
Modified Message format for Namespace events.A namespace in namespace  has been created: default ==> A namespace default has been created

pkg/handlers/

Made code change for using func Message()
Enhanced flock handler by removing unused code.
Made cleanup in handlers.go (auto fmt correction done by vscode)

Note:
Do let me know incase of changes/modifications with the addition of func Message(). It was made as a part of the events package for code reusability.
Thanks.

LGTM

@tylerauerbeck Thanks..!! 👍


mysql start failed

My environment：

win10 enterprise
Docker version 17.03.1-ce, build c6d412e
Disk Info：

   C:\Users\wmic LogicalDisk  get FreeSpace,Size /value
    FreeSpace=195639316480
    Size=261550501888

    FreeSpace=175950643200
    Size=249965834240

    FreeSpace=713322553344
    Size=1000068870144

I try the following steps:

git clone https://github.com/laradock/laradock.git
cd laradock

and then opened powershell :

PS D:\Users\Workspace\Docker\laradock> docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
PS D:\Users\Workspace\Docker\laradock> docker-compose.exe up -d mysql

laradock_mysql_1 container logs:
2017-04-27T09:54:19.483231Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2017-04-27T09:54:19.483271Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2017-04-27T09:54:19.484067Z 0 [Note] mysqld (mysqld 5.7.18) starting as process 1 ...
2017-04-27T09:54:19.486296Z 0 [Note] InnoDB: PUNCH HOLE support available
2017-04-27T09:54:19.486313Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2017-04-27T09:54:19.486316Z 0 [Note] InnoDB: Uses event mutexes
2017-04-27T09:54:19.486327Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2017-04-27T09:54:19.486329Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-04-27T09:54:19.486331Z 0 [Note] InnoDB: Using Linux native AIO
2017-04-27T09:54:19.486562Z 0 [Note] InnoDB: Number of pools: 1
2017-04-27T09:54:19.486639Z 0 [Note] InnoDB: Using CPU crc32 instructions
2017-04-27T09:54:19.488252Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2017-04-27T09:54:19.495564Z 0 [Note] InnoDB: Completed initialization of buffer pool
2017-04-27T09:54:19.496766Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2017-04-27T09:54:19.507875Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2017-04-27T09:54:19.508654Z 0 [Note] InnoDB: Log scan progressed past the checkpoint lsn 7514340
2017-04-27T09:54:19.508667Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 7514514
2017-04-27T09:54:19.509098Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 7514514
2017-04-27T09:54:19.509112Z 0 [Note] InnoDB: Database was not shutdown normally!
2017-04-27T09:54:19.509115Z 0 [Note] InnoDB: Starting crash recovery.
2017-04-27T09:54:19.515643Z 0 [Note] InnoDB: 1 transaction(s) which must be rolled back or cleaned up in total 69545 row operations to undo
2017-04-27T09:54:19.515666Z 0 [Note] InnoDB: Trx id counter is 2816
2017-04-27T09:54:19.516093Z 0 [Note] InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percent: 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
2017-04-27T09:54:20.018805Z 0 [Note] InnoDB: Apply batch completed
2017-04-27T09:54:20.119877Z 0 [Note] InnoDB: Starting in background the rollback of uncommitted transactions
2017-04-27T09:54:20.119903Z 0 [Note] InnoDB: Rolling back trx with id 1291, 69545 rows to undo
2017-04-27T09:54:20.125233100Z
InnoDB: Progress in percents: 12017-04-27T09:54:20.120701Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2017-04-27T09:54:20.120711Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2017-04-27T09:54:20.120730Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2017-04-27T09:54:20.123829Z 0 [Warning] InnoDB: 1048576 bytes should have been written. Only 1028096 bytes written. Retrying for the remaining bytes.
2017-04-27T09:54:20.123847Z 0 [Warning] InnoDB: Retry attempts for writing partial data failed.
2017-04-27T09:54:20.123870Z 0 [ERROR] InnoDB: Write to file ./ibtmp1failed at offset 11534336, 1048576 bytes should have been written, only 1028096 were written. Operating system error number 28. Check that your OS and file system support files of this size. Check also that the disk is not full or a disk quota exceeded.
2017-04-27T09:54:20.123878Z 0 [ERROR] InnoDB: Error number 28 means 'No space left on device'
2017-04-27T09:54:20.123880Z 0 [Note] InnoDB: Some operating system error numbers are described at http://dev.mysql.com/doc/refman/5.7/en/operating-system-error-codes.html
2017-04-27T09:54:20.123884Z 0 [ERROR] InnoDB: Could not set the file size of './ibtmp1'. Probably out of disk space
2017-04-27T09:54:20.123887Z 0 [ERROR] InnoDB: Unable to create the shared innodb_temporary
2017-04-27T09:54:20.123889Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
 22017-04-27T09:56:01.639075Z 0 [Warning] InnoDB: 10 threads created by InnoDB had not exited at shutdown!
2017-04-27T09:56:01.640306Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2017-04-27T09:56:01.640345Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2017-04-27T09:56:01.640382Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2017-04-27T09:56:01.640398Z 0 [ERROR] Failed to initialize plugins.
2017-04-27T09:56:01.640406Z 0 [ERROR] Aborting
2017-04-27T09:56:01.640444400Z
2017-04-27T09:56:01.640421Z 0 [Note] Binlog end
2017-04-27T09:56:01.640464Z 0 [Note] Shutting down plugin 'MyISAM'
2017-04-27T09:56:01.640484Z 0 [Note] Shutting down plugin 'CSV'
2017-04-27T09:56:01.642687Z 0 [Note] mysqld: Shutdown complete
2017-04-27T09:56:01.642804600Z

I fixed it.
DATA_SAVE_PATH in env-example is /tmp,
can not work in windows。

Interesting! Thanks for updating us with the solution you've found.

I also suffered from this problem. (Windows 10 Pro)
It may be better to annotate docker-compose.yml or Documentaion.

I fixed it.
DATA_SAVE_PATH in env-example is /tmp,
can not work in windows。

This works for me. But is there an explanation about this? what is data_save_path used for?

I will fix it, my cause is the volume that in the docker-compose file is used by another container.
I assign a new volume then it works.


[Select] Allow customizing Select based on its variant

Wraps the root Input of Select in styled(). This allows overriding the Select using variants in the theme.
Fixes #28886
Before: https://codesandbox.io/s/material-ui-themes-forked-msl7f?file=/src/index.js
After: https://codesandbox.io/s/select-customisation-fix-oewjb?file=/demo.js

If the purpose is to allow the select to be styled by variant, it's enough to just include it in the ownerState and not pass it to the input elements, no?

The variant prop has already been included in ownerState (although it was just the value from props, not the one coming from FormControl or default), but it didn't work. I believe the styled component must have a "real" prop to apply variant overrides, mustn't it?

Could you maybe create a sandbox with an example that didn't work and what is fixed, and we can test alternative fixes.

Sure, added to the description of this PR.

Thanks a lot for getting around to doing this. Tested and played around with the playground, and I seem to be able to achieve the customisation I wanted to achieve 🥳

👋 The migration PR has been merged.
Please follow these steps to make sure that the contents are all updated. (Sorry for the inconvenience)

pull latest master from upstream to your branch
if your PR has changes on the *.md or demo files, you are likely to encounter conflict because all of them have been moved to the new folder.
2.1 revert the change on those markdown files you did
2.2 pull latest master from upstream (you should not see conflict)
2.3 make the changes again at docs/data/material/*
run yarn docs:api

you might see the changes in docs/pages/material/api/* if your PR touches some of the components
it is okay if there is no changes

If you are struggle with the steps above, feel free to tag @siriwatknp


Can't read documentation from mobile

When I open site https://rxjs-dev.firebaseapp.com on Android phone I just see non closable BLM screen.
wtf? I appreciate your desire to help somebody, but I'm from Ukraine we're here don't care about black or white in the US (we're here don't care about skin colot at all) and I'm sure as well as people in the Russia, or China, or Turkie, or in the many of the Africa countries. To me, BLM it is the local US issue.
So why I can not open the documentation on the mobile?

Please use menu button. Even before blm banner we had front page and there was menu to access document.

Thanks and nice, but any way is not obvious, you might be better in the UX

Perhaps would improve UX if the message is "ALL LIVES MATTER", instead of a portion of human lives


update weaving sales contract

update weaving sales contract

Coverage increased (+0.006%) to 64.409% when pulling 95263a9c499ad504de7e86f0c570c851d82a1e1b on adityahenanda:dev into 10d05b97cc1f2f997ebfaa94fc21fb201f4af431 on danliris:dev.


Originally defined keys in SharedValues should not be reinitialized

#14682 # Issue Description

This PR https://github.com/fastlane/fastlane/pull/14892 has introduced an improvement to Lane Variables documentation by detecting SharedValues key assignment in functions. Unfortunately that PR has also introduced a bunch of warnings that have been fixed by https://github.com/fastlane/fastlane/pull/15013.
An optional initialisation of SharedValues key has been added for both the original usage definition and for the actions that needed to use already defined key (redeclaration in SharedValues).
https://github.com/fastlane/fastlane/blob/6537974e792690dc63fb6fe8209046e8df0a8ac4/fastlane/lib/fastlane/actions/xcodebuild.rb#L4-L7
https://github.com/fastlane/fastlane/blob/6537974e792690dc63fb6fe8209046e8df0a8ac4/fastlane/lib/fastlane/actions/build_ios_app.rb#L3-L7
The solution is quite confusing and it should be cleaned up.

@fastlane-bot still in progress 🙈

@fastlane-bot ping


markdown editor

no obvious option, is there an easy way of using draftjs?

https://www.npmjs.com/package/draftjs-md-converter


Modified coverage patches for master and 4.0 branches

Pull Request Test Coverage Report for Build 42367

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 52.841%

Totals

Change from base Build 42221:
0.0%

Covered Lines:
4929

Relevant Lines:
9328

💛  - Coveralls


knife-solo_data_bag without knife-solo

The gem is a dep to knife-solo, it does not works without it, giving the error: ERROR: TypeError: no implicit conversion of Array into String.
Maybe we should add the dependency to the gemspec or make knife-solo_data_bag works without it?

@allaire Can you may tell how you got it to work? I'm facing exactly the same problem right now...

I cannot speak for anyone else but I had this problem because, since I was creating an encrypted data bag item for testing with kitchen, I did not have access to the default data_bag location.
Using the
--data-bag-path '.'
option, the TypeError disappeared and I was able to create a data_bag_item in the current directory.