emby: <IP_ADDRESS> -> <IP_ADDRESS>

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/emby/versions.
These checks were done:

built on NixOS
Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
found <IP_ADDRESS> with grep in /nix/store/vpqjd5im4xkpjb6lvvs668n4df2v8mbg-emby-<IP_ADDRESS>
directory tree listing: https://gist.github.com/76a13ccb17597b24c0fcba7d3b372222

cc @fadenb for testing

@r-ryantm duplicate of #40339 ;)

Success on x86_64-darwin (full log)
Attempted: emby
Partial log (click to expand)
no configure script, doing nothing
building
glibPreInstallPhase
installing
glibPreFixupPhase
post-installation fixup
strip is /nix/store/kdff2gim6417493yha769kh00n63lnrw-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/ni978a3cqx71mlvbsw24cmqkn8d871wl-emby-<IP_ADDRESS>/bin
patching script interpreter paths in /nix/store/ni978a3cqx71mlvbsw24cmqkn8d871wl-emby-<IP_ADDRESS>
/nix/store/ni978a3cqx71mlvbsw24cmqkn8d871wl-emby-<IP_ADDRESS>

Success on x86_64-linux (full log)
Attempted: emby
Partial log (click to expand)
glibPreInstallPhase
installing
glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/vpqjd5im4xkpjb6lvvs668n4df2v8mbg-emby-<IP_ADDRESS>
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/vpqjd5im4xkpjb6lvvs668n4df2v8mbg-emby-<IP_ADDRESS>/bin
patching script interpreter paths in /nix/store/vpqjd5im4xkpjb6lvvs668n4df2v8mbg-emby-<IP_ADDRESS>
checking for references to /build in /nix/store/vpqjd5im4xkpjb6lvvs668n4df2v8mbg-emby-<IP_ADDRESS>...
/nix/store/vpqjd5im4xkpjb6lvvs668n4df2v8mbg-emby-<IP_ADDRESS>

No attempt on aarch64-linux (full log)
The following builds were skipped because they don't evaluate on aarch64-linux: emby
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

closing as duplicate of #40339


Move from tuples to BioCypher classes in the adapter input fields

Providing an input class with ID, type, properties fields is more transparent than using tuples that are not self-explanatory. This class would be used in the adapter to pass data to BioCypher and could provide data directly to the dataclasses for validation.
Related to #76

this will require moving to translation from input label to ontology class after the BioCypherNode has been created (i.e., in the writer / driver implementation)

could also create a new abstract base class for biocypher input entities, integrating the changes discussed with @vincentvialard about 1-id and 2-id entities (#161)

Writing adapters using the BioCypher node and edge classes directly is already technically possible, although it clashes slightly with the design of the schema_config.yaml. More specifically, the input_label field, which does the mapping from the raw inputs to the ontology classes, is not needed when directly specifying BioCypher entities. In consequence, the user has to be aware of the exact designation (label) each entity has to carry in order to be appropriately mapped to the ontology. As such, this only shifts complexity, and does not make it much easier for the user (in this case, the person writing the adapter). I have made an adapter that does this for the collectri implementation (https://github.com/biocypher/collectri) and will further think about the most user-friendly and fail-safe way to implement the parsing and mapping of raw data.

A possible solution would be to depend on the metaprogramming translation of the schema_config.yaml to automatically generate adapter code. In this case, it would not be important whether the data is passed to BioCypher as a collection of tuples or as dedicated class instances. The user would primarily interact with the configuration. @nilskre

it makes more sense to me to have one simple model merely for the adapter and a more complicated model used internally in BioCypher core which is also hidden from users.

I agree (of course), as this reflects the current state. For the current discussion on output modules (#377), I would focus on the internal model; we can discuss the adapter interface after we resolved this discussion and PR.

I don't like the metaprogramming approach, I think it makes BioCypher overly complicated to maintain and to learn.

I also agree here, but there may be something that can make the life of users much easier. This we can discuss even later than the adapter interface.


Responsive Layout

Responsive Layout
User Story
AS AN potential employee
I WANT to have a deployed portfolio of work samples
SO THAT a future employer can review samples of my work and assess whether I'm a good candidate for an open position
Acceptance Criteria
GIVEN I need to create a sample of my previous work
WHEN I resize the page or view the site on various screens and devices
THEN I am presented with a responsive layout that adapts to my viewport

Using Chrome DevTools the website responds appropriately for mobile, tablet and desktop.


Output goes stale in run and edit mode (app view mode)

Describe the bug
I'm building an app to run calculations. The calculations take time. Therefore, I decided to place a spinner to show the progress (status). However, instead of showing the spinner clearly when I click the calculate button, the output is marked as stale, and greyed out, though I can see the changing status in the background.
Environment
{
"marimo": "0.6.17",
"OS": "Windows",
"OS Version": "11",
"Processor": "Intel64 Family 6 Model 126 Stepping 5, GenuineIntel",
"Python Version": "3.12.2",
"Binaries": {
"Browser": "123.0.6312.123",
"Node": "v20.14.0"
},
"Requirements": {
"click": "8.1.7",
"importlib-resources": "missing",
"jedi": "0.19.1",
"markdown": "3.6",
"pymdown-extensions": "10.7.1",
"pygments": "2.17.2",
"tomlkit": "0.12.4",
"uvicorn": "0.29.0",
"starlette": "0.37.2",
"websockets": "11.0.3",
"typing-extensions": "4.9.0",
"black": "24.3.0"
}
}
Code to reproduce
Here's the code to reproduce.
import marimo

__generated_with = "0.6.17"
app = marimo.App(width="medium", layout_file="layouts/stale_output.grid.json")

@app.cell
def __():
    import marimo as mo
    import asyncio
    return asyncio, mo

@app.cell
def __(asyncio):
    async def generator():
        nmax = 10
        for i in range(1, nmax+1):
            yield f"completed {i} out ouf {nmax}"
            await asyncio.sleep(2)
        return
    return generator,

@app.cell
def __(mo):
    run_button = mo.ui.run_button()
    run_button
    return run_button,

@app.cell
async def __(generator, mo, run_button):
    run_button
    if run_button.value:
        with mo.status.spinner("Calculating") as _spinner:
            async for status in generator():
                _spinner.update(subtitle=status)

    mo.output.replace(mo.md("Waiting"))
    return status,

if __name__ == "__main__":
    app.run()

Thanks for reporting. Started investigating — this appears to be specific to grid layout. I can't repro in the vertical layout


Ayr 441/start screen

Changes in this PR

Created start-page.html
Created start_page route
Created start-page.css, and added styles
Linked css page to base.html
Created how-to-use-this-service.html page (just contains placeholder text for now)
Created how_to_use route
Linked how-to-use-this-service.html page to start-page
Configured pre-commit hook to work with Poetry

JIRA ticket
https://national-archives.atlassian.net/browse/AYR-441
Screenshots of UI changes
Before
After

[ ] Requires env variable(s) to be updated

Hi Candace, just a couple points which we should take a look at. You'll need to pull / rebase to sort out the conflict in routes.py. There's also differing spacing between the BETA banner & the corresponding title for each of the pages.

Looks good, we'll need to get the flask app connected to keycloak again after the user clicks on start now.


Load Stocks Independently from Market Sync

load the portfolio file independently of syncing market data
create ui directory/package and move renderer there
rename project file to main.py
remove the need for config.ini (will be more apparent why in next PR) -- all args get assigned a default and can be controlled directly through the CLI
add initial buy/sell transaction support

I like where this is headed - and with the context that an in-line command line will be present helps explain the removal of that config.ini. However, I'm thinking it might be smart to wait to pull this one until that pull request is ready - otherwise the only way to change the configuration is by command line argument, something that can be quite painful when changing a lot of the setting in config.ini.
Another question - will it be possible for users to set their own defaults? I personally don't want to have the change the width / height of the graph, the graphing mode, and the timezone everytime I run the program.

to wait to pull this one until that pull request is ready

sure but its going to be a giant PR and wont be ready for a bit. i'll figure something out for defaults too by then


docs: move examples to be compiled and tested

Right now our README.md has gotten a bit out of date. This is likely because no CI runs over those. The readme is also pretty long and intimidating (even to seasoned developers).
Let's move a bunch of them into an examples/ directory and keep the readme beginner friendly.

cc @wadearnold who originally brought this up

An example project I think we should follow: https://github.com/src-d/go-git/tree/master/_examples


E2E tests for multiple worker node groups

Add E2E tests to capture creating a cluster with multiple worker node groups & adding/deleting groups during upgrade

#1194


Upgrade to Elm 0.17

https://github.com/elm-lang/elm-platform/blob/master/upgrade-docs/0.17.md

I plan to switch to PureScript instead.


[WIP] FID

Before submitting

[ ] Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
[ ] Did you read the contributor guideline, Pull Request section?
[ ] Did you make sure to update the docs?
[ ] Did you write any new necessary tests?

What does this PR do?
Fixes #65
Implements Fréchet inception distance (FID) which is used to asses the quality of images generated with GANs.
Still requires testing...
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃

Hello @SkafteNicki! Thanks for opening this PR.

In the file tests/image_generation/test_fid.py:

Line 18:1: E302 expected 2 blank lines, found 1
Line 19:17: W292 no newline at end of file

Do see the Hitchhiker's guide to code style

@SkafteNicki seems that automatic update fails as there seem to be some conflicts, mind have look?

Note that after every .compute(), the real data statistics will be recomputed the next time you want to calculate the FID.
Is there a way to avoid that? This is an unnecessary overhead.
Thanks!

@SkafteNicki any update here? :] seems to be too far from the master so the automatic update failed...

@Borda working on a revamped version :]

Redo in #213. Closing this.


Projects documentation updates

doc,projects:ad4130_iio: Added github documentation
-Added web based documentation for ad4130 project
doc: Added sphinx folder for documentation resources
-Added initial folder for storing doc resources

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

btw, document is reflected at below link, so if anyone has any comments on actual contents, feel free to add.
https://github.com/analogdevicesinc/precision-converters-firmware/tree/projects-documentation-update/projects/ad4130_iio

V1.0: Review comments fixes

Corrected evb_connection diagram
FIxed typos


Adds the signature for an optional argument in np.savetxt

Run Black with line-length 100 then you should be all good.
black -l 100 -t py36 -S .

Thank you!
We use black to format the stub files. You will need to format the file with black. Sorry that we don't mention it anywhere.

Perfect! Thank you!

Thank you for your help and the quick merge (and the awesome project!). I look forward to contributing again.


MultiFilter not working properly

In the new version the multifilter is not working properly, I selected 2 filters and it was supossed to change every 2 searchs but doesnt happen it never changes.

adding onto this because its not worth a new thread, just minor visual issue, default Number of Search For Filter is 1 but it is actually 3 unless you change it to 1 @chithakumar13


Add an image_path helper

Registers images to build thumbnails and provides paths to those thumbnails for use in linking to alternate sources like in the case of srcset.
<picture>
  <source srcset="<%= image_path "cowsay.jpg", resize_to: 1200 %>" media="(min-width: 900px)">
  <%= image_tag "cowsay.jpg", resize_to: 400 %>
</picture>

References: MDN picture element, MDN img element

Hello,
Thank you for your very interesting proposition.
A question and a request:

in your code you seem to "override" a image_path helper. Do you know where it is defined in middleman ? I tried to find it in the code but I ma not sure I found the right one ?
To speed up the merging process, could you please provide some tests for this new feature ?

Thank you,
Regards,
ymh

It is overriding Padrino's image_path helper, which is a dependency of Middleman.
And yes, I can add tests to if you think it is worth adding this feature to the project.

Thank you for your answer.
With tests I do not see any reason why not merge your PR. This is a nice feature to have and it help extend the module use case to some new html5 features.
So yes, if you have the opportunity, please include some tests.
Regards,
ymh

Hello,
I finally added the test myself and merged your PR.
Thank you for your contribution.
regards,
ymh

Wow! Thanks for adding tests and merging it in. 👍
On Mon, Nov 28, 2016 at 5:44 AM Haussonne Yves-Marie <
<EMAIL_ADDRESS>wrote:

Hello,
I finally added the test myself and merged your PR.
Thank you for your contribution.
regards,
ymh
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/kubenstein/middleman-simple-thumbnailer/pull/15#issuecomment-263250874,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABiBsOzJ1T2BSz15sD37erD_id1r3srks5rCr6DgaJpZM4KWo1M
.


Pen signing v2 (#47)

Cherry-picks https://github.com/Sector-Umbra/Sector-Umbra/pull/47 from Sector Umbra.
Media

[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog

:cl:

add: Papers can be signed with a pen via alt-click.

Is it possible to make it such that signatures are not randomly tossed on the document like a stamp? Even better would be the possibility of adding a [sign] tag that let's you place it exactly where you want. However, I don't know if the robust toolbox pr that lets you do that was ever merged.

Possible? Probably. I don't have the programming skill in C# required to accomplish this however.

It would be nice if there was some way of forging the signatures. It looks like it just signs as the name of the signer entity with no way to change it. Maybe open a dialog box that they player can type in what they want to sign as? This would also let players sign as a nickname or something along those lines.

Interesting, had not considered this before. A dialog box would allow anyone to sign as anything tho, and that would completely invalidate signatures as a mark of authenticity. Additionally, a signature on paper is something that is practiced by the signer. Human beings in the real world are only able to sign their own signature as quickly because they've done it so many times before. How would we reconcile this need for a forgery mechanic with the nature of signatures as described?

It also basically makes stamps redundant because stamps could be stolen and such.

On this I have to disagree. A name is just that, a name. It confirms that someone, a person, has interacted with the paper in question. A stamp is still needed to bind that to any sort of rank or authority, as NanoTrasen employees are known to change jobs sometimes. (Maybe less so on cosmatic, but the point still holds, as soon as a Captain leaves the station they are no longer holding Captain's Authority, etc.)

Possible? Probably. I don't have the programming skill in C# required to accomplish this however.

No worries.

Interesting, had not considered this before. A dialog box would allow anyone to sign as anything tho, and that would completely invalidate signatures as a mark of authenticity. Additionally, a signature on paper is something that is practiced by the signer. Human beings in the real world are only able to sign their own signature as quickly because they've done it so many times before. How would we reconcile this need for a forgery mechanic with the nature of signatures as described?

Good point. Maybe we can add a forgery kit (or something along those lines) that let's people sign as whomever they want and can be given to people via ahelp (and possibly salvage or even rare maint loot)?

On this I have to disagree. A name is just that, a name. It confirms that someone, a person, has interacted with the paper in question. A stamp is still needed to bind that to any sort of rank or authority, as NanoTrasen employees are known to change jobs sometimes. (Maybe less so on cosmatic, but the point still holds, as soon as a Captain leaves the station they are no longer holding Captain's Authority, etc.)

My main point is that anybody can right click their PDA and view the manifest. CC would also have a manifest of who is on the station and their signatures. Even if CC does not view them as a mark of authenticity I expect that players will.
To me, stamps have two purposes:

To lock a document so it cannot be edited except by extreme means.
To authenticate the writer of the document.

Pen signing locks the document just as well as stamps and authenticates the writer just as well, if not better than stamps. If we provide some way to forge signatures I think that suitably differentiate them from stamps.

I agree with aquif that this should, in my opinion, be meaningfully different from stamps. As-is it sort of devalues them.

I agree with aquif that this should, in my opinion, be meaningfully different from stamps. As-is it sort of devalues them.

That's understandable, but I don't know how I would go about that. I'm also not entirely sure I am capable of programming a distinct system.


Support ignore files

Is your feature request related to a problem? Please describe
It'd be nice to be able to automatically hide files in ignore files
Will you be willing to contribute this feature?

[ ] Yes, I will try to implement it

Describe the solution you'd like
Support ignore files. There's this snippet from man fd describing the types of ignore files that might be useful to support:
-I, --no-ignore
       Show search results from files and directories that would otherwise be ignored by

       • .gitignore

       • .git/info/exclude

       • The global gitignore configuration (by default $HOME/.config/git/ignore)

       • .ignore

       • .fdignore

       • The global fd ignore file (usually $HOME/.config/fd/ignore )

       The flag can be overridden with '--ignore'.

I think supporting at least .gitignore and .ignore would be reasonable.
Describe alternatives you've considered
No response
Additional context
No response

Is it really that inefficient? It only needs to check and parse ignore files in the 2-3 visible panes right? fd does this and it's still the most efficient file list tool all around.

Is it really that inefficient? It only needs to check and parse ignore files in the 2-3 visible panes right? fd does this and it's still the most efficient file list tool all around.

Due to the necessity of recursively collecting all .gitignore files before actually loading the file list, this will become the sole synchronous blocking factor for Yazi at present, especially for slower devices or network storage.
Introducing additional caching mechanisms is also required for this, necessitating an appropriate cache invalidation strategy.
Maybe we could collect .gitignore while loading the file list and apply these filters to the list once it's gathered, but this would make it more complex and result in list flickering.

I see ranger using a global regex to filter them. e.g.
# Which files should be hidden? (regular expression)
set hidden_filter ^\.|\.(?:pyc|pyo|bak|swp)$|^lost\+found$|^__(py)?cache__$

Yea that would be an ideal approach, we could expand it further though

I see ranger using a global regex to filter them. e.g.
# Which files should be hidden? (regular expression)
set hidden_filter ^\.|\.(?:pyc|pyo|bak|swp)$|^lost\+found$|^__(py)?cache__$

Yea that would be an ideal approach, we could expand it further though

Besides global filtering, I think it would be nice to have a way to hide files in specific directories, too. For example, Nautilus, Dolphin and Thunar use the .hidden file (https://fosspost.org/hide-files-folders-linux/) which only needs to be read for the current folder. If this would be the correct design choice for yazi however, I don't know.

This FR is already been in Feature Requests, closing in favor of that list


Error while installing react-app

pm ERR! code ECONNRESET
npm ERR! syscall read
npm ERR! errno -4077
npm ERR! network read ECONNRESET
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'
npm ERR!      C:\Users\NUMAN\AppData\Local\npm-cache_logs\2023-03-07T10_06_09_775Z-debug-0.log
plz help me

Hey there @HAMMAD-DEVELOPER-TECH , are you using an internal npm registry? Can you run npm config list and verify that you're using https://registry.npmjs.org?

I am using https://registry.npmjs.org


Aggregation - adding extraneous lines to a query are not cleared on submission

To recreate:

Open Aggregation
Set up geohash and search criterion.
Add a filter query: item_date:[now-1w TO now]

In the filter query, after adding the query, press "enter" to put the cursor on the line below the query.
Click "Go"

Result: error message
Note: If the user removes the extra line, query works just fine.

Still getting errors when using more than one line. If all items are on the same line it works fine.

This is still an issue.

No longer getting errors for extra spaces or new lines.


feat: update list page

Codecov Report

Merging #133 (ca28e42) into main (cedf55b) will increase coverage by 0.02%.
The diff coverage is 44.44%.

@@            Coverage Diff             @@
##             main     #133      +/-   ##
==========================================
+ Coverage   27.10%   27.12%   +0.02%
==========================================
  Files          49       49
  Lines        4129     4136       +7
==========================================
+ Hits         1119     1122       +3
- Misses       2910     2914       +4
  Partials      100      100

Impacted Files
Coverage Δ

pkg/resource/search/service.go
16.66% <0.00%> (-0.65%)
:arrow_down:

pkg/service/entity.go
54.85% <100.00%> (+0.30%)
:arrow_up:

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 cedf55b...ca28e42. Read the comment docs.


release v0.5.1

Issue #, if available:
fix  #249
Description of changes:
This is the only required change since this is a patch release.

I'll run e2e from main.


Replace ActiveModel::TestCase with ActiveSupport::TestCase

ActiveModel::TestCase was removed in Rails 5.1 (rails/rails/pull/27928).

Thanks!


Error: Invalid S3 bucket name (value: SOURCE_BUCKET) during Dev deploy

Describe the bug
getting an error during initial deployment.  I am trying to do the Dev approach for the install.  Seems it is trying to create a bucket with no name or bad name.  Ive installed all re reqs.  This is in a Cloud9 IDE.  It pass all previous tests up to this point.  I have tried to dig into /cdk-textract-client-stack.ts but I cannot see where SOURCE_BUCKET actually gets its value.  Your expert insight would be greatly appreciated
error:
Running tests for datastore
Test region is us-east-1
/home/ec2-user/.local/lib/python3.7/site-packages/responses/init.py:484: DeprecationWarning: stream argument is deprecated. Use stream parameter in request directly
DeprecationWarning,
.Error : An error occurred (ConditionalCheckFailedException) when calling the UpdateItem operation: A condition specified in the operation could not be evaluated.
A condition specified in the operation could not be evaluated.
....response: {'Items': [{'documentId': 'b1a54fda-1809-49d7-8f19-0d1688eb65b9', 'objectName': 'public/samples/Misc/expense.png', 'bucketName': 'dusstack-sample-s3-bucket', 'documentStatus': 'IN_PROGRESS'}, {'documentId': 'b1a99fda-1809-49d7-8f19-0d1688eb65b9', 'objectName': 'public/samples/Misc/expense.png', 'bucketName': 'dusstack-sample-s3-bucket', 'documentStatus': 'IN_PROGRESS'}], 'Count': 2, 'ScannedCount': 2, 'ConsumedCapacity': {'TableName': 'DocumentsTestTable', 'CapacityUnits': 1}, 'ResponseMetadata': {'RequestId': 'C5M72NYUQUFHHS0ILX3HFC7W4LFLPWXEZGYQZY138HS6KE7ZH8CT', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'amazon.com', 'x-amzn-requestid': 'C5M72NYUQUFHHS0ILX3HFC7W4LFLPWXEZGYQZY138HS6KE7ZH8CT'}, 'RetryAttempts': 0}}
....A condition specified in the operation could not be evaluated.
.
Ran 10 tests in 1.069s
OK
sys:1: ResourceWarning: unclosed <socket.socket fd=3, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('<IP_ADDRESS>', 0)>
warning ../../../package.json: No license field
$ yarn compile-ts-backend-stack && yarn compile-ts-client-stack
warning ../../../package.json: No license field
$ tsc lib/cdk-textract-stack.ts --target es2018 --module commonjs --allowjs true
warning ../../../package.json: No license field
$ tsc lib/cdk-textract-client-stack.ts --target es2018 --module commonjs --allowjs true
warning ../../../package.json: No license field
$ AWS_REGION=$npm_package_stack_region USER_EMAIL=$npm_package_email cdk bootstrap --toolkit-stack-name DocumentUnderstandingCDKToolkit
/home/ec2-user/environment/document-understanding-solution/source/node_modules/@aws-cdk/aws-s3/lib/bucket.js:750
throw new Error(Invalid S3 bucket name (value: ${bucketName})${os_1.EOL}${errors.join(os_1.EOL)});
^
Error: Invalid S3 bucket name (value: SOURCE_BUCKET)
Bucket name must only contain lowercase characters and the symbols, period (.) and dash (-) (offset: 0)
Bucket name must start and end with a lowercase character or number (offset: 0)
Bucket name must start and end with a lowercase character or number (offset: 12)
at Function.validateBucketName (/home/ec2-user/environment/document-understanding-solution/source/node_modules/@aws-cdk/aws-s3/lib/bucket.js:750:19)
at Function.fromBucketAttributes (/home/ec2-user/environment/document-understanding-solution/source/node_modules/@aws-cdk/aws-s3/lib/bucket.js:673:16)
at Function.fromBucketName (/home/ec2-user/environment/document-understanding-solution/source/node_modules/@aws-cdk/aws-s3/lib/bucket.js:654:23)
at new CdkTextractStack (/home/ec2-user/environment/document-understanding-solution/source/lib/cdk-textract-stack.js:509:62)
at Object. (/home/ec2-user/environment/document-understanding-solution/source/bin/deploy-backend.js:32:1)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
Subprocess exited with error 1
error Command failed with exit code 1.
To Reproduce
run yarn deploy
Expected behavior
A clear and concise description of what you expected to happen.
Please complete the following information about the solution:

[x] Version: [e.g. v1.0.3] v1.0.3
[x] Region: [e.g. us-east-1] us-east-1
[x] Was the solution modified from the version published on this repository? negative, just trying to test out initial template
[x] If the answer to the previous question was yes, are the changes available on GitHub?
[x] Have you checked your service quotas for the sevices this solution uses? no but this basically a vanilla aws org/account with nothing in it, lmk if I need to check something
[x] Were there any errors in the CloudWatch Logs? no

Screenshots
If applicable, add screenshots to help explain your problem (please DO NOT include sensitive information).
Additional context
Add any other context about the problem here.

I am realizing now its failing at the command
AWS_REGION=$npm_package_stack_region USER_EMAIL=$npm_package_email cdk bootstrap --toolkit-stack-name DocumentUnderstandingCDKToolkit
this reproduces the error by itself

Hi @patrickthebruce, I think we missed the check for adding the source bucket only if the user is trying to do a CICD deploy and I was able to reproduce the error when doing a yarn deploy myself.
Making the following change in source/lib/cdk-textract-stack.ts line 732  will solve this issue:
const cicdBotoLoc = props.isCICDDeploy? lambda.Code.fromBucket(
      s3.Bucket.fromBucketName(this, "solutionBucketBoto", "SOURCE_BUCKET"),
      "SOLUTION_NAME/CODE_VERSION/boto3-layer.zip"
    ) : undefined;

    const cicdPDFLoc = props.isCICDDeploy? lambda.Code.fromBucket(
      s3.Bucket.fromBucketName(this, "solutionBucketPDF", "SOURCE_BUCKET"),
      "SOLUTION_NAME/CODE_VERSION/searchable-pdf-1.0.jar"
    ): undefined;

Hope this helps!

Hi @ShivaniMehendarge , after the changes in source/lib/cdk-textract-stack.ts line 732 , I am still getting the same error, Error: Invalid S3 bucket name (value: SOURCE_BUCKET)..
Am I missing anything else.?
Thank you.

In addition to the above change, in line 25 of package.json, I modified the bootstrap to include the cicd flag and was able to get the yarn DUSStack to deploy.  Client stack isn't deploying though.
 "bootstrap": "ISCICD=$npm_package_cicd AWS_REGION=$npm_package_stack_region USER_EMAIL=$npm_package_email cdk bootstrap --toolkit-stack-name DocumentUnderstandingCDKToolkit",

guys I simply commented out any reference to cicdBotoLoc  and cicdPDFLoc  because wasnt using the CICD deployment at all.  There is also a conditional ternary you will need to comment out or change on line 772 if you go this route.
AFA the client stack I would make sure you have all pre reqs, it worked for me after i did.  You can get the true pre reqs frrom  lines 167-210  in  /document-understanding-solution/deployment/document-understanding-solution.template

Based on this issue, we are working on enhancements to make the deployment simpler and as a single stage deployment in the forthcoming releases.
If you still face the issue, please reopen or create a new ticket, closing this issue for now.


Error Message is Not Reflecting the Exact Issue

When I repeat an order_id in Function  "FastPayRequest"  of Provided flutter Plugin it returns "errorMessage: timeout" which is not making any sense related to the exact issue that is happening. It should be detailed, related to the exact issue.

Hello 👋
I Will check as soon as possible then update package.
Thank you.


Make proxy file permissions configurable

The hardcoded file permissions 0664 can now be configured in the
config.php like:
'hook' => array(
'proxyChmod' => 0660
)
The default file permissions remain untouched at 0644. With the option
to configure the proxy file permissions it is e.g. possible to add
group write rights to the files which is often needed.

Closing because PR contains old commits.

Thanks @FiveDigital.
The pull request still contains some unrelated merge commits. Can you please sqsash the PR together so only commit 0ff7256 stays.

Dear Contributor,
Thank you for your contribution to Shopware. We value your engagement.
Unfortunately we have to close all existing Pull Requests.
This is due to the new Shopware 5 Major Release and a restructuring of the branch names.
If your contribution is still relevant for Shopware 5, a new pull request is highly appreciated.
We are very sorry for this inconvenience.
Greetings from the Shopware Team.

I will create a new PR when I've got time for it.

Thanks @FiveDigital.
Again, we are sorry for this inconvenience.

np :)


Windows Test Fix

Update Windows lit test to allow invocation of binaries without .exe extension on Windows

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

@jenkins-droid test this please

Jenkins Linux ppc64le Build #3661 [push] allow invocation of bina... started at 03:17

Jenkins Linux s390x Build #4542 [push] allow invocation of bina... started at 03:15

Jenkins Linux amd64 Build #4525 [push] allow invocation of bina... started at 02:15

Jenkins Linux ppc64le Build #3661 [push] allow invocation of bina... passed after 1 hr 0 min

Jenkins Linux s390x Build #4542 [push] allow invocation of bina... passed after 1 hr 0 min

Jenkins Linux amd64 Build #4525 [push] allow invocation of bina... passed after 1 hr 1 min


Remove scripts from DOM

Would be nice to be able to remove scripts from the DOM once the page/url changes. This way the DOM doesn't end up with a ton of script tags. Don't think this is a huge performance concern, just a nice feature.

@zlalanne : Same, I want. Using Requirejs with AngularAMD. Want to remove script from DOM. If is there any solution for this then it will be better for me!


 Thank you very much. After too many searching finally I found how to build an index for a js search engine. I built index and tested it and it worked. (It was a kind of magic for me.)
I have an another problem. ( I am new in js and node). My index is built in Turkish and I need a code that eleminate words (stop words) which are not important and one or two digits number. This kind of words and numbers expand my index.
Sorry for my English.
Thank you very much again.
Sincerly.

Lunr documentation describes multi-language support:
https://lunrjs.com/guides/language_support.html
However, Turkish is not currently supported.  So I think what you would do is specify the Turkish stop words in a custom pipeline. Pipelines are described here but not in great detail:
https://lunrjs.com/guides/customising.html#pipeline-functions
Apparently lunr.generateStopWordFilter "builds a stopWordFilter function from the provided list of stop words."  So I think the tools you need are there, though I don't know how to put it together for you. As this is a Lunr issue, I suggest asking the Lunr developers how to go about it.


go 1.18

gsed -i 's/1\.17/1.18/' Dockerfile* go.mod .github/workflows/*

Looks like this is failing on linting. Maybe we just need to update the linter version here: https://github.com/infracost/infracost/blob/master/.github/workflows/go.yml#L25


remove unused pdb parameter.

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: morvencao
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

install/OWNERS [morvencao]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@morvencao: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-integ-k8s-tests.sh
0f97a8e73900b998f63cb91d800e39f2879a6288
link
/test istio-integ-k8s-tests

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

@morvencao: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-integ-k8s-tests.sh
0f97a8e73900b998f63cb91d800e39f2879a6288
link
/test istio-integ-k8s-tests

prow/istio-pilot-multicluster-e2e.sh
0f97a8e73900b998f63cb91d800e39f2879a6288
link
/test istio-pilot-multicluster-e2e

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

Close this in favor of https://github.com/istio/istio/pull/12943


Changed "Help" links to open in new tab/window instead of popup.

I also noticed, the code for external and custom/internal help links appear to be identical. Should that be fixed somehow or consolidated? Or is it intentional?

I looked at the code. And I think it would be good to consolidate those two links.  They way it works is through a redirect in the help controller:
https://github.com/concord-consortium/rigse/blob/master/app/controllers/help_controller.rb#L20
can you make that change?

I'm going to merge this in since I'm going to try deploy this tonight.  I can remove the duplication later.


[RTO-3016] Document new behavior of member changes in 9.5.0

Brief Overview

Release Target: 9.5.0

A bug regarding state handling was fixed (also known as RTO-2678) in the Mx9.5.0 release. This resulted in behavioral changes since the 9.5.0 release. However, these changes were not documented in the release notes.
This pull request aims to add these missing release notes, describing how the behavior changed.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Reactjs

how can use it in reactjs ?

For now, the preferred way is like this: https://replit.com/@Drarig29/React-and-brackets-viewerjs

Duplicate of #20


Unrecognized Argument Error for --adapter-file

Description
When running the  mlx-usft.ipynb notebook on M1 Mac with the --adapter-file argument, it results in an "unrecognized arguments" error. It seems like the argument is either not implemented or incorrectly handled.
Steps to Reproduce

Run all cells of the notebook on a M1 Mac
Observe the error in 10th code cell.

Expected Behavior
The script should recognize the --adapter-file argument and use the specified adapter file for training or testing as intended.
Actual Behavior
The script throws an error: lora.py: error: unrecognized arguments: --adapter-file trial1.npz.
usage: lora.py [-h] [--model MODEL] [--train] [--data DATA]
               [--lora-layers LORA_LAYERS] [--batch-size BATCH_SIZE]
               [--iters ITERS] [--val-batches VAL_BATCHES]
               [--learning-rate LEARNING_RATE]
               [--steps-per-report STEPS_PER_REPORT]
               [--steps-per-eval STEPS_PER_EVAL]
               [--resume-adapter-file RESUME_ADAPTER_FILE]
               [--adapter-path ADAPTER_PATH] [--save-every SAVE_EVERY]
               [--test] [--test-batches TEST_BATCHES]
               [--max-seq-length MAX_SEQ_LENGTH] [-c CONFIG]
               [--grad-checkpoint] [--seed SEED]

Possible Solution

Verify if the argument name --adapter-file is correct.
Check the script documentation or help command to confirm the available arguments.
If the argument is deprecated or renamed, update the documentation and help command outputs to reflect this change.

Additional Information

Python version: 3.11
Operating System: Mac OS 14.4.1

Please let me know if there's a different way to specify the adapter file or if there's an update needed to handle this argument correctly. Thanks!

The documentation here states that the argument should be "--adapter-path" instead of "--adapter-file" as well as the usage example you printed above.


Fix (#minor); Uniswap v2; Add blacklist tokens to uniswap v2

Context:
Large TVL issue for uniswap V2. Needed to blacklist tokens to fix the issue.

@steegecs should just be a #patch it goes (1.1.1 = major.minor.patch)

lgtm tho


docs: bring back the UwU logo

Description
Addresses #18913

for other reviewers, this is how it looks

I think we can go with it, thanks @DubNubz!


allow direct cd to non-existent target

mkdir somenewdir
z somenewdir

The above case will fail, and this patch fixes that case. A side-effect is that if you try to z to a dir which doesn't exist, then you'll get a cd error saying the dir does not exist.
it would be nice if there was a fallback to regular directory tab completion too, but I didn't focus on that.

Sorry to bring up this old pull request again, but isn't this kind of redundant? If you're going to give z the path to the directory isn't it easier/better to just cd into it normally?

It would minimize the number of commands.  That means I'd never have to even type cd but I could use z for everything.   Call it what you want, but I think it would speed up my work flow the less I have to think. Well, that, or maybe I'm just lazy. :/

I don't think z is meant to replace cd. I think it's meant to streamline it a bit for long paths or stuff you usually visit.
Also this could make it a problem if for example there is something in the z db that matches "dev" and you have directory named "dev" and you type z dev, there is no way for z to know which one you actually want to use.

Also you may be interested in https://github.com/rupa/z/pull/145, not sure but maybe.

I'm not saying or presuming what z is meant for, but I think it would be a foolish limitation to pass up something that really doesn't require anything extra at this point.
But let's speculate what z really is meant for. It's to make directory changing easier.   If this doesn't qualify, then what does?

there is no way for z to know which one you actually want to use.

Really? you can't just like ... pick a reasonable default, and, give them an out by typing  ... cd instead.
Apologies, but I think it's silly to argue about the validity here.

Really? you can't just like ... pick a reasonable default, and, give them an out by typing ... cd instead.

Isn't it better to just use cd by default then? I dunno, seems like it would just complicate matters.
With this commit you can have a cd function which achieves what you need though, it seems https://github.com/jeeger/z/commit/0437fa4972e804917a1c1a2c0b48afba64fe4109
This is in the process of being merged from what I can tell...

When you write software, you ask yourself "What will users in general prefer"
In this case, I don't think users will say they not prefer a feature of this simple nature because it would "complicate matters".   Is the functionality of z overwhelming to anyone?

I do not wish to have a big fight over this because frankly it is bad use of both our times, we could be doing something much more beneficial.
All I'm saying is that this is not what z was made for, I don't think. If it were it would already be builtin or this pull request would have received attention earlier from an user.
Also, "what will users in general prefer" is not something all devs ask. I think it is more accurate to say that they think "what will my intended userbase prefer?".
People that use z are most probably engrossed in the Unix philosophy, "Write programs that do one thing and do it well".
Even if some did like the workflow you prefer, others wouldn't, like me, and we would have to make another pull request to change it or ask z's author to add an option, which would make z more complex. Complex is never something you want in software development, never.
I repeat, that pull request that is currently in the process of merging makes some changes that allow your workflow to be a reality. :)

And with that, I suggest we drop the subject.

I don't want this, sorry.

... a user who would have loved this.  Remembering whether something is novel to z or i should be using cd is a huge timewaster and keeps me from using z as often as it would help.
A fallback to cd mode, with tab completion, when nothing matches would be a dream.

@mlncn  I switched to autojump which supports this.


Any information about pretraining time

How long would it take to pretrain the pixpro?

It takes about 58 hours to pretrain 100 epochs with ImageNet on 8-GPU DGX1-32GB machine.


Autocomplete (aka prefix search) with doublearray

First, I want to thank you for writing and making this repo available on github. I have search in many papers and implementations but I can't find any of them mentioning using double-array as a autocomplete data structure. So I wonder if that is even possible at all ?

This issue is not directly related to this library. Close #3 .


Add improvements to amp-live-list

Resize images
Add margin to the UPDATE button
Avoid dislaying a score bigger than 10

@sebastianbenz PTAL

Thanks for renaming the images. Have you checked other examples whether they use any of the renamed images?

Can you please mark live-list as draft.

@sebastianbenz PTAL

Could you create smaller versions of the images (width=300px) the other one are quite big (and slow). Could you then also encode the size in the file name? That'd be brilliant!

@sebastianbenz PTAL

why did you remove the large versions?

The other samples don't work with small images.

Sorry, I misunderstood the previous comment then. Will put it back so that the other example will work.

@sebastianbenz PTAL

LGTM Thanks!!!


React group project: set up your Kanban board

Click on this link to see our Kanban project setup for the Space Travellers Hub project - We are just two people on the team

Hi team,
Wow, you did it 🎉

To highlight:

Requirements have been met✔

Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


[Feature request] backward stuck with non-multimodal data

feature
Thanks for your great work!
But I think code below cannot take vision tower into backward with mixed data(multimodal and non-multimodal), since I was still stuck with small batchsize after forward and got "NCCL timeout" finally.
Big batchsize is OK, because there hardly to sample only non-multimodal data on one GPU, I think. I mixed them at a ratio 1:1.
if (cur_input_ids == IMAGE_TOKEN_INDEX).sum() == 0:
       # multimodal LLM, but the current sample is not multimodal
       cur_input_embeds = self.get_model().embed_tokens(cur_input_ids)
       cur_input_embeds = cur_input_embeds + (0. * self.get_model().mm_projector(vision_tower.dummy_feature)).sum()

Could you please help me to fix it?

fixed it by replacing above code with
0. * image_features[batch_idx]


SBG ISOFIT Application Package

SBG ISOFIT step application package creation
Repo: TBD
Sister implementation: https://github.com/sister-jpl/sister-isofit
Acceptance Criteria:

[ ] ISOFIT code and required libraries and anc/aux files are included in repository / environment.yml file
[ ] Application package is built and registered within Docker Hub
[ ] Application package is built and registered within Dock Store
[ ] Application Package CWL is created
[ ] Output Datasets have been defined (to U-DS)
[ ] Example inputs, outputs as expected
[ ] Example deploy and execute commands (unity-py)
[ ] Deployed and tested within WPS-T existing SPS

ISO fit requires some installs outside the typical conda env:
requires some custom installs on the docker image outside of the conda environment- discuss this during PI planning (https://github.com/sister-jpl/sister-isofit/blob/main/install.sh) - https://salsa.umd.edu/6spage.html

Started working on this and pushed current app-package code to https://github.com/unity-sds/SBG-unity-isofit
There is a major issue with the ram required to run this from the jupyter notebook. not enough memory to run this command.

i'm running this currently on an EC2 instance, seems to be working fine after a number of envionrment variables were set.
I am having a lot of issues creating a single environment.yml file from the different conda repositories in use. I wonder if this app-package should be a better custom built as a docker container, and not through app-pack gen.

example files available in /unity/ads/input_collections/SBG-L2A-RESAMPLE

updated and included a "process.py" file. I think we're going to have to build a custom docker container for this one, as the environment.yml file after all the builds do not resolve correctly- there are conflicts that it finds.

@mcduffie any updates on this ticket?

@mike-gangl is actively working on this


<2.0.0 builds resolve to 2.0.0 on pypi pulls

First want to say, love the project, thanks for maintaining for community.
Just wanted to give a heads up that it appears prior versions of the project when specified in a requirements.txt ex 1.0.3 result in actually pulling 2.0.0.

Hi @crawfobw, glad you like the project!
Thanks for the head up. I don't think the issue is with aws-lambda-typing but rather with your package resolver. All prior versions exist in pypi and are never removed nor changed. I have previously tested to lock a specific version with poetry without any issues.  I can give pip a try once I get back from my vacation.

Hi again,
I could successfully install an old version of the package with pip without any issues, see below screenshots, so I'm closing this issue now.
Installing directly from the CLI

Installing from requirements.txt


Success and error functions are deprecated for newer angular versions

In newer versions of angular, the success and error functions, which were the legacy functions used by promises, are deprecated.  As a result, these functions are not defined, and your code gives errors on lines 43, 53, 153, and 158.
There is already a pull request for the code change.
https://github.com/kinstephen/angular-azure-blob-upload/pull/14
Please review that request and make the change.
Thank you

Done


duplicates when parsing - max workerNum ?

I'm having duplicate objects in m parsing results.
I'm parsing large CSV files (using fromFile and the on('json') event) using workers.
When i set workerNum:4 everything seems to be ok (as far as i can tell), but if i use more i get duplicates.
For example: when i use workerNum:8 i get double objects in my parsed result.
When i use workerNum:12 i get triple duplicates.
any idea why? is there a limit of 4 workers?
Note: my machine has 48 vCPU
UPDATE: seems like 4 workers also produced duplicates

Setting the worker number to 1 still produced duplicates.
I'm attaching my code so you guys could try to help figure out what's happening:
import csvToJson from 'csvtojson';

parseAndSaveCsvToMongo = (csvFilePath) => {
    return new Promise((resolve, reject) => {
        let docsArr = [];

        csvToJson({
            workerNum: 1,
            constructResult: false,
            maxRowLength: 65535
        }).fromFile(csvFilePath)
            .on('json', async (jsonObj) => {
                let doc = {
                    name: jsonObj.name, // 'Chris'
                    age: jsonObj.age, // 16
                    scroe: jsonObj.score // 93.234
                }

                if (!isNaN(doc.scroe)) { //don't save if the score is invalid
                    docsArr.push(doc);
                }

                if (docsArr.length % 10000 === 0) {
                    // insert 10K docs to DB on each request (mongo 3.6 supports up to 100K write ops for a single insertMany request)
                    let resIds = await EntriesReportModel.insertMany(docsArr, { ordered: false }).catch(error => {
                        console.log(`insert error: ${error}`);
                        console.log(`duplicated errors: ${error.writeErrors.length}`);
                    });
                    if (resIds) {
                        console.log(`Successfull inserted: ${resIds.length}`);
                    }
                    docs = [];
                }

            })
            .on('done', async () => {
                if (docsArr.length > 0) { // add the remaining docs
                    let resIds = await EntriesReportModel.insertMany(docsArr, { ordered: false }).catch(error => {
                        console.log(`insert error: ${error}`);
                        console.log(`duplicated errors: ${error.writeErrors.length}`);
                    });
                    if (resIds) {
                        console.log(`Successfull inserted: ${resIds.length}`);
                    }
                }
                console.log(`Completed inserting CSV to DB`);
                resolve();
            })
            .on('error', (error) => {
                console.log(`parsing from file error: ${error}`);
                reject(error);
            });
    });
}

When i get an error for duplicates it looks like this:
insert error: BulkWriteError: write operation failed
duplicated errors: 10269

Notes:

Each CSV row is unique, and there are no duplicates in the CSV file.
In the DB, each row gets a unique index to it (compound index of the name, age & score), so if a duplicate is trying to get inserted it will produce an error.
The CSV files i'm parsing are large and weight between 100MB - 1.5GB
I'm using : MongoDB 3.6.2, mongoose 5.0.6, Node.js 8.9.4

Would love some help

Hi,
Looks like you are trying to insert jsons into database.
You cannot do this in the way above as db calls are asynchronous.
You would better create your own Writable stream to do this which has
lock/unlock controlls for async calls.
In the writable, you can save data to db through
csv().fromFile(path).pipe(yourWritable)
How to write an writable:
https://nodejs.org/api/stream.html#stream_implementing_a_writable_stream
~Keyang
On 22 February 2018 at 10:13, Ron Goldzimer<EMAIL_ADDRESS>wrote:

Setting the worker number to 1 still produced duplicates.
I'm attaching my code so you guys could try to help figure out what's
happening:
import csvToJson from 'csvtojson';
parseAndSaveCsvToMongo = (csvFilePath) => {
return new Promise((resolve, reject) => {
let docsArr = [];
    csvToJson({
        workerNum: 1,
        constructResult: false,
        maxRowLength: 65535
    }).fromFile(csvFilePath)
        .on('json', async (jsonObj) => {
            let doc = {
                name: jsonObj.name, // 'Chris'
                age: jsonObj.age, // 16
                scroe: jsonObj.score // 93.234
            }

            if (!isNaN(doc.scroe)) { //don't save if the score is invalid
                docsArr.push(doc);
            }

            if (docsArr.length % 10000 === 0) {
                // insert 10K docs to DB on each request (mongo 3.6 supports up to 100K write ops for a single insertMany request)
                let resIds = await EntriesReportModel.insertMany(docsArr, { ordered: false }).catch(error => {
                    console.log(`insert error: ${error}`);
                    console.log(`duplicated errors: ${error.writeErrors.length}`);
                });
                if (resIds) {
                    console.log(`Successfull inserted: ${resIds.length}`);
                }
                docs = [];
            }

        })
        .on('done', async () => {
            if (docsArr.length > 0) { // add the remaining docs
                let resIds = await EntriesReportModel.insertMany(docsArr, { ordered: false }).catch(error => {
                    console.log(`insert error: ${error}`);
                    console.log(`duplicated errors: ${error.writeErrors.length}`);
                });
                if (resIds) {
                    console.log(`Successfull inserted: ${resIds.length}`);
                }
            }
            console.log(`Completed inserting CSV to DB`);
            resolve();
        })
        .on('error', (error) => {
            console.log(`parsing from file error: ${error}`);
            reject(error);
        });
});

}
When i get an error for duplicates it looks like this:
insert error: BulkWriteError: write operation failed
duplicated errors: 10269
Notes:

Each CSV row is unique, and there are no duplicates in the CSV file.
In the DB, each row gets a unique index to it (compound index of
the name, age & score), so if a duplicate is trying to get inserted it will
produce an error.
The CSV files i'm parsing are large and weight between 100MB - 1.5GB
I'm using : MongoDB 3.6.2, mongoose 5.0.6, Node.js 8.9.4

Would love some help
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Keyang/node-csvtojson/issues/236#issuecomment-367632968,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABCs98PMjvbLPDt5kn4ubTHhpc3DHqrQks5tXT2ygaJpZM4SGu3n
.

Hi @Keyang , could you please provide a short example on how i can use the json event in that custom writable?

I will update the readme for this

I am proposing to remove workerNum in next major release and add background process instead to allow multiple csv files processing with multiple cpu cores.
https://github.com/Keyang/node-csvtojson/issues/248
So if you have 48 vCpus you could simultaneously process 47 csv files with this feature.

Hi,
Please checkout Asynchronously Process section here
https://github.com/Keyang/node-csvtojson#asynchronouse-result-process
For your situation you can do:
csvToJson({
    maxRowLength: 65535
}).fromFile(csvFilePath)
.subscribe(async (json)=>{
   const storeResult=await db.insert(json)
})

I have temporarily removed support of workerNum in v2 as workers created too much overhead on inter process communication.
The background is the at the same situation. If you are building a node.js based web service, it would probably be better to use  built-in cluster feature to utilise multiple cores.
I will add in another way to support multiple cpu cores for parsing fromFile in future as seems divide file into multiple chunk is the only proper way to parse in parallel.
~Keyang

Great, thank you!
Can't wait for parallel parsing, not sure i would go for cluster right now, but i'll definitely look into it!


Localize DataAnnotations validation messages in v 1.1.0

I have the solution applied in #286 by @ryanbrandenburg,  specifically:
In the class startup.cs
services.AddLocalization(options => options.ResourcesPath = "Resources");
services.AddMvc().AddDataAnnotationsLocalization(options =>
            {
                options.DataAnnotationLocalizerProvider = (type, factory) => factory.Create("RecursosGenericos", location: null);
            });

And in the Resources folder I have messages with the same keys as those defined in the core:

and works correctly on my local computer but in my test environment (Windows server 2012 r2 standard) does not work. It should be all like in local since to publish I use the vs.
Dotnet local version:

Dotnet test version:

In the ISS the Resources folder is not created, but if the folder is created it is with the resources file dll

Is the Resources folder not creating after your changes or in specific RID?

When you say the Resources folder is not created, do you mean just that the folder named "Resources" isn't created and you have culture specific folders instead? Because that's expected from a publish folder, all the .resx files have been compiled into those culture specific .dll's.
If you clone your repo onto your test environment and build it there rather than publishing it, does it work then? What about if you publish into and run from your development environment?
I tested general resource files in publish by publishing samples/LocalizationSample and it worked just fine, so there must be something more to this scenario. I assume you've double checked that the iteration of your project that's working on your dev box is the same as the one that's failing on the test box?

When you say the Resources folder is not created, do you mean just that the folder named "Resources" isn't created and you have culture specific folders instead?

Yes

I tested general resource files in publish by publishing samples/LocalizationSample and it worked just fine, so there must be something more to this scenario. I assume you've double checked that the iteration of your project that's working on your dev box is the same as the one that's failing on the test box?

I have also tested and it works on my test server.
I've tried replicating the example project code in my project and my development environment works, but in the test environment it does not work. The strange thing is that in version 1.0.1 if it works.
This is my
project.json.txt

Yes, you must provide SupportedUICultures and SupportedCultures in order for things to be properly looked up from their resources. This issuemight shed a little light on the history of that decision. As for compatibility between 1.0.1 and 1.1.0 have you confirmed that when you revert your references to 1.0.1 while changing minimal other code the behavior reverts to what you expect? If so it would be great if you could throw a simplified version of your project up on a github repo so we could look into it.

As best we can tell the issue is that the server has a different default locale than the local machine. By default .NET will choose the OS's language. It is always best to explicitly specify the expected language/locale in startup.cs.


MudMenuItem: Adds CloseMenuOnClick parameter

Description
Adds a simple parameter to the MudMenuItem called CloseMenuOnClick that prevents the menu from closing when the item is clicked on if set to "false" (by default it's "true", so this doesn't break existing behavior)

How Has This Been Tested?

Tested by running docs, visually and added unit test
Types of changes

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

Checklist:

[x] The PR is submitted to the correct branch (dev).
[x] My code follows the code style of this project.
[x] I've added relevant tests.

Hi @ferraridavide, thank you for the pull request. I appreciate your contribution. However, could you please include a bUnit test for this feature as well?

Sure, i'll look into this, also, does "CloseMenuOnClick" work for a parameter name? any suggestions on that?

Sure, i'll look into this, also, does "CloseMenuOnClick" work for a parameter name? any suggestions on that?

Hi @henon, what do you think about parameter name? Don't we use something like XYZHandlerPreventDefault?

@ScarletKuro added the test
Sorry for the conflict, i had an old fork of MudBlazor as i had another PR open, is this ok?

Sorry for the conflict, i had an old fork of MudBlazor as i had another PR open, is this ok?

If you're not familiar with how to rebase your changes to the latest version, then I guess it's alright to open a new pull request instead.

@ScarletKuro should be all good to go now!

Thanks @ferraridavide!

When I first looked at the name CloseMenuOnClick I thought that it means the menu closes when a menu entry is clicked? The doc-string says it closes when the button is clicked. If the latter is the case I would suggest calling the parameter simply Toggle.

This adds the ability to prevent the menu from closing when clicking on the menu item (by default it closes on click)
So, to make the menu not close, CloseMenuOnClick must be set to false, by default it's true
Honestly i'd prefer the property to be inverted, so that true means that the menu stays open, and the default is false, but i can't think of a good name for this

OK, then i would suggest the name AutoClose

Not merging right ahead to give @Mr-Technician a chance to look over this as well.

Thanks! @ferraridavide


Fix QueryFrontend bug

fixes #456

Can one of the admins verify this patch?

jenkins ok to test

Thanks for tracking this down

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1289/
Test PASSed.


Fix & break up the test for Part 01 Step 20

From j1939-84 created by mmschaefer: SolidDesignNet/j1939-84#49
Unit tests for Part 01 Step 20 need to broken down to one error per test and the test need to be update to cover all lines of code.  Verification to the latest version of the spec (issued 6/24/2021) is also included here.

[x] Break up test
[x] Added additional tests
[x] Verified to latest version issued June 24, 2021 Specification


Deploy to Heroku Button

It would be super useful if we could get a Deploy to Heroku button which would enable users to easily deploy your software to a Heroku instance without ever leaving the web browser. And with just a little configuration on the users end they'll have something running almost instantly. I propose the button because it is ideal for communities who need to make decisions quickly with the flexibility of something like Heroku.
It's very simple to do, just make sure that an app.json file is located in the repo root directory. More about Heroku deploy buttons here.

Hi @spencerthayer , we'd love it if you could submit an app.json for CouchDB to the repo. We'd certainly merge such a pull request if you can work one out.
Apache CouchDB is a volunteer project and I don't think anyone on the project right now has the bandwidth to do this, especially since the process to build CouchDB is rather convoluted. (See our apache/couchdb-ci, apache/couchdb-pkg or apache/couchdb-docker repositories to see what it takes to build CouchDB from scratch.)

I'll give it a shot!

Closing for inactivity, do reopen with a PR.


SM1_A, SM1_D

Descriptors 'SM1_A', 'SM1_D' are not calculated when calculating through
`
from mordred import Calculator, descriptors
Calculator(descriptors)
`

Thank you for your comment. And I am sorry for causing your confusion.
These descriptors were removed from preset in 9ee6d37.
SM1 is sum of eigenvalues. It is same as trace (sum of diagonal components). Diagonal components of adjacency matrix (_A) and distance matrix (_D) are zero. Thus, SM1_A and SM1_D are provide zero for all structure. Existance of these descriptors cause confusion. From this, it is decided that SM1_A and SM1_D are removed from preset in v1.1.0-beta.
However, SM1_A and SM1_D can calculate:
option1: add descriptors explicitly
calc = Calculator(descriptors)
calc.register(AdjacencyMatrix("SM1"))
calc.register(DistanceMatrix("SM1"))

option2: use descriptor versioning
calc = Calculator(descriptors, version="1.0.0")

Thanks,

Thanks for the answer.


⚠ Bofrost.es has degraded performance

In 5ec8a12, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1793 ms

Resolved: Bofrost.es performance has improved in 5336e23 after 6 minutes.


How many epohs should I train?

I am new in this field. And I used @AlexeyAB 's repository before, the training process seems different. So any ideas?

Since the training uses Early-Stopping, you can set a big epoches, because it will stop as soons as the loss get high again.


@unique field attribute is enforced by the formatter

Bug description
@unique field attribute is enforced by the formatter, even for self-relations. Everything works fine without @unique, the linter/formatter doesn't highlight an issue about this situation. So, I assume this is meant to be a DX improvement for one-to-one relations, but it's making it hard to work with self-relations. As a workaround, one can give up on the advantages of the Prisma formatter and format their code manually.
How to reproduce

Use the schema provided below in the Prisma information section.
Run prisma format or let the Prisma VS Code extension do the formatting.
See the enforced @unique field attribute.

Expected behavior
The formatter shouldn't enforce the @unique field attribute, at least not when it detects it's a self-relation by comparing the field's type name against the model name.
Prisma information
generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["interactiveTransactions"]
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

model Commit {
  id String @id @default(uuid())

  successor     Commit? @relation("CommitHistory")
  predecessor   Commit? @relation("CommitHistory", fields: [predecessorId], references: [id])
  predecessorId String? // @unique gets added automatically by the formatter, but everything works fine without it
}

Environment & setup

OS: Windows 11 21H2 (Build 22000.593) WSL (Ubuntu 20.04.4 LTS on Windows 10 x86_64)
Database: PostgreSQL
Node.js version: v16.14.0

Prisma Version
prisma                  : 3.12.0
@prisma/client          : 3.12.0
Current platform        : debian-openssl-1.1.x
Query Engine (Node-API) : libquery-engine 22b822189f46ef0dc5c5b503368d1bee01213980 (at<EMAIL_ADDRESS>Migration Engine        : migration-engine-cli 22b822189f46ef0dc5c5b503368d1bee01213980 (at<EMAIL_ADDRESS>Introspection Engine    : introspection-core 22b822189f46ef0dc5c5b503368d1bee01213980 (at<EMAIL_ADDRESS>Format Binary           : prisma-fmt 22b822189f46ef0dc5c5b503368d1bee01213980 (at<EMAIL_ADDRESS>Default Engines Hash    : 22b822189f46ef0dc5c5b503368d1bee01213980
Studio                  : 0.459.0
Preview Features        : interactiveTransactions

While finalizing the bug report, I figured I should have been using one-to-many self-relations instead 🤦. I decided to submit it anyway(and close it) for anyone else including my future self.


incorrect window dimensions reported

I suppose this is a race condition issue.
On an android device (Samsung Galaxy Tab Note N7000) I've consumed this plugin. I have attempted to obtain window dimensions right after screen.lockOrientation() is called, and later in a window.setTimeout() callback. (All this in the same page).
I have observed that they yielded different values.
What this plugin actually needs is a state which tells developers that its safe to obtain window dimensions. I think this discrepancy is due to the fact that the code has tried to access the window dimensions before the WebView has completed modifying the state of window object.

+1 I have the same problem here, even when listening to onorientationchange, the reported height and width are incorrect

@SebT my first suggestion would be to change the device. Because this usually is an indication that something else is also broken or will break. (My experience).
Otherwise, you can put the logic, to test if it is safe to take it, in a setInterval which fires repeatedly, until that test fails.
var k =  {w: window.innerWidth, h: window.innerHeight }; //unsafe access
var callBack = function() {
    //its safe to access here.
   var d = {w: window.innerWidth, h: window.innerHeight };
};
var testAgain = true;
var tmr = setInterval(function(){
    if(testAgain) {
        testAgain = (k.w !== window.innerWidth);
        k.w = window.innerWidth;
    }
    else {
        //fire the callback
        callBack();
        clearInterval(tmr);
    }
}, 500);

@deostroll Yes I did something similar, here's the code:
var preRotation = {w: window.innherWidth, h: window.innerHeight};
rotationCheck = setInterval(function () {
  if (preRotation.w !== window.innerWidth || preRotation.h !== window.innerHeight) {
    clearInterval(rotationCheck);
    callback(); // Orientation change done, do your thing
  }
}, 100);

@deostroll, @SebT - if I understand correctly, it sounds like the orientationchange event is fired before the orientation change is complete, resulting in the window dimensions being effectively stale at the time that the event is fired?  This sounds like a bug that would be worth looking into...

Migrated to Apache Cordova JIRA CB-11356


Tool explodes with blank images

If you try to build an asset from a completely blank image, it explodes messily. Understandable because it tries to pack a palette with zero entries, but it should probably be able to detect this more nicely. The attached is a no-content png which will break it nicely :)

Fixed by #14 I think.

Looks right- there's a test case for this now! Thanks!


Account for pull_request_target trigger when getting the sourceVersion

Issue #, if available:
Fully addresses https://github.com/aws-actions/aws-codebuild-run-build/issues/36 and https://github.com/aws-actions/aws-codebuild-run-build/pull/40
Description of changes:
The change in https://github.com/aws-actions/aws-codebuild-run-build/pull/40 introduced special treatment for pull_request event by fetching the head commit of the pull request but does not take into account the pull_request_target event, which is also a pull request and has identical context data.  This leads to the event being treated differently and instead of fetching pull_request.head.sha it fetches GITHUB_SHA from the environment variable. Looks like the pull_request_target was introduced on August 2020 according to this blog post, this was after https://github.com/aws-actions/aws-codebuild-run-build/pull/40.
The proposed change in this PR accounts for the two possible events that will be triggered by a pull request - pull_request and pull_request_target.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Check any applicable:

[ ] Were any files moved? Moving files changes their URL, which breaks all hyperlinks to the files.

Why are you proposing handling pull_request and pull_request_target events the same and using the head SHA?  pull_request_target event runs with the context of the base branch unlike the pull_request event (https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target).  There are very specific use cases where people require referencing the base branch in their deployment

Hey @aolds1 👋🏾  , you are right. I hadn't thought this through and the implications of the change. Closing this. I also think fetching the head sha from the pull request is problematic even for the pull_request trigger and we should always pull in the sha from GITHUB_SHA provided in the environment variables.


Stuck while downloading

Hello, I've tried to download the new version after a long time of not using the program, and after I open it, it downloads 2 files, and gets stuck at 100% at the second file, is there anything I can do to fix this?

@MarieRose1301 Uninstall older mishiro completely first and try again.

@MarieRose1301 Uninstall older mishiro completely first and try again.

i encountered the same problem and tried what you have suggested... so in my case it doesnt work my friend. i uninstalled completely and checked on the installation folder for 5 times and installed again same problem.
but just to help, here is my network packet interception to help you find the problem
GET /dl/resources/AssetBundles/65/658959d9536a5969d678f77ff9bc2d22 HTTP/1.1
X-Unity-Version: 2018.3.8f1
User-Agent: Dalvik/2.1.0 (Linux; U; Android 7.0; LG-F500K Build/NRD90U)
Host: asset-starlight-stage.akamaized.net
Connection: Keep-Alive
Accept-Encoding: gzip
GET /dl/resources/Sound/7e/7e399284a465be3213ca0ff272d3b851 HTTP/1.1
X-Unity-Version: 2018.3.8f1
User-Agent: Dalvik/2.1.0 (Linux; U; Android 7.0; LG-F500K Build/NRD90U)
Host: asset-starlight-stage.akamaized.net
Connection: Keep-Alive
Accept-Encoding: gzip
GET /dl/resources/Sound/72/72c3f7cd844cc404d83802a4b6d8726d HTTP/1.1
X-Unity-Version: 2018.3.8f1
User-Agent: Dalvik/2.1.0 (Linux; U; Android 7.0; LG-F500K Build/NRD90U)
Host: asset-starlight-stage.akamaized.net
Connection: Keep-Alive
Accept-Encoding: gzip

update:
just for experiment, i tried copying

X-Unity-Version: 2018.3.8f1
User-Agent: Dalvik/2.1.0 (Linux; U; Android 7.0; LG-F500K Build/NRD90U)
Host: asset-starlight-stage.akamaized.net
Connection: Keep-Alive
Accept-Encoding: gzip

used it on fiddler, then open the manifest.csv via note pad (the manifest.csv came from manifest_(some number here).db that is downloaded by mishiro and inside the manifest table which is exported to .csv by db browser), select a target cgss unity 3d file, for example the new cinfest fumika model (head), copy the hash which is in case, 5c4e84d0e2b609e3aeb2a5c7574cd3ca, copy also the first 2 letters of the hash, and make it look like this /5c/5c4e84d0e2b609e3aeb2a5c7574cd3ca and and paste it at the end of https://asset-starlight-stage.akamaized.net/dl/resources/AssetBundles*/5c/5c4e84d0e2b609e3aeb2a5c7574cd3ca** execute fiddler, save response, extract the unity file using some lz4 decompress and it works.
of course, your mishiro is better a million times and easier too. this workaround is too tedious and tiring specially if there's a need to download multiple or all models for 3d rips and backups

Now I have known the reason. I will fix it in v1.9.1.

Now I have known the reason. I will fix it in v1.9.1.

excellent and thank you! now testing :D

@Mejax Thank you all the same! If similar problem occur in the future, you can try launch mishiro in command line, errors will be logged out.

running mishiro in command line <<< guide please my friend so the next time errors pop out, i could post the log instead here. i frequently use your application (since i rip models to convert for use to MMD) so i am sure i will be encountering this errors frequently

@Mejax
Here gives two ways to open command line. (Windows)

win + R and enter cmd.
Open mishiro folder, then edit the path of explorer to cmd and press Enter.

Check whether the Current Working Directory is your mishiro install folder.
if it is, enter mishiro directly and press Enter to run mishiro.
C:\somewhere\you\install\mishiro>mishiro

else you can use cd command to change CWD:
C:\Windows\system32>cd ../..
C:\>cd somewhere/you/install/mishiro
C:\somewhere\you\install\mishiro>mishiro

By the way, you can enter dev in mishiro [HOME] to open chrome devtools. Switch to Console tab to confirm if there is some errors logged out. It may help as well.

It works now, thank you so much


Multi-vault - confirmVaultOnCreate not triggering vault selection when new note is created.

Please select the area your bug applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

[X] Workspace.  VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
[X] Lookup.  Dendron's Lookup Command
[ ] Views.  Dendron Preview, Tree View, Side Panels in the UI
[ ] Schema.  Dendron Schemas
[ ] Pod.  Data import from / export to Dendron
[ ] Publish.  External Site Publish
[ ] Markdown.  Markdown features, such as syntax support and features

Describe the bug
Setting confirmVaultOnCreate to true does not trigger prompt to choose which vault to put note in when creating new note.
To Reproduce
Steps to reproduce the behavior:

Open dendron.yml file in workspace (more visible in file system), or using the Command Palette select Dendron: configure (yaml)'
In file, scroll down to  commands and set confirmVaultOnCreate: to true
Reload VSCode and try to create new Dendron note
See how there is no prompt to choose the vault in which to store new note and if you continue to create the note, it is stored in the default vault.

Expected behavior
A prompt asking you which vault to store your new note in upon setting confirmVaultOnCreate to true.
Screenshots
This screenshot shows how my config has confirmVaultOnCreate set to true

This one shows how creating a new note does not show any prompt as to where the new note should be

This screenshot shows how the created note gets saved in the default vault journal rather than letting me choose to put it in the vault engineering

Desktop (please complete the following information)

OS: Ubuntu
Browser: Brave Browser
Version: Ubuntu version 21.10 Brave Browser version <IP_ADDRESS>

Additional context
Add any other context about the problem here.
Dendron Log file
Please attach the output of > Dev:Dendron: Open Logs here
dendron.log

Thanks @Chisomo-Chiweza for reporting the bug. I can repro this one. We'll let you know when this is fixed.

Awesome
On Wed, Jan 5, 2022 at 2:11 PM Harshita Joshi @.***>
wrote:

Thanks @Chisomo-Chiweza https://github.com/Chisomo-Chiweza for
reporting the bug. I can repro this one. We'll let you know when this is
fixed.
—
Reply to this email directly, view it on GitHub
https://github.com/dendronhq/dendron/issues/2042#issuecomment-1005632443,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APLOAMGFAF72EWFBQVC2ELLUUQYPLANCNFSM5LIDT3VA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
@.***>

@Chisomo-Chiweza I had the same problem and saw this response in another open issue. Toggling the button in the look-up bar seemed to fix my problem albeit temporarily.

Hey @Chisomo-Chiweza, checking if this is still an issue?


[Mobile UI Responsive]

Making Blogs section UI responsive for mobile devices

Could you provide me with Screenshots? @Ayusht777

Go for it!

i want work on this issue.

i want work on this issue.

Go for it! 🚀

hey can you tell me who can work on this issue you have assigned both of us so please
confirm it

okay

@Emondrax007  hey can you tell me you are working on it or not

@pooranjoyb  hey just assigned this issue to me so i can work on it

@pooranjoyb  hey just assigned this issue to me so i can work on it

Drop a PR by tomorrow. @Ayusht777

okay i will do it

hi i am getting this error
Error fetching files from storage: FirebaseError: Firebase Storage: Max retry time for operation exceeded, please try again. (storage/retry-limit-exceeded)
also i added .env file in root directory but blog page is not working

@Ayusht777 Check contributing guidelines and readme.md

hi check the guidelines and done all steps correct but i am getting api error
Error fetching Blogger blogs:
Object { stack: "AxiosError@http://localhost:5173/node_modules/.vite/deps/axios.js?v=22e14b80:375:18\nsettle@http://localhost:5173/node_modules/.vite/deps/axios.js?v=22e14b80:1193:12\nonloadend@http://localhost:5173/node_modules/.vite/deps/axios.js?v=22e14b80:1421:13\n", message: "Request failed with status code 400", name: "AxiosError", code: "ERR_BAD_REQUEST", config: {…}, request: XMLHttpRequest, response: {…} }

hi i am getting this error Error fetching files from storage: FirebaseError: Firebase Storage: Max retry time for operation exceeded, please try again. (storage/retry-limit-exceeded)
also i added .env file in root directory but blog page is not working

Okay, if you're working on /blogs page, you'll have to add your own Blogger API key as an environment variable.

so how to get the api key

can you guide me

can you guide me

Okay, so you'll need a Blogger account for this.

Find & Copy the Blogger API key of your account
Then in the .env file create a variable called VITE_API_KEY and add your API KEY here.

Then you'll be able to see the Blogs page and it's content.
 Search Google for Blogger.com


Create futuredsp crate

This creates the futuredsp crate, which exists to contain high-throughput implementations of core DSP algorithms in a convenient-to-use API.
Currently it only contains a non-resampling FIR filter (real and complex samples with real taps). Additionally it has a separate benchmark setup to measure the algorithm's performance directly.

Closing since this is a subset of #35


fix: only run test coverage on master branch.

As @tboerger mention https://github.com/go-gitea/gitea/pull/1783#issuecomment-304476001. drone-coverage plugin doesn't support command attribute so we change test command behavior. Just run test coverage on the master branch.
cc @tboerger @lunny @bkcsoft

cc @ethantkoenig and need @lunny resign the drone sig file.

@appleboy I think you already had resign drone permission.

@tboerger @lunny Done. Please help to review.

LGTM

LGTM


Create assertions for private fields

It would be nice if you could generate assertion classes which include assertion methods for private fields.
The assertion could make use of the FieldSupport introduced here: https://github.com/joel-costigliola/assertj-core/issues/144
Maybe some option should be provided to disable this feature because i could imagine that not everyone would be interested in seeing those kind of assertion methods

But how would the assert class access the private fields ?

Grade actualGrade = FieldSupport.EXTRACTION.fieldValue("grade", Grade.class, actual);
    if (!Objects.areEqual(actualGrade, grade)) {
      failWithMessage(assertjErrorMessage, actual, grade, actualGrade);
    }

for example?

Do you have a real life use case for it ? I'm guessing you can't change the class to make the private field accessible.

Well. It's kind of a theoretical thing. I'm implementing an application and strictly following the tell don't ask principle. I don't want to pollute the production code with getter methods just for the tests. My tests encapsulate the domain logic quite well but I want a type safe way of asserting my domain objects by mocking the repositories. I realise that I cannot achieve true type safety but if I can use generated assertions, I could minimise the impact of changed properties in the domain model.

The way I see it, there are two posibillities. Either we create a new set in the ClassDefinition containing private fields, or we add an attribute to the DataDescription class (which is the parent of FieldDescriptions and GetterDescriptions) indicating that it's a private field.
Then when creating the template, we can choose to create completely new templates or we just replace the one line to fetch the actualObject:
Grade actualGrade = FieldSupport.EXTRACTION.fieldValue("grade", Grade.class, actual);.
What would be your preferred solution? Adding the property to indicate that it's private and then replacing the one line seems like the easiest solution?

Sorry for the late reply.
I think creating assertions for private should be an option (but not the default one), when enabled we need to deal with duplicate assertion generation that would occur if we generate assertions for getters and private fields.
For the design, I would probably add isPublic boolean to FieldDescription and then at generation time, filter the fields according to the configuration value.

done but need support in the maven plugin


How to check npm audit via Jenkins plugin?

I've got a NodeJS project and I was trying to write a Jenkinsfile to check the dependencies.
Both package.json and package-lock.json are checked in.
I tried this, but the resulting xml has an empty list of dependencies.
I also tried without specifying the scanpath, then the depenency list was all of my source files, and none of the actual dependencies.
pipeline {
  agent any
  tools { nodejs 'v10.15.3' }
  stages {
    stage('Audit') {
      dependencyCheckAnalyzer scanpath: '${WORKSPACE}/package-lock.json',
                              datadir: '/home/jenkins/.m2/repository/org/owasp/dependency-check-data/3.0/',
                              outdir: '', suppressionFile: '', hintsFile: '', zipExtensions: '',
                              isAutoupdateDisabled: false, includeHtmlReports: false,
                              includeVulnReports: false, includeJsonReports: false, includeCsvReports: false,
                              skipOnScmChange: false, skipOnUpstreamChange: false
      dependencyCheckPublisher unstableTotalAll: '0'
    }
}

Plugin version is 4.0.2.

Scanpath is not necessary as it will default to ${WORKSPACE} if not specified.
That's an interesting place for datadir. I would not advise that location as the data thats stored in thge datadir has nothing to do with Maven.
Ensure that the NPM Audit analyzer is enabled in the Jenkins global configuration.

Scanpath is not necessary

As I said, with the default it includes all the source files as "dependencies", and nothing from package-lock.

That's an interesting place for datadir

Most other builds are using the maven plugin. This is an easy way to save space on copies of the database.

Ensure that the NPM Audit analyzer is enabled

It is, yes.

Was a Groovy error. Using single quotes means that ${WORKSPACE} is not expanded.
🤦♂

No need to specify the scanpath in my case.
Working syntax :
  stages {
    stage('dtrack') {
      steps {
        dependencyCheckAnalyzer datadir: '/a/path/to/store/jsrepository', hintsFile: '', includeCsvReports: true, includeHtmlReports: true, includeJsonReports: true, includeVulnReports: true, isAutoupdateDisabled: false, outdir: '', scanpath: '', skipOnScmChange: false, skipOnUpstreamChange: false, suppressionFile: '', zipExtensions: ''
      }
    }


Detect anonymous user

After creating a clusterrolebinding for the user system: anonymous, I didn't see in the list of Risky report.

Thanks for reporting. Could you please provide more context and perhaps a few examples of what you did and the results you got?


Alternate Work Centre

some more details on this option would be great. How dioes this function help or add the to process?
[Enter feedback here]

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

ID: 690eac98-0b6d-2a82-6cd4-7e0ab849ba34
Version Independent ID: d6f47217-042a-ca86-87f0-dede1c9a3606
Content: Set Up Work Centres and Machine Centres - Business Central
Content Source: business-central/production-how-to-set-up-work-and-machine-centers.md
Service: dynamics365-business-central
GitHub Login: @SorenGP
Microsoft Alias: edupont

Hello,
The alternate work center setting is for information only, and isn't actually used by any processes. It's just to let production planners know which work center to use if the primary work center isn't available for some reason. I've added a small mention of that in step 5 of the "To set up a work center" procedure in the article, and we'll publish the updated soon.
I've also added a task to our backlog to improve the tooltip for the Alternate Work Center field. That should also help clarify its purpose. Tooltips live in the code though, so that fix won't be available until the next minor update.
Thanks for bringing this up.


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-main" workflow

Codecov Report

Merging #726 (f7af304) into main (7b2df00) will not change coverage.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@           Coverage Diff           @@
##             main     #726   +/-   ##
=======================================
  Coverage   95.69%   95.69%
=======================================
  Files           1        1
  Lines         395      395
  Branches       53       53
=======================================
  Hits          378      378
  Misses         17       17


Google Smart Device Management

Hi,
First thanks for the great work!
I'm looking to use this library with the Google Smart Device Management API - Get an access token.
How do I add a custom code parameter, and redirection url?
Thanks!

I just added code value to the client json file.  All good now.

Glad you found a solution! Yes, in general the redirect URL is taken from the client secret information. I think usually this is also embedded into it by the developer console.


Fix flaky template tests

https://github.com/gopasspw/gopass/pull/2117#issuecomment-1015261881

Example input that broke the test:
Running md5crypt.Validate("foobar", s) for s equal to:
{MD5-CRYPT}$1$?0$+??$HKyWvlSjUTJfUFAZXI5wt1

Okay, so broken down this is:
{MD5-CRYPT} -> prefix
$1$ -> magic
?0$+??  -> the salt
$ -> separator
HKyWvlSjUTJfUFAZXI5wt1 -> the hash encoded using
But here the salt contains a $ char.
So the problem probably comes from the md5crypt.Validate function which is splitting on $:
	if len(hash) < 15 || string(hash[0:14]) != "{MD5-CRYPT}$1$" {
		return false, ErrNotMd5cryptPassword
	}

	data := strings.Split(hash[14:], "$")

	newhash := crypt([]byte(password), []byte(data[0]))

Because then data[0] is just ?0 instead of being the whole salt.
So whenever we have a hash that contains $ it will fail to validate properly.

Confirmed: https://go.dev/play/p/tr4BKz0sHh0


AttributeError: 'SendToUnrealPreferences' object has no attribute 'multicast_ttl'

Addon:Send to Unreal
I clicked Pipeline > Export > Send to Unreal
OS: Windows
Addon Version: Send to Unreal 2.4.5
Blender Version:.Blender 4.2
Unreal Version: Unreal 5.32
Error Log:
Python: Traceback (most recent call last):
File "C:\Users\Waldo\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\send2ue\core\utilities.py", line 799, in is_unreal_connected
unreal.bootstrap_unreal_with_rpc_server()
File "C:\Users\Waldo\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\send2ue\dependencies\unreal.py", line 193, in bootstrap_unreal_with_rpc_server
result = run_commands(
^^^^^^^^^^^^^
File "C:\Users\Waldo\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\send2ue\dependencies\unreal.py", line 160, in run_commands
remote_exec = remote_execution.RemoteExecution()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Waldo\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\send2ue\dependencies\remote_execution.py", line 60, in init
def remote_nodes(self):
^^^^^^^
File "C:\Users\Waldo\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\send2ue\dependencies\remote_execution.py", line 38, in init
Configuration data for establishing a remote connection with a UE4 instance running Python.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'SendToUnrealPreferences' object has no attribute 'multicast_ttl'

Heyo just to confirm, is this Send2UE 2.4.5 or 2.4.6?

It's 2.4.5
The new 2.4.6 version didn't work for me with the "module not found" error mentioned in the other issue

This probably happened when uninstalling the installing the old version with the same blender runtime. Can you try uninstalling, shutdown blender, start blender, then install the 2.4.5 addon? Let us know if that works. We are fixing 2.4.6

Closing this out. Re-open if the issue is not resolved. Thanks


Control view that moved upon avoiding

I have a dummy app based on my current use case.
I need the image view to go up (it's fine if it goes below the top UIView. Just don't let the image resize when the keyboard shows.
What should I do
TestIHImage.zip

Solved it by changing constraints priority and set a height constraint at the appropriate timing

Sorry I couldn't look into this earlier, had some high priority stuff to deal with at work
Glad you got it sorted
Fraser


Consolidation affecting Infra Stability

Description
What problem are you trying to solve?

karpenter cannot able to find required number of nodes exactly based on pending pods requirements. This is because of
karpenter don’t know what is exact memory capacity provisioned in the kubernetes node. It will always consider memory capacity as actual memory with 0.75 % overhead. (as this overhead percentage can be modified in cluster level)

We have calculated the memory for few instances type with Overhead of 0.025.

Due to this, karpenter cannot able to provisioner correct number of nodes and there might be chances of consolidation happening while we scaled upto the particular node count. and infra took sometime to get stabilize [to get complete a consolidation]

While working with multiple instance types, karpenter always replacing one node with another cheaper node. Due to this pods moving to other nodes [and infra will be not stable]

For example:
My cluster is running with below worker nodes.
c5.9xlarge => 10 machines (300 pods) [specified limit for 10 machines capacity in provisioner]
c5.12xlarge => 5 machines (200 pods) [specified limit for 10 machines capacity in provisioner]
If the workloads running in c5.9xlarge instances reduced from 300 to 150 nodes. and few of the c5.9xlarge instances are removed. Now cluster looks like below
c5.9xlarge => 5 machines (150 pods)
c5.12xlarge => 5 machines (200 pods)
Now karpenter is doing consolidation by replacing c5.12xlarge instance to c5.9xlarge (cheaper node) and pods get moved to other nodes.
Now cluster looks like below
c5.9xlarge => 10 machines (300 pods)
c5.12xlarge => 2 machines (50 pods)
I know, karpenter performing this consolidation for cost reduction purpose. but it affects the infra stability.  If we get a control to disable single / multi node (replace) consolidation, it will be helpful.

By default ttl seconds for consolidation is 15 sec. Have a control to set this ttl, help us to reduce the deprovisioning actions.

For example:
I was running a deployment with 200 pods in 10 nodes and scaling down 100 pods [5 nodes can be removed]
and within 30 sec 100 new pods are provisioned by other workload. so again 5 nodes getting provisioned by karpenter.
How important is this feature to you?

Calculating exact value (cpu, memory) provisioned by ec2 instance, which helps karpenter to provision a node very effectively. Otherwise, configuring vmOverheadPercentage provisioner level helps us to tweak this calculation.

Getting control for below configuration will be more helpful for who are all more concerned about infra stability instead of infra cost.

Setting TTL value for consolidation
To disable a consolidation by replace.

Hi @sekar-saravanan, thanks for opening this issue. I'm going to close this issue as a duplicate since it looks like this issue captures two other issues that are already open: #1738 and #3607

@jonathan-innis - any idea about get a control to disable single / multi node (replace) consolidation.