Assembly loading - PlatformNotSupportedException

I am in the middle of migrating a large project from .net framework -> .net core 3.1 and during the process i am encountering "Microsoft.Data.SqlClient is not supported on this platform".
My project solution consists of the following:

.Net core 3.1 program that can load and run plugin modules through assembly.
.Net standard 2.0 plugin modules with dependecies (1 of which has a dependency on Microsoft.Data.SqlClient)

I have read the FAQ point 11 which refers to what sounds like my problem - however, i am still oblivious as to how i am to solve the problem.

Hi @Benjiinator
Is it possible to wrap a repro application and upload it here to take a closer look?
It does look like what is mentioned in point 11 may apply to your case.

Hi @cheenamalhotra
I will attempt creating one and get back to you.

Hi @cheenamalhotra
I have created a repro application and the issue still persists.
I have set it up to build the needed librarys to the path "C:/AssemblyLoading".
When publishing the exe itself i used the following settings:

Deployment mode: self contained
Target Runtime: win-x64
Produce single file: true

Hi @Benjiinator
If you specify "RuntimeIdentifier" in your PluginShared.csproj, that seems to resolve the issue:

I now see correct DLL being referenced in *.deps.json files:

Hi @cheenamalhotra
After setting the "RuntimeIdentifier", cleaning, rebuilding and publishing the application the issue is still present.

Could you also specify the same in DemoPlugin.csproj and try again?
It seems that project also needs a RuntimeIdentifier to yield this:

Hi @cheenamalhotra
This resolved my issue.
Many thanks for the help - it is much appreciated.

Hi @cheenamalhotra
After implementing your solution i now am getting the following error: "Unable to load DLL 'Microsoft.Data.SqlClient.SNI.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)" when i attempt running it on my production environment.

Hi @Benjiinator
We depend on native runtime library "Microsoft.Data.SqlClient.SNI.dll" which could usually be found on runtimes directly from where all runtime DLLs are loaded. If you haven't provided Execute permissions there (common possibility in Production env), it might be the reason your application will have issues. Please take a look at https://github.com/dotnet/SqlClient/issues/385#issuecomment-696376185 and related discussion for more details.

Hi @cheenamalhotra
I'm not quite sure how to proceed with this issue, my application is not running on iis - it is a windows service running on an administrator account.
The directory of the application does have Read & Execute permissions for the administrator account - I think i'm missing something though.

Runtime native DLLs are fetched from NuGet Cache location in .NET Core, so you will need to verify permissions to that folder too.

Hi @cheenamalhotra
A NuGet cache is not present on my production environment - i looked for it under "%localappdata%" + "/NuGet/Cache" but the NuGet folder is not present.

Hi @Benjiinator
You may find your NuGet cache location by running this tool and verify if you have required permissions:
dotnet nuget locals (details)

Hi @cheenamalhotra
After running the tool i got found out the following:

http-cache: C:\Users\Administrator\AppData\Local\NuGet\v3-cache - path does not exist
global-packages: C:\Users\Administrator.nuget\packages\ - path does not exist
temp: C:\Users\Administrator\AppData\Local\Temp\2\NuGetScratch - administrator account has all permissions
plugins-cache: C:\Users\Administrator\AppData\Local\NuGet\plugins-cache - path does not exist

Hi @cheenamalhotra
Any ideas what else could be wrong when the paths either don't exist or has the proper permissions?

Hi @cheenamalhotra
Any updates on this issue? - it is the last thing keeping us from fully migrating to .Net Core.

@cheenamalhotra After upgrading from .Net Core 3.1 to .Net 5.0 the issue disappeared.
Thanks for your help though - it is greatly appreciated

@cheenamalhotra After upgrading from .Net Core 3.1 to .Net 5.0 the issue disappeared.
Thanks for your help though - it is greatly appreciated


Automatic PR for 9b54053b-c6f6-4c6d-91a0-527b1569ea2b

The PR was created automatically by CodeNarrator. The following issues were fixed:

Refactor the validate function to reduce code duplication. The two loops that check for missing variables in required_config_vars and required_env_vars are almost identical. You can create a helper function that takes a list of variable names and a function to get the variable value (either app.config.get or os.environ.get), and returns a list of missing variable names.
Refactor the validate_conditional_config function to reduce code duplication. The two loops that check for missing variables in supported_choices[chosen_variant]["vars"] and supported_choices[chosen_variant]["env"] are almost identical. You can use the same helper function created in step 1.
In the configure function, the os.environ["DEBUG_METRICS"] = "1" line seems to be hardcoding a debug setting. This should be configurable, either through a configuration file or an environment variable.
The configure function is doing too many things. It's configuring logging, loading configuration files, setting up metrics, initializing Sentry, and logging some information. Consider breaking this function up into smaller, more focused functions.
The validate and validate_conditional_config functions are raising EnvironmentError and ConfigurationError exceptions with detailed error messages. However, these messages are not being logged before the exceptions are raised. Consider logging these error messages to make debugging easier.

test


Static function is never called under right circumstances

The following is the minimum case I was able to come up with.  Func() is never called, but if I call Dummy() first, then both Dummy and Func are both called.
if Container is replaced with an int it also doesn't work, but it does work if it's initialized inside the static constructor (or on the line it was declared).  Something about it being a class makes it so that initializing it doesn't help, but the int case should have worked as well with the default value of 0.
Scope setting for Func() doesn't matter (private/protected/public)
Using parameter x inside of Func() doesn't matter.
Hope this makes sense.
        public class Container
        {
            private int _x;

            public Container(int x)
            {
                Console.WriteLine("Container constructor called");
                _x = x;
            }
        }

        public class Sample
        {
            private static Container c;

            static Sample()
            {
                Console.WriteLine("Sample static constructor called");
//                Dummy();   // Add this line and it works!
                c = new Container(7);
                Func(c);
                Console.WriteLine("Sample static constructor ends");

            }

            static private void Func(Container x)
            {
                Console.WriteLine("Sample Func called");
            }

            static private void Dummy()
            {
                Console.WriteLine("Sample Dummy called");
            }

        }

        public static void Run()
        {

            Sample sample = new Sample();
         }

One more interesting piece.  If you have one class inheriting from another, the Dummy function has to be uniquely named in the inheritance chain or the workaround doesn't work.


Timestamps having different timezone cannot be represented in the same field of a schema

Is your feature request related to a problem or challenge?
We should be able to handle the cases where timestamps with different timezone data are stored in the same field of a schema. However, Field struct holds a DataType info, and if we want to place a different timezone:
ArrowError(InvalidArgumentError("column types must match schema types, expected Timestamp(Millisecond, Some(\"+03:00\")) but found Timestamp(Millisecond, None) at column index 0"))
Describe the solution you'd like
Timezone check for timestamps can be ignored while matching columns with the schema
Describe alternatives you've considered

Additional context

I don't believe this is possible with the arrow data model, a column must only contain data relative to a single timezone. That being said timezone aware parsing was recently added to arrow-rs and would allow parsing a timestamp with a given timezone, into the timezone of the column, e.g. UTC


Add return to review page behaviour to the degree wizard

Context
Adds return to review page after edit functionality to the new degree flow.
Changes proposed in this pull request

If user changes from uk to international degree and vice versa, wizard will take user back through the degree flow
If user changes degree level (e.g Foundation degree => Bachelor degree), wizard will take user to the type page to pick their specific degree type. If the degree doesn't have a type, user will instead be taken to the review page
If user changes from a complete to an incomplete degree and vice versa, wizard will take user to award year to enter a new year, then to review page.
If user changes from an incomplete to an complete degree and it is an international degree, wizard will take user to award year page and also the enic page, then to review page.
If there are no dependent answers, the user will be taken to review page after answer is edited
Adds a feature test for editing degree
Refactor to DRY degree controller

Guidance to review
Verify that the degree has expected behaviour
Link to Trello card
https://trello.com/c/X5jPv4jJ/4561-add-return-to-review-page-behaviour-to-the-degree-wizard
Things to check

[ ] If the code removes any existing feature flags, a data migration has also been added to delete the entry from the database
[ ] This code does not rely on migrations in the same Pull Request
[ ] If this code includes a migration adding or changing columns, it also backfills existing records for consistency
[ ] API release notes have been updated if necessary
[ ] Required environment variables have been updated added to the Azure KeyVault

Quick test appears to work well


Test pipeline

Description
Include a summary of this pull request
New dependencies: (Added to requirements_*.txt)
Fixes # (potential issues that are fixed by this PR)
Type of Change

[ ] Bug fix (non-breaking change which fixes an issue -> bump patch)
[ ] New feature (non-breaking change which adds functionality -> bump minor version)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected -> bump major version)
[ ] Documentation Update

Checklist

[ ] I have added tests that prove that my fix/feature works
[ ] Linters pass locally and I have followed PEP8 code style
[ ] New and existing tests pass locally
[ ] I have updated the documentation if needed
[ ] I have commented hard-to-understand areas in the code

Requirements

[ ] I have updated the MVG version

This is a test pull request to test the validate examples task in ci-checks pipeline.


Identifier doesn't work for rasters

This issue was imported from CodePlex
jirikadlec2 wrote 2011-02-05 at 09:31
The built-in DotSpatial identifier on the SpatialToolStrip doesn't work with rasters:

Open DemoMap and add a raster layer to the map

Click the identifier "(i)" button on the main toolbar

Click on a point on a raster in the map

An empty "FeatureIdentifier" dialog appears. I would expect the dialog to show the raster value and the raster row,column at the clicked point.
Screenshot is attached.

Good suggestion. Even more: now identifier throws unhandled exception on raster layers. Schedule it to 2.0.

This already works. Close.


Multi Modality Datasets

Hi,
I'd like to reproduce the results in your Spatial-ATAC-seq and Stereo-seq data alignment experiment
I noticed there are many h5ad files in the Stereo-seq data website https://db.cngb.org/stomics/mosta/download/.
Could you tell me exactly which file you used in your experiment?
And it would be nice if you could also provide the processed Spatial-ATAC-seq data "seurat_peaks.csv" because I had trouble running ArchR on my machine. Thank you!
Best regards

Hi @DruncBread,
Thanks for your interests ! We use the E11.5_E1S1.MOSTA.h5ad.
The raw "seurat_peaks.csv" in paper is not saved but I regenerate it with a higher version ArchR. I hope it can help you. (Link)
Best !


ardana-init: Create ~/openstack/change_credentials(bsc#1080873)

@toabctl Please please spend the extra 20 seconds writing a proper commit message. I know we're pressed for time but I don't think cutting this particular corner is justified in the long run :)


Update !room to new campus map (& new api)

Updated to new API, but

warwick's endpoint for thumbnail images seems to have not been updated: it only works on old IDs and there isn't a known mapping.
Since lat/lon has dropped off the API, google maps links aren't provided.
seems like the API has some erroneous data that needs sorting


Suggestion: include a dist folder

Following on from an earlier issue with not locating the popper.js distribution files, I'd like to suggest that the source also include a dist folder with the compiled version of popper.js and a minimised version too. This is in keeping with how many other js libraries are packaged and would generally be the first thing most consumers would look for when they use the library for the first time.

This has already been discussed here:
https://github.com/FezVrasta/popper.js/issues/308#issuecomment-308664696


Bug: When listing users filtering by visible apps does not appear to work

🌎 Environment

OS: macOS 10.15.6
Version/Release: master as of ef5daf191a22a7533ed05c6d8030692e3b5da7a7

💬 Description
When listing users and attempting to filter users who can only access certain apps, instead of filtering by visible apps it seems to return no users.
🦶 Reproduction Steps
Steps to reproduce the behavior, provide an example of the command line issued:

Run swift run asc users list --include-visible-apps --filter-visible-apps iba.test2

🤔 Expected Results
That the users who have access to iba.test2 app are shown.
😲 Actual Results
+----------+------------+-----------+------+----------------------+------------------+--------------+
| Username | First Name | Last Name | Role | Provisioning Allowed | All Apps Visible | Visible Apps |
+----------+------------+-----------+------+----------------------+------------------+--------------+

+----------+------------+-----------+------+----------------------+------------------+--------------+

It seems you have to specify the app's id not bundleId when filtering by visible apps.


[BEAM-9919] Refining xlang types and wrappers

Types used by xlang such as graph.ExternalTransform and graph.ExpandedTranform have been refined to make use of existing types such asgraph.Inbound and graph.Outbound. All data operations related to input and output graph.Node counterparts of a pcollection associated with xlang have been simplified and segregated appropriately.
In doing so, how the external node is being added to graph.Graph has been changed to afford easier composability.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Choose reviewer(s) and mention them in a comment (R: @username).
[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

R: @lostluck

CC: @chamikaramj

Run Go PostCommit


Breaks other mods that provide creative flight

I can't use any items from other mods (like the Angel Ring from Extra Utilities 2) that give me creative flight when using CTD-Tweaks.

Huh. That's gonna be a tricky one!

Alright; I think this might be fixable with Baubles. Will let you know!

Fixed in Build 1.5.5, now requires Baubles though!


Refactor: do not route vals_ methods through GT object

Currently, functions like vals.fmt_number() work as follows:

The input list or value is converted to a pandas DataFrame
The DataFrame is wrapped in GT
The corresponding fmt_ method is run
The formatted values are extracted as a list

This is problematic for two reasons:

It creates a hard dependency on pandas
It feels a bit circuitous to wrap in GT, run, then take out

Removing use of GT
Fortunately, it seems that GT.fmt_* methods don't make much use of the GT object. Uses seem to be largely:

Getting a default locale setting
Passing in the DataFrame to dispatch on for is_na() checks
At the very end, attaching to GT._formatters, and returning a new GT object

It seems like we could pretty easily run vals.fmt_* funcs straight over formatter logic. This would let us remove the pandas dependency.
Alternatively..
An alternative would be for us to support GT(SomeInBuiltFrame). GT's core logic does not require a very beefed up DataFrame implementation. We could get away with a class that's essentially a dictionary of same-length lists. This might actually be easier, since we wouldn't need to refactor the formatter code.

Alternatively alternatively...
We could support inputting a pandas series or polars series as the input values. We have the machinery to detect these, and at that point do pandas/polars specific things w/o creating any dependencies.


add GTL keys to the local_settings.py.template

GTL needs to be added to LIB_LOOKUP and INELIGIBLE_LIBRARIES

closed by t997-add-GTL-keys-to-template


Use a simulation rate of 30 steps per second instead of 10

A faster tick rate reduces the lag between mouse clicks and the modification of terrain, which would be a good quality of life improvement, especially while prediction is not implemented for terrain modification.

Sounds good to me. I bumped it up to 30. Going up to 60 might be nice, but it does increase required bandwidth etc. so I'll only bump it up further if you suggest such a change explicitly.

I don't foresee bandwidth being a problem, but this seems like a happy medium.


⚠ Bofrost.at has degraded performance

In 4363abe, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2203 ms

Resolved: Bofrost.at performance has improved in 0cae050.


Feature: Support docker-from-docker for dev containers with non-root user

If you configure a container to use a non-root user, then attempting to build a docker image inside the dev container (i.e. by mounting the host's /var/run/docker.sock in the container), gives a permission denied error running docker build. Using sudo docker build results in a docker not found error because the docker CLI was installed as the non-root user.
It would be good to look at how to make this scenario work with the action/task.

cc @lawrencegripper

I look at doing something similar a while back when using Linux as my main dev machine. I played around with using user namespace mapping to try and align the UID and GroupID of the non-root using in the container with the current user on the host: https://docs.docker.com/engine/security/userns-remap/
I'm not entirely sure why this didn't work but I do remember I gave up after a bit.

Ah yes - I think it will need to do that. Then once the UID & GID of the container user match the host user, I think it will also need to ensure that there is a docker group in the container with the same ID as the docker group on the host (as here)

I think this would also make it possible to remove the chown 'workaround' here which would be a nice benefit :-)

Thoughts:

check /etc/passwd on the host to get the host user's UID/GID
check /etc/passwd in the container to get the container user's UID/GID
if the UID/GID doesn't match then update
check /etc/group on the host to get the docker group ID on the host
check /etc/group in the container to get the docker group ID in the container
if the group IDs don't match then update

Notes:

I think that both GitHub and AzDO hosts use the docker group to secure the docker socket. Could extend this by checking the ownership of the socket
Need to think what to do if there's a clash of IDs. E.g. if the host docker group ID matches a different group ID in the container

Proposal


tracing: add router option to create child span for egress calls

This is needed so that traces with other outbound calls are properly
nested. Currently no tags are set but we can add these in the future
including retry number, etc.
Signed-off-by: Matt Klein<EMAIL_ADDRESS>

@goaway @objectiser @rshriram @danielhochman

Also - do you have a zipkin/jaeger screenshot showing an example (possibly where multiple retries occurred)?

Sorry I don't have a quick test setup for this for Zipkin. I can provide some LS dashboard screenshots when we deploy.


Make sure only return is an accepted type

Thank you, was just about to make those changes and noticed this PR


perf: reduce allocations by using Unitask

Unitask is a zero allocation replacement for C# Task for unity.
It significantly reduces the amount of allocations done in NG.
This is required in order to use the new KCPTransport
In the multiclient benchmark:
Before:

Time Millisecond Median:23.28 Min:3.21 Max:493.28 Avg:57.72 Std:81.46 SampleCount: 256 Sum: 14775.18

After:

Time Millisecond Median:35.41 Min:3.46 Max:387.49 Avg:40.78 Std:35.38 SampleCount: 256 Sum: 10438.66

So this is 41% faster than master and has less than half the standard deviation in my machine
BREAKING CHANGE: Replace Tasks with UniTask

Not a show stopper and more of an issue with TcpTransport than anything. Getting SocketException when the client disconnects. Repro: build Tanks example as standalone. run client in standalone. Close the client via X. Server gets SocketException.
Otherwise everything seems to function normally


Release branch v1.1.0

What's new:

Local caching
No config start mode
Service run mode
Custom config start mode
Interface DNS assignment

And various bug fixes and performance improments.

There's only an IPv4 bootstrap DNS IP in v 1.1 so far. Bootstrap DNS IPs should be IPv4 + IPv6.

This will be supported in v1.1.0 release.


Add exists to expression DSL functions

This will allow the user to check for the existence of a record without loading it.

I'd like to work on this, if no one else has started it.

Sure, go ahead. I don't think anyone is working on this. Have you seen
any? The implementation might be similar.
Josh Holmer<EMAIL_ADDRESS>schrieb am Do. 15. Sep. 2016 um
13:43:

I'd like to work on this, if no one else has started it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/diesel-rs/diesel/issues/414#issuecomment-247305828,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABOX3tTUd9Xkx85waFmpLUW4LP96Jknks5qqS9PgaJpZM4Jot2m
.

I'm struggling a bit getting my initial test to pass. I have an implementation which compiles, which is based off of how count works, but my ExistsDsl trait doesn't seem to be implemented for the correct traits. I'm getting:
---- query_dsl::exists_dsl::ExistsDsl_0 stdout ----
	error: no method named `exists` found for type `users::table` in the current scope
  --> <anon>:15:20
   |
15 | let exists = users.exists().first(&connection);
   |                    ^^^^^^
   |
   = note: the method `exists` exists but the following trait bounds were not satisfied: `diesel::query_builder::SelectStatement<(diesel::types::Integer, diesel::types::Text), (users::columns::id, users::columns::name), users::table> : diesel::exists_dsl::ExistsDsl`, `&users::table : diesel::QuerySource`, `&users::table : diesel::query_builder::AsQuery`, `_ : diesel::exists_dsl::ExistsDsl`, `_ : diesel::Expression`, `&users::table : diesel::query_builder::Query`, `&mut users::table : diesel::QuerySource`, `&mut users::table : diesel::query_builder::AsQuery`, `_ : diesel::exists_dsl::ExistsDsl`, `_ : diesel::Expression`, `&mut users::table : diesel::query_builder::Query`
   = help: items from traits can only be used if the trait is implemented and in scope; the following trait defines an item `exists`, perhaps you need to implement it:
   = help: candidate #1: `diesel::exists_dsl::ExistsDsl`

When currently my ExistsDsl implementation looks like this:
pub trait ExistsDsl: AsQuery {
    type Output;

    fn exists(self) -> Self::Output;
}

impl<T, ST> ExistsDsl for T
    where T: QuerySource + AsQuery<SqlType=ST>,
          T::Query: ExistsDsl + Expression {
    type Output = SelectStatement<Bool, Exists<T::Query>, ()>;

    fn exists(self) -> Self::Output {
        select(exists(self.as_query()))
    }
}


Swift4 KeyPath Support

Tailor Version: v0.12.0
Swift Version: 4.0
Platform (Mac/Linux/Windows/CI): Mac
Installation Method: Homebrew
Steps to Reproduce Issue

Have a swift file containing \SomeClass.someProperty, like this:

@objc class SomeClass: NSObject {
    var someProperty: Int
    init(someProperty: Int) {
        self.someProperty = someProperty
    }
    func keyPathTest() -> String {
        return #keyPath(someProperty)
    }
    func keyPathTestForSwift4() -> KeyPath<SomeClass, Int> {
        return \SomeClass.someProperty
    }
}

Expected Behavior
Macros.swift should be parsed successfully
Actual Behavior
./Macros.swift could not be parsed successfully, skipping...

PR #493 just pushed


Allow uprobes to work across filesystem namespace boundaries

When attaching to a uprobe, bpftrace will try to cache symbols for all pids using that program. It does this by canonicalizing the executable path and scanning /proc for processes whose /exe matches.
For containers, this will not work as the canonicalize command will resolve /proc/123/root/foo/bar to /foo/bar in the host filesystem and then error trying to canonicalize that because it doesn't exist on the host filesystem.
The proposed solution is, when getting the pids for a program, if the path is of the form /proc/<pid>/<root>/<path>, don't bother with the search and just extract the pid from the path itself.

Checklist

[n/a] Language changes are updated in man/adoc/bpftrace.adoc and if needed in docs/reference_guide.md
[ ] User-visible and non-trivial changes updated in CHANGELOG.md
[x] The new behaviour is covered by tests

@viktormalik @lenticularis39 Addressed comments. Now get_pids_for_program just bails if it cannot get the canonical path.

Closing in favour of #2802


Make local release cross-platform + fix

This PR makes py.release work correctly on all platforms (important for local releasing for testing).
See comments for details.

This change is

/lgtm
/approve


Enabled doccords in hall.

This goes through the new hall files and makes the doccords syntax compile.
@Fang-

This is great, thanks so much for going over all my temporary-style comments!
I'm kind of sad to see the column-57 comments go, but it also reads more like an actual document this way.

Imo they're incredibly helpful as context cues for where all the ++'s are,
but I've noticed that in general my spacing intuitions don't fit super well
with ++deco styling
On Monday, 11 December 2017, Fang<EMAIL_ADDRESS>wrote:

Merged #482 https://github.com/urbit/arvo/pull/482.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/urbit/arvo/pull/482#event-1381096696, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ABxXhnGyP1_FouSowrlz6klelExQcNB9ks5s_P9bgaJpZM4Q81j4
.

I don't particularly mind the column-57 comments on the gates. However, this doesn't compile:
++  gate         :<  short comment
  :>  long comment
  42

Wh?
looks at the parsers
On Tuesday, 12 December 2017, Elliot Glaysher<EMAIL_ADDRESS>wrote:

I don't particularly mind the column-57 comments on the gates. However,
this doesn't compile:
++  gate         :<  short comment
:>  long comment
42
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/urbit/arvo/pull/482#issuecomment-351300430, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABxXhhdBsvvtxeD0qoIL5vUfNp_fRR1qks5s_3RGgaJpZM4Q81j4
.


does the service binding not work in dev?

[nitro] [unhandledRejection] Illegal invocation
at Object.waitUntil
at H3Event.event.waitUntil
at captureError
at Object.onError

This issue comes from recent changes in wrangler package, lock its version to 3.63.0 as a workaround in your package.json dependencies and the issue should be gone for now
- "wrangler": "^3.65.0"
+ "wrangler": "3.63.0"

This error seems to happen in dev only since ExecutionContext does not exist in dev

This issue comes from recent changes in wrangler package, lock its version to 3.63.0 as a workaround in your package.json dependencies and the issue should be gone for now
- "wrangler": "^3.65.0"
+ "wrangler": "3.63.0"

This error seems to happen in dev only since ExecutionContext does not exist in dev

thanks, i will try it later

@Giancarlo-Ma you can now upgrade to latest without pinning dep as it is fixed in latest release.


Invisible border of tooltip

The tooltip must be wrapped in Card. Soon I will implement Card and fix the tooltip.


collect ethereum learning resources for a first workshop app

TODO
collect short videos, articles, etc... which fit together and teach one thing well so they can be used in the first play workshop
important: once we make a workshop is ready, it needs to have a working strategy how to keep it up to date
content:

https://github.com/miguelmota/solidity-idiosyncrasies
https://github.com/ConsenSys/smart-contract-best-practices
https://github.com/fivedogit/solidity-baby-steps/tree/master/contracts
https://solidity.readthedocs.io/en/v0.4.24/common-patterns.html

more sources:

https://ethereum-magicians.org/t/education-session-outtakes-list-of-resources/724

I will do this issue.
https://github.com/alincode/ethereum-zero-to-hero

This is awesome - we just had our weekly play meeting and realised you added a bunch of resources.
They look promising :-)
Thanks for sharing. We will be following the progress.

Magicians

better dev experience for smart contract writing

language (ewasm, new possibilities)
tooling

debugging

better debugging tools (console log options)

zero-X project

gas cost for each contract
coverage tool

ether camp learning platform

wishlist:

console log for debugging
syntax highlighting
amount of gas used tool
verify contracts tool
overview over tooling AND +/- for features
web assembly studio for IDE inspiration
protocol bango
react create app
block stichting

Resources for learning

magicians forum
karls crypto economics
zero knowledge podcast (ana rose)
github awesome list
web3 and solidity docs
open zepplin
ethereum wiki
MIT blockchain
reddit ethereum & ethereum/dev
design for crypto.com
jackson palmer youtube channel
crypto news / mastering ethereum
antonopulous
LOPP.net/bitcoin.html
crypto cannon articles
weekly newsletter (for blockchain - nina has link)
social coding room (KAI-riot) ...livepeer?
livepeer
crypto zombies
ethereum.network/learn (@ mr. rigel)
think: limited timeboxed scheduled workshops


Console window does not support parameters with spaces/quotes

As you can use the API to create/interact with items requiring spaces (signMessage, etc)
The console window should support tokenizing based on quoted blocks of text
We should also support escaped quotes, so signMessage "hello \"world\"" should parse

Any plan on improving this?

Yes, this kinda fell off my radar

#203 merged, fixed.


Default tile size of 256 with crga_processor not working

Hello,
I am running having trouble running inference with the crga_processor using the default tile size (ts) of 256.  Reducing the tile size to 128 solves this issue. The problem seems to be with source #6 (DEM).
processor = crga_processor(il_s1after, il_s1before, il_s1, il_s2after, il_s2before, in_s2, dem, crga_savedmodel,
                    output=output_crga, output_20m=None, ts=256, pad=64,
                    with_20m_bands=False, maxgap=144, with_intermediate=False)

Error:
Writing /opt/working/output/CRGA_S2A_MSIL2A_20220205T111241_N0400_R137_T31UCT_20220205T143058.tif?&streaming:type=tiled&streaming:sizemode=height&streaming:sizevalue=256&gdal:co:COMPRESS=DEFLATE&gdal:co:TILED=YES...: 0% [                                                  ]Traceback (most recent call last):
  File "predict.py", line 45, in <module>
    processor = crga_processor(il_s1after, il_s1before, il_s1, il_s2after, il_s2before, in_s2, dem, crga_savedmodel,
  File "/opt/working/decloud/production/crga_processor.py", line 181, in crga_processor
    processed_10m.write(out=output, filename_extension=filename_extension)
  File "/usr/local/lib/python3.8/dist-packages/pyotb/core.py", line 99, in write
    self.app.ExecuteAndWriteOutput()
  File "/opt/otbtf/lib/otb/python/otbApplication.py", line 2321, in ExecuteAndWriteOutput
    return _otbApplication.Application_ExecuteAndWriteOutput(self)
RuntimeError: Exception thrown in otbApplication Application_ExecuteAndWriteOutput: /src/otb/otb/Modules/Remote/otbtf/include/otbTensorflowMultisourceModelFilter.hxx:349:
itk::ERROR: TensorflowMultisourceModelFilter(0x3e44640): The input requested region of source #6 is not consistent (dim 0).Please check RF, EF, SF vs physical spacing of your image!
Receptive field: 192
Expression field: 256
Scale factor: 1
Reference image spacing: 10
Image 6 spacing: 10
otbuser@f6a7ab15cd19:/opt/working$

Hi @alexdownforce ,
Thanks for the feedback.
Could you copy/paste the log before the problem happen? The full log from the start would help us a lot. For now we are unable to reproduce the bug. Also, can you confirm that the DEM spacingx/y is 20m ?
Many thanks

Thanks for the response. I had the DEM at 10m which was causing the issue. I have changed the x/y spacing to 20m and it is working as expected.


Add post: Updating the start page to include reference to the mentor’s date of birth

 Update start page to reflect the additional requirement of D.O.B


Construction API Primitives [Part 3]

Related Issue: https://github.com/coinbase/rosetta-cli/issues/112
Changes

[x] Add support for find_balance primitive (replaces find_account, find_coin, and wait_for_funds)

Pull Request Test Coverage Report for Build 4583

132 of 157 (84.08%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.2%) to 76.564%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

constructor/worker.go
132
157
84.08%

Totals

Change from base Build 4461:
0.2%

Covered Lines:
4211

Relevant Lines:
5500

💛  - Coveralls


Clean up bz2 file after unarchiving

Nothing major, just thought it's good to do some house-keeping :)
thanks for putting these instructions together. Really helpful!

Glad to be useful 🤗


Feathers error 409 - conflict: message 'follows: null already exists''

I'm facing very strange problem.
when I run 'create' from my client on a service, Always return error with a message 'follows: null already exists'
my service is very simple
import mongooseService from 'feathers-mongoose';
import PostModel from './postmodel';
export default function postService() {
 const app = this;
 app.service('/post', mongooseService({Model: PostModel}));
// apply no hooks
}
// the model
import mongoose from 'mongoose';
const Schema= mongoose.Schema;
const PostSchema = new Schema({
 title: { type: String},
content: { type: String}
// that's all
});
const PostModel = mongoose.model('Post', PostSchema);
export default PostModel;

Please help if you have a solution.
Thanks in advance.

That seems kind of odd, I don't think I've ever seen that. Do you have a unique constraint somewhere else (e.g. creating a user?)

many thanks for your advise.
I have an array of user who follow the post and was defined in the schema like this
// post shema
follows:[{type: Schema.Types.ObjectId, unique: true, ref:'User'}]

and then my mongodb create an index on this field. if I obmit this field in creat method service will throw this err.
question: how to make the array of unique ref to User.
thanks.

If you want to allow unique indices to also be null in MongoDB you have to set sparse: true:
// post shema
follows:[{ type: Schema.Types.ObjectId, unique: true, ref:'User', sparse: true }]

thank you so much @daffl . will try it.

hi @daffl .
I have try to change my Schema
follows: [{ type: Schema.Types.ObjectId, ref: 'user', unique: true, sparse: true}]

and when I create a new post, there are still errors :
Conflict: follows: undefined already exists
...
code: 409

is there any other thing I have to change in the Schema/Model/Service ?

I'm not sure if this works for arrays but it might also be
follows: [{
  type: Schema.Types.ObjectId,
  ref: 'user',
  index: { unique: true, sparse: true }
}]

not work in my case. Whenever I update the first ref user into this array, Mongo create an index on this field. Think that's my problem with Mongo other than this. Thanks @daffl l.

@daffl I've been slightly spamming slack and I really apologise for that.
This issue I am getting is kind of similar to the one here.
I am currently able to create one MongoDB user, along with an _id of type ObjectId,
I am able to authenticate my user, and use that authentication to fetch the list of users, this is a user object.
{     "total": 1,     "limit": 10,     "skip": 0,     "data": [         {             "_id": "5a9a8c3e4b0aac22847635fe",             "updatedAt": "2018-03-03T11:51:26.171Z",             "createdAt": "2018-03-03T11:51:26.171Z",             "email"<EMAIL_ADDRESS>            "__v": 0         }     ] }
What i am not able to do is create a new user as each time I try I get an error code of 409 with the following response
{     "name": "Conflict",     "message": "id: null already exists.",     "code": 409,     "className": "conflict",     "errors": {         "id": null     } }
I am really sorry for sending so many messages on this, I just really want and need to get my head around what is going on. Thank you very much for providing any insight

@daffl I've been slightly spamming slack and I really apologise for that.
This issue I am getting is kind of similar to the one here.
I am currently able to create one MongoDB user, along with an _id of type ObjectId,
I am able to authenticate my user, and use that authentication to fetch the list of users, this is a user object.
{ "total": 1, "limit": 10, "skip": 0, "data": [ { "_id": "5a9a8c3e4b0aac22847635fe", "updatedAt": "2018-03-03T11:51:26.171Z", "createdAt": "2018-03-03T11:51:26.171Z", "email"<EMAIL_ADDRESS>"__v": 0 } ] }
What i am not able to do is create a new user as each time I try I get an error code of 409 with the following response
{ "name": "Conflict", "message": "id: null already exists.", "code": 409, "className": "conflict", "errors": { "id": null } }
I am really sorry for sending so many messages on this, I just really want and need to get my head around what is going on. Thank you very much for providing any insight

I just faced the same problem with one of my collections. First single doc was written correctly but no more new additions were failing with mentioned conflict error.
I must mention the schema
{
 fieldOne : String,
 fieldTwo: [String]
}

-- that's it!
But any patch or get requests were executing successfully on first record.
My codes are running on localhost and DB on mongo atlas cloud.
After wasting all the energy finally deleted the entire collection.
NOW IT"S WORKING AS DESIRED!
Thank god it was in development phase!


Adding Google Authentication

@codervivek5 I want to add Google Authentication to the website. Kindly assign this issue to me.

@codervivek5 Can I work on this issue?

This is already added


removed unnecessary objects in compose.go

In compoese.go while iterating on the ServiceConfig objects first it's keys were pulled and then data was pulled separately which can be done in one step by iterating on the dictionary.

ping @kadel


Bugfix for Telemetry

found 2 potential bugs that could lead to loss of telemetry:

3600 * 3s before sending telemetry
compressing tele with empty records that caused wiping tele with non-empty records, so we had nothing to send.

Bug 1, 2 are fixed in this commit.

@olegklimov I can see an issue with 3 hours. 3 hours not only means code is being sent each 3 hours, it's being compressed and written into files either. Keeping 3 hours instead of 1 hour may lead us loosing data before it's saved to a file

TODO: send statistics on start


Performance issue with large list and long search text

I'm not sure am I doing something wrong, but I noticed that when doing search with a very long string and quite low threshold of 0.3, the search becomes very slow ~8-900ms with MBP 2015.
It's hard for me to pinpoint exactly the cause, but since there isn't issues searching with a short string, I guess the longer string just isn't handled well by a computation, that isn't exactly O(1).
https://imgur.com/a/T9OYGJ1
That's the lowest level where my Chrome JS profiler was able to get to. Doing simple performance check with:
      console.time('search')
      const newResults = fuse.search(newVal)
      console.timeEnd('search')

confirms that this indeed is the culprit.
A value for newVal might be eg Ajoneuvot ja liikenne / Autot / Automerkit / Volkswagen / Bora, Vento ja Jett. Fuse is provided a list, where the first searched value is string (similar to that previous one), the second the splitted version of that same string from '/' eg ['Ajoneuvot ja liikenne', 'Autot', 'Automerkit', 'Volkswagen', 'Bora, Vento ja Jett']. The options object being: {threshold: 0.3, keys: ['text', 'breadcrumb'], maxPatternLength: 32 }.
My search items list is 2427 long, with a single instance being eg:
  {
    breadcrumb: ["Ajanviete"]
    key: 52
    text: "Ajanviete"
    value: 52
  }

I made a demo here https://teemukoivisto.github.io/search-demo-app/
Quite weirdly, it is much faster when I have Chrome's developer tools hidden. Now it's even usable on my Android. But it's still laggy and the worst of all, when I have a specific topic chosen, topics close to it don't show in sequential fashion.
Eg I have topic Harrastukset / Pelit / Vedonlyönti ja rahapelit / Pokeri / Pokeriturnaukset chosen, yet after first 10 or so items I start getting topics from way off the original eg Viihde ja kulttuuri / Kirjallisuus / Sarjakuvat / Omat sarjakuvat. It should be showing topics from the same parent topic eg Harrastukset / Pelit / Vedonlyönti ja rahapelit / Yleistä vedonlyönnistä and work its way down. I added the tokenize: true parameter but it didn't help.
I guess this means I have to make my own custom search. I had hoped I would avoid using dull substring search but I guess I have to make use of it. Maybe use only fuzzy search for the last 10 characters of the string.

@TeemuKoivisto how is this performing on the latest version?

@krisk hi and I don't really notice a different as it still gives weird results when the string is long. So the items that have the most similar prefix aren't shown always as the top results. My custom approach with manual matching of the breadcrumb list seems quite the optimal in this case, with fuzzy searching only the last item in the breadcrumb. And it's fast although I could have probably optimized the rendering a little with a virtualized list or something.

I am facing the same issue as on my React Native app. There are 2k items and the performance significantly dropped when the search text was growing from 1 to 100 chars.
Setting the threshold to lower value (lower fuzziness) would help a bit.

https://github.com/nextapps-de/flexsearch?tab=readme-ov-file#performance-benchmark-ranking
Fuse has the worst bencmark result.
Highest ram usage + slowest query speed.


Make Lexer thread safe

We only actually support two sets of punctuators in practice : . , ; and , ; ;;. This cleans up a bunch of statics in the Lexer and moves to use CurrentCulture's decimal separator for picking which lexer to use.

Pull Request Test Coverage Report for Build 304167

0 of 0   changed or added relevant lines in 0 files are covered.
401 unchanged lines in 12 files lost coverage.
Overall coverage increased (+0.05%) to 57.883%

Files with Coverage Reduction
New Missed Lines
%

/src/libraries/Microsoft.PowerFx.Core/Parser/ParserOptions.cs
1
83.33%

/src/libraries/Microsoft.PowerFx.Core/Syntax/Formula.cs
3
80.0%

/src/libraries/Microsoft.PowerFx.Core/Lexer/Tokens/NumLitToken.cs
4
60.87%

/src/libraries/Microsoft.PowerFx.Core/Texl/Intellisense/IntellisenseResult.cs
12
72.62%

/src/libraries/Microsoft.PowerFx.Core/Texl/Intellisense/SuggestionHandlers/CleanupHandlers/StringSuggestionHandler.cs
18
0%

/src/libraries/Microsoft.PowerFx.Core/Texl/Intellisense/IntellisenseSuggestion.cs
22
56.98%

/src/libraries/Microsoft.PowerFx.Core/Lexer/LocalizationUtils.cs
27
3.03%

/src/libraries/Microsoft.PowerFx.Core/Syntax/TexlPretty.cs
39
86.44%

/src/libraries/Microsoft.PowerFx.Core/Logging/StructuralPrint.cs
40
66.19%

/src/libraries/Microsoft.PowerFx.Core/Lexer/TexlLexer.cs
53
93.65%

Totals

Change from base Build 304044:
0.05%

Covered Lines:
19620

Relevant Lines:
33896

💛  - Coveralls


New Dask 2022.10.1. release broke Airlfow's integration tests

The new Dask release broke (due to bokeh removal) tests for Airflow Dask Executor integration. Since we have almost no knowledge of Dask, we have to defer it to your team to fix it.
In the meantime we just limit  Dask to < 2022.10.1 in Airlfow: https://github.com/apache/airflow/pull/27383 .
I would love if someone from the Dask team or especially Dask users could take a look and fix the tests as appropriate.
Example failing build here: https://github.com/apache/airflow/actions/runs/3356434694/jobs/5561625862#step:9:19064
Fixing it is as easy as getting our breeze env runnnig and updating to latest version of dask there and runnint tests - easy steps explained in https://github.com/apache/airflow/blob/main/CONTRIBUTORS_QUICK_START.rst - an easy way to become an Airflow contributor.
Also I think Dask team should seriously consider if they want to start maintaining it separately from Airflow.
We have virtually no experience of Dask in the maintainer team, and we already started discussions in the past to deprecate the executor regardless (and we might soon come back to the discussion) - I wonder if that is something you would like to take on that one. We have some examples of integrations with Airlfow (for example Great Expectations) where they maintain Airlfow integration in their own packages (precisely for the reason of maintaining future compatibility and keeping up with their deprecations/changes).

Describe the issue:
Minimal Complete Verifiable Example:
# Put your MCVE code here

Anything else we need to know?:
Environment:

Dask version:
Python version:
Operating System:
Install method (conda, pip, source):

Thank you for reporting @potiuk .  We'll take a look shortly.
@ian-r-rose can I ask you or someone on your team to investigate what happened?  My guess is that some bokeh import was made non-optional in the latest release.

I think https://github.com/dask/distributed/pull/7230 is intended to resolve this.

Yeah, took me a minute to find everything.  Going through it now personally.  @jrbourbeau is out this week on PTO which is probably why this slipped through.

I've yanked the bad release and will be publishing a new one shortly.  You all should be good.

This has been resolved upstream in Dask.  My apologies for the issue.  The previous release has been yanked from PyPI and a new release has been published.  It is on PyPI now and should be on conda-forge shortly.


Use HTTPS Only

If cert cost is an issue, look into using letsencrypt.

Look into this https://github.com/substrakt/letsencrypt-heroku

The certificate has been uploaded. All we need to do now is update some of our DNS records and we should be good to go. I ended up following this blog post to set it all up.
I had to make one change in order for it to work. The blog post says to run this command:
sudo heroku certs:add /etc/letsencrypt/live/domain/fullchain.pem /etc/letsencrypt/live/domain/privkey.pem
However, the file path was a little different and I also had to add --app openhsv to the end of the command. Here's the command I ended up running to get the Heroku CLI to upload the certificate:
sudo heroku certs:add /etc/letsencrypt/live/openhsv.com/fullchain.pem /etc/letsencrypt/keys/0000_key-certbot.pem --app openhsv

Because we're paying for Heroku they are now handling this for us.


Create appropriately versioned packages

Follow-up to #7, each package is currently published as 1.0.0.
The semver of the project should be used to generate the version.
The Makefile should use the git tagged version and publish packages with that version by sending that version to the openapi generator tool.
Packages could be generated only on release tags or we could generate packages on all main commits.
If we release packages on all main commits we need to either preserve these packages indefinitely or for a shorter period of time.
If stored indefinitely, the package versions should be semver with a git sha suffix, (git tag --points-at HEAD or if empty git describe --abbrev=0 suffixed with - and git log -1 --format="%h").
One approach to 'a shorter period time' would be to create a job or retention policy that reduces the lifetime of a main package. Anothe approach would be to use a fixed semver stamp for these packages - perhaps 0.0.0?
The problem with indefinite storage is that we create packaging noise. New packages for every README.md change, for example. We could avoid this by only producing packages when the generated SDK changes.

Builds are also failing if a package with the same version is created/published.

The artifact version is defined in https://github.com/equinix-labs/metal-java/blob/main/spec/oas3.config.json#L4, which sets the version in https://github.com/equinix-labs/metal-java/blob/main/equinix-openapi-metal/build.gradle#L7

Closed by #150. Semantic Releases based on Conventional Commits now set the version.


fix(deps): update gomod

This PR contains the following updates:

Package
Type
Update
Change

github.com/IBM/vpc-go-sdk
require
minor
v0.58.0 -> v0.59.0

github.com/gruntwork-io/terratest
require
patch
v0.47.1 -> v0.47.2

go (source)
toolchain
patch
1.23.1 -> 1.23.2

golang.org/x/crypto
require
minor
v0.27.0 -> v0.28.0

Release Notes

IBM/vpc-go-sdk (github.com/IBM/vpc-go-sdk)
v0.59.0
Compare Source
What's Changed

feat(spec): updated the sdk as per the api spec released on 2024-09-30 by @ujjwal-ibm in https://github.com/IBM/vpc-go-sdk/pull/101

Full Changelog: https://github.com/IBM/vpc-go-sdk/compare/v0.58.0...v0.59.0

gruntwork-io/terratest (github.com/gruntwork-io/terratest)
v0.47.2
Compare Source
Modules affected

ssh
terraform

Description

Updated logging line in ssh module
Refined terraform output by removing unnecessary info lines
Update rexml dependency

Related links

https://github.com/gruntwork-io/terratest/pull/1440
https://github.com/gruntwork-io/terratest/pull/1437
https://github.com/gruntwork-io/terratest/pull/1445

Full Changelog: https://github.com/gruntwork-io/terratest/compare/v0.47.1...v0.47.2

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

ℹ Artifact update notice
File name: go.mod
In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

2 additional dependencies were updated

Details:

Package
Change

golang.org/x/sys
v0.25.0 -> v0.26.0

golang.org/x/text
v0.18.0 -> v0.19.0

/run pipeline

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


Simple UX improvements for Markdown

First off I just wanted to say I love lite! it's super light/fast with built-in tree-view + syntax highlighting in a beautiful dark mode by default.
I love its minimal style which I'm now using as a minimalist distraction-free editor for writing Markdown docs.
However there's a few simple quick wins I think would greatly improve its UX for Markdown when text is selected:

*,_ - emphasize selected text (nice2have: be able to press * twice for **bold**)
`,",' - quote selected text
[ - put brackets around selected text
( - put parens around selected text

The other nice to have is "word wrap" but I'm assuming it's harder to implement with lite's architecture otherwise it would likely exist already.
Anyway just wanted to submit this feature request somewhere for IMO one if its popular use-cases in writing docs, thx to its gorgeous minimalist style.

Thanks for the kind words! You're right about word wrap -- this is likely not a feature that will be added.
Regarding the selection-based-inserts, this would be a great candidate for a plugin and would be trivial to achieve using the doc:has_selection() in the predicate of command.add(), then doc:replace() in the commands -- the plugin could then simply bind the keys ", [ etc. in the keymap to the the commands. If you write such a plugin a pull request to the lite-plugins repo would be welcome!


XP Globes: add virtual level to config and xp globes

Resolves https://github.com/runelite/runelite/issues/12871
Current configuration:

New configuration:

Current behavior:

After change (toggled off, default):

After change (toggled on):

After change (Hide maxed skills toggled on) (lol)

Changes come with tests.

Added test for existing logic where StatChanged events for boosted stats should be ignored when creating xp globes. All tests around these xp globes I created pass, and I've tested it locally with virtual levels on and off.


fix - epanet 3 can't run epanet 2 INP file when set Quality option to "TRACE" and specify a TRACE node

epanet 2 INP file is not compatible with epanet 3 when set Quality option to "TRACE" and specify a TRACE node
Reproduce Steps

Launch EPANET GUI <IP_ADDRESS>, open the sample Net1.net file
Go to the "Quality" Option editor, change the "Parameter" property to "Trace", specify the "Trace Node" to "9" (The reservoir 9 in the network).
Export the network as "Net1.inp" file
run run-epanet3.exe {fileDirectory}\Net1.inp {fileDirectory}\Net1.rpt
The simulation process fails. And the Net1.rpt file says:

*** INPUT ERROR 203: invalid keyword 9 at following line of [OPTION] section:
 Quality            	Trace 9
*** INPUT ERROR 200: one or more errors in network input data.

Analysis & Solution

The enum order and text order of Quality parameter are not same, which causes the Options::QUAL_TYPE option to be set a wrong type (Options::CHEM) when open Net1.inp file.

The text order:
epanetQualKeywords

    static const char* epanetQualKeywords[] =
        {"NONE", "CHEMICAL", "AGE", "TRACE", 0};

The enum order:
enum QualType      {NOQUAL, AGE, TRACE, CHEM};

    enum QualType      {NOQUAL, AGE, TRACE, CHEM};

So that, the error will happen when try to parse a TRACE mode to be a CHEM mode.
*** INPUT ERROR 203: invalid keyword 9 at following line of [OPTION] section:
 Quality            	Trace 9

To fix the above issue, we need to keep the text and enum order of Quality parameter to be same.
After synchronize the text and enum orders, there is another issue, the trace node has not been set, and it will cause crash later when try to visit the Trace node.
Crash point: traceNode = nw->node(nw->option(Options::TRACE_NODE)); in:

    void TraceModel::init(Network* nw)
    {
        traceNode = nw->node(nw->option(Options::TRACE_NODE));
        traceNode->quality = Ctrace;
    }

The original setOption method is int Options::setOption(StringOption option, const string& value), which didn't handle the case Options::TRACE_NODE_NAME.
So, to fix the issue, we need to set the Trace Node index and Name to corresponding options.

@LRossman Could you please take a look at the PR?


window.require is not a function

After updating the package from 1.4.0 to 1.5.1 I get the error window.require is not a function.
Haven't changed anything in my code.

Windows 10
Electron 8.2.4
Typescript 3.8.2
I just use TSC to compile to Javascript, not using Webpack or anything.
Looks like this commit is the culprit: https://github.com/hardchor/electron-redux/commit/a1ba87b107e36cfb0004ae0c5f5f07720d23e92b

That was introduced in https://github.com/hardchor/electron-redux/pull/134.
@pellejacobs any idea why that is?

@koenoe what happens when you set
new BrowserWindow({
  webPreferences: {
    nodeIntegration: true
  }
});

@koenoe what happens when you set
new BrowserWindow({
  webPreferences: {
    nodeIntegration: true
  }
});

Can give it a try later to see what happens, but it wouldn’t be a safe solution 😔

Appreciate, just want to find a solution that works for everyone

It works fine with nodeIntegration enabled :-)

@koenoe I decided to roll those changes back in 1.5.2. We'll need to find another solution for webpack.
Could you check if that fixes the issue for you, please?

@koenoe I decided to roll those changes back in 1.5.2. We'll need to find another solution for webpack.
Could you check if that fixes the issue for you, please?

Yes, this is working fine for me now in 1.5.2! Thank you.


Add more examples

Maybe a Hacker News homepage summary, or a general news summary, perhaps for which the user can specify a focus area, such as to get a summary of news specifically related to their area of interest.

Idea: Get the current weather in my neighbourhood and suggest what clothes I should wear for the day.

Idea: Get the latest news from multiple sources and create a summary of items that would be most relevant to a provided topic. (Similar to the idea above, but includes multiple sources.)

Idea: Summarize text workflow. Provide URL. Get summary.


vulkano.rs 503 Service unavailable error.

The official site loads to a "Please wait... Application starting" page with console errors saying error 503. I cleared the cache and tried loading in incognito but did not try another IP.

The site appears to be back up, closing.


Error launching bloom-560m

Steps to reproduce:
Followed local install steps in README.md
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

conda create -n text-generation-inference python=3.9
conda activate text-generation-inference

PROTOC_ZIP=protoc-21.12-linux-x86_64.zip
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v21.12/$PROTOC_ZIP
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*'
rm -f $PROTOC_ZIP

BUILD_EXTENSIONS=False make install

make run-bloom-560m

Error log:
2023-03-07T16:29:23.429743Z  INFO text_generation_launcher: Successfully downloaded weights.
2023-03-07T16:29:23.429988Z  INFO text_generation_launcher: Starting shard 0
2023-03-07T16:29:23.430031Z  INFO text_generation_launcher: Starting shard 1
2023-03-07T16:29:28.535903Z ERROR text_generation_launcher: Shard 1 failed to start:
We're not using custom kernels.
thread '<unnamed>' panicked at 'range end index<PHONE_NUMBER> out of range for slice of length<PHONE_NUMBER>', src/lib.rs:817:29
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Traceback (most recent call last):
  File "/home/ubuntu/rubikon/py39_env/bin/text-generation-server", line 8, in <module>
    sys.exit(app())
  File "/home/ubuntu/rubikon/py39_env/lib/python3.9/site-packages/typer/main.py", line 311, in __call__
    return get_command(self)(*args, **kwargs)
  File "/home/ubuntu/rubikon/py39_env/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/ubuntu/rubikon/py39_env/lib/python3.9/site-packages/typer/core.py", line 778, in main
    return _main(
  File "/home/ubuntu/rubikon/py39_env/lib/python3.9/site-packages/typer/core.py", line 216, in _main
    rv = self.invoke(ctx)
  File "/home/ubuntu/rubikon/py39_env/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/ubuntu/rubikon/py39_env/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
File "/home/ubuntu/rubikon/py39_env/lib/python3.9/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/ubuntu/rubikon/py39_env/lib/python3.9/site-packages/typer/main.py", line 683, in wrapper
    return callback(**use_params)  # type: ignore
  File "/home/ubuntu/rubikon/text-generation-inference/server/text_generation/cli.py", line 55, in serve
    server.serve(model_id, revision, sharded, quantize, uds_path)
  File "/home/ubuntu/rubikon/text-generation-inference/server/text_generation/server.py", line 130, in serve
    asyncio.run(serve_inner(model_id, revision, sharded, quantize))
  File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/home/ubuntu/rubikon/text-generation-inference/server/text_generation/server.py", line 99, in serve_inner
    model = get_model(model_id, revision, sharded, quantize)
  File "/home/ubuntu/rubikon/text-generation-inference/server/text_generation/models/__init__.py", line 57, in get_model
    return BLOOMSharded(model_id, revision, quantize=quantize)
  File "/home/ubuntu/rubikon/text-generation-inference/server/text_generation/models/bloom.py", line 86, in __init__
    self.load_weights(
  File "/home/ubuntu/rubikon/text-generation-inference/server/text_generation/models/bloom.py", line 156, in load_weights
    tensor = slice_[:]
pyo3_runtime.PanicException: range end index<PHONE_NUMBER> out of range for slice of length<PHONE_NUMBER>

2023-03-07T16:29:28.535989Z  INFO text_generation_launcher: Shutting down shards
make: *** [Makefile:25: run-bloom-560m] Error 1

Can you delete the huggingface hub cache and re-try? I think this is because you have a corrupted weight file.
Could you also link your hf_transfer version?
pip freeze |grep hf_transfer

Thanks. Deleting the cache and re-trying fixed the above failure. However, its strange why it failed the first time because it downloaded the model on the fly and it did not have anything in the cache before.
I have hf_transfer==0.1.2 installed.
I am running into connection refused error when trying to run inference.
Steps:
Below command succeeds
BUILD_EXTENSIONS=False make install
make run-bloom-560m

Below command returns error - curl: (7) Failed to connect to <IP_ADDRESS> port 8080: Connection refused
curl <IP_ADDRESS>:8080/generate \
    -X POST \
    -d '{"inputs":"Testing API","parameters":{"max_new_tokens":9}}' \
    -H 'Content-Type: application/json'

I also tried to run
make server-dev
make router-dev

curl request fails after this as well.

The webserver is running on port 3000 by default.

Thanks, works now.

Also, I was trying to use generate_stream api.
Example request:
curl <IP_ADDRESS>:3000/generate_stream     -X POST     -d '{"inputs":"Amazon is","parameters":{"max_new_tokens":20}}'     -H 'Content-Type: application/json'
I only see generated text in the last result. With stream api, isn't it supposed to return token by token?
Output:
data:{"token":{"id":267,"text":" a","logprob":-2.046875,"special":false},"generated_text":null,"details":null}

data:{"token":{"id":10087,"text":" great","logprob":-2.234375,"special":false},"generated_text":null,"details":null}

data:{"token":{"id":4676,"text":" way","logprob":-1.9453125,"special":false},"generated_text":null,"details":null}

data:{"token":{"id":427,"text":" to","logprob":-0.16210938,"special":false},"generated_text":null,"details":null}

data:{"token":{"id":2213,"text":" get","logprob":-2.84375,"special":false},"generated_text":null,"details":null}

data:{"token":{"id":267,"text":" a","logprob":-2.984375,"special":false},"generated_text":null,"details":null}

data:{"token":{"id":2084,"text":" new","logprob":-3.953125,"special":false},"generated_text":null,"details":null}

data:{"token":{"id":39222,"text":" iPhone","logprob":-2.515625,"special":false},"generated_text":null,"details":null}

data:{"token":{"id":15,"text":",","logprob":-1.5078125,"special":false},"generated_text":null,"details":null}

data:{"token":{"id":530,"text":" and","logprob":-2.359375,"special":false},"generated_text":null,"details":null}

data:{"token":{"id":267,"text":" a","logprob":-3.046875,"special":false},"generated_text":null,"details":null}

data:{"token":{"id":2084,"text":" new","logprob":-1.828125,"special":false},"generated_text":null,"details":null}

data:{"token":{"id":99607,"text":" iPad","logprob":-0.4609375,"special":false},"generated_text":null,"details":null}

data:{"token":{"id":15,"text":",","logprob":-1.3828125,"special":false},"generated_text":null,"details":null}

data:{"token":{"id":530,"text":" and","logprob":-1.65625,"special":false},"generated_text":null,"details":null}

data:{"token":{"id":267,"text":" a","logprob":-1.140625,"special":false},"generated_text":null,"details":null}

data:{"token":{"id":2084,"text":" new","logprob":-0.11328125,"special":false},"generated_text":null,"details":null}

data:{"token":{"id":10677,"text":" Mac","logprob":-1.6484375,"special":false},"generated_text":null,"details":null}

data:{"token":{"id":15,"text":",","logprob":-1.7734375,"special":false},"generated_text":null,"details":null}

data:{"token":{"id":530,"text":" and","logprob":-0.35351562,"special":false},"generated_text":" a great way to get a new iPhone, and a new iPad, and a new Mac, and","details":null}

sorry, my bad - the text field has token by token information.

No, text-generation-inference does not support beam search and might never support it.

No, text-generation-inference does not support beam search and might never support it.

Hey @OlivierDehaene , could you please tell us the reason behind this? For many (not that large) LMs, this will be VERY useful. As for now, the only way to get candidates from LMs is to send multiple requests with different seeds, which lacks caching and algo optimizations.

Have you tried best_of ?

Have you tried best_of ?

yes, and it returns only one candidate. I'd like to apply filters & ranker (another model) on top of the generated candidates. So what am I asking is there a way to get several candidates at once

Hello, why does TGI not support beam_search is there a design reason behind this ?


Create example of Wasm Singleton

Wasm singletons are used to build state centrally, and example that shows how to do the following

Populate shared state that can be used from normal filters.
Show how this state can be updated, either thru XDS or some other means.

cc @bianpengyuan
@mdhume since you use bootstrap extension, do you mind contributing an example plugin?

Sure @mandarjog we can take this up


translate email to user campaign action in french

add french to your PR

Wow, French will be up to date the same day as English :)


Bug/cs 42995 api endpoint fix with region

add region in the host url, if region value is valid.

Please check why Unit Test & Reports / Build & Test (push) check is failing @harshithad0703


Add --ttl to dns record-set update

Fix https://github.com/Azure/azure-cli/issues/10520

Add --ttl to dns recrod-set cname set-record
Add --ttl to dns for all types of record-set's add-record

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

[x] I adhere to the Command Guidelines.

@MyronFanQiu please help with this PR.


Add Dax dialog with lottie animation to autoconsent

Task/Issue URL:
Description
Steps to test this PR
Feature 1

[ ]
[ ]

UI changes

Before
After

!(Upload before screenshot)
(Upload after screenshot)

Current dependencies on/for this PR:

develop

PR #2128

PR #2129
PR #2155
PR #2178   👈

This comment was auto-generated by Graphite.


Meteor.js support?

I'm learning meteor and was looking at converting site that uses fine uploader over to this platform.  has anyone made a meteor package for fine-uploader ?

It's likely that someone has, but I'm not aware of a specific implementation.  Is there something in particular you're struggling with?

I'm going to close this for now, but if you and other comment on specific integration issues with meteor, I'd be happy to consider re-opening.

Ok, I pulled an all nighter and am banging my head against the wall with the client-side only integration.  (https://fineuploader-s3-client-demo.s3.amazonaws.com/index.html).  Has anyone else had success?  I've been debugging why I get an error with the signature response yes I have good credentials...  8 hours and counting ...

The most trouble I'm having personally is implementing the nodejs server s3 example.  It requires express which seems to be incompatible with Meteor.

I've put together an example here https://github.com/aramk/fine-uploader-meteor-demo


@rnx-kit/react-native-host auto linking is broken

What happened?
Hi, I needed to create an app clip using RN. For this I needed a brownfield integration. After some research I stumbled into this article:
https://www.callstack.com/blog/simplify-your-ios-brownfield-integration-with-react-native-host
Where they recommended to use rnx-kit/react-native-host. I installed the package but to my surprise when I did a pod install, auto linking is not working. I ended up adding the pod manually into my Podfile. It's probably some name mismatch:
pod 'ReactNativeHost', :path => "../node_modules/@rnx-kit/react-native-host"

Affected Package
"@rnx-kit/react-native-host": "0.4.10",
Version
0.4.10
Which platforms are you seeing this issue on?

[ ] Android
[X] iOS
[ ] macOS
[ ] Windows

System Information
System:
  OS: macOS 14.5
  CPU: (11) arm64 Apple M3 Pro
  Memory: 102.78 MB / 36.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.13.1
    path: ~/.local/share/mise/installs/node/20/bin/node
  Yarn:
    version: 3.6.4
    path: ~/.local/share/mise/installs/node/20/bin/yarn
  npm:
    version: 10.5.2
    path: ~/.local/share/mise/installs/node/20/bin/npm
  Watchman:
    version: 2<IP_ADDRESS>
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /Users/osp/.local/share/mise/installs/ruby/3/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.5
      - iOS 17.5
      - macOS 14.5
      - tvOS 17.5
      - visionOS 1.2
      - watchOS 10.5
  Android SDK:
    API Levels:
      - "33"
      - "34"
    Build Tools:
      - 30.0.3
      - 33.0.0
      - 33.0.1
      - 34.0.0
      - 35.0.0
    System Images:
      - android-33 | Google Play ARM 64 v8a
    Android NDK: 26.1.10909125
IDEs:
  Android Studio: 2024.1 AI-241.15989.150.2411.11948838
  Xcode:
    version: 15.4/15F31d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.10
    path: /usr/bin/javac
  Ruby:
    version: 3.3.1
    path: /Users/osp/.local/share/mise/installs/ruby/3/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.74.1
    wanted: 0.74.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Steps to Reproduce
Just install the depedency and do a pod install
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Hm, it looks like it was disabled in https://github.com/microsoft/rnx-kit/pull/3124, I'm curious what's the motivation 🤔

@ospfranco: It does look like we intentionally disabled autolinking. Iirc, it was because if you use react-native-test-app, it would be linked twice and cause issues. I will update the docs on how to integrate @rnx-kit/react-native-host properly.


Cleanup to the folder structure

This is a pending item where I want to clean up the folder structure.
Current local implementation has it listed as:
BezelKit
- README.md
- Package.swift
- LICENCE
- SupportedDeviceList.md
- Data
  - Images for README
- Generator
  - Javascript and worker Xcode project
- Sources
  - BezelKit library

This way the Sources contains only the required package contents, where the Generator will be purely for creating new data.

See branch https://github.com/markbattistella/BezelKit/tree/2023.09.13


Optionally exchange defined in consumer

This is an attempt to contribute changes made in #24 without actual command. This PR adds a functionality of consumer to define exchange. It allows to use consumer when exchange is not yet created. Tests updated.
Small comment updates included

Also I thought to suggest callback functionality similar to old_sound bundle. But decided to make it on application level rather than library

@fabdsp WYT ?

:+1:

:+1:

v1.8.0

:+1:


IRFinder failing to build reference with UCSC format files

Hello,
I've been trying to build an IRFinder reference to look for intron retention in RNA-seq data stored in BAM files that are in the ucsc format, so I need to build a reference using the UCSC genome sequence instead of Ensembl. I'm running the BuildRefProcess while including the fasta and gtf files from the UCSC in the same folder and naming them 'genome.fa' and 'transcripts.gtf' respectively. I keep getting this error, and am uncertain as to why it would be running into a specific issue for this chromosome. Any help you could provide would be greatly appreciated.

Hello!
Sorry for the inconvenience. Could you check the presence of the chr10_KN196480v1_fix in the file STAR/chrNameLength.txt? If it's not present, that might be the issue.
The chrNameLenght.txt is created by STAR and is used in one of the reference build steps and it should contain it if it was in the genome.fa file.
Is it possible that your genome.fa file contains only the canonical chromosome and not the fix patch?
If so, you can replace the genome.fa with the full one or filter the transcripts.gtf to keep only the canonical ones.
With awk should be something like:
cp ./transcripts.gtf ./transcripts_bkup.gtf
awk ' $1 ~ /^chr[0-9XY]+$/ {print } '  ./transcripts_bkup.gtf > ./transcripts.gtf

Let me know if this helped.
Cheers,
Claudio


ES6 imports and added missing devDependencies

I changed requires to ES6 imports for more consistency. I also added missing devDependencies.

Thanks a lot, good stuff!

Checking it closer - don't change imports. If it's not a TS module, VS Code won't be able to compile. I'll change it back, so no worries - just for the future.

This is pretty weird. I am pretty sure it all worked fine on my Mac but I just tried it on my Windows machine and it seems like there are indeed problems.

Mac here, too :smile: No worries, I'm super happy about the contributions. Stuff happens.


Add tests for triple upgrade http2

Test for dubbo issue Triple protocol http1 upgrade support #14026

The certificate file comes from the dubbo-samples project and the license cannot be added.

And bind RP14026. Please install RP related code and set revision to 3.3.0-SNAPSHOT.


Use new custom matcher for match block API

This makes use of the work going on in https://github.com/dry-rb/dry-result_matcher/pull/6.
By using a custom matcher, we can simplify the StepFailure object for matching on particular step failures, and then pass the actual failure value directly to the match blocks, rather than having to keep it wrapped up in a StepFailure all the way along, which is prone to errors, because the user actually wants direct access to the object we're wrapping.
It also means we remove code from dry-transaction which was an effective copy of what already existed in dry-result_matcher.
I think this proves that the approach we've taken in https://github.com/dry-rb/dry-result_matcher/pull/6 is helpful, and we should go ahead and merge it :)

@timriley in this case if I need a different matching behavior I just had to override the Dry::Transaction::ResultMatcher =  right?
Do you still want to leave the step_name as default matching behavior? Couldn't we also provide a more general approach, in which we define the kind of failure type with an option failure: :something on the transactions? I would happily send a PR for this.
What about having: ResultMatcher = StepNameMatcher or ResultMatcher = FailureOptionMatcher, so the library would still call ResultMatcher but I could have a completely different behavior for an app.

Ah. Thanks for bringing this back up. I was thinking of allowing the matcher to be passed in as an option when you define the transaction, just like how right now you can pass in step adapters as an option.
Then you could define your own entirely custom matcher and use that.
Would that suit?

On 29 Jun 2016, at 10:49 PM, Ralf Schmitz Bongiolo<EMAIL_ADDRESS>wrote:
@timriley in this case if I need a different matching behavior I just had to override the Dry::Transaction::ResultMatcher = right?
Do you still want to leave the step_name as default matching behavior? Couldn't we also provide a more general approach, in which we define the kind of failure type with an option failure: :something on the transactions? I would happily send a PR for this.
What about having: ResultMatcher = StepNameMatcher or ResultMatcher = FailureOptionMatcher, so the library would still call ResultMatcher but I could have a completely different behavior for an app.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Couldn't we also provide a more general approach, in which we define the kind of failure type with an option failure: :something on the transactions? I would happily send a PR for this.

Would you mind describing this a little more too?
I'm not sure it's something we'd support with this change and for this release, or even at all, but I'm interested in seeing how people use this. There may be change we could make in this gem to help.

I have transactions defined like this:
perform do
  tee_validate :resource_status_validation, call_with_args: true
  validate :schema
  tee :update_resource
  tee :notify_professional
  map :decorate
end

In this case, both steps :schema and :resource_status_validation would have the same kind of :unprocessable_entity, right now I'm raising a custom error to do it, but having the ability to define a :failure option on the step would make it much better.
So I would have:
perform do
  tee_validate :resource_status_validation, call_with_args: true, failure: :unprocessable_entity
  validate :schema, failure: :unprocessable_entity
  tee :update_resource, failure: :some_weird_failure?
  tee :notify_professional
  map :decorate
end

This would require a small change to some StepAdapters. This might not be an approach needed by everyone, and that's fine, but it appeared in more than one place on my use cases.

@mrbongiolo FYI, I've moved the discussion about user-specified match names into https://github.com/dry-rb/dry-transaction/issues/34, since it's beyond the scope of what I'm hoping to achieve with this release.


FCM: Disconnect FCM Service

Please fill in the following fields:
Unity editor version: 2018.3.11
Firebase Unity SDK version: 5.6.1 (latest)
Firebase plugins in use (Auth, Database, etc.): Analytics, Auth, Database, Storage & Messaging
Additional SDKs you are using (Facebook, AdMob, etc.): Facebook, Google SignIn Plugin (https://github.com/googlesamples/google-signin-unity)
Platform you are using the Unity editor on (Mac, Windows, or Linux): Mac
Platform you are targeting (iOS, Android, and/or desktop): iOS
Please describe the issue here:
We successfully initializated the FCM service with a token and subscribed to a topic to recieve notifications. It worked when the app was opened and in the screen, but when we pressed the home button on the ios device (app opened, but in background), the XCode logs showed that the FCM service disconnected. We tried to send a notification and it didn't recieve it. When we pressed the icon app again and opened it, the FCM service started again and recieved the message it was meant to recieve, logs here:
(WE PRESS THE HOME BUTTON ON THE IPAD)

applicationWillResignActive()
-> applicationDidEnterBackground()
2019-04-12 17:37:37.630200+0200 iOSUnPuzzle[353:22292] FCM: Disconnect FCM service
FCM: Disconnect FCM service
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)

(WE PRESS THE APP ICON TO OPEN IT)
2019-04-12 17:37:37.942058+0200 iOSUnPuzzle[353:22292] Cannot snapshot view (<UIKeyboardImpl: 0x16dc0600; frame = (0 0; 768 313); layer = <CALayer: 0x4256a660>>) with afterScreenUpdates:NO, because the view is not in a window. Use afterScreenUpdates:YES.
-> applicationWillEnterForeground()
2019-04-12 17:38:32.158606+0200 iOSUnPuzzle[353:22292] FCM: Connected to FCM
FCM: Connected to FCM
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
-> applicationDidBecomeActive()
2019-04-12 17:38:32.622785+0200 iOSUnPuzzle[353:22292] FCM: Received message
FCM: Received message
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
Any idea of what could be happening? Thanks

Hi @TonyaGitHub, you can refer to this doc to enable push notification on iOS when app is in background.

We already did all the steps mentioned in the document, we have been doing for over a year, and the remote notifications is enabled. That's why I post this here, because it appears to be a bug, something that is meant to work, doesn't.

Hi @TonyaGitHub!  Sorry to hear that you're running into issues with FCM.  To help us track down the problem - could you try to reproduce the issue using the Messaging testapp (https://github.com/firebase/quickstart-unity/tree/master/messaging/testapp) and let us know what happens?

Same problem! I run the testapp only with the bundle id and firebase config file changed to my project.I do all the step the doc tells. It works well on android,but not work on ios. I received the token, but can't receive message in background. When I back to the app, I receive the message. Unity version:2018.2.19f1

@ryanmeier Just now I tried to build the sample app, and it throws an error in XCode when trying to run the app on an iPad.
The error is the following:
ld: Assertion failed: (memberIndex != 0), function makeObjectFileForMember, file /Library/Caches/com.apple.xbs/Sources/ld64_Fall2018/ld64-409.12/src/ld/parsers/archive_file.cpp, line 383.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Note that I upgraded the Unity version to 2018.3.11 (our project version aswell) and added the Firebase 5.6.1 packages (dotNet4).

Thanks for the additional information @TonyaGitHub  and @legendbone - we'll take a look and see if we can figure out what's causing the issues you're seeing.

Ah, @ryanmeier , another thing is that inside the Unity Editor, it couldn't start Firebase because it was also looking for google-services.json file (which is needed for Android, and we are building for iOS). After creating "StreamingAssets" folder and putting there both google-services.json & GoogleService-Info.plist, it finally worked in the Unity Editor.
The error was this one:
**Unable to load options for default app ([/Users/.../ Coding AR Demo/Assets/StreamingAssets/google-services-desktop.json, /Users/.../Assets/StreamingAssets/google-services.json] are missing or malformed)
Firebase app creation failed. Firebase.FirebaseApp.CreateAndTrack (Firebase.CreateDelegate createDelegate, Firebase.FirebaseApp existingProxy) Firebase.FirebaseApp.Create ()**

Interesting.  Out of curiosity - did you have the build platform set to iOS (in File -> Build Settings), and if so - was that set before or after you added your GoogleService-Info.plist file to the project?
Also - does this mean you've been able to successfully build the FCM test app and run it on device?
If so - are you seeing the same issues with not receiving messages in the background?

The iOS platform was set from the start, when opening the project with Unity Hub (it allows you to select which Target Platform you want).
No, what I've been able to do is to press Play on Unity Editor and that it throws no errors. I then do Build and open the project in XCode. There, I try to Run on an iPad, and the error that I've specified before (trying to run the testapp) is thrown. I've not been able to build it to a device.

Thanks for the clarifications!  I'm pretty sure the editor issue you were seeing is a result of a known issue with those files not getting generated in some cases based on the target build platform (which we should hopefully have a fix for in the next few weeks).
As for the FCM issue - we'll continue to look into it and update you here when we have more information.

@TonyaGitHub
When you saw the above error while trying to build for iPad - were you building from the Unity-iPhone .xcworkspace file?
The build folder that Unity produces should contain both a .xcodeproj file and a .xcworkspace file - if you try to build from the .xcodeproj file directly, it isn't able to access the libraries via the Podfiles, which will cause errors like the ones you're seeing.

I am building from Unity-iPhone.xcodeproj. Sorry to disagree with you, but you are not right:

As you can see, in Assets -> Play Services Resolver -> iOS Resolver -> Settings, this Window appears, and it lets you specify if the libraries contained in the Pods (or specified in the Podfile) are integrated on workspace or project.
When we started our app development more than 1 year ago and integrated Firebase, we tested both options, and the .xcworkspace ALWAYS threw a lot of errors that we couldn't solve, and since the start we use the option to integrate with .xcodeproj and encountered no errors.
Also, the Firebase Quickstart TestApp came with this configuration aswell (with "XCode project" option selected).

Hi @TonyaGitHub,
I'm so sorry that you're having these issues. I did note that even in the 5.7.0 SDK, there seem to be some issues "Xcode Project."
"Xcode Workspace" should work though. As I reach out for more information, would you mind trying out "Xcode Workspace" and letting us know what issues you run into as well?
--Patrick

Alright, I will try to integrate with workspace, aswell as upgrading Firebase SDK from 5.6.1 to 5.7.0.
Whenever I have the results I will post it here.

Hello, I have switched to .workspace instead of .xcproj.
First, I was able to run the TestApp on a device, and it worked. Then I did the same for our app, and it worked aswell.
So, from now on, I will be integrating & building with workspace instead of project. Thank you so much for your feedback & answers!
Note: Why is there the possibility to chose between workspace/project? What's the difference?

Folks I just took a look at this issue and verified that when the app is in the background even when building with the Xcode project integration a notification is received correctly and displayed as a system notification if the "Push Notifications" capability is enabled and the user accepts push notifications from the application.
@TonyaGitHub we have the option of Xcode project vs. Xcode workspace integration to support Unity < 5.5 where it doesn't open up Xcode workspaces if they're present.  Also, some folks prefer everything integrated into a project rather than the workspace.

Hello.
I still have this issue on Unity 2018.4.0 and firebase messaging 5.7.0.
I've tried building with .xcworkspace  and .xcodeproj but the same result: FCM: Disconnect FCM service.
The error from the server: messaging/registration-token-not-registered
The weird thing is that with the same xcode build on an iPhone 7 - iOS 12.2 it worked and on an iPhone 6 - iOS 12.1 it did not work.


This error keeps popping up even though I tried to change the path of the folder in bot.py(everything else is literally same)

ERROR    discord.ext.commands.bot Ignoring exception in command None
discord.ext.commands.errors.CommandNotFound: Command "help" is not found
Edit: Bot has access to the channel I am trying to say command in and I have changed config.py channel ids to be the channel IDs I am actually trying on(except the roles and member IDs which I kept blank)

Is "help" the only command not working? Is the file structure the exact same as the repo?
How are you running the bot and which file are you running?


Vertical carousel not working inside scrollview

Is this a bug report, a feature request, or a question?
bug
<ScrollView
        style={styles.scrollStyle}
        contentContainerStyle={styles.scrollContent}
        bounces={false}
        // disableScrollViewPanResponder
        // nestedScrollEnabled
        // directionalLockEnabled={false}
      >
        <Image source={neck} style={styles.necKImage} />
        <View>
          <View style={{ marginHorizontal: 30 }}>
            {userCards.length === 0 ? (
              <View
                style={{ alignItems: "center", width: "100%", marginTop: 20 }}
              >
                <CardHolder
                  onPress={() =>
                    Actions.addcard({ freeBalance: userDetails.freeBalance })
                  }
                />
              </View>
            ) : (
              <View style={{ zIndex: 5555 }}>
                <Carousel
                  data={userCards}
                  renderItem={renderCard}
                  sliderHeight={270}
                  itemHeight={200}
                  // layout="stack"
                  vertical
                  loop
                  loopClonesPerSide={10}
                  useNativeDriver
                  layoutCardOffset={30}
                  inactiveSlideOpacity={1}
                  activeSlideAlignment={
                    Platform.OS === "android" ? "end" : "start"
                  }
                />
              </View>
            )}
          </View>
          <TouchableDebounce
            activeOpacity={0.5}
            onPress={() =>
              Actions.addcard({ freeBalance: userDetails.freeBalance })
            }
            style={{
              position: "absolute",
              bottom: -30,
              right: I18nManager.isRTL ? undefined : -0,
              left: I18nManager.isRTL ? -0 : undefined,
              zIndex: 2,
            }}
          >
            <Image
              source={add}
              style={{ width: 70, height: 70, zIndex: 2 }}
              resizeMode="contain"
            />
          </TouchableDebounce>
        </View>
        <Invoices makeOrderForItems={makeOrderForItems} />
        <HomeTransactions
          transactions={transactions}
          refreshing={false}
          onRefresh={getTransactions}
        />
      </ScrollView>

Hey @ElegantSoft ! I don't understand how it could work if both carousels (ScrollView and Carousel) are vertical, since ScrollView (being the container) is "grabbing" the user event before Carousel. Even with zIndex, I don't know if it could work, did you read official ScrollView docs ? Maybe you can find some clues there.

I added nestedScrollEnabled=true to the Carousel and it works

I added nestedScrollEnabled=true to the Carousel and it works

Sorry, please allow me to advertise for my open source library! ~
I think this library react-native-reanimated-carousel will solve your problem. It is a high performance and very simple component, complete with React-Native reanimated 2


Retry file uploads

Asset uploads sometimes fail. It would be nice to retry by default or at least make it configurable.
e.g.
Error: request to https://uploads.github.com/repos/.../assets?name=... failed, reason: read ECONNRESET

Same here
Error: request to https://uploads.github.com/repos/f3d-app/f3d/releases/85636282/assets?name=F3D-1.3.1-136-gc1fc725-Linux.tar.xz failed, reason: read ECONNRESET

And the link give:
message | "Bad Content-Length: "
-- | --
request_id | "D8A6:5847:A8071E:BC89A5:6396D68C"

same +1

+1, been experiencing this as well.

Same here. Seems to happen more often on Linux runners.


run coverage with docker

Hello!
I just recently started using cookiecutter and I do not understand how to run coverage?
I created the application, and run the tests like this: docker-compose -f dev.yml run django py.test
But how do I start the coverage ?
Thanks!

@narnikgamarnikus try
docker-compose -f local.yml run --rm django coverage run --source . -m py.test
docker-compose -f local.yml run --rm django coverage report
docker-compose -f local.yml run --rm django coverage html

@webyneter , how i can run open htmlcov/index.html, and how i can add coverage badge to my README.rst ?
I am sure that here it should be provided.

@narnikgamarnikus type it directly on to the terminal so long as you are in the project folder.
open htmlcov/index.html

@narnikgamarnikus,

how i can add coverage badge to my README.rst?
Take a look at my recent project, https://github.com/webyneter/python-humble-utils I've integrated with codecov.

@narnikgamarnikus, to integrate with codecov,

you should first sign up;
then, follow the instructions they provide;
finally, find the badge at one of the codecov's pages related to your account: As far as I can remember, they do provide the one for inclusion into *.rst files.

@narnikgamarnikus can I close this one?

@webyneter , yes.
Thanks you!


Focus trap doesn't work

Thanks for your work on this library. Unfortunately, when I tried running the demo from the readme, I couldn't get it to work. The focus does get trapped on Shift + Tab but when Tab is pressed, I'm able to escape the lock and circle around the page.
Here's a CodeSandbox with the copy-paste code, and here it is in a separate tab for testing. To repro:

Tab into the "Show Dialog" button
Press Enter to open the hidden div
Press Tab repeatedly

It's expected that the focus stays on the "Close Dialog" button. In reality, the focus moves around the page (to search bar, to "Show Dialog", etc.).

Hi! This is a good catch that should probably get mentioned earlier in the docs.
The reason the focus is not getting trapped properly is because there is no tabbable element within the document that appears after the Dialog in the DOM, and for some reason there isn't a clean way to intercept that kind of blur event (at least that I've been able to find). This is why shift+tab is handled appropriately (the open button is there) but tab is not.
The appropriate workaround here is to add FocusGuards around your app to make sure there is always a tabbable element both before and after your Dialog. This is explained in more detail in the Edge Guards section of the README, but this is a good indicator that it should be moved higher into a more general usage example at the top.
With this change, the App component in that sandbox could look something like this:
import useFocusLock, {FocusGuard} from "focus-layers";

export default function App() {
  const [open, setOpen] = React.useState(false);

  return (

      <FocusGuard />
      <button onClick={() => setOpen(true)}>Show Dialog</button>
      {open && (
        <Dialog>

            When this dialog is open, focus is trapped inside! Tabbing will
            always bring focus back to this button.

          <button onClick={() => setOpen(false)}>Close Dialog</button>
        </Dialog>
      )}
      <FocusGuard />

  );
}

@faultyserver Thanks for the detailed explanation! It works as expected with FocusGuard. I think mentioning this workaround under Basic Usage is a great idea :+1:


Error to load database on android

Describe the bug
When I tried to make a query to the database, I have this error:
Invalid argument(s): Failed to load dynamic library '/data/data/com.wattapps.iplanto/lib/libsqlite3.so': dlopen failed: library "/data/data/com.wattapps.iplanto/lib/libsqlite3.so" not found #0      _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11:43)
I/flutter (15362): simolus3/drift#1      new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22:12)
I/flutter (15362): simolus3/drift#2      _defaultOpen (package:sqlite3/src/ffi/load_library.dart:40:29)
I/flutter (15362): simolus3/drift#3      OpenDynamicLibrary.openSqlite (package:sqlite3/src/ffi/load_library.dart:127:12)
I/flutter (15362): simolus3/drift#4      sqlite3 (package:sqlite3/src/ffi/api.dart:15:39)
I/flutter (15362): simolus3/drift#5      _NativeDelegate.openDatabase (package:drift/native.dart:204:12)
I/flutter (15362): simolus3/drift#6      Sqlite3Delegate.open (package:drift/src/sqlite3/database.dart:61:19)
I/flutter (15362): simolus3/drift#7      DelegatedDatabase.ensureOpen.<anonymous closure> (package:drift/src/runtime/executor/helpers/engines.dart:424:22)
I/flutter (15362): <asynchronous suspension>

There is how I open the database:
LazyDatabase _openConnection() {
  return LazyDatabase(() async {
    return NativeDatabase(await getDatabaseFile());
  });
}

This issue appear only on android. On iOS everything is fine.

Is this on all Android versions? There's a known workaround for this on really old Android versions, I've not seen this error happening on newer Android versions though.
And just to be sure, you have a dependency on sqlite3_flutter_libs?

Is this on all Android versions? There's a known workaround for this on really old Android versions, I've not seen this error happening on newer Android versions though.
And just to be sure, you have a dependency on sqlite3_flutter_libs?

@simolus3 This appears on Android 13

I can't reproduce this with a new project that I'm running on an emulator, do you have a simple project with this issue that you could share?

The issue was that I miss adding the sqlite3_flutter_libs package to pubspec.
Thanks anyway!


feat(fmt): Better number formatting

Fixes #2574
This revamps literal number formatting by making underscores configurable, as well as removing unnecessary 0's and exponents

needs rebase

@rkrasiuk i thought about adding this to yul as well but the yul number literals work differently and don't include any leading 0's, underscores, decimals, exponents, etc so there's nothing to do there https://docs.soliditylang.org/en/latest/grammar.html#a4.SolidityLexer.YulDecimalNumber