Correct the syntax of the commands.

Please correct the syntax of the commands, is not with one quote (') is with two quotes ("), for example here: azcopy copy 'https://<storage-account-name>.file.core.windows.net/<file-share-name>/<directory-path>?<SAS-token>' '<local-directory-path>'. If you use one quote, the following error appears:
failed to parse user input due to error: the inferred source/destination combination is currently not supported. Please post an issue on Github if support for this scenario is desired
'ss' is not recognized as an internal or external command,
operable program or batch file.
'srt' is not recognized as an internal or external command,
operable program or batch file.
'sp' is not recognized as an internal or external command,
operable program or batch file.
'se' is not recognized as an internal or external command,
operable program or batch file.
'st' is not recognized as an internal or external command,
operable program or batch file.
'spr' is not recognized as an internal or external command,
operable program or batch file.
'sig' is not recognized as an internal or external command,
operable program or batch file.
Using two quotes, like this: azcopy copy "https://<storage-account-name>.file.core.windows.net/<file-share-name>/<directory-path>?<SAS-token>" "local-directory-path>", the file is transfered without issues.

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

ID: cd2ee3a6-a4ae-068a-1a7e-9a81877e1a21
Version Independent ID: 57abfa84-1c27-6dcc-f757-bc3c90e6e6b0
Content: Transfer data to or from Azure Files by using AzCopy v10
Content Source: articles/storage/common/storage-use-azcopy-files.md
Service: storage
Sub-service: common
GitHub Login: @normesta
Microsoft Alias: normesta

@Wis10 Thanks for your question. We are checking on this and will respond to you soon.

@Wis10 PR merge request has been raised.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue..


[Automation] Restore Power off State for Pre Code update process

We are seeing this issues where we are doing poweroff and reboot to prepare for update and we found that the system policy due to poweron restore policy if set to HOST_BOOTED results in failure where codeupate pre setup expect it to be BMC_READY.
We would need to ensure the Host policy is set to Poweroff before doing code update to avoid failure..

This sounds like a test expectation problem?


Bug in Data Validation and Backend Issues in Contact Us Section. {GSSoC '23}

Detailed Description:
I would like to report a bug related to data validation and backend issues in the Contact Us section of our application. Currently, the data validation process is not functioning correctly, and there are issues with sending messages through the backend.

Context:
The Contact Us section is crucial for users to reach out and communicate with our team. However, the existing bugs in data validation and backend functionality hinder users from successfully submitting their messages and receiving timely responses. Resolving these issues is vital to maintain effective communication with our users.
This change is important to me as it ensures a seamless user experience and allows us to address user inquiries and concerns promptly. By fixing the data validation and backend issues, we can restore the functionality of the Contact Us section and provide reliable communication channels for our users.
Possible Solution:

Review the code responsible for data validation in the Contact Us form to identify the specific bugs causing the issues.
Debug and fix the data validation logic to ensure that all required fields are properly validated and any invalid input is flagged.
Inspect the backend infrastructure and API endpoints used for sending messages from the Contact Us form.
Identify and resolve any issues related to sending messages through the backend, such as misconfigured API endpoints or errors in message transmission.
Perform thorough testing to verify that the Contact Us form is functioning correctly, both in terms of data validation and successful message delivery.

Additional Information:
Please assign this issue to me under GSSoC '23 so that I can start working on it.

@anmode I think issue #172 has nothing to do with this issue as it deals with the frontend and CSS.

no update


Is it possible to temporarily remove the line (can we call it winbar?) at the top that shows class names, function names, etc.?

Is it possible to temporarily remove the line (can we call it winbar?) at the top that shows class names, function names, etc.?
As shown in the attachment (see SS-1.png), after installing lspsaga, class names, function names, etc. are displayed. Normally this feature is very convenient, but there are times when I want to turn it off temporarily. For example, when using GitBlame or GitDiff with "dinhhuy258 / git.nvim",  the line is shifted by one (see SS-2.png).
Can you prepare a suitable function ? (Or has it already been prepared?, if so please let me know the way.)

symbol_in_winbar = {
      ignore_patterns = string or table when filename find it winbar not show on this buffer


Session 6 tasks

This pull request introduces significant changes to the Chirp.Core and Chirp.Razor projects to integrate Entity Framework Core for database operations. The most important changes include adding new classes for Author and Cheep, creating a repository for database interactions, and setting up the database context and migrations.
Database Integration:

Added Microsoft.EntityFrameworkCore.Design and Microsoft.EntityFrameworkCore.SQLite package references to Chirp.Core.csproj and Chirp.Razor.csproj for Entity Framework Core support. [1] [2]

Created ChirpDBContext class to manage database context, including DbSet properties for Cheep and Author.

Model and Repository Setup:

Introduced Author and Cheep classes to represent the database entities. [1] [2]

Added CheepDTO class to serve as a Data Transfer Object for Cheep.

Implemented CheepRepository class to handle CRUD operations for Cheep and Author.

Interface and Service Updates:

Defined ICheepRepository interface to abstract the repository operations.

Updated ICheepService interface to use CheepDTO instead of CheepViewModel.

Migrations:

Added initial database schema migration and an additional empty migration for future changes. [1] [2] [3] [4]

These changes collectively enhance the project by integrating Entity Framework Core, simplifying database operations, and improving data handling through DTOs.

It is going to fail the tests because the azure tests are different


Could not find class io.confluent.connect.avro.ConnectDefault

I am using a jdbc source connector with query mode. It seems that without a specified table name, the schemas registered in the schema-registry for the record key and record value have empty schema names and are being assigned the default name "ConnectDefault" as defined in Confluent's AvroData class https://github.com/confluentinc/schema-registry/blob/master/avro-converter/src/main/java/io/confluent/connect/avro/AvroData.java
When running a Kafka Streams application using generated avro sources and SpecificAvroSerde, I am getting the error:
Exception in thread "streams-app-6e39ebfd-db14-49bc-834f-afaf108a6d25-StreamThread-1" org.apache.kafka.streams.errors.StreamsException: Failed to deserialize value for record. topic=topic-name, partition=0, offset=0
  at org.apache.kafka.streams.processor.internals.SourceNodeRecordDeserializer.deserialize(SourceNodeRecordDeserializer.java:46)
  at org.apache.kafka.streams.processor.internals.RecordQueue.addRawRecords(RecordQueue.java:84)
  at org.apache.kafka.streams.processor.internals.PartitionGroup.addRawRecords(PartitionGroup.java:117)
  at org.apache.kafka.streams.processor.internals.StreamTask.addRecords(StreamTask.java:474)
  at org.apache.kafka.streams.processor.internals.StreamThread.addRecordsToTasks(StreamThread.java:642)
  at org.apache.kafka.streams.processor.internals.StreamThread.runLoop(StreamThread.java:548)
  at org.apache.kafka.streams.processor.internals.StreamThread.run(StreamThread.java:519)
Caused by: org.apache.kafka.common.errors.SerializationException: Error deserializing Avro message for id 2
Caused by: org.apache.kafka.common.errors.SerializationException: Could not find class io.confluent.connect.avro.ConnectDefault specified in writer's schema whilst finding reader's schema for a SpecificRecord.

When running a sink connector reading from the topic there are no issues. The exception is only caused in the streams layer with the deserialization.
Am I missing a class named ConnectDefault or can I specify somewhere in the source connector a schema name with a different namespace?

Hi @jessicashin , Is the above issue is resolved? If yes, could you please provide the solution?

@JanardhanVarikuti I was able to get the streams app working initially when reading from a single topic by just changing the avro schema file to have those default values: "name": "ConnectDefault" with "namespace": "io.confluent.connect.avro". So my generated class was just called ConnectDefault.java
In order to have multiple streams in the same application, you can use the Kafka SMT (Single Message Transforms) SetSchemaMetadata in each source connector config to set the schema names.
transforms=SetSchemaName
transforms.SetSchemaName.type=org.apache.kafka.connect.transforms.SetSchemaMetadata$Value
transforms.SetSchemaName.schema.name=MyClassName

This way you can use "name": "MyClassName" in the avro schema file. But since you cannot specify the namespace with SMT, you will need to put your streams app in the default package and omit the namespace in the avro schema files for your generated sources.

You can add your package under name. e.g:
transforms.SetSchemaName.schema.name=com.mysolution.MyClassName

Guys, thank you. I love it when I found someone struggling for exactly the same thing.
I used your combined advices @dekelmos and @jessicashin:
transforms=SetSchemaName
transforms.SetSchemaName.type=org.apache.kafka.connect.transforms.SetSchemaMetadata$Value
transforms.SetSchemaName.schema.name=com.mysolution.MyClassName

Thank you.


solve floating precision bug

Fix price too precise errors
Fixes #922

:+1: awesome!

Will try to release a new stable version soon.

@askmike might want to test for that precision bug in gdax to disappear. I'm running gdax now to make sure no precision bugs come up but I only have one scenario set up (ETH-EUR). Any tips on how to test this better? testing with actual money seems like a living-on-the-edge way of testing. But because the bug is on the trading side, I don't see how I can test it otherwise.


extend/os/mac/keg_relocate: fix duplicate RPATH handling

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew typecheck with your changes locally?
[ ] Have you successfully run brew tests with your changes locally?

ruby-macho chokes on changing duplicate RPATHs, so we need to strip the
duplicates before trying to relocate them.
This continues #11405. We need this to unblock
Homebrew/homebrew-core#91224.
While we're here, let's get rid of HOMEBREW_RELOCATE_RPATHS. We've
been using it for nearly a year with essentially no problems (barring
pdnsrec), so I think it is safe to do unconditionally.

Review period skipped due to critical label.

Ah, I realised we only need to traverse a file's rpath's only once instead of twice here. Let me test that...


DId not work? why?

I use the component in my project, but  it didn't seem to be working? why?
it's a example:

I was careless


Lexer causes Windows build to fail

The reason is simply because in the current state, we only support lib GMP on Unix/Linux (for now at least).  To fix Windows build, we should reinstate changes prior to commit 'a87104cf050128521c8f5c69b072fb7ed1d4dcd1', but just for the Lexer.

With PR #65 merged, this issue is considered resolved.


Initialize rate limiter balance with maxBalance

This ensures that GuaranteedThroughputProbabilisticSampler will always sample a new operation the first time it sees it.

Coverage remained the same at 83.951% when pulling d6d515f60b343c0a9d59b9b47978eca7bd75357a on first_call into 570367f36321d9287c10775747b3c05414ff37a3 on master.


Add a way to run Vibingway with Docker

All tested & working locally, have also written  some basic documentation as well on how to use Docker with Vibingway. Let me know if you want any changes or explainations.

There are some minor issues with the documentation, but I'll get those sorted. Thanks for the help, going to bother you someday regarding Docker again.


PoC: Form without formik or yup

This PR addresses the same ticket as #1063 but without adding dependencies. This is just a prrof-of-concept, but it works exactly like #1063. Any feedback is welcome!

Nice, that's like basically the same code 👍

This seems like a good approach! It looks like the other ticket (https://github.com/artsy/emission/pull/1063) also has dependency-free validations, but in a slightly different form (and with more granular validations). It's hard to compare them because this only includes a validation for presence so I'm curious how this approach scales.
Also side question-- do you feel like the form is going to become more complex and would benefit from a library in the long run? For basic stuff it makes sense to avoid the dependency, but libraries can have the added benefit of robust testing/community support/etc. 😄.

this only includes a validation for presence so I'm curious how this approach scales.

The validatePresence function just returns null or a string, so you could just add more following calls to it and let the language handle the fallback:
postalCode: validatePresence(postalCode) || validateLength(postalCode, { min: 3 }) || ...,

We could also make these calls asynchronous (which is essentially what @erikdstock built), but I didn't do that to keep it simple. We always have the option to opt in, but it'd take a significant amount of time to remove it from things that wouldn't have had to depend on it. I think in this particular case we can maintain our own, small validation logic.
We have a handful of tests that all pass on all of the three spikes we worked on. These tests don't depend on implementation details so we can easily swap out/in dependencies and our own implementations without changing tests.

closing in favor of https://github.com/artsy/emission/pull/1074


Single table inheritance and SurrogatePK issue when upgrading Flask-SQLAlchemy >2.3

My app uses quite a bit of single table inheritance in models that include the SurrogatePK mixin in database.py. I ran into some pain when upgrading to latest Flask-SQLAlchemy==2.3.2 with a traceback:
"Can't place __table_args__ on an inherited class "
sqlalchemy.exc.ArgumentError: Can't place __table_args__ on an inherited class with no table.

Finally tracked the issue down to __table_args__ = {'extend_existing': True} in the SurrogatePK class in database.py found here.  Bottom line is that I removed it and now all my tests pass.
The SQLAlchemy docs on extend_existing do not make it super clear to me why this should be set at all in this mixin from the start. It seems like a setting that developers should find and deal with when they figure out it actually needs to be explicitly set, due to their specific needs.

Can you post the relevant parts of your model you are using SurrogatePK on? The extend_existing usage makes sense base on the extened_existing documentation:

When True, indicates that if this Table is already present in the given MetaData, apply further arguments within the constructor to the existing Table.

If you look at the Role model that's included in the cookiecutter as an example, you see they use SurrogatePK but the Role class specifies tablename.
class Role(SurrogatePK, Model):
    """A role for a user."""

    __tablename__ = 'roles'

What broke on the SQLAlchemy 2.3.2 upgrade is specifying __table_args__ = {'extend_existing': True} in SurrogatePK and then mixing that into a base table class and then subclassing that base table class in a single inheritance relationship. Specifying __tablename__  did not cause any problem and is still fine to do that in the base table class. For example, this breaks with  __table_args__ = {'extend_existing': True} specified in SurrogatePK but works fine after getting rid of it. So it is not very robust to include in a mixin if it breaks single table inheritance for any class that uses the mixin. It should probably be set in the class that inherits the mixin, when the programmer decides it needs set in that particular class.
class Organization(SurrogatePK, Model, AuditMixin):
    """A company for the database"""
    __tablename__ = 'organizations'

    name = Column(db.Unicode(128), nullable=False)
    website = Column(db.Unicode(128))
    type = Column(db.Unicode(50), nullable=False)

    __mapper_args__ = {
        'polymorphic_identity': 'organizations',
        'polymorphic_on': db.case([
                        (type == "clients", "clientco"),
                        (type == "suppliers", "supplierco"),
                    ], else_="organizations")
    }

class ClientCompany(Organization):
    """A client customer"""
    client_type = Column(db.Unicode(50))

    __mapper_args__ = {
        'polymorphic_identity': 'clientco',
    }

class SupplierCompany(Organization):
    """A supplier."""
    supplier_type = Column(db.Unicode(50))
    avl_status = Column(db.Unicode(50))

    __mapper_args__ = {
        'polymorphic_identity': 'supplierco',
    }

Closing, as this issue is stale. Feel free to reopen or comment if there's still an issue.

This issue is still relevant. Is there a fix for this?


Composite directory implementation

Description
Desired behavior:
A user can tag an index as “warm” and all files will be tracked in the file cache
All unreferenced files are evictable from the file cache
Evictable files will be evicted when the reserved file cache is full
Files not present on local disk will be fetched on-demand using a block-based approach when needed
This has been designed and a rough implementation provided here: https://github.com/neetikasinghal/OpenSearch/tree/new-CD The goal of this task is to complete and clean up that code and merge it to the feature branch.
Related Issues
Resolves #[8447]

Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[ ] Commits are signed per the DCO using --signoff
[ ] Commit changes are listed out in CHANGELOG.md file (See: Changelog)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Requesting @andrross, @kotwanikunal to review


It would be helpful if custom formatters could handle a returned Promise

It would be quite helpful if custom formatters registered with registerCustomFormat could handle a returned Promise, in particular for the toFile method.
The practical use-case here is running prettier.format (async-only) on contents being written to ensure they conform to a project's code style.
I realize Decap does not support async toFile methods.
The footprint of this change appears to be quite small though, since there are only two calls to formatEntryFile and both are in the context of async functions.

Sure, it’s probably not a big deal.

That's awesome, thanks!

Shipped v0.46.0 with the async support.

I’ve just found this Decap issue. It’s closed but Decap doesn’t support async methods as you said. It’s perhaps closed by accident or as wontfix, and I’ve “effectively solved” the very old issue. 🙃

https://github.com/decaporg/decap-cms/issues/13

Haha, nice! 9 years old!
Impressive that you're able to knock these out so quickly — a real testament to how much the frontend frameworks have evolved, and your solid code of course.


Fix event verifying (by useing 1ma/secp256k1-nostr-php)

Event verifying doesn't seem to work properly currently. Use this package fixes that, it is a php extension and does need to be installed manually tho.

Installing a PHP extension can be a challenge in some cases (like on a shared hosting environment where many php apps and sites life).
I'd rather see way to implement / load this as a PHP package so maybe we can figure out better why the current package is not working for verifying the events.

The lib's composer.json should not require uma/secp256k1-nostr directly because that's just the stubs for PHPStorm. It could be added in require-dev for development time, and maybe listed as a suggestion in extension form (ext-secp256k1-nostr), but while secp356k1-nostr is not in available in PECL to make it easy to install it may be a bit confusing.
Code wise (new SchnorrSignature())->verify() should not be replaced with secp256k1_nostr_verify() either as that breaks swentel/nostr-php if the extension is not available. I'd do something like this to get a very nice speedup (and the correct result, in this case) if the extension is installed, and use the Schnorr PHP fallback if not:
if (extension_loaded('secp256k1-nostr')) {
    return secp256k1_nostr_verify($event->pubkey, $event->id, $event->sig);
}

return (new SchnorrSignature())->verify($event->pubkey, $event->sig, $event->id);

The follow up and fixes are done in https://github.com/swentel/nostr-php/pull/51 so I will close this PR.


commands/.../scorecard: modularize tests and implement weights

Description of the change: This PR defines new structs for: the variables that scorecard tests need access to, scores, tests, and test suites. It defines each test and test suite using these new structs and now weights the tests based on how important they should be in the final score. It also splits checkSpecAndStat (as that was acutally 2 separate tests plus a readiness checker) and moves the readiness checking functionality into its own function.
Motivation for the change: Closes #960

This PR has been refactored with the new design suggestions

Overall SGTM. Just some nits and perhaps we can add more godocs for all the new structs in test_definitions.go.

Whoops, hit the wrong button

/cc @shawn-hurley @joelanford

Unrelated to the scope of this PR but just wanted to make a note on  SpecDescriptorsTest and StatusDescriptorsTest that we could address later on:
Not all spec and status fields need to have a spec and status descriptor.
It's only recommended to have descriptors for spec and status fields that are useful to show on the console.
See the descriptors section in https://github.com/operator-framework/operator-lifecycle-manager/blob/master/Documentation/design/building-your-csv.md#owned-crds
So it's likely that no CSVs will ever fully pass those tests. Perhaps we should make note of that in the Suggestions for these tests to not force users to assign descriptors to all fields.
@estroz Might be related to #1162 Have to take a look at that but I'm not sure if we generate descriptors for all spec and status fields.

Added godocs for all new exported functions, structs, and interface.
/cc @shawn-hurley


starboard-octant-plugin: 0.4.0 -> 0.6.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/aquasecurity/starboard-octant-plugin/releases.
meta.description for starboard-octant-plugin is: "Octant plugin for viewing Starboard security information"
meta.homepage for starboard-octant-plugin is: "https://github.com/aquasecurity/starboard-octant-plugin"
meta.changelog for starboard-octant-plugin is: ""
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 0.6.0 with grep in /nix/store/nadi0z437ng7addjw92712y28vy4w31f-starboard-octant-plugin-0.6.0

directory tree listing: https://gist.github.com/fcc65dba70ffc48fcd1edda888cf5497

du listing: https://gist.github.com/058ed8186434554ff7a477162ea44972

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
starboard-octant-plugin

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/nadi0z437ng7addjw92712y28vy4w31f-starboard-octant-plugin-0.6.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A starboard-octant-plugin https://github.com/r-ryantm/nixpkgs/archive/6b4daa616837029eff8c08eb54b783a88276d08d.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/nadi0z437ng7addjw92712y28vy4w31f-starboard-octant-plugin-0.6.0
ls -la /nix/store/nadi0z437ng7addjw92712y28vy4w31f-starboard-octant-plugin-0.6.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review 1

1 package built:

starboard-octant-plugin

Maintainer pings
cc @06kellyjac @kalbasit for testing.

Result of nixpkgs-review pr 105080 run on x86_64-darwin 1

1 package built:

starboard-octant-plugin


tonic-build output

nice to have..
Some users may wish to use tonic-build as an separate step, so:

If OUT_DIR is not correctly set, the error  "No such file or directory" might be the proto sources or the generated directory.  So, a better error message would be helpful.

Handled in this neighborhood:
  15: core::result::Result<T,E>::unwrap
             at /rustc/fa5c2f3e5724bce07bf1b70020e5745e7b693a57/src/libcore/result.rs:933
  16: tonic_build::fmt
             at /home/john/code/tonic/tonic-build/src/lib.rs:200
  17: tonic_build::Builder::compile

The current output from a bin invocation:

 tonic_build::compile_protos("proto/helloworld/helloworld.proto")?;

out: Output { status: ExitStatus(ExitStatus(0)), stdout: "", stderr: "" }
out: Output { status: ExitStatus(ExitStatus(0)), stdout: "", stderr: "" }
out: Output { status: ExitStatus(ExitStatus(0)), stdout: "", stderr: "" }

It would be helpful if it detailed the generated files.
Alternatively, for 1 above - update the README to reflect the OUT_DIR requirement.
Version
tonic-benches v0.1.0 (/home/john/code/tonic/tonic-benches)
├── tonic v0.1.0-alpha.2 (/home/john/code/tonic/tonic)
└── tonic-build v0.1.0-alpha.2 (/home/john/code/tonic/tonic-build)
├── tonic v0.1.0-alpha.2 (/home/john/code/tonic/tonic) ()
├── tonic-build v0.1.0-alpha.2 (/home/john/code/tonic/tonic-build) ()
Platform
l
Linux tribble 5.0.0-31-generic #33~18.04.1
-Ubuntu SMP Tue Oct 1 10:20:39 UTC 2019 x8
6_64 x86_64 x86_64 GNU/Linux
Crates
tonic-build

@blittable so its possible to set the out_dir config option in the tonic_build::Builder. We could probably provide a better error message though when out_dir does not exist.

Thanks.  I got there another way (macro was invoked after cargo bench command).  I was also in a loop where I was told to set the out directory, and when I did such via the env variable, it then prepending the original out_dir to the macro invocation.  I'll try to pin it down.
There are a couple of doc issues for this scenario (the readme doesn't make it explicit it's a build.rs and the api doc is not generating or missing).  Is that WIP or best logged?

@blittable if there are doc things missing we should def open an issue. I'd love if we opened an issue around issues with building tonic stuff and made a list of things that were found to be difficult.

good idea.  opened #67 - closing here.


High Orun

text: Latest LSJ
link: https://groups.google.com/g/rec.games.trading-cards.jyhad/c/hINpwz-JjjY/m/c97m8NLQNckJ

Duplicate #758


Fix ServeAPI error: No sockets found on docker start

After updating the module from v4.1.1 to the v5.0.0, docker could not start on centos. I was getting this error
docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled)
  Drop-In: /etc/systemd/system/docker.service.d
           └─service-overrides.conf
   Active: failed (Result: start-limit) since Tue 2016-02-02 23:12:01 UTC; 32s ago
     Docs: http://docs.docker.com
  Process: 20277 ExecStart=/usr/bin/docker -d -H fd:// $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $BLOCK_REGISTRY $INSECURE_REGISTRY (code=exited, status=1/FAILURE)
 Main PID: 20277 (code=exited, status=1/FAILURE)

Feb 02 23:12:01 myserver-101.local systemd[1]: Started Docker Application Container Engine.
Feb 02 23:12:01 myserver-101.local docker[20277]: time="2016-02-02T23:12:01.476067010Z" level=fatal msg="Shutting down due to ServeAPI error: No sockets found"
Feb 02 23:12:01 myserver-101.local systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Feb 02 23:12:01 myserver-101.local systemd[1]: Unit docker.service entered failed state.
Feb 02 23:12:01 myserver-101.local systemd[1]: Starting Docker Application Container Engine...
Feb 02 23:12:01 myserver-101.local systemd[1]: docker.service start request repeated too quickly, refusing to start.
Feb 02 23:12:01 myserver-101.local systemd[1]: Failed to start Docker Application Container Engine.
Feb 02 23:12:01 myserver-101.local systemd[1]: Starting Docker Application Container Engine...
Feb 02 23:12:01 myserver-101.local systemd[1]: docker.service start request repeated too quickly, refusing to start.
Feb 02 23:12:01 myserver-101.local systemd[1]: Failed to start Docker Application Container Engine.

The fix was to remove -H fd:// from the docker service options according to https://github.com/docker/docker/issues/11135 and https://github.com/docker/docker/issues/12087.
This PR applies that fix.
cc @garethr
Thanks

@salimane thanks! In particular for the links to the relevant docker issues. This looks like it's true of newer debian systemd builds as well. Much appreciated.


Add send_scope_to_token_endpoint option

Some of OpenID Connect Provider doesn't accept the scope parameter in
token endpoint.
For example, OpenAM returns the invalid_request error like following, if scope
parameter in token request.

Scope parameter is not supported on an authorization code access_token
exchange request. Scope parameter should be supplied to the authorize request.

cf.

Also, the scope parameter is not valid on a token request with an authorization code grant.
http://sources.forgerock.org/cru/CR-5286

and
https://bugster.forgerock.org/jira/browse/OPENAM-4830

:+1: And another thanks :smile:


Benefit from incremental reparsing

We can provide a formatting function receiving typst::syntax::Source to gain benefit from incremental reparsing. Now all mainstream typst servers can do incremental source code reparsing to reduce overhead to parse, also preserve stable typst::syntax::Span in AST nodes across user editions (to help cache). However, typstyle can only receive a raw string and parse from scratch inside of itself formatting procedure, which is a bit wasty.

good catch. will do it


Missing kernel features for network emulation

Rancher network agent trigger following error during startup :
RTNETLINK answers: No such file or directory
The following command fail to run :
ip rule del iif eth0 table 200 pref 200
In rancher script
route_tables()
{
    if ! ip rule list | cut -f1 -d: | grep -q 200; then
        ip rule del iif $NETDEV table $TABLE pref 200 || true
    fi
}

root@sc:~# uname -a
Linux or 4.4.5-docker-1 #1 SMP Fri Mar 11 10:17:21 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Containers can't communicate through virtual network created by rancher.
Ref #56 ?

Hi @eliecharra, thank you for your report,
We need to figure out which kernel module is missing, can you try to determine which kernel modules are missing ?
Else, can you tell me how to install rancher, so I can try to reproduce this ?
Thank you

@moul I've tried to identify missing module, but unfortunatly I dont have time for further investigtations.
Here is a little walktrough to reproduce :

Launch 3 nodes with the docker image, assign public IP for WAN access.
On a node run : docker run -p 8080:8080 rancher/server
Wait for server to start, and connect to rancher server at http://YOUR_EXTERNAL_IP:8080
Click on add Host, then check something else and input : http://YOUR_PRIVATE_IP:8080
Click Save then copy the command generated by rancher server.
SSH on another node and paste the command previously copied (make sure you can reach rancher server using private IP)

docker run -d --privileged \
 -v /var/run/docker.sock:/var/run/docker.sock \
 -v /var/lib/rancher:/var/lib/rancher rancher/agent:v0.10.0  \
http://<IP_ADDRESS>:8080/v1/scripts/33F63E85891A7B6E54FF:1458288000000:CmfQ7ZtBRtHe0PBz9YIEO33Ex7o

On your rancher server, go to Infrastructure / Hosts, after a couple of seconds you will see your new node.
Add a new service, go under Applications / Stacks and add a new stack called "test"
Use following dokcker-compose and rancher-compose

# docker-compose.yml
alpine:
  labels:
    io.rancher.container.pull_image: always
  tty: true
  image: nginx
  stdin_open: true

# rancher-compose.yml
alpine:
  scale: 2

Hit create and go back to infrastructure view and wait for alpine 1 & 2 to start
Then copy alpine_1 IP (10.42....) and open a shell on alpine_2

Try to ping alpine_1 private IP : failure
Open logs of standalone rancher network agents, you must see in stderr RTNETLINK answers: No such file or directory

@eliecharra, thanks a lot for your investigation, it will help us to find out the missing modules

This is probably due to CONFIG_IP_ROUTE_MULTIPATH missing.
https://github.com/scaleway/kernel-tools/blob/master/x86_64/4.4.6-docker/.config#L675

@NoKriK, thanks for the recommendation, I will try

Fixed, and available as new bootscripts

@eliecharra, can you give a new try ?

@moul I had the same issue, I filed a ticket on scalway.com support. I'm glad you've get over this issue. I'll give a try.

@zagrider :)
Here is the procedure: https://www.scaleway.com/docs/bootscript-and-how-to-use-it/

@moul I still have the same issue and error appearing on Rancher network agent logs: "RTNETLINK answers: No such file or directory". I double checked I use the 4.4.6-docker-2 bootscript, either it is shown on Rancher UI I use it. Any idea?

@zagrider not for now sorry, do you know some Rancher gurus ? we should ping one of them
just to be sure, can you confirm me that your kernel does have multipath support:
zcat /proc/config.gz | grep CONFIG_IP_ROUTE_MULTIPATH

@moul Yep, it seems like it's activated, the command returns this "CONFIG_IP_ROUTE_MULTIPATH=y" and I have this error on the network agent logs: "[WARNING] 080/184222 (696) : config : 'option forwardfor' ignored for proxy 'web' as it requires HTTP mode."

it seems to be just a warning that looks similar to this one: https://github.com/rancher/rancher/issues/3810
is there another error after this ?

I followed your step-by-step guide and I now have the same issue
I can't find the rancher script you mention that calls the ip rul del [...], where is it located ?

Ok, found it in the rancher/agent-instance container

RancherOS kernel config could be found here: https://github.com/rancher/os-kernel/blob/master/config/kernel-config
I guess it's safe to assume that any kernel option needed by Rancher is enabled in RancherOS.

Ok thanks, I think I found the missing modules

I built a new bootscript (x86_64-docker #3), same issue, I will continue to investigate

Hello,
Any news about this bug ? I'm affected too.

For info I have this forum subject open on Rancher forum:
https://forums.rancher.com/t/no-connection-between-host/2104/6

@seb2411 @albertdb,
From my investigations, I think the warning RTNETLINK answers: No such file or directory is not a real issue, it seems to be called from a cleaning script used by the Rancher upgrade system
I didn't find out yet the real problem, I hope the subject you opened on their forum will help, thanks

Ok Thx.
I still have the cluster with rancher working. So If you need me to run some command or check/test something, tell me.

:) okay thanks

I just posted a response on the rancher forum.
I noticed this error message:
'received netlink error: Address family not supported by protocol (97)'

Looks like Rancher uses strongswan to create an IPSec VPN between hosts.
https://wiki.strongswan.org/projects/strongswan/wiki/KernelModules
strongswan needs CONFIG_IPV6_MULTIPLE_TABLES set, but that isn't set in the build images
$ zcat /proc/config.gz | grep '<CONFIG_IPV6_MULTIPLE_TABLES>'
CONFIG_IPV6_MULTIPLE_TABLES is not set
is it possible to add?

Is it possible for me to build a custom kernel and deploy it on Scaleway, to debug this myself?

Would be amazing to fix this.

strongswan needs CONFIG_IPV6_MULTIPLE_TABLES set, but that isn't set in the build images. is it possible to add?

Done, the kernel is now rebuilding and will be released today :)

@moul is it possible for me to build a custom kernel and deploy it on Scaleway, to debug this myself?

Sorry, we are working on this point, but for now you need to ask us for missing modules

I'm not sure this is the problem, as Rancher is no using IPV6. But Let's try. Thx @moul .
On a different topic, Do you know when the Core Os image will be available ?

@moul great, thanks! Is there somewhere to see the build status, or know when its available to test?

@seb2411: I'm not sure this is the problem, as Rancher is no using IPV6. But Let's try. Thx @moul .

I'm not sure either, but as it is a dependency of a more global piece of software, maybe this module blocked something, finger crossed

On a different topic, Do you know when the Core Os image will be available ?

We first tried to create a dedicated CoreOS image on Scaleway, but it seems that we can have a lot better experience by not creating an image, but instead use their network boot image (similar discussion here: https://twitter.com/antouanK/status/718521781250846720).
The boot will be a little bit slower than using our 1-click image system, but it adds automatic updates, support for any file system backend (even full memory).
We updated the internals of our bootscripts to support this kind of network boot, now we need to improve the cloud-init support.
Note: this feature will also help a lot to add some cdrom-based distributions, and non linux-based ones too
I expect to add the CoreOS support in the next week

@cdrx: @moul great, thanks! Is there somewhere to see the build status, or know when its available to

Here is the build status: https://travis-ci.org/scaleway/qa/builds/122246907
Then, we need to push the kernel on our bootscripts, there is not build log, but you can refresh this page: http://mirror.scaleway.com/kernel/x86_64/, here it is the expected one: http://mirror.scaleway.com/kernel/x86_64/4.4.6-docker-5/
The last part is the creation of the bootscript in the API, no build log, but you can also list the available bootscripts manually, using the API or easier, by editing one of your server and check for available bootscripts

@moul would be Perfect if you can give us an quick update here once it is available, so we all got notified... Thanks!!!

Closer, but not working yet.
Rancher uses StrongSwan with CBC which requires the chain IV crypto module in the kernel. That module is missing:
$ zcat /proc/config.gz | grep CONFIG_CRYPTO_ECHAINIV
CONFIG_CRYPTO_ECHAINIV is not set

There is a bug in kernel 4.4 that doesn't select CRYPTO_ECHAINIV when INET_ESP is selected, fixed here:
https://git.kernel.org/cgit/linux/kernel/git/davem/net.git/commit/?id=32b6170ca59ccf07d0e394561e54b2cd9726038c
@moul can we get CONFIG_CRYPTO_ECHAINIV added? That should hopefully fix the problem with Ranchers networking

@Berndinox: @moul would be Perfect if you can give us an quick update here once it is available, so we all got notified... Thanks!!!

The bootscript is available, sorry for the delay

@cdrx: @moul can we get CONFIG_CRYPTO_ECHAINIV added? That should hopefully fix the problem with Ranchers networking

PR: https://github.com/scaleway/kernel-tools/pull/254
Build: https://travis-ci.org/scaleway/qa/builds/122356991
New release: tomorrow

Thanks @moul

Hi,
The bootscript docker #6 is available with the module CRYPTO_ECHAINIV
Welcome on Ubuntu Trusty (14.04 LTS) (GNU/Linux 4.4.6-docker-6 x86_64 )
# zcat /proc/config.gz  | grep ECHAINIV
CONFIG_CRYPTO_ECHAINIV=m

Let me know if you need anything else 😊.

Great, Rancher networking works correctly with 4.4.6-docker-6!
Thanks @moul and @QuentinPerez
Will these settings be merged into the standard kernel?

I just launched a GlusterFs cluster. Everything seem working well now \o/

Can confirm! thanks alot!

Great !

@cdrx: Will these settings be merged into the standard kernel?

Sure, we can merge this into the standard kernel
For my curiosity, why would you prefer to use the standard kernel instead of the docker one ?

@moul I will probably forget to change the bootscript when I start a new Docker server :) and for the most part I'm aiming to automate setting up new machines from Rancher using the Scaleway docker machine driver, which doesn't have the facility to choose a bootscript.
I have a feeling that this may not work anyway, because I think the kernel modules get downloaded on to the machine on the first boot, rather than being part of the image? Using saw-sync-kernel-modules. It is  possible that the rancher-agent container is started before this process is completed, meaning /lib/modules/4.4.6-docker-6/kernel/crypto/echainiv.ko isn't available for loading yet

Oh ok, so don't worry, we updated the Docker image to choose the new bootscript :)
Note that we will probably work a little bit on the Docker Machine driver soon, any feedback/bug report is appreciate so we know where to begin :)
If you detect than the first boot fails because of missing /lib/modules, we can and should update our init script to be always be called before the Rancher one

This is nice. With a Scaleway driver for Docker machine we will have the possibility to launch machines directly from Rancher this is nice.
The only thing I miss currently on Scaleway is a way to setup easily some sort of gateway to be able to create machine without IPV4 public IPs.

@seb2411: The only thing I miss currently on Scaleway is a way to setup easily some sort of gateway to be able to create machine without IPV4 public IPs.

Using scw, we have a basic gateway support which will use one gateway to ssh to the target host, example:
$ scw run --name=my-gateway ubuntu-trusty  # create a new ubuntu-trusty server with a public IPv4

$ scw run --gateway=my-gateway alpine      # create a new alpine server without public IPv4
$ scw run --gateway=my-gateway docker      # create a new docker image without public IPv4

This won't configure any HTTP proxy nor IP router, but at least you can access your hosts without IPv4
Using the Rancher built-in network gateway, it should be possible to only have one host with a public IPv4 and multiple workers without

Yes I know for the SSH. and it was my plan to use the Rancher functionalities to expose only some server with a public IP. The point is : I can't install rancher and the associate containers if I can't access the Docker Hub repositories ^^ . The only solution I have currently : creating a Docker Hub proxy on the public machine and connecting the private machine on this proxy. (I have to test.)
But it's relatively complex and so I still have the problem about OS updates. As I want to be able to install update for the OS (Ubuntu or CoreOS).
And the IPV6 is not really a solution as I would like to have most of my machine only available from the private network. And the Ubuntu Update with only IPV6 are not working well, and Docker Hub is not supporting IPV6 actually.

Maybe you can try to setup a Squid proxy on the main host, and configure the HTTP_HOST env var on the private servers
Another idea: create a VPN server on the public host for the private servers

About CoreOs and cloud-init : https://coreos.com/blog/introducing-ignition.html
NB: I think we can close this bug now ;)

@seb2411: About CoreOs and cloud-init : https://coreos.com/blog/introducing-ignition.html

Yes, that's what we are trying to integrate :)

NB: I think we can close this bug now ;)

Yep, I was waiting for @eliecharra's (initial issuer) feedback, but I will close the issue now as it seems globally fixed
If anyone of you still encounter the issue, please reopen or ping us here

@moul Sorry for the delay, actually I'm too busy to check this ;)
I'll do a feedback asap.

@eliecharra no problem, this issue seems to be fixed for everybody, so I'm not worried
take my comment more as a "ping", so you can continue your projects

Some news for Core OS support ?

Hi, we are still working on this, @QuentinPerez joined us in this mission, we are still trying to make cloud-init support better so we can use the CoreOS network boot feature


Anonymous navigation metrics

What
Collect anonymous metrics from the app about the different screens people use.
Why
This data will help us remove unused features and improve the interactions people often use.

Closing as a legacy issue.


[Meross] Unable to reach Meross, retrying in 30 seconds [login() - ENOTFOUND]. again

What issue do you have? Please be as thorough and explicit as possible.
It shows up this error after rebooting, new installation, found an issue in march tried 9.0.1 and same error appears
[Meross] Unable to reach Meross, retrying in 30 seconds [login() - ENOTFOUND].
Details of your setup.

Homebridge v1.6.1

Which platform do you run Homebridge/HOOBS on (e.g. Raspberry Pi/Windows/HOOBS Box)? Raspberry Pi 4

Which version of this plugin (homebridge-meross) do you have? Has the issue started since upgrading from a previous version? 9.2.2 latest

Which Meross devices do you have that are causing issues?

Please paste any relevant logs below.
[Meross] Unable to reach Meross, retrying in 30 seconds [login() - ENOTFOUND].

Hi @alananayadev
Do you have any firewalls that might be preventing the plugin from reaching the meross servers?

nope, I used iotx-us.meross.com, on Proxyman it appears like this.

plugin uses iot.meross.com

if I use iot.meross.com it shows the next error, and I don't know where to register

Have you created an account in the meross app? you need to use the credentials in the plugin settings from your meross app

yeah I've created my account using Meross app, also on Proxyman that intercepts the api calls from the app it uses iotx-us.meross.com itstead of iot-meross.com

Yes my meross app uses iotx-eu.meross.com, but my plugin uses the default iot.meross.com and they both seem to work for me and other users.
Have you tried using the domain option in the plugin settings to change to iotx-us.meross.com?

if I use iotx-us.meross.com it shows me this error:
[Meross] Unable to reach Meross, retrying in 30 seconds [login() - ENOTFOUND].

and there is no firewall installed on your pi?
is your meross account very old or very new? trying to work out any reason why this would not work for you.

I'm really sorry, I've found out that my email got registered with .con instead of .com
@bwp91 thanks a lot for your support

ah good to know! otherwise this scenario was gonna get me slightly concerned that i would need to make some changes!
no worries hope all is working well now 😄


Enable spinning up the Privacy Center from Nox

Closes #1141
Code Changes

[x] add a build command for the pc to nox
[x] update the dev command to accept a posarg for spinning up the pc
[x] add the pc to the compose file

Steps to Confirm

[ ] the build command works
[ ] the posarg spins up the privacy center
[ ] everything is wired up correctly and the PC is usable

Pre-Merge Checklist

[ ] All CI Pipelines Succeeded
Documentation Updated:

[ ] documentation complete, or draft/outline provided (tag docs-team to complete/review on this branch)
[ ] documentation issue created (tag docs-team to complete issue separately)

[ ] Issue Requirements are Met
[ ] Relevant Follow-Up Issues Created
[ ] Update CHANGELOG.md

Description Of Changes
Write some things here about the changes and any potential caveats

Getting errors here:
When running with npm run dev...
error - ./pages/_app.tsx:10:0
fides-fides-pc-1  | Module not found: Can't resolve '../config/config.css'
fides-fides-pc-1  |    8 | import<EMAIL_ADDRESS>
fides-fides-pc-1  |    9 |
fides-fides-pc-1  | > 10 | import "../config/config.css";
fides-fides-pc-1  |   11 |
fides-fides-pc-1  |   12 | import theme from "../theme";
fides-fides-pc-1  |   13 |

When running with no command set (using the default entrypoint)
fides-fides-pc-1  | ./start.sh: line 4: syntax error: unexpected "fi" (expecting "then")

@sanders41 can you give me some insight as to how the privacy center is run normally? What env vars it requires, how to boot it up, etc? I looked through the fidesops and plus repos but couldn't find anything

Docs are step 4 here. For what you are doing all you should need is something like docker run --rm -p 3000:3000 ethyca/fides-privacy-center:latest

ok, running it like that is working but I'm getting the above errors when trying to run and build locally, I'll make sure all of the files are getting included and there isn't any weird docker ignore stuff happening

That error makes it look like a volume is being mounted, but I don't see one. If there is and I am just missing it make sure that the volume contains both a config.css and config.json in a config directory.

@ThomasLaPiana I got it to start. The main issue was the command: npm run dev. There is a script in the container that runs npm run serve at startup so it was running dev on top of serve.
The nox command was also starting the ui when pc was passed and both the ui and pc were mapping to port 3000 so I mapped pc to 3001.

That could be the case, it start without error for me. The script it is referencing has the then:
if [ -d config ]; then
  echo "recompiling with custom configuration..."
  npm run build
fi;

npm run start

I did notice I don't have #!/bin/bash in there. Would that make it better or worse on Windows? I'm guessing Windows is defaulting to powershell with a .sh file? But I don't think Windows has bash?

@sanders41 just as I suspected, I fixed it by changing line endings 🤦

@sanders41 is there anything I need to do to wire it up to the database? I'm not sure what the functionality is supposed to be here or how far it can go in its current state

By default it will connect to http://localhost:8080/api/v1. There is a section in the config.json where that can be changed. So for our development purposes it should work as is without any extra config.
With the dev environment, everything should work as expected out of the box without any modifications.

By default it will connect to http://localhost:8080/api/v1. There is a section in the config.json where that can be changed. So for our development purposes it should work as is without any extra config.
With the dev environment, everything should work as expected out of the box without any modifications.

but if the rest of the application is running in docker compose along with it, it would need the special fides:8080 instead of localhost right?

That is actually a good questions. I'm not sure if we have ever run it from docker-compose like this. To customize it what we need to do is copy the config.json and config.css files from here. Then this line and be configured with the correct url.
Then mount a volume from a directory named config to /app/config in the container that contains but the config.json and config.css files.

in ctl we're able to configure things via env vars (the URL specifically) so I can try to copy the pattern there

Environment variables are currently not possible in the privacy center, at least as I understand it. But yes this would be nice.

ok, so we need a separate dev config altogether for docker it sounds like. I'll dig into this later and try to get it up and running then

The issues @ThomasLaPiana is debugging now seem to be the exact same problems @azazeldt ran into here: https://github.com/ethyca/fides/issues/1164
So I think this PR will end up fixing both

@NevilleS given your other PR, this is good to close now right? huge thanks for the help 🙏


prebuild ERR! build Error: Error from GitHub: Not Found

what can i do?

Use the latest version
If that doesn't work, file a better issue report: include your os and version, your version of node, and what steps you already took to resolve your own issue


Using the library directly from Libtorch in C++

Hello,
How can I use this library directly from Libtorch in C++ in order to read a wave file into a torch::tensor?
I am only interested in C++, not Python.
Thanks,

Hi @QuantScientist
There is a way to use torchaudio's I/O function from C++ but it's not like the usual C++ code, where you include header file and link your application.
We use TorchScript to deploy models and data processing pipelines. To do that,

Write operation in Python
Compile the Python code with TorchScript and save the object.
Load the saved TorchScript object from C++ and run.

There is an example directory libtorchaudio, which explains the process. Specifically you can use Loader to load audio from file in C++.
If you want to hack around the original code, then you can use load_audio_file, however, C++ code in torchaudio is not public API so it can change anytime, and we do not provide support for the regular use (including the header in your project).

Thanks @mthrok
I hacked this lib: https://github.com/adamstark/AudioFile to read and write wav files between and to a torch::Tensor and it works without any problems.

Cool. Nice to know there is such a solution.

@ghost, do you have an example if your “hack” somewhere?


Create and dual-populate documents

Create a table to store documents and dual-populate it with content item data when performing saves, but continue to use the data in the content items table as the canonical source in queries.

This has diverted from the documents-and-editions a lot, will create a new PR.


Last selected album or library

How to keep last selected album or library

Good question! It is possible to open the picker onto a certain album with the following code:
let collection = self.lastCollection // This is a PHAssetCollection which you retreive from PhotosKit
var config = TatsiConfig.default
config.firstView = .album(collection)
let pickerViewController = TatsiPickerViewController(config: config)
pickerViewController.pickerDelegate = self
self.present(pickerViewController, animated: true, completion: nil)

However, now that you ask this question, Tasti doesn't return the current album the user has selected.
I'm working on adding a delegate method that communicates which album the user has selected so you can retain that information.

I have just pushed the change to the repository and Cocoapods repo. Version 1.2 should contain the delegate method that gives you the user's selected album.
I've also added the retaining of the last selected album to the example.


RNN in ONNX model does not give correct output with batch_size > 1

Description
I have a simple pytorch bidirectional gru model that I exported to ONNX. It exports successfully. When I load the model into python using onnxruntime-0.5.0 I get the correct result (result matches pytorch output). However, when I put the model in tensorrt-inference-server I get a incorrect result for batch size > 1 (does not match pytorch or onnxruntime output).
TRTIS Information
What version of TRTIS are you using? 19.10
Are you using the TRTIS container or did you build it yourself? using TRTIS container
To Reproduce
Steps to reproduce the behavior:
Simple GRU model
name: "simple_rnn"
platform: "onnxruntime_onnx"
max_batch_size : 2000
dynamic_batching {
  preferred_batch_size: [ 100, 500 ]
  max_queue_delay_microseconds: 50
}
input [
  {
    name: "input"
    data_type: TYPE_FP32
    dims: [5]
  }
]
output [
  {
    name: "out"
    data_type: TYPE_FP32
    dims: [ 200 ]
  }
]

Python Inference Code
eval_batch0 = np.array([[ 1.5410, -0.2934, -2.1788,  0.5684, -1.0845]],dtype=np.float32)
eval_batch1 = np.array([[ 1.2410, -0.5934, -1.1788,  0.2684, -1.3845]],dtype=np.float32)
batch_size=2
batch_res = batch_ctx.run(
            { "input" : [eval_batch0, eval_batch1] },
            { "out" : (InferContext.ResultFormat.RAW) },
            batch_size)

    output0_data = result['out'][0]
    print(output0_data)

Expected behavior
Should get: [[ 0.05313804 -0.03783077 -0.01000221 -0.06483013  0.01122947 -0.11574925
-0.1188059   0.00879205  0 . . . -0.01771809  0.03329424
-0.06625719 -0.19090976 -0.16422167 -0.13947284 -0.02236746 -0.05213657
0.0291802  -0.01893364]]
But instead I get: [[-0.12171305  0.08831704 -0.1299032  -0.04495994 -0.09434152 -0.00348916
-0.06000247  0.06794671 -0.00264789 . . . -0.03702144 -0.00485747
0.06768323  0.10949556  0.09059966 -0.00926312  0.01789687 -0.03266058
-0.12896161  0.02893848]]

Do you mind to share your model?

Here is my pytorch model.
class SimpleGRU(nn.Module):
    def __init__(self,embedding_dimensions):
        super().__init__()
        # Bidirectional RNN
        self.rnn = nn.GRU(embedding_dimensions, 100, num_layers=1, bidirectional=True,
                                dropout=dropout, batch_first=False)

    def forward(self, embeded_input):
        embeded_input = embeded_input.permute(1,0,2) #(max_len, batch_size, emb_size)

        rnn_output, _ = self.rnn(embeded_input) #(max_len, batch_size, 2 * rnn_size)
        rnn_output =rnn_output.permute(1,0,2) #(batch_size, max_len, 2 * rnn_size)

        return rnn_output

Update. If I export the onnx model with a batch size of 1 and do not allow different batch sizes, the tenssorrt-inference-server gives the same output as pytorch and onnxruntime in python. However, I do not understand why.

How did you export the model to ONNX? For both the batching case and non-batching case.

Non Batching
    max_len = 1
    embedding_dims = 5
    batch_size = 1
    rnn_size = 100
    att_size = 2*rnn_size
    rnn_layers=1
    np.random.seed(0)
    torch.manual_seed(0)
    batch = torch.randn([batch_size,max_len,embedding_dims])

    print (batch)
    network = SimpleGRU(embedding_dims)

    x = network(batch)
    print ("pytorch: {}".format(x[0,0]))
    network.eval()
    test_onnx_file = "model.onnx"
    torch.onnx.export(network, (batch), test_onnx_file,input_names=['input'],output_names=["out"], verbose=False)

Batching
    max_len = 1
    embedding_dims = 5
    batch_size = 100
    rnn_size = 100
    att_size = 2*rnn_size
    rnn_layers=1
    np.random.seed(0)
    torch.manual_seed(0)
    batch = torch.randn([batch_size,max_len,embedding_dims])

    print (batch)
    network = SimpleGRU(embedding_dims)

    x = network(batch)
    print ("pytorch: {}".format(x[0,0]))
    network.eval()
    test_onnx_file = "model.onnx"
    torch.onnx.export(network, (batch), test_onnx_file,input_names=['input'],output_names=["out"], verbose=False)
    model = onnx.load(test_onnx_file)
    model.graph.input[0].type.tensor_type.shape.dim[0].dim_param = '?'

    model.graph.output[0].type.tensor_type.shape.dim[0].dim_param = '?'
    print (model.graph.input)
    print (model.graph.output)
    onnx.save(model, test_onnx_file)

@daquilnp what output do you get with PyTorch if you use the jitted model of the same?

Sorry I am not familiar with Torchscript. Not entirely sure how it can help us here

You had to produce the jitted model for TRTIS (it only supports jitted models since it uses libtorch (the Pytorch C++ backend to run). Simply load the model and run the same test.
model = torch.jit.load("model_name.pt")
model(input)

Does TRTIS not support ONNX?

TRTIS supports both ONNX and Pytorch. You mentioned the output was incorrect when using ONNX hence I am suggesting you to use the Pytorch backend (since your model is a pytorch model and the issue may be with conversion to ONNX) instead and see if you see the same behavior.

@CoderHam this issue is regarding the ONNX models, here the issue owner is exporting the PyTorch model to ONNX format. Are you suggesting that "jitted model" is needed to export the model to other format?

No I was suggesting that the export to ONNX format may be broken due to some Pytorch regression and this may be the reason such behavior is observed.
However I see that this may not be the problem as I note that the converted onnx model works in python successfully outside TRTIS.

@daquilnp I couldn't reproduce your issue... See attachments for scripts I used to generate PyTorch model (and evaluate expected result), evaluate in ORT directly, evaluate in TRTIS.
model_repo.zip
scripts_and_result.zip

I updated the the title of the issue to be for batch sizes > 1.

Update. If I export the onnx model with a batch size of 1 and do not allow different batch sizes, the tenssorrt-inference-server gives the same output as pytorch and onnxruntime in python. However, I do not understand why.

I am able to use batch sizes > 1 in native onnxruntime.

@daquilnp Even with batch size > 1, I am still getting expected results from TRTIS.
One thing I noticed is that you change your Python Inference Code section to run inference with batch size 2, but that is actually sending the "input_batch" as the first batch, to send multi-batch result, you should do the following:
eval_batch0 = np.array([[ 1.5410, -0.2934, -2.1788,  0.5684, -1.0845]],dtype=np.float32)
eval_batch1 = np.array([[ 1.2410, -0.5934, -1.1788,  0.2684, -1.3845]],dtype=np.float32)
batch_size=2
batch_res = batch_ctx.run(
            { "input" : [eval_batch0, eval_batch1] },
            { "out" : (InferContext.ResultFormat.RAW) },
            batch_size)

Where the input value is a list of batch elements. Although in your code, you should receive error saying shape mismatch or something similar...

yeah sorry I did not edit that correctly. I have been making a list of numpy arrays like you suggested above. I fixed that now. I will try your code for batch sizes > 1 and get back to you

Well your examples work with my setup. Still not entirely sure what happened, but this is not a TRTIS bug. Thank you for your help @GuanLuo


python3Packages.foolscap: 20.4.0 -> 21.7.0

Motivation for this change
Update to latest upstream release 21.7.0
Change log: https://github.com/warner/foolscap/releases/tag/foolscap-21.7.0

Enable tests
Update meta

Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Relase notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 129556 run on x86_64-linux 1

2 packages built:

python38Packages.foolscap
python39Packages.foolscap


Move buffering modules from Utils to Buffers

Just for directories consistency in package src.

Completed, tested. Related classes and modules modified as well.


Response type is ignored when add Filters

In startup.cs I add filter for all Error response, bcs I return own error object (ErrorResponse) by throw exception and in middleware I return this code in response. But these errors are not as a return type in controllers methods so I have to add filter to all responses. It works and in swagger.json are these responses but without response type (200) there are only error responses.
services.AddMvc(options =>  {
                options.EnableEndpointRouting = false;
                options.Filters.Add(new Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute(typeof(ErrorResponse), (int)HttpStatusCode.BadRequest));
                options.Filters.Add(new Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute(typeof(ErrorResponse), (int)HttpStatusCode.Unauthorized));
                options.Filters.Add(new Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute(typeof(ErrorResponse), (int)HttpStatusCode.NotFound));
                options.Filters.Add(new Microsoft.AspNetCore.Mvc.ProducesResponseTypeAttribute(typeof(ErrorResponse), (int)HttpStatusCode.InternalServerError));
            })

Here is example one of my method with return type but it doesnt display in swagger.
public async Task<ActionResult<HorseEntity>> GetHorseById(int id)

Does anybody know how can I preserve default return type from controllers methods? Thank you. :-)

Hi, is this still an issue? You could add the ProducesResponseType attribute on top of the specific method in the controller.
[ProducesResponseType(StatusCodes.Status200OK, Type = typeof(ErrorResponse))] public async Task<ActionResult<HorseEntity>> GetHorseById(int id)

Please provide a minimal reproducible example as a GitHub repository that demonstrates the issue you're experiencing so we can look into this further.


Devise warden authentication allows GET query params takes precedence over POST params

Ruby 2.6.6
Rails 6.0.2
Devise 4.8.1

Current behavior
I am using a custom session controller.
Sign_in form contains email & password, when we submit, it's a POST request.
But from the Burp Suite which is used for Pen-testing activity: We can also send the different email & password in the url itself as a query string.
And devise seems to take url query parameters as the precedence over POST parameters.
In the below example:
In the form(POST param), I am sending<EMAIL_ADDRESS>& password(pwd).  --> This is wrong password
In the get param, I am sending<EMAIL_ADDRESS>& password(password) --> This is correct password
POST /users/sign_in?locale=in&authenticity_token=XMmnt9g2jobCbBtyP2oUbHIUmfGwcpCLB2Ye0FlQyK65sbbz3yXHIH5osOObs9hZGmBp5ujPbmbbcpWY4O6omw%3D%3D&user%5Bemail%5D=abc%40abc.com&user%5Bpassword%5D=password&commit=Login HTTP/1.1 Host: localhost:4000 Content-Length: 214 Cache-Control: max-age=0 sec-ch-ua: "Chromium";v="105", "Not)A;Brand";v="8" sec-ch-ua-mobile: ?0 sec-ch-ua-platform: "macOS" Upgrade-Insecure-Requests: 1 Origin: http://localhost:4000 Content-Type: application/x-www-form-urlencoded Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 Sec-Fetch-Site: same-origin Sec-Fetch-Mode: navigate Sec-Fetch-User: ?1 Sec-Fetch-Dest: document Referer: http://localhost:4000/users/sign_in Accept-Encoding: gzip, deflate Accept-Language: en-GB,en-US;q=0.9,en;q=0.8 Cookie: _sso_session=LEqy1%2sdsfddsfsdfsdff7QhgkDs3DlzMAz2ektOb9%2BaCjxFZ4gt0Bi9URZ5fU41szRJh089juOa01Ra7HKe69ULRMHVlla90AagE%2Bc0PDebSHAh5iG2wIGqwJfoGww9AXCvE29fn8pKdsdsd7gpbRgPz7WO9bQcauAa7VV1Gu842ECI6T7SOymlwgCi7U%2FnQoL007pz6vDFXdErvd9aQQrSkJQDugVKGKxe6hcKb2iFdUztVPEh4AiIgP%2FuV44UlAxwKj4tB%2FAsmAFeBKVD5IRW8pNh59oGgJtxCgrfzZXC5%2BpfkC30T1QU%2B43FkVLBhHHJDyHw3hC6%2FJrMAIr%2FfucMYT82%2BCXKEjMw5J8rjjeS%2BcbWKWojlMkU9a5%2BHfqA7YD%2BkBfCi%2FigJ9Lgq8fLbGkFhOyOouhRi8MEm%2FM9at4Qe8ZiGFq6AHRa4EcQ%3D--%2FAGuG14oybdtocBt--EmZ8UhRZoBktUfXseITKgQ%3D%3D Connection: close authenticity_token=XMmnt9g2jobCbBtyP2oUbHIUmfGwcpCLB2Ye0FlQyK65sbbz3yXHIH5osOObs9hZGmBp5ujPbmbbcpWY4O6omw%3D%3D&user%5Bemail%5D=abc%abc.com&user%5Bpassword%5D=pwd&commit=Login
Expected behavior
It should not give precedence to the GET Query string.
I tried removing get params by:
request.GET.delete('key')
but still it accepting the correct password passed in the query string & logs in.
Any suggestions ?

I believe this is Rails behavior when merging to a single params hash, devise does not prefer one or the other, it simply uses the provider request params access via Rails (similar to how you'd access params in any controller). If you have considerations about this behavior, I'd recommend opening an issue there. (just make sure to search around for any other possible related issue)


ion-buttons in the ion-menu toolbar are all centered over title

Bug Report
Ionic Info
Run ionic info from a terminal/cmd prompt and paste the output below.
insert the output from ionic info here

Describe the Bug
ion-buttons in the ion-menu toolbar are all centered over title. slot placement doesn't seem to work.
<ion-menu>
  <ion-header>
    <ion-toolbar color="primary">
        <ion-title>title</ion-title>
        <ion-buttons slot="end">
            <ion-button>
                <ion-icon slot="icon-only" name="settings"></ion-icon>
            </ion-button>
        </ion-buttons>
    </ion-toolbar>
  </ion-header>
  <ion-content>
    <ion-list>
      <ion-menu-toggle auto-hide="false">
        <ion-item>
            <ion-icon name="pin" slot="start"></ion-icon>
            Locations
        </ion-item>
      </ion-menu-toggle>
    </ion-list>
  </ion-content>
</ion-menu>

Steps to Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Related Code
If you are able to illustrate the bug with an example, please provide a sample application via an online code collaborator such as StackBlitz, or GitHub.
Expected Behavior
A clear and concise description of what you expected to happen.
Additional Context
List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to fix, Stack Overflow links, forum links, screenshots, OS if applicable, etc.

For me, the icon button is centered (despite slot="end") and the title doesn't exist at all...that's with split-pane

I think this should be fixed with beta.12


Get Fast Report.NET Data Sources meta data after that saved

In normal case everything is good,But if user in designer form, add new connection with new data source, that not exists in my first dataset, after saved ".frx" file, In next time when i load that changed ".frx" file,I am getting this error:
Table is not connected to the data. Register the data using Report.RegisterData method.
Because i don't know which data source was added by user out of may dataset and could not registered them completely. I have to do read ".frx" file as XML, and create datasouce from TableDataSource tag attributes. Is there a simpler way for recover and fill Get Report DataSource and Relations meta data after saved by user and registered them easily in RegisterData method?

Hi!
Initially, the full version of the product could open the report template designer directly from the Wiindows Forms application with already registered data using Report.RegisterData. A similar trick is possible with an online designer.
At the moment we cannot yet offer a convenient mechanism for editing such reports in an external designer. Thank for issue! We will think about this problem.

Thank's a lot.


Using owndata train EDSR ,error occur when reference

I used my own data to train EDSR, the size of the training data LRHR is 100100; 400400, but I also used the 100*100 test image to make a mistake during the test.
the command is:
CUDA_VISIBLE_DEVICES=2 python demo/restoration_demo.py expedsr/edsrconfigs/edsr01.py expedsr/real_train/iter_200000.pth expedvr/testimg2/testlr1.png demo/demoo.png
A part of the test set can run normally, but some errors are：
Use load_from_local loader
Traceback (most recent call last):
File "demo/restoration_demo.py", line 46, in
main()
File "demo/restoration_demo.py", line 37, in main
output = restoration_inference(model, args.img_path)
File "/home1/dzzHD/mmediting/mmedit/apis/restoration_inference.py", line 36, in restoration_inference
data = test_pipeline(data)
File "/home1/dzzHD/mmediting/mmedit/datasets/pipelines/compose.py", line 42, in call
data = t(data)
File "/home1/dzzHD/mmediting/mmedit/datasets/pipelines/normalization.py", line 54, in call
self.std, self.to_rgb)
File "/home/dzz/.local/lib/python3.7/site-packages/mmcv/image/photometric.py", line 21, in imnormalize
return imnormalize_(img, mean, std, to_rgb)
File "/home/dzz/.local/lib/python3.7/site-packages/mmcv/image/photometric.py", line 42, in imnormalize_
cv2.subtract(img, mean, img)  # inplace
cv2.error: OpenCV(4.2.0) /io/opencv/modules/core/src/arithm.cpp:669: error: (-209:Sizes of input arguments do not match) The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array' in function 'arithm_op'

I have solved this problem.
the mmediting/mmedit/datasets/pipelines/normlization.py   ,in the  class RescaleToZeroOne: the results dict has different 'lq' shape while running different imgs.      add this :
class RescaleToZeroOne:
"""Transform the images into a range between 0 and 1.
Required keys are the keys in attribute "keys", added or modified keys are
the keys in attribute "keys".
It also supports rescaling a list of images.

Args:
    keys (Sequence[str]): The images to be transformed.
"""

def __init__(self, keys):
    self.keys = keys

def __call__(self, results):
    """Call function.

    Args:
        results (dict): A dict containing the necessary information and
            data for augmentation.

    Returns:
        dict: A dict containing the processed data and information.
    """
    for key in self.keys:
        if isinstance(results[key], list):
            results[key] = [
                v.astype(np.float32) / 255. for v in results[key]
            ]
        else:
            #print('same')
            results[key] = results[key].astype(np.float32) / 255.

#######################################
#这里的结果results就已经不一样了，多了一层，添加判断
#print( results.keys())#result.keys='lq_path','lq','lq_ori_shape'#the lq_ori_shape' should be (H,W,3),get (H,W,4)
if (results['lq_ori_shape'][2]==3):
pass
    else:
        results['lq']=results['lq'][:,:,0:3]
    return results

#######################################
def repr(self):
return self.class.name + f'(keys={self.keys})'

Hello, do you mean that you encountered an error when the input has 4 channels?

the input imgs has 3 channels,but get 4 channels results durning  normlization

the input imgs has 3 channels,but get 4 channels results durning normlization

If this is the case, I guess all images will cause the error? But it seems that it works for most images (at least during training).

the input imgs has 3 channels,but get 4 channels results durning normlization

If this is the case, I guess all images will cause the error? But it seems that it works for most images (at least during training).

Yes, there is no error during the training process. Some pictures can also run normally when running the demo, but some pictures will report errors. the results['lq'] has a fourth element which is 1.0

the input imgs has 3 channels,but get 4 channels results durning normlization

If this is the case, I guess all images will cause the error? But it seems that it works for most images (at least during training).

Yes, there is no error during the training process. Some pictures can also run normally when running the demo, but some pictures will report errors. the results['lq'] has a fourth element which is 1.0

Could you help have a look at the image that gives you this error? For example, maybe this image itself has 4 channels?
I think there must be something this image is different from the others.

the input img's shape is both 100,100,3  and the dtype of it is both uint8

As RescaleToZeroOne does only a division, I think it does not give you an additional channel. It is probably that results['lq'] has 4 channels before entering RescaleToZeroOne.

@dzz416 If an image whose format is png, it may have a hidden channel: alpha.
I think you can check the channel number of images by
img=cv2.imread('path', flag=cv2.IMREAD_UNCHANGED)
print(img.shape)

PS:
cv2.IMREAD_COLOR will ignore the alpha channel.

Closing this Issue due to no more feedback. Please feel free to reopen it if needed.


AMBARI-24263. Restart services just before stack upgrade fails due to AMS package incompatibility errors, causing EU not to be started. (mpapirkovskyy)

What changes were proposed in this pull request?
Preserve old hadoop sink jar on AMS/Ambari upgrade and allow to use it for services from old stacks.
How was this patch tested?
Basic manual testing, more in-depth testing in progress.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/3019/
Test FAILed.
Test FAILured.

retest this please

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/3025/
Test FAILed.
Test FAILured.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/3024/
Test FAILed.
Test FAILured.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/3026/
Test FAILed.
Test FAILured.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/3034/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/3035/
Test PASSed.


pull request for e2e test at 12/20/2016 05:56:19

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


Can not send message to all players fix

fix #267

sorry didnt know how to modify more then 1 file per pr

You have to commit the file changes to the same branch


rowBuffer property documentation typo

Fixes #508

ops! i read your comment first, and then this PR, so have already made the change myself!!


[KYUUBI #2668][FOLLOWUP] Remove unused Option because the collection is never null

Why are the changes needed?

This is a followup of #2668, refactor the code.
How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[ ] Run test locally before make a pull request

thanks for your review, merging to master


POST /insinc/municipal

accepts:
{
    police: true,
    water: true,
    school: true,
    sewage: true
}

returns 200 or 400

This should probably be
{
	mlsID: String,
	mortID: String,
	services: {
		police: Boolean,
		water: Boolean,
		school: Boolean,
		sewage: Boolean
	}
}


OS X Yosemite 10.10.5 15-inch mid 2010 Wont work

Hello from México Julian.
Ive been trying to find a solution to this problem since years ago!
Im excited your software does work in most computers, but it won't work on mine.
After running your program, even twice, it seems its not working. Computer crashes as usual (Example: Opening league of legends)
And I can't upgrade to High Sierra (Will crash).  Ive been using this program named "gfxcardstatus v 2.3" - which let you choose which video card to use. (Integrated only, discrete only, dynamic switching). So for the computer not to crash I select "integrated only" option. But that won't let the Installation continue. If i switch to "Discrete" or "Dynamic" it will automatically crash.
Any recommendations would be highly appreciated.
Ill invite you not 1, but 6 beers!
Hope you can help me out.
Thanks for the support.
This is the message after running your program:
| Checking compatibility
MBPModelVersion :  MacBookPro6,2 ➔ Compatibility : OK ✓
| Checking SIP Status
No SIP for this OS
| Searching for AppleGraphicsPowerManagement.kext
AppleGraphicsPowerManagement.kext found
********** Starting MBP GPU Fix **********
Copying Info.plist file
Patching Info.plist

FindChild  - key|MacBookPro6,2
NextSibling  - dict
FindChild  - key|LogControl
ModifyIntValue  - integer|1
FindSibling  - key|Vendor10deDevice0a29
FindSibling  - key|BoostPState
FindSibling  - key|BoostTime
FindSibling  - key|Heuristic
FindSibling  - key|IdleInterval
ModifyIntValue  - integer|10
RemoveSiblingLabel - P3HistoryLength Not found
FindSibling  - key|SensorSampleRate
ModifyIntValue  - integer|10
FindSibling  - key|Threshold_High
FindSibling  - key|Threshold_High_v
FindSibling  - key|Threshold_Low
FindSibling  - key|Threshold_Low_v
Info.plist successfully patched
| Loading Kernel Extension
Removing existing kext in tmp :  ✓
Copying actuel kext into tmp :  ✓
Copying patched Info.plist into kext :  ✓
Changing permission of kext :  ✓ /tmp/AppleGraphicsPowerManagement.kext/Contents/_CodeSignature/CodeResources
/tmp/AppleGraphicsPowerManagement.kext/Contents/_CodeSignature
/tmp/AppleGraphicsPowerManagement.kext/Contents/Info.plist
/tmp/AppleGraphicsPowerManagement.kext/Contents/MacOS/AppleGraphicsPowerManagement
/tmp/AppleGraphicsPowerManagement.kext/Contents/MacOS
/tmp/AppleGraphicsPowerManagement.kext/Contents/version.plist
/tmp/AppleGraphicsPowerManagement.kext/Contents
/tmp/AppleGraphicsPowerManagement.kext

Removing existing kext :  ✓
Copying patched kext into Extension :  ✓
Loading modified kext :  ✓
********************* MBP GPU Fixed Successfully *********************

Hi,
The patch seems to be applied correctly indeed...
Few questions/suggestions :

Do you have an external screen plugged in ? If yes, try to plug it out.
Can you please uninstall gfxcardstatus and see the results.
Can you please post crash log you have when you're mac reboots (you have to click on a Details button or something as far as I can remember)

@juanandresw were you able to try this stuff out ?

Thanks for the follow up Julian. My computer died, the hard drive died. Before I could uninstall the program you mention I tried updating to Sierra, which ended up being a terrible idea. My computer entered an eternal loop(computer stared and attempted to install Sierra, before it could end the installation it crashed. And the process started again).
So i decided to change the hard drive to another MacBook pro with the idea of installing Sierra there so I could then return it to my MacBook Pro 15’ (the one with the problem).
Did that but error occurred. Black letters appear when turning on the computer (with the hard drive of my computer). After that Failed I tried other 2 old hard drives I had at home, but this time in my computer, the one with the problem. Both hard drives presented the same error: black letters when turning on the computer.
I guess my computer was trapped between the two versions Yosemite - Sierra. It seems the problem of this is not on the hard drive but in other part of the computer.. cause now 3 hard drives presented the same error.
I was thinking of buying another new hard drive and via internet installing OSX. But I’m afraid my computer will make it un functional (with the same black letters on start up).
What do you suggest ?
Thanks for the help!

On Nov 16, 2017, at 3:13 PM, Julian Poidevin<EMAIL_ADDRESS>wrote:
@juanandresw were you able to try this stuff out ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Julian,
I have installed Sierra and correct my hard drive with internet recovery. (Holding command+r when turning on computer).
I have uninstall gfxcardstatus and ran your software. It seems everything is working fine!
Thanks for your help.
As promised, ill leave a donation.

Your hard work payed off! Thanks a lot for the future donation, appreciate it.

Julian, whats your PayPal account(mail)? the tipping website wouldn’t let me: error.
Thanks

On Nov 17, 2017, at 11:30 AM, Julian Poidevin<EMAIL_ADDRESS>wrote:
Your hard work payed off! Thanks a lot for the future donation, appreciate it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/julian-poidevin/MBPMid2010_GPUFix/issues/43#issuecomment-345309684, or mute the thread https://github.com/notifications/unsubscribe-auth/AgHQcdmUKes-MjgAtyr3FrkyvsHxKCCeks5s3cKigaJpZM4QeJrh.

I guess it's<EMAIL_ADDRESS>

Was this right ?


How to only use lines/points?

It seems that the pipeline has the arguments :
use_lines and use_points.
However they do not seem to be used as changing their values still outputs both points and lines.

Hi, you are correct that currently these two parameters are useless. They are actually used in the training code, which will be released later. So it will make sense at that time.
For now, if you want to use it with only points or only lines, you can set the parameters 'max_num_keypoints' or 'max_n_lines' to 0 in the config.

That does the trick, thanks!
Slightly unrelated question: will you also release code on how to use it with SOLD^2 instead of LSD?


[bug]: Cuda out of memory during loading inpainting model

Is there an existing issue for this?

[X] I have searched the existing issues

OS
Windows
GPU
I dont know
VRAM
No response
What happened?
I choose inpainting v5 model and the loading failed
Screenshots

Additional context
No response
Contact Details
<EMAIL_ADDRESS>

I got the exact same error and in my bug report I got this response:
"In the latest version we activate the NSFW checker by default and this eats up an additional ~0.5GB of memory. If you've got the NSFW checker on, you can try turning it off. Find the .invokeai file located in your \User directory and change the line that reads --nsfw_checker to --no-nsfw_checker."
But I still don't know how to find the file in the directory they were talking about. Do you know how to fix it?

I changed it and turned it off you can find it in C:\Users<username>.invokaai file
But still gettting this error.

it would be helpful if you could post what GPU your system has.
Several ways to do that:

Open the “Run” dialog box by pressing and holding the Windows key, then press the R key (“Run”).
Type devmgmt.msc
Click OK.
Click on Display adapters
Open Task manager: right click the windows task bar and click on "Task Manager" go to the second tab (performance) and look for the "GPU 0" entry. Below GPU 0 it should read what GPU you have,

With that information we can tell you if you have a fixable problem or just a too weak of a system to run InvokeAI.

GPU 0 Intel(R) UHD Graphocs 630
GPU 1 NVIDIA GeForce GTX 1050 Ti
Maybe should I specify to use GPU 1? How can I do that?

I've got several Out of memory errors as well using inpainting, (6gb here) as a strange workaround I found that switching the model to a different one (like the v1.5) and back again to inpainting solve the out of memory for many runs... You would think that more model is more ram but maybe the cache kicks in and some memory is freed/optimized in the process.
(and before you ask nsfw is on and should be on by default I don't like censorship by default!)

BartaG512 the command to do that is : set CUDA_VISIBLE_DEVICES=1
I was using that in automatic1111 however, in invoke, you are supposed to put it in the c:/users/username/  invokeai
I tried that and only get errors, it's not working for me. if someone can help please ? I tried a more simple command of COMMANDLINE_ARGS=--opt-split-attention --medvram and also could not get this to work.

did you try messing with the floating point flags? i beleve the 10 series cards had some special flag you needed to add

I got the exact same error too, with Automatic1111 everything is ok

I have the same error, Windows 10, old GTX960 with 4G GPU ram

Same issue here.

Fresh install from today, using all defaults, with an RTX3060/12GB.


Line number handling?

This tool looks super promising, and i threw our most horrible VB6 project at it just for fun.  surprisingly it didn't crash right away!
There does seem to be an issue with the parsing of VB6 code where there are line numbers.  eg:
Private Sub Something()
100     Dim Index As Integer
           MsgBox "Test"
End Sub

the generated code seems like it is assuming "100" is a function call:
100(Dim Index As Integer);

Suggested fix would be to add
  Line = RegExReplace(Line, "^[0-9]+", " ")
at the end of the CleanLine function in modQuickConvert

Good point.  VB6 has so many niche things, it's hard to remember all the ones you don't use regularly...
It seems like that would work well to simply remove them, but does your code have any places where it needs to then goto that line number?  It seems like inserting a C# label such as Line100 would be more thorough.  Then, whenever one encounters a GoTo ### pattern, replace it with Goto Line###.
That seems like it would take care of anyone using GoTo, even if it makes spaghetti VB6 into linguini C#.  Would that work for your use case or any other you can think of?

For my use, simply ignoring the line numbers is the better choice.
This old project has line numbers on almost every line of every function, and it's purpose seems to be in being able to indicate the exact line that errors occur on. That "functionality" is something we can live without as in a dotnet world that info is contained in the exception stack when thrown.
I also ran into cases where there were comments using "rem" ... a similar regex gets rid of those too.

How about a helper funciton called REM(str) which just no-op's.  J/K.  Both good points.  Will dig into these and get a patch soon (prob tomorrow some time).

Actually, this should handle both.  Went half way..  I parsed off the lineno, but didn't re-inject it into the C# code.  May revisit later and add an option in the config to omit them... or might just leave it until someone else asks, but it is certainly better than it was in both regards.


fix: update HTTP routing to longest matching prefix wins

Today, HTTP routing in Spin is dependent upon the ordering of component configs in spin.toml. This PR evolves the HTTP routing algorithm to longest matching prefix wins where exact matches take highest precedence followed by longest matching wildcard patterns.
test_router is updated in place to reflect the new algorithm.
Signed-off-by: Brian H<EMAIL_ADDRESS>

Closes #1098

Docs should be updated to match


NextJS: Email Auth sometimes do not work with RLS

I'm running into a frustrating issue where I'm sometimes getting blocked by RLS errors when I try to login using email/password. Signing in is successful and I confirmed that the user is authenticated. Here is an example error.
{message: "new row violates row-level security policy for table "vote"", code: "42501", details: null,…}
code: "42501"
details: null
hint: null
message: "new row violates row-level security policy for table \"vote\""

    "@supabase/auth-helpers-nextjs": "0.2.5",
    "@supabase/auth-helpers-react": "0.2.3",
    "@supabase/supabase-js": "1.35.4",

I don't think this is a RLS issue because using Google, FB, Twitter auth all works fine.

This wouldn't be related to this library. If you are saying OAuth sign in works with RLS then there is no reason the email/password wouldn't work based on this library.

@silentworks Could you suggest me to what you think is the issue then? I initially thought this was a cookie/session issue so  I tried on multiple browsers with incognito mode and the issue still persists intermittently.