Better Array.sort compareFn docs

Fixes #33046

This looks good (minus the CI failing, should be easy to fix though)
I wonder if it's also worth adding an example with a version for numbers, given how often that's going to be the code people are looking for?

@orta you're right, of course - and certainly have a point that example is needed

Alright - that's the baselines updated (basically compiler snapshots which got updated because the line references changed) and I've merged master.
Will merge this when it greens. Thanks @m1gu3l :D


A new config property to tie to Health Check Metrics instead of poolName

Hello,
As we know that Hikari CP poolName becomes the part of the key for health check metrics. In our system we have multiple components and hence different poolName. Since Dropwizard HealthCheck metrics is reporting metrics for each component using poolName, its getting complicated to design a generic dashboard that works across components. I propose to

Add a new property which ties up with Health Check Metrics to report metrics.
To maintain backward compatibility, the new property gets defaulted by poolName if not overridden by the user.

Please let me know if it makes sense. I can raise a pull request for same.

Hi @sammad  do you make Dashbord by Grafana? If so, you can create a variable for poolName tag, and create a panel with seeting repleat by the poolName variable.   It works for me.

Hello @Linzyoo
The health check registry emits the data in the following format
.pool.ActiveConnections = {...}
.pool.IdleConnections = {...}
.pool.MaxConnections={...}
etc
Now if I have 3 services with poolName =service1, service2 and service3. I ended up getting 9 columns in my index.
e.g.
service1.pool.ActiveConnections = {...}
service1.pool.IdleConnections = {...}
service1.pool.MaxConnections={...}
service2.pool.ActiveConnections = {...}
service2.pool.IdleConnections = {...}
service2.pool.MaxConnections={...}
etc
This poses me an issue of modelling it in generic way. We are using ELK stack. With this kind of data I am forced to create 3 visualizations. You can imagine the problem with number of services increasing or decreasing. Hence I am proposing to have another property which is used to map my Health Check Metrics

Hi Sammad,  I've got you.  And I checked other metrics, they all set the poolName as a tag, but not be part of metric name. Not sure why it is a part of metric name but not tag for Health Check Metrics.


fix hyper links in readme

What this PR does / why we need it:

Found some link errors when start reading the docs.
Pre-submission checklist:

[x] Did you explain what problem does this PR solve? Or what new features have been added?
[ ] Have you added corresponding test cases?
[ ] Have you modified the corresponding document?
[x] Is this PR backward compatible?

@RocFang merged, many thx


MAINT: Simplify array creation routines in ndimage.

Gets rid of unused functionality for array creation in nd_image.c.
Might be easier to convince oneself of correctness looking at the PR one commit at a time.

Merged, to keep the ndimage work rolling.


Exporter for Salesforce to capture Failure tickets

Customer is looking for exporter to support the capture of failure tickets to feed to Change Failure Rate and Meantime to Restore metrics.
Currently, the exporter only supports Jira and ServiceNow.

I like this. This will definitely go on the backlog.


Changing BitNav arrow button position

I need to show arrows on the right side of the nav items.

@msangtarash Thanks for contacting us.
you can simply achieve this by assigning a style like this to the ItemContainer property of the Classes or Styles parameter of the BitNav:
flex-flow: row-reverse;

@msangtarash Thanks for contacting us.
you can achieve this by assigning a style like flex-flow: row-reverse; to the ItemContainer property of the Classes or Styles parameter of the BitNav.
plz let us know if this solution resolves your problem.

I already did that, but I couldn't find any way to handle padding on the left side of items as I have some items that don't have child Items.

@msangtarash It seems there isn't a straight forward solution for this requirements, so I'm going to add a new feature for this.


Fix dashboard.json in README

The dashboard.json was moved into the /dashboards folder.

Good catch @longzheng !  Thank you! 🙏


added redactions to workflows GET by :id

@RackHD/corecommitters
New way to resolve: https://github.com/RackHD/RackHD/issues/241
This PR depends on: https://github.com/RackHD/on-core/pull/228
both PRs resolve: https://github.com/RackHD/RackHD/issues/417
this is the final PR to revert old (complex and overlapping) encryption of passwords to simply redact secret fields prior to the object being passed to the client.

BUILD on-http #2843 : UNSTABLE

** BUILD build-config-setup  #160067: SUCCESS
** BUILD unit-tests  #10103: UNSTABLE
** BUILD smoke-test  #3790: UNSTABLE

BUILD unit-tests  #10103  Error Logs  ▼Test Name: Http.Api.Workflows.2.0 workflowsGetById should return a single persisted graph
Error Details: expected 200 "OK", got 400 "Bad Request" Response body: { message: 'sanitizer.scrub is not a function',   status: '400',   UUID: '0900552c-ff0d-4e11-a639-81b426eae622' } Error: expected 200 "OK", got 400 "Bad Request"     at Test._assertStatus (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:232:12)     at Test._assertFunction (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:247:11)     at Test.assert (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:148:18)     at assert (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:127:12)     at /home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:124:5     at Test.Request.callback (/home/jenkins/workspace/on-http/build/node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3)     at IncomingMessage.<anonymous> (/home/jenkins/workspace/on-http/build/node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12)     at emitNone (events.js:72:20)     at IncomingMessage.emit (events.js:166:7)     at endReadableNT (_stream_readable.js:921:12)     at nextTickCallbackWith2Args (node.js:442:9)     at process._tickDomainCallback (node.js:397:17)
Stack Trace: Error: expected 200 "OK", got 400 "Bad Request"
    at Test._assertStatus (node_modules/supertest/lib/test.js:232:12)
    at Test._assertFunction (node_modules/supertest/lib/test.js:247:11)
    at Test.assert (node_modules/supertest/lib/test.js:148:18)
    at assert (node_modules/supertest/lib/test.js:127:12)
    at node_modules/supertest/lib/test.js:124:5
    at Test.Request.callback (node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3)
    at IncomingMessage.<anonymous> (node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12)
    at endReadableNT (_stream_readable.js:921:12)
Test Name: Http.Api.Workflows GET /workflows/:id should return a single persisted graph
Error Details: expected 200 "OK", got 500 "Internal Server Error" Response body: { message: 'sanitizer.scrub is not a function' } Error: expected 200 "OK", got 500 "Internal Server Error"     at Test._assertStatus (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:232:12)     at Test._assertFunction (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:247:11)     at Test.assert (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:148:18)     at assert (/home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:127:12)     at /home/jenkins/workspace/on-http/build/node_modules/supertest/lib/test.js:124:5     at Test.Request.callback (/home/jenkins/workspace/on-http/build/node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3)     at IncomingMessage.<anonymous> (/home/jenkins/workspace/on-http/build/node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12)     at emitNone (events.js:72:20)     at IncomingMessage.emit (events.js:166:7)     at endReadableNT (_stream_readable.js:921:12)     at nextTickCallbackWith2Args (node.js:442:9)     at process._tickDomainCallback (node.js:397:17)
Stack Trace: Error: expected 200 "OK", got 500 "Internal Server Error"
at Test._assertStatus (node_modules/supertest/lib/test.js:232:12)
at Test._assertFunction (node_modules/supertest/lib/test.js:247:11)
at Test.assert (node_modules/supertest/lib/test.js:148:18)
at assert (node_modules/supertest/lib/test.js:127:12)
at node_modules/supertest/lib/test.js:124:5
at Test.Request.callback (node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3)
at IncomingMessage.<anonymous> (node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12)
at endReadableNT (_stream_readable.js:921:12)

BUILD smoke-test  #3790  Error Logs  ▼Test Name: test_workflows_id_get
Error Details: (500)
Reason: Internal Server Error
HTTP response headers: HTTPHeaderDict({'Content-Length': '47', 'X-Powered-By': 'Express', 'Connection': 'keep-alive', 'ETag': 'W/"2f-mpirRZU2kw41cGfT9XNH0g"', 'Date': 'Wed, 16 Nov 2016 22:34:31 GMT', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json; charset=utf-8'})
HTTP response body: {"message":"sanitizer.scrub is not a function"}
-------------------- >> begin captured logging << --------------------
urllib3.connectionpool: WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine("''",))': /api/1.1/workflows
--------------------- >> end captured logging << ---------------------
Stack Trace:   File "/usr/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
self._testFunc()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
func(test_case.state.get_state())
File "/home/jenkins/workspace/on-http/RackHD/test/tests/api/v1_1/workflows_tests.py", line 73, in test_workflows_id_get
Workflows().workflows_instance_id_get(instance_id)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api1_1/apis/workflow_api.py", line 1054, in workflows_instance_id_get
callback=params.get('callback'))
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api1_1/api_client.py", line 322, in call_api
response_type, auth_settings, callback)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api1_1/api_client.py", line 149, in __call_api
post_params=post_params, body=body)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api1_1/api_client.py", line 342, in request
headers=headers)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api1_1/rest.py", line 184, in GET
query_params=query_params)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api1_1/rest.py", line 177, in request
raise ApiException(http_resp=r)
'(500)\nReason: Internal Server Error\nHTTP response headers: HTTPHeaderDict({'Content-Length': '47', 'X-Powered-By': 'Express', 'Connection': 'keep-alive', 'ETag': 'W/"2f-mpirRZU2kw41cGfT9XNH0g"', 'Date': 'Wed, 16 Nov 2016 22:34:31 GMT', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json; charset=utf-8'})\nHTTP response body: {"message":"sanitizer.scrub is not a function"}\n\n-------------------- >> begin captured logging << --------------------\nurllib3.connectionpool: WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine("''",))': /api/1.1/workflows\n--------------------- >> end captured logging << ---------------------'
Test Name: test_workflows_id_get
Error Details: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({'Content-Length': '108', 'X-Powered-By': 'Express', 'Connection': 'keep-alive', 'ETag': 'W/"6c-VGUSanmS4EwftIjp8Dm0Fg"', 'Date': 'Wed, 16 Nov 2016 22:35:15 GMT', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json; charset=utf-8'})
HTTP response body: {"message":"sanitizer.scrub is not a function","status":"400","UUID":"9be8b8b7-cb01-4366-93fb-adc8414a0437"}
Stack Trace: Traceback (most recent call last):
File "/usr/lib/python2.7/unittest/case.py", line 331, in run
testMethod()
File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest
self._testFunc()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
compatability.capture_type_error(s_func)
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
func()
File "/tmp/.venv/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
func(test_case.state.get_state())
File "/home/jenkins/workspace/on-http/RackHD/test/tests/api/v2_0/workflows_tests.py", line 90, in test_workflows_id_get
Api().workflows_get_by_instance_id(instance_id)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/apis/api_api.py", line 8847, in workflows_get_by_instance_id
callback=params.get('callback'))
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/api_client.py", line 322, in call_api
response_type, auth_settings, callback)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/api_client.py", line 149, in __call_api
post_params=post_params, body=body)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/api_client.py", line 342, in request
headers=headers)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/rest.py", line 184, in GET
query_params=query_params)
File "/tmp/.venv/local/lib/python2.7/site-packages/on_http_api2_0/rest.py", line 177, in request
raise ApiException(http_resp=r)
ApiException: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({'Content-Length': '108', 'X-Powered-By': 'Express', 'Connection': 'keep-alive', 'ETag': 'W/"6c-VGUSanmS4EwftIjp8Dm0Fg"', 'Date': 'Wed, 16 Nov 2016 22:35:15 GMT', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json; charset=utf-8'})
HTTP response body: {"message":"sanitizer.scrub is not a function","status":"400","UUID":"9be8b8b7-cb01-4366-93fb-adc8414a0437"}

:100:

👍  once it is rerun and passes tests with the dependent PR

👍

@brianparry if you get the chance could you review this?
once the build issues with on-core are resolved, this will address masking secrets on specific api paths that a github issue was raised.

test this please

@RackHD/corecommitters this should be merge ready.


MakeMyTrip Clone Website #19

Pull Request for WebMasterLog 💡
Issue Title: MakeMyTrip Clone Website

Name of the project: MakeMyTrip-website-clone
Category: CSS
Name: Aryan Pahuja
GitHub ID: https://github.com/AryanPahuja21
Idenitfy yourself: JWOC'24 Contributor

Closes: #19
Describe the add-ons or changes you've made 📃
Created a clone of the website "make-my-trip" using HTML and CSS.
Checklist: ☑

[x] My code follows the Contributing Guidelines & Code of Conduct of this project.
[x] This PR does not contain plagiarized content.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly wherever it was hard to understand.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] I have added things that prove my fix is effective or that my feature works.
[x] Any dependent changes have been merged and published in downstream modules.

Screenshots 📷

Note to reviewers 📄
Please go through my PR and review if any changes are to be done.

@AryanPahuja21 Create a folder Front-end-Projects named and inside in it create another directory with named Intermediate.
Keep you project there and also resolve the above conflicts and commit it again.

@Avdhesh-Varshney I have made the changes as described by you. Please review.

@AryanPahuja21 LGTM. PR Approved 🎉


Closes: #1

Updated validations.py python script.
Fixed the behavior of validate_user function in validations.py
Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[ ] Tests pass
[ ] Appropriate changes to README are included in PR

modifications on validations.py where names have to start with a letter


Convert keras.applications to keras_applications to support Keras 2.2.2+

Importing keras.applications is deprecated. It should be keras_applications instead.

Thanks for the PR. Seems I'll have to make this change in various other repos as well.


Popup's style seems not loaded properly in Chromium-based browser

Summary
When use with Vue and Vuetify, popup's style seems not loaded properly in Chromium-based browser.
Reproduction

clone the project: https://github.com/yujinlin0224/vuetify-plugin-test
pnpm install
pnpm dev
Visit https://yurina.dev/ (A github page I test the content mount of this plugin)

In this image, left side is firefox and right side is MS Edge, popup's style looks same to content but not in Edge

Thanks for the info, checking it out now...

The styles are being applied correctly, this isn't a problem with the plugin. This is a problem with your repo.

What looks different on the UI?

The popup window is small, and causes line wrap
The text (and icon) is smaller than what shows up from the content script

Without any changes, the button is already styled correctly.
These are caused by two different sources.
First, Chrome manages the popup's width is different than other browsers. I would recommend hard coding a width of the popup's html element or setting it to max-content. In this case, setting the below CSS fixes the sizing of the popup, making it similar to the content script:
/* src/views/popup/PopupView.vue in the style block */
html {
  width: max-content;
}

Cool, but the font is still the wrong size. Inspect each of them, and lets look at the computed styles to figure out why.

Looking at the styles, we can see that the font size is set to 16px in the content script, but it's set to 75% in your popup.
The 16px comes from style.css?v=1a45...29c189418ec9, which is a style from the https://yurina.dev/. With UI's on content scripts, you should not rely on the page style's to style your injected UI. So technically here, the small font from the popup is correct, and you need to isolated the injected UI's styles a different way.
A common solution for chrome extensions is to use the ShadowDOM api. I've written another package you can use to isolate your styles using those APIs: @webext-core/isolated-element, or you can use the shadow root API directly (example).
You're popup might still have small text. I would recommend applying a CSS reset to the popup.html file so it's consistent across browsers. That should make the font larger by default, removing the 75% Chrome defaults the font size to in extension popups.

Think a lot, I will try it later


Measuring Parkinson’s Disease Progression

We will study the performance of various regressor models on the prediction of progression of the Parkinson’s disease’s total and motor UPDRS metrics.
I want to contribute to this as a GSSoC'22 contributor. Kindly assign @Niketkumardheeryan

Hello, @theshredbox , what the update on this model?

Hey. I'll be pushing the code in a day or two. Was a little occupied with my university examinations.


CTRL + ALT + SHIFT + DOWN/UP ARROW KEY SHORTCUT NOT WORKING UBUNTU 20.04

VSCode Version: 1.44.2
OS Version: Ubuntu 20.04 LTS

Steps to Reproduce:

To copy a line up or down in vscode, we use a shortcut ctrl+ alt +shift+down/up arrow key

Expected Outcome:

The selected line gets copied up or down.

Actual Outcome:

NOTHING HAPPENS.

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

I switched to Pop OS and this shortcut works perfectly in that.


build: reduce default output verbosity

This is noted in #1122, but I wanted to call it out in a separate issue because I think it's a broken window that would be good to get fixed.

add verbosity feature

[ ] make V=0 would print only errors
[ ] make V=1 would print only some shortened messages (CCLD diagexec, GO init)
[ ] make V=2 would print all shortened messages (MKDIR foo, LN bar)
[ ] make V=3 would print everything, raw

other options: V=silent, V=info?, V=all, V=raw

@krnowak once again assigning to you but feel free to nominate someone else as I don't want you to have the sole build toolchain burden.

Implemented in https://github.com/krnowak/rkt/tree/verbosity in top of https://github.com/krnowak/rkt/tree/multiple-stage1-build, so it has to wait for #1420 to be fixed.

woot! excited to see this and #1420 land


ClickHouse disk type with first upper letter

https://github.com/Altinity/clickhouse-operator/blob/bbbf66a8e0fbbcf36b787a63eceeaca37e0ec272/pkg/apis/metrics/clickhouse_metrics_fetcher.go#L119

i added new disk for example:
	"storage_configuration/disks/disk1/type": "local"
	"storage_configuration/disks/disk1/path": "/var/log/clickhouse-server/"
	"storage_configuration/disks/disk1/keep_free_space_bytes": 100000

and type is "Local"
the metrics aren't fetched.

clickhouse version is <IP_ADDRESS>8

https://fiddle.clickhouse.com/4ca0bd51-54d4-45c1-9896-0d7c2bafdc39 24.2.3 - local
https://fiddle.clickhouse.com/4ca0bd51-54d4-45c1-9896-0d7c2bafdc39 24.3.1 - Local

thanks for reporting

Fixed in 0.24.0

Fix is delivered in https://github.com/Altinity/clickhouse-operator/releases/tag/release-0.23.7 as well


SystemError: google/protobuf/pyext/descriptor.cc:358: bad argument to internal function

Great day to you and thanks a lot for your contribution and determination on this project.
In Colab, I have code
%%capture
!pip install pythaiasr
!pip -q install pydub

import IPython
from pythaiasr import asr
file = "/content/voice data/helloWeeHee.wav"
IPython.display.Audio(file)

#pythaiasr
asr(file, "airesearch/wav2vec2-large-xlsr-53-th")
asr(file, "wannaphong/wav2vec2-large-xlsr-53-th-cv8-newmm")

However, after I found an error, try some solutions from Stackoverflow such as importing tensorflow and !pip install pythaiasr[lm]

SystemError: google/protobuf/pyext/descriptor.cc:358: bad argument to internal function

Now it may involve with tensorflow as I got the same output after importing tensorflow after pythaiasr.
Thank you.

@setthawut8 Do you use Colab? If you use google colab, I suggest you remove tensorflow before use PyThaiASR. It is bug of Google Colab not PyThaiASR.


Shared Solr search links get lost in historic conversations

A shared link (user posts a link from smarti UI in chat) is not stored in Smarti. The information is lost when storing the chat. Hence the information is not available in the "similar historic conversations" search when a user asks a related question.

Is this issue related with:
https://github.com/redlink-gmbh/smarti/issues/100
and therefor with:
https://github.com/assistify/Rocket.Chat/issues/64


Make hashFunctionName private in generator

The hashFunctionName in generated code is unnecessarily has public access. This fix prevents importing and listing this variable in code completition

LGTM thanks!


Support setting advanced compression parameters

This PR exposes more configuration options from the Zstd advanced compression api. The new methods allow users to configure the following options:

Overlap log
Job size
Target length
Minimum match
Search log
Chain log
Hash log
Window log
Compression strategy

These new methods have been added to the Zstd, ZstdCompressCtx, ZstdOutputStream, and ZstdOutputStreamNoFinalizer classes. Corresponding native functions have also been implemented in jni_zstd.c.
A new test has been integrated into the ZstdSpec file to ensure compatibility with the binary Zstd and to verify the expected behavior.

LGTM, thanks for the contrinution


How can modify the tab '...' abbreviation?

As the title says, I'm curious about how could I personalize after how many opened tabs would it use the '...' abbreviation? There is plenty of space on my display, and it shortens it already.
Thank you!

Unsure if this is possible. Please check the Vim documentation: http://vimdoc.sourceforge.net/htmldoc/tabpage.html


cross compile support

Is your feature request related to a problem? Please describe.
On my attempt to cross-compile for a RaspberryPi host, I got frustrated with a refusal to cross compile.
(I'm a layman, more than others who claim it, but) I believe, the reason is that nixflk currently doesn't hanle the crossSytem attribute, which I reference from my own context and ongoing line of thought here and here.
Describe the solution you'd like
Not sure how to sort this out short vs long term. A consolidated numtide/flake-utils backed solution would be ideal. (see the linked passages).
Describe alternatives you've considered
Too little a knowledge to be serious on alternatives.
Additional context
I'm trying to get some PI-based "home-automation" going.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Is this a duplicate of #72? Cross compiling packages already works by pulling from pkgsCross as usual, so at the very least, the title may need revision.
I am also able to build for aarch by adding:
{
  boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
}

So I'm not sure if this may solve the issue, at least for building aarch packages on x86.

Is this a duplicate of #72?

Indeed! Or at least subsumable thereunder. Thanks for pointing this out.


Prefix increment/decrement not recognized

Describe the bug
Prefix increment/decrement operators are compound assignments, according to ISO/IEC 9899.

The value of the operand of the prefix ++ operator is incremented.  The result is the new value of the operand after incrementation. The expression ++E is equivalent to (E+=1).

The E += 1 variety is correctly identified as not norm, but ++E is missed, and should be added, since they are equivalent.
Reference (bottom of page 76, section <IP_ADDRESS> Prefix increment and decrement operators):
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2310.pdf#page=76
(same thing is mentioned in the 1999 version, if the one linked earlier is to recent)
Erroneous code
#include <stdio.h>

int	main(void)
{
	int	i;

	i = 0;
	while (++i < 10)
	{
		printf("in ++i loop %i\n", i);
	}
	while ((i += 1) < 20)
	{
		printf("in i+=1 loop %i\n", i);
	}
	return (0);
}

Additional info

OS: macos
python --version: 3.9.1
norminette -v: 3.3.0

Hello,
Thank you for your issue.
This is intended. Assigns in control are no longer authorized, however we wanted to give a slight leeway to the students by allowing them to increment/decrement stuff in their control structure to facilitate the 25 lines rule.
+= and -= behave differently as they allow you to put in any value (not only 1) and thus could be used to bypass the norm.
Closing this issue

As the expression ++E is equivalent to (E+=1) (and not even by opinion, but by C language spec).
Should you then also allow E+=1? or E+=x as long as x equals 1?
Or is this a special exception, where if you write it as either ++E or E++ it is allowed, but the equivalence of ++E, E+= is not allowed?
By allowing ++E and E++ you can still increment more than one by just chaining them comma separated, which does not cause a norm error, is this also fine according to the norm?
while ((i++, i++, i++, i++, i++) < 100)
    printf("multiples of 5 below 101: %i\n", i);

The equivalence of the two operations is on the field of semantics, rather than in the field of syntax. While, yes, they both result in the same output, they still are two different operations and create two different set of assembly instructions (lea for i++, add for i += 1.
This, tho
while ((i++, i++, i++, i++, i++) < 100)
    printf("multiples of 5 below 101: %i\n", i);

results in four consecutive add instructions, followed by a lea instruction. Therefore, I agree it should be treated as a norm violation of the "one instruction in one line" constraint. It's a bug rather than an intended feature.

Hello,
Please refrain from calling "bugs" features you don't agree with. While both of your arguments stand, the chosen way of allowing students to increment a variable within a control structure will stay.
Or is this a special exception, where if you write it as either ++E or E++ it is allowed, but the equivalence of ++E, E+= is not allowed? : yes, as said in my first post, this is an exceptional exception.
I'd also like to remind you that this is a bug report feature. I am not in charge of deciding whether such or such concept should be in the norm.
Have a good day

Well, thank you for confirming it is a feature, then;


Flutter : Stateless Widget Documentation

Description 📜

One is supposed to add documentation on-

What are stateless Widgets?
Use of Stateless Widgets.
Syntax of Stateless Widget.
Description of Keywords in the syntax with example.

Domain of Contribution 📊

[x] Android Dev (Flutter)

@ViAsmit  Can you assign this?

@ViAsmit I need to work on this issu

/assign

/assign

@arcAman07 .. would you like to work on #137 ?

Yeah I would like to work on this issue

@arcAman07 Ohk I am assigning you #137  You have to make video for first 5 topics.

@ViAsmit , Done this issue
@thisisamank can you please validate


Generic write interface/protocol

It seems like we are looking at a few types of events that might trigger a "hey write this thing" event:
(so far)

native mediachain publication announce event
ethereum contract event
0mq

There's a couple of places the object can be specified by these:

literal payload in body (JSON) --> insert
a mediachain path --> merge
out-of-band request --> TLSNotary/curl/etc

They may also optionally contain a few things like proofs of identity, access, or payment (either completed or pending/in escrow)
It seems like we may want a relatively uniform interface for receiving these. Unfortunately, we can't really have a totally consistent message format, because e.g. the 0mq case we're looking at already has one defined. But we can e.g. translate the 0mq message (after running the out-of-band request) to our internal format.

Requires #139

Signing
How will signing work? Probably have to ship (optional?) signature together with payload, but this requires consistent encoding.
Error conditions

blob too large (shouldn't happen due to gas costs, but possible in theory)
blob not valid cbor
signature doesn't match, if present
signature doesn't match identity of sender (?)
schema doesn't match, if present

Request format
similar to Statement, something like
{
  publisher: ... // optional?
  namespace: ....
  body: ... // simplestatement only
  ts: block.timestamp
  signature: ... // optional?
}

This could potentially also include information about payments, refunds, proofs, rewards, etc. For example, it could include the write fee that will be paid to replicating nodes. This may require an additional envelope around this, since I feel weird adding arbitrary fields like that into what's largely parallel to internal Statement type.


Try to ignore binary files and detect proper encoding

This is meant to solve #227. Tries to ignore binary files as well as detect encoding of non-UTF8 files using chardet. Can be complemented by this suggestion to fully solve the issue.
BTW this project is affected by the issue described in https://github.com/securisec/ripgrepy/pull/16, might want to look into forking ripgrepy as it doesn't seem to be maintained.

This is meant to solve #227. Tries to ignore binary files as well as detect encoding of non-UTF8 files using chardet. Can be complemented by this suggestion to fully solve the issue.
BTW this project is affected by the issue described in securisec/ripgrepy#16, might want to look into forking ripgrepy as it doesn't seem to be maintained.

ok, we could fork ripgrepy, or perhaps it's possible for us to get rid of that dependency instead :thinking: I think ripgrep can directly generate JSON anyway.

I would also appreciate a test case that breaks without this fix. I think it would be enough to change any existing test case and force writing a file that is not the same encoding as the other files.
I think that you could add an encoding as an argument here, and make it default to "utf-8"
https://github.com/kantord/SeaGOAT/blob/b7d8e08d919c0cdead113e09e6fc54524399bc02/tests/conftest.py#L130-L151
then maybe just change one of these usages of that function to use a windows encoding and leave a comment that this is explicitly to make sure that it support that encoding:
https://github.com/kantord/SeaGOAT/blob/b7d8e08d919c0cdead113e09e6fc54524399bc02/tests/test_chroma.py#L116-L144
Adding a completely separate test could also be a good alternative

Also there seem to be some failures

ok, we could fork ripgrepy, or perhaps it's possible for us to get rid of that dependency instead 🤔 I think ripgrep can directly generate JSON anyway.

Yes, actually ripgrepy calls rg --json for this functionality and parses its output straightforwardly.

I extracted this logic to a class because it's also used in Result. I added a test and it was still failing for the same reason in result.

This was fast, thanks!


[Bug]: Update livenessProbes , startupProbe in helm charts

Is there an existing issue for this?

[X] I have searched the existing issues

Description
When users deploy appsmith using helm charts. The livenessProbe and startupProbe help in restarting appsmith incase appsmith goes unhealthy.
Steps To Reproduce
helm repo add appsmith https://helm.appsmith.com
helm repo update
helm install appsmith . -n appsmith --create-namespace

after 15 min
kubectl delete pod appsmith-mongo-0 -n appsmith
kubectl restart sts/appsmith -n appsmith

You can see appsmith doesnt restart though mongo/redis are back to normal state
Public Sample App
No response
Environment
Production
Issue video log
No response
Version
v<IP_ADDRESS>

@pratapaprasanna, from the commands in the description, it looks like we're deleting MongoDB pod, after which, Kubernetes will recreate that pod, right? So, once that is ready, if we restart Appsmith, it should connect to the new MongoDB pod, right?
If that's not happening, what's the error? Is there a connection failure? How is changing probes going to help here?


"Cannonical URI" and "Available from" issue for latest version

When I click on the latest version of the CV the Available from shows undefined and Canonical URI is missing. If I choose a previous version they are showing. This is on production, however on staging it shows correctly also for latest version.
See screenshots from production below:

it looks like that this script was not executed over the production db. i'll check the production dump and come back then.

Great, so it is working now. Closing the issue


fix: contracts resources being defined as subscriptions resources

Description of changes:
EntitlementSQSQueue is a resource in contracts mode.
Fix it being defined as a resource in subscriptions mode.
The resource definition is based on this diagram.
Diagram of created resources
The EntitlementSQSQueue is a purple circle, indicating that it is a contracts resource.

In the case of a contracts, the resources market with orange circles will not be created.

This fix is required for contract mode deployments.
Error: Failed to create changeset for the stack: my-aws-marketplace-contract-integration-stack, ex: Waiter ChangeSetCreateComplete failed: Waiter encountered a terminal failure state Status: FAILED. Reason: Template format error: Unresolved resource dependencies [EntitlementSQSQueue] in the Resources block of the template

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This pull request was found to break the deployment of subscriptions.
Back to the draft.


ignore tests

would you accept a PR adding a new config option which allows to don't report methods unused, when used from tests?

alternatively it could make sense to ignore methods which are tagged @internal - meaning a method is pubilc because it is public for testing purposes, but not intended for use outside tests

Methods used only in test should be reported.
Same way unused internal methods as designed to be used only in current scope but never used.
On the other hand, methods marked with @api are designed to be used externally and in other projects and skipped.

Turning this thing differenty: what would you think a out using a different error message for methods only used in tests?
That way we would provide better DX and also it would be possible to use different ignore rules for the 2 cases..?


DSD-652: Card custom image aspect ratio fix

Fixes JIRA ticket DSD-652
This PR does the following:

Fixes the bottom padding on custom image components/elements passed to the Card component by passing the appropriate aspect ratio value.
Also fixes the logic in the Image component so custom components/elements don't get wrapped in cropping and aspect ratio divs.

How has this been tested?
Locally in Storybook and through the NYPL test app with the Nextjs Image component.
Accessibility concerns or updates

None.

Checklist:

[ ] I have updated the Storybook documentation accordingly.
[ ] I have added relevant accessibility documentation for this pull request.
[ ] All new and existing tests passed.

Front End Review:

[ ] View the example in Storybook

Tugboat has finished building the preview for this pull request!
Link:

https://pr818-fgntzdfg9hb5y5bqb39buazzpkhfzs6m.tugboat.qa

Dashboard:

https://dashboard.tugboat.qa/61c1fff85f46ed13d84f18f7

Tugboat has finished building the preview for this pull request!
Link:

https://pr818-fgntzdfg9hb5y5bqb39buazzpkhfzs6m.tugboat.qa

Dashboard:

https://dashboard.tugboat.qa/61c1fff85f46ed13d84f18f7

Tugboat has finished building the preview for this pull request!
Link:

https://pr818-fgntzdfg9hb5y5bqb39buazzpkhfzs6m.tugboat.qa

Dashboard:

https://dashboard.tugboat.qa/61c1fff85f46ed13d84f18f7

Tugboat has finished building the preview for this pull request!
Link:

https://pr818-fgntzdfg9hb5y5bqb39buazzpkhfzs6m.tugboat.qa

Dashboard:

https://dashboard.tugboat.qa/61c1fff85f46ed13d84f18f7

Tugboat has finished building the preview for this pull request!
Link:

https://pr818-fgntzdfg9hb5y5bqb39buazzpkhfzs6m.tugboat.qa

Dashboard:

https://dashboard.tugboat.qa/61c1fff85f46ed13d84f18f7

Tugboat has finished building the preview for this pull request!
Link:

https://pr818-fgntzdfg9hb5y5bqb39buazzpkhfzs6m.tugboat.qa

Dashboard:

https://dashboard.tugboat.qa/61c1fff85f46ed13d84f18f7

Tugboat has finished building the preview for this pull request!
Link:

https://pr818-fgntzdfg9hb5y5bqb39buazzpkhfzs6m.tugboat.qa

Dashboard:

https://dashboard.tugboat.qa/61c1fff85f46ed13d84f18f7

Tugboat has finished building the preview for this pull request!
Link:

https://pr818-fgntzdfg9hb5y5bqb39buazzpkhfzs6m.tugboat.qa

Dashboard:

https://dashboard.tugboat.qa/61c1fff85f46ed13d84f18f7

Tugboat has finished building the preview for this pull request!
Link:

https://pr818-fgntzdfg9hb5y5bqb39buazzpkhfzs6m.tugboat.qa

Dashboard:

https://dashboard.tugboat.qa/61c1fff85f46ed13d84f18f7

Tugboat has finished building the preview for this pull request!
Link:

https://pr818-fgntzdfg9hb5y5bqb39buazzpkhfzs6m.tugboat.qa

Dashboard:

https://dashboard.tugboat.qa/61c1fff85f46ed13d84f18f7

Tugboat has finished building the preview for this pull request!
Link:

https://pr818-fgntzdfg9hb5y5bqb39buazzpkhfzs6m.tugboat.qa

Dashboard:

https://dashboard.tugboat.qa/61c1fff85f46ed13d84f18f7

Tugboat has finished building the preview for this pull request!
Link:

https://pr818-fgntzdfg9hb5y5bqb39buazzpkhfzs6m.tugboat.qa

Dashboard:

https://dashboard.tugboat.qa/61c1fff85f46ed13d84f18f7

Tugboat has finished building the preview for this pull request!
Link:

https://pr818-fgntzdfg9hb5y5bqb39buazzpkhfzs6m.tugboat.qa

Dashboard:

https://dashboard.tugboat.qa/61c1fff85f46ed13d84f18f7


Refactor: Category model

Part of an ongoing code refactoring to move all models to a common models package.
Fixes #4782
Moved Category model to data.models package.
Tested debug on Pixel 4 (Emulator) with API level 30.

Hi, is this PR sleeping @ben-mathu ?:)

Closing: 2 years old and looks abandoned.


Remove superflous author

Just a netlify example

See the deploy status above...

I see that the screencast videos are not showing in the deploy/netlify... I don't know why

the gems versions are different there, maybe related

The page tries to load scripts from sources that are not trusted. Therefore the screencast is not viewed.

Yeah the site has to be made protocol proofed :-)


Testing CLA

Issue Number
Implementation description
@devonfw/devonfw-shop-floor

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: Jorge-Dacal:x: cbeldacapYou have signed the CLA already but the status is still pending? Let us recheck it.


Added possibility of name for operation

Added a way to name the operations, so you can create an operation with relational operators to use in a condition and the parser doesn't get confused with some operation that uses mathematical operators. By not using a name, the functionality remains the same. (parsersClass_expressions)
For example, look at these rules:
[Production("ifstatement: IF LPAREN parserClass_expressions_relational RPAREN LBRACKET statements? RBRACKET elsestatement?")]
AND
[Operation((int)Tokens.LESSER, Affix.InFix, Associativity.Right, 50, "relational")]
[Operation((int)Tokens.LESSEROREQUAL, Affix.InFix, Associativity.Right, 50, "relational")]
[Operation((int)Tokens.GREATER, Affix.InFix, Associativity.Right, 50, "relational")]
[Operation((int)Tokens.GREATEROREQUAL, Affix.InFix, Associativity.Right, 50, "relational")]
[Operation((int)Tokens.EQUALS, Affix.InFix, Associativity.Right, 50, "relational")]
[Operation((int)Tokens.DIFFERENT, Affix.InFix, Associativity.Right, 50, "relational")]
AND
[Operation((int)Tokens.PLUS, Affix.InFix, Associativity.Right, 10, "matematical")]
[Operation((int)Tokens.MINUS, Affix.InFix, Associativity.Right, 10, "matematical")]

Firs tthanks  for your PR ,
I have to  comments :

a formal one : PR shoudl provide unit tests to validate new behavior. i dont see any.
a more conceptual : what your trying to o do with your PR is type checking at syntax level :

2.a.  your trying to check that the condtition . Type checking is another step in a compialtion workflow that came after lexing and parsing, it applies check on an AST. As CSLY is only a lexer/parser I am not sure tointegrate it. furthermore it think will be quite dificult to document it.
2.b as you didnt provide a unit test and full example I guess that you could not do simple thikngs like
 if (a < b +1)  as B+1 is matematical expression. Could you check it with a dedicated unit test ?

Please feel free to agrument back. The technical approach is great.

Pull Request Test Coverage Report for Build 965478965

39 of 40 (97.5%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.05%) to 88.717%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

sly/parser/generator/ExpressionRulesGenerator.cs
34
35
97.14%

Totals

Change from base Build 942125697:
0.05%

Covered Lines:
4680

Relevant Lines:
5223

💛  - Coveralls

@cassiano3795 , without any animer I am rejecting your pull requête.


Remove commented out code + format issue blocking DBT 1.5 compile

This is a:

[X] bug fix PR with no breaking changes
[ ] new functionality

Link to Issue
Closes https://github.com/dbt-labs/dbt-project-evaluator/issues/327
I added this as a local package and it successfully built.
Description & motivation
DBT 1.5 doesn't work with the current version of DBT project evaluator because of the empty tests dictionary
|
18:17:26  Running with dbt=1.5.0-rc1
18:17:27  Unable to do partial parsing because saved manifest not found. Starting full parse.
18:17:38  Encountered an error:
Parsing Error
  Invalid models config given in models/marts/tests/testing.yml @ models: {'name': 'fct_test_coverage', 'description': 'this model shows a few key metrics related to how well tested your dbt project is.', 'columns': [{'name': 'test_to_model_ratio', 'description': 'the total number of tests in the project divided by the total number of models in the project', 'tests': None}, {'name': 'test_coverage_pct', 'description': 'the number of models in the project with at least one test configured divided by the total number of models in the project', 'tests': [{'dbt_utils.accepted_range': {'name': 'valid_test_coverage', 'min_value': "{{ var('test_coverage_target') }}", 'severity': 'warn'}}]}], 'original_file_path': 'models/marts/tests/testing.yml', 'yaml_key': 'models', 'package_name': 'dbt_project_evaluator'} - at path ['columns'][0]['tests']: None is not of type 'array'

Integration Test Screenshot

Checklist

[X] I have verified that these changes work locally on the following warehouses (Note: it's okay if you do not have access to all warehouses, this helps us understand what has been covered)

[ ] BigQuery
[ ] Postgres
[ ] Redshift
[X] Snowflake
[ ] Databricks
[ ] DuckDB

[ ] I have updated the README.md (if applicable)
[ ] I have added tests & descriptions to my models (and macros if applicable)

This appears to be fixed on main already

Yep! Looks like Benoit fixed it as part of this PR. Thanks for opening a PR though!


bug: npm install -g ionic@beta npm ERR! cb() never call

Type: bug
Ionic Version: 2.x
Platform: all
When I try to run
npm install -g ionic@beta
I get an exception:
npm verb afterAdd /Users/CXI624/.npm/ionic/2.0.0-beta.25/package/package.json written
npm ERR! cb() never called!
Note: I am able to install npm install -g<EMAIL_ADDRESS>however @beta didn't work even after uninstalling ionic and clean up cache etc

Hello! Thanks for opening this issue with us! Since this issue is related to the ionic-cli repo i will be moving this issue over there. Thanks again!

This issue was moved to driftyco/ionic-cli#936


maintenance: Set notifications for new releases of Gnome extensions

This will allow me to instantly update the extensions to latest versions.
Fedora RPMs are often outdated & only updated when new Gnome version releases.
So instead of Fedora package maintainers, I will take care of this simple change.
Ideally, Gnome extension releases would be directly followed from https://extensions.gnome.org/,
but there is no way to do this afaik.
So I alternatively try to enable notifications in this order from:

GitHub/GitLab releases
GitHub/GitLab release tags with RSS-to-email service FeedRabbit

This will track which extensions have notifications set & which one need to be followed manually.

[ ] Blur My Shell: Following GitHub Releases notifications
[ ] Caffeine: Inconsistent GitHub release tagging
[ ] Quick Close in Overview: Following GitHub release tags with RSS-to-email service FeedRabbit
[ ] OpenWeather Refined: Following GitHub Releases notifications
[ ] Notifications Alert: Has no potential way to follow automatically
[ ] Bluetooth Battery Meter: Following GitHub release tags with RSS-to-email service FeedRabbit
[ ] Night Time Switcher: Following GitLab Releases notifications
[ ] RebootToUEFI: Has no potential way to follow automatically

No need for this, since new Gnome extensions module is implemented, which automatically downloads the latest extension version.
Closing.


Unchecked send bug

I was trying to execute unchecked send module on some smart contracts, but this error happended  when I did this.

Command: myth -m unchecked_retval -x -f 0x27af9309f68a2499b21b5d9428b6ee6f42e9a539.txt --verbose-report

Smart contract address: 0x27af9309f68a2499b21b5d9428b6ee6f42e9a539

Output: b'The analysis was completed successfully. No issues were detected.\n\n' Wrong: b'mythril.mythril.mythril_analyzer [CRITICAL]: Exception occurred, aborting analysis. Please report this issue to the Mythril GitHub page.\nTraceback (most recent call last):\n  File "/home/zhang.834/myth-env/lib/python3.6/site-packages/mythril/mythril/mythril_analyzer.py", line 147, in fire_lasers\n    enable_iprof=self.enable_iprof,\n  File "/home/zhang.834/myth-env/lib/python3.6/site-packages/mythril/analysis/symbolic.py", line 120, in init\n    self.laser.sym_exec(world_state=world_state, target_address=address.value)\n  File "/home/zhang.834/myth-env/lib/python3.6/site-packages/mythril/laser/ethereum/svm.py", line 139, in sym_exec\n    self._execute_transactions(symbol_factory.BitVecVal(target_address, 256))\n  File "/home/zhang.834/myth-env/lib/python3.6/site-packages/mythril/laser/ethereum/svm.py", line 191, in _execute_transactions\n    execute_message_call(self, address)\n  File "/home/zhang.834/myth-env/lib/python3.6/site-packages/mythril/laser/ethereum/transaction/symbolic.py", line 67, in execute_message_call\n    laser_evm.exec()\n  File "/home/zhang.834/myth-env/lib/python3.6/site-packages/mythril/laser/ethereum/svm.py", line 221, in exec\n    new_states, op_code = self.execute_state(global_state)\n  File "/home/zhang.834/myth-env/lib/python3.6/site-packages/mythril/laser/ethereum/svm.py", line 260, in execute_state\n    hook(global_state)\n  File "/home/zhang.834/myth-env/lib/python3.6/site-packages/mythril/laser/ethereum/plugins/implementations/coverage/coverage_plugin.py", line 66, in execute_state_hook\n    self.coverage[code][1][global_state.mstate.pc] = True\nIndexError: list assignment index out of range\n\n'

Thank you.

@MiaZmy1221 thanks for the report, we will look into it.

The smart contract is self destructed, its code is non existent,  thats the reason

Thank you so much. Add I also encounters another problem.
Its bytecode is 0x7f6004600c60003960046000f3600035ff00000000000000000000000000000000600052602060006000f061280060008073c72c3ebd888ac1970a8712fef74a1f9b9beecad33c60285b80516c0100000000000000000000000090047366726f6d7368616e67686169776974686c6f7665901860005260008060208180866006f1506014015a60901061004957.
Problem:
Hash: 0xc8076631de834e83bc487bfa7ab642b810955d55 Time: 0.6911792755126953 Output: b'The analysis was completed successfully. No issues were detected.\n\n' Wrong: b'mythril.mythril.mythril_analyzer [CRITICAL]: Exception occurred, aborting analysis. Please report this issue to the Mythril GitHub page.\nTraceback (most recent call last):\n  File "/home/zhang.834/myth-env/lib/python3.6/site-packages/mythril/mythril/mythril_analyzer.py", line 147, in fire_lasers\n    enable_iprof=self.enable_iprof,\n  File "/home/zhang.834/myth-env/lib/python3.6/site-packages/mythril/analysis/symbolic.py", line 108, in init\n    creation_code=contract.creation_code, contract_name=contract.name\n  File "/home/zhang.834/myth-env/lib/python3.6/site-packages/mythril/laser/ethereum/svm.py", line 144, in sym_exec\n    self, creation_code, contract_name\n  File "/home/zhang.834/myth-env/lib/python3.6/site-packages/mythril/laser/ethereum/transaction/symbolic.py", line 113, in execute_contract_creation\n    laser_evm.exec(True)\n  File "/home/zhang.834/myth-env/lib/python3.6/site-packages/mythril/laser/ethereum/svm.py", line 230, in exec\n    self.manage_cfg(op_code, new_states)\n  File "/home/zhang.834/myth-env/lib/python3.6/site-packages/mythril/laser/ethereum/svm.py", line 389, in manage_cfg\n    state, JumpType.CONDITIONAL, state.mstate.constraints[-1]\n  File "/home/zhang.834/myth-env/lib/python3.6/site-packages/mythril/laser/ethereum/svm.py", line 435, in _new_node_state\n    address = state.environment.code.instruction_list[state.mstate.pc]["address"]\nIndexError: list index out of range\n\n'
Thank you so much.

This issue should be fixed now.


Add playlist start/end and playlist items

PR brings playlist download  parameters feature :

Start / end video index
Items list (e.g : 1,3,4) (has priority over start / end video index)

The GUI is not perfect, it will not be clear for users (especially in priority order). But this can be improved in a future update.
If the playlist checbox is not ticked, the program always download only one video (the first video for a playlist, and the video for a video link).
If the playlist is ticked, the program download (in priority) :

The specified items list
OR The specified start / end videos
OR The video (if the link is a video link)

News : If the link is a video link with playlist (e.g : here), the program download the playlist (items or start/end) if the playlist checkbox is ticked.

You took a pretty cumbersome approach as yt-dlp already checks if the playlist-item option is valid or not. You should let yt-dlp check the correctness of the value as there a many edge cases you don't currently handle (incorrect list, letters within the indeces...).
In the GUI we should only have a "List" field. Remove the "Start" and "End" fields. We could set a default value when the fiels is disabled in order to have some sort of example. In my opinion the list format is self explanatory as every printer use it.
You also could disable the "Start" and "End" boxes that allow us to input the timecodes when playlist is ticked as I don't really see any reason to use those when downloading a playlist.

I push a new commit to update the new feature, according to your remarks.
I also fix label size for begin/end timers for deutsch translation.

The default value isn't erased when we tick Indices


Extend createMethodSignature and updateMethodSignature with 'modifiers' argument

Search Terms

updateMethodSignature, createMethodSignature
Suggestion

It should be possible to provide an array of Modifiers (or undefined) to the createMethodSignature and updateMethodSignature functions.
Use Cases

When using the TypeScript compiler APIs, TypeScript provides numerous create and update functions that can be used to generate an AST, for example from Custom Transformers. However, for MethodSignatures, which may have modifiers such as the static keyword, there's no option to create or update their modifiers. This breaks one of my libraries which sole purpose is to simply deep-clone a TypeScript node. A workaround is to manually patch the modifiers, however I hope this can be part of the function (as it is for others, like createPropertySignature and updatePropertySignature).
Examples

import {createMethodSignature, createNodeArray, createModifier, SyntaxKind} from "typescript";

createMethodSignature(
    createNodeArray([
        createModifier(SyntaxKind.StaticKeyword)
    ]),
    node.typeParameters,
    node.parameters,
    node.type,
    node.name,
    node.questionToken
);

However, the above example would be a breaking change since the first parameter expects a NodeArray of type parameters, so an alternative solution would be to accept it as the last argument.
Checklist
My suggestion meets these guidelines:

[X] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[X] This wouldn't change the runtime behavior of existing JavaScript code
[X] This could be implemented without emitting different JS based on the types of the expressions
[X] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
[X] This feature would agree with the rest of TypeScript's Design Goals.

As part of https://github.com/microsoft/TypeScript/pull/35282, I can see that you have added modifiers as the first argument to the new createMethodSignature and updateMethodSignature methods in the NodeFactory interface. Since this is part of the TypeScript v4.0.0, så feel free to close this issue


[Additional Parameter Request] Codeunit 99000845 Reservation Management - OnAfterAutoReserveOneLine

Hi Team,
In codeunit 99000845 we need possibility to have additional checks in the procedure AutoReserveOneLine. Standard publisher OnAfterAutoReserveOneLine would suit us if it had additional parameter CalcReservEntry2: Record "Reservation Entry" and Positive: Boolean. We have noticed that CalcReservEntry was added in ticket #6346 , which is great .

[IntegrationEvent(false, false)]
local procedure OnAfterAutoReserveOneLine(ReservSummEntryNo: Integer; var RemainingQtyToReserve: Decimal; var RemainingQtyToReserveBase: Decimal; Description: Text[100]; AvailabilityDate: Date; Search: Text[1]; NextStep: Integer; CalcReservEntry: Record "Reservation Entry"; CalcReservEntry2: Record "Reservation Entry"; Positive: Boolean)

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


Warning about "_GNU_SOURCE" redefined

Compiling for Linux x86_64 (Ubuntu 18.04) throws a Warning
# github.com/go-gl/glfw/v3.3/glfw
In file included from ../../go/pkg/mod/github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20220516021902-eb3e265c7661/c_glfw_lin.go:20:0:
../../go/pkg/mod/github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20220516021902-eb3e265c7661/glfw/src/x11_window.c:30:0: warning: "_GNU_SOURCE" redefined
 #define _GNU_SOURCE

<command-line>:0:0: note: this is the location of the previous definition

I understand that this is just a Warning, but it would be good if it could be silenced or fixed.
Let me know if you'd like more info on this

I agree this looks like a duplicate of #2076, and should be discussed in go-gl/glfw#351.
We've just pushed a fix that should resolve that issue, @alexballas please feel free to try again with the latest version (e.g., go get github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20220622232848-a6c407ee30a0), and comment in go-gl/glfw#351 if the issue with the Go package persists.

thanks for that. The new go-gl version did fix the issue.


pull request for e2e test at 12/18/2016 08:15:19

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


upowerd: critical action configuration

Issue description
The Thinkpad T460p (and, it seems, a lot of the Lenovo Thinkpad line) have a problem resuming from suspend. It may only be an issue if the battery expires before a full suspend complete. Regardless, the workaround is to disable hibernation, especially in low-power situations.
It'd be great if the upowerd module had a "criticalAction" attribute, and maybe "batteryLevels" to control the UPower.conf file
Steps to reproduce
In my case: leave laptop in office where power is turned off at night. Come back to laptop that must be opened and have the motherboard battery unplugged.
Current workaround: upowerd.enable = false
Technical details

System: 17.03.1033.99dfb6dce3 (Gorilla)
Nix version: nix-env (Nix) 1.11.8
Nixpkgs version: "17.03.1033.99dfb6dce3"

Are there any updates on this issue, please

@mmahut I disabled upowerd and forgot about it. I ought to spend some time on the module and get a PR in.

@nyarly thank you, please do that, feel free to tag me in the PR for review.


correct season in summary files for s5v1

Vikings Bluray set Season 5 Volume 1 discs had the incorrect season in the respective summary.txt files. Was Season: 4, should be Season: 5. This can be validated against the episode file names in the files, Vikings.S05...

Thank you for fixing this. It will get updated on the site in the next data import


Small javalib changes

Supersedes #2386 and #2472, which were lacking follow up from their authors.

Review by @nicolasstucki

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/3306/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/4296/
Test PASSed.

That is all.
Otherwise LGTM.


Redundancy makes navigation of SOLID API difficult

Hi and thanks for Typedoc!
It offers an amazing start and I accept I should theme if I need something different. However, thought I should share that for my very simple case the default theme tends to push all the meaningful information 'below the fold' by redundant information which could probably be fixed by changing defaults.

From the top to the bottom, referencing the screenshot above...

The Lock interface visibly has a generic parameter Key in its declaration. Nevertheless 112 vertical pixels are dedicated to a block containing three words "Type Parameters...Key"
The Lock interface is a top-level interface with no hierarchy. Nevertheless another 100 pixels are dedicated to a block stating "Hierarchy...Lock"
The Lock interface is designed with a simple API and single responsibility. It's sole acquire property is already visible in the index in the navigation tree to the right of the page and its full definition would be visible except that 150 pixels are dedicated to a block stating "Index...Properties...acquire".

Combined, these elements push all of the API details out of site below the viewport. I can't help thinking that these cases might be eliminated in more opinionated model-generation or template logic.
A) Is a Generic parameters block necessary given the visible declaration already in the header
B) Is a Hierarchy block for something without a Hierarchy necessary.
C) Is a property index necessary when there are property trees for Lock already rendered to the right. It also takes a lot of prime space. Perhaps it could have less whitespace and vertical structure if it remains?
Thoughts
If I was to approach solving it for my case via typedoc flags or a specialised typedoc theme is there any value in me trying to PR changes back to the main project or themes that you might accept or have been considering anyway?
Alternative View
The alternative view shown below comes from manually deleting the redundant blocks described from the first screenshot. After this change, within the 800 or so vertical pixels the complete API for this interface is visible. It still has some redundancy given the type declaration for acquire shown twice for no obvious reason but it's much better.

A) Is a Generic parameters block necessary given the visible declaration already in the header

The header only includes the type parameter names, it will not include the constraint (if any) or comments attached to the type parameter.

B) Is a Hierarchy block for something without a Hierarchy necessary.

Definitely not! I didn't even think it was displayed... Should be an easy fix https://github.com/TypeStrong/typedoc/blob/master/src/lib/converter/plugins/TypePlugin.ts#L134

C) Is a property index necessary when there are property trees for Lock already rendered to the right. It also takes a lot of prime space. Perhaps it could have less whitespace and vertical structure if it remains?

The index does more than just list properties, it groups them by type, and if some reflections are marked with the @category tag, then they will be grouped using that as well. For your example, it's definitely not that useful, but I think it makes a lot of sense for modules.

type declaration for acquire shown twice for no obvious reason

This is because the type is defined using a property instead of a method, and wasn't caught by TypeDoc's special casing for property-methods.
I'm definitely open to improvements to the theme, I believe there's lots of things that could be improved.


Use window titles for tabs instead of directory names

Hey, it's pretty common to use multiple tmux windows in the same directory. Currently, this config uses the name of the working directory to describe the tab and only shows the window title in a tab on the right. It seems like this should be the inverse, with the window titles describing the tabs and the directory name shown on the right.
Example from a project I'm working on:

Thank you for putting this config together!

That makes sense, I'll give it a try this week.

Wonderful, thank you!!

On a further note: Is this something that can be decoupled from the colour scheme and put into the users responsibility to configure to their liking?

I merged the PR for TPM support (#2), so now we have options available in the theme:
https://github.com/catppuccin/tmux/blob/bd1ea4b86a159faddbb049e6be8082217348234d/catppuccin.tmux#L19
I think this issue is absolutely worth having an option for, especially if people get the preset from TPM.

Agreed. With things like this, that are something that every user might want to handle differently, we should give a choice. c:

I've been using this fork, which does exactly this: https://github.com/rwxd/catppuccin-tmux

@RobertMenke I agree with @andreasgrafen on this. I think the best approach here is to do this kind of work in waves. I'm curious to hear some feedback on this question.

Is your current issue here that you want to flip the folders to the right hand side and the windows to the left hand side? If so that's a good place to start with customizing things.

Also, I have some pretty ambitious ideas here to allow anyone to run any arbitrary command on either side of the line including the middle if they want by adding calls to custom scripts that you maintain yourself.

@rogeruiz Exactly! Cool idea on arbitrary customization I’d just make sure that it’s documented to use caution running 3rd party code there for newcomers ;).

Alright, #22 should close this when it's merged into the default branch. If anyone would like to test this out, you should be able to set a new remote to my GH fork and then change branches to add-option-to-display-folders.
The commands to do that in your local Git repository should be:
cd ~/.tmux/plugins/tmux
git remote add rogeruiz https://github.com/rogeruiz/tmux.git
git fetch --all
git checkout add-option-to-display-folders

Afterwards, you can follow the documentation in the README.md to turn on the feature. Remember to source your Tmux configuration file when you update it if you're in a session.
When you're done, you can remove the remote and go back to the default branch with the following:
cd ~/.tmux/plugins/tmux
git remote rm rogeruiz

@nekowinston Does @rogeruiz 's PR adequately address this issue from your point of view?


[ERROR-1146] Table 'db.triggers' doesn't exist

Project: Sharding-proxy
Version: v4.0.0-RC3
Question
Connect to sharding-proxy using navicate tool, and query data by double clicking table, got error.

Hi, the information you provided is not enough. Please follow the issue template and fill necessary information.

Will close soon if no response any more

@terrymanu I just want to get the table's ddl information from navicate tool by clicking table. it's equal to that "show create table test_update", but it's ok from sharding-proxy CLI.

Can you change title for this, I think the problem is not Table 'db.triggers' doesn't exist, navicate cannot show table structure if xxx maybe better

Is your database include trigger?

no, it doesnt include trigger.Sent from my Huawei Mobile-------- Original Message --------Subject: Re: [apache/incubator-shardingsphere] [ERROR-1146] Table 'db.triggers' doesn't exist (#3310)From: Liang Zhang To: apache/incubator-shardingsphere CC: Myshiner ,Author Is your database include trigger?
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/apache/incubator-shardingsphere/issues/3310?email_source=notifications\u0026email_token=ALQCBELV4HLAXW3TVAI6M5DQQFAATA5CNFSM4JBWBHO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECD4WTI#issuecomment-545770317",
"url": "https://github.com/apache/incubator-shardingsphere/issues/3310?email_source=notifications\u0026email_token=ALQCBELV4HLAXW3TVAI6M5DQQFAATA5CNFSM4JBWBHO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECD4WTI#issuecomment-545770317",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]

Can you change title for this, I think the problem is not Table 'db.triggers' doesn't exist, navicate cannot show table structure if xxx maybe better

Closed for not change title


Clicking on the pay invoice button in 'my account' takes you to a blank page

When a customer logs into their account, clicks on the invoices link and attempts to pay an invoice, they are just taken to a page that as the invoice number and the order number. I expected them to be taken to a checkout page. This is the screen that is shown:

One reason could be that the order does not have a payment method selected.
Double check the Order billing information and fill in the payment method accordingly

Even when I add a payment method, it still just mentions the payment method but doesn't allow you to proceed:

I am not familiar with payment method "paynow".
It has been tested with bacs and PayPal.
Need to figure out more about Paynow payment methods.


Refactor

Update effect description (in FruitsEffects.GetEffectDescription) based on new coeffiecients before merge

Update effect description (in FruitsEffects.GetEffectDescription) based on new coeffiecients before merge

done


UnsoundPureKES and DirectSerialise API

Description
This introduces two changes that are needed for introducing mlocked KES into ouroboros-consensus and implementing a KES agent:

The DirectSerialise API, an abstraction that allows us to send key data over a socket connection directly from mlocked memory, without using any intermediate variables on the GHC heap that might leak secrets to disk
Reinstating the non-mlocked KES API as UnsoundPureKES; this is necessary for a minimally disruptive migration path in ouroboros-consensus. We will use this API to keep the existing code, loading KES keys from disk, available, while adding KES agent connectivity (which will use mlocked memory throughout) as an alternative. Until all non-mlocked KES usage has been phased out, we will need to keep the UnsoundPureKES API around.

Checklist

[x] Commit sequence broadly makes sense and commits have useful messages
[x] New tests are added if needed and existing tests are updated
[x] All visible changes are prepended to the latest section of a CHANGELOG.md for the affected packages.
New section is never added with the code changes. (See RELEASING.md)
[x] When applicable, versions are updated in .cabal and CHANGELOG.md files according to the
versioning process.
[ ] The version bounds in .cabal files for all affected packages are updated.
If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)
[x] Self-reviewed the diff

Is that a replacement for #317 or an extension of it? Before I waste time on reviewing both I'd like to know what the actual plan is.

This one includes the changes from #317, and, unlike #317, has already been rebased. So as long as you're fine having all the changes in a single PR, you can ignore #317 and just review this one.

I just noticed that Arbitrary instances for VerKeyKES and SigKES are gone. Could you please bring them back in this PR.

instance KESAlgorithm v => Arbitrary (VerKeyKES v) where
  arbitrary = deriveVerKeyKES <$> arbitrary

instance (KESAlgorithm v, ContextKES v ~ (), Signable v ~ SignableRepresentation)
      => Arbitrary (SigKES v) where
  arbitrary = do
    a <- arbitrary :: Gen Message
    sk <- arbitrary
    let sig = signKES () 0 a sk
    return sig

Here are the missing Arbitrary instances that should work:
instance KESAlgorithm v => Arbitrary (VerKeyKES v) where
  arbitrary = do
    bs <- genByteString (fromInteger (natVal (Proxy @(SizeVerKeyKES v))))
    case rawDeserialiseVerKeyKES bs of
      Nothing -> error "Impossible: the size of VerKeyKES is specified statically"
      Just vk -> pure vk

instance KESAlgorithm v => Arbitrary (SigKES v) where
  arbitrary = do
    bs <- genByteString (fromInteger (natVal (Proxy @(SizeSigKES v))))
    case rawDeserialiseSigKES bs of
      Nothing -> error "Impossible: the size of VerKeyKES is specified statically"
      Just vk -> pure vk

instance UnsoundPureKESAlgorithm v => Arbitrary (UnsoundPureSignKeyKES v) where
  arbitrary = unsoundPureGenKeyKES <$> arbitrarySeedOfSize seedSize
    where
      seedSize = seedSizeKES (Proxy :: Proxy v)

Here are the missing Arbitrary instances that should work:
instance KESAlgorithm v => Arbitrary (VerKeyKES v) where
  arbitrary = do
    bs <- genByteString (fromInteger (natVal (Proxy @(SizeVerKeyKES v))))
    case rawDeserialiseVerKeyKES bs of
      Nothing -> error "Impossible: the size of VerKeyKES is specified statically"
      Just vk -> pure vk

instance KESAlgorithm v => Arbitrary (SigKES v) where
  arbitrary = do
    bs <- genByteString (fromInteger (natVal (Proxy @(SizeSigKES v))))
    case rawDeserialiseSigKES bs of
      Nothing -> error "Impossible: the size of SigKES is specified statically"
      Just vk -> pure vk

instance UnsoundPureKESAlgorithm v => Arbitrary (UnsoundPureSignKeyKES v) where
  arbitrary = unsoundPureGenKeyKES <$> arbitrarySeedOfSize seedSize
    where
      seedSize = seedSizeKES (Proxy :: Proxy v)

This hinges on the assumption that raw serialization works the way it currently does, i.e., just pack the raw key data into the buffer in binary form. But this is not part of the DirectSerialise contract - we do promise that a valid value can be serialized, and that the serialization of a valid value will deserialize cleanly, but we do not guarantee that any sequence of bytes that has the right length will be a valid serialization of a valid value.
In fact, the guarantee does not hold for MockKES: here, the serialization format of a signkey is the serialization of the VerKey, plus a 64-bit word indicating the current KES evolution. If that evolution is larger than the maximum number of evolutions (as indicated by the type), then you get an expired key, and since the maximum number of evolutions is going to be very small compared to the maximum value of a 64-bit word, we would have to run a massive number of tests to reach those interesting code paths even once.
We can, however, generate a random seed and then go through unsoundPureGenKeyKES - seeds are, by definition, arbitrary binary data, so this will always produce a meaningful key. Downside is that the evolution will always be 0, so to get better coverage, we may have to evolve it a random number of times (up to the max evolution).

we do not guarantee that any sequence of bytes that has the right length will be a valid serialization of a valid value.

We can provide Arbitrary instance through serialization for individual KES algorithms, it doesn't have to be catch all for all algorithms. So, we can still use serialization to provide instances. However, if you have better ideas on how to reinstate Arbitrary instances, then by all means, it doesn't really matter how as long as we can still use it for testing things like serialization

However, if you have better ideas on how to reinstate Arbitrary instances, then by all means, it doesn't really matter how as long as we can still use it for testing things like serialization

IMO the simplest way would be to generate an arbitrary seed, use the unsound KES API to generate a sign key from that, and then derive a verkey and/or signature. This will work for any KES algorithm, and it's completely agnostic of the serialization format.
Note however that we already have machinery in place for testing ser/deser. I could of course rewrite all that to use Arbitrary instances and the unsound KES API, but we'd still need the withSK machinery for other tests, and once we remove the unsound KES API again, we'll just need to put all that code back.
I'll provide the Arbitrary instances; whether you also want the ser/deser tests rewritten is your call.

IMO the simplest way would be to generate an arbitrary seed, use the unsound KES API to generate a sign key from that, and then derive a verkey and/or signature. This will work for any KES algorithm, and it's completely agnostic of the serialization format.

Whatever route you think is the easiest way, go for it. We just to make sure we don't loose those Arbitrary instances, because they are needed for testing serialization


Maxsibilla/issue 164

@maxsibilla are you waiting on this PR for the bulk-reindex? Or we'll wait until the PSC team finishes their backend support?

@yuanzhou I am unsure if this is needed now after our discussion. For the bulk processing endpoint in the Ingest API we are just hitting the Entity API directly. This could be useful for us internally but we can abandon this otherwise

@maxsibilla I agree. I'll change this PR to a draft PR for now until after we finish all the bulk select/submit work. If it turns out we won't need it at all, we'll close it. Just don't want to lose your changes.


Broken link

[Enter feedback here]
Fix broken link in left-side menu: Resources -> Azure Roadmap
https://azure.microsoft.com/updates/?status=nowavailable,inpreview,indevelopment&category=identity,security&query=b2c

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

ID: fc5e148d-b7cf-92e7-4cc7-a65d20d037b6
Version Independent ID: 2ba6e31b-5899-f35a-0f08-d280110ded13
Content: Frequently asked questions (FAQ) for Azure Active Directory B2C
Content Source: articles/active-directory-b2c/faq.yml
Service: active-directory
Sub-service: b2c
GitHub Login: @garrodonnell
Microsoft Alias: godonnell

@miksh7
Thanks for your feedback! We will investigate and update as appropriate.

#reassign:@kengaderdus
Please migrate to ADO

@miksh7
Thanks for your feedback! We'll fix the broken link. #please-close


dont show anything in statusbar if window is below a certain size

is there a possibilty to have an empty statusbar if the window is small? like for example the side windows uve when u open coc explorer/ nerd tree or stuff like tagbar?
ive tried a config ive found somewhere else which does this sort of thing but just for one part of the statusbar
function! LightlinePercent() abort
    if winwidth(0) < 60
        return ''
    endif

    let l:percent = line('.') * 100 / line('$') . '%'
    return printf('%-4s', l:percent)
endfunction

this only shows the percentage when the windowsize is above 60 but with this function the % starts from the left. so when uve 100% it looks like it should but if its 99 or 9 it has 1 or 2 whitespaces next to it. so i stopped using it.
so is there a possibilty to get rid of all of this via a command or would i need to do this for every component i use in my active statusbar?
and if so- is there a wiki page or something like that which shows how the single modes are configured? like percentage seems to be line('.') * 100 / line('$') . '%'. but what is the code for mode, paste, filetype, lineinfo etc etc

See https://github.com/itchyny/lightline.vim#can-i-trim-the-file-format-and-encoding-information-on-narrow-windows

so is there a possibilty to get rid of all of this via a command or would i need to do this for every component i use in my active statusbar?

There is no way to do this in this plugin.

so id need to do it for every component i use. is there a list what these components perform?

so id need to do it for every component i use. is there a list what these components perform?
id need to know the functions for mode, filetype, lineinfo and percent
or is there a way to return these directly- like for example:
function! LightlinePercent() abort
    if winwidth(0) < 60
        return ''
    endif

    return 'percent'
endfunction

Well, from your config file: https://github.com/joe23rep/neovim/blob/master/config/lightline.vim, you have figured it out :)

I'm considering an alternative solution. How about this?
if winwidth(0) > 60
    let g:lightline = {...} " Your configuration.
else
    let g:lightline = {}
endif

@yhu266 But he did this separately for each component, which is not an elegant manner. I think it's better to get this done altogether, with a trigger or something...

Repeat the conditional statement in each component functions. Providing a way to control all the components based on the width leads to component allow/denylists or configuration key for the window widths to hide each components. Someone may want to hide components based on the buffer filetypes. Providing such ways to control visibility blows up the configurations of the plugin and sacrifices the performance.


DOCUMENTATION: Heroku plugin user-env-compile no longer exists

In the README.md file, the heroku plugin user-env-compile redirects to a more generic URL now which can confuse users new to heroku and labs plugins.

Looks like they’ve made this change:

The user-env-compile labs feature, which made the app environment available during build, will be retired. Instead, an additional third argument will be passed to the compile script of all builds run on Heroku:
bin/compile BUILD_DIR CACHE_DIR ENV_DIR

The third ENV_DIR argument is the location of a directory that contains a file for each of the application’s configuration variables. Additional details are available in the Buildpack API Dev Center article.


[Peek] Allow us to zoom in/out on previews using the mousewheel

Description of the new feature / enhancement
Currently, image previews are displayed pixel-to-pixel and video previews are stretched to fit the Peek window. I think this is a good default, but it'd be great to be able to zoom in/out of both using the mousewheel. And what would be even better, would be having the Peek window automatically increase/decrease in size as we do it.
Scenario when this would be used?
This would be great for everyone, and it's especially needed for those with large resolution monitors, or people who work with graphics/UI design who need to examine small images all the time.
Supporting information
No response

@dzgen21
Feel free to open a PR. Your contribution is welcome. Thank you for your work on this.
If you have any questions don't hesitate to ask them?

@dzeng21 Hey! I'm one of the PowerToys internal folks (alongside @crutkas).
I like introducing the ability to zoom in or out of the Peek window (with both "Ctrl + mouse scroll" and also trackpad pinch/un-pinch gestures). I don't think this should also resize the window though.
It looks like this functionality does exist for some file types (i.e. pdfs), but certainly not all. Maybe a contribution here could be scoped to getting this to work for images (& other similar file types)? Thoughts?

@ethanfangg Hi Ethan,
I think that is what I am going to implement (ability to zoom for images without resizing the window). I'm looking at ImagePreviewer.cs under peek/Peek.FilePreviewer/Controls/Previewers/MediaPreviewer. But I don't know where to start. I am a student and I'm contributing as part of a class assignment, so this is my first time.

consolidating peek windowing requests /dup https://github.com/microsoft/PowerToys/issues/29198


update from orginal

What issue does this PR address?
Does this PR introduce a breaking change?
Please check if the PR fulfills these requirements

[ ] The commit follows our guidelines
[ ] Unit Tests for the changes have been added (for bug fixes / features)

Other information:

agree


predicting memory requirements?

I'm fairly new to implementing neural networks and am using this library for the first time.  I'm doing text processing and so far I'm up to 5.6 GB of RAM required on a simple bigram.
The way I'm structuring the training data is like this:
{ input: {[inputWord]: 1}, output: {[outputWord]: 1 } }
so if it were "cat sat" the training data would look like:
{ input: {cat: 1}, output: {sat: 1} }
I have two questions:

what's a good way to predict memory requirements? Is there a back-of-napkin big-O?
is there a better way to structure the data in this particular case?

Thanks!

Would you be in a position to share your code?  Likely there is a memory leak that needs addressed.

Isn't that code going to make a new input neuron and output neuron for every single distinct word used? That might make a ton more neurons than expected if given a lot of words.

Just curious: Does your error rate drop fairly quick?

Also: How many words are we talking about training with?

To answer @AgentME, I believe you are totally correct.  I honestly don't know if a feed forward neural net (currently the main thrust of brain.js, but with others potentially on the way, like recurrent neural nets: https://github.com/harthur-org/brain.js/tree/recurrent/lib/recurrent) is the best mains of classification like you are currently doing.  It probably needs backpropagation, so convolutional networks (https://en.wikipedia.org/wiki/Convolutional_neural_network) come to mind as a proposed solution: http://cs.stanford.edu/people/karpathy/convnetjs/ for the time being.
I wish brain.js had said type of network, and eventually I plan on it having it, if the community agrees it'd be ideal.

The other option would be to try out the recurrent neural network, but it isn't even alpha yet.

After thinking about this more, you may be able to do something like this (note: pseudo code):
var alphabet = {};
' abcdefghijklmnopqrstuvwxyz'
  .split()
  .forEach(function(letter, index) {
    alphabet[letter] = index;
  });

function wordToIndexes(word) {
  word = word.toLowerCase();
  var result = [];
  for (var i = 0; i < word.length; i++) {
    result.push(alphabet[word[i]]);
  }
  return result;
}

{
  input: wordToIndexes(inputWord),
  output: wordToIndexes(outputWord)
}

I don't think it'd be ideal, but the lightweightness of the feedforward neural net may give you something you desire.

@robertleeplummerjr: I ended up doing something similar to what you did above. Splitting it into letters kept me from having to have thousands of inputs, which is where the memory leak was.
Closing as solved.


User is not able to scan QR code after the user taps on the Request button from the homepage by creating new  accounts with verified and unverified phone number.

Frequency: 100%
Repro on build version: Android Internal Release Build V1.25.1, iOS Test flight Release build V1.25.1
Repro on devices: iPhone 7 (13.3), iPhone 13 mini(15.1.1),Google Pixel 2XL (11.0), Samsung Galaxy A8+(8.0)
Pre-condition:

User must have installed the app
User must have completed the onboarding flow by tapping the “Create new account” button.

Repro Steps:

Tap on request button from homepage
Tap on the QR icon present in the top right corner in the request screen.
Scan the QR code and observe.

Current Behavior:  User is not able to scan QR code after the user taps on the Request button for verified and unverified phone number.
Expected Behavior: User should be able to scan QR code after the user taps on the Request button for verified and unverified phone number.
Investigation:

User is not able to scan QR code and also no error message appears.
User is able to send request by scanning QR code by restoring account having valid balance.
User is able to send request by adding address in request screen for new account created also.

Impact: Bad user impact as user is not able request by scanning qr code.
Attachment:
Verified number.mp4
Unverified number.mp4

Hey @MuckT,  We have verified this issue on Latest Android Internal Release Build V1.25.2, iOS Test flight Release build V1.25.2 & observed that the issue is reproducible on both iOS and android platforms. User is not able to scan QR code after the user taps on the Request button from the homepage by creating new accounts with verified and unverified phone number.
Devices: Google Pixel 2XL (11.0), iPhone 13 mini (15.1.1), iPhone 12 (14.7.1), Google Pixel XL(10.0)
Thanks..!!

@gnardini I've been able to confirm this behavior when requesting from a new account. All QR scans are treated as an outgoing send.

@ValoraQA this will be in 1.26.x.

Hey @MuckT  we have already commented on #1957 and observed that user is able to scan QR code after tapping on request button from homepage after creating new account


Fix: Remove unused dependency

This PR

[x] removes an apparently unused dependency

Thank you, @svpernova09!


Cloud Deployment Randomly Fails on Run terraform step

Description
When running an MVD cloud deployment via Deploy pipeline, the deployment randomly fails with a timeout on the Run terraform step.
See https://github.com/zeier/MinimumViableDataspace/runs/7473538770?check_suite_focus=true
azurerm_container_group.edc: Still creating... [29m30s elapsed] azurerm_container_group.edc: Still creating... [29m40s elapsed] azurerm_container_group.edc: Still creating... [29m50s elapsed] ╷ │Error: creating Container Group (Subscription: "***" │Resource Group Name: "rg-company1-demo4" │Container Group Name: "demo4-company1-edc"): polling after ContainerGroupsCreateOrUpdate: Future#WaitForCompletion: context has been cancelled: StatusCode=200 -- Original Error: context deadline exceeded │ │  with azurerm_container_group.edc, │  on main.tf line 59, in resource "azurerm_container_group" "edc": │  59: resource "azurerm_container_group" "edc" { │ ╵ Releasing state lock. This may take a few moments... Error: Process completed with exit code 1.
Note: deployment runs successfully if participants are deployed sequentially, see https://github.com/zeier/MinimumViableDataspace/actions/runs/2730321522.

Issue could be related to using the latest Ubuntu version

The issue cannot be reproduced with the latest deploy.yaml, it might have been caused by using an unstable runner on a branch that was used.


Unable to get property 'top' of undefined or null reference

Hi Jsor/community,
I use jcarousel.min.js to display carosel in a webpart sharepoint 2013 but I have this error:"Unable to get property 'top' of undefined or null reference "

Can you please setup a reproducible test case?


chore: update templates

ansys-templates changes

add doc-changelog and doc-deploy-changelog (release notes version)
add-license-headers pre-commit hook added
updated years in license headers for a few files

src/ansys/templates/python/common changes

change dependabot frequency to weekly
update dependency versions in .pre-commit-config.yaml & add add-license-headers hook
updated test_metadata file to get version from package
make tox.ini use python 3.9-3.12

ci_cd.yml updates

add doc-changelog, doc-deploy-changelog, doc-index-dev, doc-index-stable, release-pypi-private, release-pypi-public, and release-github jobs
change python range from 3.7 to 3.10 -> 3.9 to 3.12
upload coverage results for each OS in ansys/actions/tests-pytest

doc updates

add -W --color --keep-going to command in Makefile
made separate examples.rst file
condensed README.rst file (moved information from README to separate "getting started" guide in docs)
changed vale folder structure for new version

conf.py updates

updated cname to be product.docs.pyansys.com
added switcher_version variable
added linkcheck_ignore list for repo URL, CNAME, and pypi links

pyproject.toml updates

added upper limit to requires-python range
changed authors & maintainers names to "ANSYS, Inc." and email to the pyansys core email
updated doc dependencies
added towncrier info

misc changes

changed python ranges in all cookiecutter.json files to be 3.9 - 3.12
in pyansys-advanced:

added the doc-changelog files & new doc files
updated the pypi links & consolidated info in README.rst

Here is a sample repo that I created using this branch and running ansys-templates new pyansys-advanced. The product name was template, and library was sandbox: https://github.com/ansys-internal/pytemplate-sandbox

@iazehaf - you might need to update your documentation build to add the changelog.rst file. This is what is failing in your status

Cannot propose a change myself (out of reach through Github GUI) but could you also change the maintainers from
maintainers = [
    {name = "PyAnsys developers", email =<EMAIL_ADDRESS>]

to
maintainers = [
    {name = "ANSYS, Inc.", email =<EMAIL_ADDRESS>]

Came across that just now as I was review a project and it seems that "ANSYS, Inc" should be used for maintainers, cf
https://dev.docs.pyansys.com/getting-started/administration.html#technical

@klmcadams Last comment I promise ! Could you also update the doc/.vale.ini to avoid using Vale.Terms by default ?
Vale.Terms = NO

Thanks for the great work in here, @klmcadams.


Wrong Data. Lost Data, Null Data

I have an excel file. I import to get data from this file. However, to line 1476, I lost data and wrong data.
I downgraded another version but it still doesn't work.
Flutter doctor:

My Project:

Excel File:

Red: Data null.
Yellow: Skip row data between previous row and next row.
Grey: Lost Data.
Error:

***Please help me!

In case you haven't updated. Try using the newest commit in this repo. The PubDev version has not been updated yet.
Pull #240 should address this issue!


#678 categorical validation bug

Coverage increased (+0.05%) to 75.041% when pulling f1c78244a43f08b21e5f60b7c7b6b5b0ba350f49 on #678-categorical-validation-bug into a9b8869b255957ddf932ef11b066b0fb4570bd6b on master.


Generic shares_base module and specific s3_datasets_shares module - part 9 (share db repositories)

Feature or Bugfix

Refactoring

Detail
As explained in the design for #1123 and #1283 we are trying to implement generic datasets_base and shares_base modules that can be used by any type of datasets and by any type of shareable object in a generic way.
This PR includes:

Split the ShareobjectRepository from s3_datasets_shares into:
- ShareobjectRepository (shares_base) - generic db operations on share objects - no references to S3, Glue
- ShareStatusRepository (shares_base) -  db operations related to the sharing state machine states - a way to split the db operations into smaller chunks
- S3ShareobjectRepository (s3_datasets_share) - db operations on s3 share objects - used only in s3_datasets_shares. They might contain references to DatasetTables, S3Datasets... They are used in the clean-up activities and to count resources in environment.

Adapt S3ShareobjectRepository to S3 objects. For some queries it was needed to add filters on the type of share items retrieved, so that if in the future anyone adds a new share type the code still makes sense. To add some more meaning, some functions are renamed to clearly point out that they are s3 functions or what they do.

Make ShareobjectRepository completely generic. The following queries needed extra work:

ShareObjectRepository.get_share_item - renamed as get_share_item_details
list_shareable_items - split in 2 parts list_shareable_items_of_type + paginated_list_shareable_items: the first function is invoked recursively over the list of share processors, instead of querying the DatasetTable, DatasetStorageLocation and DatasetBucket we query the shareable_type. The challenge is to get all fields from the db Resource object that all of them are built upon. In particular the field itemName does not match the BucketName (in bucket) or the S3Prefix (in folders). For this reason I added a migration script to backfill the DatasetBucket.name as DatasetBucket.S3BucketName. and the DatasetStorageLocation.name with DatasetStorageLocation.S3Prefix. paginated_list_shareable_items joins the list of subqueries, filters and paginates.
In verify_dataset_share_objects instead of using list_shareable_items, I replaced it by ShareObjectRepository.get_all_share_items_in_share which does not need tables, storage, avoiding the whole S3 logic and avoiding unnecessary queries

Remove S3 references from shares_base.api.resolvers. Use DatasetBase and DatasetBaseRepository instead. Remove unused ShareableObject.

I had some problems with circular dependencies so I created the ShareProcessorManager in shares_base for the registration of processors. The SharingService uses the manager to get all processors.

Missing items for Part10:

Lake Formation cross region table references in shares_base/services/share_item_service.py:add_shared_item
remove table references in shares_base/services/share_item_service.py:remove_shared_item
remove s3_prefix references shares_base/services/share_notification_service:notify_new_data_available_from_owners
RENAMING! Right now the names are a bit misleading

Relates

#1283
#1123
#955

Security
Please answer the questions below briefly where applicable, or write N/A. Based on
OWASP 10.

Does this PR introduce or modify any input fields or queries - this includes
fetching data from storage outside the application (e.g. a database, an S3 bucket)?

Is the input sanitized?
What precautions are you taking before deserializing the data you consume?
Is injection prevented by parametrizing queries?
Have you ensured no eval or similar functions are used?

Does this PR introduce any functionality or component that requires authorization?

How have you ensured it respects the existing AuthN/AuthZ mechanisms?
Are you logging failed auth attempts?

Are you using or adding any cryptographic features?

Do you use a standard proven implementations?
Are the used keys controlled by the customer? Where are they stored?

Are you introducing any new policies/roles/users?

Have you used the least-privilege principle? How?

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Testing

[ ] list shares in inbox and outbox
[ ] get share object (open a share)
[ ] list S3 consumption details
[ ] ❗ list shared items (list-shareable-items query with shared=True)
[ ] ❗ click edit, and it also lists the not-yet-shared items (list-shareable-items query with shared=False)
[ ] add items and approve share - share successful (check all processors)
[ ] revoke items - successful
[ ] verify items from share request - verify successful
[ ] ❗ verify items from dataset view (verify_dataset_share_objects)
[ ] Try deleting dataset with shared items throws error message
[ ] Deleting dataset with empty share requests, deletes items and share requests
[ ] Tested migration script with database with existing datasets = bucket names updated
[ ] create new dataset, DatasetBucket.name = bucketname