chore(main): release 0.1.51

:robot: I have created a release beep boop
0.1.51 (2024-06-28)
Features

add a retry mechanism for API call (#166) (3d89da3)

Bug Fixes

Connections: use lowercase for identifier (#184) (a864629)

Miscellaneous

deps: update actions/setup-python action to v5 (#177) (efc4253)
deps: update dependency dev/ruff to >=0.5.0,<0.6.0 (#185) (a7d0657)
deps: update dependency examples/geopandas to v1 (#178) (a580ba8)
deps: update pre-commit/action action to v3 (#183) (b48cb83)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/BLSQ/openhexa-sdk-python/releases/tag/0.1.51 :sunflower:


Migration Guide 3.0 to 4.0 version

Is any migration guid for 4.0 version.
Because I updated to 4.0 and I'm having many issues

You may check out the CHANGELOG file.
Issues like what?

I solved them.
Get and post methods now have header, also dataTaskWithRequest has changed:
[[manager dataTaskWithRequest:request uploadProgress:nil downloadProgress:nil completionHandler:^(NSURLResponse * _Nonnull response, id  _Nullable responseObject, NSError * _Nullable error) {     }] resume];


Overriding the 1000 item limit

According to the project description, there's a 1000 element limit. Is there anyway to override this? I haven't run into that limit yet, but I'd like to get ahead of it in case I do.
Full text, faceted, dependency free search engine in javascript. Created to perform fast search on small json dataset (up to 1000 elements).

In version 2.0 it can work now with 100K items. Of course such a dataset is better on the backend side as you can index it once at the runtime. On the browser side every user needs to wait for indexing but I'd say for that case 10K elements should be ok (depends on JSON file size)


SIM108 turns readable code into unreadable code

The rule should only apply to trivial conditions with the simplest expressions (e.g. even having 2 sub-expressions joined with and or or is too much).
a.py:
from typing import Optional

# an ugly but realistic type
something: Optional[list] = None

if something is not None and len(something) > 1:
    runner_image = something[0].url
else:
    runner_image = None

cmd: ruff --isolated --select SIM --line-length=120  a.py
Output:
a.py:5:1: SIM108 [*] Use ternary operator `runner_image = something[0].url if something is not None and len(something) > 1 else None` instead of `if`-`else`-block

My eyes refuse to read runner_image = something[0].url if something is not None and len(something) > 1 else None.

Perhaps I am in the minority on this, but I prefer the ternary syntax in the example here, so I would prefer any change to this to be optional.

I'm open to an argument that we should only apply this rule when the test is a single condition (since the and in the ternary makes it harder to parse), but I don't want to make it configurable -- we should either change it or not. I'll leave this open to give folks a chance to chime in.

For what it's worth, the most readable formation of the condition in the example (compared to the if-else block and the 120-line ternary statement) for me is
runner_image = (
    something[0].url if something is not None and len(something) > 1
    else None
)

Can’t you just use noqa as needed?
The simplify rules are opinionated. Usually those long expressions are ‘variable = value condition or None’ anyway - my mental model has adjusted.

Devs in our organization also complained about it. While great for simple conditions and expressions, the longer they become, the messier and harder to read it makes the code.
I see @charliermarsh is not a fan of configurability for this one, but imo any way to control a maximal complexity level (of either the condition or the return values) would make it a great addition.

For completeness, I think an additional readability benefit that comes to ternary assignments is that you aren't forced to write code with side effects. I think that this is even more of a benefit the more complex the original if statement.

In a former company we had the (code style) rule that ternary expression could only be a single line and only "simple" conditions or assignments (e.g. something like x.x if single_comparison else y.y). I like the idea of measuring the complexity and only apply if it less than a (low) default.

@ssweber

Can’t you just use noqa as needed?

This style of response isn't helpful. It fits the pattern: "Can't you just use  instead? <here goes an explanation why the troublesome feature should stay as it is and we shouldn't try to improve it>"
It should be clear that the person reporting the issue knows about noqa, and finds the use of noqa to be deficient, hence they're reporting the issue.
Why is noqa a non-solution:

You have to place it in advance, before autofix rewrites your code. What about disabling autofix to this rule? Someone may still want this rule to autofix trivial conditions and leave non-trival conditions intact.
There will always be some devs in a team who adhere to lint rules uncritically. You cannot control that. Tools to help devs write better code interact with all devs in the project, not only the observant ones.

@ssweber

Can’t you just use noqa as needed?

This style of response isn't helpful.

You’re right, that wasn’t a very considerate suggestion. I’ve enjoyed SIM108, but I’d understand if someone else wanted a more robust solution than “use noqa”.

I find the issue to be formatting related with long ternary conditionals. For example in JS/TS with ESLint I force-wrap all ternaries, but with Python having to add extra parenthesis (which are formatted on their own lines), or \ (which Ruff and Black disallow), even such an option wouldn't work that great.
Here's some more thoughts: https://github.com/astral-sh/ruff/issues/11753


dockerized: handle podman auth files

What this PR does / why we need it:
This should allow running make push when using podman as a CRI
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #6260
Release note:

NONE

/retest

/retest


Set the validator set and next signer from the staking module

Get the public key and the sequencer set from the staking module.
Original discussion: https://github.com/rollkit/rollkit/pull/788/files#r1139431177

               // set the validator set using the signer's public key
		// TODO(ganesh): need to hook into a module that selects signers

		pubKey, err := m.proposerKey.GetPublic().Raw()
		if err != nil {
			return err
		}
		block.SignedHeader.Validators = types.ValidatorSet{Validators: []types.Validator{{PublicKey: pubKey}}}

Comment by @nashqueue

Maybe the previous header could include the next signer? I think this will be a query to the staking module?

Handled by https://github.com/rollkit/rollkit/issues/1673


Library not loaded: libgit2.21.dylib

I'm on OSX 10.11.6 and I followed the instructions, but it fails when I'm trying to use it:
> gitql 'select author from commits'
dyld: Library not loaded: libgit2.21.dylib
  Referenced from: /usr/local/bin/gitql
  Reason: image not found
Trace/BPT trap: 5

Update:
gitql -h works if I'm inside ~/gopath/src/github.com/cloudson/gitql/libgit2/install/lib.

Nevermind, I misread the instructions and used the linux LD_LIBRARY_PATH instead of DYLIB_....


nixos/prometheus-postfix-exporter: add package option and format

The current version of postfix_exporter has not been maintained upstream for two years, add this option to the service module to allow users to easily swap to a maintained fork. I may follow this PR with a swap to a fork that is being maintained, but this will do for now.
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

[ ] Fits CONTRIBUTING.md.

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

#365470


Check Column masking computation level

Check Column masking if the masking happens in after the computation or during the computation.
For example if you make a join and the masking is on foreign key if the masking happens after the join or before the join

The join with masking works in the following case:
rego policy:
package trino
import future.keywords.in
import future.keywords.if
import future.keywords.contains

default allow := true
column_resource := input.action.resource.column

allow {
	print(input)
	input.context.identity.user == "admin"
}
columnMask := {"expression": "crc32(to_big_endian_64(custkey))"} if {
    print("column_masking")
    print(input)
    not is_admin
    column_resource.columnName == "custkey"
}

trino policy:
SELECT b.comment, b.clerk, a.name, b.custkey
FROM tpch.sf1.orders b
INNER JOIN tpch.sf1.customer a
ON a.custkey = b.custkey
ORDER BY b.custkey ASC;

it appears that the opa sends the trino the masking, and the values are masked before the join is started


Allow user defined mounts in privileged containers

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

If this PR will release a new chart version please make sure to also uncomment the following line:

/kind chart-release

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area falco-chart

/area falco-exporter-chart

/area falcosidekick-chart

What this PR does / why we need it:
Allows for specifying additional privileged mount containers
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Checklist

[ ] Chart Version bumped
[ ] Variables are documented in the README.md
[ ] CHANGELOG.md updated

Thanks for your pull request. Before we can look at it, you'll need to add a 'DCO signoff' to your commits.
:memo: Please follow instructions in the contributing guide to update your commits with the DCO
Full details of the Developer Certificate of Origin can be found at developercertificate.org.
The list of commits missing DCO signoff:

9e08d17 Allow user defined mounts in privileged containers

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

Welcome @OmriShiv! It looks like this is your first PR to falcosecurity/charts 🎉

Thanks for your pull request. Before we can look at it, you'll need to add a 'DCO signoff' to your commits.
:memo: Please follow instructions in the contributing guide to update your commits with the DCO
Full details of the Developer Certificate of Origin can be found at developercertificate.org.
The list of commits missing DCO signoff:

9e08d17 Allow user defined mounts in privileged containers
1e92d69 Merge branch 'patch-1' of github.com:OmriShiv/charts into patch-1

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

@OmriShiv: Adding label do-not-merge/contains-merge-commits because PR contains merge commits, which are not allowed in this repository.
Use git rebase to reapply your commits on top of the target branch. Detailed instructions for doing so can be found here.

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

Thanks for your pull request. Before we can look at it, you'll need to add a 'DCO signoff' to your commits.
:memo: Please follow instructions in the contributing guide to update your commits with the DCO
Full details of the Developer Certificate of Origin can be found at developercertificate.org.
The list of commits missing DCO signoff:

a434abc Merge branch 'master' of github.com:OmriShiv/charts

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


Example for using Merkle map with actions

This is a great example!
@barriebyron probably it makes sense to make a tutorial on docs.minaprotocol.com for it, what do you think?
@mitschabaude When recursive actions are available, will it be possible to make proofs in parallel for actions inside the reduce()? To be able to process 1000 actions fast.

@mitschabaude When recursive actions are available, will it be possible to make proofs in parallel for actions inside the reduce()? To be able to process 1000 actions fast.

In theory, it will be possible and that's something that should definitely be available in some shape or form. However, the initial recursive reducer will not have parallel processing functionality - I don't think it would make a big difference on most consumer hardware at this point and likely require outsourced computation

In theory, it will be possible and that's something that should definitely be available in some shape or form. However, the initial recursive reducer will not have parallel processing functionality - I don't think it would make a big difference on most consumer hardware at this point and likely require outsourced computation

Fully agree, it would make sense only in the case of outsourced proving. Outsourced proving is what we will do during zkIgnite cohort 3 in zkCloudWorker project, so any information on future possible designs would be very helpful. Right now it is clear how to do it with ZkProgram recursion, and having nice async API to be called from method for parallel proving would be great.

this example is deprecated, possible in a much nicer way nowadays with IndexedMerkleMap and BatchReducer, see the batch reducer unit test


[BUG] Small and large shields can be built more than once

Describe the bug
The small and large shield defense objects can be built more than once. They should actually only be able to be built once.
To Reproduce
Steps to reproduce the behavior:

Go to defense page.
Try to build a small and/or large shield.
After building, try to build another unit.
You are able to build more than one.

Expected behavior
Only being able to build maximum of 1. When one is already built, the "build" button is greyed out and disabled.
Screenshots
This is what it looks like now:

This is what it looks like in the official game:

Fixed by PR #409.


[DropdownMenu] Ensure menu height is constrained by the view height

See https://github.com/radix-ui/primitives/discussions/375#discussioncomment-275343

Yeah I believe that's to do with the fact that the menu can overflow the view now and we'd like to constrain its height (at least in some situations). I wanted to do that before xmas but didn't have time to get to it.

@benoitgrelard happy to look at this. I think I get the gist but could you provide some more context on the issue?

Had a call with @andy-hook about this and we decided for now to wait and see what new requirements are introduced by adding submenu support to Menu and adding MenuBar to our portfolio to see what use cases emerges.

For posterity – the issue is with tall menus exceeding the viewport height. It’s possible to get into situations where popper has nowhere else to place the menu, causing layout shifting and other overflow problems, for example:

The proposed solution is to cap the max height of the menu relative to the viewport and provide an overflow scroll (native would be fine initially)
Position logic is calculated via getPlacementData and some thought would be needed on the best way to supply additional context for these calculations.


xplat: custom calling convention

In order to support JavascriptStackWalker and RUNTIME_ARGUMENTS for
JavascriptMethod, we need all arguments on stack. This change implements
a custom calling convention to invoke JavascriptMethod. JavascriptMethod
entry stack layout:
      [Return Address]
      [function]              == RDI
      [callInfo]              == RSI
      [arg0]
      [arg1]
      ...

RDI/RSI are same as System V AMD64 ABI, thus function/callInfo can be
accessed in C++ code. Stack layout is the same as Windows x86.
Also annotated amd64_CallFunction assembly with debugging info so that
gdb can unwind the stack correctly.
Fixed JavascriptFunction::DeferredParsingThunk assembly to pass
correct argument, &function, to call JavascriptFunction::DeferredParse.

:+1:


mix weight parameter has been switched

So it looks like the recent fix to mix in the RGB color space switched the functionality of the mix function's weight parameter.
Functionality change:
old: mix(blue,purple,100) = blue
new: mix(blue,purple,100) = purple

This is not detectable with 50% mixes, so it was pretty easy to slip through the cracks of the tests. Also, the documentation doesn't explicitly say how this functionality should work. It is breaking people's styles though, like @xrwang's style here: https://github.com/mapbox/mapbox-studio-classic/issues/1553.
@springmeyer @nebulon42 - would love to hear your opinions :)

Right now there's unquestionably a bug in that the alpha is alpha1*p + alpha2*(1-p) while the color is color1*(1-p)+color2*p
(Assuming you define addition and multiplication of colours sensibly)
I checked with with less and it just defines it as "a percentage balance point between the two colors, defaults to 50%" (less/less-docs#409)
However, less does define tint(color,weight) = mix(white, color, weight). Assuming tint(color, 0%) = color, then mix with weight=0 is 0% of the first colour and 100% of the second colour, which is the reverse of chroma.js's chroma.mix.
The relevant line should be something like chroma.mix(color2.toString(), color1.toString(), p, 'rgb'); or chroma.mix(color1.toString(), color2.toString(), 1-p, 'rgb'); with a comment that chroma.mix is the opposite order from less and cartocss. Right now it's var mix = chroma.mix(color1.toString(), color2.toString(), p, 'rgb');

@jakepruitt thanks for reporting and @pnorman thanks for the background research. I had to get rid of the chroma.mix function since it behaved differently from LESS/SASS regarding mixing RGBA colours. I have now expanded the test cases and the mix function should work like in carto 0.15.3. You're welcome to verify that this is the case.
@tmcw @springmeyer I have prepared everything for a 0.16.1 release. Please sign off on it and tag/publish, thanks.

Thank you @nebulon42! @xrwang just tested and confirmed this is fixed. So I just tagged and published v0.16.1.


Slider Label is cutted in ExpansionPanel

When I using a Slider in a Expansion Panel the Label is cutted at the Top so i cant see it.
The Workaround would be to wrap the slider in a Container or SizedBox and give it a Height but then the expanded Panel shows to much whitespace.
Example:
You can See this Error in the Flutter Gallery at ExpansionPanelDemo

Sharing a screenshot to clarify hidden Slider label.

Also, this seems to be a duplicate of https://github.com/flutter/flutter/issues/31042


Install JBang executable if does not exist on the computer

I just ran into the problem that if you do not have the JBang executable on your machine than the plugin is unable to work.
Is there any way that the plugin itself can install it? Maybe with a prompt to be 100% transparent with the user that it is missing and it will be downloaded and installed.

yeah there are the portable install options.
windows/Powershell:
iex "& { $(iwr https://ps.jbang.dev) } app setup"
anything else:
curl -Ls https://sh.jbang.dev | bash -s - app setup


Save shipyard env values to .profile to help later debugging

These variables are used by tools/shipyard.sh script and as
we already know their values, we might as well provide them to
users for possible later use.
This requires https://review.opendev.org/#/c/663698/

@evrardjp Why is ansible complaining?
AFAIK template does not have to be YAML file, it seems like it is expecting one...

AFAIK template does not have to be YAML file, it seems like it is expecting one...

Actually its your ansible code the one complaining, not the template ;)

As for "leaking of secrets", we're already saving OS_PASSWORD into clouds.yaml on the deployer node. I do not see a problem of saving OS_SHIPYARD_PASSWORD into the file that is only readable by ansible user.
Actually this (= saving the password on deployer) is the very reason I created this PR, so that the debugging and development is easier and user does not have to dig it manually from secrets/ucp_shipyard_keystone_password

is this still needed @jsuchome ?

I still think it makes sense (but it would require @evrardjp to change his vote).
Although ... if Airship 2.0 will look completely differently than this would not be used I guess

rebased


how to use OrderByDescending

Expression<Func<T, U>>,What is the meaning of this, how to use it

This is an expression that can be used with Lambda. Something like that:
_connection.Table().OrderByDescending(x => x.Name).FirstOrDefault(); // Get only the first element
_connection.Table().OrderByDescending(x => x.Name); // Get all elements

thank you,How do you know the sorted I want elements in what place

You can store the result in a List or Array, like that:
List< Person > personList = _connection.Table< Person >().OrderByDescending(x => x.Name);
Later you can get the index of a specific element, like that:
Person person = personList.Where(x => x.Name = "Name").FirstOrDefault(); // you need to import the using System.Linq to use the Where clause.
int index = personList.IndexOf(person );

How to update existing data,

You need to select the data you want, change the properties and later apply the Update:
List< Person > personList = _connection.Table< Person >().OrderByDescending(x => x.Name);
Person person = personList.Where(x => x.Name = "Name").FirstOrDefault();
person.Name = "NewName";
_connection.Update(person);


Treeview refresh button expands treeview even if collapsed

Issue Type: Bug
If you press the collapse button to close up all folders, and you hit the refresh button, the tree view will take the path to your open tab and drill down and open all folders to your working file.
I understand this is likely intentional, but it didn't seem to fit the purpose of a refresh button, refresh just updates the project folders/files, it shouldn't be doing anything else.

VS Code version: Code 1.22.2 (3aeede733d9a3098f7b4bdc1f66b63b0f48c1ef9, 2018-04-12T16:34:44.222Z)
OS version: Linux x64 4.13.0-38-generic

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz (8 x 3384)

Load (avg)
1, 1, 1

Memory (System)
7.74GB (0.28GB free)

Process Argv
/usr/share/code/code --unity-launch

Screen Reader
no

VM
0%

Extensions (5)

Extension
Author (truncated)
Version

code-settings-sync
Sha
2.9.0

html-css-class-completion
Zig
1.17.1

php-intellisense
fel
2.3.1

vue-snippets
hol
0.1.5

vscode-todo-highlight
way
0.5.12

"explorer.autoReveal": false


Unicode word count

The code is using str_word_count so many times, the problem with this function is that when Unicode strings are provided it returns a excessively high number which will make the spam detector miss some spam situations.
The only substitute function that worked fine for me was this one:
/**
    * Returns number of words in a unicode string
    * @param $string
    * @param int $mode
    * @return array|int
    */
   function utf8WordCount($string, $mode = 0) {
       static $it = NULL;

       if (is_null($it)) {
           $it = IntlBreakIterator::createWordInstance(ini_get('intl.default_locale'));
       }

       $l = 0;
       $it->setText($string);
       $ret = $mode == 0 ? 0 : array();
       if (IntlBreakIterator::DONE != ($u = $it->first())) {
           do {
               if (IntlBreakIterator::WORD_NONE != $it->getRuleStatus()) {
                   $mode == 0 ? ++$ret : $ret[] = substr($string, $l, $u - $l);
               }
               $l = $u;
           } while (IntlBreakIterator::DONE != ($u = $it->next()));
       }

       return $ret;
   }

@xfactor5
Thanks for pointing this out.. Please make a pull request so I can merge or I will do the update during my spare time.

@morrelinko You're welcome, I did not use this function in your code since it seems incompatible as it only receives one argument, I extended the rife detector and rewrote the check function using this one for my self; So it's wise that you use this function in the code yourself and then conduct necessary test or checks.


Move: StefanKueng.StExBar version 11.11.1

[ ] Have you signed the Contributor License Agreement?
[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

I know it is not matching, but it is the same software developer as the other package. Should we really have multiple vendor folders if they come from the same vendor?

Ooops didn't see the msgs before now, and yes i was very much referring to the version which took you a bit longer than expected to notice 😁

I will change this to x64 because I’m not home rn to test on my x86 machine

Since #25065 has been merged, I'm closing this.


OAuthCallback error on Netlify

Environment
This is my localhost environment:

Operating System: Windows_NT
Node Version:     v16.20.0
Nuxt Version:     3.5.3
Nitro Version:    2.4.1
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      runtimeConfig, modules, auth
Runtime Modules<EMAIL_ADDRESS>Build Modules:    -

I don't know Netlify environment.
Reproduction
https://github.com/sun-ergo-s/testing-nuxt-on-netlify
Deployed on Netlify: https://whimsical-biscotti-346a06.netlify.app/
Describe the bug
I have a clean install of<EMAIL_ADDRESS>application with<EMAIL_ADDRESS>(also tried 0.6.0-beta.2).
After deploying on Netlify I got the OAuthCallback error using Google/Facebook provider in URL after redirect.
On localhost everything works fine.
I have defined AUTH_ORIGIN and NEXTAUTH_URL variables on Netlify and also in config file:
auth: {
    origin: process.env.AUTH_ORIGIN
}

Additional context
Works on Vercel. I also tried this solution but it didn't work:
add  cookies config
  cookies: {
    pkceCodeVerifier: {
      name: "next-auth.pkce.code_verifier",
      options: {
        httpOnly: true,
        sameSite: "none",
        path: "/",
        secure: true,
      },
    },
  },

Originally posted by @desenmeng in https://github.com/nextauthjs/next-auth/discussions/6898#discussioncomment-5308820
Logs

+1 on this -- I'm hitting the same issue. Works on Vercel just fine though.

@sun-ergo-s I figured out a fix for this!
The issue was actually in Nitro -- it was not handling the Set-Cookie header properly. Here is the fix: https://github.com/unjs/nitro/pull/1452
You can pull in the latest, edge version of Nitro following the steps here: https://github.com/Hebilicious/authjs-nuxt/issues/51#issuecomment-1653419171
Specifically adding to my package.json file:
"resolutions": {
    "nitropack": "npm:nitropack-edge@latest"
  },


Add setting to disable level switching button

Adds the ability to disable buttons that cause levels to switch without removing them as a whole and also adds the ability to toggle from bonemenu

There are some merge conflicts after merging another pull request, so I'll just manually insert the code


ibus-engines.hangul: fix ibus-setup-hangul

Closes: https://github.com/NixOS/nixpkgs/issues/27619

Seems to work:


error TS7056: The inferred type of this node exceeds the maximum length

I am trying to make use of this framework. After adding few entries in <PROJECT-NAME>\src\interface\module.ts, compilation throws error while adding the next one after adding around 15 apis successfully. I also see that  it accepts the next one if I delete one of the existing module (this indicates that there is no issue in code).
The error is as follows. Any assistance/idea?
error TS7056: The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.
13 export const module = m.define({
~~~~~~
Found 1 error in src/interface/module.ts:13
npm error Lifecycle script build failed with error:
npm error Error: command failed
npm error   in workspace<EMAIL_ADDRESS>npm error   at location: D:\workspace\codes\GitHub\proj\mondrian-framework\packages\

Hello, i lost a notification on this, sorry for the late response.
The issue you are facing is a known limitation, in order to workaround this i would suggest to write the  explicit type annotation. In a current project i'm working on i've done as following:
On definition:
import { functions as fn } from '@mondrian-framework/module'
import * as administration from './administration.functions'
import * as authenticator from './authenticator.functions'
import * as payment from './payment.functions'
import { pay } from './payment/pay.function'
import { requestPayment } from './payment/require.function'
import { signTransaction } from './payment/sign.function'
import * as provisioning from './provisioning.functions'
import * as reconciliation from './reconciliation.functions'
import * as wallet from './wallet.functions'

export type Functions = typeof administration &
  typeof wallet &
  typeof authenticator &
  typeof payment &
  typeof provisioning &
  typeof reconciliation & {
    pay: typeof pay
    requestPayment: typeof requestPayment
    signTransaction: typeof signTransaction
  }

export const functions: Functions = {
  ...administration,
  ...wallet,
  ...authenticator,
  ...payment,
  ...provisioning,
  ...reconciliation,
  pay,
  requestPayment,
  signTransaction,
} satisfies fn.Functions

Then on the module definition:
import { module as moduleInterface } from '@monetica/interface'
import { Functions, functions } from './functions'

export const module: ReturnType<typeof moduleInterface.implement<Functions>> = moduleInterface.implement({
  functions,
})


Build KSQL rest-app image

https://hub.docker.com/r/solsson/kafka-ksql

Nao consigo desbloquear

Tried to bump this to KSQL 0.5 with 1b2099b2e0e927acc8cb9eb8cbd46189ab103d4a but builds fail now. They were tricky back at developer-preview, but now I can't get them to pass at all. These builds are way heavier than my docker build envs are used to.
There's no reason not to use confluent's images actually, so let's close this and go for https://github.com/Yolean/kubernetes-kafka/pull/164


Player body default values should be adjusted to better match human

The default player configuration can make it difficult to pick up items. Specifically it has the following two default values of interest:

player_radius = 0.4 - can limit how close the player can get to a table or box
player_height_min = 1.0 - can limit how far a player can bend down to pick something off the ground

Rough statistics show:

Average human waste radius = ~0.2 m
Average human arm length = ~0.6 m

I cannot find good data on the eye position in relationship to the body center. Care would be needed to adjust the eye_forward_offset to prevent the near-clipping-plane of the camera allowing the player to see through walls.

Yes, can concur.
It wasn't obvious why the ground moved away when grabbing something from the ground lol

Testing shows this works much better than the older settings.


Fix/category validation

So the previous validation of category didn't return the error.
Now it should work properly

Looks good to me!


Update docker image to use python 3.4.3 and add convenience script to launch the docker image.

Also build against latest release of mochi <IP_ADDRESS>.

I've also pushed the new docker image, see https://registry.hub.docker.com/u/tlvu/mochi/ and https://registry.hub.docker.com/u/tlvu/mochi/tags/manage/

Thank you!
mochidocker is very useful :-)


Dupliacted entries in profile table

Describe the bug
Duplicated entries in profile table
To Reproduce
Steps to reproduce the behavior:
Don't know how it happened. Need to figure that out first, then solve the bug.
Expected behavior
A clear and concise description of what you expected to happen.
Should only be one entry per email in the profiles table.

Use upsert instead of insert/update:
https://github.com/jKm00/csgo-nade-app/blob/f766d2a971fddc01d79c0e99dd9ab33826e8e48a/src/routes/(auth)/profile-setup/%2Bpage.server.ts#L40


Downloading URL change for WikiAuto Manual, jeopardy and definite_pronoun_resolution

Describe the bug

WikiAuto Manual
The original manual datasets with the following downloading URL in this repository was deleted by the author.

https://github.com/chaojiang06/wiki-auto/raw/master/wiki-manual/train.tsv

jeopardy
The downloading URL for jeopardy may move from

http://skeeto.s3.amazonaws.com/share/JEOPARDY_QUESTIONS1.json.gz

to
https://drive.google.com/file/d/0BwT5wj_P7BKXb2hfM3d2RHU1ckE/view?resourcekey=0-1abK4cJq-mqxFoSg86ieIg

definite_pronoun_resolution
The following downloading URL for definite_pronoun_resolution cannot be reached for some reason.

http://www.hlt.utdallas.edu/~vince/data/emnlp12/train.c.txt

Steps to reproduce the bug
import datasets
datasets.load_datasets('wiki_auto','manual')
datasets.load_datasets('jeopardy')
datasets.load_datasets('definite_pronoun_resolution')

Expected results
Download successfully
Actual results

WikiAuto Manual

Downloading and preparing dataset wiki_auto/manual (download: 151.65 MiB, generated: 155.97 MiB, post-processed: Unknown size, total: 307.61 MiB) to /root/.cache/huggingface/datasets/wiki_auto/manual/1.0.0/5ffdd9fc62422d29bd02675fb9606f77c1251ee17169ac10b143ce07ef2f4db8...
  0%|                                                                                | 0/3 [00:00<?, ?it/s]Traceback (most recent call last):
  File "wiki_auto.py", line 43, in <module>
    main()
  File "wiki_auto.py", line 40, in main
    train, dev, test = dataset.generate_k_shot_data(k=16, seed=seed, path="../data/")
  File "/workspace/projects/CrossFit/tasks/fewshot_gym_dataset.py", line 24, in generate_k_shot_data
    dataset = self.load_dataset()
  File "wiki_auto.py", line 34, in load_dataset
    return datasets.load_dataset('wiki_auto', 'manual')
  File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
    builder_instance.download_and_prepare(
  File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
    self._download_and_prepare(
  File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 675, in _download_and_prepare
    split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
  File "/root/.cache/huggingface/modules/datasets_modules/datasets/wiki_auto/5ffdd9fc62422d29bd02675fb9606f77c1251ee17169ac10b143ce07ef2f4db8/wiki_auto.py", line 193, in _split_generators
    data_dir = dl_manager.download_and_extract(my_urls)
  File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 284, in download_and_extract
    return self.extract(self.download(url_or_urls))
  File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 196, in download
    downloaded_path_or_paths = map_nested(
  File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 216, in map_nested
    mapped = [
  File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 217, in <listcomp>
    _single_map_nested((function, obj, types, None, True))
  File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 152, in _single_map_nested
    return function(data_struct)
  File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 217, in _download
    return cached_path(url_or_filename, download_config=download_config)
  File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 295, in cached_path
    output_path = get_from_cache(
  File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 592, in get_from_cache
    raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://github.com/chaojiang06/wiki-auto/raw/master/wiki-manual/train.tsv

jeopardy

Using custom data configuration default
Downloading and preparing dataset jeopardy/default (download: 12.13 MiB, generated: 34.46 MiB, post-processed: Unknown size, total: 46.59 MiB) to /root/.cache/huggingface/datasets/jeopardy/default/0.1.0/25ee3e4a73755e637b8810f6493fd36e4523dea3ca8a540529d0a6e24c7f9810...
Traceback (most recent call last):
  File "jeopardy.py", line 45, in <module>
    main()
  File "jeopardy.py", line 42, in main
    train, dev, test = dataset.generate_k_shot_data(k=32, seed=seed, path="../data/")
  File "/workspace/projects/CrossFit/tasks/fewshot_gym_dataset.py", line 79, in generate_k_shot_data
    dataset = self.load_dataset()
  File "jeopardy.py", line 36, in load_dataset
    return datasets.load_dataset("jeopardy")
  File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
    builder_instance.download_and_prepare(
  File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
    self._download_and_prepare(
  File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 675, in _download_and_prepare
    split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
  File "/root/.cache/huggingface/modules/datasets_modules/datasets/jeopardy/25ee3e4a73755e637b8810f6493fd36e4523dea3ca8a540529d0a6e24c7f9810/jeopardy.py", line 72, in _split_generators
    filepath = dl_manager.download_and_extract(_DATA_URL)
  File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 284, in download_and_extract
    return self.extract(self.download(url_or_urls))
  File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 196, in download
    downloaded_path_or_paths = map_nested(
  File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 206, in map_nested
    return function(data_struct)
  File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 217, in _download
    return cached_path(url_or_filename, download_config=download_config)
  File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 295, in cached_path
    output_path = get_from_cache(
  File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 594, in get_from_cache
    raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://skeeto.s3.amazonaws.com/share/JEOPARDY_QUESTIONS1.json.gz

definite_pronoun_resolution

Downloading and preparing dataset definite_pronoun_resolution/plain_text (download: 222.12 KiB, generated: 239.12 KiB, post-processed: Unknown size, total: 461.24 KiB) to /root/.cache/huggingface/datasets/definite_pronoun_resolution/plain_text/1.0.0/35a1dfd4fba4afb8ba226cbbb65ac7cef0dd3cf9302d8f803740f05d2f16ceff...
  0%|                                                                                | 0/2 [00:00<?, ?it/s]Traceback (most recent call last):
  File "definite_pronoun_resolution.py", line 37, in <module>
    main()
  File "definite_pronoun_resolution.py", line 34, in main
    train, dev, test = dataset.generate_k_shot_data(k=32, seed=seed, path="../data/")
  File "/workspace/projects/CrossFit/tasks/fewshot_gym_dataset.py", line 79, in generate_k_shot_data
    dataset = self.load_dataset()
  File "definite_pronoun_resolution.py", line 28, in load_dataset
    return datasets.load_dataset('definite_pronoun_resolution')
  File "/opt/conda/lib/python3.8/site-packages/datasets/load.py", line 1632, in load_dataset
    builder_instance.download_and_prepare(
  File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 607, in download_and_prepare
    self._download_and_prepare(
  File "/opt/conda/lib/python3.8/site-packages/datasets/builder.py", line 675, in _download_and_prepare
    split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
  File "/root/.cache/huggingface/modules/datasets_modules/datasets/definite_pronoun_resolution/35a1dfd4fba4afb8ba226cbbb65ac7cef0dd3cf9302d8f803740f05d2f16ceff/definite_pronoun_resolution.py", line 76, in _split_generators
    files = dl_manager.download_and_extract(
  File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 284, in download_and_extract
    return self.extract(self.download(url_or_urls))
  File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 196, in download
    downloaded_path_or_paths = map_nested(
  File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 216, in map_nested
    mapped = [
  File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 217, in <listcomp>
    _single_map_nested((function, obj, types, None, True))
  File "/opt/conda/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 152, in _single_map_nested
    return function(data_struct)
  File "/opt/conda/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 217, in _download
    return cached_path(url_or_filename, download_config=download_config)
  File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 295, in cached_path
    output_path = get_from_cache(
  File "/opt/conda/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 594, in get_from_cache
    raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach http://www.hlt.utdallas.edu/~vince/data/emnlp12/train.c.txt

Environment info

datasets version: 1.15.1
Platform: Linux-4.15.0-161-generic-x86_64-with-glibc2.10
Python version: 3.8.3
PyArrow version: 4.0.1

#take
I am willing to fix this. Links can be replaced for WikiAuto Manual and jeopardy.
As for the definite_pronoun_resolution URL, a certificate error seems to be preventing a download. I have the files on my local machine. Anyone has opinions on whether it is preferable for me to host them somewhere (e.g. personal GDrive account) or upload them to the dataset folder directly and use github raw URLs? The files are <1MB in size.

#take I am willing to fix this. Links can be replaced for WikiAuto Manual and jeopardy.
As for the definite_pronoun_resolution URL, a certificate error seems to be preventing a download. I have the files on my local machine. Anyone has opinions on whether it is preferable for me to host them somewhere (e.g. personal GDrive account) or upload them to the dataset folder directly and use github raw URLs? The files are <1MB in size.

I am planning to fix it next few days. But my to-do list is full and I am glad that you can take this. Thanks a lot!

No problem, buddy! Will submit a PR over this weekend.


Clean up Inline Thread Replies Styles (+ handle mobile/small screen sizes)

Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~0161e0b6f884ecc108
Upwork Job ID:<PHONE_NUMBER>576674304
Last Price Increase: 2023-05-12

Coming from this comment: https://github.com/Expensify/App/pull/18274#issuecomment-1545930894
On this PR:  https://github.com/Expensify/App/pull/18274

Better mock up:

To do:

[ ] Handle date for long comments (this should match the date with any normal comment though)
[ ] Make avatars 28 x 28
[ ] Cap number of replies at 99+
[ ] Make "Last Reply" -> "Last reply"
[ ] ...

cc @shawnborton sorry for the double ping on this, moving to it's own issue!

@shawnborton happy to fix any and all of the UI things !!!! Hit me with them
relevant:
https://github.com/Expensify/App/pull/18274#issuecomment-1546297408
https://github.com/Expensify/App/pull/18274#issuecomment-1546307788

Nice! Let's start with what I have above. 28x28 avatars, overlapping at -4px, with a 2px outer border.

Right now, the border width for this component (multiple avatars) is set to 3px for 28x28, should I change it everywhere to 2px or leave as 3px (pictured)

And here's the 99+ preview:

I say change it globally. And just confirming that the border goes to the
outside?
On Fri, May 12, 2023 at 5:59 PM Georgia Monahan @.***>
wrote:

[image: image]
https://user-images.githubusercontent.com/38015950/238086850-42681f6f-7229-4191-bbdc-08f7473e9cf4.png
Right now, the border width for this component (multiple avatars) is set to
3px for 28x28, should I change it everywhere to 2px or leave as 3px
(pictured)
—
Reply to this email directly, view it on GitHub
https://github.com/Expensify/App/issues/18872#issuecomment-1546356205,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AARWH5RTKAPG7LDC62N77KLXF2XF5ANCNFSM6AAAAAAYAAMKSU
.
You are receiving this because you were mentioned.Message ID:
@.***>

Yep, here's with 2px:

What is the best path forward for the dates on small screen? On tiny screens it gets a little precarious even if I remove the timestamp from the date.

Although for Today/Yesterday it doesn't provide as much info as chat headers do:

But leaving timestamps results in:

@shawnborton any thoughts on the small screen overflow problem (with 4+ participants) ?
https://github.com/Expensify/App/issues/18872#issuecomment-1546409428
some options here, but I'm not sure that the best solution is in there

@zanyrenney could you help with C+ internal review payment for this issue (already merged https://github.com/Expensify/App/pull/18876)?

Sure, @grgia i have DM'd you as i'm just getting assigned now and more detail would be super helpful please.

sent invite to you @aimane-chnaif

Going OOO and this is pretty active so needs management by bug0 team member, as per the new process to stay assigned but assign another team member, please can you keep a watch of this. I am OOO until 8th June. Thanks!

Thanks @grgia for the ping.
@aimane-chnaif , can you please accept the job and reply here once you have?
https://www.upwork.com/jobs/~0161e0b6f884ecc108

@aimane-chnaif paid $1000
This is a small design-related improvement so there shouldn't be a PR that 'caused' the bug nor test case steps that need to be added


Fixes 166: propery validate repomd exists

and not just that the passed in url returns 2XX

https://issues.redhat.com/browse/HMSCONTENT-166

test instructions:
curl -X POST localhost:8000/api/content-sources/v1/repository_parameters/validate/    -H "`./scripts/header.sh 1`"  -H 'Content-Type: application/json'   -d '[{"url":"https://google.com"}]'

you'd expect this to return a 404 response, indicating the metadata  is not valid, but prior to this PR, it reports valid metadata and a 200


Fix windows and other O/S init_fork_handlers

Not sure how VMS is doing...

The intent was that the fork handlers are NOT called by default.  So why is this necessary?

because it is called?

libcrypto-1_1.dll!openssl_init_fork_handlers()  Line 138	C

libcrypto-1_1.dll!OPENSSL_init_crypto(unsigned _int64 opts=0x0000000000000000, const ossl_init_settings_st * settings=0x00000000)  Line 556 + 0x12 bytes	C
libcrypto-1_1.dll!do_ex_data_init_ossl()  Line 39 + 0xb bytes	C
libcrypto-1_1.dll!CRYPTO_THREAD_run_once(long * once=0x00632230, void (void)* init=0x0052d8e0)  Line 81 + 0x4 bytes	C
libcrypto-1_1.dll!get_and_lock(int class_index=0x00000000)  Line 59 + 0xf bytes	C
libcrypto-1_1.dll!CRYPTO_new_ex_data(int class_index=0x0000000c, void * obj=0x01601cd8, crypto_ex_data_st * ad=0x01601d20)  Line 214 + 0xc bytes	C
libcrypto-1_1.dll!BIO_new(const bio_method_st * method=0x005b7bb4)  Line 85 + 0x19 bytes	C
libcrypto-1_1.dll!BIO_new_fp(_iobuf * stream=0x6c9e73a8, int close_flag=0x00000010)  Line 105 + 0xa bytes	C
openssl.exe!dup_bio_in(int format=0x00008001)  Line 2421 + 0x25 bytes	C
openssl.exe!main(int argc=0x00000001, char * * argv=0x01601c70)  Line 125	C
openssl.exe!__tmainCRTStartup()  Line 586 + 0x17 bytes	C
kernel32.dll!@BaseThreadInitThunk@12()  + 0x12 bytes
ntdll.dll!___RtlUserThreadStart@8()  + 0x27 bytes
ntdll.dll!__RtlUserThreadStart@8()  + 0x1b bytes

Rats.  The code in crypto/init.c is wrong.  The intent is that unless you specify the flag, the fork handlers are not called.   So the define should be renamed from  OPENSSL_INIT_NO_ATFORK to  OPENSSL_INIT_ATFORK and the test in init.c inverted.  Does that make sense?

whatever helps...

Please see #3815

closing.


ChocolateyPackage: Avoid duplicate choco.exe

Pull Request (PR) description
Make sure Get-Command only returns one.
This Pull Request (PR) fixes the following issues
Fixes #69
Task list

[ ] Added an entry to the change log under the Unreleased section of the file CHANGELOG.md.
Entry should say what was changed and how that affects users (if applicable), and
reference the issue being resolved (if applicable).
[ ] Resource documentation added/updated in README.md.
[ ] Resource parameter descriptions added/updated in README.md, schema.mof and comment-based
help.
[ ] Comment-based help added/updated.
[ ] Localization strings added/updated in all localization files as appropriate.
[ ] Examples appropriately added/updated.
[ ] Unit tests added/updated. See DSC Community Testing Guidelines.
[ ] Integration tests added/updated (where possible). See DSC Community Testing Guidelines.
[ ] New/changed code adheres to DSC Community Style Guidelines.

PR was missing an update to the changelog (that was the failed test).
Thanks for the contrib, I'll review the other calls to gcm.


[Suggestion] Add FPS limiter to tools

I'm using this command in Steam for DXVK games:
DXVK_FRAME_RATE=97

And I'm using this command in Steam for VKD3D-Proton games:
mangohud MANGOHUD_CONFIG=fps_limit=97,no_display

The MangoHud command works for both though, DXVK and VKD3D-Proton. Maybe the default could be to hide the display with the no_display command, but if MangoHud is activated in the tools section also, then the no_display part could be removed from the FPS limit command.
// 97 is the FPS limit I chose

Thanks for the suggestion, but I'm not going to implement that.
The goal is to keep unbloated.
Just put DXVK_FRAME_RATE=97 or MANGOHUD_CONFIG=fps_limit=97,no_display on Launch Arguments.


Suppress alerts in certain time ranges?

It's more like a question, unless a feature like is not yet supported.
We need to suppress alerts in certain time ranges (non office hours basically). Is there a way to declare these somehow in Sloth config?

Hi @jayarjo
Sloth doesn't support this (IMHO this should be the responsibility of the notifier).
Maybe a better way of doing this would be using time_intervals feature on alertmanager.
Let us know how you solve it! I'm sure that other people have this same problem :)


Better OS detection

I found that os detection does not work for Mac OS.
Please use:

import platform

if platform.system == "Linux":
    import fcntl

def sender(self):
    while True:
        if not(self.enabled):
            continue
        if platform.system == "Linux":
            fcntl.ioctl(self.desc, 0x5427) # Yeah, it's magic. Start Break (TIOCSBRK)
            time.sleep(0.0001)
            fcntl.ioctl(self.desc, 0x5428) # Yeah, it's magic. End Break (TIOCCBRK)
        else:
            self.ser.send_break(0.0001)

https://docs.python.org/3.8/library/platform.html
I tried to use a pull request, but it was to cumbersome.
Thanks for the code, it works for me, but with changes merged to master for OS detection, it easier to use.
I am a mac and linux user :)
Chears Peter

The platform test could also be used to set the default USB port for an OS.
Eg.:
For "Darwin" :  '/dev/tty.usbserial-1420'
For "Linux" : '/dev/ttyUSB0


Can't get this to work at all

I can't get the script to work at all.  Before today my cert wasn't ready for renewal ... now that it is ready, when I attempt a renewal with the unmodified script specified for the hook, I get this after the list of challenges it will be doing:
Running manual-auth-hook command: /usr/local/certbot-he-hook/certbot-he-hook.sh
Error output from manual-auth-hook command certbot-he-hook.sh:
No zone for domain "" found.
/usr/local/certbot-he-hook/certbot-he-hook.sh: line 99: return: can only `return' from a function or sourced script

Running manual-auth-hook command: /usr/local/certbot-he-hook/certbot-he-hook.sh
Error output from manual-auth-hook command certbot-he-hook.sh:
No zone for domain "" found.
/usr/local/certbot-he-hook/certbot-he-hook.sh: line 99: return: can only `return' from a function or sourced script

Running manual-auth-hook command: /usr/local/certbot-he-hook/certbot-he-hook.sh
Error output from manual-auth-hook command certbot-he-hook.sh:
No zone for domain "" found.
/usr/local/certbot-he-hook/certbot-he-hook.sh: line 99: return: can only `return' from a function or sourced script

Running manual-auth-hook command: /usr/local/certbot-he-hook/certbot-he-hook.sh
Error output from manual-auth-hook command certbot-he-hook.sh:
No zone for domain "" found.
/usr/local/certbot-he-hook/certbot-he-hook.sh: line 99: return: can only `return' from a function or sourced script

Running manual-auth-hook command: /usr/local/certbot-he-hook/certbot-he-hook.sh
^CCleaning up challenges
Running manual-cleanup-hook command: /usr/local/certbot-he-hook/certbot-he-hook.sh
Error output from manual-cleanup-hook command certbot-he-hook.sh:
No zone for domain "" found.
/usr/local/certbot-he-hook/certbot-he-hook.sh: line 99: return: can only `return' from a function or sourced script

Running manual-cleanup-hook command: /usr/local/certbot-he-hook/certbot-he-hook.sh
Error output from manual-cleanup-hook command certbot-he-hook.sh:
No zone for domain "" found.
/usr/local/certbot-he-hook/certbot-he-hook.sh: line 99: return: can only `return' from a function or sourced script

It repeats many times because there are a lot of names in my certificate.  I tried various replacements for "return 1" ... "continue", "exit", "exit 1", "break" ... and none of them work.  See issue #10 that I opened before.  With continue, it just hangs, and after some thought, this makes sense, so the pull request I made for that issue is invalid.  With the others, it spits out errors similar to the above ... the domain is always "" instead of what it should be.  The DNS challenges fail because the TXT records are never added.
Running on Ubuntu 20, the master branch is checked out from this repo and is up to date.
It looks like the part of the script that sets $HE_COOKIE isn't getting what it expects from the HE website.  Here's an excerpt of what I get from running 'curl -L --silent --show-error -I "https://dns.he.net/"' :
Set-Cookie: 291541a0a47538f8ae75fdef92aca43c56e2b307832d37725210bb8ed950c8e4=c99383a395e65d94dd37a526c6a7ea03; path=/; expires=Thu, 19-Aug-2021 14:23:39 GMT
The "CGISESSID=" text that the script is looking for is not there.  Did HE change their API so that it breaks this script?

With the following diff, it works:
diff --git a/certbot-he-hook.sh b/certbot-he-hook.sh
index f65a761..1eae4aa 100755
--- a/certbot-he-hook.sh
+++ b/certbot-he-hook.sh
@@ -56,7 +56,7 @@ if [ -n "$HE_USER" ] && [ -n "$HE_PASS" ]; then
   HE_COOKIE=$( \
     curl -L --silent --show-error -I "https://dns.he.net/" \
       | grep '^Set-Cookie:' \
-      | grep -Eo 'CGISESSID=[a-z0-9]*')
+      | grep -Eo '[a-z0-9]*=[a-z0-9]*' | head -n1)
   # Attempt login
   curl -L --silent --show-error --cookie "$HE_COOKIE" \
     --form "email=${HE_USER}" \
@@ -92,11 +92,10 @@ STRIP_COUNTER=1
 # Walk through all possible zone names
 while true; do
   ATTEMPTED_ZONE=$(echo "$CERTBOT_DOMAIN" | cut -d . -f ${STRIP_COUNTER}-)
-
   # All possible zone names have been tried
   if [ -z "$ATTEMPTED_ZONE" ]; then
     echo "No zone for domain \"$DOMAIN\" found." 1>&2
-    return 1
+    break
   fi

   # Take care of "." and only match whole lines. Note that grep -F

My fix for line 99 (See issue #10 too) here may not be right.  "exit 1" may be the right way to go.


[Usage]: how to use enable-chunked-prefill?

Your current environment
The output of `python collect_env.py`

How would you like to use vllm
I want to know more about --enable-chunked-prefill. and the constriant between args max-num-seqs, max-num-batched-tokens and max-model-len. can I use --enable-chunked-prefill and --enable-prefix-caching at the same time?
I tried to use chunked-prefill based on vllm-0.4.0, but got following error.
ERROR:    Exception in ASGI application

 Traceback (most recent call last):

   File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 264, in __call__

     await wrap(partial(self.listen_for_disconnect, receive))

   File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 260, in wrap

     await func()

   File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 237, in listen_for_disconnect

     message = await receive()

   File "/usr/local/lib/python3.10/dist-packages/uvicorn/protocols/http/httptools_impl.py", line 568, in receive

     await self.message_event.wait()

   File "/usr/lib/python3.10/asyncio/locks.py", line 214, in wait

     await fut

 asyncio.exceptions.CancelledError: Cancelled by cancel scope 7fbb404e2b30

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):

   File "/usr/local/lib/python3.10/dist-packages/uvicorn/protocols/http/httptools_impl.py", line 411, in run_asgi

     result = await app(  # type: ignore[func-returns-value]

   File "/usr/local/lib/python3.10/dist-packages/uvicorn/middleware/proxy_headers.py", line 69, in __call__

     return await self.app(scope, receive, send)

   File "/usr/local/lib/python3.10/dist-packages/fastapi/applications.py", line 1054, in __call__

     await super().__call__(scope, receive, send)

   File "/usr/local/lib/python3.10/dist-packages/starlette/applications.py", line 123, in __call__

     await self.middleware_stack(scope, receive, send)

   File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 186, in __call__

     raise exc

   File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 164, in __call__

     await self.app(scope, receive, _send)

   File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/cors.py", line 83, in __call__

     await self.app(scope, receive, send)

   File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/exceptions.py", line 62, in __call__

     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)

   File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 64, in wrapped_app

     raise exc

   File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 53, in wrapped_app

     await app(scope, receive, sender)

   File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 758, in __call__

     await self.middleware_stack(scope, receive, send)

   File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 778, in app

     await route.handle(scope, receive, send)

   File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 299, in handle

     await self.app(scope, receive, send)

   File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 79, in app

     await wrap_app_handling_exceptions(app, request)(scope, receive, send)

   File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 64, in wrapped_app

     raise exc

   File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 53, in wrapped_app

     await app(scope, receive, sender)

   File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 77, in app

     await response(scope, receive, send)

   File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 257, in __call__

     async with anyio.create_task_group() as task_group:

   File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 678, in __aexit__

     raise BaseExceptionGroup(

 exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)

Chunked prefill is ready starting from version v0.4.2. You can upgrade to the latest version and try again.

cc @rkooo567

As @CharlesRiggins the feature is supported from 0.4.2. But I recommend you to use 0.5.0

I want to know more about --enable-chunked-prefill. and the constriant between args max-num-seqs, max-num-batched-tokens and max-model-len.

No constraint. I recommend you to use --max-num-batched-tokens, not --max-num-seqs when using chunked prefill though. I think it is easier to control the performance with --max-num-batched-tokens.
--max-model-len is unrelated to chunked prefill imo.

can I use --enable-chunked-prefill and --enable-prefix-caching at the same time?

It is not supported yet. There's an open issue. We should support it soon.

As @CharlesRiggins the feature is supported from 0.4.2. But I recommend you to use 0.5.0

I want to know more about --enable-chunked-prefill. and the constriant between args max-num-seqs, max-num-batched-tokens and max-model-len.

No constraint. I recommend you to use --max-num-batched-tokens, not --max-num-seqs when using chunked prefill though. I think it is easier to control the performance with --max-num-batched-tokens.
--max-model-len is unrelated to chunked prefill imo.

can I use --enable-chunked-prefill and --enable-prefix-caching at the same time?

It is not supported yet. There's an open issue. We should support it soon.

Hi, I am not sure how to solve this problem. I failed to enable chunked prefill when I run model TheBloke/Llama-2-7B-Chat-GPTQ with benchmarks/benchmark_serving.py.
I have some error message in this issue. https://github.com/vllm-project/vllm/issues/5566

Does it work without the chunked prefill?

Does it work without the chunked prefill?

Yes, it works without chunked prefill.

Hmm actually curious if it is related to https://github.com/vllm-project/vllm/issues/4381

Hmm actually curious if it is related to #4381

I am not sure but I think it may relate to vLLM server support. I can run Llama-2-7b-GPTQ quantized model with marlin kernel support and enable-chunked-prefill when I run it by "benchmark_latency.py" that uses offline inference.

Hmm that's pretty odd. Can you update the issue to explain the detailed repro? I can take a look when I have bandwidth

Hmm that's pretty odd. Can you update the issue to explain the detailed repro? I can take a look when I have bandwidth

Is chunked_prefill only supported in Ampere?
I get this error when running on v100, chunked_prefill=False is ok
/project/lib/Analysis/Allocation.cpp:43: std::pair<llvm::SmallVector, llvm::SmallVector > mlir::triton::getCvtOrder(mlir::Attribute, mlir::Attribute): Assertion `!(srcMmaLayout && dstMmaLayout && !srcMmaLayout.isAmpere()) && "mma -> mma layout conversion is only supported on Ampere"' failed.

@rkooo567 , is there a PR where we can track the status of the fix for

can I use --enable-chunked-prefill and --enable-prefix-caching at the same time?
It is not supported yet. There's an open issue. We should support it soon.

Is chunked_prefill only supported in Ampere?

I think it should work as long as triton is supported. we have xformer attention + triton kernel working for chunked prefill.

@rkooo567 , is there a PR where we can track the status of the fix for

I think this should be fixed in the master by @comaniac https://github.com/vllm-project/vllm/commit/e3580537a41a46b0f3cd750b86b633c1857a8c90

@CharlesRiggins what is max-num-batched-tokens?


Create ETL task for loading Biomarkers

Biomarkers are loaded, need to create table for prev symbols and synonyms

Done.


DM Movable UX Dialogs (Suggestion)

I noticed during my last game. The bottom UX seemed to get in the way for my larger maps.

It would nice to make the UX box's drag-able/movable so that I can get to the areas hidden by the UX.

We decreased the size for now.


where clauses in codegen

This changes codegen to use where clauses which makes reading the generated code much easier.
Unfortunately, this does lead to larger codegen, so we lose what was gained in #1811
Old
pub fn SetPreferredDeviceKind<'a, Param0: ::std::convert::Into<LearningModelDeviceKindPreview>>(&self, value: Param0) -> ::windows::core::Result<()> {

New
pub fn SetPreferredDeviceKind<'a, P0>(&self, value: P0) -> ::windows::core::Result<()>
    where
        P0: ::std::convert::Into<LearningModelDeviceKindPreview>,

Eeek. What's the difference to cargo package size?
Also, there have been some compatibility issues around the two syntactic approaches where Rust doesn't quite treat them the same way. I'd have to dig that up to confirm this is not a regression.

What's the difference to cargo package size?

Old: 13,011,416 bytes
New: 13,061,995 bytes
Surprisingly, not a big difference...

compatibility issues around the two syntactic approaches

I'm not aware of a difference between the two approaches. Are you perhaps thinking about the impl Trait syntax?

Yes, we're not using impl Trait anymore so that's probably what I was thinking of.
And the package size is the main thing so this change is probably good - and clearer for sure.

@kennykerr just as an FYI: if I remove the rustfmt config for line width, there are a lot more lines, but it doesn't seem to impact package size very much. We may want to consider removing that config. It might make git diffs much larger though....

Sure, we can experiment with that again. Separately. Last I checked it was still significant, but a lot has changed.


Specific Bank Origination/Reject entry detail transaction Id contains alphanumeric

Hi,
While parsing the Origination/Reject file we are getting parsing error as described below.
Our bank specification says as below.
For rejects, positions 80-87 of the entry detail (type 6) record are changed to REJ0xxxx, where
xxxx is the reject code.
While parsing the parser it is  throwing error .
Caused by: com.afrunt.jach.exception.ACHException:
Cannot parse string REJ06030 to number for field EntryDetail->traceNumber[Long]
Could you please advise on this issue .
Let us know if you need any more details.

@mcgovardhan could you provide some more details about the batch transaction type and details about the spec itself. Maybe I just need to implement those additional batch type and specific format of the detail entry (6th record)

Thanks a lot for replying to me ..
As part of Origination/Reject file we are getting alpha numeric in case of Reject record.
I mean For Origination record we will have numeric value.. for Reject record we will have Alpha numeric value.
Below are the details we have for trace number..
Trace number
Position 80-94
Length 15
For file-, batch-, and item-level rejects, positions 80-87 changed to REJ0xxxx, where xxxx is the reject reason code.
For all other items, this field is our bank-assigned trace number beginning with 01234567.
So basically the parser is failing for Rejected record..
ERROR :- Caused by: com.afrunt.jach.exception.ACHException: Cannot parse string REJ060300000001 to number for field EntryDetail->traceNumber[Long]

@mcgovardhan hm, it is breaking the NACHA rules and format

Looks like our bank file has custom based origination/reject file..

@mcgovardhan yes, and in this case, your format is not an ACH anymore, because it violates the core constraints

Thanks a lot for providing your input on this issue.I'm closing this issue.


Don't Merge! PR real time test for source branch full build

Docs Build status updates of commit 3fd9579:
:clock10: Pending: waiting for processors (21 builds ahead of you)
:warning: Docs Build is busy, currently there are 21 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 3fd9579:
:clock10: Full build: the average full build time is 5 min(s) 12 sec(s), this is based on the last 30 build(s) for this repository.

Docs Build status updates of commit 3fd9579:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docfx.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Scrutinize Building And Parsing APIs

MetainfoFile currently provides methods for initializing itself from either some bytes or a file at the given Path. However, the MetainfoBuilder API doesnt provide subsequent methods for saving the file out to a given Path, only retriving the output bytes. We should either add functionality for saving out to a Path for the MetainfoBuilder or remove the ability to initialize a MetainfoFile from a Path.
MetainfoBuilder typically terminates on either the build_from_file() or build_from_directory() function calls. The user typically should not have to differentiate between the two methods as they know what they are pointing their provided Path at.

Adding on to this that since we are trying to generalize bittorrent technologies, we may want to do away with accepting a Path and instead accept some DataAccessor which is partially what we do anyways internally.
The use case here is that maybe clients of our library aren't running a traditional setup where their files are stored on some hard disk and instead are already loaded into memory. This would let them implement some DataAccessor trait and feed data to our hashers directly which could have huge performance wins for them. However, we would also have to have a way of getting information related to the directory layout for the memory when we are generating the e.g. files portion of the bencoded file.
Default implementations of the trait could be provided for Path, File, and T: AsRef<[u8]>.

Since other torrent clients support building metainfo files without providing a default tracker, we should also relax that requirement for our MetainfoFile parser.


A new cgh module capturetex will be open source soon.

video_source and cge already support shared texture mode.
I'm training new staff to develop a community version of capturetex.

capturetex will use GSL whenever possible.
eg: Replace BOOST_SCOPE_EXIT_ALL with gsl::final_action.

Already implemented D3D11 hooking in the dev branch, and we are busy in other 3 projects, so it will be postponed.


Add cli interface

CLI Usage
$ tally-token --help
usage: tally-token [-h] {split,merge} ...

positional arguments:
  {split,merge}  Commands: split: split a file into multiple files merge: merge multiple files into a fileExample: tally-token split example.bin
                 example.bin.1 example.bin.2 example.bin.3 tally-token merge example-merged.bin example.bin.1 example.bin.2 example.bin.3

options:
  -h, --help     show this help message and exit

split
$ tally-token split something.bin split-1.bin split-2.bin split-3.bin

merge
$ tally-token merge merged.bin split-1.bin split-2.bin split-3.bin

Codecov Report
Patch coverage: 100.00% and no project coverage change.

Comparison is base (4191413) 100.00% compared to head (e12320f) 100.00%.

:exclamation: Current head e12320f differs from pull request most recent head 5a123c9. Consider uploading reports for the commit 5a123c9 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##              main        #6   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            1         2    +1
  Lines           34        66   +32
=========================================
+ Hits            34        66   +32

Flag
Coverage Δ

unittests
100.00% <100.00%> (ø)

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

Impacted Files
Coverage Δ

tally_token/__main__.py
100.00% <100.00%> (ø)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Initial GUI tool for Admin functionality

Contributes to  #285  .
Additions/modifications proposed in this pull request:

Initial GUI tool
Create databases, will prompt to overwrite if they exist
Add users
Start and Stop AuthServer
Read from settings.cfg (no edit / save or ability to change file location... yet)

Code has ended up quite large and I'm sure there's much better ways to do what I've done so code review / feedback very welcome 😀

Thank you @nemerle ! I'll work through these review points later on. 👍


Cannot set browser position to negative values

The problem
Cannot change browser position using negative values.
DIMENSION_REGEX pattern in BrowserResizer.java does not allow to use negative values for browser position.
https://github.com/selenide/selenide/blob/main/src/main/java/com/codeborne/selenide/webdriver/BrowserResizer.java
Details
I am trying to move browser window to display to the left of main screen but adjustBrowserPosition(Config config, WebDriver driver) method throws exception Browser position -1900x-450 is incorrect .
BrowserPosition method should have separate pattern e.g. "-?\\d+x-?\\d+"
Tell us about your environment

Selenide Version: doesn't matter
Chrome\Firefox\IE Version: doesn't matter
Browser Driver Version: doesn't matter
Selenium Version: doesn't matter
OS Version: doesn't matter

Code To Reproduce Issue [ Good To Have ]
Set system property:
-Dselenide.browserPosition=-1900x-450

fixed by https://github.com/selenide/selenide/pull/2259


Warning: propTypes was defined as an instance property on RiseLoader.

It gives such warning "Warning: propTypes was defined as an instance property on RiseLoader. Use a static property to define propTypes instead."
Version - "halogenium": "^2.2.2"
React 16.0.0

released version 2.2.3
please update and ping me if you need further help


is the docker container up-to-date?

i'm getting the following error trying to run the igw command via the docker container: Could not find command "igw".
is the container up-to-date w/ the latest version of terraforming?
thanks (and great tool!)

I forgot the update of Docker image... I've just released new Docker image with the latest Terraforming (v0.7.0). :point_right: https://github.com/dtan4/dockerfile-terraforming/pull/20 Please check it.
Thank you for reporting :exclamation:


[PE-D][Tester B] No error message nor success message when delete 0 is entered

delete 0 likely throws an invocation target exception. as the program is not responsive.

Labels: severity.High type.FunctionalityBug
original: Oliverloo0909/ped#10

I think 'delete 0' does actually throw the proper error message and I've tested this successfully across all modes - so this is an invalid issue and I'll close this now.


x/tools/gopls: diagnostics not returned for dependencies

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

$ go version
go version devel +623d653db7 Sat Jun 29 13:17:15 2019 +0000 linux/amd64
$ go list -m golang.org/x/tools
golang.org/x/tools v0.0.0-20190628222527-fb37f6ba8261
$ go list -m golang.org/x/tools/gopls
golang.org/x/tools/gopls v0.1.2-0.20190628222527-fb37f6ba8261

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
GO111MODULE="on"
GOARCH="amd64"
GOBIN="/home/myitcv/gostuff/src/github.com/myitcv/govim/cmd/govim/.bin"
GOCACHE="/home/myitcv/.cache/go-build"
GOENV="/home/myitcv/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/myitcv/gostuff"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/myitcv/gos"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/myitcv/gos/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/myitcv/gostuff/src/github.com/myitcv/govim/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build123661815=/tmp/go-build -gno-record-gcc-switches"

What did you do?
Consider the following setup:
-- go.mod --
module mod.com

-- main.go --
package main

import _ "mod.com/p"

func main() {
}
-- p/p.go --
package p

var x Type

If we open main.go we do not get back any diagnostics for the dependency package mod.com/p, despite there being a compile error that prevents the main package from compiling:
# mod.com/p
p/p.go:3:7: undefined: Type

If we then open p/p.go we do get the diagnostic with the above type check error.
What did you expect to see?
The diagnostic for p/p.go to be returned when we open main.go, because it's an error in a dependency of the package to which main.go belongs.
What did you see instead?
As above.

cc @stamblerre @ianthehat

@stamblerre I think this also belongs in the gopls v1.0.0, principally because of the dissonance   with the compiler output. Thoughts?

On a related note, other packages in the main module also do not have diagnostics reported until a file from that package is opened. This creates something of a continuity problem with the compiler, especially when running go test $m/... for some main module.
This can clearly be argued both ways.
Is there perhaps an argument therefore for making this configurable?
Despite this comment about other packages in the main module, I think dependencies' diagnostics should always be reported.

This remains an issue as of b2a7f28a184a6e7aea33316b2d8a321cc9d7e138.
Based on discussion with @ianthehat, I think the "right" thing to do is to return diagnostics for the packages and their transitive dependencies of open files. But analysis results should only be returned for main module package files.

That sounds like a reasonable approach to me.


Middleware

Would you be interested in a PR that adds standard http based middleware?  The ideal is that it provides middleware that adds the injector to the request context and then, in each request, you can quickly fetch not just the injector instance itself but also request specific services out of the injector while handling requests.  Seems like it would be generally useful for anybody doing web development using do and it doesn't add any dependencies since it is based on the standard library.
I've written such a thing and it would be useful to include here since otherwise I'd have to make a tiny package and publish it just to reuse it across projects.

Hi @mtiller and thanks for the proposal.
Could you please provide a quick demo of the API you imagined?
I don't think it's the right place for such a feature, since do is intended to be a low-level DI library. However, a sub-package or do-contrib library could be a nice option.


Add a tutorial for statistics

Assigned to @ZvikaZ.
The tutorial should include general information about Statistics and how to add a custom user-created statistics.

Closed by #137


Not able to drop the database

When I run command: dotnet ef database drop
It throws an error:
Object name: 'MvcMovieContext'.
at Microsoft.EntityFrameworkCore.DbContext.get_InternalServiceProvider()
at Microsoft.EntityFrameworkCore.Infrastructure.AccessorExtensions.GetService[TService](IInfrastructure1 accessor)    at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContext(Func1 factory)
at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContext(String contextType)
at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.DropDatabase(String contextType)
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.DropDatabase.<>c__DisplayClass0_1.<.ctor>b__0()
at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)
Cannot access a disposed object. A common cause of this error is disposing a context that was resolved from dependency injection and then later trying to use the same context instance elsewhere in your application. This may occur if you are calling Dispose() on the context, or wrapping the context in a using statement. If you are using dependency injection, you should let the dependency injection container take care of disposing context instances.
Object name: 'MvcMovieContext'.
I'm a newbie to C# and .NET Core. I don't know what went wrong. But here is my workaround: do another migration.
run the following command:
dotnet ef migrations add SecondCreate
dotnet ef database update

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

ID: 8b6b0b52-7b5b-2ff6-d8ff-17fe27e24306
Version Independent ID: 46eed0b3-acc4-982a-2e97-b865020db702
Content: Add a new field to an ASP.NET Core app
Content Source: aspnetcore/tutorials/first-mvc-app-mac/new-field.md
Product: aspnet-core
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

@xiao-ai  that's a misleading error message. It can fail for a variety of reason. Try again. IF that doesn't work, change the connection string so a new DB is created.


Executing test target fails because of development team id

Hi, I’m trying to execute the test target on macOS. Both Xcode 8 and 9b4 fail, it seems like your personal development team ID is hardcoded in both the local project files and the downloaded dependencies. Do the tests run for you on a vanilla machine/user account?
I might be doing something wrong, though, the whole dependency download and test build chain is quite involved and too clever for me.
No signing certificate "Mac Development" found:  No "Mac Development" signing certificate matching team ID "S7YQ892G6G" with a private key was found.

@Soryu, you can just set "no signing" in build settings for each of the targets that cause the error and it'll resolve your issues.

@mattgallagher with last few commits some of your targets include signing build settings, just FYI

@andreyz Have you actually tried it? How could I possibly disable it in targets that are downloaded as part of the build process?

Sorry about the signing settings. I've stripped them from all of CwlSignal, CwlUtils, CwlPreconditionTesting and CwlCatchException so there shouldn't be any problem with either CwlSignal or any of the dependencies that it pulls in.


Depth Player & Vimeo Depth Player redundancy

Lots of redundancy between Depth Player and Vimeo.DepthPlayer.
Should Vimeo depth player have an instance of DepthPlayer internally? Would be great to consolidate this.

DIdn't understand the beautiful build system that @juniorxsound has built!


Create new endpoint: GET /reports

This method should return data of all reports that belong to requested user. The result should be in the following format:
{
   "data": {
      "reportsCount": 2,
      "reports": [
         {
            "name": "Sept 2020",
            "description": "Some words",
            "reportEntities": [
               {
                  "id": 1,
                  "date": "2020-05-05",
                  "class": "HTML&CSS",
                  "classRole": "Lecturer",
                  "hoursSpend": 2,
                  "description": "Some words"
               },
               {
                  "id": 2,
                  "date": "2020-05-05"
                  "class": "HTML&JS Games",
                  "classRole": "Co-Lecturer"
                  "hoursSpend": 2,
                  "description": "Some words"
               }
            ]
         },
         {
            "name": "Oct 2020",
            "reportEntities": [
                  // The same structure
            ]
         },
      ]
   }
}

ToDo:

[ ] The method itself
[ ] Tests
[ ] API Specification

Note: this method should return non-archived reports only. The same rule should be applied for the report entities inside this structure as well.

Edit: endpoint is changed to GET /reports. The user ID will be indentified from the given auth-token


Map literal boolean in HANA

Situation
SAP HANA does not seem to support boolean literals in all used versions.
We need to investigate, which versions are affected and then decide whether a workaround is necessary.

@jakobbraun, please move this ticket to the extracted Hana dialect and close it here with a reference.


WebUI: Endpoint used for updating MultiLanguageProperty elements

I'm currently working on integrating the AAS Web UI to be used as user interface for our own AAS API implementation, which fully complies with the
OpenAPI schema.
I realized that for updating values on Property typed submodel elements, the WebUI sends a PATCH request to: /submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$value - which is the way to go, as far as I understand the spec.
But for updating values on MultiLanguageProperty typed submodel elements, the WebUI uses the endpoint:
PUT /submodels/{submodelIdentifier}/submodel-elements/{idShortPath}. It then sets the updated effective value of this element on the additional value object property, which is actually not included in the official request schema for this endpoint.
May I ask what is the reason behind not using the endpoint PATCH /submodels/.../$value in this case as well? Could this be adjusted to comply with the OpenAPI spec?
Thank you!

Thank you for raising this issue.
This is still from the DotAAS V1 era where the $value endpoints did not exist.
I must have forgotten to change this. I will update you once this is fixed.

Ah, I see! I haven't been dealing with the AAS before v3 :)
Thanks for fixing this!


Added guide for setting up datasources in Helidon MP.

Signed-off-by: Laird Nelson<EMAIL_ADDRESS>

@barchetta Changes are good, ja?

Sounds good, so one path through the guide, picking one connection pool, one database, etc. and leaving all the other choose-your-own-adventure paths as exercises for the reader?


Statistics For Matches

In a recent use I wanted to know three statistics:

How many nodes were matched by a criterion
How many weren't matched by the criterion
How many weren't matched by any criterion

I was colouring nodes and, in particular, wanted to know if any nodes remained uncoloured - at a certain level in the hierarchy.

Done in v2.1


Build Failed! :/

Estou a 2 dias tentando me consertar isso, mas não acho jeito. Antes de instalar o plugin o app estava funcionando normalmente, pode me dar uma luz por favor?
Erro:
:app:compileDebugJavaWithJavac
/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/Printer.java:3: error: package com.datecs.api.biometric does not exist
import com.datecs.api.biometric.TouchChip;
                           ^

/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/Printer.java:1357: error: cannot find symbol
public TouchChip getTouchChip() {

       ^

symbol:   class TouchChip
location: class Printer
/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/DatecsSDKWrapper.java:41: error: package com.datecs.api does not exist
import com.datecs.api.BuildInfo;
^
/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/DatecsSDKWrapper.java:42: error: package com.datecs.api.printer does not exist
import com.datecs.api.printer.ProtocolAdapter;
^
/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/DatecsSDKWrapper.java:47: error: cannot find symbol
private ProtocolAdapter mProtocolAdapter;
^
symbol:   class ProtocolAdapter
location: class DatecsSDKWrapper
/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/DatecsSDKWrapper.java:61: error: package ProtocolAdapter does not exist
private final ProtocolAdapter.PrinterListener mChannelListener = new ProtocolAdapter.PrinterListener() {
^
/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/Printer.java:1358: error: cannot find symbol
    TouchChip instance = new TouchChip() {

    ^

symbol:   class TouchChip
location: class Printer
/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/Printer.java:1358: error: cannot find symbol
TouchChip instance = new TouchChip() {
^
symbol:   class TouchChip
location: class Printer
/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/DatecsSDKWrapper.java:61: error: package ProtocolAdapter does not exist
private final ProtocolAdapter.PrinterListener mChannelListener = new ProtocolAdapter.PrinterListener() {

                                                                                ^

/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/DatecsSDKWrapper.java:360: error: cannot find symbol
    mProtocolAdapter = new ProtocolAdapter(inputStream, outputStream);

                           ^

symbol:   class ProtocolAdapter
location: class DatecsSDKWrapper
/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/DatecsSDKWrapper.java:364: error: package ProtocolAdapter does not exist
final ProtocolAdapter.Channel channel = mProtocolAdapter.getChannel(ProtocolAdapter.CHANNEL_PRINTER);
                             ^

/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/DatecsSDKWrapper.java:364: error: cannot find symbol
final ProtocolAdapter.Channel channel = mProtocolAdapter.getChannel(ProtocolAdapter.CHANNEL_PRINTER);
^
symbol:   variable ProtocolAdapter
location: class DatecsSDKWrapper
Note: /home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/DatecsSDKWrapper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/DatecsSDKWrapper.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
12 errors
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Get more help at https://help.gradle.org

BUILD FAILED in 3s
FAILED
27 actionable tasks: 7 executed, 20 up-to-date
(node:31565) UnhandledPromiseRejectionWarning: Error: /home/leo/printer04/platforms/android/gradlew: Command failed with exit code 1 Error output:
/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/Printer.java:3: error: package com.datecs.api.biometric does not exist
import com.datecs.api.biometric.TouchChip;
^
/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/Printer.java:1357: error: cannot find symbol
public TouchChip getTouchChip() {
^
symbol:   class TouchChip
location: class Printer
/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/DatecsSDKWrapper.java:41: error: package com.datecs.api does not exist
import com.datecs.api.BuildInfo;
^
/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/DatecsSDKWrapper.java:42: error: package com.datecs.api.printer does not exist
import com.datecs.api.printer.ProtocolAdapter;
^
/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/DatecsSDKWrapper.java:47: error: cannot find symbol
private ProtocolAdapter mProtocolAdapter;
^
symbol:   class ProtocolAdapter
location: class DatecsSDKWrapper
/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/DatecsSDKWrapper.java:61: error: package ProtocolAdapter does not exist
private final ProtocolAdapter.PrinterListener mChannelListener = new ProtocolAdapter.PrinterListener() {
^
/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/Printer.java:1358: error: cannot find symbol
TouchChip instance = new TouchChip() {
^
symbol:   class TouchChip
location: class Printer
/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/Printer.java:1358: error: cannot find symbol
TouchChip instance = new TouchChip() {
^
symbol:   class TouchChip
location: class Printer
/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/DatecsSDKWrapper.java:61: error: package ProtocolAdapter does not exist
private final ProtocolAdapter.PrinterListener mChannelListener = new ProtocolAdapter.PrinterListener() {
^
/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/DatecsSDKWrapper.java:360: error: cannot find symbol
mProtocolAdapter = new ProtocolAdapter(inputStream, outputStream);
^
symbol:   class ProtocolAdapter
location: class DatecsSDKWrapper
/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/DatecsSDKWrapper.java:364: error: package ProtocolAdapter does not exist
final ProtocolAdapter.Channel channel = mProtocolAdapter.getChannel(ProtocolAdapter.CHANNEL_PRINTER);
^
/home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/DatecsSDKWrapper.java:364: error: cannot find symbol
final ProtocolAdapter.Channel channel = mProtocolAdapter.getChannel(ProtocolAdapter.CHANNEL_PRINTER);
^
symbol:   variable ProtocolAdapter
location: class DatecsSDKWrapper
Note: /home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/DatecsSDKWrapper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/leo/printer04/platforms/android/app/src/main/java/com/giorgiofellipe/datecsprinter/DatecsSDKWrapper.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
12 errors
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Get more help at https://help.gradle.org

BUILD FAILED in 3s
at ChildProcess.whenDone (/home/leo/printer04/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
at ChildProcess.emit (events.js:160:13)
at maybeClose (internal/child_process.js:943:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
(node:31565) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:31565) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Tente remover os plugins e adiciona-los novamente

Fiz isso para todos os plugins instalados e o mesmo erro persiste.

Tente remover a plataforma android e adicionar novamente.

Isso retorna o erro da outra issue que eu postei, relacionado ao arquivo config.xml. Li também o issue que você me passou, pelo jeito não acharam solução ainda. Vou tentar fazer um downgrade no cordova ver se resolve algo.

Fiz downgrade no cordova pro 6.5 e o erro sumiu. Build Successful, Launch Success.
Muito obrigado pela ajuda!


Set default query param values for master endpoints

Add tests for bad HTTP requests

inspired by @gimaker here https://github.com/spotify/helios/pull/587#discussion_r35781309