add getpgid call

Add a getpgid function to nix.
Argument is required, either pass in None or Some(pid_t). It should have the same behavior
as the libc one.

The build failure seem not related to this PR?

:umbrella: The latest upstream changes (presumably #415) made this pull request unmergeable. Please resolve the merge conflicts.

Hi @kiddkai, now that CI is stable again, can you rebase on master to kick off the tests again?

no problems, will do that today

Hi @posborne , build passes now! 🔥

@kiddkai Thanks, I think I'm good with this and will merge.  We are on a documentation push now, so if you want to add docs (see https://github.com/nix-rust/nix/pull/449 for some examples) on the function that would also be greatly appreciated.
@homu r+

:pushpin: Commit ac51932 has been approved by posborne

:zap: Test exempted - status


Not clear whether schema version 1.9 is supported

1.9 is available at https://developer.microsoft.com/json-schemas/teams/v1.9/MicrosoftTeams.schema.json - is 1.8 still the latest supported version?

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

ID: 0f94a488-d636-92b3-21eb-c88744c8f272
Version Independent ID: 7b3413f4-9ade-accf-5cb2-83fead11a32a
Content: Manifest schema reference - Teams
Content Source: msteams-platform/resources/schema/manifest-schema.md
Product: msteams
GitHub Login: @laujan
Microsoft Alias: lajanuar

@siljemda As mentioned in documentation, at this point the supporting version is 1.8.

Ok, thanks.


Only pass info when resolver asks for it

I was thinking of making the API slightly easier for resolvers
so instead of having:
@strawberry.type
class Query:
    @strawberry.field
    def user(self, info) -> User:
        return User(name="Patrick", age=100)

we could have this:
@strawberry.type
class Query:
    @strawberry.field
    def user(self) -> User:
        return User(name="Patrick", age=100)

the difference is minimal, but it should make the library slightly more user-friendly 😊

How about context variables? https://docs.python.org/3/library/contextvars.html#module-contextvars
It would require 3.7+ but that wouldn't be a bad thing for such a young project.
from strawberry import context, field

@field
def resolver(self):
  info = context.get().info

@sarendsen interesting, I'm not familiar with contextvars, at a quick glance it looks a bit like flask's request object, am I right?

The idea is similar. But context vars being async safe.

@sarendsen I see, I'm a bit conflicted, to be honest, I like the idea, but it feels a bit magic 😊
Do you have a strong opinion on this? I'd personally chose the function params if I have to :)
@jaydenwindle @marcoacierno @mtszsobczak what do you think?

Hey, context vars look cool, but as you mentioned a bit magic.
I would also prefer function params as they look easier to reason about and test + the flow of information is explicit. But I didn't put much time for thinking about the context vars and using global context concept. I am curious to see how both approaches would scale taking into account testing :cat:

I think the magic feeling lies in the fact that its a quit new python feature?
I actually quit like it and expect it to see it a lot more in the async world.
Heres a more complete example that hopefully shows that the use is actually not that magical.
@dataclasses.dataclass
class Context:
    schema: 'Schema'
    request: Optional[Any] = None
    variable_values: Optional[Any] = None

context: contextvars.ContextVar[Context] = contextvars.ContextVar('context')

from strawberry import context, field, type

@type
class User:

    @field
    def name(self):
        schema = context.get().schema

I think the magic feeling lies in the fact that its a quit new python feature?

it is more about having request information coming from a "global" variable, if that makes sense
I'm going to read a bit about this, I'm +1 on using new features, but not sure in this case we really need it 😊


[editor]: Support ultraman bot/User_db/Plans/737622248269152396 in preview

Please add support for .ultraman bot/User_db/Plans/737622248269152396 files to the editor preview.
Generated by adamraichu.zip-viewer

Could you link to an example of this file please? Or perhaps what "ultraman bot" is?
Also, I'm not sure I will be able to support this kind of file (as my setup is currently) as the file name didn't have a recognizable file extension.

[{
"resource": "/d:/ultraman bot/.venv/Lib/site-packages/pip/_vendor/rich/jupyter.py",
"owner": "generated_diagnostic_collection_name#1",
"code": {
"value": "reportMissingImports",
"target": {
"$mid": 1,
"external": "https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportMissingImports",
"path": "/microsoft/pyright/blob/main/docs/configuration.md",
"scheme": "https",
"authority": "github.com",
"fragment": "reportMissingImports"
}
},
"severity": 4,
"message": "Import "ipython.display" could not be resolved",
"source": "Pylance",
"startLineNumber": 89,
"startColumn": 14,
"endLineNumber": 89,
"endColumn": 29
}]

Sorry, but the file does not have a proper file extension and so I cannot add it to the preview as my code is written. However, see #25 for a possible future solution.


Network Bandwidth NodePool Requirements

Description
What problem are you trying to solve?
We are seeing some issues with network bandwidth on AWS nodes.
We would like to specify upper or lower bands of network bandwidth. Similarly to the way that instance-generation is specified
        - key: karpenter.k8s.aws/instance-generation
          operator: Gt
          values: ["2"]

This would allow us to move away from highly specific instance selection using karpenter.k8s.aws/instance-family key and would save us from potentially running out of available nodes from AWS.
How important is this feature to you?
Very important as running out of available nodes from AWS is not a viable option

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

There is already a well-known label for that: karpenter.k8s.aws/instance-network-bandwidth


meaning of word added

Please review and merge this. thank you

Good work @pranatimittal
Thank you for contributing


Develop a Video-Lesson and Assessment Flow for LMS

Description
Create a React page for an LMS system that provides a seamless learning experience by:

Embedding YouTube videos sequentially in a vertical scroll layout with no additional video details (e.g., title, channel, suggested videos).
Automatically scrolling to the assessment once the YouTube video finishes.
Displaying the assessment related to the completed video below the video frame.
Allowing users to manually proceed to the next video and assessment using a "Next Task" button.
Using dummy JSON data for now, which can later be replaced with API integration.
Ensuring smooth vertical scrolling, clean UI, and accessibility using ShadCN components.

Requirements

YouTube Video Playback with Hidden Details

Embed YouTube videos using the iframe player.
Configure the iframe to hide video details like title, channel name, and suggested videos by adding parameters to the URL .
Detect when the YouTube video finishes and automatically scroll to the corresponding assessment section.
Use dummy JSON to load video URLs and metadata (e.g., title, description).

Assessment Section

Display the assessment related to the completed video directly below the YouTube frame.
Include various assessment types:

Multiple-choice questions: Options with correct answer validation.
Short answer questions: Text input for users.

Provide interactive feedback for user responses.

Manual Navigation

Provide a "Next Task" button to manually scroll to the next section.
Users can only proceed to the next video and assessment after completing the current assessment.

Vertical Scroll Flow

Each video and its assessment should appear in a vertical scroll layout.
Ensure smooth transitions between sections during auto or manual scroll.

UI and Accessibility

Use ShadCN components for consistency and style.
Support dark mode with a toggle.
Ensure accessibility (ARIA roles, keyboard navigation, and feedback for all interactions).

Dummy Data

Use a JSON object to simulate YouTube video and assessment data.
Ensure the structure is easy to replace with APIs in the future.

Acceptance Criteria

YouTube Video Section

Videos load in a clean iframe player without showing video titles, channel details, or suggested videos.
Automatically scrolls to the assessment when the video ends.
Users can also manually navigate using the "Next Task" button.

Assessment Section

Assessments are displayed immediately after their respective videos.
Validations provide immediate feedback for user inputs.
Users must complete the assessment to unlock the next video and assessment.

Flow and Navigation

Videos and assessments appear sequentially in a vertical scroll layout.
Navigation between tasks is smooth and intuitive.

Dummy Data

JSON contains video URLs, titles, and related assessment details.
All interactions dynamically update the JSON state.

Performance and Responsiveness

The page is responsive and works well on desktop and tablets.
Video playback and scrolling transitions are smooth without noticeable lag.

Additional Notes

Hiding Video Details: Use YouTube's embed parameters  to hide UI details like controls, video info, and related videos.
Design should be user-friendly, intuitive, and minimalistic.
Handle edge cases, such as:

No videos available: Display a message like "No lessons available. Please check back later."
Unanswered assessment: Prevent navigation until the user attempts the assessment.
Failed assessment: Allow retry for incorrect answers with feedback.

Include comments in the code to help developers integrate real API data in the future.

Hey @akashreactdeveloper @sidrao2006, Could you please assign this issue to me?

I want to help you out to solve this issue  if @KumarSaiUggina  complete.Please ask @akashreactdeveloper  the update on this

@rkatara100 , We have assigned this task to @KumarSaiUggina, if you also want to solve this issue then you can try, we will consider the best solution from our end.

Hey @akashreactdeveloper @sidrao2006, Could you please assign this issue to me?

@KumarSaiUggina, it has been over a day since this issue was assigned to you. If we do not receive any updates from you today, we may proceed with reassigning the issue.

@KumarSaiUggina, it has been over a day since this issue was assigned to you. If we do not receive any updates from you today, we may proceed with reassigning the issue.

Yes, you can assign others. I will work in parallel. I need some time.


Missing Blocks After RPC Failure, Resolved by Pruning DB

We are experiencing an issue where a number of blocks are missing from the blockchain after encountering RPC failures. We are utilizing load balancer for our RPC connections.
Summary:

RPC calls fail at specific block heights (RPC was down).
The blocks at these heights are missing from indexer, after switching to good RPC (without pruning the db).

Fix: Pruning the database and restarting the indexer successfully recovered the missing blocks.
PS: The load balancer doesn't seem to be switching to other RPC URL after one fails at a particular request.
Related: https://github.com/ponder-sh/ponder/issues/974 and https://github.com/ponder-sh/ponder/issues/861

Thanks for opening. You're correct that the loadBalance transport does not "skip" an inner transport if it starts returning errors. We're working on a new transport that combines the behavior of loadBalance and Viem's fallback transport to handle this scenario.
Regarding the missing blocks issue, it would be helpful to understand how specifically the RPC was "down". If it was fully down (eg 500 status codes) it seems unlikely that Ponder would continue marking block ranges as cached. However, if it was serving incorrect data (e.g. incorrect block.logsBloom or incomplete eth_getLogs responses) that could cause the issue you're seeing. Any additional info you have here would be helpful.
Also, if you happen to still have the "corrupted" database around, it would be helpful to inspect it. Let me know if you do and perhaps you could DM me a connection string (or database file if using SQLite) on Telegram.

Thanks for opening. You're correct that the loadBalance transport does not "skip" an inner transport if it starts returning errors. We're working on a new transport that combines the behavior of loadBalance and Viem's fallback transport to handle this scenario.
Regarding the missing blocks issue, it would be helpful to understand how specifically the RPC was "down". If it was fully down (eg 500 status codes) it seems unlikely that Ponder would continue marking block ranges as cached. However, if it was serving incorrect data (e.g. incorrect block.logsBloom or incomplete eth_getLogs responses) that could cause the issue you're seeing. Any additional info you have here would be helpful.
Also, if you happen to still have the "corrupted" database around, it would be helpful to inspect it. Let me know if you do and perhaps you could DM me a connection string (or database file if using SQLite) on Telegram.

Thanks for the insight on the load balancer behavior. We're looking forward to the new transport that addresses this.
To clarify the RPC issue, it was indeed completely down, returning 500 status codes. We also observed errors in the Ponder logs, specifically messages like: "BlockNotFoundError: Block at hash .... could not be found". This seems to suggest that Ponder was attempting to process blocks but couldn't access them, and skipped them (blocks) after we changed RPC.
Unfortunately, we no longer have access to the corrupted database. We performed the pruning operation as a way to quickly recover and resume normal operations.

Got it, thanks for the response. Without the corrupted database, there's not much we can do. However, we are working on an improvement to the internal realtime sync engine, and before we ship that we will improve testing for the "temporary 500" case to make sure we aren't marking invalid data as cached/valid.
Closing for now. If this happens again, please keep the corrupted database so we can inspect it, and re-open. Thanks again for reporting, every issue helps.

I also encountered last week a case of corrupted DB. It happened after a computer crash while project was running, I guess so data have been corrupted and it is not able to self recover.
On a live deployment on railway, we didn't encounter any issue, while on my local DB, I cannot restart the project as it keep crashing on this corrupted block.
Only option I see is whipping my local .ponder/sqlite storage, to restart a full sync.
Suggestion: it would be nice to have a cli tool to allow pruning only from a specific block number instead of having to prune everything manually.
I still have the corrupted DB, and I can share you access to the private repo to reproduce the issue @0xOlias if that's interesting to you?


chore(docs): Remove npm references, add Docker install instructions

This PR removes references to installing @aztec/aztec-sandbox and @aztec/cli via NPM in favor of installing via Docker. It also updates notes about types imports for the token contract contract tutorial and the token reference in the "writing a dapp" tutorial.
Note: recent additions broke the Quickstart guide. The docs got out of sync with the latest version because docs are always tested against master. This should be fixed with the new release going out tomorrow morning, so I'm not bothering to change it now, but we should test the Quickstart page again once the new release goes out. @catmcgee do you think we should implement docs versioning to help prevent this from happening? It will increase the maintenance overhead of the docs.
closes #3540 #3541
Checklist:
Remove the checklist to signal you've completed it. Enable auto-merge if the PR is ready to merge.

[ ] If the pull request requires a cryptography review (e.g. cryptographic algorithm implementations) I have added the 'crypto' tag.
[ ] I have reviewed my diff in github, line by line and removed unexpected formatting changes, testing logs, or commented-out code.
[ ] Every change is related to the PR description.
[ ] I have linked this pull request to relevant issues (if any exist).

closing in favor of https://github.com/AztecProtocol/aztec-packages/pull/3587


Issue Reporting sidebar covers the scroll bar of Timing diagram

Describe the bug
Their is Issue Reporting sidebar the right corner in the simulator when we place Timing diagram in the simulator the issue Reporting sidebar cover the scroll bar  of Timing daigram
To Reproduce
Steps to reproduce the behavior:

Go to 'circuitverse.org'
Click on 'simulator'
Add  'Timing Diagram'
See error

Screenshots

Are you working on this issue? (Yes/No)
Yes

The report button would be moved to a new place, so this can be closed?
@nitin10s @satu0king

Which place would it be moved to?

Which place would it be moved to?

Should we have it right where it is, or inside a dropdown?

If  we want to place in dropdown then why I made the sliding  mechanism  this mechanism  looks attractive  as nitin  said    before creating  it,  ask all community  to where to place it  😅 that's  the last option  I can say

I was wanting it to be placed right where it is with some z-index properties so it hides behind the timing diagram.

This is made to stand out basically so as to make it more discoverable

Okay :)

Fixed in new UI


Add rendering for skos:example

skos:example is a good place for inline code examples within Ontology documentation.
e.g. https://github.com/CSIRO-enviro-informatics/geosparql-ext-ont/blob/master/geox.ttl

Addressed in release 1.8.
Windows binary not rebuilt.

This is demonstrated in a now updated GeoX Ontology: http://linked.data.gov.au/def/geox

Addressed in release 1.8.
Windows binary not rebuilt.

@jyucsiro is it trivial to rebuild the windows binary?

@dr-shorthair it's trivial for me to rebuild it. See attached zip file below.
it would be worth thinking about using a continuous build process like Travis. It supports building windows binaries - see https://docs.travis-ci.com/user/reference/windows/
pylode.zip


[FEATURE] apiclient-next - support for integrations

Description
The current API Client requires a refresh_token in the session storage https://github.com/shopware/frontends/blob/main/packages/api-client-next/src/index.ts#L150
this is fine for password grant, but client credentials does not have a refresh token.
Use Case
Use integration instead of a user
Proposed Solution
No response
Alternatives Considered
No response
Additional Context
No response

This is fixed in #560


Add script to configure access point and add as option to installer script

Could this script also be used to set up a custom captive portal for newly registered devices on the WiFi? If users log in with their own mobile device, they could be directed directly to the game controls.

Request from https://github.com/iavofficial/IAV_Distortion/issues/75#issuecomment-2299915068_ moved to a new issue, see #138


feat(ssa): Various mem2reg reverts to reduce memory and compilation time

Description
Problem*
Resolves #6267
Pushing as a draft to see bytecode size regressions we get.
Summary*
This version for the code in #6267 took ~2 gigs of ram and 4.66s to compile. The code on master takes ~20 gigs and 94.3s to compile. The noir-contracts workspace with this mem2reg takes ~20 gigs of ram and 94.3s to compile vs. >70 gigs of ram and 4.5 min to compile w/ the mem2reg on master.
Additional Context
Documentation*
Check one:

[X] No documentation needed.
[ ] Documentation included in this PR.
[ ] [For Experimental Features] Documentation to be submitted in a separate PR.

PR Checklist*

[X] I have tested the changes locally.
[X] I have formatted the changes with Prettier and/or cargo fmt on default settings.

The only failures are the aztec-nr and noir-edwards external checks which are failing due to reasons outside of this PR (such as switching assert_max_bit_size to use a generic).


EPIC - Bootstrap a reimagined E2E testing strategy on KIE Tools, powered by PlayWright and Storybook

Tasks

[x] https://github.com/kiegroup/kie-issues/issues/172

Although it contains only one issue, this epic is done. During his work on the new tests for the Boxed Expression Editor, Luiz took the opportunity to research and document the process of creating and maintaining a great testing strategy for our UI components. During this research, Luiz:

Hosted a ~1 hour presentation to the BAMOE Tools team on the first team's retro (Sep 11th) (Slides --> https://ibm.ent.box.com/s/kkzfst38xstiz8ijrw9gio6zbg1cnumr)
Shared a document with the BAMOE team (Box note --> https://ibm.ent.box.com/notes/1319975694883?s=0bl6hqstfzjnxck2vdob06ev262oxw3t)
Published a version of the Storybook to receive feedback --> https://ljmotta.github.io/kie-tools-demos/?path=/docs/boxed-expressions-overview--overview

We can already see the impact of this work simply by looking at Buildkite's statistics. Luiz added a ton of tests to the Boxed Expression Editor, which are stable, fast, and hopefully easy to maintain :)
See the first build including the new tests:

https://buildkite.com/organizations/kie-tools/analytics/suites/kie-tools-main?branch=main

Although bootstrapping this strategy is done, the work on E2E tests has just begun. All work that is related to the E2E tests on KIE Tools is going to be tracked by a Continuous improvement EPIC. See the one for this half year (2H2023) --> https://github.com/apache/incubator-kie-issues/issues/555


Vim9: 'magic' should be ignored

Describe the bug
In Vim9 script, 'magic' is not ignored; maybe it should.
To Reproduce
Run this shell command:
vim -es -Nu NONE -S <(cat <<'EOF'
    vim9script
    set nomagic
    setline(1, 'aaa')
    s/./b/g
    :%p
    qa!
EOF
)

It outputs aaa:
aaa

And this error was raised:
E486: Pattern not found: .

Expected behavior
It outputs:
bbb

And no error is raised.
Environment

Vim version: 8.2 Included patches: 1-2165
OS: Ubuntu 16.04.7 LTS
Terminal: xterm(362)

Additional context
Similar to 'gdefault', for a plugin's author, 'magic' is one more pitfall to be aware of.  You have to include \m in your pattern to be sure that it's parsed as if 'magic' has its default value.

True, it's possible to get rid of this backwards-compatibility-breaking behavior.  It's not that easy though, patterns can overrule 'magic' and that must still work.


[TechDocs CLI] awsS3 publisher does not support AWS_CONFIG role_arn, preventing sts:AssumeRole and publishing to bucket

Hey there,
The awsS3 publisher does not support loading a profile from the AWS config.
Our setup uses gitlab-ci runner pods in an EKS cluster. Each k8s pod is assigned an IAM role through kube2iam. That role can then use AWS STS to assume another role in workload accounts.
I want to push docs for ongoing development projects to a s3 bucket that resides in the dev workload AWS account, and docs for the main branches (deployed to production) in the prod workload account.
For historical reasons the runners run in a dedicated CI AWS account and not in the workload accounts. So in order to map profile names to the ARNs to impersonate, I add a .aws/config file in my running images that contains a map of profile names and ARNs like this:
[profile dev]
role_arn = arn:aws:iam::<dev_account_id>:role/cicd/delegated-cicd-role
credential_source = Ec2InstanceMetadata
[profile prod]
role_arn = arn:aws:iam::<prod_account_id>:role/cicd/delegated-cicd-role
credential_source = Ec2InstanceMetadata

And when I set the AWS_PROFILE env variable to dev or prod, the AWS SDK usually loads the adequate role_arn and does the impersonation for its authentication.
Except it seems, after investigating, that the AWS SDK for JavaScript that techdocs uses does not support that.
 Sharing so other people don't spend 1 day figuring it.
export AWS_PROFILE=$CI_ENVIRONMENT_NAME # will be dev or prod
export AWS_SDK_LOAD_CONFIG=1
export ARN_TO_IMPERSONATE=$(fgrep -A100 '[profile '${AWS_PROFILE}']' /root/.aws/config | grep role_arn | head -n 1 | awk '{print $NF}') # this is causing bleeding in my eyes
touch /root/.aws/credentials
techdocs-cli generate --no-docker
techdocs-cli publish --publisher-type awsS3 --awsRoleArn $ARN_TO_IMPERSONATE --storage-name $TECHDOCS_BUCKET_NAME --entity ${ENTITY_NAMESPACE}/${ENTITY_KIND}/${ENTITY_NAME}

Suggested fix would be to add support for a --awsS3.profile parameter to techdocs-cli that would make use of AWS.SharedIniFileCredentials. I lack skill in JS to hack this properly but I'd be glad to contribute later if no one addresses it.
Thanks :)
Matcha

We in @backstage/techdocs-core do not use AWS internally so we are not in the best position to investigate this issue further.
It would be great if anyone from the community who uses Backstage within AWS is able to investigate this and contribute a fix if possible. We can support with PR reviews and getting the fix in.


Update Installation via Live ISO with Quick Start Guide instructions

Edit or replace Installation via Live ISO with Install Option1: Deploy on a Clean Ubuntu Host or VM from Quick Start Guide.

Branched and ready for review!


Implement $EQ, $NE in query language

Support syntax for equality operator ($EQ) and non-equality operator ($NE).
The syntax for equality is like this:
{ "<field>": { "$EQ": "<value>" } }

The syntax for non-equality is like this:
{ "<field>": { "$NE": "<value>" } }

Can you add a bit more detail?

@joshuawilson I have updated the description.

thanks


Add --skip-ssl option to post install to skip auto generation of SSL …

…certificate
This fixes https://github.com/Comcast/traffic_control/issues/1179

I'll fix, need a day or so

perltidy went crazy on me here- any suggestions on how to adjust @dangogh ? I copy and pasted the lines as is from the traffic-control-cdn developers page

@limited this should be covered by #126,  don't you think?

Not yet, but Peter suggested adding a question to the input in 126 to allow a user to skip it. I would support that approach over this PR.

I think this should be closed -- postinstall now has -defaults option to write out a cfg file with all default questions/answers.   And -a -cfile=<file> to load all from the file with no user input.
To skip cert generation,  change this answer to "no":
   "/opt/traffic_ops/install/data/json/openssl_configuration.json" : [
      {
         "Do you want to generate a certificate?" : "yes",
         "config_var" : "genCert"
      },

@limited I think this can be closed per @dangogh's comment above


Address preset only creates a blank node

iD v3, 01d8ce2.
Creating a new node using the Address preset, or changing a node to the Address preset, does not populate the address field box as it should.

@rivermont Thanks, this is #6838.


fill out zoneEgress/Ingress Insight types

What happened?
See https://github.com/kumahq/kuma-gui/pull/1671

@johncowen is working on related PRs to this that will fix this


[Question] how to convert an already quanted model?

Could already quanted model like: https://huggingface.co/01-ai/Yi-34B-Chat-4bits could be directly compiled in mlc_llm?
I try directly do --quant option like q0f16 or q4f16, but it report some layer is missing like:
ValueError: The following extern parameters do not exist in the weight files:
  model.layers.0.mlp.down_proj.weight
  model.layers.0.mlp.gate_proj.weight
  model.layers.0.mlp.up_proj.weight
  model.layers.0.self_attn.k_proj.weight

Meanwhile I think maybe mlc_llm could provide a simple serving command which auto do the convert-weight staff? For other project like vllm, it could directly launch serving from already downloaded hugginface models, which is very convenient for the beginners.

in this case, we need to build a weight mapper that maps the quantized weight into the mlc recognized format by adding a quantization convert scheme here https://github.com/mlc-ai/mlc-llm/tree/main/python/mlc_llm/quantization


shared: fix autofocus behavior if something else is already focused

This should fix the login dialog test failing if it starts typing around 300ms after being initialized, and should stop autofocus from taking over if something else is already focused.
However, this isn't quite functional yet:
If e.g. the search button is clicked, it takes focus. I suspect that having one autofocus directive for both
"page load" focus and "new element appeared" focus might not be the best move.
Also the 300 ms timeout is a bit arbitrary :)
example failure:
 FAIL  projects/core/src/lib/pages/login/login-form/login-form.component.spec.ts (5.35 s)
  ● LoginFormComponent › triggers login method

    expect(jest.fn()).toHaveBeenCalledWith(...expected)

    Expected: "my_username", "p@ssw0rd"
    Received: "my_username@ssw0rd", "p"

    Number of calls: 1

Don't think this is what we want. We actually do want (in certain cases) new elements to take focus, search being a good example. Checking if something else has focus won't work since a lot of things can have focus.

yeah. The alternative would be to tighten the 300ms tolerances. I'll see if it's possible to focus an element the moment it is mounted (or whatever Angular uses as term)

Superseded by #280.


Package breaks tests when used with ES6 imports

When I try to use this package inside an ES6 typescript project, I receive the SyntaxError: Cannot use import statement outside a module (see error below). I now solved this by mocking the react-github-btn package but wanted to let you know that something goes wrong.
Test suite failed to run

    Jest encountered an unexpected token

    Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.

    Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.

    By default "node_modules" folder is ignored by transformers.

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
     • If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/configuration
    For information about custom transformations, see:
    https://jestjs.io/docs/code-transformation

    Details:

    /home/ricks/Development/personal/cra-test-test/react-github-btn-cra-ts-test/node_modules/react-github-btn/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import React, { PureComponent } from 'react'
                                                                                ^^^^^^

    SyntaxError: Cannot use import statement outside a module

    > 1 | import GitHubButton from "react-github-btn";
        | ^
      2 | import "./App.css";
      3 | import logo from "./logo.svg";
      4 |

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1728:14)
      at Object.<anonymous> (src/App.tsx:1:1)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        0.692 s
Ran all test suites related to changed files.

How to reproduce

Clone the example repository.
Install the dependencies using npm i.
Run npm run test.
See error occuring.

From the hints:

By default "node_modules" folder is ignored by transformers.

To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.

@ntkme Your right! Thanks, I found the following solution, which solves my problem.


Provide/extract component prop typing in libraries

What problem does this feature solve?
I'm writing a small library for Vue 3 which contains a function
function fn(component, props) {}

which takes a component definition (component options) as first argument and the component's props as second argument. These props will be passed to an actual instance of the component later.
Given a component definition, I want to provide the actual type of the props to the user. Idea:
function fn<TComponent>(component: TComponent, props?: ExtractProps<TComponent>) {}

So if I had a component like this:
const SomeComponent = defineComponent({
  props: {
    prop1: {
      type: String,
      default: 'defaultVal',
    },
});

My call to fn would then type the second parameter as { prop1: string }
import SomeComponent from '...';

// Type checking ok
fn(SomeComponent, { prop1: 'test' })

// This would fail
fn(SomeComponent, { prop2 : 1 })

I had something similar working for a beta of Vue 3 here, but this no longer works (as of rc 1). I wanted to rebuild this with rc 1, but it seems I can't, because one of the returned types of defineComponent (ComponentPublicInstanceConstructor) is not exported and thus I can't use it in my conditional type.
So:

Is this currently possible and I just missed how?
Is this approach even idiomatic or is there an alternative "best practice" approach for this?

Thanks.
What does the proposed API look like?
Not sure, maybe exporting ComponentPublicInstanceConstructor is sufficient?

If the type you got is a return type from defineComponent, it is a constructor so you should be able to get its props type as InstanceType<TComponent>['$props'].


Too hard to find unbound keys.

When something isn't bound it's very difficult to find what is missing. The error looks like this (after 30 lines of injector.py code):
TypeError: init() takes exactly 2 arguments (1 given)
There is no mention to the Key or class that is missing.
It would also be really useful to be able to list all bound (and non-bound) keys.

Is this correct? I get the following when injecting an instance:
injector.CallError: Call to A.__init__(a=1) failed: __init__() takes exactly 3 arguments (2 given) (injection stack: [])

Are you using the most recent version? If so, can you provide some minimal code to replicate?


Set the document title

repro:
Open the app --------> Click on any Tab -----> The document title should update according to tab name see pic
Ref: https://angular.io/guide/example-apps-list

What should I do here??
-----Message d'origine-----
De : "Ghislain"<EMAIL_ADDRESS>Envoyé : 21/12/2020 15:05
À : "idrice24/mns"<EMAIL_ADDRESS>Cc : "Subscribed"<EMAIL_ADDRESS>Objet : [idrice24/mns] Set the document title   (#408)
repro:
Open the app --------> Click on any Tab -----> The document title should update according to tab name see pic
Ref: https://angular.io/guide/example-apps-list
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

do you know where document title is?


issue with the uncompiled version

ERROR:root:A error has occured at 00:53:35 12
Traceback (most recent call last):
File "C:\Users\MYUSERPRIVATE\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Users\MYUSERPRIVATE\AppData\Local\Programs\Python\Python39\lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Users\MYUSERPRIVATE\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\MYUSERPRIVATE\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\leaks\Bloxflip-Smart-Bet\Martingale.py", line 22, in init
self.sendBets()
File "D:\leaks\Bloxflip-Smart-Bet\Martingale.py", line 340, in sendBets
for game in self.ChrashPoints():
File "D:\leaks\Bloxflip-Smart-Bet\Martingale.py", line 303, in ChrashPoints
games = scraper.get("https://rest-bf.blox.land/games/crash").json()
File "C:\Users\MYUSERPRIVATE\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

reopened because keeps giving the error sometimes

also saying invalid auth

Fixed now


Right MPV to use with this module

Having problems with python3 modules for MPV, because I'm not using the right MPV version.  I'm using Linux Mint XCFE 19.3, which is based on Ubuntu 18.04.  I was wondering if you guys could direct me to right version of MPV that will work with Ubuntu 18.04.  I have had to rebuild OS three times because of problems with getting MPV, Python3, wxpython4, and the python MPV module to work together.  It seems to be a one shot thing, and after all pieces are loaded it either works or it doesn't, and after the choices are made nothing besides an OS rebuild will get all the pieces back to what they were.  If you can suggest the MPV version that will work with my OS, python3 and your module, I will give it a shot.  thanks in advance

Does this help?
http://ubuntuhandbook.org/index.php/2019/10/install-mpv-0-30-ubuntu-18-04-19-10/


fingerprint channel

Hi, Keivan, thanks for your nice work. Recently, I want to use stylegan2 to generate fingerprint, but the channels of fingerprint is 1, the channel of  the input in vgg needs  to be 3. How do you solve this problem?

I converted all training samples into RGB. This is a well known trick for transfer learning with models train on RGB data.

I converted all training samples into RGB. This is a well known trick for transfer learning with models train on RGB data.

OK, thanks for your answer, I'll try it.


Add All The Java Predicates To C++

Java has builtin predicates which are missing in C++ client. They need to be added and tested.

all implemented.


feat: auto-generate slug if missing [EP-3263]

CHANGES:

make slug optiona fieldl, autogenerate slug if missing

:tada: This PR is included in version 1.10.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[System.Tuple] cannot be destructured

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
[System.Tuple] cannot be destructured into its component items like [Object[]] can, despite it supporting indexing operator. This makes it a hassle to work with functions returning tuples, which are common in C# and preferable to returning an untyped array. Trying to destructure it just leads to assigning it to first variable, leaving rest $null.

function Test-Destructure($a) {
    Write-Host "Type: $($a.GetType().Name)"
    Write-Host "a[0]: $($a[0])"
    Write-Host "a[1]: $($a[1])"
    ($x, $y) = $a
    Write-Host "x: $x"
    Write-Host "y: $y"
}

Test-Destructure (1, 2)
Test-Destructure ([System.Tuple]::Create(1, 2))

Expected behavior
> Test-Destructure (1, 2)
Type: Object[]
a[0]: 1
a[1]: 2
x: 1
y: 2

> Test-Destructure ([System.Tuple]::Create(1, 2))
Type: Tuple`2
a[0]: 1
a[1]: 2
x: 1
y: 2

Actual behavior
> Test-Destructure (1, 2)
Type: Object[]
a[0]: 1
a[1]: 2
x: 1
y: 2

> Test-Destructure ([System.Tuple]::Create(1, 2))
Type: Tuple`2
a[0]: 1
a[1]: 2
x: (1, 2)
y:

Error details
No response
Environment data
Name                           Value
----                           -----
PSVersion                      7.4.0-preview.4
PSEdition                      Core
GitCommitId                    7.4.0-preview.4
OS                             Ubuntu 22.04.2 LTS
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals
No response

Duplicate of #7471

Thanks for the report! Tracking the issue above (I've marked it as Needs-Triage so it'll actually make it to a WG)

@SeeminglyScience thanks, I searched for such issue but could not find anything due to slight differences in wording 🙄

Oh yeah no worries, plus it made me realize the other issue wasn't being tracked properly 😁
But I'd always rather have a duplicate issue than none at all so absolutely no worries!


Turn off Advanced Module Optimization in development

Do you want to request a feature or report a bug?
Feature Request

What is the current behavior?
In development when using require.ensure the incremental builds take ~8.5s. The majority of the time is during advanced module optimization. When removing require.ensure the incremental builds go down to ~1.5s.
If this is a feature request, what is motivation or use case for changing the behavior?
This would greatly speed up development time if we could turn off the optimization in development. A current workaround is to possibly use a generated version of our files with require.ensure removed. (https://github.com/knpwrs/babel-plugin-remove-webpack helped with this process) Idealy this is a switch that could be turned off/on from the webpack config. I doubt I am alone in needing this feature as many others are wanting to decrease incremental build times. If you this is something you think is reasonable and doable I'd gladly submit a PR if you point me in the right direction. Thanks!
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
Node Version: v6.9.4
Wepback Version: 2.2.0
OSX 10.12.2

@sokra would using import rather than require.ensure help the perf? I'm assuming the static parsing of require.ensure is the bulk of the advanced module optimization but please correct me if I'm wrong. Thanks!

@sokra @bebraw is there any guidance you can provide? Or should I hold tight and use my current workaround for now?

@peterdotjs Not that I know of. Incidentally I got the same question from someone that is using SSR. Splits don't make sense on server-side so they should be flattened. I think Tobias will be able to answer this more fully.

You can try one of these PRs, if they fix the performance issue:
https://github.com/webpack/webpack/pull/4738
https://github.com/webpack/webpack/pull/4764

Thanks a lot for the quick response and in general all the work you both have put in to maintaining this project. I'll try those out.

my webpack version 2.4.1
got this
185ms building modules
133ms sealing
0ms optimizing
0ms basic module optimization
8ms module optimization
8291ms advanced module optimization
0ms basic chunk optimization
0ms chunk optimization
0ms advanced chunk optimization
1ms module and chunk tree optimization
29ms module reviving
3ms module order optimization
25ms module id optimization
35ms chunk reviving
15ms chunk order optimization
30ms chunk id optimization
203ms hashing
3ms module assets processing
32ms chunk assets processing
6ms additional chunk assets processing
0ms recording
0ms additional asset processing
0ms chunk asset optimization
0ms asset optimization
38ms emitting
Hash: 9ba30154a8b8804cfd3a
Version: webpack 2.4.1
Time: 9060ms
                                  Asset     Size  Chunks                    Chunk Names
mm__node.import.a1c11a887656e2d1e788.js   657 kB  1, 175  [emitted]  [big]
                 mm__node.bundle.min.js  2.28 MB     295  [emitted]  [big]  main
 [137] ./front_end/routes/contact/detail.js 3.61 kB {1} [built]
       [] -> factory:0ms building:0ms dependencies:10ms = 10ms
 [493] ./~/moment-mini/locale ^\.\/.*$ 189 bytes {295} [optional] [built]
       [] -> factory:0ms building:0ms dependencies:0ms = 0ms
    + 1481 hidden modules

should i upgrade my webpack version to solve this problem ?

problem still exists? with webpack@3 or webpack@4?

Closing due to inactivity also webpack@2 is deprecated. Please test with latest version (webpack@3 or webpack@4) and feel free to create new issue if still have problems/regressions. Thanks!


gh_issue/388_api_hook

Enables one to add hooks for API calls as requested in #388.
closes #388

Any update / input on that? Is there anything I can do to get this or something like that merged?

@hoegaarden thank you for the contribution! It is a really nice feature and I need it too! :)
But unfortunately I'm not familiar with go. Could you please rebase your work to the tip of current mainline? (Adding some documentation or usage example would be a great plus too!)
It seems @smira is way too busy to look into this project (which is very, very sad and disappointing) and he hasn't found any maintainer yet..

I am closing this PR in favor of #597 so we can focus our effort there.


OCR errors when using game language with custom font

Describe the bug
When using language like chinese or japanese(or other with custom font) ocr report errors.
To Reproduce
Set interface language with custom font and then try to use autosolver.
Expected behavior
Should work like it does with english interface.
Software information

OS: Windows 10
autosolver version: 1.4.0
autosolver flags(if applicable):
monitor resolution: 2560x1440
gamma(if applicable):

Cyberpunk 2077 information

version: 1.2
resolution: 2560x1440
language: see above
gamma(if applicable):

Additional context

fixed #31


PlayAlbum Example not working

play-album.py B0170UQ0OC
Email: my-email-here
Amazon password:
Traceback (most recent call last):
  File "/home/pi/amazon-music-master/play-album.py", line 32, in <module>
    album = am.get_album(asin)
  File "/home/pi/amazon-music-master/amazonmusic.py", line 265, in get_album
    )['albumList'][0]
IndexError: list index out of range

Any idea what is happening here?

I was going to open an issue like you did, but it looks like this amazon-music solution has been abandoned for some time.


YUNO changelog having?

Something has changed between 0.7 and 0.8 and it is hard to say what :(

Added https://ducalis-rb.github.io/log

Can't you have a changelog as well? I find changelog super useful as usually I refer to the repos github :(


Linux C++ Polly

Hello,
i tried to use Polly API with aws sdk C++ (11).
I am following https://aws.amazon.com/fr/blogs/developer/cross-platform-text-to-speech-for-c-with-amazon-polly/ so my code is a copy/paste.
When i tried to list available voices i have any result or :
aws-cpp-sdk-core/source/utils/json/JsonSerializer.cpp:488: aws::Utils::ArrayAws::Utils::Json::JsonView Aws::Utils::Json::JsonView::GetArray(const String&) const: Assertion `cJSON_IsArray(array)' failed.
I don't understand why, can you help me ?

We’re releasing a patch today.

Thank you for quick response 👍

Fixed in v1.6.7
Let us know if you're still having problems.


Documentation does not describe how to upgrade services

I was recently asked for help with how to define the version of a warden project's service.  After helping, I went to point them to the documentation but could not find it myself.
Either it does not exist, or it is not easily discoverable.
I may contribute this myself, but not right now - hence, the ticket :)

how to define the version of a warden service

When you say this, do you mean global service or project service? I would assume project, as the global services are generally defined by the Warden release, but just want to make sure it's clear what's being documented here.

@davidalger project.  I've updated the main text to clarify.

@navarr I can probably pick this up this week.
This documentation would describe how to update a project service with the following use cases.

As a user I would like to update the version of a service such as PHP in a Magento environment from 8.1 (default for env-init) to 8.2.
As a user I would like to update the version of a service with my own docker image.
As a user I would like to pull the latest version of an image from the docker container registry.

This would probably mean re-writing some of this https://docs.warden.dev/environments/customizing.html into service specific terminology and covering editing of the local .env, .warden/warden-env.yml, pulling images from the registry and reloading the configuration.


Integrate with NPM

Basic implementation done
Fix issue with sub node directories npm/path <- should be recognised as an internal module


Fix code coverage reporting

Submit code coverage.
@erikras let us wait merging until we see that covecov receives the new code coverages.
Releated https://github.com/erikras/redux-form/pull/3470

Codecov Report

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

@@            Coverage Diff            @@
##             master    #3475   +/-   ##
=========================================
  Coverage          ?   68.45%
=========================================
  Files             ?      102
  Lines             ?     2251
  Branches          ?        0
=========================================
  Hits              ?     1541
  Misses            ?      710
  Partials          ?        0

Continue to review full report at Codecov.

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

@erikras I just excluded the tests folder from the coverage report.

Closing this in favor of #3476.


[e2e]: go schedule main adversarial-build-provenance slsa3

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/3180973244
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.schedule.main.adversarial-build-provenance.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.schedule.main.adversarial-build-provenance.slsa3.yml
Trigger: schedule
Branch: main
Date: Tue Oct  4 09:32:32 UTC 2022

I disabled this test for now. See #960


Brush smoothing settings

First off, thanks for the awesome tool!
I really like the simplicity of the current brush tool, but I noticed that it seems to be very sensitive to the perturbations of my pen when I use it with my drawing tablet. It might be useful to add some configurable smoothing options in order to allow smoother strokes. There are several line smoothing algorithms that could work, here's a discussion of a few: https://stackoverflow.com/questions/5829437/efficient-line-smoothing-and-or-simplification.

Hello and thanks! Yes, brush smoothing is essential for a good feel and needs to be implemented before 1.0. I did a bit of research myself a couple of months ago and found this Github thread: https://github.com/opentoonz/opentoonz/issues/81.

I implemented basic smoothing using cubic Bezier curves: https://github.com/mbrlabs/Lorien/commit/e5e7c26f3953ddc05b0d7a128ec97585978d4508. The strength is adjustable in the settings.


[rocko] RasperryPi 3B+ support

- What I did
Packages updates needed for RasperryPi 3B+ support (and some kernel updates)

Needs rework based on master changes.

Will close this for now to avoid merging by mistake. The version which ended up in master is different.


Add support for Azure Database for MySQL Flexible Server

Resource information: https://docs.microsoft.com/en-gb/azure/mysql/flexible-server/
Pricing information: https://azure.microsoft.com/en-gb/pricing/details/mysql/flexible-server/
Paid resource
azurerm_mysql_flexible_server
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mysql_flexible_server
Cost components:

Name
Unit
Usage param
Notes

Compute (<sku name>)
hours

ex. Compute (B_Standard_B1ms)

Storage
GB

If not specified, defaults to 20GB minimum

Additional IOPS
IOPS

Comes from TF resource, https://docs.microsoft.com/en-us/azure/mysql/flexible-server/concepts-compute-storage#iops. If not specified, defaults to 360 minimum. Also, first 360 IOPS are free, show only  the additional value IOPS - 360

Additional backup storage
GB
monthly_additional_backup_storage_gb

Free resources

azurerm_mysql_flexible_database
azurerm_mysql_flexible_server_configuration
azurerm_mysql_flexible_server_firewall_rule

@bgrainger infracost already supports azurerm_mysql_server, so unless I'm missing something we can update the title/description of this ticket to be focused on terraform-providers/terraform-provider-azurerm#8884 ?

Sorry, my mistake; for some reason I thought I wasn't getting cost information for azurerm_mysql_server. I'll update the issue to just cover Flexible Server.

No problems - thanks! I've subscribed to the Terraform ticket you mentioned to get a reminder when that ships so we can unblock this :)

@bgrainger This resource is finally merged to master! :) It should go live with the next release.


sudo=yes for arvados-git role

You'll face this:
TASK: [arvados-git | Install Arvados GIT server and dependencies] *************
failed: [<IP_ADDRESS>] => (item=git,openssh-server,gitolite3,arvados-git-httpd,runit) => {"changed": true, "failed": true, "item": "git,openssh-server,gitolite3,arvados-git-httpd,runit", "rc": 2, "results": ["All packages providing git are up to date", "Loaded plugins: fastestmirror, security\nLoaded plugins: fastestmirror, security\n"]}
msg: You need to be root to perform this command.
You need to be root to perform this command.

FATAL: all hosts have already failed -- aborting

I prefer to use sudo for individual tasks when its requires than using sudo for the whole role. Like in the other roles, i.e the SSO role


Serious business API validation & big cleanup of createContract, placeBet

Function status: Deployed on dev for testing. Not yet deployed on prod.

Dug up a good validation library (zod) which will be useful in the future for validating API inputs.
Applied it to createContract and placeBet, thereby implementing a variety of input validation that was sort of only mostly-implemented before (and making it work with Typescript properly.)
Got rid of some unused code and made other refactors that shouldn't affect any behavior.

I still need to test all the different error cases to make sure this validation is working and produces acceptable error messages to API consumers, but I'm putting this out there to get eyes on it.

I note that in this branch I changed the max question length and description to be validation errors. That seems like a good idea but I need to go in the client to make sure the UI lines up.

Small comment: unknown is actually the right type to use if you are receiving data from a client that needs to be validated.

OK, most feedback was addressed, I will merge this at my convenience.


How to use the transposed function? from (26, 64, 48, 1) to (1, 26, 64, 48)

Hello
I have an MLMultiArray in shape (1, 64, 48, 26) that I need to transpose to shape (1, 26, 64, 48).
How can I do it?
Equivalent python code:
import numpy as np
arr = np.zeros(1*64*48*26).reshape((1, 64, 48, 26))
arr_transposed = arr.transpose((0,3,1,2))

Thanks

It's already in the correct shape. You can ignore a dimension that is 1.

Sorry - I ment from (1, 64, 48, 26) to (1, 26, 64, 48). I updated the post.

Easiest way is to add a transpose / permute layer to the model at the end.


Change the size of the photo in the preview of the shot and have it large original horizontal.

I don't understand how to change the size of the photo in the preview of the shot and have it large original horizontal.
Output file
how to remove the white border and have the large photo
and add a watermark
Originally posted by @enricofusco in https://github.com/werdeil/pibooth/issues/119#issuecomment-599156813

Hi @enricofusco, not sure to understand your questions but here are some answer:

I don't understand how to change the size of the photo in the preview of the shot and have it large original horizontal.

You have to change the [CAMERA] resolution in the config, default value is (1934, 2464), you have to find a new one compatible with your camera.

Output file
how to remove the white border and have the large photo

There is no way to remove the border, you can change the color, have an image as background but for now it is not possible to tweak the output in a way to not have a border (but you can open an issue to add this kind of option, we will see if we find a way to do it).

and add a watermark

To add a watermark you need to use the overlay feature in the config [PICTURE] overlays. You need to prepare a PNG with your watermark (and transparency) and then put the path to this PNG in the config.
Tell me if it answer your questions.

I don’t understand how to do it😅 ...
I tried but it doesn't work

Hi @enricofusco
Can you be more explicite please? What have you tried?
Note that the configuration shall be edited using the command: pibooth --config
anxuae

if i use the comand pibooth --config, i can't edit it....

What is the error please?

I can't write or save

Can you run the command ls -la ~/.config/pibooth/ and give me the output ?

Il giorno lun 16 mar 2020 alle 20:21 Anxuae<EMAIL_ADDRESS>ha
scritto:

Can you run the command ls -la ~/.config/pibooth/ and give me the output ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/werdeil/pibooth/issues/120#issuecomment-599717178,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOU7LUYBBC3ODEYNW7UWYGTRHZ34JANCNFSM4LK2SDBA
.

--
Enrico Fusco
Digital content creator
Facebook https://www.facebook.com/enricofuscophoto/ - Instagram
https://www.instagram.com/enricofusco/
www.enricofusco.it
_
Questo messaggio e gli eventuali allegati sono ad uso esclusivo del
destinatario e possono contenere informazioni riservate e/o confidenziali
la cui riservatezza è tutelata legalmente. Nel caso in cui chi riceve il
messaggio non sia il destinatario designato, chiediamo di non farne copia,
non diffondere, non usare, non divulgarne il contenuto. Chiunque riceva
questo messaggio per errore è pregato di distruggerlo e di segnalarci
l'errata ricezione.Please advise immediately if you or your employer do not
consent to Internet email for messages of this kind. Opinions, conclusions
and other information in this message that do not relate to the official
business of our firm shall be understood as neither given nor endorsed by
it. We take reasonable precautions to ensure our Emails are virus free.
However, we cannot accept responsibility for any virus transmitted by us
and recommend that you subject any incoming Email to your own virus
checking procedures.

The configuration file has been opened several times, without being closed properly. This may be the reason why you can save the configuration anymore (I don't how it happened).
Best is to remove the all the configuration before starting pibooth again.
Execute this command: rm -rf ~/.config/pibooth/

Hi @enricofusco
Does it solved your problem?
BR
anxuae

yes I understand how to edit.
what I'm asking now is:

will you ever add the possibility of choosing whether to have:
A) the borderless photo with only the logo
B) the photo as it is now

choose to enable printing or not in the screens

understand how to have a button to take photos ,like the one in the photo below (without cables)

will you ever add the possibility of choosing whether to have:
A) the borderless photo with only the logo

Borderless is not possible at the moment
Logo shall be added using overlay feature (see configuration)

B) the photo as it is now

Not possible and not planned

choose to enable printing or not in the screens

To hide the print view, just set [PRINTER][printer_delay] to 0

a slideshow in a second monitor with all the photos taken

You have to find an other software to do that

understand how to have a button to take photos ,like the one in the photo below (without cables)

Look at the circuit diagram https://github.com/werdeil/pibooth#circuit-diagram

understand how to have a button to take photos ,like the one in the photo below (without cables)

Look at the circuit diagram https://github.com/werdeil/pibooth#circuit-diagram

I'm not familiar with these things,
I don't know what button to take and how to connect it in this way

I don't know what button to take

You are looking for a "massive arcade button" like this one: https://www.adafruit.com/product/1185
But we are getting out of the original topic, do you still have issue with the preview or can we close this topic?

I close this issue.
Feel free to open a new one if necessary.


RedisClient::ConnectionError with pubsub

Hello,
I just switched from redis-rb to redis-client and I see some connection errors on one of my production instance.
I use the code :
$conn = RedisClient.new(reconnect_attempts: 1).pubsub and $conn.call('publish', event, payload.to_json).
After some time I see some RedisClient::ConnectionError Not connected or Broken pipe errors raised by
/app/shared/bundle/ruby/3.0.0/gems/hiredis-client-0.14.1/lib/redis_client/hiredis_connection.rb:94:in `_write'
/app/shared/bundle/ruby/3.0.0/gems/hiredis-client-0.14.1/lib/redis_client/hiredis_connection.rb:94:in `write'
/app/shared/bundle/ruby/3.0.0/gems/redis-client-0.14.1/lib/redis_client.rb:421:in `call'
/app/releases/20230522090020/lib/pubsub_singleton.rb:69:in `publish'

Is the reconnect_attempts also used after a broken connection ? Am I missing a parameter that used to make redis-rb work and not redis-client?
Thanks for your help and for the good work!

See: https://github.com/redis-rb/redis-client#reconnection
redis-rb does retry by default, and that's probably what was hiding these events to you. You can pass reconnect_attempts: 1 to restore the old behavior.
Duplicate of https://github.com/redis-rb/redis-client/issues/116

I saw this issue and I modified my code already (as you can see in my first post) but it didn't solve my problem.
The errors are raised after few minutes/hours of connection, not when the connection is created. So I'm not sure it's the same thing than #116

Apologies, I read a bit too fast, didn't notice it was about pubsub specifically.

That makes sense!
Thanks for your help.


Review impact.tex

This is very good.
The D&E&C plan now wraps over two pages
But when I compile it locally, we are just over 45 pages.  (Not so in the CI.) In any case, we can shorten a few references, and then it should fit again (if necessary). So this is okay to merge.
The 2.3 Summary page looks a bit messy now (different size of boxes). We'll have to fix that later.

I think D&E&C is perhaps too long and detailed in the summary.


Create 04_the-transformer-architecture.srt

Added subtitles in Russian to video.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


fix(account ui adjustments)

[x] Activity Stream label
[x] mobile responsive
[x] mobile navbar
[x] nav links button text
[x] incorporate breadcrumbs to appbar
[x] view all usage button
[x] refactor

Demo mobile responsiveness and incorporate breadcrumbs in appbar
account ui.webm
Nav item box hover/item style

Change title of activity stream

View all usage


Add a bomb powerup

Maybe create a bomb :bomb: powerup feature where you can throw rolling bombs. When the bomb touches a specific type of block or enemy, it will explode, causing things around it to disappear :boom: .

fdsafdafsf

fds

fdsafa

fdsfadad

ffffffffffffdsa

fdsadf or fdsafda

fsdadf or fdsaf

fdsadf or fdsafsdajfkd

fdsadfaf

Steps

[ ] Create bomb group
[ ] Create sand blocks
[ ] Add key presses in update()


RFC: Combine Test and Prod permissions for Api Events

Issue Summary
Currently, SAM creates two permissions (one for production and one for test) for every API event defined in the CloudFormation stack. The test permission is needed for the Test button to work on the console. Because of this extra permission for the test button, the limit of 200 resources per stack can be quickly reached.

Design Spec
The approach is to combine both permisions into a single permission and give the exact same functionality without a spec change. This is achieved by using a "*" in place of the stage name in the single permission, which is exactly what the "Test" permission does today.
Sample Template:
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Resources:
  HelloWorldFunction:
    Type: AWS::Serverless::Function
    Properties:
      InlineCode: |
        print("hello world")
      Handler: app.lambda_handler
      Runtime: python3.6
      Events:
        HttpGetUserExample:
          Type: Api
          Properties:
            Path: '/users/userid'
            Method: GET

For this sample template, the resources generated by existing approach look like:
    ...
    "HelloWorldFunctionHttpGetUserExamplePermissionProd": {
      "Type": "AWS::Lambda::Permission",
      "Properties": {
        "Action": "lambda:invokeFunction",
        "Principal": "apigateway.amazonaws.com",
        "FunctionName": {
          "Ref": "HelloWorldFunction"
        },
        "SourceArn": {
          "Fn::Sub": [
            "arn:aws:execute-api:${AWS::Region}:${AWS::AccountId}:${__ApiId__}/${__Stage__}/GET/users/userid",
            {
              "__Stage__": "Prod",
              "__ApiId__": {
                "Ref": "ServerlessRestApi"
              }
            }
          ]
        }
      }
    },
    "HelloWorldFunctionHttpGetUserExamplePermissionTest": {
      "Type": "AWS::Lambda::Permission",
      "Properties": {
        "Action": "lambda:invokeFunction",
        "Principal": "apigateway.amazonaws.com",
        "FunctionName": {
          "Ref": "HelloWorldFunction"
        },
        "SourceArn": {
          "Fn::Sub": [
            "arn:aws:execute-api:${AWS::Region}:${AWS::AccountId}:${__ApiId__}/${__Stage__}/GET/users/userid",
            {
              "__Stage__": "*",
              "__ApiId__": {
                "Ref": "ServerlessRestApi"
              }
            }
          ]
        }
      }
    },
    ...

With the proposed approach the resources generated would look like:
    ...
    "HelloWorldFunctionHttpGetUserExamplePermissionProd": {
      "Type": "AWS::Lambda::Permission",
      "Properties": {
        "Action": "lambda:invokeFunction",
        "Principal": "apigateway.amazonaws.com",
        "FunctionName": {
          "Ref": "HelloWorldFunction"
        },
        "SourceArn": {
          "Fn::Sub": [
            "arn:aws:execute-api:${AWS::Region}:${AWS::AccountId}:${__ApiId__}/${__Stage__}/GET/users/userid",
            {
              "__Stage__": "*",
              "__ApiId__": {
                "Ref": "ServerlessRestApi"
              }
            }
          ]
        }
      }
    },
    ...

This approach will reduce the number of permissions created for api events by half. This approach gives the same functionality as the existing approach without any change in the spec. Hence, it is backward compatible.

This looks good. Thanks for getting to this eventually.

I'd be happy with whatever way to reduce the number of generated permissions, the situation is getting unbearable with some deployments, especially in cases when the permission resources end up being replaced. In addition to disabling the test permissions I'd also like having the option to disable permission generation completely and bringing my own permissions instead.

@ferdingler This is an interesting approach. We had a discussion about this approach in the team and we did a deep dive on this approach. Both the permissions look similar except for the change in {stage} part of the arn.
ProdPermission Arn: ("AWS:SourceArn": "arn:aws:execute-api:us-east-1:0123456789:{api-id}/{stage}/{path}")
TestPermission Arn:  ("AWS:SourceArn": "arn:aws:execute-api:us-east-1:0123456789:{api-id}/*/{path}")
If we make a change to the ProdPermission arn by replacing {stage} with *, we can combine both permissions into one without changing the spec.
The single permission arn would look like this:
"AWS:SourceArn": "arn:aws:execute-api:us-east-1:0123456789:{api-id}/*/{path}"
This reduces the number of permissions by half by giving exact same functionality with two permissions. As we are not removing/revoking any permissions, this approach seems to be backward compatible.

@ShreyaGangishetty awesome, thanks for considering my input!

@ferdingler We ended up going with your approach (see #1119), which is a much simpler change. Really appreciate your feedback!

Any idea when this will be released?

@kriztoph this is going out in v1.15, which is our next planned release. It will be coming out soon!

Closing this issue as v1.15.0 is released


Improve Delete icon

Related to: #12531
Required features

Replace ListItem-deleteButton icon by a blue cross 8x8px
Replace LegendItem-deleteButton icon by a blue cross 8x8px
Expand ListItem-deleteButton padding
Expand LegendItem-deleteButton padding

Bonus features

Fix code typo
Fix LegendItem-listFieldsOrder cursor (move)
Expand LegendItem-listFieldsOrder padding

Works great! 🚀


Expose The Asynchronous Behavior Of renderStatic

The function is async under the hood, and trying to post-process the generated files is difficult, due to not knowing when the static generation is complete.

Really good point. I only threw that together to figure out how SSG could work. I need to do better here. I will get this in as part of the next minor release (I'm only a day or so away from releasing). But I definitely am interested in how to make SSG better. I just wrote the simplest script that came to mind. I know this will hit walls with even medium size sites.

@ryansolid
I've noticed that SSG build takes a long time, up to 30 seconds and sometimes times out on Node v12.18.0
Ref: https://app.netlify.com/sites/s0kil-solid-ssg-demo/deploys/5faebc172371a10007054a47
When using the latest Node v15.2.0 the SSG generator behaves as expected.
Ref: https://app.netlify.com/sites/s0kil-solid-ssg-demo/deploys/5faebcc38dfb020008ca82c3
Any idea what it could be?

Hmm.. it's fine on 14 too.. maybe it hangs. 30 seconds is the timeout time. I wonder if there are features not supported in Node 12.  globalThis seems fine.. Do you mean my example in the repo. I see I'm using the optional chaining operator untranspiled in the example. That would hang up Node 12.

Not a big deal, will stick with the latest version.


Release 200630 - New samples + fixes + improvements

New samples + fixes + improvements

LGT to the team 🚀


[bug] unable to set custom RPCs, RPCs are overwritten with wallet connect RPCs

Link to minimal reproducible example
https://github.com/techi-solutions/soliditree/blob/main/services/walletConnect/config/index.ts
Summary
I expect to be able to use my own RPCs without the library overwriting the provided links. Providing custom transport urls, chains or networks don't seem to do anything.
The documentation on this seems to be lacking.
If I am mistaken and this is indeed possible, how can this be achieved? It's a basic requirement of web3 development.
List of related npm package versions
latest

I am attaching my issue here, too, which should have very high priority.

https://github.com/reown-com/appkit/issues/3056


TypeError: Cannot read property 'push' of undefined

Describe the bug
by opening a page editor the page breaks with the following error
TypeError: Cannot read property 'push' of undefined
I checked the console on devtools and there were two errors that I attached to the screenshots section. it seems the issue is from<EMAIL_ADDRESS>that is a dependency for<EMAIL_ADDRESS>I'm using latest version of netlify-cms-app ("netlify-cms-app": "^2.15.27")
To Reproduce
Expected behavior
Screenshots

Applicable Versions:

Netlify CMS version<EMAIL_ADDRESS>Git provider: git-gateway
Browser version: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36

CMS configuration
backend:
  name: git-gateway
  branch: master
  commit_messages:
    create: Create {{collection}} “{{slug}}”
    update: Update {{collection}} “{{slug}}”
    delete: Delete {{collection}} “{{slug}}”
    uploadMedia: "[skip ci] Upload “{{path}}”"
    deleteMedia: "[skip ci] Delete “{{path}}”"
publish_mode: editorial_workflow
media_folder: static/img
public_folder: /img
collections:
  - name: blog
    label: Blog
    folder: src/pages/blog
    create: true
    slug: "{{slug}}"
    fields:
      - label: Template Key
        name: templateKey
        widget: hidden
        default: blog-post
      - label: Title
        name: title
        widget: string
      - label: Publish Date
        name: date
        widget: datetime
      - label: Body
        name: body
        widget: markdown
      - label: Tags
        name: tags
        widget: list
      - label: Keywords
        name: keywords
        widget: list
      - label: Description
        name: description
        widget: text
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - title
      - date
      - commit_author
      - description
    view_filters: []
    view_groups: []
  - name: page
    label: Pages
    folder: src/pages
    create: true
    slug: "{{slug}}"
    fields:
      - label: Template Key
        name: templateKey
        widget: hidden
        default: single-page
      - label: Title
        name: title
        widget: string
      - label: Publish Date
        name: date
        widget: datetime
      - label: Body
        name: body
        widget: markdown
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - title
      - date
      - commit_author
    view_filters: []
    view_groups: []
slug:
  encoding: unicode
  clean_accents: false
  sanitize_replacement: "-"
isFetching: false
error: null

Additional context

Hi @SlashArash, can you provide a reproduction scenario? This is probably related to existing data the CMS tries to load, so sharing a public repo with the issue will make it much easier to debug.

@erezrokah thank you for following up. I rebuild it and there is no error! I'm going to close this ticket.


change from unstable cargo feature to RUSTFLAGS

So we encountered some problems that people are relying on things gated by "feature=unstable" (e.g., #364). This isn't really surprising. I was thinking that a better approach would be use a cfg flag that is not tied to a feature. Therefore, in order to build Rayon with experimental features, you would have to do:
RUSTFLAGS='--cfg rayon_unstable' cargo build

This flag will propagate to the rayon create, which will then include unstable features. This has the same "infectious" property that Rust nightly builds do: you can't use an unstable feature in your crate without the top-level crate being forced to acknowledge it.

I implemented this idea idea in #368

@nikomatsakis: I read your issue report and the issue you referred to, but I don’t yet understand what the advantage of using a cfg flag is here, over using a Cargo feature. I suppose you implicitly were talking about keeping the rayon-core and rayon in sync. Before I continue, is that correct?


Allow use of specific network interface

We require running RTC over a specific network interface, rather than the interface automatically selected by the OS. This can be done by providing an interface's local address in socket.bind(). This PR simply adds an config object to specify these addresses for IPv4 and IPv6.
Usage:
const peer = new RTCPeerConnection({
    iceInterfaceAddresses: {
        udp4: "<IP_ADDRESS>",
        udp6: "fe80::885:4ee3:67cc:3caa%en8",
    },
});

Unsure if I've missed anything (as I've only tested candidate gathering so far; ideally it'll use the interface for all traffic) or if there are standards in the repo I've missed.

Thanks for PR

I'd like to see one conflict fixed.

Fixed ☺


Bump cffi to version 1.16.0

This PR updates the cffi package to use version 1.16.0. This is not the newest version os such package, but it is the closest to the one we are already using that supports Python 3.12. All other packages within the poetry.lock file support this version of Python already (search for cp312).
Without this change, Python 3.12 cannot be used for local development.

Up 2 @paulomach and @carlcsaposs-canonical here.

For context, all the other MySQL repos are using at least version 1.16.0. See:

mysql-bundle.
mysql-k8s-operator.
mysql-k8s-bundle.
mysql-router-operator.
mysql-router-k8s-operator.

OK, the reason why this is lacking behind is lack of love to renovate on this repo.
@paulomach please chek and restore renovate OR reviews here, please.

OK, the reason why this is lacking behind is lack of love to renovate on this repo. @paulomach please chek and restore renovate OR reviews here, please.

Reviews incoming. I'm committed to increase my love with renovate


Add Blob property for window

Try to fix https://github.com/Microsoft/TypeScript/issues/8866

I think this can be done a bit simplier: https://github.com/Microsoft/TSJS-lib-generator/pull/117/files

closing in favor of https://github.com/Microsoft/TSJS-lib-generator/pull/117


Additional rules Categorical and Transition node

This PR adds additional computation rules for the categorical and transition node.

Codecov Report

Merging #90 (a6601ea) into master (c556cbf) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #90   +/-   ##
=======================================
  Coverage   75.00%   75.00%
=======================================
  Files         172      172
  Lines        5452     5452
=======================================
  Hits         4089     4089
  Misses       1363     1363

Impacted Files
Coverage Δ

src/nodes/transition.jl
40.00% <ø> (ø)

src/rules/transition/in.jl
100.00% <ø> (ø)

src/rules/transition/marginals.jl
100.00% <ø> (ø)

src/rules/transition/out.jl
100.00% <ø> (ø)

Continue to review full report at Codecov.

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


Seaport v1.5

This PR fixes a minor bug, introduced in Seaport v1.3, that causes the amount parameter on spent offer item amounts reported to zones and contract offerers to be overwritten by the recipient address on spent offer items with excess (or unspent) item amounts when using match or fulfillAvailable methods.
As part of these combined fulfillment methods, Seaport iterates over each supplied order and asserts that all consideration item amounts have been fully met while also checking for unspent offer item amounts. If an unspent offer item amount is located, it typecasts the offer item in-place to a received item and writes the designated recipient to memory, overwriting the endAmount parameter on the offer item, and uses that received item to perform a transfer, sending the excess offer item amounts to the designated recipient.
Once all transfers have been fully processed, Seaport then iterates over each supplied order another time and performs a call to validateOrder on the zone (for restricted orders) or ratifyOrder on the offerer (for contract orders), encoding the call based on the order data in memory. Specifically, the endAmount parameter is used to encode the amount for each item (the full amount is originally written to both startAmount and endAmount, but startAmount is used to debit offer items and credit consideration items during fulfillment). As offer items with excess item amounts have had this value overwritten with the recipient value, Seaport erroneously reports the amount on these offer items to the zone or contract offerer as being equal to the recipient address.
The fix proposed in this PR reads the endAmount value and places the result on the stack prior to overwriting it with the recipient value, then restores the original endAmount value immediately after performing the associated transfer.
Aside from this patch, the only change to the contracts in this PR is to bump the version to 1.5.

Codecov Report
Patch coverage has no change and project coverage change: +21.85 :tada:

Comparison is base (0bf2c54) 78.14% compared to head (0a7e805) 100.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@             Coverage Diff              @@
##             main     #1015       +/-   ##
============================================
+ Coverage   78.14%   100.00%   +21.85%
============================================
  Files          45        21       -24
  Lines        2324      1230     -1094
  Branches      369       220      -149
============================================
- Hits         1816      1230      -586
+ Misses        388         0      -388
+ Partials      120         0      -120

Flag
Coverage Δ

foundry
?

reference
100.00% <ø> (?)

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

Impacted Files
Coverage Δ

reference/ReferenceConsideration.sol
100.00% <ø> (+9.09%)
:arrow_up:

reference/lib/ReferenceConsiderationBase.sol
100.00% <ø> (+100.00%)
:arrow_up:

reference/lib/ReferenceOrderFulfiller.sol
100.00% <0.00%> (ø)

reference/lib/ReferenceSignatureVerification.sol
100.00% <0.00%> (ø)

contracts/Seaport.sol

contracts/lib/Consideration.sol

contracts/lib/ConsiderationBase.sol

contracts/lib/ConsiderationDecoder.sol

contracts/lib/Executor.sol

contracts/lib/OrderCombiner.sol

... and 33 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

Deployed: https://etherscan.io/address/0x00000000000000adc04c56bf30ac9d3c0aaf14dc#code


Getting started with Fastify Node.js framework and faunadb

We ask that you please be patient as our team works through approving and publishing all articles/tutorials in a timely manner. Allow 1-3 days for a topic to be reviewed and/or approved - allow 3-7 days for an articles to be reviewed and/or published.
Be sure to visit our Resources Page for tools, resources, and example articles to go over.
NOTE: (Please ensure that you have only one open issue + linked pull request at a time. This will ensure that we complete the article in a timely manner from inception to publishing.)
NOTE: We tend to stray away or tend not to publish reviews/comparisons of commercial product offerings.
We're looking for the first 2-3 paragraphs of the article that appropriately summarize what your article will be about.
Proposed title of article
Getting started with Fastify Node.js framework and faunadb
Introduction paragraph (2-3 paragraphs):
Fastify is a framework for backend web development with a powerful plugin architecture and the least overhead. It’s primarily inspired by Hapi and Express and is one of the fastest web frameworks running on Node.js. On the other hand, Faunadb is a multi-model cloud database created to integrate with the JAMstack and modern serverless architecture. It easily transforms the traditional DBMS into a Data API that gives us all the capabilities of an old-guard database, without sacrificing flexibility, scale, and performance. In this tutorial, we will building an API to see a quick overview on how to use Fauna and Fastify in Node.js.
Key takeaways:

Introduction to Faunadb
Introduction to Fastify Node.js framework
How to integrate Fastify and Faunadb in a Node.js application
Building a Node.js backend API using Faunadb and Fastify

References:
N/A.
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

cc: @hectorkambow I hope this will be an even helpful topic. 💯

cool topic - approved 👍  @marienjus


Build warning please update gaze library to fix

When building I get the following message on my project.
npm WARN deprecated<EMAIL_ADDRESS><EMAIL_ADDRESS>is no longer maintained. Upgrade to<EMAIL_ADDRESS>and this is the partial output
├─┬<EMAIL_ADDRESS>│ ├──<EMAIL_ADDRESS>│ ├─┬<EMAIL_ADDRESS>│ │ ├─┬<EMAIL_ADDRESS>│ │ │ └──<EMAIL_ADDRESS>│ │ └─┬<EMAIL_ADDRESS>│ │   └──<EMAIL_ADDRESS>│ ├─┬<EMAIL_ADDRESS>│ │ └─┬<EMAIL_ADDRESS>│ │   ├─┬<EMAIL_ADDRESS>│ │   │ ├──<EMAIL_ADDRESS>│ │   │ └──<EMAIL_ADDRESS>│ │   ├──<EMAIL_ADDRESS>│ │   └──<EMAIL_ADDRESS>```

 as you can see the deprecated lodash message is related with the lodash dependency inside the gaze lib because gaze is outdated. There is a 1.0.0 version of gaze, and we are using the 0.5.2

Fixed on master, will be 3.5.0.


The fork seems to have stopped the website

Please verify that you have read and understood the guidelines.
yes
A clear and concise description of the issue.
The website with the links to the scripts has disappeared
What settings are you currently utilizing?
Default Settings
Which Linux distribution are you employing?
Debian 12
If relevant, including screenshots or a code block can be helpful in clarifying the issue.
No response
Please provide detailed steps to reproduce the issue.
No response

https://helper-scripts.com/ no longer works.

in case anyone was wondering I think the command generally was (an example).  In the meantime you'll jsut need to find the appropriate script
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/ubuntu.sh)"

aaah, it seems to work by going here:  https://tteck.github.io/Proxmox/

Wait a little bit ;) we need to declare Something

Moved redirect back to https://tteck.github.io/Proxmox/ until things are a little more finalized 😉


Classification banner on 'Classification banner' page overlays footer content

Summary of the bug
Classification banner on 'Classification banner' page overlays footer content, hiding Crown copyright text.
🪜 How to reproduce
Go to Classification banner guidance page.
🧐 Expected behaviour
Webpage should account for Classification banner height and not hide content.
📸 Screenshots or code
If you can, add screenshots to show the problem. If you need to show a code example, you can include a snippet or link to a repository with an example.
🖥 Desktop

OS: [e.g. macOS]
Browser: Chrome
Browser version: [e.g. 22]
Website version: [e.g. V1, V2]
(As displayed on the site top navigation)

📱 Mobile

Device: [e.g. iPhone13]
OS: [e.g. iOS8.1]
Browser: [e.g. chrome, safari]
Browser version: [e.g. 22]
Website version: [e.g. V1, V2]
(As displayed on the site top navigation)

Additional info
Tell us anything else useful to help us fix or understand the problem.

related to https://github.com/mi6/ic-ui-kit/issues/543


Should allow multiple Policy endpoints

We currently have a single opa.policy.rule configuration; this is not flexible enough.
Ideally, API endpoints should be "grouped" under distinct rule endpoints, and such groups be configurable.
This could be done in the routes.authorized configuration, by grouping the routes under OPA authorization control in "groups" and each point having a distinct opa.policy.rule configuration:
opa:
  policy: kapsules/rules

routes:
  ...
  authorized:
    users:
       rule: "users-auth"
       endpoints:
         - /users/**
         - /users/*/accounts
     orders:
       rule: "orders"
       endpoints:
         - /orders/**
         - /users/*/orders/**
         - ...

Superseded by #31


undefined symbol: PyInt_FromLong

I don't know if this is too broad of an issue to warrant being posted here, but it seems the error stems from a quest file so any help is appreciated.
After installing this library with pip3 install pyquest_cffi, I'm getting a successful install message (I can post the whole thing if I need to). But when I try to run the example QuEST_example_in_python.py, I get the following errors for the from pyquest_cffi import object lines
Python 3.6.9 (default, Nov  7 2019, 10:44:02)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pyquest_cffi import ops
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/david/.local/lib/python3.6/site-packages/pyquest_cffi/__init__.py", line 25, in <module>
    from pyquest_cffi.questlib import quest
  File "/home/david/.local/lib/python3.6/site-packages/pyquest_cffi/questlib/__init__.py", line 19, in <module>
    from ._quest import ffi as ffi_quest
ImportError: /home/david/.local/lib/python3.6/site-packages/pyquest_cffi/questlib/_quest.so: undefined symbol: PyInt_FromLong
>>>

A couple notes that may be relevant:

I am running Windows10, but the installing pyquest_cffi on Windows was a bit too much of a pain in getting cffi working. So I'm doing this in WSL (Windows Subsystem for Linux), which initially seemed to work with the successful install, but is evidently also not working. Also this error message seems like it should be easier to trace so for now I think sticking with WSL is not a bad idea.

When trying pip install pyquest_cffi using Python2.7, I can't even get a "successful" install with a plethora of errors. So I'm using Python3.6, which installs without errors initially.

Hi and sorry for the long response time, the issue report totally slipped by us.
We will have a look, however we don't have windows machines readily available, so I can't guarantee we will be able to reproduce this error.
To give us a better idea are you using WSL 1 or WSL 2?
Also which linux distro do you use in the WSL? The standard ubuntu one?

It looks like I have WSL 1, and I am using Ubuntu 18.04. I could try upgrading to WSL 2 and see if that works.
Additionally, I managed a successful, working install in a conda environment in a linux server using all updated python. So I'll also try updating my python libraries in my windows machine and see if that helps.

Ok, thank you for the information.
As I said I can't test it on a windows machine at the moment, but from a few tests I ran on a fresh ubuntu docker image, there might be a problem picking out the right python2/python3 version during installation.
We are looking into this, but in the meantime I would try using the following workaround:
Install the command line anaconda python distribution in you WSL linux distribution. That lets everything default to python3 and so far we haven't had problems with pyquest-cffi when using anaconda on ubuntu 18.04 based machines.
I can't test how that interacts with windows but if it does not work you could also try using WSL2 instead of WSL1 to install anaconda and pyquest.
As far as I understand WSL2 is more a less a complete virtualized linux without all the wrapper calls of WSL1, so I should be closer to setups we have already tested.

We have a new release out that fixes a problem with mixed python2/python3 environments on ubuntu.
Could you try if that runs for you?

This works for Ubuntu 18.04 on WSL1 using python3, having installed with pip3. Thanks!
Would be nice to get this working on Windows, but this should work for everything I'm doing. I'll leave that for a different issue.


Change height of week view when used together with SWRevealViewController

Initial state - week view
Open side menu
Close side menu

Calendar height becomes equal to the height of the calendar on month view, but bottom part is empty. And I can not lead a height to week view until a new initialization of view controller.
If I switch to another section and come back more this mistake is not repeated

+1