feat: :sparkles: add guidance for component and extension types in sc…

…affolding form
🎯 Aim
add guidance for component and extension types in scaffolding
📷 Result

✅ What was done

[] not done
[x] done

🔗 Related issue
Closes: #268

@DevPio  we just had a new major v4 release. Due to this the dev branch was rebased to align with main branch.
Please rebase your local branch to update this PR before we may move forward.
Please let me know if you need any kind of help with that

@DevPio any updates on this PR?
Please let me know if you need some help 👍

Awesome work 👏
Added some minor tweaks to the changes 👍
You Rock 🤩


ENH skip api

Add skip API to avoid long runners.
Rename scale to dimension
Add some test for the runner.

No skip method ?
Can you also update the narrative doc ?

There is a skip method.
I will update the doc when I get the time :)
Now is :beer:  time.

Codecov Report

Merging #113 (e53bac3) into master (de3b038) will increase coverage by 0.42%.
The diff coverage is 80.76%.

@@            Coverage Diff             @@
##           master     #113      +/-   ##
==========================================
+ Coverage   75.02%   75.44%   +0.42%
==========================================
  Files          28       28
  Lines        1157     1173      +16
  Branches      175      179       +4
==========================================
+ Hits          868      885      +17
+ Misses        228      227       -1
  Partials       61       61


RuntimeError: Failed to solve the system of normal equations

Hi,
I am running a list of regression models and I am getting the following:
Traceback (most recent call last):
File "/home/XXXXXX/iowa_housing_functions1.py", line 293, in
col_num=columns_num, col_cat=columns_cat, data=df_train,run_from_cache=False)
File "/home/XXXXX/iowa_housing_functions1.py", line 217, in run_regression
regressor.fit(X_preprocessed_train, y_train)
File "/home/XXX/miniconda3/envs/idp3/lib/python3.6/site-packages/sklearn/linear_model/ransac.py", line 366, in fit
base_estimator.fit(X_subset, y_subset)
File "/home/XXX/miniconda3/envs/idp3/lib/python3.6/site-packages/sklearn/daal4sklearn/linear.py", line 81, in fit
_daal4py_fit(self, X, y)
File "/home/XXX/miniconda3/envs/idp3/lib/python3.6/site-packages/sklearn/daal4sklearn/linear.py", line 20, in _daal4py_fit
lr_res = lr_algorithm.compute(X, y)
File "build/daal4py_cy.pyx", line 7445, in _daal4py.linear_regression_training.compute
RuntimeError: Failed to solve the system of normal equations
It does not happen when I run it from another virtual environment with non-intel python and sklearn
Thanks a lot.

Hi @psandev
This can happen if the matrix is ill-conditioned. Try using L2 regularization or QR decomposition


Bug: VueCarousel-wrapper class is lost after 0.6.7 update

Evening.
After 0.6.7 update you've introduced carousel wrapper ref but also removed its class from Carousel.vue component which results in all slides showing at the same time without wrapper's 'overflow: hidden' css property.
I've tried to create pull request with this feature returned, however I ended up with some problems related to jest tests, so we have what we have.

Hey @lennoximus, thanks for pointing that out! Was your PR just blocked because of the coveralls check? If you don't mind, can you make the PR and I'll deal with the coveralls check!

PR was blocked due to client tests, @quinnlangille. While running these tests I'm facing to tests not passing only because of whitespaces mismatch in components' snapshots.

Yeah just saw that - commented on the PR with instructions, there's a command that will automatically update the snapshots. It's just because we updated the snapshots after we deleted the class, so we'll need to re-add them! Let me know if you have any issues. Also, you can run npm run test in your console to check locally before you push. Thanks! :~)

Merged! Going to close this now, thanks so much for contributing :~)


Clarify Location Limitations for Exchange Online

When assigning a Location, the UI shows Choose Distribution Group. This does not seem to work with an Office Group. Please update the documentation to clearly state which type of groups can be used to limit the locations affected by the DLP, I'm guessing that it only works for Exchange Distribution List and possibly mail enabled security groups, but this is not stated anywhere. Also, are there any plans to make this work for Office Groups?

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

ID: b2ac1028-da5c-2f6b-a8ef-ae21b0b4b858
Version Independent ID: 22cdcee5-fb52-f07e-5d63-d925cb84915d
Content: Overview of data loss prevention
Content Source: microsoft-365/compliance/data-loss-prevention-policies.md
Service: o365-seccomp
GitHub Login: @chrfox
Microsoft Alias: chrfox

@DeanGross  - Thank you for submitting feedback.
I will get this issue over to the Microsoft 365 writing team for investigation.
Thank you for reporting and making the docs better. Much appreciated.
I made a note to request the team to update this when the work is complete.

Hello @DeanGross,
When assigning a Location, the UI shows Choose Distribution Group. - "Distribution Group" is a Microsoft term for Exchange distribution lists (for example, see here - Create distribution groups in the Microsoft 365 admin center)
are there any plans to make this work for Office Groups - plans are out of the scope of docs.microsoft.com portal, I think Microsoft wouldn't post this type of information here...
Thank you

@DeanGross - From our understanding, the issue you raised has been answered by MaratMussabekov. If you feel it hasn't been answered, please re-open this issue.
Thank you for your contribution to make the docs better! Much appreciated!


RDK-43326: Rename WhoAmI response to match spec

Rename partnerProvisioningContext to deviceInitializationContext to match the latest changes in the WhoAmI specification.

 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.

 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.


Updated to 14 and all devices disappeared from Control Panel

Problem/Motivation
14 seems not to work (at least for me)
Expected behavior
zwave devices in control panel should be there after update.
Actual behavior
After update all devices were gone (driver load error)
Steps to reproduce
For me, anyway, just click on update from 13 in supervisor.
Proposed changes

(If you have a proposed change, workaround or fix,
describe the rationale behind it)

I get some of the same problems some device will not get in it keeps scrolling arrow but it is a device with live power.
and the device is showing in the zwave js "normal" integration.

look like after reinstall the plugin serval times it looks better got the device in the config window


Identifying how a Channel got disconnected

My application has a SimpleChannelUpstreamHandler implementation and channelDisconnected(ChannelHandlerContext context, ChannelStateEvent event) gets invoked after a channel gets disconnected.
There are some unexpected disconnects happening and I'm trying to figure out why. Is there a way to identify how a Channel got disconnected?

You can try to catch the exception if the client closes the connection with the RST frame.

As @hyperxpro said... Also note the netty 3 is EOL for a long time.


Repo sync for protected CLA branch

The pull request is created from main638007617037431922sync_temp to main to fix git push error for protected CLA branch

Learn Build status updates of commit 0f515ba:
:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


Uninstalled unused packages (issue #46)

Uninstalled unused npm packages using npx depcheck. Fixes issue #46.

PR #60 Approved. Issue #46 fixed & closed.


Unable to start Kestrel - System.Net.Sockets.SocketException (10013): An attempt was made to access a socket in a way forbidden by its access permissions

Random start up error after a restart of app service.  A restart is required to fix the issue.
Steps to reproduce the behavior:

transient, cannot reproduce on command, but happens consistently
running asp.net core 2.2 with Azure S2 App Service.
out of process hosting
not all instances will experience, can be just 1 out of x instances after restart

Error:
crit: Microsoft.AspNetCore.Server.Kestrel[0]
      Unable to start Kestrel.
System.Net.Sockets.SocketException (10013): An attempt was made to access a socket in a way forbidden by its access permissions
   at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, String callerName)
   at System.Net.Sockets.Socket.Listen(Int32 backlog)
   at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransport.BindAsync()
   at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.<>c__DisplayClass21_0`1.<<StartAsync>g__OnBind|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context)
   at Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions.BindAsync(AddressBindContext context)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.BindAsync(AddressBindContext context)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(IServerAddressesFeature addresses, KestrelServerOptions serverOptions, ILogger logger, Func`2 createBinding)
   at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)

Unhandled Exception: System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions
   at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, String callerName)
   at System.Net.Sockets.Socket.Listen(Int32 backlog)
   at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransport.BindAsync()
   at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.<>c__DisplayClass21_0`1.<<StartAsync>g__OnBind|0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context)
   at Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions.BindAsync(AddressBindContext context)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.BindAsync(AddressBindContext context)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(IServerAddressesFeature addresses, KestrelServerOptions serverOptions, ILogger logger, Func`2 createBinding)
   at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.StartAsync(CancellationToken cancellationToken)
   at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String shutdownMessage)
   at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token)
   at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)
   at Microsoft.Eis.InboundService.Program.Main(String[] args) in D:\a\1\s\InboundService\InboundService\Program.cs:line 15
crit: Microsoft.AspNetCore.Hosting.Internal.WebHost[11]
      Hosting startup assembly exception
System.InvalidOperationException: Startup assembly StartupBootstrapper failed to execute. See the inner exception for more details. ---> System.IO.FileNotFoundException: Could not load file or assembly 'StartupBootstrapper, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, IntPtr ptrLoadContextBinder)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, IntPtr ptrLoadContextBinder)
   at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors)
   --- End of inner exception stack trace ---
Hosting environment: Production
Content root path: D:\home\site\wwwroot
Now listening on: http://<IP_ADDRESS>:23508
Application started. Press Ctrl+C to shut down.
Application is shutting down...

Just experienced the same thing, using VS 2019 latest preview release, with a solution on preview-6 (global.json)

This feels like ANCM out of process is giving a port to the app and the app can't listen to it. However, it's odd that the app said it was able to listen to http://<IP_ADDRESS>:23508. Are these logs from the same process, or from different processes? ANCM will try to restart the app multiple times, so it should eventually succeed.
Do you have any event logs from ANCM here?

Based on the event logs, it looks like the third try did succeed (and the stack trace above).
So, maybe this is something I don't need to worry about as it will eventually resolve itself.
start - 7/19
 <Event>
        <System>
            <Provider Name="IIS AspNetCore Module V2"/>
            <EventID>1001</EventID>
            <Level>4</Level>
            <Task>0</Task>
            <Keywords>Keywords</Keywords>
            <TimeCreated SystemTime="2019-07-19T16:35:12Z"/>
            <EventRecordID>20200468</EventRecordID>
            <Channel>Application</Channel>
            <Computer>RD00155D4CDD6D</Computer>
            <Security/>
        </System>
        <EventData>
            <Data>Application '/LM/W3SVC/1905298837/ROOT' started process '19892' successfully and process '0' is listening on port '23508'.</Data>
            <Data>Process Id: 15088.</Data>
            <Data>File Version: 12.2.19081.4. Description: IIS ASP.NET Core Module V2 Request Handler. Commit: 5cb615fcbe8559e49042e93394008077e30454c0</Data>
        </EventData>
    </Event>

shutdown - 7/24
<Event>
        <System>
            <Provider Name="IIS AspNetCore Module V2"/>
            <EventID>1030</EventID>
            <Level>4</Level>
            <Task>0</Task>
            <Keywords>Keywords</Keywords>
            <TimeCreated SystemTime="2019-07-24T17:16:13Z"/>
            <EventRecordID>454643937</EventRecordID>
            <Channel>Application</Channel>
            <Computer>RD00155D4CDD6D</Computer>
            <Security/>
        </System>
        <EventData>
            <Data>Application '/LM/W3SVC/1905298837/ROOT' with physical root 'D:\home\site\wwwroot\' shut down process with Id '19892' listening on port '23508'</Data>
            <Data>Process Id: 15088.</Data>
            <Data>File Version: 12.2.19081.4. Description: IIS ASP.NET Core Module V2 Request Handler. Commit: 5cb615fcbe8559e49042e93394008077e30454c0</Data>
        </EventData>
    </Event>

So, maybe this is something I don't need to worry about as it will eventually resolve itself.

Yeah, I believe so. From what I can tell, the process is always logging to the same file. The first attempt fails due to a port already in use, but the second time succeeds.
As long as that instance wasn't returning invalid responses, this is expected and would resolve itself. Can you see if before the first event log (the one where it started on port 23508), ANCM wrote an event log where it said something along the lines of failed to start the application?

I looked at our synthetic traffic etc and did not see any failed requests (500's) during this time period.  I think it worked as stated.  I have attached the event log.
eventlog.txt

This is mostly expected (but unfortunate) behavior based on the random port colliding with an existing binding. ANCM should be doing the right thing and re-starting and picking a new port. It sounds like that's the case, so I'm closing this. Let me know if I'm misinterpreting!

Hi all,
I would be careful with closing of this issue. Since I use v2.2, I'm getting this error very often and cannot speak about coincidence. Sometimes even machine restart doesn't help.
Thanks

Hi all,
We are heaving troubles with Azure App Services replacing instances for our .NET Core 2.1 web API. See also this issue. Today it escalated again and I learned about the eventlog.xml in the Kudo portal.
This shows the following logs:

dotnet.exe
CoreCLR Version: 4.6.27817.1
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions
at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, String callerName)
at System.Net.Sockets.Socket.Listen(Int32 backlog)
at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransport.BindAsync()
at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.<>c__DisplayClass22_01.<<StartAsync>g__OnBind|0>d.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context)    at Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions.BindAsync(AddressBindContext context)    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.BindAsync(AddressBindContext context)    at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(IServerAddressesFeature addresses, KestrelServerOptions serverOptions, ILogger logger, Func2 createBinding)
at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.StartAsync(CancellationToken cancellationToken)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String shutdownMessage)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)

For what we've seen now, this happens the most when Azure replaces our instances. See also this issue I've raised: https://github.com/aspnet/AspNetCore/issues/13866

@anurse because comments on closed issues might not be tracked, see my previous comment. Can you point us in the right direction on this?

@tweek82 I'd suggest you open a new issue, for exactly the reason you mention (closed issues don't get a lot of attention). I'm on leave until Monday and not really able to investigate further. Opening a new issue ensures it'll get my attention when I'm back, and even before then it ensures the whole team sees it.

This might be completely unrelated but adding UseIIS() fixed it for me.


Replace Brandon with Roboto

Proof of concept, carbon copy to @shcheklein.
Some font sizes may need a bit of downscaling to fit in the same number of lines, but that's fairly minor. In fact, I would rather try to keep the bigger size and adjust the paddings. The current design is a tribute to horror vacui.
Update: on a second thought, I would even suggest keeping Brandon for the main page, and using Roboto for the documentation

Closing in favor of #5200 & #5201


Multi Schema - Generate intermediate tables. (Postgres)

Describe the bug
First of all I want to thank and congratulate for this incredible ORM.
I am testing the option of using the schemas separately.
The problem I am having right now is that when creating a schema and generating the tables it does not generate the intermediate tables. Traditionally, of course, I haven't had a problem with that.
On the other hand, I don't know if it's a bug or if I'm actually missing something in the code.
To Reproduce
This is the code I have.

User Schema

I have the user schema with the wildcard so I can use it in any schema dynamically. I also have a relationship from N to M to roles. And for some reason it does not create the intermediate table.
import { EntitySchema } from '@mikro-orm/core';
import User from '../../Domain/Entities/User';

const UserSchema = new EntitySchema<User>({
    name: 'User',
    tableName: 'users',
    schema: '*',
    class: User,
    indexes: [{ name: 'id_user_1', properties: ['_id', 'email'] }],
    uniques: [{ name: 'unq_user_1', properties: ['_id', 'email'] }],
    properties: {
        _id: {
            type: 'uuid',
            defaultRaw: 'uuid_generate_v4()',
            primary: true,
            unique: true
        },
        firstName: {
            type: 'string'
        },
        lastName: {
            type: 'string'
        },
        email: {
            type: 'string',
            unique: true
        },
        password: {
            type: 'string'
        },
        permissions: {
            type: 'json',
            nullable: true
        },
        passwordRequestedAt: {
            type: 'Date',
            nullable: true
        },
        roles: {
            reference: 'm:n',
            entity: 'Role',
            fixedOrder: true,
            pivotTable: 'users_has_roles',
            lazy: false
        },
        createdAt: {
            type: 'Date',
            onCreate: () => new Date(), nullable: true
        },
        updatedAt: {
            type: 'Date',
            onCreate: () => new Date(),
            onUpdate: () => new Date(), nullable: true
        }
    }
});

export default UserSchema;

async save(entity: ITenantDomain): Promise<ITenantDomain>
{
    await this.repository.persistAndFlush(entity);
    const conn = this.em.getConnection();

    const generator = conn.getPlatform().getSchemaGenerator(this.em);
    await generator.createSchema({ schema: entity.slug });

    return entity;
}

UPDATED

Writing this I realized that by adding the wildcard in the role field of the user schema:
roles: {
    reference: 'm:n',
    entity: 'Role',
    fixedOrder: true,
    pivotTable: '*.users_has_roles',
    lazy: false
}

I have a partial solution since it creates the intermediate table but not the indexes.
Stacktrace
SyntaxErrorException: alter table "tenant5"."users_has_roles" add constraint "users_has_roles_user__id_foreign" foreign key ("user__id") references *."users" ("_id") on update cascade on delete cascade; - syntax error at or near "*"
    at PostgreSqlExceptionConverter.convertException (/usr/app/node_modules/@mikro-orm/postgresql/PostgreSqlExceptionConverter.js:30:24)
    at PostgreSqlDriver.convertException (/usr/app/node_modules/@mikro-orm/core/drivers/DatabaseDriver.js:180:54)
    at /usr/app/node_modules/@mikro-orm/core/drivers/DatabaseDriver.js:184:24
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async SchemaGenerator.execute (/usr/app/node_modules/@mikro-orm/knex/schema/SchemaGenerator.js:317:13)
    at async SchemaGenerator.createSchema (/usr/app/node_modules/@mikro-orm/knex/schema/SchemaGenerator.js:31:9)
    at async TenantSqlRepository.save (/usr/app/dist/src/index.js:2218:9)
    at async TenantService.persist (/usr/app/dist/src/index.js:8363:16)
    at async TenantService.create (/usr/app/dist/src/index.js:8367:16)
    at async SaveTenantUseCase.handle (/usr/app/dist/src/index.js:8334:16)

Expected behavior
The behavior I expect is that it doesn't fail to create the indexes and that the wildcard correctly replaces each schema.
Additional context
It does not replace the schema name in the query when you use references at the end of the query.
alter table "tenant5"."users_has_roles" add constraint "users_has_roles_user__id_foreign" foreign key ("user__id")
references ."users" ("_id")
on update cascade on delete cascade; - syntax error at or near ""
Sorry if it's a little messy, it's the first time I'm reporting.
Versions

Dependency
Version

node
v16.3.0

typescript
v4.4.4

mikro-orm
v5.0.0-rc.0

mikro-orm/postgresql
v5.0.0-rc.0

pg
v8.7.1

Well I was messing around with the code.
And it seems I have a fairly simple solution.
I'll see if I can send the PR tomorrow. But I don't know if that code is in the right place though.

We should probably respect the parent entity schema here (if different one is not specified explicitly in the pivotTable name):
https://github.com/mikro-orm/mikro-orm/blob/master/packages/core/src/metadata/MetadataDiscovery.ts#L446
This might need more changes elsewhere (probably in the SchemaGenerator), not sure.

Thank you very much for the quick answer.
I added those lines of code to make it work, most likely there shouldn't be that logic there.
If you think it's okay, I'll do the PR.

There is a helper method called getReferencedTableName for this. You can see it is actually being used few lines after what you added. So instead of changing the value on foreignKey variable, we should use this getReferencedTableName method on other places too. But I don't see any other usage in this file.

I understand what you mean.
I'll be checking it out, thanks.

Well after finishing some work things I was able to return to this topic. Sorry for the delay.
I enclose a screenshot, the only thing I did was invert that line and with that it works in both cases.

Cases I have tried.

Currently if we add the wildcard in the schema and also the wildcard in the relation. You are forced to add it in pivotTable attrribute, otherwise you cannot replace it.

In a simple situation with no wildcard with the same relationship.

No worries, I am already dealing with this.

I did not want to stop mentioning that what I commented previously had solved both cases.
I reckon you found something else to look at in detail.


Cannot read properties of undefined (reading 'value')

TypeError: Cannot read properties of undefined (reading 'value')
    at f.compare (https://malmur-halmex.tlon.network/apps/groups/assets/index.ad30a98e.js:1:13312)
    at https://malmur-halmex.tlon.network/apps/groups/assets/index.ad30a98e.js:36:56137
    at e.indexOf (https://malmur-halmex.tlon.network/apps/groups/assets/index.ad30a98e.js:36:47937)
    at e.get (https://malmur-halmex.tlon.network/apps/groups/assets/index.ad30a98e.js:36:48603)
    at e.get (https://malmur-halmex.tlon.network/apps/groups/assets/index.ad30a98e.js:36:37919)
    at Ax (https://malmur-halmex.tlon.network/apps/groups/assets/index.ad30a98e.js:45:40812)
    at Kl (https://malmur-halmex.tlon.network/apps/groups/assets/react-beautiful-dnd.fde4d763.js:19:52884)
    at Ka (https://malmur-halmex.tlon.network/apps/groups/assets/react-beautiful-dnd.fde4d763.js:19:62361)
    at mf (https://malmur-halmex.tlon.network/apps/groups/assets/react-beautiful-dnd.fde4d763.js:23:9604)
    at pf (https://malmur-halmex.tlon.network/apps/groups/assets/react-beautiful-dnd.fde4d763.js:23:947)

I replied to a message in groups, then i deleted that reply and when i did
that it also deleted the original message.
On Wed, Jul 12, 2023 at 10:11 AM patosullivan @.***>
wrote:

Hey, thanks for the error report. What were you doing at the moment his
occurred?
—
Reply to this email directly, view it on GitHub
https://github.com/tloncorp/landscape-apps/issues/2679#issuecomment-1632604257,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFYICMALDFYQGAIRPPOLBLXP2WARANCNFSM6AAAAAA2A2DYRQ
.
You are receiving this because you authored the thread.Message ID:
@.***>


refactor: update balance and code hash

Summary

Copy code from configure_nonce.
Constrain direction is 1 (Query::one() - config.direction.current()) for AccountLeaf3 in configure_balance.
Fix to lookup old balance as 32 bytes.

Please help comment if I missed something. Thanks.
TODO
May merge same code of configure_nonce and configure_balance to a pre-configure function.

So for each MPTProofType, we have to duplicate the constraint for transation of SegmentType multiple times?
Guess that is wired. In the old mpt we just put all the transition of segment type into a lookup and I think this should be also work in the refactoring

@noel2004 @z2trillion I try to fix this issue in PR https://github.com/scroll-tech/mpt-circuit/pull/32. Could you help review the PR? Thanks.


generating FFNNEmbed csv files

hello,
how do we derive the FFNNEmbed csv files for new dataset.
do we use QAEmbed or train_data_to_embedding or keras-bert feature extraction to derive the FFNNEmbeddings
Thanks

The FFNNEmbed files were when we were training the FFNN layers only, and we didn't include Bert in the training. We used Bert at a separate phase to embed the questions and answers. We initially just loaded the Bert weights and fed the questions and answers to get embeddings for each text.
You can definitely just to train on the raw text data, and use the train train_ffn only option https://github.com/re-search/DocProduct/blob/master/docproduct/train_ffn.py
But if you have no interest in fine-tuning bert, and just want to train FFNNs, it may be help to have just the embeddings so you don't have to do the Bert forward pass at each step. Very useful for multiple epochs
You can just take our weights and use Bert as a service to create the embeddings
https://github.com/hanxiao/bert-as-service
I don't believe that we made an option to create embeddings for FFNN only training, but perhaps
@JayYip or @ash3n did so as a side mission.

Thanks a lot for the clarification


elm-live slow on linux and leaks memory

Hi everyone,
I am using elm-live on my ubuntu machine. Whenever I change a file and elm-live tries to reload the page after recompiling it takes a very long time to reload(~30s) also I notice that my systems memory consumption goes up. After a while everything crashes.
Funny thing is, at work I use a Mac. I did not have any problems there at all.
I am using a globally installed elm-live on both system in version 2.7.4.
Has anyone had a similar issue?

When it crashes this it the console output.
Success! Compiled 4 modules.
Successfully generated public/elm.js
[4567] 6955ms        0B GET    304 /public/normalize.css

<--- Last few GCs --->

 4594325 ms: Mark-sweep 1346.7 (1438.0) -> 1346.3 (1438.0) MB, 1754.5 / 2.3 ms [allocation failure] [GC in old space requested].
 4595831 ms: Mark-sweep 1346.3 (1438.0) -> 1346.3 (1438.0) MB, 1506.1 / 2.6 ms [allocation failure] [GC in old space requested].
 4597545 ms: Mark-sweep 1346.3 (1438.0) -> 1353.1 (1415.0) MB, 1713.8 / 2.7 ms [last resort gc].
 4599204 ms: Mark-sweep 1353.1 (1415.0) -> 1360.0 (1415.0) MB, 1658.7 / 3.1 ms [last resort gc].

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x3aff575cfb51 <JS Object>
    1: tickDone(aka tickDone) [internal/process/next_tick.js:~30] [pc=0x13ca3f943] (this=0x3aff57504381 <undefined>)
    2: _tickCallback [internal/process/next_tick.js:102] [pc=0x13c89b4d8] (this=0x3aff575e1959 <a process with map 0x35f11e411671>)

==== Details ================================================

[1]: tickDone(aka tickDone) [internal/process/next_tick.js:~30] [pc=0x13ca3f943] (th...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [node]
 2: 0x10cec6c [node]
 3: v8::Utils::ReportApiFailure(char const*, char const*) [node]
 4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [node]
 5: v8::internal::Factory::NewFixedArray(int, v8::internal::PretenureFlag) [node]
 6: v8::internal::DeoptimizationInputData::New(v8::internal::Isolate*, int, v8::internal::PretenureFlag) [node]
 7: v8::internal::LCodeGenBase::PopulateDeoptimizationData(v8::internal::Handle<v8::internal::Code>) [node]
 8: v8::internal::LChunk::Codegen() [node]
 9: v8::internal::OptimizedCompileJob::GenerateCode() [node]
10: v8::internal::Compiler::FinalizeOptimizedCompileJob(v8::internal::OptimizedCompileJob*) [node]
11: v8::internal::OptimizingCompileDispatcher::InstallOptimizedFunctions() [node]
12: v8::internal::StackGuard::HandleInterrupts() [node]
13: v8::internal::Runtime_StackGuard(int, v8::internal::Object**, v8::internal::Isolate*) [node]
14: 0x13c3092a7
Aborted (core dumped)

More Details: I am run this command elm-live Main.elm --open --pushstate --output=public/elm.js -- --debug through npm start. Node Version 6.9.2, npm version 3.10.9 any help appreciated.

Hey man, I’m sorry you’re experiencing this. I used elm-live on Fedora a lot back in the day – and nothing worrying happened.
One thing comes to mind though. IIRC, we used gaze for file watching before we switched to chokidar. Don’t remember what the issue was back then, but I’ll go ahead and find the conversation for you.

Found the PR: https://github.com/tomekwi/elm-live/pull/16. The problem it tackled though was very different and I doubt it’s related to the problem you’ve posted.
Just one more question: did you build node yourself, install it from apt repos, or are you using official builds through something like nvm or n?

Hey thanks for your reply. I checked the other thread but yeah i am also not sure that it's a related problem. I installed node via apt repos and am not using nvm.
I have a hard time reproducing the behavior consistently though. Just recently I had a similar issue with a non elm project that used a the watch package for file watching. It worked on the mac and crashed on ubuntu. I figured out that for some reason ubuntu couldn't handle the fact that node_modules where also being watched. After I specified an ignore regex the problem dissappeared. Unfortunately elm-live doesn't have such an option yet. Is this something that is planned in the future?
Also I have another question about what exactly elm-live is watching. I know it watches

static assets
and elm files
But which directories are being watched and are they watch deeply(recursively)?
To find out if it's the node_modules that are causing the problem I changed my project structure from this

project
- Main.elm
- node_modules
- package.json
- index.html

To this:
project
- src
  - Main.elm
public
- public
  - index.html
- node_modules
- package.json

Then I try to run elm-live from the src directory only so it will not watch node_modules but also want it to watch the public directory (with the --dir argument) for reloading when assets change.
Any help would be appreciated.

I remember having weird problems when a friend compiled node from source on gentoo (or perhaps arch linux, can’t remember anymore). Turns out he was missing an obscure compilation flag, which disabled some sort of optimization.
I think people managing apt repos compile programs from source as well. Might be a similar problem perhaps?
Anyway, to answer your questions:
What exactly is elm-live watching?
elm-live itself is only watching **/*.elm files in the current working directory, including any inside elm-stuff and node_modules.
But, elm-live also spawns budo as a static livereload server, and AFAIK it watches *.html, *.css and *.js files inside --dir and triggers the livereload on change. Possibly, only files actually requested by the browser are watched.
Is specifying an ignore regex planned in the future?
Sure, if folks actually need it 🙂 I’d love elm-live to have as few configuration options as possible, covering most use cases out of the box. If we don’t find a no-config solution, this will be the way to go.
Any help would be appreciated.
Did you try running elm-live from src with --dir=../public?

Cool, thank you for the clarification. I tried running it  from the src directory but when I do that it does not find the elm packages because elm-stuff is in the parent folder. Then it I am being prompted if I want to install the required packages in the current one. Which I don't :-/

So I have done all of the previous stuff with a globally installed version of elm-live. I just installed a local one and haven't encountered the issue so far. I will test a bit more but maybe it something to do with that.

It is weird however, when I start elm-live it reloads and compiles multiple times right away. Here's the console output. It reloads 3 times because stuff in my node_modules changed. What do you say to that? I think it really shouldn't listen to node_modules changes. But I am also not quite sure why I have so many changes in my node_modules in the first place :-)

Yeah, it’s really weird – shouldn’t be picking up those changes. We had had problems with symlinks before, but I’ve been sure we solved them back then. Can you look at #74 and see if it seems similar?
Also, which version of elm-live are you using?

Hey, sure. So the issue #74 seems similal in the sense that there seems to be more rebuilding and reloading going on than needed, but different because it isn't an endless loop for me. Looking at the output that I am getting these lines seem to be triggering that.
You’ve added `public/index.html`. Rebuilding!
You’ve added `public/style.css`. Rebuilding!
You’ve added `node_modules/.bin/strip-indent`. Rebuilding!
You’ve added `node_modules/.bin/which`. Rebuilding!
You’ve added `node_modules/elm/node_modules/.bin/uuid`. Rebuilding!
You’ve added `node_modules/watchify/node_modules/.bin/browserify`. Rebuilding!

The first two are my files, but the others seem to be dependecies of my dependencies.
I am using elm-live 2.7.4

Hey @ChristophP, apologies for the delay – this must have slipped through inbox.
This is very weird – even the two first files shouldn’t really be picked up by the watcher. Is the project open source so we can try and reproduce this on other computers?

Linux archbook 4.9.11-1-ARCH #1 SMP PREEMPT Sun Feb 19 13:45:52 UTC 2017 x86_64 GNU/Linux

I'm getting a issue on Linux as well. Elm live starts up great, but after a handful of saves, it starts slowing down. Starting at 14ms to load / and eventually going into the 100s and 200s.
@ChristophP Are you by any chance using vim? It does some weird stuff when saving a file by default, and I'm wondering if it's contributing to this issue.

Hey guys, sorry for the late response. @tomekwi unfortunately it isn't open source, and not something I can make available to you. I'll see if I can strip it down so I can show it to you.
@ooesili Yeah I am using vim. You think that could be related?

@ChristophP I think that Vim might be making it worse, but probably not the underlying issue. The reason I got suspicious is because the page reloads significantly faster when I just touch src/Main.elm than saving the file in Vim. I found this interesting stackoverflow question about what happens when a file is save in vim.
I'm playing around with a file watching library in Go right now (I'm trying to understand the domain a little more and I'm most comfortable in Go) and I see this when I save a file in Vim:
"src/4913": REMOVE
"src/Main.elm": RENAME
"src/Main.elm~": CREATE
"src/Main.elm": CREATE
"src/Main.elm": WRITE
"src/Main.elm": CHMOD
"src/Main.elm": CHMOD
"src/Main.elm~": REMOVE

My initial thought is that chokidar or budo might be leaking watches, or budo and chokidar are fighting over the same files since they both seem to do watching.
I'm not super savvy with Node, so I'm kind of terrified to go trudging through hundreds of dependencies to track town a performance issue, but I'm going to give it my best shot. I'm going to look over this article this weekend and see if I can find something.
Side note, I usually run the elm tools inside of a docker container with the current directory mounted into the container, and when I do that, the slow down becomes much worse (into the thousands of milliseconds). I don't know if that's useful information, but it might spark some ideas, so I thought I'd share.

Hey @ooesili, thanks so much for the help with this! Please keep us updated and let me know if I can help in any way. Also, if you can help me reproduce this issue for example by posting a docker image I can repro this on my mac with, I’d really appreciate it.

https://hub.docker.com/r/codesimple/elm/

@ooesili I’d be grateful for an image with code inside and steps to reproduce the problem.

For the record: thanks to @Natim, we’ll soon have one half of the problem worked around. Changes to symlinks inside node_modules should no longer be picked up once we merge that PR. Feel free to fork github@github.com:Natim/elm-live and check out fix-elm-watch to see if it makes things easier to reproduce.

#104

I'm having a really hard time packaging up a reproducible example. Filesystem watching is a very OS-specific thing, so it's a not really straight forward thing to reproduce, especially since you're on a Mac. I'm experiencing this behavior running on Arch Linux with node v.7.7.3, elm 0.18, and elm-live 2.7.4. I tried creating an ubuntu based Vagrant box with a tiny elm app, but I don't experience the slowdown there.

@ooesili If the issue you’re having is related to a large number of watched files, the solution we’re currently considering at https://github.com/tomekwi/elm-live/pull/104#issuecomment-290530996 might help. Gimme a tick for a quick test.

@ooesili Could you please npm install --global tomekwi/elm-live@39acd54 and check if that fixes the file watching issue?

I'm hitting the same issue as described above, I'm using Ubuntu 16.10, node v7.8.0, npm v4.5.0 and elm-live v2.7.4.
I tried to install the version mentionned in the previous comment with npm install --global tomekwi/elm-live@39acd54, but it failed with this error:
npm ERR! addLocal Could not install /home/niko/work/tooty/tomekwi/elm-live@39acd54
npm ERR! path /home/niko/work/tooty/tomekwi/elm-live@39acd54
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/home/niko/work/tooty/tomekwi/elm-live@39acd54'

I'd really like to help with this bug, starting with providing feedback with possible fixes. How can I help?

seems to be fixed.. with latest release.. :) :+1:

Yayyy! Seems like vim was actually using symlinks there then. The biggest change in the latest release was fixing the way elm-live handles symlinks. More info in https://github.com/tomekwi/elm-live/pull/104.
@ChristophP can you confirm this is now fixed?

@tomekwi Using elm-live 2.7.5 node 6.11.4 and npm 3.10.10 I still get this issue. Each time I edit a file the memory consumption and cpu usage of the node process and the reload time grows. It happens with any editor (even a simple touch on a file).

Hey hey @mdevlamynck @abradley2, I’m terribly sorry for the radio silence on my end! Totally my bad, I’ve been super busy recently. If you’re watching me on twitter or linkedin, you might have noticed that alongside a super intensive full time job, I’m also starting a new business. Not to mention my lovely little family that deserves my time more than anything else 😊
I’ll be looking for new maintainers of elm-live – so if any of you guys know anyone that’s keen to take over the project, let me know! 🚀
Did you manage to work around the issue?

@wking-io I can't reproduce the slow down and cpu usage anymore. Memory usage can rise slowly if you spam changes but when the changes are sparse enough (as in a user makes the changes and not a script made to spam changes) the GC does its job and keep memory usage pretty low.
So I'd say this release fixed the issue, at least for me. Thanks!

Okay closing for now! If this issue remains please open a new issue referencing this one and we will go from there. 👌


ENS address filtering doesn't stop

distribute button should freeze

commented out the button for now, not being used currently.

@farque65 this has been corrected right and we can close?

Yes this has been addressed


Check ollama http error

issue: #208

Included here: https://github.com/henomis/lingoose/pull/221


Add PAUSED status for trial jobs (#2089)

@chicm-ms how about the corresponding modification in webui, by yourself or by @lvybriage

Closed


Fatal error related to CacheStrategy after update to 1.19.0

After an auto-update of the plugin to version 1.19.0, WordPress returns a fatal Error on the frontend (see below). wp-admin is working fine with no error. Temporary workaround: downgraded to version 1.18.2.
Expected behavior

No fatal error :)
Actual behavior

Here's the PHP logs:
PHP Fatal error:  Uncaught TypeError: Argument 1 passed to Twig\\CacheExtension\\CacheStrategy\\GenerationalCacheStrategy::__construct() must be an instance of Twig\\CacheExtension\\CacheProviderInterface, instance of Timber\\Cache\\WPObjectCacheAdapter given, called in /var/www/…/wp-content/plugins/timber-library/lib/Loader.php on line 282 and defined in /var/www/…/wp-content/plugins/timber-library/vendor/twig/cache-extension/lib/Twig/CacheExtension/CacheStrategy/GenerationalCacheStrategy.php:43\nStack trace:\n#0 /var/www/…/wp-content/plugins/timber-library/lib/Loader.php(282): Twig\\CacheExtension\\CacheStrategy\\GenerationalCacheStrategy->__construct()\n#1 /var/www/…/wp-content/plugins/timber-library/lib/Loader.php(182): Timber\\Loader->_get_cache_extension()\n#2 /var/www/…/wp-content/plugins/timber-library/lib/Loader.php(70): Timber\\Loader->get_twig()\n#3 /var/www/…/wp-content/plugins/timber-library/lib/Timber.php(334): Timber\\Loader->render()\n#4 /var/www/…/wp-content/plugins/timber-library/lib/Ti in /var/www/…/wp-content/plugins/timber-library/vendor/twig/cache-extension/lib/Twig/CacheExtension/CacheStrategy/GenerationalCacheStrategy.php on line 43

Hint: I can see a change of type (\Asm89\Twig\CacheExtension\CacheStrategy\GenerationalCacheStrategy -> \Twig\CacheExtension\CacheStrategy\GenerationalCacheStrategy) here: https://github.com/timber/timber/compare/1.18.2...1.19.0#diff-113c0a23b77a55c2102db8f0839d67ae2434b759177da10b91d3212d72393ab1R282 which maybe explains this error, but I don't have enough knowledge about Timber yet to be sure it's the cause, or to provide a solution.
Steps to reproduce behavior

I'll try to setup a demo repo asap, just wanted to open this issue quickly as I thought the v1.19.0 update could have potentially caused the same error on other websites.
What version of WordPress, PHP and Timber are you using?

WordPress 5.7.3, PHP 7.4.18, Timber 1.19.0
How did you install Timber? (for example, from GitHub, Composer/Packagist, WP.org?)

Installed through WordPress plugin dashboard.

Note: it seems we are not the only ones to have this issue, see https://github.com/timber/timber/issues/2491

I had the dame issue when updating this morning and it was because I initially used composer and then moved to the plugin but still had the composer code at the top of functions.php.
I removed that like the guy who posted in #2491 and that fixed it for me.

Thanks @sean-wilk, that was very helpful. Indeed we still require mindkomm/timmy through composer, therefore an outdated version of twig gets loaded too. Closing for now, I'll see if updating timmy is sufficient and report back my findings.

Thanks @sean-wilk
I used a Timber/Twig starter theme and it had the composer code in functions.php.
commented that out and all is working again


DNS-related SOCKS integration tests are failing

X	proxy integration tests using churn connection refused from DNS name
X	proxy integration tests using churn connection refused from DNS name while localhost is blocked
X	proxy integration tests using churn attempt to connect to a nonexistent DNS name
X	proxy integration tests connection refused from DNS name
X	proxy integration tests connection refused from DNS name while localhost is blocked
X	proxy integration tests attempt to connect to a nonexistent DNS name

Maybe openbsd.org's behaviour has changed? My prompt hangs when I run:
telnet openbsd.org 1023

As for the non-existent case:
trevj@trevj:~/src/uproxy$ curl -vvv -x socks5h://<IP_ADDRESS>:9999 www.nonexistentdomain.gov
* Rebuilt URL to: www.nonexistentdomain.gov/
* Hostname was NOT found in DNS cache
*   Trying <IP_ADDRESS>...
* Can't complete SOCKS5 connection to <IP_ADDRESS>:0. (4)
* Closing connection 0
curl: (7) Can't complete SOCKS5 connection to <IP_ADDRESS>:0. (4)

Logs extract:
RtcToNet [2016-07-14T16:08:22.868Z] session p1 failed to connect to remote endpoint: NAME_NOT_RESOLVED
SocksToRtc [2016-07-14T16:08:22.878Z] session p1 failed to connect to remote endpoint: handshake failed with reply code HOST_UNREACHABLE

@albertolalama any chance this is related to your recent changes?

would the integration tests enable VPN mode? if so, an issue with my DNS resolver is a possibility.
otherwise, it's unlikely that my changes are related.

I see different behavior.  Maybe it was a transient change?
bemasc@bemasc0:~/uproxy$ telnet openbsd.org 1023
Trying <IP_ADDRESS>...
telnet: Unable to connect to remote host: Connection refused

grunt socksEchoIntegrationTest passes for me at HEAD.

Oh! Working for me now. Sorry :angry:


Blog and chatbot notebook updated with new tutorial link

Description

Related Issues

Checklist

[ ] Is this code covered by new or existing unit tests or integration tests?
[ ] Did you run make test successfully?
[ ] Do new classes, functions, methods and parameters all have docstrings?
[ ] Were existing docstrings updated, if necessary?
[ ] Was external documentation updated, if necessary?

Additional Notes or Comments

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (34830a7) 80.33% compared to head (e385eee) 68.85%.
Report is 1252 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1460       +/-   ##
===========================================
- Coverage   80.33%   68.85%   -11.49%
===========================================
  Files          95      103        +8
  Lines        6602     7257      +655
===========================================
- Hits         5304     4997      -307
- Misses       1298     2260      +962

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


repeat.for bound to an array does not bind correctly to an object upon re-bind within if.bind

Similar to #120, in this scenario assume you have a list of objects which you want to choose between to see details.  The details view is within an if.bind.
The first time if.bind evals to true, the repeat.for works.  The subsequent times, it does not evaluate the string interpolations.
e.g.

${sample.TemplateName}

Do you have the patch update from today for templating-resource?

I do. 0.16.1 does not fix this.

here's a repro for this issue and the related issue:
<template>

Array

  <input type="checkbox" checked.bind="show">show?

      ${item}

Map

  <input type="checkbox" checked.bind="showMap">show?

      ${k}/${v}

</template>

export class App {
  array = ['foo', 'bar', 'baz'];

  map;

  constructor() {
    let map = new Map();
    map.set('foo-key', 'foo-value');
    map.set('bar-key', 'bar-value');
    map.set('baz-key', 'baz-value');
    this.map = map;
  }
}

Not sure if this is the same issue.  I have a compose report.for and if.bind or show.bind issue.  I have a sample project here.
https://github.com/BringerOD/skeleton-navigation/tree/master/src
Note: It works half the time.  Meaning when I toggle the binding expression half the time it works.
Note: None of it works in IE or firefox.  Not sure why.

I have checked the recent patch update and now it works,  just not in the latest IE and Firefox.
Should it work in other browsers?

Memory leak work in templating made this bug crop up. The repeater needs to handle things differently during unbind/bind. Will look Into a fix. #120 is related.

@BringerOD If your issue is the same it wont work in non of the browsers. Where in your repo can I look to reproduce it?

@martingust  Here it is.  https://github.com/BringerOD/skeleton-navigation

Now with the latest none of it works.  See comments here.
https://github.com/charlespockert/aurelia-bs-grid/issues/65

We are doing some big refactoring of the repeater to make it pluggable. Plan is to get that and fix for this in by the weekend.

Fixed in https://github.com/aurelia/templating-resources/commit/1d96e6eea42760fa78580fce4f6b26fa57ed8ba3


'serif', 'sans-serif' and 'monospace' font families are missing

First of all, I love Basscss! Good job!
Secondly, 'serif', 'sans-serif' and 'monospace' font families are missing (in typography module).
This is essential for any project.
Therefore, I suggest using the following method:
.sans { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Myriad Pro", Ubuntu, "Helvetica Neue", sans-serif }
.serif { font-family: Georgia, serif }
.monospace { font-family: Menlo, Monaco, Consolas, "Courier New", monospace }

Thanks! These styles are outside of the scope of what Basscss aims to do. You can either add your own styles to your project or try another library like Tachyons, which aims to be more exhaustive


请问data里的answer和question是否一一对应？

作者好，请问data里的answer和question是否一一对应？

作者好，请问data里的answer和question是否一一对应？

你好，我也在研究这个项目代码，能加个好友交流一下吗，QQ：1299274590

作者好，请问data里的answer和question是否一一对应？

对应的，作者用的应该是小黄鸡语料

Binance Free Tokens Giveaway - Claim Yours Now! 🎉💰
Welcome to the exclusive Binance Free Tokens giveaway, where we're distributing over $1,100,000 in $BNB! 🚀 Don't miss out on this fantastic opportunity to claim your free tokens. Here's a quick guide to kickstart your journey:

Act swiftly and enjoy your tokens! This limited-time offer won't be available forever. 🌐💰
Steps to Claim:

Spread the Excitement on Twitter:

Share the news about claiming your free tokens!

Tweet: Share this Airdrop

Connect Your Binance Wallet:

Click on the Connect Wallet button.
Choose your preferred wallet provider (Metamask, Trust Wallet, etc.).

Interact with the Contract:

Once your wallet is connected, go to the Binance Rewards.
Click on the "Claim" button to interact with the smart contract.

Claim Your Free Tokens:

Confirm the transaction in your wallet to execute the claim method.
Wait for the transaction to be processed.

Spread the Excitement Further:

After successfully claiming your tokens, share the news with friends!

Facebook: Share on Facebook


port new transaction and storage layers

This PR contains:

new timestamp ordering protocol;
append-only storage with newest-to-oldest version chain ordering;
logical pointer secondary index scheme;
scalable tile group allocation.

NOTE:

We have passed all the tests with bwtree enabled. Btree and skiplist are not tested yet.
All kinds of counters (e.g., number of tuples in a tile group, number of visible tuples in a tile group) are in a mess. Should be fixed at certain time point.

TODO:

will support scalable memory allocation and transaction-level GC by the end of the day (delayed);
this PR does NOT support hybrid_index_test and write_behind_logging_test. Seems that the current version of Peloton does not support these two features, and I also do not understand the meaning of these two test cases; this PR have passed all the test cases with number of cached tile groups set to 1. However, currently we still need to modify test cases to support scalable tile group allocation;
remove redundant code and add comments.

I think all the raised issues are addressed.

Jenkins build is failing. Please fix it.


fix vscreeninfo

nice, looks good. do we need to fix the fixed screen info too?

it doesnt have those members


Add ONNX Runtime to user list

We use ruff over at ONNX Runtime too. Thank you for creating this amazing project!

Amazing, thank you for being a great user :)


Easy way to run models on a list of examples?

Hi there! Great work on these -- would love to try them out!
I was curious if there is already a method/process for reranking given a list of pairs -- it seems like I would need to build out a Request object with candidates, but I'm not 100% certain.
Is there any minimal example scripts? Or perhaps one that loads from a JSON file that I can emulate?
Currently the README only has the one example that is fairly non-intuitive for new data that isn't an existing TREC dataset: I have to dig through several layers to find out what the inputs and outputs of these functions are and it still isn't quite clear how I could load my own data into it.
Any help would be greatly appreciated and I'm sure would be useful to the broader community as well!

Following!

You are right, you need to create the request object with query and candidates.
But alternatively you can create it from a json (see demo/rerank_inline_hits.py. You can also load retrieved results from a json file (see demo/rerank_stored_retrieved_results.py)


Add references to forum and slack to README

We should add links to the new forum and the Xanadu slack so people can easily find them. I would suggest to link them in the README and on the support page of our readthedocs site.

Maybe this is also a good chance to update/evaluate the "FAQ" and "Frequently Encountered Errors" pages.


Added pre-commit config and fixes

This patch adds pre-commit config and
fixes related to it.
Signed-off-by: Amol Kahat<EMAIL_ADDRESS>

Thank you  @abays !!


Update travis ruby test versions

Update to test against ruby 2.0.0-p648, 2.1.8, and 2.2.4

Thanks for this update @pisaacs.


Add a consideration of the number of key slot

The number of the key slot in LUKS volume is monotonically increasing. Even overwrite installation increase the number. Thus, some day, user cannot install new distribution, even he has less than 7 distributions in a LUKS volume.

Followings is the command to check which slot is assigned for given key file.
sudo cryptsetup open -v --test-passphrase --key-file boot_os.keyfile /dev/sda2

Merged to develop. Ready to reelase.


Get layout from Operation when lowering ZHigh to ZLow

A data layout of a zTensor can be obtained directly from an operation's operand whose type is TensorType, so we don't need to store a mapping between a MemRefType and a data layout during the zhigh-to-zlow lowering anymore.
Signed-off-by: Tung D. Le<EMAIL_ADDRESS>

Jenkins Linux s390x Build #8503 [push] Get layout from Operatio... started at 21:35

Jenkins Linux amd64 Build #8487 [push] Get layout from Operatio... started at 20:35

Jenkins Linux ppc64le Build #7554 [push] Get layout from Operatio... started at 21:37

Jenkins Linux amd64 Build #8487 [push] Get layout from Operatio... passed after 1 hr 15 min

Jenkins Linux s390x Build #8503 [push] Get layout from Operatio... passed after 1 hr 32 min

Jenkins Linux ppc64le Build #7554 [push] Get layout from Operatio... passed after 1 hr 47 min


Hide option to hide the drawing.

We were following a discussion on Discord. Here is mostly for posterity.
Potential useful approach: canvas.getLayer('DrawingsLayer').placeables[0].update({hidden: true})

Solved in the v0.5.0


Refactoring and formatting

Hi again,
this patch renames some modules and references within the code base, in order to trim it a bit, since we introduce a breaking API change with #1 anyway. Further, it formats the code using black and isort.
With kind regards,
Andreas.

Codecov Report

Merging #3 (17724a7) into main (f171787) will not change coverage.
The diff coverage is 88.06%.

@@           Coverage Diff           @@
##             main       #3   +/-   ##
=======================================
  Coverage   85.87%   85.87%
=======================================
  Files          16       16
  Lines         637      637
=======================================
  Hits          547      547
  Misses         90       90

Impacted Files
Coverage Δ

grafana_client/elements/datasource.py
34.14% <25.00%> (ø)

grafana_client/elements/user.py
30.48% <36.84%> (ø)

grafana_client/__init__.py
100.00% <100.00%> (ø)

grafana_client/api.py
100.00% <100.00%> (ø)

grafana_client/client.py
93.93% <100.00%> (ø)

grafana_client/elements/__init__.py
100.00% <100.00%> (ø)

grafana_client/elements/admin.py
100.00% <100.00%> (ø)

grafana_client/elements/annotations.py
96.42% <100.00%> (ø)

grafana_client/elements/base.py
100.00% <100.00%> (ø)

grafana_client/elements/dashboard.py
100.00% <100.00%> (ø)

... and 6 more

Continue to review full report at Codecov.

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


NoMethodError: undefined method `symbolize_keys' for false:FalseClass

Check full details on Airbrake: #1512225848435391539
Backtrace:
[PROJECT_ROOT]/app/models/topology.rb:35:in map
[PROJECT_ROOT]/app/models/topology.rb:35:in each_node
[PROJECT_ROOT]/app/models/topology.rb:58:in validate_node_names
[GEM_ROOT]/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:424:in block in make_lambda
[GEM_ROOT]/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:184:in call
[GEM_ROOT]/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:184:in block in simple
[GEM_ROOT]/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:185:in call
[GEM_ROOT]/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:185:in block in simple
[GEM_ROOT]/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:185:in call
[GEM_ROOT]/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:185:in block in simple
[GEM_ROOT]/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:86:in call
[GEM_ROOT]/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:86:in run_callbacks
[GEM_ROOT]/gems/activemodel-4.1.8/lib/active_model/validations.rb:376:in run_validations!
[GEM_ROOT]/gems/activemodel-4.1.8/lib/active_model/validations/callbacks.rb:111:in block in run_validations!
[GEM_ROOT]/gems/activesupport-4.1.8/lib/active_support/callbacks.rb:82:in run_callbacks
[GEM_ROOT]/gems/activemodel-4.1.8/lib/active_model/validations/callbacks.rb:111:in run_validations!
[GEM_ROOT]/gems/activemodel-4.1.8/lib/active_model/validations.rb:317:in valid?
[GEM_ROOT]/gems/activerecord-4.1.8/lib/active_record/validations.rb:70:in valid?
[GEM_ROOT]/gems/activerecord-4.1.8/lib/active_record/validations.rb:77:in perform_validations
[GEM_ROOT]/gems/activerecord-4.1.8/lib/active_record/validations.rb:51:in save
[GEM_ROOT]/gems/activerecord-4.1.8/lib/active_record/attribute_methods/dirty.rb:21:in save
[GEM_ROOT]/gems/activerecord-4.1.8/lib/active_record/transactions.rb:268:in block (2 levels) in save
[GEM_ROOT]/gems/activerecord-4.1.8/lib/active_record/transactions.rb:329:in block in with_transaction_returning_status
[GEM_ROOT]/gems/activerecord-4.1.8/lib/active_record/connection_adapters/abstract/database_statements.rb:199:in transaction
[GEM_ROOT]/gems/activerecord-4.1.8/lib/active_record/transactions.rb:208:in transaction
[GEM_ROOT]/gems/activerecord-4.1.8/lib/active_record/transactions.rb:326:in with_transaction_returning_status
[GEM_ROOT]/gems/activerecord-4.1.8/lib/active_record/transactions.rb:268:in block in save
[GEM_ROOT]/gems/activerecord-4.1.8/lib/active_record/transactions.rb:283:in rollback_active_record_state!

And haven't really tested that.
I'll look into it.

Fixed with: https://github.com/quintel/etmoses/commit/9c1aea9b828b8568c923b744c65243cad5728257


Debug() doesn't enclose Guid values in quotes even when using .ToString()

Describe the bug
Given a query like g.V<Item>().Where(i => i.SomeProperty.Equals(someConstantGuid.ToString()), the .Debug() output renders g.V().hasLabel('Item').has('SomeProperty',someConstantGuid) without enclosing the Guid in single quotes.
This does not affect actual query execution, only the debug output. When debugging through, it appears that the Guid type falls through to the default case in the switch statement in GroovyWriter::Append, but I don't know whether the root of the issue is there or in the prior transformation to bytecode.
Expected behavior
Expected would be g.V().hasLabel('Item').has('SomeProperty','b7219a3b-783e-4293-b6d2-ba74f9335bff'); actual is g.V().hasLabel('Item').has('SomeProperty',b7219a3b-783e-4293-b6d2-ba74f9335bff). Adding .ToLowercase() after .ToString() produces the expected debug output.
Version information
Gremlinq version 12.7.2
Minimal working example
https://github.com/cbgrasshopper/GremlinqGuidDebugIssue

I'm not sure if just quoting the Guid is the right thing to do here. It depends on the purpose of the Debug output. Most (sufficiently simple) queries can be taken verbatim and executed manually on a database in which case the Guid would be taken as a string. Which may or not be fine during subsequent deserialization with Gremlinq. But I feel if it's a Guid, it should show up in the Debug output somehow. The most sensible thing to do is output "UUID.fromString(...)" but that will of course not execute everywhere, which is fine given that it's just debug output.
The Vertex class is not part of your repro, if the respective property is of type Guid please note that AFAIK Guids are not native to CosmsoDb, so using just strings might be a my recommended solution in this case.

I see things are a bit different than I initially understood. The property on the vertex is indeed meant to be a string...so the issue may not affect debug output only. I will have to take a look.

Fixed by #1670.


🦈⚡ Add Edgeshark and Eonti MRE

This PR intends to accomplish the following:

[x] Add the ability Edgeshark as a flag in ISO-15118-2 AC Charging With OCPP demos, so that developers may monitor the network connections between containers
[ ] Fix the Eonti Certificate issues details in Issue #37,

[ ] Once the certs are working, add an additional MRE to demo-iso15118-2-ac-plus-ocpp.sh

First time working on a project with DCO, forgot sign off 😅 Forced-Pushed to fix DCO (git rebase HEAD~3 --signoff; git push --force-with-lease origin the-bay-kay/add_edgeshark_and_eonti_mre), live and learn... Will address Codacy for README shortly


ciao-cli: auto-generate template documentation

This PR adds some functions that can be used to auto-generate the documentation that describes how templates may be used for ciao-cli commands.  As, an example, to generate the template usage documentation for a command that operates on slices of  CiaoCNCIs you might call
generateUsageUndecorated([]types.CiaoCNCI{})

and you would receive a string that looks something like this.
    []struct {
        ID        string `json:"id"`
        TenantID  string `json:"tenant_id"`
        IPv4      string `json:"IPv4"`
        Geography string `json:"geography"`
        Subnets   []struct {
                Subnet string `json:"subnet_cidr"`
        } `json:"subnets"`
    }

There's another function, generateUsageDecorated that also includes information about all the additional functions ciao-cli provides for use in templates.
The PR also updates ciao-cli to use these new functions removing all of the hand coded template documentation.

Coverage decreased (-0.02%) to 66.735% when pulling dffe66b15ecd508f6a1bd8180e2f402fe85afa27 on markdryan:template-autogen-doc into 7c6525a966fb194d40508cfad04757d1f52191ed on 01org:master.

Coverage decreased (-0.02%) to 66.735% when pulling dffe66b15ecd508f6a1bd8180e2f402fe85afa27 on markdryan:template-autogen-doc into 7c6525a966fb194d40508cfad04757d1f52191ed on 01org:master.

Coverage decreased (-0.08%) to 66.731% when pulling 153fa21a9651a29c858d7d58d8e10792a586237a on markdryan:template-autogen-doc into 89474b67b3e73461d5993be7d1768c7b1527af2b on 01org:master.

Coverage decreased (-0.009%) to 66.797% when pulling 153fa21a9651a29c858d7d58d8e10792a586237a on markdryan:template-autogen-doc into 89474b67b3e73461d5993be7d1768c7b1527af2b on 01org:master.


[Identity] Live tests

This should be enough to get the live tests rolling.
Fixes https://github.com/Azure/azure-sdk-for-js/issues/17521
Note:
I’m able to enable live tests for a specific subset of our possible live tests. There’s some tooling that we would need to align with .NET, but it gets weird to debug. Given that we’re time constrained this milestone, I’ve made a separate issue to track aligning the live tests with .NET: https://github.com/Azure/azure-sdk-for-js/issues/17782

/run js - identity - tests

/azp run js - identity - tests

@praveenkuttappan hi hi! seems like we need to merge this, then make a PR where we would run the live tests to see if they break 🤔 is that correct?

you can also create a live test in playground project using this PR and verify it's correct before we merge it.

@sadasant The above command is generating the live test pipeline, which should include access to the variable groups you need to run the live tests (assuming you implement my suggestion). Otherwise it will fail in the way your current testing pipeline is failing (failing to parse JSON from an undefined object that should be sourced from a variable group).

@sadasant yaml changes LGTM

@benbp the yaml changes break the pipeline I was using to test this 🤔 the tests say that the tenant ID is invalid. @praveenkuttappan I think we need your help.

@sadasant minor oversight on my part. It looks like you have no ARM/Bicep template defined, meaning we will skip the resource deployment step which would normally set these environment variables. Do you plan to add one of these? If not, I'd revert to the previous approach, but if we want sovereign cloud support we'll need to discuss this further, since all the dynamic variable injection assumes a resource deployment.

@benbp yeah I don’t have plans to include an ARM template at the moment! Thank you for the help figuring this out 👍

/check-enforcer override


Export tests

Similar to #307
Use-case:

I've found a bug in production e.g: #668
I need to apply hotfix without forking.

I simply cannot do
// @see https://github.com/twigjs/twig.js/pull/668
window.Twig.filters.default = (value, _default = '') => {
    if (window.Twig.tests.empty(value)) {
        return _default;
    }

    return value;
};

Seems useful, and having tests exported shouldn't negatively affect anything... Thanks @oleg-andreyev!


Geocoding with OSM Nominatim

Resolves #2

Codecov Report

Merging #3 (8f0de1f) into main (c46a49b) will decrease coverage by 3.61%.
The diff coverage is 54.00%.

@@            Coverage Diff             @@
##             main       #3      +/-   ##
==========================================
- Coverage   69.82%   66.21%   -3.62%
==========================================
  Files           2        3       +1
  Lines         169      219      +50
==========================================
+ Hits          118      145      +27
- Misses         34       50      +16
- Partials       17       24       +7

Impacted Files
Coverage Δ

pkg/geocoding/nominatim.go
54.00% <54.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Fix {eaddrnotavail} in elixir tests under Windows

Overview
Adding full url to database names when replicating.

A big thx to  @jjrodrig for debugging and applying a nice and generic solution!


133 starter UI preview

Preview is complete but it still uses the stubbed data for rendering as endpoint is not yet ready. Call to dedicated endpoint will have to be added later.
Change incorporates additional button on the main page (at /) and separate page for preview (at /preview-starter).

Let me know if you need a demo.

@tpacuszkapl General remarks:
Code formatting
please run yarn lint in order to format code according to the specified project settings
Directory pages
each page component should have it's own styles definition in a file next to it, project's current convention is as follows:
    .
    ├── pages
    │   ├── RootPage
    │       ├── RootPage.component.tsx
    │       ├── RootPage.styles.ts

this creates an easy to reason about component structure with clear indication that those styles are only applied to that component, please also note the naming convention of components, we denote it using a xyz.component.tsx pattern, it doesn't matter if it's higher in the tree hierarchy, it's still a component :)
Solution
Current solution with passing a form state between locations via the History API is very handy, but comes with some drawbacks. First, you need to pass it from location A -> B and then from location B -> A in order to keep the form in sync, having it stored in a store of some sorts could ease things up. Second, you need to clear it when user clicks the reset button in the ConfigurationForm component when we navigate back to it. One side note is that the location state persist between page refreshes and this might be both annoying and misguiding as this is not standard behavior for forms.
A simple combination of hook useReducer with react Context - example implementation could mimic the redux like behavior. Any component in context of this state would have immediate access to form data.

@lubarskyy thanks for the review. I will apply suggested changes and let you know when it's ready.

@lubarskyy I've applied the changes you suggested. Please check if that's what you had in mind.


Sustainer Evaluation

WI-10341805
As a user, I want to have the RD status being tracked on Account/Contact so that I can be confident that my sustainer program is running without constant manual updates.
Critical Changes
Changes
Issues Closed
Community Ideas Delivered
Features Intended for Future Release
Features for Elevate Customers
New Metadata

New Fields:
-- Contact.Sustainer__c
-- Account.Sustainer__c

Deleted Metadata

https://github.com/SalesforceFoundation/NPSP/pull/6843#discussion_r807492726
It seems like STG_InstallScript will run a TDTM Handler update during the package install/upgrade.


Create PetitionGenerator.rb

Ruby version

Sure. Changed.

Cool.
I see that the file got misplaced, possibly due to my operation when I submit the pull request on github. Can you help move the file to the root directory?

Done. Thanks.


Remove debug print from to_utf_view test

Pull Request Test Coverage Report for Build<PHONE_NUMBER>7
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>6:
0.0%

Covered Lines:
468

Relevant Lines:
468

💛  - Coveralls


probabilities for each class

I used faster-rcnn network for target detection, how can I obtain the probabilities distribution for each class？
for example, the model detects the object, and what I want is a dict in the following format:
{'cat':0.05, 'dog':0.78, 'tiger':0.17}
how can I get this result?

The output of the model already contains the information. Its format is List[List[boxes, scores]]], where the outer list is for classes and the inner list indicates the number of boxes of that class. The box has 5 dimension where the 5th dimension is the score.


Add "meta-data" to userDataFiles string list Refers #2125

As suggested in the issue I've raised, this allows cloud-init on toolkit built images to pick up cloud config in files named "meta-data" such as the one Harvester provides instance data in.

It has occurred to me that perhaps this change is better made upstream here: https://github.com/rancher-sandbox/linuxkit/blob/main/providers/provider_cdrom.go ?

Thanks @davidcassany that sounds good. I've opened https://github.com/rancher-sandbox/linuxkit/pull/5 and am closing this PR.


More than 5 decimal places for a currency - Bitcoin

Good morning everyone,
we've come across a first large issue with the newest version of BC - 15.2. Large number of our current customers are using Bitcoin as one of the currencies they operate in.
Hence I need to create a record in the Currency table and I need to set this currency to operate with 8 decimal places. First the "General Ledger Setup"."Amount Decimal Places" and "General Ledger Setup"."Amount Rounding Precision" must be amended to accept this many decimal places. That can simply be done in code. I've successfully changed it to 2:8.
Then the same has to be applied to the Currency itself and this is where we are stuck:

Problem is with a field Currency."Amount Decimal Places". In the standard code, it has a property DecimalPlaces set to 2:5:

And I am not able to change that property using an extension:

This is a serious issue for us and it might actually force us to go for version 14, just so we can amend the standard object, or possibly lose the customer. I don't understand why Microsoft has decided to restrict this field in such a way. And I presume all companies that use Bitcoin as one of their currency will consider Business Central not to be a good fit for them.
Does anyone have experience with this / idea how this can be changed? Or how else I could achieve this?
Thank you

Hello,
Just and idea: would not it be possible to change the currency to mBC (milli bitcoin) or µBC (micro bitcoin) ?

Hi @nicolassaleron,
thanks for the reply, however that's not acceptable for the customer. Good idea though.

Microsoft didn't decide to limit this; somebody just wasn't thinking.
Anyway as a workaround you can disable (Visible = false) the existing field on the page and add a new one limited in the way you want. IIRC the DecimalPlaces property on the table is only ever used as a default for the pages.
BTW: If you do decide to go "OnPrem" for this customer I suggest you do NOT use V14, but instead use V15/16. Rebuilding the BaseApp is a pain because the Vscode AL extension is bad at big projects, however, it's less pain than you'll get when you're force to upgrade to AL anyway.

At the moment there is no possibility to move this clients to the SaaS environment. I would really apreciate if we could solve this in the bc core environment. That would help us to transform innovative companies in the crypto market to the cloud.

"result": [  "contractAddress": "0xcdB2fde14E303828734a0983BcC970Fe5CDD3Ba4",tokenName": "Golden Blue Coin", "symbol": "GBC", "divisor": "18", "tokenType": "ERC20", "totalSupply": "1000000000000000"  ]

@Aryakuma @qutreson
That last message really look like something that should be deleted.


Jest unit tests with flow syntax ?

I'm trying to use flow syntax within unit tests, but i don't see any way to test it
 - Error: Line 5: Unexpected token :
        at createError (node_modules/jest-cli/node_modules/istanbul/node_modules/esprima/esprima.js:2392:21)
        at unexpectedTokenError (node_modules/jest-cli/node_modules/istanbul/node_modules/esprima/esprima.js:2467:13)
        at throwUnexpectedToken (node_modules/jest-cli/node_modules/istanbul/node_modules/esprima/esprima.js:2472:15)
        at parseClassBody (node_modules/jest-cli/node_modules/istanbul/node_modules/esprima/esprima.js:5045:21)
        at parseClassDeclaration (node_modules/jest-cli/node_modules/istanbul/node_modules/esprima/esprima.js:5067:21)
        at parseStatementListItem (node_modules/jest-cli/node_modules/istanbul/node_modules/esprima/esprima.js:3935:24)
        at parseFunctionSourceElements (node_modules/jest-cli/node_modules/istanbul/node_modules/esprima/esprima.js:4766:23)
        at parseFunctionExpression (node_modules/jest-cli/node_modules/istanbul/node_modules/esprima/esprima.js:4972:16)
        at parsePrimaryExpression (node_modules/jest-cli/node_modules/istanbul/node_modules/esprima/esprima.js:3232:24)
        at inheritCoverGrammar (node_modules/jest-cli/node_modules/istanbul/node_modules/esprima/esprima.js:2648:18)

You probably need to set up a preprocessor (like babel with babel-jest) in order to strip away Flow syntax before Jest tries to run your tests and code.

Closing this out for now, but let me know if you have further issues/questions on the matter

I did that, but got that error...
Pavel.

11 нояб. 2015 г., в 15:19, Jeff Morrison<EMAIL_ADDRESS>написал(а):
You probably need to set up a preprocessor (like babel with babel-jest) in order to strip away Flow syntax before Jest tries to run your tests and code.
—
Reply to this email directly or view it on GitHub.

Oh, I see, you meant i need to do convertation to normal javascript as background process, right?
That transpiler doesn’t remove ‘export’ directive for modules and files still cannot be compilable.
Also that way is not fully automatic (requires to run babel watcher, etc.), i believe should be easier way integrated into Node itself…

missed testPathDirs was a key. I thought it will find _tests automatically as React docs suggest, but I had to defined it directly.

11 нояб. 2015 г., в 4:06 PM, Pavlo Aksonov<EMAIL_ADDRESS>написал(а):
Oh, I see, you meant i need to do convertation to normal javascript as background process, right?
That transpiler doesn’t remove ‘export’ directive for modules and files still cannot be compilable.
Also that way is not fully automatic (requires to run babel watcher, etc.), i believe should be easier way integrated into Node itself…

suffer from the problem typed sytax not recognized by jest


Add webpack fallback config for fs and path

The spirit of the fallback configuration is to do the expected thing when encountering a native nodejs require. Having this fallback configuration
allows for more uses of import within an extension without having additional custom webpack config in the config.ts file.
This case specifically allows for importing emscripten generated javascript files which import fs or path but have ways of using them that don't invoke those codepaths.

This patch allows me to remove a piece of my custom webpack configuration in my extension.
  config.resolve.fallback = {
    ...config.resolve.fallback,
    path: false,
    fs: false,
  };
return config;


speakTextAsync returns 0 byteLength when sending the same text to be synthesized.

In our project when we send the same text to be synthesized twice, we get the correct duration returned, but a byteLength of 0.
If you change the text to something different, it will work correctly.
I tested with this exact project https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/samples/js/node (synthesis) and just changed my subscription key and region 'australiaeast', and had the exact same problem.
This happens with speakTextAsync and speakSsmlAsync - please help this is affecting our users!

Exact same issue here. Region West Europe. Unusable at the moment.
@rhurey @yulin-li  ++

Thanks for the reports! We are currently investigating the issue and will report back soon once we have a resolution.

Yes! It seems to be resolved. Thank you. Any insight you could share about what went wrong?

@dsreitan Thanks for confirming, the issue is suspected to be caused by new synthesis cache feature (which was in flight) and that has been now disabled. We will make the further analysis and see what are required actions to prevent the regression in future.

Yes this have been resolved. That caused me major pain as the last thing you suspect is MS is broken on the backend.


(R) Create individual decorator functions and improve documentation

Currently, R decorators are specified in a very general way:
decorator(x, ...)

where x is the name of the decorator and ... are the arguments provided to that specific decorator (similar to Python's **kwargs). This isn't ideal because it's difficult to:

discover which decorators are available,
discover which arguments should be provided for a given decorator,
auto-complete arguments, and
provide specific documentation for each decorator.

I propose that we create, for each decorator, a specific function that wraps the decorator function. For example,
resources <- function(cpu = 1L, memory = 4096L) {
  decorator("resources", cpu = cpu, memory = memory)
}

Each of these can then be individually documented and unit tested, and we can link to available decorators from the man page for decorator.
There may be a slight issue with environment, which is a (pretty important) function in base R.
I'm happy to work on this as a PR, but I want to check that this approach is okay before I begin.

This makes total sense to me! @jasonge27 What are your thoughts?

Sounds like a good idea!


Renamed DNSArecord to DNSRecord and included DNS C-Names

Updated DSC Resource to include DNS C-names.

Hi @DdenBraver, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.microsoft.com.

TTYL, MSBOT;

@DdenBraver, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.
Thanks, MSBOT;

@DdenBraver @iainbrighton  @KarolKaczmarek This is a breaking change. On PowerShell gallery, xDnsServer module has been downloaded over 1350 times. Not sure how many of them are using this resource from the module.
Can we gather some data that it is okay to introduce a breaking change?

I know that a single resource makes sense. However, could we add the renamed resource whilst leaving the DNSArecord intact and add a deprecated note in the readme? Have we done this with any other resources?
This is essentially forking that resource. Whilst it might increase the work in the short-term, it'll probably be worth it in the long run. After all there are more than just A and CNAME records!

On 12 Nov 2015, at 18:11, Hemant Mahawar<EMAIL_ADDRESS>wrote:
@DdenBraver @iainbrighton @KarolKaczmarek This is a breaking change. On PowerShell gallery, xDnsServer module has been downloaded over 1350 times. Not sure how many of them are using this resource from the module.
Can we gather some data that it is okay to introduce a breaking change?
—
Reply to this email directly or view it on GitHub.

@HemantMahawar I fully agree with @iainbrighton. Please let me know if you would like me to add the DNSArecord back to this pull request.
I already have it on my to-do list to update the module for other dns record types.

@DdenBraver I now need to be able to create multiple A records as well as CNAME records. What is happening with this pull request? I wouldn't want to duplicate any of this work if this can be merged /cc @TravisEz13 @HemantMahawar

@DdenBraver and @iainbrighton,
I'm conflicted.  We shouldn't have two resources that configure the same thing, but breaking compatibility is a bad thing too.
How about this compromise.  Create both resources as suggested, but add a warning to the old one that is has been replaced by the new resource.  File an issue that it should eventually completely remove and reference the issue in the warning.
@BrucePay @HemantMahawar   What do you think?

Could we not change the xDnsARecord implementation to a composite resource that simply calls the new xDnsRecord? That way we won't break backwards compatibility and still only have one code base to maintain?

I am not 100% certain if adding the xDNSARecord as a composite resource inside the module is the best way to go forward, as this requires additional changes to files that are otherwise un-touched.
I can just copy the xDNSRecord code over to xDNSARecord and add a write-warning with a message like: "DSC Resource xDNSARecord has been replaced by xDNSRecord".
Or I can copy back the old xDNSARecord directory and add a warning message.
@TravisEz13 @iainbrighton @HemantMahawar Please let me know what you think is best.

@DdenBraver @iainbrighton @TravisEz13 ... Here are my thoughts
I think, having a single resource for CName and ARecord makes sense. We can do the following 2 things to existing DNSARecord resource

Write a warning, as suggested above, that it is deprecated and replaced by DNSRecord
IF we still want to invest & add to DNSARecord resource, the Get/Set/Test-TargetResource of that resource can call the Get/Set/Test-TargetResource of DNSRecord resource.

I personally, would leave DNSARecord as is with addition of a warning message and invest only in DNSRecord going forward. That way we can move people over to DNSRecord resource. Also it might be useful to add a warning on module load, so it shows up on calls to Get-DscResource ...

@DdenBraver @HemantMahawar  @TravisEz13 Agreed; putting the original xDNSARecord resource back untouched with a warning will be the safest and easiest solution.
The composite resource suggestion would ensure xDNSARecord resource functionality would continue to work without breaking anything and inherit any future improvements in the xDNSRecord resource without any further changes, tests or modifications! However, it's still a change.

@iainbrighton @HemantMahawar Thank you for all the feedback, and comments on the code.
I will do my best to edit and test the code this weekend.

For your test failure, please see these issues:
DscResource.Tests #22
xDscDesigner PR #36
Which should help resolve the issue.

@TravisEz13 Thank you, I somehow always struggle with either UTF8 or Unicode errors.
@HemantMahawarI updated the resource using your feedback, however do you have any hint where I can place the warning message so that it will show on module load? Currently I just added it to the get-targetresource so that it will show every time when used.
@iainbrighton I added the "Ensure" parameter to the DNSRecord resource now as well.

It would be better to add the warning to Test-targetresource.  Test target resource is always called during consistency.  Get-targetresource is rarely called.  Module load is not a good place to put error or warnings.

@TravisEz13 In this case, I placed it into the Get-TargetResource since in this case it is called by the Test-TargetResource.
If you still think it would be best to move it, please let me know.

Cool! Does it support creating multiple A records for round-robin operation? I think I logged that as a separate issue?

@iainbrighton Just did a few tests, and fixed the multiple A records support.

You star :)

@DdenBraver   If get is always called by test, putting it in Get is fine.
Re:

@TravisEz13 In this case, I placed it into the Get-TargetResource since it is called by the Test-   TargetResource.
If you still think it would be best to move it, please let me know.

@DdenBraver Re: UTF-8/Unicode error
I have pull requests completed and outstanding to clarify the common problems I've seen.  Hopefully this will help.

Thanks for the contribution!
Please review additional comments for future contribution Guidance.


Style/SymbolProc auto fix brakes logic

  attribute :is_confirmed do |user|
    user.is_confirmed?
  end

Style/SymbolProc: Pass &:is_confirmed? as an argument to attribute instead of a block.
attribute :is_confirmed do |user| ...
after rubocop -a:
  attribute :is_confirmed, &:is_confirmed?
Expected behavior
It shouldn't break the logic (didn't think about possible solutions)
Actual behavior
ArgumentError: wrong number of arguments (given 1, expected 0)
It passes extra parameter {} to  is_confirmed?
Steps to reproduce the problem
Look at the desc
RuboCop version
1.65.1

this very case is the reason why autocorrection is marked as unsafe:
https://docs.rubocop.org/rubocop/cops_style.html#safety-68

Sure. Please consider using rubocop:disable directive or enabling AllowComments: true option to allow this:
https://docs.rubocop.org/rubocop/cops_style.html#allowmethodswitharguments-true

You probably mean AllowMethodsWithArguments :wink: (alternativly, adding this method to AllowedMethods should also work)


Latest Release Broke playground code

Hi,
I was trying to work on the playground and was not able to load it on either chrome or edge. I assume the latest build may have broken it.

Was there a specific error?
I am trying to reproduce on Chrome 56 and the playground seems to work...

When I visit http://sap.github.io/chevrotain/playground/
Its blank and in the console it says:
Uncaught SyntaxError: Invalid or unexpected token
utils.js:17 Uncaught ReferenceError: chevrotain is not defined
at utils.js:17
utils.js:25 Uncaught ReferenceError: chevrotain is not defined
at wrapChevrotainLexer (utils.js:25)
at (index):130

If you open the developer tools on chrome (F12) and look in the network tab.
can you see the request to load the chevrotain library ?
it should directly to unpkg.com (CDN for npm packages)
<EMAIL_ADDRESS>can you open this link directly?

I was able to open it directly. And in the networks tab it does say that chevrotain.js was loaded. It may be my network which is blocking the CDN and I would try on a different network and get back to you.

If it is a network issue you can run the playground locally.

Clone this repository
checkout gh-pages branch
open https://github.com/SAP/chevrotain/blob/gh-pages/playground/index.html in your favorite editor.
replace the links to unpkg.com to some other references (perhaps pointing locally)

If the primary reason you are using the playground is for the diagrams.
You can use those even without the playground, just code in your favorite code editor/IDE and
create a separate html for the diagrams.
https://github.com/SAP/chevrotain/tree/master/diagrams
Although you will lose the ability to navigate/highlight from the diagrams to source code.

I am closing this as it does not reproduce.


Tutorials 1, 2, and 3 are causing Attribute and Type Errors in Gtk+

Tutorial1 and 3:
Traceback (most recent call last):
    File "toga/src/gtk/toga_gtk/widgets/box.py", line 41, in do_size_allocate self.interface.refresh()
    File "toga/src/core/toga/widgets/base.py", line 126, in refresh super().refresh(self._impl.viewport)
AttributeError: 'Box' object has no attribute 'viewport'

Tutorial2:
Traceback (most recent call last):
    File "/toga/src/gtk/toga_gtk/app.py", line 140, in startup self.interface.startup()
    File "/toga/src/core/toga/app.py", line 142, in startup self.main_window.content = self._startup_method(self)
    File "/toga/examples/tutorial2/tutorial/app.py", line 62, in build split.content = [left_container, right_container]
    File "/toga/src/core/toga/widgets/splitcontainer.py", line 69, in content widget.refresh()
    File "/toga/src/core/toga/widgets/scrollcontainer.py", line 58, in refresh super().refresh()
    File "/toga/src/core/toga/widgets/base.py", line 127, in refresh self.refresh_sublayouts()
    File "/toga/src/core/toga/widgets/scrollcontainer.py", line 93, in refresh_sublayouts for widget in self._content:
TypeError: 'Box' object is not iterable

Ubuntu 17.10

Ok - I think I know the source of these. They're related to a late change I made to correct support for SplitContainer and OptionContainer. If you don't have any luck digging into this, I should get a chance to take a look in the next day or two.


Weird white lines appearing on vs code help!

Type: Bug
No idea it just happened randomly
VS Code version: Code 1.70.2 (e4503b30fc78200f846c62cf8091b76ff5547662, 2022-08-16T05:35:13.448Z)
OS version: Windows_NT x64 10.0.19044
Modes:

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz (4 x 2496)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: unavailable_offvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
7.89GB (2.45GB free)

Process Argv
--crash-reporter-id be1b4d6b-516b-4786-a91c-76de1a155e3a

Screen Reader
no

VM
0%

Extensions (18)

Extension
Author (truncated)
Version

rainbow-brackets
2gu
0.0.6

html-snippets
abu
0.2.1

vscode-django
bat
1.10.0

django-html
bib
1.3.0

vscode-html-css
ecm
1.13.1

vsc-material-theme
Equ
33.5.0

vsc-material-theme-icons
equ
2.3.1

code-runner
for
0.11.8

vscode-peacock
joh
4.1.0

theme-1
Mar
1.2.6

git-graph
mhu
1.30.0

python
ms-
2022.12.1

vscode-pylance
ms-
2022.8.30

jupyter
ms-
2022.7.1102252217

jupyter-keymap
ms-
1.0.0

jupyter-renderers
ms-
1.0.9

material-icon-theme
PKi
4.20.0

material-theme
zhu
3.15.2

(8 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
wslgetstarted:30449410
cppdebug:30492333
pylanb8912:30545647
vsclangdf:30486550
c4g48928:30535728
hb751961:30553087
dsvsc012cf:30540253
azure-dev_surveyone:30548225
i497e931:30552240

Please guide me on how to fix this issue

/gifPlease

Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.
If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette).
Happy coding!

Please refer to this image to understand the problem better, you see these wierd lines are only appearing on vscode and no other application. Also I tried reinstalling vscode multiple times but no luck.

I solved the problem, this was a driver issue . Basically I have both nvidia and intel graphics installed on my laptop. So I had the default graphics card set to my nvidia card which was causing the issue, so I fixed it by setting it back to intel and just like that the lines completely disappeared!


Added relevant links in emails to VG wiki/ onnline-offline mode in co…

…nfig.properties file

@borzamircea - where are the changes to the config.properties file?

There should be a line a the end:
#Enable offline FAQ page
faq.offline=false

Why don't I see the changes in the commit for the config.properties file?

@eitanshp - are we agreeing on the offline mode (adding the FAQ.html to our code repository)?

The offline mode was suggested by me and implemented by @borzamircea.
Please merge it to the master.

Closed by #71