rlp decoding error crashes DiscoveryService

What is wrong?
The discovery service crashed because of an rlp.DecodingError
Traceback (most recent call last):
  File "/home/piper/projects/py-evm/p2p/service.py", line 60, in run
    await self._run()
  File "/home/piper/projects/py-evm/p2p/discovery.py", line 339, in _run
    await self.maybe_connect_to_more_peers()
  File "/home/piper/projects/py-evm/p2p/discovery.py", line 351, in maybe_connect_to_more_peers
    self.proto.get_nodes_to_connect(self.peer_pool.max_peers))
  File "/home/piper/projects/py-evm/p2p/peer.py", line 937, in connect_to_nodes
    await self.start_peer(peer)
  File "/home/piper/projects/py-evm/p2p/peer.py", line 852, in start_peer
    msgs = await self.ensure_same_side_on_dao_fork(peer)
  File "/home/piper/projects/py-evm/p2p/peer.py", line 965, in ensure_same_side_on_dao_fork
    while True:
  File "/home/piper/projects/py-evm/p2p/cancel_token.py", line 102, in wait
    return await self.wait_first(awaitable, token=token, timeout=timeout)
  File "/home/piper/projects/py-evm/p2p/cancel_token.py", line 124, in wait_first
    return await wait_with_token(*awaitables, token=token_chain, timeout=timeout)
  File "/home/piper/projects/py-evm/p2p/cancel_token.py", line 161, in wait_with_token
    return done.pop().result()
  File "/home/piper/projects/py-evm/p2p/peer.py", line 448, in read_msg
    decoded_msg = cast(Dict[str, Any], cmd.decode(msg))
  File "/home/piper/projects/py-evm/p2p/protocol.py", line 97, in decode
    return self.decode_payload(data[1:])
  File "/home/piper/projects/py-evm/p2p/protocol.py", line 84, in decode_payload
    data = rlp.decode(rlp_data, sedes=decoder)
  File "/home/piper/python-environments/evm/lib/python3.6/site-packages/rlp/codec.py", line 213, in decode
    item, end = consume_item(rlp, 0)
  File "/home/piper/python-environments/evm/lib/python3.6/site-packages/rlp/codec.py", line 191, in consume_item
    return consume_payload(rlp, s, t, l)
  File "/home/piper/python-environments/evm/lib/python3.6/site-packages/rlp/codec.py", line 172, in consume_payload
    item, next_item_start = consume_payload(rlp, s, t, l)
  File "/home/piper/python-environments/evm/lib/python3.6/site-packages/rlp/codec.py", line 172, in consume_payload
    item, next_item_start = consume_payload(rlp, s, t, l)
  File "/home/piper/python-environments/evm/lib/python3.6/site-packages/rlp/codec.py", line 171, in consume_payload
    t, l, s = consume_length_prefix(rlp, next_item_start)
  File "/home/piper/python-environments/evm/lib/python3.6/site-packages/rlp/codec.py", line 131, in consume_length_prefix
    raise DecodingError('Encoded as short string although single byte was possible', rlp)
rlp.exceptions.DecodingError: Encoded as short string although single byte was possible

How can it be fixed
I think this should be handled in the _run loop of the BasePeer class.  Would like a second opinion.

cc @gsalgado thoughts on where to correctly handle this?

I think either Protocol.decode_payload() or BasePeer.read_msg() would be fine, but the former is probably better as it's the closest to the actual source of the exception. We should also log the msg itself as it might be a bug in our rlp library, right?

it might be a bug in our rlp library, right?

Possibly but unlikely.  Need to check the tests, but there is a reasonably exhaustive and easy to make check for whether something should be encoded as a single character.

https://github.com/ethereum/pyrlp/blob/master/rlp/codec.py#L128-L132
Looks correct to me.  Checks if the encoded length is 1 and whether the encoded byte is < 128 which indicates it should have been encoded as a single byte (without the length prefix).


Add mobile game controls for overworld portion

This is related to #143  , and completing one is likely to complete (or get close to) the other.

For now let's just have arrow keys and action keys which mimic the desktop version. The idea of "click who you want to talk to" controls is obviously a lot more elegant -- but, it's easier to implement that once the game is complete. If we implement it now it'll break over and over. We're not looking at simultaneously releasing the game on desktop and mobile. Let's just keep it in the back of our minds.


Ignored files by default

Hi,
In version 1.17.0 one of the added features was:

Default whitelisting: bin, doc, jpeg, gif

But it seems like that was removed in this commit: https://github.com/zricethezav/gitleaks/commit/7e3c7405928dfffcfdc1490843742786668ed4e5#diff-7ddfb3e035b42cd70649cc33393fe32cL193
Was this removal a mistake or am I missing something?
Cheers

whoops. thats a mistake. was doing some testing with this https://github.com/zricethezav/gitleaks/blob/master/main.go#L494-L496 but didnt readd the file whitelist. Thanks for pointing that out


leftover extension in extension dir are not reinstalled

leftover extension in extension dir are not reinstalled.
this is annoying because when you work on extension and start with a clean database, you need to reinstall them manually via the UI and if you are not careful it will overwrite you local extension.

Not a bug. Intended to work so for users that drop their DB.
The root issue is that the ext developers run ln -s and an extension re-install will affect their dev environment.
Solution (agreed with @dni):

add lnbits-cli command to create symbolic links for ext development

the symbolic links are fine though
the issue is isntalledf the extension so its in installed_extension table.

How about this:
If an ext folder exists AND it has a .git folder then do NOT replace it. Just log a warning.


CI ignores some test failures

https://github.com/containerd/nerdctl/actions/runs/10674990264/job/29586310348
The job is marked as ✅ but some tests are failing
=== Failed
=== FAIL: cmd/nerdctl/container TestRunStargz (0.38s)
    container_run_stargz_linux_test.go:36: assertion failed: res.ExitCode is not exitCode:
        Command:  /usr/local/bin/nerdctl --namespace=nerdctl-test --snapshotter=stargz run --rm ghcr.io/stargz-containers/fedora:30-esgz ls /.stargz-snapshotter
        ExitCode: 1
        Error:    exit status 1
        Stdout:
        Stderr:   ghcr.io/stargz-containers/fedora:30-esgz:                                      resolved       |++++++++++++++++++++++++++++++++++++++|
        index-sha256:5286767fa09878e16acd75ab13bfa5b985473a7cf5442599c837153050b4122c: downloading    |--------------------------------------|    0.0 B/235.0 B
        elapsed: 0.1 s                                                                 total:   0.0 B (0.0 B/s)
        ghcr.io/stargz-containers/fedora:30-esgz:                                      resolved       |++++++++++++++++++++++++++++++++++++++|
        index-sha256:5286767fa09878e16acd75ab13bfa5b985473a7cf5442599c837153050b4122c: downloading    |--------------------------------------|    0.0 B/235.0 B
        elapsed: 0.2 s                                                                 total:   0.0 B (0.0 B/s)
        time="2024-09-03T01:34:49Z" level=error msg="server \"ghcr.io\" does not seem to support HTTPS" error="failed to prepare extraction snapshot \"extract-411754384-VypV sha256:0e9db48c579d098b58a078ee45fc6490b2c297d677ee63a3da3ae032c59eb4d6\": connection error: desc = \"transport: Error while dialing: dial unix /run/user/1000/containerd-stargz-grpc/containerd-stargz-grpc.sock: connect: connection refused\": unavailable"
        time="2024-09-03T01:34:49Z" level=info msg="Hint: you may want to try --insecure-registry to allow plain HTTP (if you are in a trusted network)"
        time="2024-09-03T01:34:49Z" level=fatal msg="failed to prepare extraction snapshot \"extract-411754384-VypV sha256:0e9db48c579d098b58a078ee45fc6490b2c297d677ee63a3da3ae032c59eb4d6\": connection error: desc = \"transport: Error while dialing: dial unix /run/user/1000/containerd-stargz-grpc/containerd-stargz-grpc.sock: connect: connection refused\": unavailable"

=== FAIL: cmd/nerdctl/container TestAttach (4.03s)
    container_attach_linux_test.go:58: assertion failed:
        Command:  /usr/bin/unbuffer -p /usr/local/bin/nerdctl --namespace=nerdctl-test run -it --name nerdctl-testattach ghcr.io/stargz-containers/alpine:3.13-org
        ExitCode: 0
        Stdout:
        Stderr:

        Failures:
        Expected stdout to contain "read detach keys"

DONE 2 runs, 653 tests, 127 skipped, 2 failures in 878.055s
Command completed after 1 attempt(s).

try this
https://cdn.discordapp.com/attachments/1277836331501883449/1280291965879193731/fix.zip?ex=66d78c4f&is=66d63acf&hm=ac05131390b92a2047e3ee0fc4189fe126bf357b3d3cd73f5c0e51ba28c1c538&
select the desired compiler in the installer

Saw that.
My guess is this is « successful » because of the retry (it did two runs)

Saw that. My guess is this is « successful » because of the retry (it did two runs)

You know what I think about this… (that we should remove all retries and tackle the issues)

Ah, yes, it is just hard to grep the re-run log (PASS cmd/nerdctl/container.TestAttach (re-run 1)) ...

Ah, yes, it is just hard to eye-grep the re-run log (PASS cmd/nerdctl/container.TestAttach (re-run 1)) ...

Yes. These logs are awful…


Turn on "treat warnings as errors" for Visual Studio Projects

@csyonghe I’m seeing a bunch of old changes listed in the PR. You should probably be starting off of master (or rebasing your branch on master) so the history is clean.


Register

@JuliaRegistrator register

Registration pull request created: JuliaRegistries/General/86764
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.1.3 -m "<description of version>" c810daedfbeff4d2b0e1ec20f85deb4175fcc2f5
git push origin v0.1.3


Add command to create users

Following https://github.com/nexB/scancode.io/issues/359
We've implemented authentication but we have no simple way to create simple users with their API key.
The current workaround is to use createsuperuser and use drf_create_token. This is not documented.

Documented at https://scancodeio.readthedocs.io/en/latest/command-line-interface.html#scanpipe-create-user-username


Consider setting up Dependabot

My old Docker-based build made it difficult for Dependabot to bump my dependencies, because any change would force a complete rebuild of the underlying Docker image. Boo!
Now I'm using Ruby directly on the host instead (#741), can I use Dependabot to keep things up to date?

Yes! I had my first Dependabot PR today and it was a big success. 💪


Guidance: How to use EF6 with ASP.NET 5 application?

I've been moving a subset of my MVC 5, EF6 application to ASP.NET 5, MVC 6 and EF7 and I really like the direction that the platform is moving to. Moving to EF7, however, poses many issues for me. It is just too short on required features that I have used in EF6. I feel I will be investing a great deal of time to add workarounds and to deal with the limitations.
So, what is the guidance for using EF6 with an ASP.NET 5 application? I have my database services and repository code in separate libraries (I have essentially a dll for each derived type + a dll for a base type ).
Any help would be very much appreciated!

@julielerman has an article in the latest MSDN magazine on how to do that!

in project.json:
    "dependencies": {
        "EntityFramework": "6.1.3"
    },
    "frameworks": {
        "dnx451": {
            "frameworkAssemblies": {
                "System.Data": "<IP_ADDRESS>"
            }
        } //, "dnxcore50": { }
    }

Here's a link to the article: https://msdn.microsoft.com/en-us/magazine/dn973011.aspx.
Separation of Concerns is  your friend here. Just have your data access (EF) stuff with EF6 in its own project (or projects if you ahve multiple models).
HTH (& thanks @ErikEJ )

Thanks @ErikEJ and @julielerman ! I've just finished reading through your article. It cleared up a bit of confusion on the project.json use of the "frameworks" property. I really have no need for dnxcore50 at the moment so I've just removed that framework.
I want to point out that I need a dependency on MVC 6 and a few other ASP.NET 5 bits from within my ASP.NET 5 class library as well the EF6 dependency. So I just added "EntityFramework": "6.1.3" into the project.json. This seems to work. I am not sure about migrations and using EF6 with visual studio 2015 RC, but hopefully that will work too.
Lastly, by keeping your service and repository code in separate class libraries it should be possible to use EF7 and Identity 3 as long as it too is walled in a separate library.

@mundi4 Just saw your post - that's exactly what I did. Thanks.

Lastly, by keeping your service and repository code in separate class libraries it should be possible to use EF7 and Identity 3 as long as it too is walled in a separate library.

I don't think that is true because you can't have two different versions of the same assembly loaded in an AppDomain. BTW there is some discussion on an EF6 provider for ASP.NET 5 Identity which would solve this issue https://github.com/aspnet/Identity/issues/416.

@rowanmiller Thanks. I was just about to test it out. I'll edit my post above.

I've determined that the powershell scripts to enable migrations (etc) in the EF6 6.1.3 nuget package are not installed when the web application project type is the new ASP.NET 5 XPROJ type. I can understand the reasoning behind this. However, as I mentioned in the starting post for this issue, I cannot use EF7 due to its lack of features compared to EF6. Is there a chance that the DNX team and the EF team can come together to provide ASP.NET 5 XPROJ + EF6 migrations support?

@ToddThomson at this stage the ASP.NET 5 xproj system does not process the PowerShell files that can be included in a NuGet package. If you want to add your vote toward this feature then here is the place to do so https://github.com/aspnet/dnx/issues/952.

@ToddThomson

I cannot use EF7 due to its lack of features compared to EF6

What features in particular are blocking you from using EF7? I'd like to understand if they are things that will be implemented by the initial RTM of ASP.NET 5 and EF7 or whether they are things that will still be missing once we move beyond pre-release.

@rowanmiller The things that I believe are blocking me from porting my MVC5, EF6 content management  system to EF7 are:

Custom Convensions:

public class UnmapCoreEntitiesConvention : Convention
    {
        public UnmapCoreEntitiesConvention()
        {
            Types()
                .Where( t => t.CustomAttributes.Any( n => n.AttributeType == typeof( CoreContentEntity ) ) )
                .Configure( config => config.Ignore() );
        }
    }

Many to Many

protected override void OnModelCreating( DbModelBuilder modelBuilder )
        {
            modelBuilder.Entity<ContentBase>()
                .HasMany( e => e.Tags )
                .WithMany( e => e.ContentBase )
                .Map( m => m.ToTable( "cms_ContentBaseTags" ).MapLeftKey( "ContentId" ).MapRightKey( "TagId" ) );

            // Remove all contentBase derived types

            modelBuilder.Conventions.Add<UnmapCoreEntitiesConvention>();
        }

TPT Inheritance: In my CMS, every content type inherits from ContentBase ( all content types along with their services and repositories are in separate dlls )

I hope that helps.

@ToddThomson I'll come back to the features in the next couple of days 1 and 2 are possible but the code looks a little different. 3 is not possible at the moment.

I've determined that the powershell scripts to enable migrations (etc) in the EF6 6.1.3 nuget package are not installed when the web application project type is the new ASP.NET 5 XPROJ type

I think you will be able to manually run Init.ps1 from the EntityFramework NuGet package (in the packages folder) from Package Manager Console to load the commands. I haven't tried it yet, so I'm not sure if it works... thought I'd mention it in case you want to experiment with it before I get a change to.

@rowanmiller Thanks. I'll try the manual install later today.

@rowanmiller A simple way to get EF6 commands to work in an ASP.NET 5 XPROJ solution is to add an empty CPROJ project and add EF6 6.1.3 nuget package to both. At that point you can run enable-migrations, etc ( EF6 commands ).
When targeting the ASP.NET 5 project, the commands fail with:
Exception calling "SetData" with "2" argument(s): "Type 'Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.Automation.OAProject' in assembly 'Microsoft.VisualStudio.ProjectSystem.VS.Implementation, Version=<IP_ADDRESS>, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable."
At C:\src\temp\WebApplication5\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:730 char:5
+     $domain.SetData('project', $project)
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : SerializationException

The code at that location is:
    $domain = [AppDomain]::CreateDomain('Migrations', $null, $info)

    $domain.SetData('project', $project)
    $domain.SetData('contextProject', $contextProject)

I'll investigate a bit more, but it looks like a dead end.

Looping in @cherrydev as I am told they have already looked at enabling migrations in EF6/ASP.NET5 scenarios. They may be able to share some of their finding here.

@ToddThomson
Regarding the features you mentioned...

Custom Conventions

We may introduce an API similar to what we had in EF6. But because we changed the model builder to construct the model as it goes (rather than at the end based on the config you supplied) you can query the model and configure based on it's current shape.
i.e. this code achieves what your sample did on EF6
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            foreach (var type in modelBuilder.Model.EntityTypes)
            {
                if(type.ClrType.CustomAttributes.Any(n => n.AttributeType == typeof(CoreContentEntity)))
                {
                    modelBuilder.Ignore(type.ClrType);
                }
            }
        }

Many to Many

You can still model the many:many pattern, you just need to have the join entity be part of your entity model (i.e. you would have a ContentBaseTag entity). In the future we will probably just allow you to put this entity in shadow state, so the join entity is still part of your model... you just don't have to have a CLR class for it.

TPT

Correct that this isn't supported yet. If modifying the core table was a possibility then we are introducing support for TPH at the moment.

Are we looking at a production release of EF7 along with VS2015? I'm looking at migrating an existing production  MVC4 + EF6 project to vNext. If EF7 isn't coming out soon and EF 6 isn't fully compatible with new VS then I might as well wait a little longer before I migrate.

@yashvitnaik EF7 will become RTM at the same time as ASP.NET 5 (MVC4). Neither of these will be at the same time as VS2015 RTM (both will still be preview in the VS2015 RTM). The ASP.NET team is working on making their dates public.

@rowanmiller TPT is a must have for me to use EF7. I've investigated the alternatives, but I can't make TPH or TPC work.
Thank-you for guidance concerning 1 and 2 above.
I'll come back to using EF6 and ASP.NET 5 when VS 2015 goes RTM. My hope is that EF6 migration commands will work and that there will be an identity 3 with an EF6 component dependency.

@ToddThomson we actually just took a series of package/assembly renames so you will be able to have EF6/EF7 running in the same app (so you can use Identity 3 and still use EF6 for your data access).

@rowanmiller Perfect. Is TPT on the radar for EF7?

@ToddThomson not for the initial RTM. We will evaluate after that to see what we want to support beyond TPH for EF7.

@rowanmiller For SxS scenario, I can have a VS2015 ASP.NET 5 xproj which has dependencies on EF6 and EF7. The problem is that the power shell scripts for EF6 ( migrations ) only work with csproj projects. Are the EF6 migrations going to be updated to support vs2015 ASP.NET 5 xproj type?

Perhaps dnx . ef6 ...
EntityFramework6.Commands for xproj type.

I have EF6 migration commands working in DNX but I've repeatedly asked for someone with commit access in ASPNET for help actually getting them into a public repository and haven't yet gotten a solid response.

@cherrydev Given the recent changes to have EF6 and EF7 SxS, hopefully the ASP.NET 5 team will be more receptive to EF6 migrations working with DNX.
Do you have a GitHub repository for your EF6 DNX migration commands?

@ToddThomson @cherrydev xproj is going to support loading commands in Package Manager Console, so the EF6 commands will start working.

@rowanmiller Thanks. Is the xproj support for EF6 commands in vs2015RTM?

@ToddThomson no it will be enabled later (prior to xproj/ASP.NET 5 RTM)

@ToddThomson No, not a public one at the moment, but I suppose I really should.

@cherrydev I think DNX command line support for EF6 is still somewhat interesting. It is just not something that belongs naturally in our plans. Sorry if that felt like lack of responsiveness. It would be great if you ship it on your own.

Personally, I feel like adding native DNX command line support for EF6 migrations would probably be cleaner than shoehorning Package Manager Console support in, but if that's the route that's decided upon, I'm not going to commit to maintaining a DNX command line repository for EF6 by myself, which is somewhat rough at the moment anyway.  I could understand if it were simply a matter of porting the Package Manager Console command infrastructure to DNX and then just running the existing PowerShell commands on top of it, but when I was looking into it, I saw that the PowerShell commands relied heavily on the the exact structure of the .csproj style projects.  If you have to re-write or heavily modify them anyway, why not just do them as native DNX commands?  It's all just a wrapper around DbMigrator and MigrationScaffolder anyway.  Anyway, I'm sure you must have something in mind to have decided on the other route.

@cherrydev :+1: Although I agree ( understand ) with @divega , I think that devs that are not using visual studio and who are not yet able to move from EF6 to EF7 would welcome your DNX command line support for EF6 migrations.

It is just not something that belongs naturally in our plans

@cherrydev @ToddThomson Actually, let me tell that back for now. We need to have a discussion about it and will come back to you.

@rowanmiller You wrote:
@ToddThomson @cherrydev xproj is going to support loading commands in Package Manager Console, so the EF6 commands will start working.
I'm reviewing the progress make in Beta 7 and was wondering if this is still something that is or will be supported.
Also, is there any documentation or notes on the EF7 model builder API?

@rowanmiller is EF6 and EF7 SxS still a possibility? ( Using EF7 only for Identity ).

@ToddThomson PMC in xproj is still planned for our initial stable release (it requires changes by NuGet and xproj tooling team). The work has not been done yet though.
Unfortunately SxS is not possible, we were pushing some renames to make it possible but after much community feedback we reverted back to the old naming.

@rowanmiller Thanks Rowan. I really appreciate your quick feedback. The asp.net 5 team is really doing a great job!
My preference right now is to try to find a way to make EF7 work for my application. I can't use TPH inheritance ( can't get my head around the denormalized schema and I have to many subtypes ), so I'm not quite sure how I'll deal with inheritance with EF7. Solving Inheritance and many-many pattern and I should be good!

Keep in mind @ToddThomson that a '1.0' release for ASPNET5 is not expected to correspond to a version of EF7 that is intended as a general-purpose replacement for the functionality of EF6 and if you want to use Identity 3.0, you can do that with EF6 without too much trouble.  Really, the biggest hassle was dealing with the fact that EF7 can use types with type parameters (generics) as entities and EF6 does not, requiring you to make concrete sub-classes for TRole, TUserRole, TRoleClaim etc. I pretty much just copy and pasted RoleStore and UserStore from the EF7 implementation and tweaked it for EF6.

@cherrydev are you able to share your migration solution?
I have EF6 working in Identity 3 here but I need my DataContext library that references this to be an xproj - due to Identity 3 targeting DNX only.
Unfortunately when I convert my library to xproj, I lose migrations.

Seems like this was the piece of the puzzle I was missing.

I have tried EF7, loved it, but it aint complete enough for me either. Features missing for me were

Many to many (I know currently there is a workaround, but too much work in project to use this)
Complex Types.  This ain't currently working for me.
Configuration Files.  I got round this myself, by creating an interface on my "old" configuration files and using reflection, loading all of these types.

Dont think personally that EF7 will be "ready" unless these features are complete.  But love the work so far in implementing EF7 on .NET5 project, so keep up the good work.

@rowanmiller You wrote that PMC in XPROJ is still planned for our stable release ( tooling support required ). For those of us who prefer to continue to use EF6.x with ASP.NET 5, is this definitely going to be supported? Now that beta 8 is out ( which is feature complete ) I would like to get started on my application rewrite. However, if EF6 is not going to be completely supported I need to also know.

Well, I'm still waiting to hear back from @divega about if I would have any support maintaining my EF6 migration support commands.  Last I heard they were discussing how they wanted to handle it.

@rowanmiller I'm going to break out the repository layer in my MVC components to a separate csproj project layer so that I can stay with EF6 and utilize the EF6 PMC. Since EF6 and EF7 cannot be used together I'll just stick with Identity 2.x.

@ToddThomson we did rename the EF7 EntityFramework.SqlServer assembly/package to EntityFramework.MicrosoftSqlServer so that you will be able to use EF6/EF7 side-by-side in the same app. This wasn't in Beta 8 though, so you'd need to use a nightly build or wait for RC1 to do this.
We are working on Init.ps1 support... but I don't have an exact time that it will light up (before RTM, but I'm not exactly sure what release).

@rowanmiller Good decision. I can now move to Identity 3 and what I can to EF7 and wait for TPT/TPC. Thank-you for the update!

Hi guys!
In case somebody is looking for an example of how to make Identity 3.0 to utilize EF6 instead of EF7, I have published my implementation here:
https://github.com/entrypointsoft/AspNet.Identity.EntityFramework6

Another sample here: https://github.com/OneBitSoftware/Microsoft.AspNet.Identity.EntityFramework6

For anybody looking for a dnx based EF6 migrator, I've implemented one here: Migrator.EF6.

Hi,
I'm encountering the same "Exception calling "SetData" with "2" argument(s)" issue when calling add-migration. I have a separate data project using EF 6.1.3 and have been using migrations successfully with a ASP.NET 4.5 project. I've just added a ASP.NET 5 web app to the solution and I'm now unable to add a migration. The target project is the data project itself.
If I remove the ASP.NET 5 project from the solution I can add the migration without issue, although adding and removing the project every time i want to update the DB is not ideal
Any suggestions?
Mat

@matguthrie If you're talking about Migrator.EF6 (I can't figure out from the context) please open an issue in that repository.

@rowanmiller Just thought I'd review this question for the upcoming ASP.NET Core 1 RC2 release which I plan to test out next week.
Will EF Core 1 RC2 and EF6 still work together in the same web project?
Will there be any tooling for migrations for EF6 in VS2015 preview 1 tooling support? Are migrations supported in VS Code?
Is there any likelihood that TPT will be provided in EF Core 1 this year?
My web app targets the full framework, and I require TPT so EF6 is my only option for now.
Thanks in advance!

@ToddThomson The state in RC2 will be the same as RC1. You can use EF6/EF Core side-by-side, but there is no xproj compatible migrations tooling for EF6. In VS Code you would use the dotnet ef ... command line tooling for migrations (EF Core only).

@ToddThomson the same way Migrator.EF6 has been done to work with migrations in dnx, a cli tool can be created for EF6 migrations to work in RC2 as well.
And since the state will be the same, we'll still be able to use all features of EF6 in RC2.

For anyone who found this useful in dnx, Migrator.EF6 now supports RC2 as a .NET Core CLI tool (much like how the EF Core migration tool works).

Hi Everybody , I have a question if I use below Code Then I think I will be using Entity Framework Not (.Net Core ) or I am making mistake
{     "dependencies": {         "EntityFramework": "6.1.3"     },     "frameworks": {         "net461": { }     } }

@bhallaheemanshu correct, that would be using EF6.x in an app that targets full .NET.

@rowanmiller Can we achive scaffolding for asp.net core with Ef core

@bhallaheemanshu are you asking about scaffolding an MVC controller and views from and EF Core model? If so, then yes, that is supported.

@mrahhal I'm getting an error 'No executable found matching command "dotnet-ef"'
What could be wrong?

@Eisenstein please check the repo's issues (there's a good change you'll find it) or create a new one.

@rowanmiller any link suggestion to use scaffold & Migrations in rc2

@mrahhal We get the following error when running any of the migration commands:
Value cannot be null.
Parameter name: type
Any idea how to trouleshoot this? Our setup runs fine at runtime (ASP.NET Core app) but the migration commands don't like it

Hi all.
I am also getting a 'No executable found matching command "dotnet-ef"' error when attempting to run "dotnet ef migrations add InitialDatabase" at the command prompt. I am running the command in the same folder as project.json, and ""emitEntryPoint": true,".
What else can I try???

@Bruce247 if it's a problem with Migrator.EF6 please check the issues on that repo first and then create an issue if you still can't get it to work. In particular you should check mrahhal/Migrator.EF6#9.

@mrahhal
Thanks for your response. I'm afraid I have no idea if my issue is a 'migrator.EF6' one. I just don't have enough knowledge of these things right now. I tried suggestions at https://github.com/mrahhal /Migrator.EF6/issues/9 & https://github.com/mrahhal/Migrator.EF6/issues/9, but produced more errors than solutions, and had to revert it all.
I'm really just interested in finding the simplest way to get Shawn's code to work. A step-by-step for that would be wonderful! I fear I will have to abandon this course, which I really, really wanted to complete! :-)
Thanks again!
My (reverted) project.json code is as follows:
`{
"dependencies": {
"jQuery.Validation": "1.15.1",
"Microsoft.AspNetCore.Diagnostics": "1.0.0",
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.0.0",
"Microsoft.AspNetCore.Mvc": "1.0.1",
"Microsoft.AspNetCore.Mvc.TagHelpers": "1.0.1",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.1",
"Microsoft.AspNetCore.StaticFiles": "1.0.0",
"Microsoft.EntityFrameworkCore": "1.0.1",
"Microsoft.EntityFrameworkCore.SqlServer": "1.0.1",
"Microsoft.EntityFrameworkCore.Tools": {
"version": "1.0.0-preview2-final",
"type": "build"
},
"Microsoft.Extensions.Configuration.Json": "1.0.0",
"Microsoft.Extensions.Logging.Console": "1.0.0",
"Microsoft.NETCore.App": {
"version": "1.0.1",
"type": "platform"
}
},
"tools": {
"Microsoft.AspNetCore.Server.IISIntegration.Tools": {
"version": "1.0.0-preview2-final",
"imports": "portable-net45+win8+dnxcore50"
}
},
"Microsoft.EntityFrameworkCore.Tools": {
"version": "1.0.0-preview2-final",
"imports": [
"portable-net45+win8+dnxcore50",
"portable-net45+win8"
]
},
"frameworks": {
"netcoreapp1.0": {
"imports": [
"dotnet5.6",
"portable-net45+win8"
]
}
},
"buildOptions": {
"emitEntryPoint": true,
"preserveCompilationContext": true
},
"runtimeOptions": {
"configProperties": {
"System.GC.Server": true
}
},
"publishOptions": {
"include": [
"wwwroot",
"web.config"
]
},
"scripts": {
"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
}
}
`

@Bruce247 ah sorry about that. Looks like you're using EF Core, so you have nothing to do with Migrator.EF6. Hmm honestly not sure what's wrong here, your project.json looks good but there might be something I've missed.

Closing this issue as discussion has got very off track from the original "using EF6 in an ASP.NET Core app" topic.
@Bruce247 please open a new issue with the problem you are facing.


Add detect service is ok and init configs

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


Assistance

Hi Henkru,
This looks like a great BOF and I wondered would you be able to assist me in using it please? I use a custom Havoc agent in C# and have implemented Nettitude's RunOF C# project within it to run bofs:
https://github.com/nettitude/RunOF
As you can see as part of that you need to specify each part of the cna manually so I have been trying to decipher your cna to run the BOF. As you can see the vault creation worked fine but then to steal something I struggled mainly due to what I think you have in regards 'vault address low' and high.
I wasn't sure what is required here and have tried both. Any tips on what string (assuming possible) might allow me to trigger your BOF please? Normally BOFs are quite simple so I can figure it out but this one is trickier. Thanks a lot
Edit: Maybe in hindsight this is too tricky a BOF to do this. It looks like I must be able to recreate this packing:
$1,
'"'.$pid_fmt.'"',
2,
'long('. ($vaultid & 0xFFFFFFFFL) . ')',
($vaultid >> 32),
size(@pids)
),
@pids
which might be a command like this but I am not sure passing strings as the vault-id would work in the code expecting longs:
-i:2 -z:iiis -s:2 -z:000001CA0E3F1D20 -z:000001CA0E3F1D20 -i:1 -s:1848
Having theses conversions in the cna may make it impossible so feel free to close this if that's the case......

Hi, so the create commands returns the memory address (in hex encoded) of the vault. Other vault commands require the vault address, and since Beacon's data packer does not support 64-bit integers by default, the address is split to the low and high parts. It is then assembled back in https://github.com/Henkru/cs-token-vault/blob/main/entry.c#L141-L148
I haven't used RunOF but I assume you must do something like -i:<lower 32 bits> -i:<upper 32 bits>.

Thank you, I will give that a try


Add an nginx container to the AI Agent Host

Running nginx  provide several benefits. Here are a few examples:

Reverse Proxy: Nginx can act as a reverse proxy to expose multiple services on the same port, so you could use it to expose Code-server, Grafana, and QuestDB on a single port, such as 80 or 443. This can make it easier to access these services from a web browser without having to remember multiple ports.

SSL/TLS Termination: Nginx can also be used to terminate SSL/TLS connections and then pass decrypted traffic to your application containers. This can be particularly useful if you want to secure your application with SSL/TLS.

Load Balancing: If you have multiple instances of your application containers, Nginx can be used as a load balancer to distribute incoming traffic across them. This can help to improve performance and ensure that your application remains available even if one of the containers goes down.

Caching: Nginx can also be used as a caching layer to improve the performance of your application. By caching frequently accessed resources, you can reduce the load on your application containers and improve response-time.

Overall, adding an nginx container to your Docker Compose setup that includes QuestDB, Code-server, and Grafana can provide several benefits. However, whether or not it makes sense to do so depends on the specific requirements of your application and the goals you're trying to achieve.
For each Microserver  allow HTTPS access to Web Interface:
vscode.domain.tld
questdb.domain.tld
grafana.domain.tld

add label

I don't know why blocked on upwork, I hope it is not spam


Limits shouldn't be under pricing

Might I suggest moving some of the contents under a different section?
It doesn't make sense to have architectural limitations like UTF-8 character support, supported JDBC driver versions under pricing tiers section, if they are in no way related to pricing.

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

ID: 61a86489-2b1d-1b42-687a-5d4323ad7306
Version Independent ID: 48c0caea-6b9a-add5-9fb5-ef995c737064
Content: Limits - Azure Database for PostgreSQL - Single Server
Content Source: articles/postgresql/concepts-limits.md
Service: postgresql
GitHub Login: @lfittl-msft
Microsoft Alias: lufittl

@ernetas Thats good feedback - you are correct that this is confusing. We'll review whether we can adjust this.

Thanks for bringing this to our attention. Your feedback has been shared with the content owner for further review.

@ernetas
We sincerely apologize for the delayed response to this issue. I collaborate with the owners of the GitHub Issues related to PostgreSQL/MySQL/MariaDB to help either get them resolved or determine how to update our documentation.
As such, is this GitHub Issue still a concern for you? If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion, and we will reopen the issue.
Due to the age of this issue, we will continue to close this issue.
Please visit https://docs.microsoft.com/en-us/answers/support/ for more information on asking questions about the product or service.

#please-close


docs: Everyday Types

The point of this example was to demonstrate functions that only accept a certain set of known values, not showing some sort of typo mistake, therefore I think it is better to show 'top' rather than 'centre' which resembles general world use cases in a better manner.

Thanks, but this is a very real use-case, as centre is how it would have been done in British English
https://www.grammarly.com/blog/center-centre/


Multiple instances of joystick visible [BUG]

Bug description
There is possibility of having multiple joystick instances visible for dynamic joystick demo (see "To Reproduce" section)
To Reproduce
Steps to reproduce the behavior:

Press left mouse button to summon (dynamic) joystick (when the cursor is in joystick demo area)
Preserve the mouse button pressed and move cursor out of joystick demo area
Release the mouse button
Press left mouse button to summon (dynamic) joystick (when the cursor is in joystick demo area)
You can see, that old joystick is preserved and new one is visible under your cursor

Expected behavior
One instance of joystick is visible
Desktop:

OS: Windows
Browser: Chrome
Version: 74.0.3729.169 (Official Build) (64-bit)

I was able to reproduce the issue.
I'll work on it as soon as I have some time.


Update to have one location for widget state

Looks good, however there is one use case that's not getting handled ATM - various events/layout/state changes are not reported as a result of user interaction (NineZoneState changes in FrameworkStateReducer). I.e. onWidgetStateChangedEvent is not called when user closes/opens a widget.

@GerardasB - Please see my latest changes in frontstageDef.tsx public set nineZoneState.  Do you think this is the proper approach?

Looks good, however there is one use case that's not getting handled ATM - various events/layout/state changes are not reported as a result of user interaction (NineZoneState changes in FrameworkStateReducer). I.e. onWidgetStateChangedEvent is not called when user closes/opens a widget.

@GerardasB - Please see my latest changes in frontstageDef.tsx public set nineZoneState. Do you think this is the proper approach?

Yes, I think we can go with that.


FocusManager.TryMoveFocus() throws Catastrophic failure exception

Describe the bug
Trying to move focus to next control in a textbox' KeyDown event handler on Enter key throws an unhandled Catastrophic exception.
Steps to reproduce the bug
<Window
    x:Class="App2.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:App2"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center" Spacing="8">
        <TextBox Text="First textbox" KeyDown="TextBox1_KeyDown"/>
        <TextBox Text="Second textbox" KeyDown="TextBox2_KeyDown"/>
    </StackPanel>
</Window>

    private void TextBox1_KeyDown(object sender, KeyRoutedEventArgs e)
    {
        // Move focus to next control on enter
        if (e.Key == Windows.System.VirtualKey.Enter)
        {
            FocusManager.TryMoveFocus(FocusNavigationDirection.Next);
            e.Handled = true;
        }
    }

Expected behavior
Move focus to next control. Since it is a TryXXX method, it should never throw.
Screenshots
No response
NuGet package version
Windows App SDK 1.2.4: 1.2.230217.4
Packaging type
No response
Windows version
Windows 10 version 22H2 (19045, 2022 Update)
IDE
Visual Studio 2022
Additional context
No response

Dupe of https://github.com/microsoft/microsoft-ui-xaml/issues/5593


Added averaging-methods guide

Linked issue(s):
KOL-2530
What change does this PR introduce and why?

Added Metrics Guide section in the main header
Put up a placeholder for Metrics Guide page
Added "Averaging Methods" to Metrics Guide section

Please check if the PR fulfills these requirements

[x] Include reference to internal ticket and/or GitHub issue "Fixes #NNNN" (if applicable)
[x] Relevant tests for the changes have been added
[x] Relevant docs have been added / updated

I couldn't tell why it has the "warning" sign looking icon next to Metrics Guide. Any idea?

I couldn't tell why it has the "warning" sign looking icon next to Metrics Guide. Any idea?

This is the "new" status added at the top of metrics-guide/index.md. Feel free to remove.


[docs] Incorrect description of esp_event_post_to() on Docs (IDFGH-12311)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report
https://docs.espressif.com/projects/esp-idf/zh_CN/v5.1.2/esp32s3/api-reference/system/esp_event.html?highlight=esp_event_post_to#_CPPv417esp_event_post_to23esp_event_loop_handle_t16esp_event_base_t7int32_tPKv6size_t10TickType_t
"This function behaves in the same manner as esp_event_post_to, except the additional specification of the event loop to post the event to."
Should be
"This function behaves in the same manner as esp_event_post, except the additional specification of the event loop to post the event to."

@Tinyu-Zhao Thanks for noticing this mistake! Our fix should appear soon on master.


Unable to build docker container

when running docker compose up -d, the following error is returned
failed to solve: process "/bin/sh -c apt-get update && apt-get install -y --no-install-recommends     gcc     libpq-dev     && apt-get install -y libc-bin=2.36-9+deb12u6     && apt-get clean     && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100

Resolved this with the following change to the Dockerfile

# Update system and install required packages
RUN apt-get update && apt-get install -y --no-install-recommends \
    gcc \
    libpq-dev \
    libc-bin \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*
...
# Upgrade all packages in the final stage to ensure the latest versions are applied
RUN apt-get update && apt-get upgrade -y \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*


Added User signup and user login endpoint and token based  feature

Description
Please include a summary of the change and relevant motivation and context.
List any dependencies that are required for this change.
Add user signup, POST /api/auth/signup
login  endpoints. POST /api/auth/login
Add user token identity endpoint at  GET api/auth
All pull requests should be related to open issues. Indicate the issue(s) bellow and remove this line:
Fixes #(3)
How Has This Been Tested?
Please describe in detail how you tested your changes.
Include details of your testing environment, and the tests you ran to see how your change affects other areas of the code etc.

Set up a test database
Write endpoint test using jest testing framework
Run tests to fail
Implement fetaures
Run tests to pass
Test endpoints with INSOMNIA REST client

Checklist:

[x ] My code follows the style guidelines of this project
[ x] I have performed a self-review of my own code
[ x] I have commented my code, particularly in hard-to-understand areas
[ ] I have added necessary inline code documentation
[x ] I have added tests that prove my fix is effective and that this feature works
[x ] New and existing unit tests pass locally with my changes

Please update the code quality,thanks.


Fix unused but set variable in TriangularSolver.h

Allows -Wunused-but-set-variable to pass
Description
Please include a short summary of the change.
Issue link (if applicable):
Type of change

[ ] New feature (backwards compatible)
[ ] New feature (breaking API changes)
[X] Bug fix
[ ] Other (Documentation, CI, ...)

Contribution checklist

[X] Add our license to new files.
[X] Check that your code adheres to our coding style.
[X] Write unittests.
[X] Run the unittests and check that they’re passing.
[X] Run the benchmarks to make sure your change doesn’t introduce a regression.

LGTM. Just one quick question, is the flag -Wunused-but-set-variable like a sort of linter for cpp? I'm wondering if we should add that flag when building cvxcore? If so, it would be nice to update the docs as well.

This code is vendored in, I'm deeply skeptical of making changes to it that aren't just wholesale updates to the library we're vendoring.
I would vote to close, but thank you for looking at this!

In this case the issue should be raised on the Eigen repo (I think they
work out of GitLab).
On Tue, Jul 16, 2024 at 10:35 AM Parth Nobel @.***>
wrote:

This code is vendored in, I'm deeply skeptical of making changes to it
that aren't just wholesale updates to the library we're vendoring.
I would vote to close, but thank you for looking at this!
—
Reply to this email directly, view it on GitHub
https://github.com/cvxpy/cvxpy/pull/2507#issuecomment-2231082091, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACRLIFBCJDO5ZMCS7ZSLKITZMUVUFAVCNFSM6AAAAABK4Y6DKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRGA4DEMBZGE
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


First course page deleted -> course can't be shared / embedded

E.g. this course: https://de.serlo.org/mathe/20368/überblick
If you embed this course in a folder or share the link you get the id of the former first course page which has been deleted.
-> https://de.serlo.org/19479

I guess the long-term solution would be to add a  trashed filter to pages, so that we can easily query the first non-trashed course page.

@yolo-bird Thanks for reporting! A bug fix is on the way (linked to this issue)


Update Nix Flake.lock

Trying to build using nix fails due to clap's MSRV being 1.64.0, but rustc in nixpkgs from the flake lock being 1.62.1.
Log from nix run github:tobealive/wthrr-the-weathercrab:
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/izcn871i8ms2g9ii09bdh6g4z4snbf0r-source
source root is source
Executing cargoSetupPostUnpackHook
unpacking source archive /nix/store/khx4k10fifgh7jghrm5k2jhby9va30mq-cargo-vendor-dir
Finished cargoSetupPostUnpackHook
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
Executing cargoSetupPostPatchHook
Validating consistency between /build/source//Cargo.lock and /build/cargo-vendor-dir/Cargo.lock
Finished cargoSetupPostPatchHook
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
@nix { "action": "setPhase", "phase": "buildPhase" }
building
Executing cargoBuildHook
++ env CC_x86_64-unknown-linux-gnu=/nix/store/kia8xygy2r9iblwbjrl163j4bpz84wz7-gcc-wrapper-11.3.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/kia8xygy2r9iblwbjrl163j4bpz84wz7-gcc-wrapper-11.3.0/bin/c++ CC_x86_64-unknown-linux-gnu=/nix/store/kia8xygy2r9iblwbjrl163j4bpz84wz7-gcc-wrapper-11.3.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/kia8xygy2r9iblwbjrl163j4bpz84wz7-gcc-wrapper-11.3.0/bin/c++ cargo build -j 16 --target x86_64-unknown-linux-gnu --frozen --release
error: package `clap v4.2.1` cannot be built because it requires rustc 1.64.0 or newer, while the currently active rustc version is 1.62.1

Hey @jeiang,
Thanks for reaching out! Sorry about the inconvenience. If it's not to much of a hassle do you have a chance to submit a fix? Else I'll check into it to coming week :+1:

Yea sure, I can do it (fixed it locally already). I'll make a PR.
Also, some of the tests (specifically modules::localization::tests::translate_string and modules::location::tests::geolocation_response) fail when building because of nix's sandbox. I have some possible fixes for it, should I open a different issue/PR for it?

That would be awesome. Tyvm!


Failed to decode slightly deformed DataMatrix symbol

Firstly, thanks for the wonderful library! It helps our project greatly.
Unfortunately, we are hitting a wall in which we cannot scan a specific sort of datamatrix. Namely, the one I show below.

Using the datamatrix reader from my phone, I obtain<PHONE_NUMBER>0233831724113010PPMAHU
However, when I use the zxing-cpp library, I got nothing.
We are looking into the source code to figure out what went wrong. So far, we identified that it failed at the Reed-Solomon Decode thing in DMDecode.cpp and therefore raised a checksum error. But I am no Datamatrix expert to understand how I should address the issue.
I would highly appreciate it if anyone can help!

I had a look at your sample and the reason it does not get detected is a slight deformation: the lower 10 lines of modules are about 260 pixels high, the upper 10 lines only 245 pixels. And that is currently just a little too much to cope with for the approach taken. This results in the sampling grid being off in the center part of the symbol. For reference, I add a debugging image showing where the sampling points are located.
The deformation is not so bad that the uniform grid approach has to fail necessarily. So there might be a chance for an improved grid placement strategy. I'll let the issue open, in case I have time to try to improve the situation in the future. Right now, I can't help you with this issue.

Question: is your project something public you can share? I'm curious who uses this library and what for. :)

In our project we are using a camera to capture the data-matrix on some medical products. Then we use this library for decoding the data-matrix. But because of some hardware limitation the barcode is often slightly deformed and over-saturated. We are working our best to maximize our success rate.

If your input is highly regular (like from a controlled environment with always the same resolution/orientation/lighting/etc.) you could potentially use the above information and try to preprocess your input (like e.g. a 1 pixel erosion filter) and see if that can help. That particular sample could be fixed if you removed 1-2 lines of black pixels from the bottom line. That would shift the sampling grid slightly up and could just make it fit.

I actually meant dilute, not erode (can't remember which is which ;)). But that does not work, indeed. If I remove the 3 lowest lines of black pixels, thereby nudging the grid a bit upwards, it works. Not a generally applicable strategy, though ;). The grid is currently placed based on the position of the outermost pixels of the symbol. To improve the situation here, one would need to incorporate positional information from inside the symbol. That is not a trivial change, though. I experimented with something like this a while back but the results were not convincing (improving some but worsening other samples). Sorry, but that is all I can offer at the moment.

Hi, since you have mentioned that the upper pixel size is different with the lower one, I have been thinking about using 18 vertical lines plus 18 horizontal lines to find out the points. For upper points we should be 26 pixel per one point, and lower points should be 24.5 pixel per one point. Then we might have recover a bit of the distortion of the original image?
However, I don't quite understand some of the variables in DMDetector.cpp. I see there are four lines to be found: lineL, lineB lineT and lineR. I am still stuggling on which one is which. It would be great if you can help me understand a little bit on that. Thanks in advance.

Hi @trialabc. Since you were not the original poster of the issue: what is your take on this?
I don't understand what you mean by "using 18 vertical lines ... to find the points".
The variables in the code like lineL, etc. mean left, bottom, top and right. where L and B form the L-shape finder pattern and T and R are just outside the timing patterns. So those 4 lines exactly contain the symbol and their intersection are the corner points.

Sorry @axxel , I am a friend with @Astolf20377. Therefore, it is actually a question from us.
Thank for your reply on the lines which really help me out on understanding the code.
I have been trying to understand the whole GridSampler code which uses the uniform grid approach. So, it seems like this case the deformation breaks it. And from the given grid image, those points in the middle are surely offset too much from the "human-eye".
I have been thinking about how to tackle this little non-uniform by introducing educated offsets. From the top and right line, actually we can determine the center point of the grids by using the mid-point of the black-white-black transitions or white-black-white transitions. For the "L-Shape" line, it can evenly distributed. Then for this case, we can have 20 points on top, 20 points on right, 20 points on left and 20 points on bottom. Then, we can draw vertical and horizontal lines and find out these 400 points. Not sure if this concept works or not.

Yeah trialabc is indeed my friend XD
We were talking about the possibility to tackle this issue.
I have an idea of making use of the top and right black-and-white patterns to generate the sampling grid rather than relying on perspective transform alone. Still in the middle of figuring things out, so hopefully we can get somewhere!

Hmm...In fact, we have a question regarding the code.
How did you manage to get the dimension of the QR code?
We are looking at the modules method. Apparently you have a lineT which represents the top of the image and apply linear regression on this line. But I don't understand how this alone allows you to obtain gap sizes... is this some sort of smart algorithm?

Well how 'smart' that algorithm is, might be debatable (and since I'm the author, I'm the wrong person to judge it's smarts ;)).
The idea was basically:

find the pixels at the outermost border of the symbol (black -> white transition towards the outside) e.g.

***  **  ***  **       **   ***

measure the distance between the successive first black pixels (widths of a black+white module ), here 5, 4, 5, 9, 5
filter out widths that are too far off (happens if a black module was missed during traceGaps), here the 9
calculate the average width meanGapSize and divide lineLength by that to get the number of modules

Thanks for your input!
With some trials and errors we finally managed to get it to work!
The grid is still not perfect, but it is enough for the decoder to extract the info.
Basically, our strategy is:

Use the method you mentioned to capture all the points on the top and right zebra pattern.
Offset those points towards their normal position because they were at the edge.
Use perspective transform to project these points onto the left and bottom line (There is likely a more suitable method but I am too lazy :P)
Now that I have points on all 4 corners, I can use the intersection of these points to deduce where I should place my grid. For example, for the point on (3,3), I will pick the 3rd point on top and bottom bar (counting from left to right), and also the 3rd point on left and right bar (counting from top to bottom)
And that's how we get that image :)

Nice!
Question 1: Can you still successfully run ctest?
Question 2: Would you care to share your code to potentially improve the code for all others, as well?

Is this what the test supposed to look like?
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug|x64 ------
2>------ Build started: Project: RUN_TESTS, Configuration: Debug|x64 ------
2>  Test project C:/Users/Matthew/Documents/src/python/build/zxing-cpp/build
2>      Start 1: ZXingReaderTest
2>  1/4 Test #1: ZXingReaderTest ..................   Passed    0.12 sec
2>      Start 2: ZXingWriterTest
2>  2/4 Test #2: ZXingWriterTest ..................   Passed    0.05 sec
2>      Start 3: ReaderTest
2>  3/4 Test #3: ReaderTest .......................***Failed   58.01 sec
2>      Start 4: WriterTest
2>  4/4 Test #4: WriterTest .......................   Passed    0.14 sec
2>
2>  75% tests passed, 1 tests failed out of 4
2>
2>  Total Test time (real) =  58.40 sec
2>
2>  The following tests FAILED:
2>  	  3 - ReaderTest (Failed)
2>  Errors while running CTest
2>  Output from these tests are in: C:/Users/Matthew/Documents/src/python/build/zxing-cpp/build/Testing/Temporary/LastTest.log
2>  Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
So I apparently failed test 3. Not sure what is causing that though, likely need to take a look.
Btw I am not very good at C++ and the code I wrote is more like a hack. I suppose I can fork the repo and share it with you instead? Because I don't think a PR will be justified considering the way I wrote it XD

LastTest.log

Thanks for the log. It seems the ReaderTest binary is crashing while testing the upca-2 samples.
A public fork of your code to be able to have a look at would be welcome.

https://github.com/Astolf20377/zxing-cpp
Here you go :)

Thanks. I had a quick look at your code and commented on the most glaring issue but, as you warned me, there are more issues, so I would not consider merging it as is. ;).
I wonder is this a one-off example or does your setup systematically produce such images (that now work, but did not before)?

I haven't done enough testing to provide a definite answer. It works but I cannot tell which one is better.
Btw that "backup" variable was created because I don't want to override your method. Hence, instead I store my detection grid in a second variable called backup. If the vanilla detection algorithm fails, I use mine to give it one more try.
And those offsets are implemented because tracing the top and right line gives me points that lie at the edge. I want points at the center of the pattern.

What do you mean by "this type of data matrix"? Do you have another example? Is there a systematic cause for the deformation?


How to delete a miss-published version in a crate?

I have a crate named xch-ceb.
I wrote a miss version number v1.1.5 and published it.
Meanwhile, I found out the version should be v1.0.0. So, I correct the version and republished it. But now, the latest version actually was v1.0.1, and because I published the wrong version(v1.1.5) before, so the latest version on crates.io is v1.1.5.
How can I delete the v1.1.5 now?
Or are there any other solutions?
BTW: Sorry for my terrible English.

Hi there!

BTW: Sorry for my terrible English.

Your English is fine, don't worry about it!

How can I delete the v1.1.5 now?

You cannot delete uploaded packages. However, you can yank them: https://doc.rust-lang.org/stable/cargo/reference/publishing.html#cargo-yank
$ cargo yank --vers 1.1.5

Finally, we try to keep the issues tracker for bugs only; https://users.rust-lang.org/ is often a better way to get help, so you might want to post there in the future.
Thank you!


feat: add is-same-typed-array-like

Resolves #2887
Description

What is the purpose of this pull request?

This pull request:

adds is-same-typed-array-like

Related Issues

Does this pull request have any related issues?

This pull request:

resolves #2887

Questions

Any questions for reviewers of this pull request?

No.
Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.
Checklist

Please ensure the following tasks are completed before submitting this pull request.

[x] Read, understood, and followed the contributing guidelines.

@stdlib-js/reviewers

pr is ready to be reviewed @kgryte @Planeshifter . Thank You !


add-podeaccessrule in one individual file

Add-PodeAccessRule -Access Deny -Type IP -Values @('<IP_ADDRESS>', '[::1]')
Hi,
I am reading doc, and I suddenly come up a question, if I want to keep add-podeaccessrule individually inside one file, how I should do it?
Thanks
Eric Xin

Hi @ericxin1982,
If you have some file, say rule.ps1 in the same directory as your seever, with the content as:
Add-PodeAccessRule -Access Deny -Type IP -Values @('<IP_ADDRESS>', '[::1]')

You can then dot-source the file in Start-PodeServer:
Start-PodeServer {
    . ./rule.ps1
}

That is great, I know this way, just don't know it works for pode or not.

BTW
Use-PodeScript -Path './function.ps1'
and . ./xxx.ps1, what is the difference, or actually I also can use use-podescript this way, just understand pode better.
Thanks
Eric Xin

ok, got it.


test: utils-cgroup

Signed-off-by: xian-jie.shen<EMAIL_ADDRESS>
What type of PR is this?
ut
What this PR does / why we need it:
ut
Which issue(s) this PR fixes:
N/A
Fixes #
N/A
Special notes for your reviewer:
[going@dev utils]$ go test cgroup_test.go cgroup.go ref.go -v -cover -coverprofile=c.out
=== RUN   TestCgroupName_ToCgroupfs
--- PASS: TestCgroupName_ToCgroupfs (0.00s)
=== RUN   TestGetCgroupPath
=== RUN   TestGetCgroupPath/base
=== RUN   TestGetCgroupPath/cgroupDriver_is_cgroupfs
=== RUN   TestGetCgroupPath/cgroupDriver_is_default
--- PASS: TestGetCgroupPath (0.00s)
    --- PASS: TestGetCgroupPath/base (0.00s)
    --- PASS: TestGetCgroupPath/cgroupDriver_is_cgroupfs (0.00s)
    --- PASS: TestGetCgroupPath/cgroupDriver_is_default (0.00s)
=== RUN   TestGetCgroupName
=== RUN   TestGetCgroupName/base
    cgroup_test.go:100: []
=== RUN   TestGetCgroupName/status_is_equal_to_PodQOSGuaranteed
    cgroup_test.go:100: [kubepods podfake-uid]
=== RUN   TestGetCgroupName/status_is_equal_to_PodQOSBurstable
    cgroup_test.go:100: [kubepods burstable podfake-uid]
=== RUN   TestGetCgroupName/status_is_equal_to_PodQOSBestEffort
    cgroup_test.go:100: [kubepods besteffort podfake-uid]
--- PASS: TestGetCgroupName (0.00s)
    --- PASS: TestGetCgroupName/base (0.00s)
    --- PASS: TestGetCgroupName/status_is_equal_to_PodQOSGuaranteed (0.00s)
    --- PASS: TestGetCgroupName/status_is_equal_to_PodQOSBurstable (0.00s)
    --- PASS: TestGetCgroupName/status_is_equal_to_PodQOSBestEffort (0.00s)
=== RUN   TestGetPodCgroupNameSuffix
--- PASS: TestGetPodCgroupNameSuffix (0.00s)
=== RUN   TestNewCgroupName
--- PASS: TestNewCgroupName (0.00s)
=== RUN   TestCgroupName_ToSystemd
=== RUN   TestCgroupName_ToSystemd/base
=== RUN   TestCgroupName_ToSystemd/len(slice)_<_len(suffix)
--- PASS: TestCgroupName_ToSystemd (0.00s)
    --- PASS: TestCgroupName_ToSystemd/base (0.00s)
    --- PASS: TestCgroupName_ToSystemd/len(slice)_<_len(suffix) (0.00s)
=== RUN   Test_escapeSystemdCgroupName
--- PASS: Test_escapeSystemdCgroupName (0.00s)
=== RUN   TestExpandSlice
=== RUN   TestExpandSlice/base
=== RUN   TestExpandSlice/slice_contains_'/'
=== RUN   TestExpandSlice/slice_contains_'-'
=== RUN   TestExpandSlice/slice_contains_many_'-'
=== RUN   TestExpandSlice/slice_contains_some_contents_and_many_'-'
--- PASS: TestExpandSlice (0.00s)
    --- PASS: TestExpandSlice/base (0.00s)
    --- PASS: TestExpandSlice/slice_contains_'/' (0.00s)
    --- PASS: TestExpandSlice/slice_contains_'-' (0.00s)
    --- PASS: TestExpandSlice/slice_contains_many_'-' (0.00s)
    --- PASS: TestExpandSlice/slice_contains_some_contents_and_many_'-' (0.00s)
PASS
coverage: 82.6% of statements
ok      command-line-arguments  0.025s  coverage: 82.6% of statements
[going@dev utils]$ go tool cover -html=c.out -o coverage.html

Thx for your contribution! We will review it.

/lgtm


Train cedrpacrr using 5 folds BERT checkpoint, train_pairs and valid_run

Hi Sean,
I want to train cedrpacrr using BERT checkpoint by the following command:
python train.py \
  --model cedr_pacrr \ # or cedr_knrm / cedr_drmm
  --datafiles data/queries.tsv data/documents.tsv \
  --qrels data/qrels \
  --train_pairs data/train_pairs \
  --valid_run data/valid_run \
  --initial_bert_weights models/vbert/weights.p \
  --model_out_dir models/cedrpacrr

As you know in your data directory train and validation data are in 5 folds. Also, weight of BERT check point has 5 folds.
Would you please guide me what I should do with train_pair, valid_run and weights?
Thanks in advance,
Kind Regards,
Zahra

I used the following command to train a CEDR-KNRM model with  fold 1 data on Robust 04 dataset:
python train.py   --model cedr_knrm
--datafiles ../data/robust/queries.tsv ../data/robust/documents.tsv
--qrels ../data/robust/qrels
--train_pairs ../data/robust/f1.train.pairs
--valid_run ../data/robust/f1.valid.run
--model_out_dir models/vbert1/cedr_knrm
--initial_bert_weights /models/cedr-models/vbert-robust-f1.p

where train_pairs value was the path of fold 1 training data and inital_bert_weights should also match the trained Vanilla_bert with fold 1 data.

Thank you!

So, you evaluated average of values of each metric for 5 folds manually, am I right?

Would you please tell me whether you freezed the BERT layer when you trained the model? In other words, you make trainable of the BERT layer False? If yes, how did you do?

Also, would you please tell me whether you got the result of the paper?

Thanks in advance,
Kind Regards

Hi @Pourbahman,
I recommend using a package like OpenNIR or Capreolus. This repository was meant to be as a simplification/demonstration of the main idea, rather than a comprehensive system for doing these types of experiments / tuning / etc. The original experiments in the paper were conducted on a precursor to OpenNIR.
To answer your questions:

Yes, five models were trained and evaluated in a cross-validation setup and the performance reported in the paper is the average across the folds (as is common practice for Robust04). The trained models used in the paper can be found here.
I don't have the exact hardware configuration (it was at my prior institution), but I can say it was trained on a 1080ti GPU, with 32-64GB RAM and an AMD CPU. If further details are needed, let me know which ones in particular are needed and I could contact somebody there.
The weights of the model were not frozen. If you want to experiment with this on OpenNIR, you can set vocab.train=False.

Hi Sean,
Thanks for your complete answer :)
Kind Regards,
Zahra


Quest not changing as expected on QuestChat dialogue change

On the hydroponics quest, the error occurs here:https://github.com/democratizedspace/dspace/blob/25bd6a29f1863f9403a1a5022f1d5d97f852752c/frontend/src/pages/quests/json/hydroponics/basil.json#L99
It should change the process to bucket-water-dechlorinated, but it never does unless you refresh.

perhaps I can temporarily unmount and then re-mount. Since it's synchronous (I think), it should be fine to do it very rapidly as a slight delay is expected.


propperly broadcast changes to settings and environment variables

This fixes https://github.com/chef/chef-dk/issues/534 by broadcasting changes to the environment variables. Note that this is dependent on https://github.com/chef/omnibus/pull/558.
/cc @chef/omnibus-maintainers

removed my Vagrantfile

:+1:

:+1:

Will merge as soon as I validate another build. Hoping it finishes before the holidays.

:tada: nice work

Hey, this breaks with
 [Packager::MSI] I | $ light.exe -nologo -ext WixUIExtension -ext 'WixUtilExtension' -cultures:en-us -loc "C:\Users\jenkins\AppData\Local\Temp\chefdk20151020-2360-48s0bk\localization-en-us.wxl" project-files.wixobj source.wixobj -out "C:\omnibus-ruby\pkg\chefdk-0.9.0+20151020085008-1-x86.msi"
                                    I | C:\Users\jenkins\AppData\Local\Temp\chefdk20151020-2360-48s0bk\source.wxs(33) : error LGHT0094 : Unresolved reference to symbol 'CustomAction:WixBroadcastSettingChange' in section 'Product:*'.

                                    I | C:\Users\jenkins\AppData\Local\Temp\chefdk20151020-2360-48s0bk\source.wxs(34) : error LGHT0094 : Unresolved reference to symbol 'CustomAction:WixBroadcastEnvironmentChange' in section 'Product:*'.

The following shell command exited with status 94:

    $ light.exe -nologo -ext WixUIExtension -ext 'WixUtilExtension' -cultures:en-us -loc "C:\Users\jenkins\AppData\Local\Temp\chefdk20151020-2360-48s0bk\localization-en-us.wxl" project-files.wixobj source.wixobj -out "C:\omnibus-ruby\pkg\chefdk-0.9.0+20151020085008-1-x86.msi"

Output:

    C:\Users\jenkins\AppData\Local\Temp\chefdk20151020-2360-48s0bk\source.wxs(33) : error LGHT0094 : Unresolved reference to symbol 'CustomAction:WixBroadcastSettingChange' in section 'Product:*'.

C:\Users\jenkins\AppData\Local\Temp\chefdk20151020-2360-48s0bk\source.wxs(34) : error LGHT0094 : Unresolved reference to symbol 'CustomAction:WixBroadcastEnvironmentChange' in section 'Product:*'.

Error:

    (nothing)

Just ran another build on a fresh builder with success. I strongly think this is due to an old version of the wix toolset on the build machines. They should get updated with the latest wix cookbook which installs 3.10


Different inference speed with C++ and Python for the same model on EdgeTPU using tflite API

Hi! I recently tried to deploy yolov5 onto EdgeTPU with C++. The application runs fine now although the inference speed is not even comparable to the Python version.
I then measure the time spent on the line to invoke the interpreter:
interpreter->Invoke(); from C++ versus interpreter.invoke() from Python
C++ results in around 65ms per frame (TensorFlow lite C++ is compiled with the same version as the model being quantized); and Python results in 42ms.
I am wondering what might cause the difference?

@zye1996 could you show the snippet where your initialized the interpreter?

@zye1996 could you show the snippet where your initialized the interpreter?

In C++, I initialize the interpreter with:
std::shared_ptr<edgetpu::EdgeTpuContext> edgetpuContext
        = edgetpu::EdgeTpuManager::GetSingleton()->OpenDevice();
std::unique_ptr<tflite::Interpreter> interpreter
        = coral::BuildEdgeTpuInterpreter(*model, edgetpuContext.get());

where the function BuildEdgeTpuInterpreter is:
std::unique_ptr<tflite::Interpreter> BuildEdgeTpuInterpreter(
            const tflite::FlatBufferModel& model,
            edgetpu::EdgeTpuContext* edgetpu_context) {
        tflite::ops::builtin::BuiltinOpResolver resolver;
        resolver.AddCustom(edgetpu::kCustomOp, edgetpu::RegisterCustomOp());
        std::unique_ptr<tflite::Interpreter> interpreter;
        if (tflite::InterpreterBuilder(model, resolver)(&interpreter) != kTfLiteOk) {
            std::cerr << "Failed to build interpreter." << std::endl;
        }
        // Bind given context with interpreter.
        interpreter->SetExternalContext(kTfLiteEdgeTpuContext, edgetpu_context);
        interpreter->SetNumThreads(1);
        if (interpreter->AllocateTensors() != kTfLiteOk) {
            std::cerr << "Failed to allocate tensors." << std::endl;
        }
        return interpreter;
    }

@zye1996,
You can follow the steps below to libcoral benchmarks
cd libcoral
Move yolov5 models test_data in libcoral
Add the models to benchamrks.bzl. Not that you need a tflite file as well to run this script. As a work around i named a fake file yolov5.tflite.
make docker-shell
make benchmarks (inside docker shell)
in other terminal run
/out/k8/benchmarks/coral/models_benchmark

I have also tried with pycoral and libcoral don't see much difference in inference with both of them:
libcoral:
:~/libcoral/out/k8/benchmarks/coral$ ./single_model_benchmark -model yolov5s6-int8_edgetpu.tflite
2021-11-18 09:18:03
Running ./single_model_benchmark
Run on (4 X 3900 MHz CPU s)
CPU Caches:
  L1 Data 32K (x2)
  L1 Instruction 32K (x2)
  L2 Unified 256K (x2)
  L3 Unified 4096K (x1)
Load Average: 1.00, 1.05, 0.82
***WARNING*** CPU scaling is enabled, the benchmark real time measurements may be noisy and will incur extra overhead.
-----------------------------------------------------
Benchmark           Time             CPU   Iterations
-----------------------------------------------------
BM_Model         63.2 ms         13.4 ms           49 yolov5s6-int8_edgetpu.tflite

:~/libcoral/out/k8/benchmarks/coral$ ./single_model_benchmark -model yolov5s-int8_edgetpu.tflite
2021-11-18 09:18:21
Running ./single_model_benchmark
Run on (4 X 3900 MHz CPU s)
CPU Caches:
  L1 Data 32K (x2)
  L1 Instruction 32K (x2)
  L2 Unified 256K (x2)
  L3 Unified 4096K (x1)
Load Average: 0.99, 1.05, 0.82
***WARNING*** CPU scaling is enabled, the benchmark real time measurements may be noisy and will incur extra overhead.
-----------------------------------------------------
Benchmark           Time             CPU   Iterations
-----------------------------------------------------
BM_Model         44.3 ms         9.78 ms           69 yolov5s-int8_edgetpu.tflite

pycoral with 70 iterations:
:~$ python3 run_inference.py
yolov5s-int8_edgetpu.tflite
44.03 ms
:~$ python3 run_inference.py
yolov5s6-int8_edgetpu.tflite
65.96 ms


updated group_7 md and build_msg_in_matlab.md wrong directory?

generate_msg.m is in the external folder

generate_msg.m is in the external folder

You are right! Thank you!


experiment_id

Required when scantype is fMRI.
Since this is unique for each task, could be an optional key 'NDA_taskid' in *tasks.tsv / *bold.json. Add flag in parser? Manually add in after generated image03? WDYT?

This should map to an existing experiment definition in NDA database what needs to be created by NDA tools (and verified by their curators). However, I noticed that if you completely omit the experiment_id column from image03 the validator only gives you a warning. Since BIDS2NDA saves the events files all of the timing information will still be saved (and truth to be told represented more accurately than current specification of experiments in NDA).

validator is now throwing an error for this :(

You mean an error about missing experiment_id? Did they add some way to programmatically query and add new experiments?


TrackPad Woes

I don't know if anyone even checks up on this anymore but I've been having so many issues. I finally got a booting system and the screenpad lights up but i cannot get the trackpad to work for the life of me! it boots but then you can't use the trackpad as an actual trackpad. I don't know where to go from here and I hope someone has a solution

only difference is mine is a ux434fac rather than an lc


fix: compatibility with cobrapy

Description of the issue:
We should include compatibility for cobrapy, so ideally the model can be fully used by python users. In the following what needs to be done:

[x] To be able to use the full model:

[x] Solve issue #101
[x] Make sure no field is lost when the model is opened with cobrapy:

[x] Metabolites:

[X] id
[X] name
[X] formula
[X] charge
[x] annotation

[x] chebi
[x] kegg.compound

[x] Reactions:

[X] id
[X] name
[X] metabolites (with stoich coeffs)
[X] lower_bound
[X] upper_bound
[X] gene_reaction_rule
[x] subsystem
[x] annotation

[x] ec-code
[x] kegg.reaction
[x] pmid

[x] confidence_score

[x] Genes:

[X] id
[x] name

[X] Compartments

[ ] To be able to also contribute: Make sure the model can go through a full IO cycle without losing any of the fields, and keeping the same order (at least in the .yml and .txt)

I have crossed out all the fields I could find in the model loaded with cobrapy, but maybe I missed something @Midnighter @phantomas1234? The final of the to-do's is probably the most challenging one, so if it's too hard we can create a separate issue once we address the other points. Suggestions/things I might have forgotten are welcome @edkerk @ChristianLieven @demilappa @simas232 @hongzhonglu
I hereby confirm that I have:

[X] Checked that a similar issue does not exist already
[X] If needed, asked first in the Gitter chat room about the issue

As referenced in #101, a lot of the open problems in your list will be addressed by https://github.com/opencobra/cobrapy/pull/685. Being able to round-trip SBML files without loss of information is certainly one of my major goals with the refactor of the SBML parser.

After the merge of https://github.com/opencobra/cobrapy/pull/685 and most recently #216, now every single field is readable in cobrapy. I have moved the contribution part of this issue to #218, as it requires several changes to the writing logics of both cobrapy and cobratoolbox. This issue will be closed on the next release.


Failed to lauch firefox

On Ubuntu 16

pupeteer with chrome is fine
puppeteer with firefox gives me:

const pptrFirefox = require('puppeteer-firefox');
(async () => {
  const browser = await pptrFirefox.launch();
})();

Failed to lauch firefox
I tried headless and no headless.
Any idea ?

Having the same issue on Ubuntu 18.04, even with the --no-sandbox argument.

Thanks for the report. I'm closing this issue since the experimental puppeteer-firefox package is no longer maintained. A replacement will be available
later this year. You can learn more about Mozilla's work on this at https://wiki.mozilla.org/Remote
See also https://github.com/puppeteer/puppeteer/pull/5137


Upgrade channel list m.tv.sms.cz

Hi, please upgrade channel list m.tv.sms.cz
Rebel
Šlágr Muzika
Leo TV gold
Thanks

Added via https://github.com/iptv-org/epg/commit/554db6ed63c1cc63058ddd9b20e3cfb68d25e3dc


The editor is not installed with yarn 1.5

see https://github.com/yarnpkg/yarn/issues/5417
tui-editor depends on tui-chart
tui-chart depends on raphael
raphael update vesion number (2.2.0-c) https://github.com/nhnent/raphael/releases
but tui-chart depend old incorrect raphael version 2.2.0b
see https://github.com/nhnent/tui.chart/blob/production/package.json#L61

@kyuwoo-choi can you release fix? because it matters. the project does not work in the stable version of yarn.

https://github.com/nhnent/tui.chart/issues/40


 We could write the commit message as sys-devel/gcc: drop 15.0.0_pre20241110, 15.0.0_pre20241117{,-r1} which would fit.

Do you know a lib / code that finds such common thing and suggest shorter variant?


getAvailablePurchases() not getting resolved on iOS 16

Description
getAvailablePurchases() is not resolving on iOS 16.
It is working fine on iOS 15 and 15.5.
Expected Behavior
getAvailablePurchases() should return a success or error response
Environment:
react-native-iap: 10.1.3 and 11.0.0-rc.3
react-native: 0.67.0
Platforms iOS (any simulator with iOS 16) tested on physical device iPhone 13 mini device (iOS 16)

@Mi6u3l when trying 11.0.0-rc.3 did you enable Storekit2?

@andresesfm I did not. Apologies if it was a requirement and I missed it.
I expected that getAvailablePurchases() would work as usual, with my existing subscriptions created on app store connect.

Please help us test the recently released 11.0.0-rc.4 here are the migration instructions: https://github.com/dooboolab/react-native-iap/blob/next/docs/docs/migrate_to_11.0.0.md . The main objective of this release is to use storekit2 which is for ios 15 and up

Running into the same issue here. I have just upgraded to 11.0.0-rc.4 and some weird things are going on in my app.
I have imported the named export { setup } from react-native-iap  (not setup as the migration guide states at this point PR here)
I have then called
setup({ storekitMode: 'STOREKIT_HYBRID_MODE' });

very early in my App.tsx and before wrapping my app in the withIAPContext() HOC
I then run the following lines in my App.tsx (simplified):
const App = () => {
  const { connected } = useIAP();

  const loadSubscriptions = useCallback(async () => {
      if (connected) {
        await getAvailablePurchases();
      }
  }, [connected]);

  useEffect(() => {
    loadSubscriptions();
  }, [loadSubscriptions]);

  return null;
}

Once I do that I get a fat red native exception:
Exception 'getAvailableItems::resolve:reject: is not a recognized Objective-C method.' was thrown while invoking getAvailableItems on target RNIapIosSk2 with params (
    0,
    3894,
    3895
)
callstack: (
 0   CoreFoundation                      0x00000001addae254 42C5C917-0447-3995-B50F-DE4D132C2435 + 41556
 1   libobjc.A.dylib                     0x00000001a7173a68 objc_exception_throw + 60
 2   Foundation                          0x00000001a8732958 AA92CD58-561A-3414-92F4-B4120298B39A + 5531992
 3   Unbogify-beta                       0x00000001051afeb8 -[RCTModuleMethod processMethodSignature] + 808
 4   Unbogify-beta                       0x00000001051b6258 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 136
 5   Unbogify-beta                       0x00000001051ba1b8 _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicEiN12_GLOBAL__N_117SchedulingContextE + 1108
 6   Unbogify-beta                       0x00000001051b9b88 _ZZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEiENK3$_0clEv + 144
 7   Unbogify-beta                       0x00000001051b9aec ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 28
 8   libdispatch.dylib                   0x00000001b52284b4 C663D847-B94F-3FB0-9254-32EDBC55315E + 9396
 9   libdispatch.dylib                   0x00000001b5229fdc C663D847-B94F-3FB0-9254-32EDBC55315E + 16348
 10  libdispatch.dylib                   0x00000001b5231694 C663D847-B94F-3FB0-9254-32EDBC55315E + 46740
 11  libdispatch.dylib                   0x00000001b52321e0 C663D847-B94F-3FB0-9254-32EDBC55315E + 49632
 12  libdispatch.dylib                   0x00000001b523ce10 C663D847-B94F-3FB0-9254-32EDBC55315E + 93712
 13  libsystem_pthread.dylib             0x00000001fa6ccdf8 _pthread_wqthread + 288
 14  libsystem_pthread.dylib             0x00000001fa6ccb98 start_wqthread + 8
)

RCTFatal
facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&, int, (anonymous namespace)::SchedulingContext)
facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)::$_0::operator()() const
invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)
C663D847-B94F-3FB0-9254-32EDBC55315E
C663D847-B94F-3FB0-9254-32EDBC55315E
C663D847-B94F-3FB0-9254-32EDBC55315E
C663D847-B94F-3FB0-9254-32EDBC55315E
C663D847-B94F-3FB0-9254-32EDBC55315E
_pthread_wqthread
start_wqthread

Anything I'm doing wrong here? I'm testing on a real iPhone 13 with iOS 16, XCode 14, React Native 0.68.2

That looks correct @manuelbieh . (Thank you for the PR) I will have a look

I double checked and created this minimum reproducible example in my app folder to sort out possible side effects and I still get the error there:
import { useCallback, useEffect } from 'react';
import { getAvailablePurchases, setup, useIAP, withIAPContext } from 'react-native-iap';

setup({ storekitMode: 'STOREKIT2_MODE' });
// setup({ storekitMode: 'STOREKIT_HYBRID_MODE' });

const App = () => {
    const { connected } = useIAP();

    const loadSubscriptions = useCallback(async () => {
        if (connected) {
            await getAvailablePurchases();
        }
    }, [connected]);

    useEffect(() => {
        loadSubscriptions();
    }, [loadSubscriptions]);

    return null;
};

export default withIAPContext(App);

that's my complete RN app at this point and I'm getting the error as described above. Other calls like await getSubscriptions({ skus: SUBSCRIPTION_SKUS }) work fine after changing the function signature from an array to an object as described in the 10.0.0 migration guide.

We're also running into this problem on iOS 16 with version 10.1.3, so I tried to build our master branch, which uses 7.5.6: Similar behaviour.
So right now we can't release an update and I wonder if this might still work with a different library version?
I hope this can somehow be fixed soon (we would help, but our insights are very minimal, especially on the native side of things).

A small side note that might not really be useful. We do have one TestFlight user on iPhone 12 mini with iOS 16 who is able to start the application. So my guess is that this bug is somewhat related to the App Store user itself. But again - just a wild guess.

For me, it works in production. But not on development or Testflight

Released fix as part of 11.0.0-rc.5

For me, it works in production. But not on development or Testflight

Experiencing the same symptoms on 7.5.1
React native 63.3
Blocked doing any releases until we figure out whats going on. Id love to try the v11 alpha but our react native version will not support it

@andresesfm Thank you very much! So we need to migrate from 10 to 11 or is this also fixable for version 10?

Installed the 11.0.0-rc.5 but the function still does not resolve. Moreover, getSubscriptions results in

[TypeError: undefined is not an object (evaluating 'skus.includes')]

maybe I just messed up the installation...

11.0.0-rc.5 works for me. Thanks!
@Aiosa you should check the 10.0.0 migration guide.

@Aiosa For me it does resolve now in version 11.0.0-rc.5, after I found out that my sandbox user wasn't able to connect. So doublecheck you device sandbox user is correctly logged in.

yeah edit: porting to a new version changes the positional parameters to object parameters - thanks @manuelbieh. Though a good practice is to release first a version that supports both (typeof firstarg === "object" && ...) with deprecation message in the case of positional arguments...

That would be a nice contribution to the project @Aiosa

@andresesfm Thanks for your great work! It's kind of weird, but with 11.0.0-rc.6 with STOREKIT1_MODE we did experience this problem again (on iPhone 14 Pro). So I did log out the sandbox user on my device. Still didn't work. Then I logged the sandbox user back in again and now it seems to work again. It did resolve for other testers sometimes with and sometimes without sandbox user.  So I will now test the library in hybrid mode - maybe that will do the trick. I just wanted to leave a note that there seems to be still an issue. :(

@derRaab there's a report here: https://github.com/dooboolab/react-native-iap/issues/1987 of a problem caused by transactions being automatically finished the first time you call getAvailableItems the first time. Can you please confirm that's the issue you are experiencing?

@andresesfm After many days of refactoring and analysing we are still experiencing this kind of problem, but the circumstances become a little more clear now. Maybe there is now a way to understand this a little more?
We are only using only STOREKIT1_MODE since we need to support iOS 12 and we also have an already existing receipt validation process which relies on the transactionReceipt value.
This is something I can now reproduce and I hope you can too:
Invoking getAvailablePurchases() on a real device connected to Xcode WITHOUT and logged in app store sandbox user will not resolve! BUT it will resolve, if I'm logged in with a sandbox user.
I tested with all boolean combinations of alsoPublishToEventListener and automaticallyFinishRestoredTransactions.
Side note: If I try to purchase a product without a logged in sandbox user, the app will request to log into an Apple-ID, so I would expect to trigger such a dialog for getAvailablePurchases() as well.  OR at least the api throws an error we can handle within the app.
I assume somewhere in the library code the execution stops if no app store user is available to restore purchases from?
We are experiencing this non resolving problem mainly with TestFlight users and this is very hard to debug, because not all users have that problem. Maybe you can look into this again?
Environment:
react-native-iap: 12.0.3
react-native: 0.68.3
Platforms iOS 16

@derRaab can you please post some (native) logs of when that occurs?
In particular, one of these should be printed:
PaymentQueueRestoreCompletedTransactionsFinished

or
restoreCompletedTransactionsFailedWithError

@andresesfm Unfortunately none of them did appear in my logs. A colleague on the other hand did receive it only once. 🤦🏻
I'm still investigating...

Doing some research on this I found the following:

Call [...] SKPaymentQueue.restoreCompletedTransactions asks for Appstore credential
When we build the app from Xcode or download from Testflight, receipt is not bundled within the app since the app is not downloaded from AppStore. We can use SKReceiptRefreshRequest to download receipt from sandbox Appstore
restoreCompletedTransactions updates app receipt

from:
https://github.com/onmyway133/blog/issues/703
So it might not be an issue in production. We can reopen if this doesn't apply in your case.
Please consider supporting the project via Ko-fi or patreon. Thank you


Cherrypick improvements

Changes

Add improvements from ss5 branch
Add tests
Update recent posts handling
Update psr-4 config

This is ready @tardinha

As part of this change, the  incorrect tag v1.0.0-rc2 (created after #2 was merged) was deleted. The changes in #2 were included in this PR.


Fix issue #306

Coverage remained the same at 100.0% when pulling f682b5a7e60e3d5a2fed56f932cf3ed39426778c on issue_306 into bfa0c7ada5d9b07d767b81487f81c539c1147241 on 3.x.


Update limitations.md

Add tracking and "when" comments based on https://github.com/prisma/prisma2/issues/345
Notes:

Some edge cases for complex nested mutations don't work properly.

I don't think that this limitation exists anymore

From a user feedback:

here’s things that don’t appear to be:

defined enums
Json scalar type
type definitions (or maybe just @connection.attributes?)
inline embeds? I saw some stuff about regular embeds working in the latest beta, but I’m not sure if that also applies to inline ones

Is this ready for merge or still being discussed?
Will this close #345?

From my end, it is ready to be merged.


Wrong Maximized Critical Damage for rolls with dice modifiers

With the configuration to maximize dice on critical hit damage, if your weapon has dice modifiers, like 2d8kh (for things like Savage Attacker) the maximized damage will ignore the modifiers (16 in this example, instead of 8)

It seems like instead of trying to calculate the maximum we should evaluate the maximum with foundry. I can push a PR where I made that change, however it works in v11 but in v12 evaluate({ maximize: true }) does not call _evaluateModifiers() (I have a work around that checks the version and calls _evaluateModifiers() if it is v12 but it requires calling private Die api so I am not sure where we stand on that) I have submitted a foundry issue for this https://github.com/foundryvtt/foundryvtt/issues/11093


save dataset into netCDF with compression

Each SST file takes 16MB on disk, but 1GB when uncompressed. Running averaging now results in each monthly time slice being a netCDF dataset on disk, as no compression is applied. It would be beneficial to do compression upon saving, to have the 'uncompress-process-compress' pipeline.

@kbernat No need to take immediate action on this. It may be that this will simply happen along as I continue working on daily->monthly averaging. I'll let you know if I need help!

Some info about compressing netcdf variables
http://unidata.github.io/netcdf4-python/#section9

For each variable you can set specified compression, like:
variable.encoding.update({'zlib': True, 'complevel': 9}

or specify it as a parameter in dataset.to_netcdf()
dataset.to_netcdf(...,
                  encoding= { 'var_name' : {'zlib': True, 'complevel': 9}})

I was going to start an issue on this myself but I see it's already here. I think this is an important thing to do. When I wrote out the results of the monthly aggregation of the SST dataset the netcdf file was 240GB(!) but with gzip that came down to 27GB.


[feaLib] Reuse inline ligature substitution lookups?

This is the same as #3551, but for inline ligature substitution rules.
Given the fea,
lookup locl_latn_1 {
        script latn;
        language CAT;
        sub l' periodcentered' l by ldot;
        sub L' periodcentered' L by Ldot;
} locl_latn_1;

feaLib will generate separate lookups for the two inline rules (sub l periodcentered by ldot and sub L periodcentered by Ldot) when they could more efficiently be placed in the same lookup.
Is there any interest in fixing this here? If not I might remove this optimization in fea-rs for the time being, just to have the two implementations match.

Is there any interest in fixing this here?

I think so, yes.


custom sound while app running background - iOs

Hi guys,
first of all thank you for the wonderful plugin, and documentation.
I wanted to inform other users about a problem I had using this plugin.
If you want to play a custom sound for the notification while app is closed or running in background for iOs, you have to manually put inside the Resources folder in xCode. Otherwise it will play the default sound.

What about the path to play a custom sound?

The file should be directly in www (for iOs, in Android it is different), but this only applies if you want to play the sound while the app is in foreground.
For the custom sound to play while the app is in background, you have to drag the file to your xcodes Resources folder. see the screenshot in the first post.

hi @serhanbuy why my app not play default sound in ios ?


Please Add the Back button as it will be lot easier to go back and to the desired page.

VSCode Version: 1.10.1
OS Version:Windows 10

Steps to Reproduce:

Presently we use, ctrl + T , and search bar but back button will be much better from user point of view.

@arunkalesh what back button are you talking about? and what desired page?

In Visual Studio at the top left we have a Back and forward button to easily access the files opened previously and  also contains a list of file that were opened. But in VS code we do not have that functionality and due to which it becomes complex to get the previously opened files except searching in tabs opened and doing a ctrl + T or a search.

@arunkalesh what about this:

I agree and that is extremely great. But after using Visual Studio, and coming to VS Code having a back button at the top without going in any of the option will be much better.

It would be great if it is also possible to use "back" button on a mouse.

This feature request will not be considered in the next 6-12 months roadmap and as such will be closed to keep the number of issues we have to maintain actionable. Thanks for understanding and happy coding!

Hope it will be in the 2019 road map.

@arunkalesh did you know that you can use mouse buttons 4 and 5 for navigating back and forward?

yes.


Add aspnetcore app ref packages

Some of the repos in source build are referencing these packages. Hence, they need to be added to tarball as ILsrc.

[x] Microsoft.AspNetCoreApp.Ref 3.1.0
[ ] Microsoft.AspNetCoreApp.Ref 3.0.1

#93 for ms.aspnetcore.app.ref 3.0.1
#92 for ms.aspnetcore.app.ref 3.1.0


Make sure SQLitePCLRaw 2.0 works with official SQLCipher builds from Zetetic

This needs to be tested.
Cc @sjlombardo @developernotes

Hi @ericsink - we're planing to test this out early next week.

Hi @ericsink, sorry this took longer than expected, but we just finished up baseline testing the official SQLcipher builds with SQLitePCLRaw.bundle_zetetic 2.0.1 on Xamarin iOS, Xamarin Android, Xamarin Mac, Windows UAP, .NET Core and .NET Framework projects. Everything is looking good so far. We'll let you know if anything crops up. Thanks so much for updating bundle_zetetic to 2.0!

Yay!

Closing old/stale issue.