Task should not be CHMODing the terraform directory to 777.

Line 74 of this file is trying to CHMOD 777 a directory - why?
https://github.com/microsoft/azure-pipelines-terraform/blob/79290bf69bc67f288bfdbe318544b9a36a65a926/Tasks/TerraformInstaller/src/terraform-installer.ts
ADO Agents should not be running with privileged accounts. We should accept the default permissions from the directory. We have multiple agents running on multiple servers with different user accounts, and are attempting to share the agent-tools folder. Getting the following error:
##[error]Error: EPERM: operation not permitted, chmod '/app/agent-tools/terraform/1.1.9/x64/terraform'

Thanks for reporting. @mericstam will look into this and get back to you sooner.


WIP - Modify gauth OTP support to require valid token at registration

Goal
Require users to successfully enter an OTP token before registration is considered completed, preventing users from accidentally locking themselves out. This currently works but is not thoroughly tested.
As is, this is a bit of a hack and involves putting the OTP account object into the authentication event attributes, where it probably shouldn't be. This is because it's necessary during the authentication handler phase. Both issues could be remedied by somehow flagging the entry within the repository, or similar.
In general, this functionality seems pretty necessary to avoid a lot of calls from people who didn't understand the directions during registration. I'm open to, nay, actively interested in ways to refactor this to make a little more sense.
Changes applied

updated OTP registration check action to store new account details in more places
updated OTP registration view to include collecting a token
modified gauth mfa webflow to route token from registration view to authentication handler, and back to registration if authentication fails
updated authentication handler to check for new registration in progress and save account details to repository if such an event is detected

Known TODOs

fix the tabs
at the moment, the save registration action is useless. might factor out.

Just curious...why did this get closed?  This seems like a crucial addition that would save us so many support calls...

@siacali
Honestly, I hadn't gotten any response from the maintainers, and there was a real extent to which this was a hack. It worked, but it wasn't really using some of the underlying mechanisms, such as authentication attributes, as they're supposed to be used.
As the issue of TOTP rollout to a large userbase has come up again for us, this is probably a good time for me to have another pass at this. I agree that it's a critical feature. It's not the only issue where CAS is a little off-base in terms of reasonable MFA implementation, though; I'm also thinking about a pretty ambitious refactor or potentially new module that would bring in support for checking whether or not a user actually has an active MFA registration. At least for our use case, inline registration the first time a user accesses a protected service is hardly a security guarantee, which largely eliminates the benefits of being able to selectively protect services. But I digress.
Regarding the subject of this PR, would you be able to do some code review or general sanity checking if I were to start fresh?

Thanks for the reply.  I’d be very happy to both see this move forward, and would happily review/sanity check, do testing, etc  myself and have other members of my team do so as well.
I agree with your comment regarding inline registration - one (non-optimal) solution is to require a “Simple” (i.e. email, sms, or phone call) token to enable any other type of MFA enrollment.  We had briefly considered writing our own simple portal out side of CAS to do so...but it hasn’t hit the top of the priority list.

Ok, in that case I'll see about picking it back up this week. In all
likelihood I'll start a new branch and PR, so I'll update with that here.
What you're talking about with regard to a portal is also something I've
considered creating. In my ideal world, it would be implemented within CAS
as a new endpoint, with access controlled by a version of simple MFA
wherein the tokens could be delivered to/generated by helpdesk staff, who
could do regular identity verification before reading out the token over
the phone. Built in to the module could be a Bean replacing the default MFA
ProviderSelectors that would implement verification that a user is
registered before approving the method, and returning a block event
otherwise. This might have to be a PR as well...
While I'm dreaming, imagine specifying a "security level" on a service,
rather than specific MFA providers, and categorizing the different
providers in the configuration; then at authentication time a provider
would be chosen that a. matches/exceeds the specified security level and b.
the user is registered with already. Then you could have email/SMS tokens
or better protecting low-level targets, while letting users choose TOTP,
Duo, hardware token, whatever, for higher security services.
On Tue, May 12, 2020 at 09:03 siacali<EMAIL_ADDRESS>wrote:

Thanks for the reply. I’d be very happy to both see this move forward, and
would happily review/sanity check, do testing, etc myself and have other
members of my team do so as well.
I agree with your comment regarding inline registration - one
(non-optimal) solution is to require a “Simple” (i.e. email, sms, or phone
call) token to enable any other type of MFA enrollment. We had briefly
considered writing our own simple portal out side of CAS to do so...but it
hasn’t hit the top of the priority list.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/apereo/cas/pull/4590#issuecomment-627329290, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AKRQETFRSZWUS6KHFLQG57DRRFCLLANCNFSM4KCH66QA
.

--
Hayden Sartoris
Systems Administrator
Bard College IT
(he/him/his)

@siacali Can't ping you from the other PR for some reason, but in any case it's here: #4856
Totally functional; could use some frontend polish and some tests.


fix: Invoke Validate function when adding yaml DeviceProfile

Fix #2596
PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit subject follows the Conventional Commits spec
[x] The commit message follows the EdgeX Contributor Guide
[x] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)
[x] make test has completed successfully

PR Type
What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

YAML DeviceProfile uploading API doesn't validate the content.
Issue Number: #2596
What is the new behavior?
Invoke Validate function when uploading yaml format DeviceProfile to prevent uploading invalid DeviceProfile.
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Are there any new imports or modules? If so, what are they used for and why?
Are there any specific instructions or things that should be known prior to reviewing?
Since deviceProfile.Validate() not validate the nested object, so create another function to validate that.
Other information

@weichou1229 also your branch is out of sync with master, so please re-base.

@tonyespy

The only other comment I have about your commit message...

also your branch is out of sync with master, so please re-base.

No problem, modified the commit message and rebase on the master branch.


set pval_correction

The constructor sets the default to Bonferroni.
If the user enters
config.pval_correction()
or
pval_correction(None)
I do not think this will set to no MTC, and also I think thisAPI is not intuitive.
It would be better to be able to use a string "none" (lower case, not the Python None)
    @pval_correction.setter
    def pval_correction(self, pval_correction: typing.Optional[str]):
        """
        :param pval_correction: a `str` with the name of the desired multiple testing correction method or `None`
          if no MTC should be applied.
        """
        if pval_correction in P_VAL_OPTIONS:
            self._pval_correction = pval_correction
        else:
            self._logger.warning('Ignoring invalid `pval_correction` value %s. Using %s correction.', pval_correction,
                                 self._pval_correction)

I think this should be largely OK and I do not see the errors or issues here.
There are no issues here:

If the user enters
config.pval_correction()

If the above is executed, the code will correctly explode
from genophenocorr.analysis import CohortAnalysisConfiguration

config = CohortAnalysisConfiguration()
config.pval_correction()

produces
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[3], line 1
----> 1 config.pval_correction()

TypeError: 'str' object is not callable

pval_correction is a property, hence this is what should happen
>>> config.pval_correction
'bonferroni'

Next, regarding unsetting MTC. It is possible to avoid MTC by
config.pval_correction = None

I think using None instead of 'none' is more idiomatic and easier to keep track of by leveraging the type system.

I do not think this will set to no MTC,

Yes it does unset the MTC, the MTC will not be done
The API intuitiveness is another question and we may want to update. We must, however keep the following in mind:

we need to have a default config to cover the most common use case
it must be impossible to mis-configure the analysis. The errors must be reported as early as possible

A builder would be the best way to do this, but builders in Python are not too great due to issues with line wrapping. That's why we use properties.
I updated the logic in #189 a bit and I think it should be largely OK.
However, @pnrobinson please point out if you think we should explode instead of logging, or if there are any other things you don't like.

I think this has been done.


Adding Aleksandr Petrosyan as a maintainer

Signed-off-by: Brent Zundel<EMAIL_ADDRESS>

The data is is accurate and has my full consent!


TechDocs: As a producer of doc sites, I want the Vale Linter to be adopted for doc quality checks

The Vale Linter (natural language linter) implements spell check and other basic rules: there are also style libraries and extension points.
https://github.com/errata-ai/vale

I want to work on it.


Handle white-space-only text correctly, fixes solidjs issue #571

If a text consists only of white-space characters (worst case: "\n"), the return value may be an empty string, which may cause issues like in SolidJS #571 and unneccessary filtering of non-data. Detecting this case and returning a simple space character fixes both.

I actually already made a fix of just keeping hoisted literals.. well literal and not applying trim to them. https://github.com/ryansolid/dom-expressions/commit/0f01ded18826fbc3f06d07eafaa72de35b438cfa
I've considered just adding the space before but there are places I definitely want it. Thanks for putting this together.


[Jsontracer] Add category to render bar-graph

This will render each category. The category will contain several bars on the bar chart.
ONE-vscode-DCO-1.0-Signed-off-by: Jisu Park<EMAIL_ADDRESS>

from draft #126
from issue #94

I uploaded the wrong file. I'll close it.


Jobs don't auto-complete

Empire Version
1.5.0
OS Information (Linux flavor, Python version)
Linux HOSTNAME 4.5.0-kali1-amd64 #1 SMP Debian 4.5.5-1kali1 (2016-06-06) x86_64 GNU/Linux
Expected behavior and description of the error, including any actions taken immediately prior to the error. The more detail the better.
Could be a feature request, but when killing jobs using the jobs kill , tab completion doesn't work.
Screenshot of error, embedded text output, or Pastebin link to the error
Any additional information

Hey @leesoh,
The reason jobs don't tab complete right now is because the running jobs are "registered" on the target and not the server. Due to this, the only way to get an updated job list is to task the agent to run "TASK_GETJOBS" (which is executed anytime you type "jobs") and then post the results back to the server. Since the jobs start/end on the agent on the target system, keeping an updated backend DB list of jobs is a challenge. We will start to look how we can implement this in a way that makes sense, but with how things are setup now, they won't be tab completable.
Thanks!


Change decoder.Result type and fix implementation for 'allErrors' reporting strategy

const type = types.object({ a: types.string(), b: types.string({ minLength: 2 }) })
const result = decoder.decode(type, { b: '1' }, { errorReportingStrategy: 'allErrors' })
expect(result.isOk).toBe(false)
if(!result.isOk) {
  expect(result.error.length).toBe(2) //instead is 1 but i would expect to get 2
}

In this example i would expect to get a decoder error and one validation error. In order to do this we must change the return of decode from
result.Result<types.Infer<T>, validator.Error[] | decoder.Error[]>

to
result.Result<types.Infer<T>, (validator.Error | decoder.Error)[]>

To me this would also simplify the user experience, for example I encounter this case:
const results: decoder.Result<unknown>[] = ...
const allErrors = results.flatMap(r => r.match(() => [], (e) => e)) //this would not be possible with (validator.Error[] | decoder.Error[])
if(results.some(r => !r.isOk)) {
  console.log(allErrors)
}

Maybe the implementation change to get this result is non-trivial, @giacomocavalieri let me know what you think.


Introduces @me.id and @me.userName. Closes #3056

Hello,
this solution is introducing @me.id and @me.userName token replacements in the CLI.
Closes. #3056
Cheers

Will reissue it once ready


The indexer only cares about a single world is a chain

Create fresh installation.
git clone https://github.com/latticexyz/mud.git && cd mud && pnpm install && pnpm build
cd ..
pnpm create mud@main app
# I selected vanilla, but it shouldn't matter

Run the app.
cd app; pnpm dev

Wait until the app is initialized.

In a separate command line, run the indexer (with sqlite).
cd mud
cd packages/store-indexer
pnpm start:sqlite:local

Get the list of worlds.
curl 'http://localhost:3001/trpc/findAll?batch=1&input=%7B%220%22%3A%7B%22json%22%3A%7B%22chainId%22%3A31337%2C%22address%22%3A%220x5FbDB2315678afecb367f032d93F642f64180aa3%22%7D%7D%7D' | jq '.[0].result.data.json.tables[].address' | sort | uniq

There is only one world, which is correct.

In a separate command line, deploy another world.
 cd app/packages/contracts
 pnpm deploy:local

Wait a minute and run the command to get the list of worlds. There is still only one.
 sleep 60 ; curl 'http://localhost:3001/trpc/findAll?batch=1&input=%7B%220%22%3A%7B%22json%22%3A%7B%22chainId%22%3A31337%2C%22address%22%3A%220x5FbDB2315678afecb367f032d93F642f64180aa3%22%7D%7D%7D' | jq '.[0].result.data.json.tables[].address' | sort | uniq

When I ran the test, the new World was deployed in block 1357:
{
      worldAddress: '0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e',
      blockNumber: 1357
}

But it was still not detected as block 1663:
0x6d756473746f726500000000000000005461626c65730000000000qbzzt@Oris-MacBook-Pro store-indexer % curl 'http://localhost:3001/trpc/findAll?batch=1&input=%7B%220%22%3A%7B%22json%22%3A%7B%22chainId%22%3A31337%2C%22address%22%3A%220x5FbDB2315678afecb367f032d93F642f64180aa3%22%7D%7D%7D' | jq '.[0].result.data.json.blockNumber'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 26425  100 26425    0     0  2448k      0 --:--:-- --:--:-- --:--:-- 4300k
"1674"

This is because your tRPC query contains a world address, which is filtering your results. The indexer tRPC doesn't support "give me all data for all worlds" at the moment - we would want to turn this off in production but there's some API questions around that that I don't feel like we have time to figure out at the moment.
If you watch the indexer logs (DEBUG=mud:*), you'll see when you deploy the new world, all the events from the deploy get picked up as expected.


Create a footer blue -1

One need to make this component using HTML and Tailwind CSS. I would suggest to use Tailwind Playgrounds to make things faster and quicker.
Here is a reference to the component.

After building the component please raise a PR with a screenshot of the component and add the component in Footer/footer-blue1.html
If you need to use any icon please use it from Hero Icons
Good luck.

Assign it to me
@rupsha014
@Rajdip019

Hello sir, can you assign this issue to me?


Error when running az dedicated-hsm list command

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az dedicated-hsm list Extension Name: hardware-security-modules. Version: 0.1.0.
Errors:
The command failed with an unexpected error. Here is the traceback:
Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get'
Traceback (most recent call last):
  File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/msrest/serialization.py", line 1428, in _deserialize
    found_value = key_extractor(attr, attr_desc, data)
  File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/msrest/serialization.py", line 1172, in rest_key_extractor
    return working_data.get(key)
AttributeError: 'str' object has no attribute 'get'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 658, in execute
    raise ex
  File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 721, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 705, in _run_job
    result = list(result)
  File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/azure/core/paging.py", line 129, in __next__
    return next(self._page_iterator)
  File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/azure/core/paging.py", line 76, in __next__
    self._response = self._get_next(self.continuation_token)
  File "/Users/johuang/.azure/cliextensions/hardware-security-modules/azext_hardware_security_modules/vendored_sdks/hardwaresecuritymodules/operations/_dedicated_hsm_operations.py", line 575, in get_next
    error = self._deserialize(models.DedicatedHsmError, response)
  File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/msrest/serialization.py", line 1368, in __call__
    return self._deserialize(target_obj, data)
  File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/msrest/serialization.py", line 1446, in _deserialize
    raise_with_traceback(DeserializationError, msg, err)
  File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/msrest/exceptions.py", line 51, in raise_with_traceback
    raise error.with_traceback(exc_traceback)
  File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/msrest/serialization.py", line 1428, in _deserialize
    found_value = key_extractor(attr, attr_desc, data)
  File "/usr/local/Cellar/azure-cli/2.32.0/libexec/lib/python3.10/site-packages/msrest/serialization.py", line 1172, in rest_key_extractor
    return working_data.get(key)
msrest.exceptions.DeserializationError: Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get'

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az dedicated-hsm list --query {} -o {}

Expected Behavior
Environment Summary
macOS-12.1-x86_64-i386-64bit, Darwin 21.2.0
Python 3.10.1
Installer: HOMEBREW

azure-cli 2.32.0

Extensions:
resource-graph 2.1.0
hardware-security-modules 0.1.0

Dependencies:
msal 1.16.0
azure-mgmt-resource 20.0.0

Additional Context

route to service team

@sfc-gh-johuang Apologies for the delay. Please upgrade to latest version of hardware-security-modules (0.2.0) and retry.


Use English as default locale for flagr instead of Chinese

Description
As the contents for flagr is in English, set the default locale for
ElementUI to English (instead of defaulting to Chinese).  This is to
prevent certain contents from being displayed in Chinese.  eg. when
there are no flags available.
Motivation and Context
Keep the language consistent in the application.
How Has This Been Tested?
Launch the default flagr and run it using docker:
Before the change, confirm that the bug is present by launching a docker container as such:
docker run -p 18000:18000 checkr/flagr

Visit the GUI and delete all flags.  You will see No Data in Chinese written as 暂无数据.
Test the change and launch a docker container with the change.  You will see No Data.
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

Codecov Report

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

@@           Coverage Diff           @@
##           master     #226   +/-   ##
=======================================
  Coverage   83.87%   83.87%
=======================================
  Files          24       24
  Lines        1433     1433
=======================================
  Hits         1202     1202
  Misses        174      174
  Partials       57       57

Continue to review full report at Codecov.

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


EF 7 and SQLite - compiler error CS1061

I'm getting the following compiler error with EntityFramework.SQLite.Design dependency:
DNX,Version=v4.5.1 error CS1061: 'EntityFrameworkServicesBuilder' does not contain a definition for 'AddSqlite' and no extension method 'AddSqlite' accepting a first argument of type 'EntityFrameworkServicesBuilder' could be found.

I previously raised the issue over in SO and was asked to post the issue in GH with a repro:
http://stackoverflow.com/questions/33750255/asp-net-5-ef-7-and-sqlite-compiler-error-cs1061
WebApplication3.docx (rename to zip)

There is a bug in DNX with case-sensitive package names. If you replace  "EntityFramework.SQLite" with "EntityFramework.Sqlite", does this fix the issue?

Possible duplicate of https://github.com/dotnet/cli/issues/236

@natemcmaster - yes that worked, thanks!


Link Not working (ModelNet40-C Dataset)

Provided link (https://drive.google.com/drive/folders/10YeQRh92r_WdL-Dnog2zQfFr03UW4qXX?usp=sharing) for downloading the ModelNet40-C dataset is not working. Please give this dataset, we have to work with this dataset.

Thank you for your interest. try to use: https://zenodo.org/records/6017834#.YgNeKu7MK3J


Adds linter to project and templates

Fixes linter issues as well

Codecov Report

Merging #262 into master will decrease coverage by 0.02%.
The diff coverage is 86.42%.

@@            Coverage Diff            @@
##           master    #262      +/-   ##
=========================================
- Coverage   86.72%   86.7%   -0.03%
=========================================
  Files          88      88
  Lines        5599    5597       -2
=========================================
- Hits         4856    4853       -3
- Misses        743     744       +1

Impacted Files
Coverage Δ

lib/src/auth/authorization_server.dart
96.64% <ø> (ø)
:arrow_up:

lib/managed_auth.dart
92.24% <ø> (ø)
:arrow_up:

lib/src/db/query/error.dart
100% <ø> (ø)
:arrow_up:

lib/src/commands/db_show_migrations.dart
0% <ø> (ø)
:arrow_up:

lib/src/db/managed/data_model.dart
81.72% <ø> (ø)
:arrow_up:

lib/src/auth/objects.dart
91.76% <ø> (ø)
:arrow_up:

lib/src/db/managed/entity.dart
93.5% <ø> (ø)
:arrow_up:

lib/src/utilities/lowercasing_map.dart
77.77% <ø> (ø)
:arrow_up:

lib/src/auth/authorizer.dart
85.36% <ø> (ø)
:arrow_up:

lib/src/utilities/mock_server.dart
94.87% <ø> (ø)
:arrow_up:

... and 63 more

Continue to review full report at Codecov.

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


Added manpage for salt-lint

This PR adds a simple man page for salt-lint.  It conforms to general linux man page standards and will aid in package approval for Fedora, CentOS, RHEL, etc.
Fixes #269

@roaldnefs sorry about the file location.  I have corrected it.  Please let me know if anything else is needed.


Last variant source overwriting other in grid layout (svelte)

Describe the bug
Using Histoire with Svelte(kit), when I create a story with variants, and add a source for each variant, the last one is overwriting all other.
Reproduction
Based on the "meow" example :
<script>
	export let Hst
</script>

<Hst.Story title="Meow" layout={{ type: 'grid', width: '100%' }}>
	<Hst.Variant title="Happy" source="😺">
		😺
	</Hst.Variant>
	<Hst.Variant title="Joy" source="😹">
		😹
	</Hst.Variant>
	<Hst.Variant title="Love" source="😻">
		😻
	</Hst.Variant>
</Hst.Story>

For each variant, the source is "😻"
Tested with Firefox & Chrome
System Info
"@histoire/plugin-svelte": "^0.17.0",
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "^1.20.4",
"@sveltejs/package": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"autoprefixer": "^10.4.16",
"daisyui": "^3.8.2",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-svelte": "^2.30.0",
"histoire": "^0.17.2",
"postcss": "^8.4.31",
"prettier": "^2.8.0",
"prettier-plugin-svelte": "^2.10.1",
"publint": "^0.1.9",
"svelte": "^4.0.5",
"svelte-check": "^3.4.3",
"tailwindcss": "^3.3.3",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^4.4.2"

Used Package Manager
npm
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion.
[X] The provided reproduction is a minimal reproducible example of the bug.

This is not only true for the grid layout. It affects the singe layout as well.

I was about to create this issue. I just wrote a Svelte pre-processor to provide dynamic source for my stories / variants only to discover that stories with multiple variants display the source of the last variant for each variant.


[Bug]: Export Format bugs

Project Version
3.2.5 but lower versions are also affected
Platform and OS Version
Windows 10
Affected Devices
PC
Existing Issues
No response
What happened?
I believe audio is being degraded in batch when you select mp3 export format.
Steps to reproduce

Go to batch inference
Set your input and output
Select MP3 Export Format
Change any other settings you want doesn't matter
Convert
The mp3s come out in very low kbps
...

Expected behavior
Since wavs are over 320kbps I would expect mp3s to export as 320 kbps.
Attachments
No response
Screenshots or Videos

Additional Information
While I was making this also noticed the .ogg format doesnt work and sometimes crashes Applio after you click convert and the m4a format gives an error in console saying "An error occurred converting the audio format: Unknown format: 'm4a'" but m4a actually works and properly converted.

well, if you want quality just use flac or wav. but we will see what we can do, but isn't a priority

MP3s are saved with 192k bitrate by default.


Ensure that signal names can be parsed on Windows

To ensure the Windows and OS X remote clients can properly parse container stop signal (when given as a name e.g. SIGTERM) and set it in SpecGen, we need access to a list of Linux signal names and the numbers they map to that is available on non-Linux OSes. Fortunately, these are ABI constants that are extremely unlikely to change, so we can just take the existing constant definitions from the library and use them.
The signal numbers used here are sourced from AMD64, but should be the same for every architecture that is not Alpha, SPARC, MIPS, and PA-RISC. So podman run --stop-signal SIGTTOU from a Windows client to a Podman service on a SPARC host will set an incorrect stop signal, but I don't think this is a large problem.

LGTM

@TomSweeneyRedHat @QiWang19 @baude @jwhonce @vrothberg @giuseppe PTAL


Browser's "waiting for ipfs.io..." tooltip blocks part of the type new message field (FF 68)

Version: https://gateway.pinata.cloud/ipfs/Qmdkcm63Y5MQnPYXht3D9RQnakpgHgJSiySqFusdsPD3a5
Browser: Firefox 68.0.2 (64-bit)
OS: Win10
Issue: Browser's "waiting for ipfs.io..." tooltip at the bottom left corner blocks the beginning of new message field. As a user I can't see what I've typed there.

That tooltip is native to the browser (cannot be altered by us) and fixing this issue would require moving the message input box somewhere else. Closing this issue for now.


RCTNetworkingQueue Error

Getting error about received data was not string or was not a recognised encoding?
My request:
var gaEvent = new GAHits.Event('test', 'test', 'test', 1);
ga.send(gaEvent);

I also ran into this error. Same as #17

Great detective work, @the4dpatrick. I was about to use Google Web Analytics as a fallback - good to know I can still use this package in that event. I'll look into the GA documentation as well and see if I can help.
This is also the same as #2, which is already closed.

https://github.com/facebook/react-native/issues/1780
No one has indicated what version of iOS they're running - looks like this should be fixed starting with iOS 8? If this is not the case then we should re-open this issue citing a regression.

I was on 9.1 iphone 4s

@the4dpatrick, I'm confused at to how you are getting it working with GA for web. I tried this as well as the normal mobile tracking and was not successful either way. Could you share a code snippet to show how you are using it? Thanks

@LukeAvery92, thanks, I'll reopen that issue.

@lwansbrough I'm running iOS 9.1 on a 5S. It's definitely not related to the iOS version. I've tried on both a physical device and the Simulator but can't get any visits to be recorded in GA.

@nicholasalanbrown It's interesting that the visits aren't being recorded. Are requests sent when you MITM your phone/computer? The issue that the bug report pertains to is explicitly the response causing problems. This is a problem with React Native core. Any other issues you see that don't result in this problem should be filed separately.

I've created a separate issue here #21 @lwansbrough @tgoldenberg


Atb2119/test conversions

-typed protocol/message folder
-typed all files in protocol root folder
-added utils/promisify (replacement for node promisify)

wrong branch!


added prefix_separator variable to the self-managed-node-group module

Description
This change adds the variable prefix_separator to the self-managed-node-group module. This variable set the separator to use between the prefix and the generated timestamp for resource names. It defaults to the previously hardcoded -.
The prefix_separator variable is used in the main module but it is missing in the internal modules. The usage is the same.
Motivation and Context
The prefix separator for resources in the self-managed-node-group module is hardcoded and set to -. Upgrading from v17, this leads to force replacements for the following resources, appending a - to the name prefix:

aws_launch_template
aws_iam_instance_profile
aws_autoscaling_group

This change allows to keep the naming conventions for existing resources without a create replacement and then destroy.
Breaking Changes
No breaking changes found during testing. If not specified, it does not involve any change to the previous configuration.
How Has This Been Tested?

[ ] I have updated at least one of the examples/* to demonstrate and validate my change(s)
[x] I have tested and validated these changes using one or more of the provided examples/* projects
It is an optional variable to add to the self-managed-node-group module, or to the variables self_managed_node_group_defaults or self_managed_node_groups items of the main module.
[x] I have executed pre-commit run -a on my pull request

thank you but we are not looking to add this into the module


Extracted more utils

I wouldn't worry too much about it. It's a fun side-project and we should focus on features that are fun to have rather than a perfect code base.
Something that's still on my mind is the organization of a core library and split the cli away from that.


Fix OutOfMemoryError during media type sniffing

We got some reports of OutOfMemoryError crashes while sniffing a file as a string:

@qnga Good question, I think it can't hurt to prevent going into a OutOfMemoryError in the first place since when we use this, it's always to read a text file. It should improve performance too.


Form Validator : can't use validator if not required

In this example if you try to validate email input but do not want this input to be required it will be impossible to submit.
In a not required field the validate process have to be call only when the field is not empty.
https://codepen.io/Falconpage/pen/dedVex
Put a name, try to submit.

What the value you use for email field?

No value because this is not a required field, in this example only the name is required.
But in the case the email I write an email I want it to be checked.

-> this field is required

-> this field is not required but have to be checked. The problem is that the validator have to check email format only if the field is not empty.

My workaround for this issue is to use a regex pattern adding ^$| to allow empty field.
Exemple for an email.
data-validate='pattern=^$|^[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]{2,}\.[a-z]{2,4}$'

https://codepen.io/olton/pen/wjyYgM
Validator checks field, also if it empty

if you need empty field and only email value if not empty, you must use a custom pattern or custom validation function.

Yes, why not checking the field only if the field is empty (when required is not present) ?

I will think about this proposal

Thanks.

4.2.6

[x] Validator: add func reset for reset fields state
[x] Validator: add func reset_state for reset field state
[x] Validator: add func set_valid_state for valid field state
[x] Validator: add func set_invalid_state for invalid field state
[x] Validator: add auto method reset for forms with role validator
[x] Validator: add option boolean requiredMode for form. If this option is true, all funcs works as required, else funcs works if field value is not empty.

Functions mode
New in 4.2.6
By default, all validating functions work in required mode - field value cannot be empty and must have required value. You can change this behavior with special form attribute data-required-mode. If you set this attribute to false, functions will work only if field value not empty or with required function in the pair.

Great ! This make your form validator a complete solution.
Thanks again.

4.2.6 released

https://metroui.org.ua/validator.html#_validator_functions_mode


Add layer3 punting

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
3226

Relevant Lines:
4743

💛  - Coveralls


Remove goto exit in messaging layer

Problem
goto exit pattern should be replaced with RAII in C++ #7721
Change overview
Remove goto exit in messaging layer src/messaging
Testing

Manually tested using unit tests

@kghost This needs to be merged on top of #8050, sorry...  We'll want a cleanup function in ExchangeContext::HandleMessage

@bzbarsky-apple please take a look

But note that I am still very unconvinced by the ReferenceCountedHandle name...

But note that I am still very unconvinced by the ReferenceCountedHandle name...

The name should be hidden behind a type define, I'd like to choose a better name, but none comes into my mind.

I'd like to choose a better name, but none comes into my mind.

AutoReferenceCount?


Version 1.1.7 is not available

I've tried adding 1.1.7 as a dependency but my gradle was unable to resolve it so used 1.1.5

@tamirherman
We are waiting for an official response from the developer ...
But now you can do the following:
implementation 'com.github.florent37:viewtooltip:1.1.7@aar'

Thanks
I will do that

I just saw your comments
I try to publish a 1.1.8 ;)

@florent37 please update version history in README.


do not show and fetch logos on mobile

it is not too difficult to disable showing logos on mobile, but also not downloading them is a bit more tricky as we use the <img> tag for showing the logo.
It would be better to switch to CSS backgrounds for the logos. Possible solution:

add "encoded" entity ID to the class of the button
write a CSS file that points to the logo as a background
add this CSS from the "data" directory also to the template, but only when loaded on non-mobile, e.g. with a large viewport.

Something similar is done for the logos where they are written to the "data" directory and exposed through Apache...

This actually works!
form.entity button {
    padding-left: 100px;
    background-repeat: no-repeat;
    background-position: 1em 50%;
    height: 75px;
}

form.entity button.https_www\.onegini\.me {
    background-image: url("https_www.onegini.me.png");

}

form.entity button.https_idp\.surfnet\.nl {
    background-image: url("https_idp.surfnet.nl.png");
}

form.entity button.https_idp\.surf\.nl {
    background-image: url("https_idp.surf.nl.png");
}

https://github.com/fkooman/php-saml-ds/commit/844db9b8abfe98101eed5177274c7efb7d507ef6


Integrate user space instruemntation into OrbitService.

This PR constains

the library we need to inject into the tracee
(OrbitUserSpaceInstrumentation.*)
the code injecting the library, tying together different step needed to
instrument functions and the bookkeeping of the memory allocated in the
target process.
(InstrumentProcess.*)
actually using the code in CaptureServiceImpl.cpp

Bug: http://b/194703196
Test: Unit tests for now. This deserves an e2e test (later).

Ohhhh, exciting!

Ohhhh, exciting!

Yep, this will make it somewhat usable. :)


Remove Python 3.9

Description
This PR is intended to remove Python 3.9. It adds pyupgrade to the pre-commit hooks with a minimum Python version of 3.10 and that then made a bunch of changes automatically. These are mostly:

Replacing e.g. set([1,2,3]) with the set literal {1,2,3}
Replacing e.g. Optional[int] with int | None

The PR also:

Updates pyproject.toml  to python = ">=3.10,<3.12", removing 3.9
Updates the poetry doc dependencies, specifically to use myst-nb = ^1.0.0 and sphinx = ^7.0.0. This relates to #238 - we should now review that issue and update our Myst usage.
Updates poetry.lock to update any packages that were being pinned at earlier versions by requiring 3.9.

There are some minor doc updates to pass - including another ugly addition to sphinx's nitpick-ignoreto tackle problems in the documentation of vr.core.grid.GRID_STRUCTURE_SIG. I've updated the way that type alias is created, but sphinx is throwing errors. I think it believes the type alias (tuple[list[int], list[Polygon]] is an actual tuple and is trying to document the __repr__, count and index methods? Those don't exist, so these have been added to nitpick ignore.
Fixes #324
Type of change

[ ] New feature (non-breaking change which adds functionality)
[ ] Optimization (back-end change that speeds up the code)
[x] Bug fix (non-breaking change which fixes an issue)

Key checklist

[x] Make sure you've run the pre-commit checks: $ pre-commit run -a
[x] All tests pass: $ poetry run pytest

Further checks

[x] Code is commented, particularly in hard-to-understand areas
[x] Tests added that prove fix is effective or that feature works

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

Comparison is base (d02b93b) 95.94% compared to head (344d547) 96.30%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #356      +/-   ##
===========================================
+ Coverage    95.94%   96.30%   +0.35%
===========================================
  Files           52       52
  Lines         2614     2866     +252
===========================================
+ Hits          2508     2760     +252
  Misses         106      106

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Does it make sense to update the poetry.lock as part of this PR? The minimum supported python version has changed, which means quite a lot of dependancies should now be less version constrained.

Yes it really does. Good catch. I've updated pyproject.toml and then specifically updated the minimum version on couple of packages (sphinx and myst-nb) that were also holding us back from more recent packages.


Syncing developer settings in between activities

Say there are two activities, A and B, which both have a ViewModifier that inserts a DeveloperSettingsFragment inside a FrameLayout.

Navigate from activty A to activity B.
Change a developer setting using the DeveloperSettingsFragment.
Navigate back to activity A.
Open the FrameLayout to see current developer settings.

Observed behaviour: although the developer settings have correctly been updated in the DeveloperSettingsModel, the UI of activity A shows the old developer settings being enabled.
Expected behabiour: the UI of activity A should reflect the updated and currently enabled developer settings.

The cause of this is that because activity A is still in the back stack, when one returns to activity A onCreateView() in DeveloperSettingsFragment is not called.
I propose the following fix.
Override onResume() in DeveloperSettingsFragment:
@Override
public void onResume() {
    super.onResume();
    presenter.syncDeveloperSettings();
}

Add syncDeveloperSettings() to DeveloperSettingsPresenter:
public void syncDeveloperSettings() {
    DeveloperSettingsView view = view();

    view.changeGitSha(developerSettingsModel.getGitSha());
    view.changeBuildDate(developerSettingsModel.getBuildDate());
    view.changeBuildVersionCode(developerSettingsModel.getBuildVersionCode());
    view.changeBuildVersionName(developerSettingsModel.getBuildVersionName());
    view.changeStethoState(developerSettingsModel.isStethoEnabled());
    view.changeLeakCanaryState(developerSettingsModel.isLeakCanaryEnabled());
    view.changeTinyDancerState(developerSettingsModel.isTinyDancerEnabled());
    view.changeHttpLoggingLevel(developerSettingsModel.getHttpLoggingLevel());
}

This method will also be called in bindView(), when the view is being created for the first time:
@Override
public void bindView(@NonNull DeveloperSettingsView view) {
    super.bindView(view);

    syncDeveloperSettings();
}

Sounds good to me
On 4 Sep 2016 2:49 am, "david-perez"<EMAIL_ADDRESS>wrote:

The cause of this is that because activity A is still in the back stack,
when one returns to activity A onCreateView() in DeveloperSettingsFragment
is not called.
I propose the following fix.
Override onResume() in DeveloperSettingsFragment:
@Override
public void onResume() {
super.onResume();
presenter.syncDeveloperSettings();
}
Add syncDeveloperSettings() to DeveloperSettingsPresenter:
public void syncDeveloperSettings() {
DeveloperSettingsView view = view();
view.changeGitSha(developerSettingsModel.getGitSha());
view.changeBuildDate(developerSettingsModel.getBuildDate());
view.changeBuildVersionCode(developerSettingsModel.getBuildVersionCode());
view.changeBuildVersionName(developerSettingsModel.getBuildVersionName());
view.changeStethoState(developerSettingsModel.isStethoEnabled());
view.changeLeakCanaryState(developerSettingsModel.isLeakCanaryEnabled());
view.changeTinyDancerState(developerSettingsModel.isTinyDancerEnabled());
view.changeHttpLoggingLevel(developerSettingsModel.getHttpLoggingLevel());

}
This method will also be called in bindView(), when the view is being
created for the first time:
@Override
public void bindView(@NonNull DeveloperSettingsView view) {
super.bindView(view);
syncDeveloperSettings();

}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/artem-zinnatullin/qualitymatters/issues/200#issuecomment-244577915,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA7B3A3aclO9ZCoDXkfulCExMhvr7k7rks5qmhWogaJpZM4J0baE
.


[MM-15678] Add additional event support for channel subscriptions to Jira events

Summary
This PR adds functionality to support specific field updates for the issue_updated Jira event, as well as comment-related events.
Ticket Link
https://mattermost.atlassian.net/browse/MM-15678
The current supported events are:

Issue created
Issue updated
Issue deleted

The new supported events are:

Comment created
Comment deleted
Comment updated
Issue updated: All (replaces original "Issue updated")
Issue updated: Assignee
Issue updated: Attachments
Issue updated: Description
Issue updated: Labels
Issue updated: Priority
Issue updated: Rank
Issue updated: Sprint
Issue updated: Status
Issue updated: Title

toEventEnums() is where Jira's payload is converted into an array of associated enums that are used for the choices on the UI. The function is called when a webhook event comes in from Jira. Once the webhook event is converted into a map of string -> bool, where each key is a present enum, each subscription is checked to see if any one of the enums is relevant to what the user has configured in their subscription.

Codecov Report

Merging #201 into master will increase coverage by 0.53%.
The diff coverage is 55%.

@@            Coverage Diff             @@
##           master     #201      +/-   ##
==========================================
+ Coverage   19.06%   19.59%   +0.53%
==========================================
  Files          22       22
  Lines        2460     2495      +35
==========================================
+ Hits          469      489      +20
- Misses       1949     1963      +14
- Partials       42       43       +1

Impacted Files
Coverage Δ

server/subscribe.go
50.17% <0%> (-2.46%)
:arrow_down:

server/webhook_parser.go
79.19% <100%> (ø)
:arrow_up:

server/webhook_jira.go
97.43% <90.9%> (-2.57%)
:arrow_down:

Continue to review full report at Codecov.

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

Spintmint test server creation failed. See the logs for more information.

Timeouted. Aborted the upgrade of the test server. Please check the logs.

@mickmister Can you link the ticket for the event cleanup?

@crspeller Event type cleanup is part of the task of converting the old webhooks to use these event types
https://mattermost.atlassian.net/browse/MM-16887

Got merged before the PM review complete, @aaronrothschild please review

At what point do these event types get added into the documentation of the Jira plugin?  Should I setup a PR for that now?

@aaronrothschild I don't see an issue created for it at the moment. Probably good to discuss 2.1 docs in general today at sprint planning

I just learned about the "Docs Required" label and added it here.  I won't be at sprint planning today, but we should def discuss docs next week


feat: price-oracle pallet

Description
Implement on-chain oracles providing price estimates for asset pairs based on previous trading data.
Aggregate data of different length periods( e.g. 1, 10, 100 and 1000 blocks ) and calculate average prices.
Values tracked: trading prices and volumes, total pool liquidity.
Related Issue
Fixes: #106

Our use case is to allow another pallets to call on_trade() handler and populate the PriceBuffer with trading data. At the end (or at the beginning) of a block, this pallet processes the data from the price buffer. There is no upper limit on how many entries the buffer can have. If the buffer contains multiple trades of the same asset, we calculate average value.
We need to figure out how to benchmark on_trade() method and whether to process the data from the PriceBuffer in on_initialize or in on_finalize. It should be ok to update prices in the next block ( in the case of on_initialize).
@jak-pan @lumir-mrkva @apopiak your expertise would be greatly appreciated.

polkadotJS types definition seems to be missing

Our use case is to allow another pallets to call on_trade() handler and populate the PriceBuffer with trading data. At the end (or at the beginning) of a block, this pallet processes the data from the price buffer. There is no upper limit on how many entries the buffer can have. If the buffer contains multiple trades of the same asset, we calculate average value.
We need to figure out how to benchmark on_trade() method and whether to process the data from the PriceBuffer in on_initialize or in on_finalize. It should be ok to update prices in the next block ( in the case of on_initialize).
@jak-pan @lumir-mrkva @apopiak your expertise would be greatly appreciated.

afaik rule of thumb is keep the load on on_finalize minimized, so all the heavier operations should always be processed in on_inialize

Our use case is to allow another pallets to call on_trade() handler and populate the PriceBuffer with trading data. At the end (or at the beginning) of a block, this pallet processes the data from the price buffer. There is no upper limit on how many entries the buffer can have. If the buffer contains multiple trades of the same asset, we calculate average value.
We need to figure out how to benchmark on_trade() method and whether to process the data from the PriceBuffer in on_initialize or in on_finalize. It should be ok to update prices in the next block ( in the case of on_initialize).
@jak-pan @lumir-mrkva @apopiak your expertise would be greatly appreciated.

afaik rule of thumb is keep the load on on_finalize minimized, so all the heavier operations should always be processed in on_inialize

Did this change? We were told the exact opposite before when we were doing exchange. The only thing you need to make sure is to reserve weight in on-initialize -> That's why the exchange order matching is done in on-finalize. (The data structures can be still cleaned for that block so we don't need to save unnecessary data to blockchain)

The most important thing is to make sure that the weight used is predictable. As long as all weight consumed in the hooks is tracked it does not matter whether you execute in on_finalize, on_initialize or on_idle from that perspective.
So a thing to avoid is to execute arbitrary logic in on_finalize e.g. iterating a storage map whose number of keys you don't know.
If you do something where you don't know the weight ahead of time, you're better of doing it in on_initialize and keeping track of the weight as you're executing (and limiting it to the total block weight). If you can estimate/limit the weight ahead of time you can do it in on_finalize.
As Jakub mentioned there are, of course, also other considerations why you might choose one over the other.

There is no upper limit on how many entries the buffer can have.

This line makes me uncomfortable xD
You might want to
a) argue why it's still safe (even though it might lead to unbounded execution time)
or b) change that

There is no upper limit on how many entries the buffer can have.

This line makes me uncomfortable xD
You might want to
a) argue why it's still safe (even though it might lead to unbounded execution time)
or b) change that

Sorry for making you feel uncomfortable. :) The number of entries in the price buffer is the same as the number of trades performed in the last block, and this is limited by the number of buy/sell TXs we can fit into a block. I also assume (it needs to be verified by us) that a trading TX is more computationally expensive compared to the price calculation we perform in this pallet. It may have the following side effect: the more trading TXs we have in a block, the less number of TXs we can have in the next one. If the previous assumptions are true, I think it may be safe to use the approach we already use.

Ah, you plan on including the on_finalize overhead as part of the transaction causing that overhead, right?


Update references of pkg/tag pkg/log pkg/options to use modules from registry-scanner

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

Project coverage is 73.51%. Comparing base (8076d20) to head (ad15c8d).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #962      +/-   ##
==========================================
- Coverage   74.64%   73.51%   -1.14%
==========================================
  Files          31       27       -4
  Lines        3913     3647     -266
==========================================
- Hits         2921     2681     -240
+ Misses        856      831      -25
+ Partials      136      135       -1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Consider further reducing max-width

..at least for running text pages. The guidelines, at least, are far to wide for comfortable reading.

Closed by ea4984d4c5f97a9f161e609692896dbbdf435830


generate tarball by mvn package

Fixes https://github.com/druid-io/druid/issues/2440

:+1:

:+1:

waiting for travis

@guobingkun will you be able to backport this to 0.9.0?

@drcrallen  Done by #2499

I would like to have @xvrl take a look at it before merging since he sent #2440

@guobingkun @xvrl is going to be out for awhile


Adding Multiple Language Support

This fork was made to create multiple-language versions, by updating the wordsearch.js file to handle those cases.  It now supports English, Spanish, French, Italian, German, Japanese, Chinese, Hindi, Indonesian, Dutch, Polish, Portuguese, Russian, or Korean.
Demos :

Chinese - https://www.earthfluent.com/chinese/verbs-economic-activity-part-1/play.php?action=WordSearch&previousquizzes=10
Korean - https://www.earthfluent.com/korean/verbs-economic-activity-part-1/play.php?action=WordSearch&previousquizzes=10
Russian - https://www.earthfluent.com/russian/verbs-economic-activity-part-1/play.php?action=WordSearch&previousquizzes=10
French - https://www.earthfluent.com/french/verbs-economic-activity-part-1/play.php?action=WordSearch&previousquizzes=10
Japanese - https://www.earthfluent.com/japanese/verbs-economic-activity-part-1/play.php?action=WordSearch&previousquizzes=10
Italian - https://www.earthfluent.com/italian/verbs-economic-activity-part-1/play.php?action=WordSearch&previousquizzes=10
German - https://www.earthfluent.com/german/verbs-economic-activity-part-1/play.php?action=WordSearch&previousquizzes=10
Hindi - https://www.earthfluent.com/hindi/verbs-economic-activity-part-1/play.php?action=WordSearch&previousquizzes=10
Spanish - https://www.earthfluent.com/spanish/verbs-economic-activity-part-1/play.php?action=WordSearch&previousquizzes=10
Dutch - https://www.earthfluent.com/dutch/verbs-economic-activity-part-1/play.php?action=WordSearch&previousquizzes=10
Polish - https://www.earthfluent.com/polish/verbs-economic-activity-part-1/play.php?action=WordSearch&previousquizzes=10
Portuguese - https://www.earthfluent.com/portuguese/verbs-economic-activity-part-1/play.php?action=WordSearch&previousquizzes=10
Indonesian - https://www.earthfluent.com/indonesian/verbs-economic-activity-part-1/play.php?action=WordSearch&previousquizzes=10

@HoldOffHunger as this repo doesn't seem to be maintained, I pulled your modifications in my fork: https://github.com/ctrlaltdev/wordfind


Add "give up care" feature to the patient when no doctor is attending:

As a patient, I would like to give up my spot in the queue when no doctor is attending, so I don't need to keep going in the process

[ ] Create a message that fits the new behaviour and explains the new give up button
[ ] Add a new API endpoint to change patient status to 'gave_up' /patients/{ticket}/status/gave_up
[ ] Patients who gave up shouldn't appear in the doctor worklist
[ ] Patients who gave up shouldn't receive further notifications


Webhook source SSL unable to load local certs

I'm attempting to use the webhook source in my rulebook using an SSL cert that is local in the same repo. I'm getting a File not found error when trying to leverage a relative path. When I provide the full path to the cert, it works as expected but this is only on my local development machine but only because I know the full path. When deployed to the EDA server, that full path is no longer valid inside the Decision Environment. I haven't been able to determine what path exists in the DE and I'm afraid it's dynamic and changes each time the project is synced. I haven't been able to find and environment variable I could leverage either that would tell me where the rulebooks are (and relatively the cert files).
2023-08-10 17:52:19,713 - ansible_rulebook.engine - INFO - Calling main in ansible.eda.webhook

2023-08-10 17:52:19,714 - <run_path> - ERROR - Failed to load certificates. Check they are valid

2023-08-10 17:52:19,714 - ansible_rulebook.engine - ERROR - Source error [Errno 2] No such file or directory

2023-08-10 17:52:19,714 - ansible_rulebook.engine - ERROR - Shutting down source: ansible.eda.webhook error : [Errno 2] No such file or directory

Rulebook
  sources:
    - ansible.eda.webhook:
        host: <IP_ADDRESS>
        port: 5000
        token: MySecretToken
        certfile: tower.cert
        keyfile: tower.key
  rules:

Is there a better approach to using SSL with the webhook plugin?

Hi @Bri2785 What do you mean with "When deployed to the EDA server, that full path is no longer valid inside the Decision Environment."
If you move your cert file to a known location in the decision environment and define that same location in your rulebook it should work. Please, try that and let us know any issue.
Note that EDA server doesn't support volume mounting at the creation of the activation, so for now the only way is to create your own Decision Environment image containing your files. Be sure that owner/perms are correct inside the image.

@Alex-Izquierdo Building the cert into the decision environment itself was the piece I was missing. I was trying to include the cert within my rulebook repo (which I now realize is a security hole) so I didn't know the projects cloned path within the DE ahead of time. I tried your suggestion and it does work, thanks for the info!


Log better error message when sync is cancelled

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/8584/
Test FAILed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/8585/
Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/8586/
Test PASSed.

@madanadit PTAL

@yuzhu can you update the PR description with the explanation about how this changes resolves the issue?

@madanadit comment addressed

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/8604/
Test PASSed.

alluxio-bot, merge this please

alluxio-bot, cherry-pick this to branch-2.2 please


Pr/342

Updated the strategy to batch requests. Changed the strategy name to the correct spelling ethercats-founders-series.

So many changes in src/strategies/index.ts, please make sure changes are related to only this strategy
Also, leave the old strategy the same, add only new strategy


Thrown types use "convertible to any Error" instead of "conforms to Error"

Allow one to throw a type that is convertible to any Error even if it doesn't conform to the Error protocol, e.g., an existential type like any Codable & Error.

@swift-ci please smoke test

https://github.com/apple/llvm-project/pull/7671
@swift-ci please test Windows

TSan data race.... can't possibly be related here.

@swift-ci please smoke test macOS


[POC] Use Drizzle in connectors

Description

Risk

Deploy Plan

I love what I am seeing here 👍


Report sensor reading errors in RasPi code

The python code running on the raspi should have some way of logging and reporting any errors that come through over LoRa.  A log file would be simple, but it would be nice to have a way to check the frequency of errors on the website somehow?

More comments - need to adjust Arduino code to report exactly what kind of error occurred and pass that data through the RasPi, to the server and log it in the database


Quicksort Java code

Changes

Added quick_sort.java.

hey, @viralvaghela kindly take a look into it, any suggestion If I can achieve this in some better way or is it cool?


Unet 2D

This pull request is a to add these following files:
-newdataset.py (dataloader and dataset)
-train.py (training the uNet)
-predict.py (predicting the segmentation)
-modules.py (uNet and its componets)
As submission of a functional 2dUnet for Hip MRI segmentation.
Regards,
Kylow
s4858392

Marking

Good/OK/Fair Practice (Design/Commenting, TF/Torch Usage)
Good design and implementation.
Spacing and comments.
No Header blocks. -1
Recognition Problem
Good solution to problem.
Driver Script present.
File structure present.
Good Usage & Demo & Visualisation & Data usage.
Module present.
Commenting present.
No Data leakage found.
Difficulty : Easy. UNet2D (Easy Difficulty)-10
Commit Log
Some/Adequate Meaningful commit messages. -1
Good Progressive commits. -2
Documentation
Readme :Acceptable. No train graphs. Incomplete.-3
Model/technical explanation :Acceptable. -2
Description and Comments :Good.
Markdown used and PDF submitted. PDF checked.
Pull Request
Pull Request has problems: Late submission.-2
No Feedback required.
Request Description is adequate. -1
TOTAL-22

Marked as per the due date and changes after which aren't necessarily allowed to contribute to grade for fairness.
Subject to approval from Shakes

Kien Yau Low

Late submission -8 (2 days). Email me with evidence to restore if you have an extension.


[FSDE-936] DevopsGCR Testing

The CI pipeline did not run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Playpen/job/ChiGCR/job/ChiGCR/job/PR-2/1/. :x:

The CI pipeline did not run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Playpen/job/ChiGCR/job/ChiGCR/job/PR-2/3/. :x:

The CI pipeline run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Playpen/job/ChiGCR/job/ChiGCR/job/PR-2/16/. :white_check_mark:

The CI pipeline run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Playpen/job/ChiGCR/job/ChiGCR/job/PR-2/17/. :white_check_mark:

The CI pipeline run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Playpen/job/ChiGCR/job/ChiGCR/job/PR-2/18/. :white_check_mark:


Set the initial size of the application window in proportion to the monitor resolution

Set the initial size of the application window in proportion to the monitor resolution.
Is it really needed with Fyne?

Commit e16c81a


[BUG][SPARK] LogicalRelationDatasetBuilder is Resulting in Incorrect Output Data Sources

Since 0.6.2, when a Spark logical plan uses ABFSS as an input data source, the input data source is also found as an output data source.
I've narrowed it down to these two commits that introduced the Abstract Query Plan Builder:

Abstract query plan builder approach to exposing SparkListenerEvents (08bdb32)
Inject dataset version with AbstractQueryPlanDatasetBuilder (c1a7285)

Specifically, the InternalEventHandlerFactory class' method createOutputDatasetBuilder was modified in 08bdb32 to include LogicalRelationVisitor (now renamed to integration/spark/src/main/common/java/io/openlineage/spark/agent/lifecycle/plan/LogicalRelationDatasetBuilder.java).
In c1a7285 Spark3DatasetBuilderFactory.java was introduced where it calls integration/spark/src/main/spark3/java/io/openlineage/spark3/agent/lifecycle/plan/LogicalRelationDatasetBuilder.java the odd part is that its isDefinedAt just returns true but I think the isDefinedAtLogicalPlan balances it and prevents it from being called when it's not an actual LogicalRelation.
Suggested Solution: To get it back to the correct behavior for ABFSS, I don't think we should use LogicalRelationDatasetBuilder in the getOutputBuilders for

Spark3DatasetBuilderFactory.java getOutputBuilders()
Spark2DatasetBuilderFactory.java getOutputBuilders()

Ideally we'd be able to INJECT LogicalRelationDatasetBuilder like it was being done in 08bdb32 when it was called LogicalRelationVisitor  but do it ONLY for getInputBuilders().

Tagging @pawel-big-lebowski  and @collado-mike since it was their two commits that changed the behavior.

Hi @wjohnson. Thank you for pointing this out. I think I saw similar issue which occured due to wrong constructor call of LogicalRelationDatasetBuilder, specifically searchDependencies argument which should be set to false for output dataset builders.
If it is it, then it got resolved within todays merged PR:
https://github.com/OpenLineage/OpenLineage/pull/607/files#diff-9b3985e540029b0e398c1a10a2e00001f403070e96ddee9c5939694d6d065678R42

Hi @wjohnson. Thank you for pointing this out. I think I saw similar issue which occured due to wrong constructor call of LogicalRelationDatasetBuilder, specifically searchDependencies argument which should be set to false for output dataset builders.
If it is it, then it got resolved within todays merged PR: https://github.com/OpenLineage/OpenLineage/pull/607/files#diff-9b3985e540029b0e398c1a10a2e00001f403070e96ddee9c5939694d6d065678R42

Testing now!

@pawel-big-lebowski - For the latest commit, I'm getting a complie error :(  I see that it compiles on CI but I've tried a fresh clone and I still can't get it to compile.
wj@DESKTOP:~/repos/OpenLineage/integration/spark$ ./gradlew build -x test

> Task :compileJava
/home/wj/repos/OpenLineage/integration/spark/src/main/common/java/io/openlineage/spark/agent/lifecycle/plan/SaveIntoDataSourceCommandVisitor.java:142: error: method newDatasetFacets in class OpenLineage cannot be applied to given types;
                        .newDatasetFacets(
                        ^
  required: DocumentationDatasetFacet,DatasourceDatasetFacet,DatasetVersionDatasetFacet,SchemaDatasetFacet,DatasetProviderDatasetFacet,LifecycleStateChangeDatasetFacet
  found: DocumentationDatasetFacet,DatasourceDatasetFacet,DatasetVersionDatasetFacet,SchemaDatasetFacet,LifecycleStateChangeDatasetFacet
  reason: actual and formal argument lists differ in length
/home/wj/repos/OpenLineage/integration/spark/src/main/common/java/io/openlineage/spark/agent/lifecycle/plan/InsertIntoDataSourceVisitor.java:48: error: method newDatasetFacets in class OpenLineage cannot be applied to given types;
                        .newDatasetFacets(
                        ^
  required: DocumentationDatasetFacet,DatasourceDatasetFacet,DatasetVersionDatasetFacet,SchemaDatasetFacet,DatasetProviderDatasetFacet,LifecycleStateChangeDatasetFacet
  found: DocumentationDatasetFacet,DatasourceDatasetFacet,DatasetVersionDatasetFacet,SchemaDatasetFacet,LifecycleStateChangeDatasetFacet
  reason: actual and formal argument lists differ in length
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors

You'll probably need to build and install the java client locally - from $PROJECT_DIR/client/java run ./gradlew publishToMavenLocal. Then cd back to the Spark directory and re-build

I actually called this out in https://github.com/OpenLineage/OpenLineage/issues/628 - glad to see the cause was already found and fixed

Note that here, the input dataset and the output dataset are the same - since the Filter is the root node, its children are analyzed and the dataset is found and assumed to be the output. This is incorrect and shows a loop in the lineage where one does not exist.

Yes!  @collado-mike thank you for that guidance! And @pawel-big-lebowski  once I got it compiled it worked like a charm.  I'll close this one  Thank you both!!


feat: trlst-216 Allow to remove non-confidential files without a confidential version.

Normally a public user can only upload a confidential file, followed by the corresponding non-confidential version.
A user managed to upload an extra non-confidential file (possibly by uploading from two different windows).
The extra file is stops him from completing the submission, but there is no provision to remove it.
Added an extra category when showing the uploaded file. The category lists the single non-confidential version, and ask the user to remove it. The interface allows to download the file before deleting it.


runtime: heap, allocs, block, and mutex profiles truncate stacks at 32 frames

The runtime currently (as of Go 1.15) limits recorded stacks of several profile types to 32 frames. This causes deep stacks to become unrooted in pprof call graphs, leading to confusing results and interfering with aggregate statistics up the call graph.
These are hard-coded array bounds in the public runtime API for StackRecord (used in BlockProfileRecord) and MemProfileRecord. Unfortunately, this means these are part of the Go 1 runtime API, so we can't just change them. If we were to increase them, this would impact memory for relatively little gain, since stacks typically aren't this deep. Finally, we probably need some reasonable bound on stack depth just to avoid blowing up profiles.
The "right" fix, in my opinion, is to do what we did with CPU profiles: deprecate the runtime package interface in favor of runtime/pprof, create a log-based back channel from runtime to runtime/pprof that can handle variable-sized stack traces, and perform accumulation in runtime/pprof. That's quite a bit of engineering for a fairly obscure problem, though it would also help with labeling non-CPU profiles (#23458).
We don't have plans to fix this right now. This is just a tracking issue.

Note for clarity: CPU profiles also have a limit: 64 frames. However, the back channel interface to runtime/pprof means that we could change that limit easily without breaking the API.

Note for clarity: CPU profiles also have a limit: 64 frames. However, the back channel interface to runtime/pprof means that we could change that limit easily without breaking the API.

I come across this problem every once in a while when looking at customer profiles and profiles from internal applications, especially for memory profiles.
Today I got sufficiently annoyed to actually take another look at this issue and see if there is something that could be done that wouldn't involve a major overhaul of the memory profiler as proposed in this issue.
I ended up submitting the idea I came up with as a new CL. It increases the stack size to 128 and deals with the MemProfileRecord API problem by embedding a reference to a bigger stack trace as a private struct field when needed. This shouldn't cause any Go 1 API compatibility issues, while fixing this problem.
Memory usage will only be increased for applications that have memory profiling enabled and experience problems with truncated stack traces.
PTAL and let me know what you think. If the change seems like a reasonable improvement, I can do the remaining work for mutex/block profiles as well to bring them in sync.

cc @prattmic @mknyszek

I remember the first time I encountered the stack depth limit in Go profiles and I found it quite confusing and obscure.
I wonder, if we should at the same time make it more explicit that truncation has happened. Maybe that could be done fairly simply by inserting a logical root like [truncated].

At the very minimum, this phenomenon could be prominently documented - it took me a while to find out this issue, although it is obvious in retrospect looking at the flame graph!

The implementation in CL 572396 is a bit odd, in that it makes Stack allocate where it didn't before.
Given that I think we agree the right fix is to establish some other kind of runtime backchannel that avoids these structs entirely, I don't think the CL's approach is the right one.


Feature request: Optional mTLS

I have an HTTPS server (:wink:) that accepts two forms of traffic, unauthenticated and authenticated, and would like to use AllowAnyAnonymousOrAuthenticatedClient or similar to support both. However, I don't see a way to tell if client authentication was successful at all and/or call peer_certificates.
I looked into into_make_service_with_connect_info but that accesses an &AddrStream before the TLS handshake.
Any thoughts on how mTLS could be made optional while letting the tower service know the client authentication status?
From the network perspective, I'd like:

No client auth => ok (anonymous)
Invalid client auth => block connection (or treat as anonymous)
Valid client auth => ok (authenticated)

On the Axum side, I'd like the following:
Router::new()
    .route("/idea1", axum::routing::get(move |
        ConnectInfo(addr): ConnectInfo<SocketAddr>,
        AcceptInfo(certs): AcceptInfo<Option<Vec<Certificate>>> // i.e. from peer_certificates
    | { if let Some(certs) && check_certs(certs) { } else { ... } })
    .route("/idea2", axum::routing::get(move |
        ConnectInfo(addr): ConnectInfo<SocketAddr>,
        AcceptInfo(auth): AcceptInfo<ClientAuthentication> // enum ClientAuthentication { Authenticated, Anonymous }
    | { if auth.is_authenticated() { ... } else { ... } })

*the name AcceptInfo is just bikeshedding
Edit: I no longer need this. Feel free to close it as not planned if you don't find it useful.

This should already be possible by implementing a custom acceptor using Accept trait.


How a Collection DbRef to FileStorage

Can a Collection DbRef to FileStorage?
example I have a collection and a File Storage with the surrogate key as docId.
Collection:
docId
author
publisher
File Storage:
_id
docId
filename
mimeType
length
chunkc

Hi @kentplaza, sorry about long delay, I was in vacation. LiteFileInfo has no default ctor. I recommend you to add an method in your class to get file when you need get the file (passing LiteDatabase/LiteEngine as parameter)

got it.

Hi! With the objective of organizing our issues, we are closing old unsolved issues. Please check the latest version of LiteDB and open a new issue if your problem/question/suggestion still applies. Thanks!


Refactor project struct  - headfile and tutorial

Why
Be convinient and better for install and use.
What is changing

some headfile should put in a better place. For example, util/function_name.h is a uilt for coro_rpc only.(all code in this file under the namespace  'cororpc '
ylt all headfiler shoudl use only one style for 'header file protect'  -> use parma once . But third party  file  matain their own way.
put all hearfile under dir ylt . use a same prefix for all.
add sample in the top dir level for uesr .

Example
improve the whole project structor and make it convient for users.
With this project structor,we can install include/ylt to /usr/local/include for linux.
Anything about ylt put in one dir.
People can use or delete ylt easily.
With sample we can write the tutorial for people who want to use it.

I test it with Ubuntu2204 clang14 debug for all test.
close #132

May be I change so many old-steady file. I need to format them

We should put the most useful header file about coro_rpc  in  include/ylt/coro_rpc/xxx
some header files about coro_rpc detail  can be placed in include/ylt/coro_rpc/detail
some utils about coro_rpc can be placed in  include/ylt/coro_rpc/utils
some plugins about coro_rpc should be placed in a special  directory,
include/ylt/coro_rpc/nvidia  or include/ylt/coro_rpc/tbb
other modules such as struct_pack  can be struct like this.
Anyway, the most valuable and popular header file should be placed in  include/ylt/coro_rpc/xxx
Consider using 'include/yet/coro_rpc.hpp' for users who don't know much about ylt.


added a web ui on /web path

Added a simple web ui on /web built with sveltekit
Screenshot below

Hey, @proverbial-ninja, that's amazing, thanks!


bug: fixed bug when trying to import module using node esm and added …

…documentation to use ESM web bundles
Removed exports property from package.json, this property blocks the ability to consume the NodeJS ESM library using nodeJS ESM projects.
Also, I added some documentation on how to reference web-based ESM bundles.

I believe that to make it compatible with .mjs files, we would need to add "type": "module" in the SDK's package.json...but this will probably break some other stuff :-)
The ESM version is built by the typescript compiler (https://github.com/warp-contracts/warp/blob/main/tsconfig.esm.json), so I really don't understand how can it be not compatible with esm module format :-)
We will return to this next week.

I was able to make the .mjs file run correctly only using tsup npm package (https://github.com/egoist/tsup), looks cool and is based on esbuild but I'm not sure what's happening underneath. It requires a lot more tests but maybe it's a good start.

@twilson63 @ppedziwiatr I was able to make the .mjs file run correctly only using tsup npm package (https://github.com/egoist/tsup), looks cool and is based on esbuild but I'm not sure what's happening underneath. It requires a lot more tests but maybe it's a good start.

Do we really need another weird library to run sth., that is considered as
a "standard"...?
Have you tried creating a very simple library and play with different
tsconfig settings?
Is type: 'module' the only way to make it work with mjs files?
niedz., 21 sie 2022, 15:56 użytkownik Asia @.***>
napisał:

@twilson63 https://github.com/twilson63 @ppedziwiatr
https://github.com/ppedziwiatr I was able to make the .mjs file run
correctly only using tsup npm package (https://github.com/egoist/tsup),
looks cool and is based on esbuild but I'm not sure what's happening
underneath. It requires a lot more tests but maybe it's a good start.
—
Reply to this email directly, view it on GitHub
https://github.com/warp-contracts/warp/pull/190#issuecomment-1221551392,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUDH5TPRYMJVHSHU7DAE2SDV2IYRDANCNFSM53E3G74Q
.
You are receiving this because you were mentioned.Message ID:
@.***>

https://github.com/microsoft/TypeScript/issues/18442
This is insane...
niedz., 21 sie 2022, 16:32 użytkownik Piotr Pędziwiatr <
@.***> napisał:

Do we really need another weird library to run sth., that is considered as
a "standard"...?
Have you tried creating a very simple library and play with different
tsconfig settings?
Is type: 'module' the only way to make it work with mjs files?
niedz., 21 sie 2022, 15:56 użytkownik Asia @.***>
napisał:

@twilson63 https://github.com/twilson63 @ppedziwiatr
https://github.com/ppedziwiatr I was able to make the .mjs file run
correctly only using tsup npm package (https://github.com/egoist/tsup),
looks cool and is based on esbuild but I'm not sure what's happening
underneath. It requires a lot more tests but maybe it's a good start.
—
Reply to this email directly, view it on GitHub
https://github.com/warp-contracts/warp/pull/190#issuecomment-1221551392,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUDH5TPRYMJVHSHU7DAE2SDV2IYRDANCNFSM53E3G74Q
.
You are receiving this because you were mentioned.Message ID:
@.***>

https://github.com/microsoft/TypeScript/issues/18442#issuecomment-1037074273
niedz., 21 sie 2022, 16:37 użytkownik Piotr Pędziwiatr <
@.***> napisał:

https://github.com/microsoft/TypeScript/issues/18442
This is insane...
niedz., 21 sie 2022, 16:32 użytkownik Piotr Pędziwiatr <
@.***> napisał:

Do we really need another weird library to run sth., that is considered
as a "standard"...?
Have you tried creating a very simple library and play with different
tsconfig settings?
Is type: 'module' the only way to make it work with mjs files?
niedz., 21 sie 2022, 15:56 użytkownik Asia @.***>
napisał:

@twilson63 https://github.com/twilson63 @ppedziwiatr
https://github.com/ppedziwiatr I was able to make the .mjs file run
correctly only using tsup npm package (https://github.com/egoist/tsup),
looks cool and is based on esbuild but I'm not sure what's happening
underneath. It requires a lot more tests but maybe it's a good start.
—
Reply to this email directly, view it on GitHub
https://github.com/warp-contracts/warp/pull/190#issuecomment-1221551392,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUDH5TPRYMJVHSHU7DAE2SDV2IYRDANCNFSM53E3G74Q
.
You are receiving this because you were mentioned.Message ID:
@.***>

Another 'interesting' solution
https://github.com/microsoft/TypeScript/issues/18442#issuecomment-1041545622
But this is all madness...I'm pretty sure that it will break sth in one of
those shitty web bundlers...
niedz., 21 sie 2022, 16:43 użytkownik Piotr Pędziwiatr <
@.***> napisał:

https://github.com/microsoft/TypeScript/issues/18442#issuecomment-1037074273
niedz., 21 sie 2022, 16:37 użytkownik Piotr Pędziwiatr <
@.***> napisał:

https://github.com/microsoft/TypeScript/issues/18442
This is insane...
niedz., 21 sie 2022, 16:32 użytkownik Piotr Pędziwiatr <
@.***> napisał:

Do we really need another weird library to run sth., that is considered
as a "standard"...?
Have you tried creating a very simple library and play with different
tsconfig settings?
Is type: 'module' the only way to make it work with mjs files?
niedz., 21 sie 2022, 15:56 użytkownik Asia @.***>
napisał:

@twilson63 https://github.com/twilson63 @ppedziwiatr
https://github.com/ppedziwiatr I was able to make the .mjs file run
correctly only using tsup npm package (https://github.com/egoist/tsup),
looks cool and is based on esbuild but I'm not sure what's happening
underneath. It requires a lot more tests but maybe it's a good start.
—
Reply to this email directly, view it on GitHub
https://github.com/warp-contracts/warp/pull/190#issuecomment-1221551392,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUDH5TPRYMJVHSHU7DAE2SDV2IYRDANCNFSM53E3G74Q
.
You are receiving this because you were mentioned.Message ID:
@.***>

But I would start with the above. It's basically what we're doing (two
separate builds into cjs and esm format) with additional step of adding
package.json files into esm and cjs dists.
niedz., 21 sie 2022, 16:50 użytkownik Piotr Pędziwiatr <
@.***> napisał:

Another 'interesting' solution
https://github.com/microsoft/TypeScript/issues/18442#issuecomment-1041545622
But this is all madness...I'm pretty sure that it will break sth in one of
those shitty web bundlers...
niedz., 21 sie 2022, 16:43 użytkownik Piotr Pędziwiatr <
@.***> napisał:

https://github.com/microsoft/TypeScript/issues/18442#issuecomment-1037074273
niedz., 21 sie 2022, 16:37 użytkownik Piotr Pędziwiatr <
@.***> napisał:

https://github.com/microsoft/TypeScript/issues/18442
This is insane...
niedz., 21 sie 2022, 16:32 użytkownik Piotr Pędziwiatr <
@.***> napisał:

Do we really need another weird library to run sth., that is considered
as a "standard"...?
Have you tried creating a very simple library and play with different
tsconfig settings?
Is type: 'module' the only way to make it work with mjs files?
niedz., 21 sie 2022, 15:56 użytkownik Asia @.***>
napisał:

@twilson63 https://github.com/twilson63 @ppedziwiatr
https://github.com/ppedziwiatr I was able to make the .mjs file run
correctly only using tsup npm package (https://github.com/egoist/tsup),
looks cool and is based on esbuild but I'm not sure what's happening
underneath. It requires a lot more tests but maybe it's a good start.
—
Reply to this email directly, view it on GitHub
https://github.com/warp-contracts/warp/pull/190#issuecomment-1221551392,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUDH5TPRYMJVHSHU7DAE2SDV2IYRDANCNFSM53E3G74Q
.
You are receiving this because you were mentioned.Message ID:
@.***>

Yeah, I was trying this one. I got 'Permission denied' when running sh script so I drop the idea 🤡  but as I see simply running
chmod +x build.sh

should make it work. I'll try again and let you know.
git update-index --add --chmod=+x build.sh

should fix

Weird af, .mjs works fine with cjs version, with esm I'm getting
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/asiaziola/arweave/redstone-smartcontracts/lib/esm/logging/index' imported from /Users/asiaziola/arweave/redstone-smartcontracts/lib/esm/index.js

Seems like this is a cause https://bobbyhadz.com/blog/javascript-error-err-module-not-found-cannot-find-module#:~:text=The "Error [ERR_MODULE_NOT_FOUND]%3A,extension when importing local files.

so I guess we'd need extensions for all the imported files?

And how does it work in the example that I've sent? There is also some
additonal configuration in the main package.json file...
niedz., 21 sie 2022, 17:16 użytkownik Asia @.***>
napisał:

so I guess we'd need extensions for all the imported files?
—
Reply to this email directly, view it on GitHub
https://github.com/warp-contracts/warp/pull/190#issuecomment-1221565213,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUDH5TOLCGEYYS3YK7M7P53V2JB3TANCNFSM53E3G74Q
.
You are receiving this because you were mentioned.Message ID:
@.***>

I.e. this part
https://github.com/jwalton/solox/blob/4d86f8779329ffc47552a16d2bab60544ee78c65/package.json#L6-L15
niedz., 21 sie 2022, 18:50 użytkownik Piotr Pędziwiatr <
@.***> napisał:

And how does it work in the example that I've sent? There is also some
additonal configuration in the main package.json file...
niedz., 21 sie 2022, 17:16 użytkownik Asia @.***>
napisał:

so I guess we'd need extensions for all the imported files?
—
Reply to this email directly, view it on GitHub
https://github.com/warp-contracts/warp/pull/190#issuecomment-1221565213,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUDH5TOLCGEYYS3YK7M7P53V2JB3TANCNFSM53E3G74Q
.
You are receiving this because you were mentioned.Message ID:
@.***>

I dont think we should compare these libs... they have one-file package. The problem is not what is written in package.json (we have it compatible with them), I believe the problem is how we import classes etc.

I play with it some more :))))

I believe this has been finally fixed in 1.2.0-rc.2, https://github.com/warp-contracts/bundlers#readme


Issue using overload_method

Reporting a bug

[x] I have tried using the latest released version of Numba (most recent is
visible in the release notes
(https://numba.readthedocs.io/en/stable/release-notes-overview.html).
[x] I have included a self contained code sample to reproduce the problem.
i.e. it's possible to run as 'python bug.py'.

I have a use case of needing to attach a method to a CPointer type. The following code gives a minimal example which reproduces the error:
from numba import njit, cfunc
from numba.core import types
from numba.extending import overload, overload_method, overload_attribute, overload_classmethod

IntPtr = types.CPointer(types.int64)

@overload_method(IntPtr, 'foo')
def example_overload(self):
    def impl(self):
        return self
    return impl

@njit(IntPtr(IntPtr))
def test(x):
    return x.foo()

Running the above yields a long trace-back ending with:
  File ".../python3.10/site-packages/numba/core/typed_passes.py", line 93, in type_inference_stage
    errs = infer.propagate(raise_errors=raise_errors)
  File ".../python3.10/site-packages/numba/core/typeinfer.py", line 1083, in propagate
    errors = self.constraints.propagate(self)
  File ".../python3.10/site-packages/numba/core/typeinfer.py", line 182, in propagate
    raise e
  File ".../python3.10/site-packages/numba/core/typeinfer.py", line 160, in propagate
    constraint(typeinfer)
  File ".../python3.10/site-packages/numba/core/typeinfer.py", line 725, in __call__
    attrty = typeinfer.context.resolve_getattr(ty, self.attr)
  File ".../python3.10/site-packages/numba/core/typing/context.py", line 273, in resolve_getattr
    out = core(typ)
  File ".../python3.10/site-packages/numba/core/typing/context.py", line 269, in core
    out = self.find_matching_getattr_template(typ, attr)
  File ".../python3.10/site-packages/numba/core/typing/context.py", line 297, in find_matching_getattr_template
    return_type = template.resolve(typ, attr)
  File ".../python3.10/site-packages/numba/core/typing/templates.py", line 1021, in resolve
    return self._resolve(value, attr)
  File ".../python3.10/site-packages/numba/core/typing/templates.py", line 1122, in _resolve
    assert isinstance(typ, self.key)
TypeError: isinstance() arg 2 must be a type, a tuple of types, or a union

The trace-back shows it is dying in the following code in "numba/core/typing/templates.py":
    def _resolve(self, typ, attr):
        if self._attr != attr:
            return None

        if isinstance(typ, types.TypeRef):
            assert typ == self.key
        elif isinstance(typ, types.Callable):
            assert typ == self.key
        else:
            assert isinstance(typ, self.key)           #<---- dies here

Which is due to the CPointer class in "numba/core/types/misc.py" containing the definition:
    @property
    def key(self):
        return self.dtype, self.addrspace

i.e it is returning a tuple of (self.dtype, self.addrspace) to be used in isinstance. A patch that resolves this on my side is:
    def _resolve(self, typ, attr):
        if self._attr != attr:
            return None

        if isinstance(typ, types.TypeRef):
            assert typ == self.key
        elif isinstance(typ, types.Callable):
            assert typ == self.key
+      elif isinstance(typ, types.CPointer):
+          assert typ == self.key
        else:
            assert isinstance(typ, self.key)

Please advise if this is a bug or intended behaviour.

It arises relatively naturally in the context of a function taking a c-struct: https://numba.readthedocs.io/en/stable/user/cfunc.html#handling-c-structures
If you start trying to improve the end-user experience you can easily end up wanting to attach methods to such a CPointer(struct) to make it look like a class.

To me this seems like a reasonable thing to want to do. The proposed fix does allow the example to work (I have not thought about more broad testing). Note however that

Which is due to the CPointer class in "numba/core/types/misc.py" containing the definition:

is not the reason it initially didn't work - the reason was that self.key is an instance of a CPointer, rather than a type. To get at the definition from misc.py that is listed, one would have to use self.key.key (which is not happening here).

I've labelled this as a feature request, since I see it as a request to support something new: supporting method calls on CPointers.

Ok thanks for the clarification regarding self.key. I think it should be noted that the documentation for overload_method does say "The @overload_method decorator similarly allows implementing a method on a type well-known to Numba.", which suggests either the documentation is misleading or this is a bug (assuming CPointer is a type "well-known to Numba")


UK keyboard layout: '#' and '~' key not working on Linux with x11

I've just quickly followed the dependencies for keyboard input. It looks like alacritty depends on glutin which for linux depends on winit and I found the following lines are commented out in the most recent version src/api/x11/events.rs#L177 and src/api/x11/events.rs#L270.
This seems to be relevant to my issue but I am unsure why it has been commented out. If this is the reason then the layout of my keyboard is irrelevant and most likely other linux users would have the same problem.
Having encountered the issue while using alacritty I'm submitting an issue here but should I also post an issue on winit? Or is there another reason for this issue?

This problem would need to be fixed upstream in winit as you've suggested. Alacritty is actually on an older for of glutin from before the split, and so there would still be some work here to get an upstream patch.

I'll see if I can fix it tomorrow. Any particular reason you are using an older version of glutin? Is it changing too often?

There was a couple of features needed for this project that I was having trouble getting feedback on. Specifically, keyboard modifiers needed to be parsed out of the underlying windowing system event and passed with glutin::Event::KeyboardInput. I also needed the received char(s) to be passed with the event. The latter feature was necessary for either running a key binding or printing the character. For example, you wouldn't want Command-C to also print a c when trying to copy the selection.

In any case, it's on my list to try and upstream the patches and get back on the main glutin tree.

I found a fix for this issue! Here are the diffs that I am applying on top of https://github.com/jwilm/glutin/commit/af7fe340bd4a2af53ea521defcb4f377cdc588cf which is the version of glutin alacritty currently depends on:
diff --git a/src/api/x11/events.rs b/src/api/x11/events.rs
index 4754b1dc..5345af35 100644
--- a/src/api/x11/events.rs
+++ b/src/api/x11/events.rs
@@ -174,7 +174,7 @@ pub fn keycode_to_element(scancode: libc::c_uint) -> Option<VirtualKeyCode> {
         ffi::XK_space => events::VirtualKeyCode::Space,
         //ffi::XK_exclam => events::VirtualKeyCode::Exclam,
         //ffi::XK_quotedbl => events::VirtualKeyCode::Quotedbl,
-        //ffi::XK_numbersign => events::VirtualKeyCode::Numbersign,
+        ffi::XK_numbersign => events::VirtualKeyCode::Numbersign,
         //ffi::XK_dollar => events::VirtualKeyCode::Dollar,
         //ffi::XK_percent => events::VirtualKeyCode::Percent,
         //ffi::XK_ampersand => events::VirtualKeyCode::Ampersand,
@@ -267,7 +267,7 @@ pub fn keycode_to_element(scancode: libc::c_uint) -> Option<VirtualKeyCode> {
         //ffi::XK_braceleft => events::VirtualKeyCode::Braceleft,
         //ffi::XK_bar => events::VirtualKeyCode::Bar,
         //ffi::XK_braceright => events::VirtualKeyCode::Braceright,
-        //ffi::XK_asciitilde => events::VirtualKeyCode::Asciitilde,
+        ffi::XK_asciitilde => events::VirtualKeyCode::Asciitilde,
         //ffi::XK_nobreakspace => events::VirtualKeyCode::Nobreakspace,
         //ffi::XK_exclamdown => events::VirtualKeyCode::Exclamdown,
         //ffi::XK_cent => events::VirtualKeyCode::Cent,
diff --git a/src/events.rs b/src/events.rs
index 69b4710d..72188da6 100644
--- a/src/events.rs
+++ b/src/events.rs
@@ -256,6 +256,7 @@ pub enum VirtualKeyCode {
     Add,
     Apostrophe,
     Apps,
+    Asciitilde,
     At,
     Ax,
     Backslash,
@@ -287,6 +288,7 @@ pub enum VirtualKeyCode {
     NavigateBackward, // also called "Next"
     NextTrack,
     NoConvert,
+    Numbersign,
     NumpadComma,
     NumpadEnter,
     NumpadEquals,

This is obviously just a temporary solution waiting for proper patches upstream so I don't know if you'd want to make these changes in your version of glutin. This works for me so I just wanted to share! 😃
It's possible other useful keys are not yet enabled but I haven't encountered them yet.
Great work with alacritty! I see it's becoming very popular, definitely deserved!

Should be fixed by https://github.com/rust-windowing/winit/pull/1266.

Can we confirm this is fixed ? If so, the issue can be closed

if you  can see the mentioned PR isn't yet landed.


Suddenly Large file uploading stop (Multipart)

i am uploading large file on server with multipart, around 50 % of file is uploading successfully & suddenly the below error Occurs.
[] nw_endpoint_flow_prepare_output_frames [12.1 <IP_ADDRESS>:80 ready socket-flow (satisfied)] Failed to use 1 frames, marking as failed
2017-03-20 17:58:20.173023 XXXXXX[2984:869007] [] nw_endpoint_handler_add_write_request [12.1 <IP_ADDRESS>:80 failed socket-flow (satisfied)] cannot accept write requests
2017-03-20 17:58:20.175510 XXXXXX[2984:868739] [] __tcp_connection_write_eof_block_invoke Write close callback received error: [22] Invalid argument
Why i am getting this error? Please help me.

I have the same problem, have you solved it?

Delete the NSLog in the request

It doesn't work @anselPeng

其实主要原因就是在发送请求之后主线程被占用，或者堵塞引起的

If you can provide more information that shows a bug in AFNetworking, please re-open. For general help, please ask on StackOverflow.