feat: add 19 new GPR and consolidate curations between model releases

Main improvements in this PR:
Add 19 new GPR accoording to SGD and uniprot.

new GPRs are in "databasenewGPR.tsv"
the proof of the new GPR is in "databasenewGPR_proof.tsv"
the detailed new genes are in "databaseNewGPRGenes.tsv"
the result of single gene deletion analysis is 0.8989.

This PR is used to demonstrate consolidation of multiple curations in one script, that can convert a previous model release to the next version.
I hereby confirm that I have:

[ ] Tested my code with all requirements for running the model
[ ] Selected develop as a target branch (top left drop-down menu)
[ ] If needed, asked first in the Gitter chat room about this PR

I have rebased this onto the most recent devel branch and refactored the datafiles to be contained in their own folder.

FYI, I'm "hijacking" this PR to demonstrate how to consolidate curation from a particular model version towards the next release.

@edkerk When I run "/code/modelCuration/v8_6_0.m", I find that there is a extra parameter "grRatioMuts" in line 44 of the "essentialGenes.m", which may cause some issues.
[genes, fluxes, originalGenes, details, grRatioMuts]=findGeneDeletions(model,'sgd','fba');
[genes, fluxes, originalGenes, details]=findGeneDeletions(model,testType,analysisType,refModel,oeFactor)

@edkerk When I run "/code/modelCuration/v8_6_0.m", I find that there is a extra parameter "grRatioMuts" in line 44 of the "essentialGenes.m", which may cause some issues. [genes, fluxes, originalGenes, details, grRatioMuts]=findGeneDeletions(model,'sgd','fba'); [genes, fluxes, originalGenes, details]=findGeneDeletions(model,testType,analysisType,refModel,oeFactor) Apart from that, this pipeline works well.

Great, this behaviour of essentialGenes is expected as long as https://github.com/SysBioChalmers/RAVEN/pull/421 is not merged.


SyntaxError: missing = in const declaration

In latest firefox in file util.js.

Do you perhaps have a screen shot of this missing =?

This error on 57 line in util.js
for (const name in TransitionEndEvent) {

for (const name in TransitionEndEvent) is a valid es6 for-in loop : http://exploringjs.com/es6/ch_variables.html#_for-of-loop-and-for-in-loop
I'm not sure what you mean by "In latest firefox in file util.js."
Your website should import the compiled and minified version: https://github.com/twbs/bootstrap/blob/v4-dev/dist/js/bootstrap.min.js and not the individual js source files.
This is the file you should "see in Firefox" (I imagine you mean in the Firefox dev tools?)

@vanduynslagerp thanks for getting to this...I was just now looking over the files he specified and couldn't see what he was talking about.

@vanduynslagerp Yes, valid, but not for firefox :(
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const
Scroll down to header Firefox-specific notes.

@vanduynslagerp Yes, valid, but not for firefox :(
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const
Scroll down to header Firefox-specific notes.

Again:

Your website should import the transpiled version: https://github.com/twbs/bootstrap/blob/v4-dev/dist/js/bootstrap.min.js and not the individual js source files.

Bootstrap v4 is writing in es6 (that is not supported natively by every browser) and it is compiled in es5 (compatible with every browser).
You have to use the transpiled version: https://github.com/twbs/bootstrap/blob/v4-dev/dist/js/bootstrap.min.js.
Or if you want to include the plugins individualy, you should include the transpiled versions that you can find here: https://github.com/twbs/bootstrap/tree/v4-dev/js/dist
Firefox will never see this file https://github.com/twbs/bootstrap/blob/v4-dev/js/src/util.js
Firefox should see either https://github.com/twbs/bootstrap/blob/v4-dev/dist/js/bootstrap.min.js or https://github.com/twbs/bootstrap/blob/v4-dev/js/dist/util.js if you decide to include the modules individually.
You can notice that those 2 files are transpiled in es5 and do not contains the keyword const.
You can find more details here: https://v4-alpha.getbootstrap.com/getting-started/javascript/

@vanduynslagerp Ok, ty 😄


How to use the flow-php-server

Hi,
Is there a small example available how to use the flow-php-server from scratch?
Thanks
Tom

@jesusp thanks for the advice! it helped me to make flow.js work out on Yii.

@batusa You're welcome it's always a great pleasure to contribute with comments!. I feel very well because that worked well for you!...

my frontend seems to run well and pictures are uploaded, but in fact flow listeners are not called and nothing is happened in backend.
I am sorry to ask the same question again, Is there a full example available how to use the flow-php-server from scratch?
much appreciated.

help::
i used flow.js php server to upload a file and its working
the only problem i faced is the file is uploaded with out extension for example jpg
an image file was uploaded as
filenamejpg and the file is not opening.

Without any third-party php framework in my php server side, when using this library I also encountered the problem that Class 'Config' not found. I fixed it as following, may it would help.
require_once (DIR.'/../lib/flow-php-server/src/Flow/Autoloader.php');
Flow\Autoloader::register();
$config = new Flow\Config(array(
'tempDir' => DIR.'./../upload/chunks_temp_folder'
));
$file = new \Flow\File($config);

@jesusp having testChunks to false worked for me
Thanks

@viruskst  Do you already have an solution for your extension problem? I'm having similar issues here as well.

@aklassen do you have testChunks as false?

is it possible can i save at the time of submit form


UX: Subtle changes and hiding of things

styling lgtm, here it is in dark mode:

See one other comment


Small Teaks

Codecov Report

Merging #368 (834e0a0) into main (55fcbe8) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #368   +/-   ##
=======================================
  Coverage   28.86%   28.86%
=======================================
  Files          14       14
  Lines        1618     1618
=======================================
  Hits          467      467
  Misses       1113     1113
  Partials       38       38

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 55fcbe8...834e0a0. Read the comment docs.


Update PT-hostile-to-insecure-code.md

HI @Ambg05 can you double check this file, there were a couple merge conflicts that I had to resolve

I was in & out of this file a few times to cut & paste content across some new files. I've checked through it and everything is accounted for.

great


Improve add region aggregates

WARNING: Merging this PR will trigger a big ETL run, ensure it's merged during the night.
We have been carrying issues with geo.add_region_aggregates for a while. Given that we never allocate time to define a function or class to properly handle region aggregates, this PR will, at least:

Ensure that the function we currently have uses good default values.
When silently loading datasets, we get a warning.

Main changes in this PR:

Added warnings to all functions that silently load datasets. They should not be used in any new steps, and the warning will help us identify misuses in old steps.
Changed owid.datautils.dataframes.groupby_agg, so that by default it behaves like pandas groupby().agg(). Also, it now receives an argument min_num_values, which is the minimum number of non-nan values that the group needs to have in order to generate a non-nan aggregate.
Changed etl.data_helpers.geo.add_region_aggregates so that, by default, it doesn't impose any conditions on the countries that must be informed, or the number of allowed nans. It also now has the option to impose a minimum number of non-nan values.

I searched for all current uses of those functions and ensured that they keep the old default values of the function (although, in some cases, the default values may not make a difference).
TODO: Check that datadiff shows no difference in any of the affected datasets.

I have a vague memory that sometimes indexes where changing order arbitrarily, but the data was not affected (specifically in the war dataset). Do you remember or understand why this happens?

I checked that and you're right, only index ordering has changed.


Back button fails to work in the details view

I've seen this off and on forever, but until now, I didn't have a reliable way to reproduce it. Here's how to do that:

Click on a video thumbnail.
Press the play button to play the video.
Pause the video
Press the back button

The back button will disappear, but it will not actually go back to the home page.

As a note, the procedure outlined above did not turn out to be a reliable way to reproduce the issue. A better way was to scroll down until a thumbnail got purged from memory, scroll up so it reloaded, and the click on the thumbnail.


[Feature Request] Task design and implementation

Required prerequisites

[X] I have searched the Issue Tracker and Discussions that this hasn't already been reported. (+1 or comment there if it has.)
[ ] Consider asking first in a Discussion.

Motivation
add Task to better manage multi agent work flow
Solution
Task  can have  attribute like description, expected_output, structured output schema, tools specified to use
Task can be one type of Message
Need more research for better design on this
Alternatives
No response
Additional context
No response

The Task may need to be designed with planer Agent or Master/control Agent while is not supported currently.

learn from https://docs.python.org/3/library/asyncio-task.html

Task can be evolved, decomposed, generated.


admin: make all models read-only?

A lot of models are registered with a long list of read-only fields.
Given the nature of pinax-stripe, we should maybe make all models read-only in the admin?!
If not, then saving a model in the admin should probably trigger an update to be sent to Stripe.
This might be a good next step, i.e. using Django's admin as a frontend to Stripe - but until then it seems that models should be made read-only in the admin.

deleting models however turned out to be useful when cleaning data.

I agree.  Let's make them readonly.  I didn't realize that was possible.


If the miner does not store user files, the challenge for the service file should be canceled during the challenge, so as to reduce the load on the TEE node

A certain miner did not store user files, but due to the excessive load on the TEE node, the service file challenge failed, which in turn caused the idle file challenge to also fail, resulting in the following log output.

@httpservlet Even if the miner's service file is empty, a signature from TEE is required to prove it on the chain.


Unlatch not possible , especially when using Homekit (Siri)

Hey there, I'm quite happy with the integration, running a lot smoother then die official one.
But I'm struggling with opening the door when I'm outside:
With the HomeKit Integration from Nuki, the door gets unlatched when I tell Siri to open the door. In both cases, when the door is locked and also when the door is already unlocked. This behavior comes from configuring bar / knob in the Nuki App.
Within the Nuki App, I can select between unlock and open. This would be the best option in HomeKit too, but not possible because of HomeKit restrictions.
With your integration, it always just unlocks the door, it never unlatches.
So I think there is no best way for all use cases but while searching I found this thread on the Nuki Dev board: https://developer.nuki.io/t/homekit-unlock-command-opens-door/533/15
Within this thread someone recommends adopting the way of the homebridge plugin which allows using several customizable options. Perhaps it is possible to implement this function into your integration?

I think an implementation just like the one in homebridge-nuki plugin would be perfect; see: >https://github.com/lukasroegner/homebridge-nuki 31

unlatchFromLockedToUnlocked : If set to true, the door is unlatched when you switch from “locked” to “unlocked” in the Home app. If set to false, the door is just unlocked when you switch from “locked” to “unlocked” in the Home app. (only for SmartLock)

unlatchFromUnlockedToUnlocked : If set to true, the door is unlatched when you switch from “unlocked” to “unlocked” [1] in the Home app (this move is valid and works in the Home app, just hold down the switch, swipe it to “locked” and then “unlocked” without releasing your finger - do not release the finger until you reached the “unlocked” position again). If set to false, nothing is done when you switch from “unlocked” to “unlocked” in the Home app. [2] (only for SmartLock)

unlatchLock : If set to true, a second lock switch is exposed for unlatching the smart lock. (only for SmartLock)

[1] Also works with Siri, you can ask to unlock devices that are already unlocked.

[2] If you use this mode of operation, the separate unlatchLock is not really necessary. Use unlatchFromLockedToUnlocked: true , unlatchFromUnlockedToUnlocked: true and unlatchLock: false to mimic the HomeKit behavior of the lock.

best regards,
Lars

Lars, the component supports unlatching, did you read the readme of the component?

Unfortunately lovelace doesn't support unlatching natively, even if the lock supports it, it only shows the unlock button.
You can configure a custom button for unlatching like this:
type: button
entity: lock.nuki_front_door_lock
tap_action:
  action: call-service
  service: lock.open
  service_data: {}
  target:
    entity_id: lock.nuki_front_door_lock
name: Nuki

of course i have read the readme. And I also saw that the lock.open command can be used to open the trap.
But my problem is that in Homekit I have only unlock and lock.
That's why my suggestion / wish was to configure the possibility of what should happen when lock.unlock is triggered.
In the linked Homebridge plugin it is even further expanded that you can configure what should happen when the lock has the status locked or unlocked.
Current operation of this integration
lock.lock - lock the door
lock.unlock - unlock the door
lock.open - open the latch
Operation of Nuki App with Homekit
Var 1 - door knob configured
lock - lock the door
unlock - unlock the door and open the latch
Var2. Lever configured
lock - lock the door
unlock - unlock the door
Wish / Homebridge mode of operation
lock - locking the door
configurable mode of operation:
a) unlock - unlock the door
b) unlock - unlock door and open latch
c) unlock if status is locked - open latch
d) locked if status is locked - unlock door
I hope I could explain better what I mean.
Greetings
Lars

Ok, now I understand what you mean.
This would require the implementation of the Bridge API "Simple Lock Actions", described [here]:(https://developer.nuki.io/page/nuki-bridge-http-api-1-13/4#heading--simple-lock-actions):

The endpoints would be /lock and /unlock, instead of /lockAction, that is currently used, IIRC.
It could also be implemented in a different way: continue to use /lockAction but with a configurable option that would override the default unlock action with unlatch. This is what I did with my original Nuki Card automation, the user could choose which action the bridge had to send for lock and unlock.
This is a Feature Request, could be implemented through a configurable option, but it's up to @kvj to decide.


Standarized docker image creation.

Can you remove the trailing . from your commit message, @lukaszraczylo? Commit messages should follow the alphagov git styleguide.


Swift Refinements

Closing this as I've been experimenting w/ an all-swift rewrite that is a much better direction. Hoping we can open source this soon!
Originally posted by @rnystrom in https://github.com/Instagram/IGListKit/pull/1081#issuecomment-502477079

Given the fact that @rnystrom is no longer working at Instagram, I'm guessing the all-swift rewrite he was experimenting with is not going to be finished any time soon, right?
Would you accept a PR that adds Swift refinements to some of the APIs?
For example; the dequeueReusableCellOfClass:forSectionController:atIndex: could be refined in Swift to return a correctly typed cell;
func dequeueReusableCell<T: UICollectionViewCell>(
    of cellClass: T.Type, withReuseIdentifier reuseIdentifier: String,
    for sectionController: ListSectionController, at index: Int) -> T {
    return self.__dequeueReusableCell(
        of: cellClass, withReuseIdentifier: reuseIdentifier,
        for: sectionController, at: index) as! T
}

Happy to take a look at PRs that add Swift refinements!


Potential bug: doesn't understand nullable in combination with allOf

Describe the bug
Prism doesn't understand nullable in combination with allOf. I.e. this pattern:
        pet:
          nullable: true
          allOf:
            - $ref: '#/components/schemas/Pet’

This pattern is discussed here:
https://github.com/OAI/OpenAPI-Specification/issues/1368
To Reproduce

Given this OpenAPI document https://pastebin.com/QQEeaSFc
Run this CLI command

curl -X POST -H "Content-Type: application/json" -d '{"pet": null}' http://<IP_ADDRESS>:4010/pet

See error

[12:21:52 PM] ›     [VALIDATOR] ⚠  warning   Request did not pass the validation rules
[12:21:52 PM] ›     [NEGOTIATOR] ⬤  debug     Unable to find a 422 response definition
[12:21:52 PM] ›     [NEGOTIATOR] ✔  success   Found response 400. I'll try with it.
[12:21:52 PM] ›     [NEGOTIATOR] ⬤  debug     Unable to find a content with an example defined for the response 400
[12:21:52 PM] ›     [NEGOTIATOR] ✔  success   Responding with the requested status code 400
[12:21:52 PM] ›     [VALIDATOR] ✖  error     Violation: request.body.pet should be object

Expected behavior
Return a 201 response
Additional context
Spec discussion, where this pattern is mentioned:
https://github.com/OAI/OpenAPI-Specification/issues/1368
I should also mention that it's supported by other tools such as Redoc
Edit:
After reading a bit more I think Prism actually handles it correctly, at least if these are supposed to be believed:
https://github.com/OAI/OpenAPI-Specification/issues/1368#issuecomment-580103688
https://github.com/OAI/OpenAPI-Specification/blob/master/proposals/003_Clarify-Nullable.md
Like I mentioned, other tools seem to interpret the spec differently, so I guess it's up to the Prism team to decide whether or not the pattern should be supported.

Hey,
I'm sorry it took long to respond. Effectively, the clarification specification is in line with the way Prism behaves:

nullable: true is only meaningful in combination with a type assertion specified in the same Schema Object.

The schema you provided as example does not have a type constraint, so there is no modification to be applied (thus the nullable gets ignored).
We want to be as close as possible with the spec — I'm not planning to change this at the moment.
If you have any other concerns, feel free to reopen the issue or file a new one.


Openhardwaremonitor

Description:
Adds a Open Hardware Monitor platform, that enables Home Assistant to connect to another host.
Related issue (if applicable): fixes #
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#2824
Example entry for configuration.yaml (if applicable):
sensor:
  - platform: openhardwaremonitor
    host: HOSTNAME_OF_OPENHARDWAREMONITOR

Checklist:
If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.github.io

If the code communicates with devices, web services, or third-party tools:

[x] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[x] New dependencies have been added to the REQUIREMENTS variable (example).
[x] New dependencies are only imported inside functions that use them (example).
[x] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[x] New files were added to .coveragerc.

Hi @depl0y,
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!

Consider converting the code to asynchronous (using asyncio and aiohttp). Since it's a new platform, it's better to start off asynchronous, instead of converting it later.
On another note - if there is no Python library for accessing Open Hardware Monitor data, consider making one, publishing it, and using it in your code here.

I agree that #4937 is the preferred way of doing retry logic. It will also avoid having to put some crazy hacks for mapping data to the platform.

Thanks! 🐬


Provider ec2_vpc and ec2_vpc_routetable - Issue managing route tables

Hi,
Using the vpc-example provided in the repository I have been testing the VPC provider.  Although the puppet code works it does surprising things which I would not expect.  If I run:
ec2_vpc { 'sample-vpc':
  ensure       => present,
  region       => 'sa-east-1',
  cidr_block   => '<IP_ADDRESS>/16',
}

This creates a VPC and a route table both named sample-vpc.  Looking through the aws-sdk-core manual it does not explicitly say it will create a route table but I assume this is correct behavior.
If it is correct behavior I would like to use this route table (sample-vpc) and add an additional route to it instead of creating a separate route table. For example (does not work):
ec2_vpc { 'sample-vpc':
  ensure       => present,
  region       => 'sa-east-1',
  cidr_block   => '<IP_ADDRESS>/16',
}

ec2_vpc_internet_gateway { 'sample-igw':
  ensure => present,
  region => 'sa-east-1',
  vpc    => 'sample-vpc',
}

#################
# The below will fail as there is already a sample-vpc route table created as part of the ec2_vpc type
#################
ec2_vpc_routetable { 'sample-vpc':
  ensure => present,
  region => 'sa-east-1',
  vpc    => 'sample-vpc',
  routes => [
    {
      destination_cidr_block => '<IP_ADDRESS>/16',
      gateway                => 'local'
    },{
      destination_cidr_block => '<IP_ADDRESS>/0',
      gateway                => 'sample-igw'
    },
  ],
}

However the routes property for the ec2_vpc_routetable type is read only once created and I am unable to add an additional route to an existing route table.

So, the route table you mentioned is automatically created by AWS, rather than by Puppet or the SDK. We tag it with the same name as the VPC to make keeping track of it possible.
However, as you mentioned, it's not (yet) possible to update the routes on an existing route table. This isn't a hard limitation, it's definitely something we'll be adding the ability to do. At which point the code you have should just work.

I had the same issue. Error message below. Strangely, All my work is being don in us-west-1. Don't know why it's complaining about us-east-1:
Error: Could not run: Puppet detected a problem with the information returned from AWS
when looking up ec2_vpc_routetable in us-east-1. The specific error was:
expected params[:internet_gateway_ids][0] to be a string
Rather than report on ec2_vpc_routetable resources in an inconsistent state we have exited.
This could be because some other process is modifying AWS at the same time.

Also, It seems that if this is put into a puppet manifest, it will complain everytime, whereas if just run via 'puppey apply' all is good for a onetime run:
Error: cidr_block property is read-only once ec2_vpc created.
Error: /Stage[main]/Main/Ec2_vpc[sample-vpc]/cidr_block: change from <IP_ADDRESS>/16 to <IP_ADDRESS>/16 failed: cidr_block property is read-only once ec2_vpc created.
Notice: /Stage[main]/Main/Ec2_securitygroup[sample-sg]: Dependency Ec2_vpc[sample-vpc] has failures: true
Warning: /Stage[main]/Main/Ec2_securitygroup[sample-sg]: Skipping because of failed dependencies

Has anyone found a solution or workaround for this yet?
I really want to avoid having to use the webinterface when deploying a vpc, with subnet and internet gateway.

Any update on this? Does

However, as you mentioned, it's not (yet) possible to update the routes on an existing route table. This isn't a hard limitation, it's definitely something we'll be adding the ability to do.

still apply ?


Client-side rendering with a driver mismatch

If the suggested regkey HKLM\SYSTEM\CurrentControlSet\Control\Print\PrinterName\PrinterDriverData\DriverPolicy is applied to queue on Windows Server 2016 printserver, mapped on a client running Windows 10 21H2 >October Patch (maybe even earlier),  the queue will not be usable after a restart of the client spooler service or a reboot of this machine.
Is this regkey still a valid workaround for a driver mismatch?
Document: Known Issues with Client-Side Rendering
Path: windows-driver-docs-pr/print/known-issues-with-client-side-rendering.md

Hi @printric, could you please provide a link to the docs page you are referencing?  Thanks!

https://learn.microsoft.com/en-us/windows-hardware/drivers/print/known-issues-with-client-side-rendering
https://github.com/MicrosoftDocs/windows-driver-docs/blob/staging/windows-driver-docs-pr/print/known-issues-with-client-side-rendering.md

@printric, thanks for reaching out to the Windows Driver Developer Documentation team. You may have success posting your question about client-side rendering with a driver mismatch in the following forums, where other driver developers and Microsoft engineers can be found.
Microsoft Q&A: Windows Hardware development
OSR Developer Community


Converting input array shapes internally when they don't match

New plot_digits.py example, using convolution.
Closes #60.

Coverage decreased (-0.22%) to 99.78% when pulling 0bfd70e92de6d2a4d628d31fc8727bd47a9516f4 on digits into 8341b729fe31436c22097eb384f1f07ab5b3d75c on master.

Coverage remained the same at 100.0% when pulling b414d3cee8156476cdb301ac81c901c379204f40 on digits into 8341b729fe31436c22097eb384f1f07ab5b3d75c on master.


Log at debug when mini starts process

This seems pretty useful for info level.  Is there another place where this gets logged as well?  Is this duplicate information?

I think launching the process is useful at info, but not the whole environment for the process... that should be debug.

This seems pretty useful for info level. Is there another place where this gets logged as well? Is this duplicate information?

When running Fluo's ITs against 2.0.0-alpha-1 there was a lot of stuff printed because of this log statement.  The classpath is what makes the log msg so long.  For each process mini starts, it logs which prints the classpath again.  So it prints alot and duplicates.

I think the minimal information of what process is being started should be logged at info.

I don't think this is useful information.  The process may not even start.  I think what may be more useful would be if mini logged when processed unexpectedly exited.

I don't think this is useful information. The process may not even start. I think what may be more useful would be if mini logged when processed unexpectedly exited.

For a user who isn't 100% familiar with what Mini is supposed to be doing under the hood (casual users, users who aren't Accumulo developers, but application developers who use Accumulo), I think that the minimum information is very useful. I agree it would be even more useful to report unexpected exits... but log lines that establish that it should be running process X, Y, and Z, provide a base context in which a user is more easily able to understand error messages about unexpected exits of those processes.

I don't think log messages that repeatedly spam the same information every time a piece of software runs is a good way to document how that software works for new users.  Would be better to put this info in documentation.

I argued for "minimal", not "spam".

Weird. Yeah, I was tracking your repo as a remote. I saw you deleted like 60 or more branches. :smile:
Did you want to restore/reopen this one?

Did you want to restore/reopen this one?

Yeah I am still interested in seeing the change made.

Since the change is trivial, I would recommend just committing the change directly to the repo, with a reference back to this issue number, rather than bother to try to reopen the issue or create a new PR.


Errors related to non-rendered fields are ignored by AutoForm

Describe the bug
If you have an id field like
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

then the id field is not rendered in an AutoForm but trying to submit the form results in a validation error:
{message: 'must be a number', property: 'id', validator: IsNumber, value: NaN}

then that error message is ignored because it has a property set, so the user can never see it.
Expected-behavior
Error message related to non-rendered fields (if they ever occur) would be rendered as error messages that are not related to a field
Reproduction
<AutoCrud service={ProductService} model={ProductModel}></AutoCrud>;
``

with

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

in Product

### System Info

Vaadin 24.4 alpha20

As a workaround, you can customize the form and render errors for specific fields in the custom renderer.


Ability to clone types and inputs

Right now there is no way of cloning type so that we can clone them to add additional fields to them and use them separately.
An example implementation can look as follows:
const UserWithFeatureWhereInput = prismaCloneInputType({
	from: "UserWhereInput",
    name: "UserWithFeatureWhereInput",
    fields: ["*"],
    defination(t){// custom fields}
})

agree


build error with VS2017

Encountered a build error on VS2017. Looks like a premature template expansion by VS compiler.
C:\git\CppMicroServices\framework\include\cppmicroservices/ServiceInterface.h(145): error C2027: use of undefined type 'cppmicroservices::HttpServlet' (compiling source file C:\git\CppMicroServices\httpservice\src\ServletContext.cpp)
The workaround is to add the following #include to ServletContainerPrivate.h:
#include "cppmicroservices/httpservice/HttpServlet.h"

Ran into the same issue using MSVC 15.6.5

Fixed in the development branch.


adding support for decoder-only LLMs e.g. E5-Mistral

Hi,
I worked on a project using the E5-Mistral 7B model (accompanying paper) that currently tops the MTEB. This repo saved me a lot of work! Thanks!
Since the authors didn't publish the code I implemented a decoder-only model class for my project.
Should I open a PR? Is anybody already working on this? Should this be included?
Need some guidance from the maintainers here on if this is desired.
I would clean it up a bit for a PR.
class DecoderOnlyLM:
    def __init__(self, model_path: str = None):
        # Query tokenizer and model
        self.tokenizer = AutoTokenizer.from_pretrained(model_path)
        self.model = AutoModel.from_pretrained(model_path, output_attentions=True)
        self.model.eval()
        self.max_length = 4096

    def last_token_pool(self, last_hidden_states: Tensor, attention_mask: Tensor) -> Tensor:
        # Pooling EOS tokens as embeddings
        left_padding = (attention_mask[:, -1].sum() == attention_mask.shape[0])
        if left_padding:
            return last_hidden_states[:, -1]
        else:
            sequence_lengths = attention_mask.sum(dim=1) - 1
            batch_size = last_hidden_states.shape[0]
            return last_hidden_states[torch.arange(batch_size, device=last_hidden_states.device), sequence_lengths]

    def encode_queries(self, queries: List[str], batch_size: int = 1) -> torch.Tensor:
        query_embeddings = []
        with torch.no_grad():
            for start_idx in trange(0, len(queries), batch_size):
                encoded = self.tokenizer(queries[start_idx:start_idx+batch_size], truncation=True, padding=True, return_tensors='pt', max_length=self.max_length)
                model_out = self.model(encoded['input_ids'], attention_mask=encoded['attention_mask']) # .cuda()
                query_embeddings = self.last_token_pool(model_out.last_hidden_state, encoded['attention_mask'])
                query_embeddings = F.normalize(query_embeddings, p=2, dim=1)

        return torch.stack(query_embeddings)

    def encode_corpus(self, corpus: List[Dict[str, str]], batch_size: int = 1) -> torch.Tensor:

        corpus_embeddings = []
        with torch.no_grad():
            for start_idx in trange(0, len(corpus), batch_size):
                titles = [row['title'] for row in corpus[start_idx:start_idx+batch_size]]
                texts = [row['text']  for row in corpus[start_idx:start_idx+batch_size]]
                encoded = self.tokenizer(titles, texts, truncation='longest_first', padding=True, return_tensors='pt')
                model_out = self.model(encoded['input_ids'].cuda(), attention_mask=encoded['attention_mask'].cuda())
                embeddings = self.last_token_pool(model_out.last_hidden_state, encoded['attention_mask'])
                corpus_embeddings += embeddings.detach()
                corpus_embeddings = F.normalize(corpus_embeddings, p=2, dim=1)

        return torch.stack(corpus_embeddings)

Hi @Krilecy,
Thanks for the suggestion and feel free to add a PR for decoder-only LM for retrieval.
Try to evaluate a whole example (let's say on NfCorpus) and compare your evaluation scores against the ones reported in the paper.
Thanks,
Nandan


Added Table of Contents to Readme

I'm not against it but it would need a bit of working on the styling:

Fixed the broken links. I simply removed them


get fib installed immediately when the nexthop is already resolved

This is a nice change.
Few things:

   for controller_ip in vlan.controller_ips:

       if ip_gw in controller_ip:

           is_gw_valid = True

           break

       else:

           continue

else:
continue
is not necessary.
When you add/del a route, you check to see if any flows should be sent -
you can move the retrieval of the ryu DP at the same time.
flowmods = [] needs to move out a block so it is always defined.
Does it pass all tests? I think flowmod not being defined always would be a
problem.
On Wed, Jul 27, 2016 at 8:32 PM, trungdtbk<EMAIL_ADDRESS>wrote:

You can view, comment on, or merge this pull request online at:
https://github.com/REANNZ/faucet/pull/129
Commit Summary

get fib installed immediately when the nexthop is already resolved

File Changes

M src/ryu_faucet/org/onfsdn/faucet/faucet.py
https://github.com/REANNZ/faucet/pull/129/files#diff-0 (8)
M src/ryu_faucet/org/onfsdn/faucet/valve.py
https://github.com/REANNZ/faucet/pull/129/files#diff-1 (37)

Patch Links:

https://github.com/REANNZ/faucet/pull/129.patch
https://github.com/REANNZ/faucet/pull/129.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/REANNZ/faucet/pull/129, or mute the thread
https://github.com/notifications/unsubscribe-auth/AEgZ17aKBS5qCDY8B5NjSDVHksuHjMw3ks5qZxeCgaJpZM4JV9MQ
.

My intention is to check if the if the route is valid before adding the route to the route tables.

Totally get the intention. I like it!
I'm talking about how it's done. :)
you can see, that flowmods = [] is defined in an inner block. It should be
moved out a block, so it's always defined.
On Thu, Jul 28, 2016 at 10:27 AM, trungdtbk<EMAIL_ADDRESS>wrote:

My intention is to check if the if the route is valid before adding the
route to the route tables.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/REANNZ/faucet/pull/129#issuecomment-235741015, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEgZ1y7uoQ_6WNg37W6djALWkiMUlbKNks5qZ9tbgaJpZM4JV9MQ
.

I fixed that. And it passes all the tests.

Excellent, I merged your change. Thank you for your contribution.
On Thu, Jul 28, 2016 at 10:40 AM, trungdtbk<EMAIL_ADDRESS>wrote:

I fixed that. And it passes all the tests.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/REANNZ/faucet/pull/129#issuecomment-235743834, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEgZ19bdLsaj1Hvz1Cl_P0zI61f19nUUks5qZ95zgaJpZM4JV9MQ
.


406 implement sentry logging

Implements #406

@matthieu-foucault do you have any good ideas about how I can test graphql/index.ts so I can pass the Sonarcloud scan? Thanks.

A test asserting that the postgraphile function is called with the expected postgraphileOptions would be good. This would be somewhat similar to the test I just wrote for authenticationPgSettings, where you mock the config with different values (NODE_ENV production vs development, SENTRY_ENVIRONMENT is defined or not)


[HIPIFY] hipify installation Query

Hi All,
i am looking for installation of the hipify (latest version), however i got stuck with build part.
could you please provide step by step instructions, which help me to understand and install
Thank you
-Gowri Shankar

Hello @GowriShankarEAAS,
The building instruction is here: https://github.com/ROCm-Developer-Tools/HIPIFY/blob/amd-staging/docs/hipify-clang.md#hipify-clang-building.
Could you give more details on what went wrong on your side, please?

when i am executing the cmake after repo download, following error is coming
:~/HIPIFY/build$ cmake  -DCMAKE_INSTALL_PREFIX=../dist  -DCMAKE_BUILD_TYPE=Release  ../hipify
CMake Error: The source directory "/home/gowrishankar_guttikonda/HIPIFY/hipify" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
:~/HIPIFY/build$ cmake  -DCMAKE_INSTALL_PREFIX=../dist  -DCMAKE_BUILD_TYPE=Release  ..
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:3 (project):
No CMAKE_CXX_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "/home/gowrishankar_guttikonda/HIPIFY/build/CMakeFiles/CMakeOutput.log".
See also "/home/gowrishankar_guttikonda/HIPIFY/build/CMakeFiles/CMakeError.log".
GCC -->
~/HIPIFY/build$ gcc --version
gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

:~/HIPIFY/build$ cmake -DCMAKE_INSTALL_PREFIX=../dist -DCMAKE_BUILD_TYPE=Release ../hipify
CMake Error: The source directory "/home/gowrishankar_guttikonda/HIPIFY/hipify" does not exist.

/home/gowrishankar_guttikonda/HIPIFY/hipify should contain hipify sources, in this folder should be hipify's CMakeLists.txt

Hello @GowriShankarEAAS,
Are you ok with closing this ticket as answered?

[AMD Official Use Only - General]
sure Mankov. thank you very much for your help
Regards,
Gowri Shankar G
Mail : @.***
Mob: +1<PHONE_NUMBER>

From: Evgeny Mankov @.>
Sent: Monday, August 7, 2023 2:29 PM
To: ROCm-Developer-Tools/HIPIFY @.>
Cc: Guttikonda, Gowri Shankar @.>; Mention @.>
Subject: Re: [ROCm-Developer-Tools/HIPIFY] [HIPIFY] hipify installation Query (Issue #971)
Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
Hello @GowriShankarEAAShttps://github.com/GowriShankarEAAS,
Are you ok with closing this ticket as answered?
—
Reply to this email directly, view it on GitHubhttps://github.com/ROCm-Developer-Tools/HIPIFY/issues/971#issuecomment-1668459181, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AU53A6R2RE7WHDMEHFWLWCLXUE6YHANCNFSM6AAAAAA2Y5RXUM.
You are receiving this because you were mentioned.Message ID: @.***>

Closing as answered


Add Interpolation.ValueAt for strings

Simple implementation to allow text transforms.

I still think this feels a bit weird. Transforms are generally performing an action over time, so it is not immediately obvious what one would do with strings (one could assume it would gradually add characters over the specified duration, which would actually be a more understandable implementation).
@smoogipoo what are your thoughts on this? i know that it does help with reversing gameplay because transforms are actually rewound, while using something like OnComplete (see IntroTriangles for an example https://github.com/ppy/osu/blob/8917f7cc95b12216eb15d7f80a6309bdf27831b9/osu.Game/Screens/Menu/IntroTriangles.cs#L231) is not, but kinda makes more sense?

Maybe this is a case where we want implementations local to osu! itself since the functionality is pretty arbitrary. I wouldn't be against removing this from the framework altogether.

What's the use case for this?  I don't really see any point in having an interpolation function that doesn't do any kind of easing, and is essentially just a delayed property change.  If I were to interpolate between two strings, I would expect to be doing some kind of time-based transformation such that you can see the words changing letter by letter.
Something vaguely along the lines of:
Text = "hello";
...
TransformTo(nameof(Text), "world");
...
"hello"
"helld"
"horld"
"world"

Yeah, the transformation between strings is a case i wasn't considering, and gets hard to implement in a standardised way. I'm all for dropping this function out of framework.

It looks like only osu! implements the text transforms, closing this PR as discussed.


Thoughts on a logout_redirect feature?

I've noticed when using the logout method (in my case, added GET and called :8000/session-route?session_logout) an empty screen just sits there. Seems like upon logout, having an option to redirect the user elsewhere would be in order?

Dear contributor,
We're closing this issue as there hasn't been any update to it for a long time. If the issue is still relevant in the latest version, please feel free to reopen it. We're more than happy to revisit it again.
Please have a look at our pledge to the community for more information.
Sincerely,
Kong Gateway Team


Fix native code in console environment

Verified that it works in Chrome and Firefox with LocalStorage disabled. Verified that it works in Chrome, Safari and Firefox with LocalStorage enabled. Verified that it works when running make command in test dir.

When I run test/test2.html in Firefox with localstorage disabled I get a runtime JS error. The test/test.html case works fine though. I get the same runtime error from my example app.

Hi @fredcy,
the culprit (other than my lack of diligence) was the implementation of the clear function for clients without LocalStorage and also the check for the localStorage.
Let me know if this fixes the issues you observed. (I simply had forgotten to test Test2.html).
Kind regards,
Felix

I pulled your latest code and Test2.html now works for me, but my example app still throws a JS exception from the Elm runtime when local storage is disabled in Firefox.

I had to fix the keys case when storage is disabled as it should take no arguments. All my tests are working as expected now both with storage disabled and enabled.


how to use puppet-xp Gateway  with python

I run puppet-xp Gateway successly , but when i try to connect my local gateway with python , it failed
token is successly
no docker
2022-03-03 14:51:56,037 - Wechaty - INFO - on() listen event <scan> with <<function on_scan at 0x000002B163195430>>
2022-03-03 14:51:56,037 - Wechaty - INFO - on() listen event <login> with <<function on_login at 0x000002B166203040>>
2022-03-03 14:51:56,037 - Wechaty - INFO - on() listen event <message> with <<function on_message at 0x000002B162EFDD30>>
2022-03-03 14:51:56,073 - PuppetService - WARNING - there are endpoint<<IP_ADDRESS>:8788> and token<insecure_156f31cd-8629-4a4d-a6ee-9bab5ccf3aea>, and the endpoint will be used for service ...
2022-03-03 14:51:56,073 - Wechaty - INFO - init_puppet_event_bridge() <<wechaty_puppet_service.puppet.PuppetService object at 0x000002B1663064C0>>
2022-03-03 14:51:56,073 - Wechaty - INFO - initPuppetEventBridge() puppet.on(dong) (listenerCount:1) registering...
2022-03-03 14:51:56,073 - Wechaty - INFO - initPuppetEventBridge() puppet.on(error) (listenerCount:1) registering...
2022-03-03 14:51:56,074 - Wechaty - INFO - initPuppetEventBridge() puppet.on(heart-beat) (listenerCount:1) registering...
2022-03-03 14:51:56,074 - Wechaty - INFO - initPuppetEventBridge() puppet.on(ready) (listenerCount:1) registering...
2022-03-03 14:51:56,074 - Wechaty - INFO - receive <reset> event <%s>
2022-03-03 14:51:56,074 - Wechaty - INFO - initPuppetEventBridge() puppet.on(reset) (listenerCount:0) registering...
2022-03-03 14:51:56,074 - Wechaty - INFO - initPuppetEventBridge() puppet.on(friendship) (listenerCount:1) registering...
2022-03-03 14:51:56,074 - Wechaty - INFO - initPuppetEventBridge() puppet.on(login) (listenerCount:1) registering...
2022-03-03 14:51:56,074 - Wechaty - INFO - initPuppetEventBridge() puppet.on(logout) (listenerCount:1) registering...
2022-03-03 14:51:56,074 - Wechaty - INFO - initPuppetEventBridge() puppet.on(message) (listenerCount:1) registering...
2022-03-03 14:51:56,074 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-invite) (listenerCount:1) registering...
2022-03-03 14:51:56,074 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-join) (listenerCount:1) registering...
2022-03-03 14:51:56,074 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-leave) (listenerCount:1) registering...
2022-03-03 14:51:56,074 - Wechaty - INFO - initPuppetEventBridge() puppet.on(room-topic) (listenerCount:1) registering...
2022-03-03 14:51:56,074 - Wechaty - INFO - initPuppetEventBridge() puppet.on(scan) (listenerCount:1) registering...
2022-03-03 14:51:56,074 - Wechaty - INFO - starting puppet ...
2022-03-03 14:51:56,074 - PuppetService - INFO - init puppet ...
2022-03-03 14:51:56,092 - PuppetService - INFO - starting the puppet ...
2022-03-03 14:51:56,104 - Wechaty - ERROR - The network is not good, the bot will try to restart after 60 seconds.
But here are some suggestions for you:
* 查看token是否可用？（过期或协议不可用）
* docker 服务是否正常启动？
* python-wechaty bot 是否正常启动？
* python-wechaty bot 是否能ping通docker服务？
* 由于版本细节问题，目前python-wechaty 支持最好的wechaty镜像为：[wechaty/wechaty:0.65](https://hub.docker.com/layers/wechaty/wechaty/0.65/images/sha256-d39b9fb5dece3a8ffa88b80a8ccfd916be14b9d0de72115732c3ee714b0d6a96?context=explore)

I suggest that you should follow the template code from: https://wechaty.readthedocs.io/zh_CN/latest/ to avoid the unnecessary bugs.

set WECHATY_PUPPET_SERVICE_NO_TLS_INSECURE_SERVER=true

when i  set WECHATY_PUPPET_SERVICE_NO_TLS_INSECURE_SERVER=true , npm start and run python.
gateway show something error
10:19:02 WARN PuppetServer start() TLS disabled: INSECURE!
10:19:09 INFO IoClient wechat. logged in
10:20:24 ERR PuppetServiceImpl stop() eventStreamManager is not busy?
10:20:24 WARN PuppetLoginMixin logonoff() is deprecated, use `isLoggedIn` instead:
Error
    at PuppetXp.logonoff (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty-puppet-xp/node_modules/wechaty-puppet/dist/esm/src/mixins/login-mixin.js:86:101)
    at PuppetXp.onStop (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty-puppet-xp/dist/esm/src/puppet-xp.js:260:18)
    at PuppetXp.stop (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty-puppet-xp/node_modules/state-switch/dist/esm/src/service-ctl/service-ctl.js:108:28)
    at PuppetXp.stop (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty-puppet-xp/node_modules/wechaty-puppet/dist/esm/src/mixins/service-mixin.js:25:25)
    at stop (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/server/puppet-implementation.js:1085:45)
    at Object.stop (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/auth/auth-impl-token.js:26:28)
    at handleUnary (C:\Users\staff\AppData\Roaming\npm\node_modules\wechaty\node_modules\@grpc\grpc-js\build\src\server.js:674:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
10:20:24 INFO IoClient 苏.79. logged out
file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/server/event-stream-manager.js:69
        if (this.puppet.readyIndicator.value()) {
                                       ^

TypeError: Cannot read properties of undefined (reading 'value')
    at EventStreamManager.start (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/server/event-stream-manager.js:69:40)
    at event (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/server/puppet-implementation.js:287:32)
    at Object.event (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/auth/auth-impl-token.js:26:28)
    at handleServerStreaming (C:\Users\staff\AppData\Roaming\npm\node_modules\wechaty\node_modules\@grpc\grpc-js\build\src\server.js:696:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

What version of the wechaty are you using with the npm install ?
Please upgrade it by using npm install -g wechaty@next if you are not the newest version and try again.

wechaty -v  1.13.22
it is the newest version, but also failed

error is different
10:46:53 ERR PuppetServiceImpl grpcError() stop() rejection: Timeout after 15000 ms
GError: Timeout after 15000 ms
    at Function.from (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty/node_modules/gerror/dist/esm/src/gerror/gerror.js:80:23)
    at Timeout._onTimeout (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty/node_modules/gerror/dist/esm/src/timeout-promise/timeout-promise.js:19:42)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
10:46:53 WARN ServiceCtl<PuppetServiceMixin> start() found that is stopping, waiting stable ... (max 5 seconds)
10:46:58 WARN ServiceCtl<PuppetServiceMixin> start() found that is stopping, waiting stable ... timeout
10:46:58 WARN PuppetXp onStart() this.#sidecar exists? will be replaced by a new one.
10:46:59 INFO IoClient 苏.79. logged in
10:49:36 ERR PuppetServiceImpl stop() eventStreamManager is not busy?
10:49:36 WARN PuppetLoginMixin logonoff() is deprecated, use `isLoggedIn` instead:
Error
    at PuppetXp.logonoff (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty-puppet-xp/node_modules/wechaty-puppet/dist/esm/src/mixins/login-mixin.js:86:101)
    at PuppetXp.onStop (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty-puppet-xp/dist/esm/src/puppet-xp.js:260:18)
    at PuppetXp.stop (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty-puppet-xp/node_modules/state-switch/dist/esm/src/service-ctl/service-ctl.js:108:28)
    at PuppetXp.stop (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty-puppet-xp/node_modules/wechaty-puppet/dist/esm/src/mixins/service-mixin.js:25:25)
    at stop (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/server/puppet-implementation.js:1085:45)
    at Object.stop (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/auth/auth-impl-token.js:26:28)
    at handleUnary (C:\Users\staff\AppData\Roaming\npm\node_modules\wechaty\node_modules\@grpc\grpc-js\build\src\server.js:674:13)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
10:49:36 INFO IoClient wechat. logged out

error is different
10:46:53 ERR PuppetServiceImpl grpcError() stop() rejection: Timeout after 15000 ms
GError: Timeout after 15000 ms
    at Function.from (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty/node_modules/gerror/dist/esm/src/gerror/gerror.js:80:23)
    at Timeout._onTimeout (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty/node_modules/gerror/dist/esm/src/timeout-promise/timeout-promise.js:19:42)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)
10:46:53 WARN ServiceCtl<PuppetServiceMixin> start() found that is stopping, waiting stable ... (max 5 seconds)
10:46:58 WARN ServiceCtl<PuppetServiceMixin> start() found that is stopping, waiting stable ... timeout
10:46:58 WARN PuppetXp onStart() this.#sidecar exists? will be replaced by a new one.
10:46:59 INFO IoClient wechat. logged in
10:49:36 ERR PuppetServiceImpl stop() eventStreamManager is not busy?
10:49:36 WARN PuppetLoginMixin logonoff() is deprecated, use `isLoggedIn` instead:
Error
    at PuppetXp.logonoff (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty-puppet-xp/node_modules/wechaty-puppet/dist/esm/src/mixins/login-mixin.js:86:101)
    at PuppetXp.onStop (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty-puppet-xp/dist/esm/src/puppet-xp.js:260:18)
    at PuppetXp.stop (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty-puppet-xp/node_modules/state-switch/dist/esm/src/service-ctl/service-ctl.js:108:28)
    at PuppetXp.stop (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty-puppet-xp/node_modules/wechaty-puppet/dist/esm/src/mixins/service-mixin.js:25:25)
    at stop (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/server/puppet-implementation.js:1085:45)
    at Object.stop (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/auth/auth-impl-token.js:26:28)
    at handleUnary (C:\Users\staff\AppData\Roaming\npm\node_modules\wechaty\node_modules\@grpc\grpc-js\build\src\server.js:674:13)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
10:49:36 INFO IoClient wechat. logged out

I believe you also need the latest version of the wechaty-puppet-xp
What version do you have? 1.7.1 is the newest version, and it needs to be installed as global too:
npm install -g wechaty-puppet-xp@next

yes,i do it ,  wechaty and wechat-puppet-xp
Does the python code also need to be adjusted?
python
os.environ['WECHATY_PUPPET'] = "wechaty-puppet-service"
os.environ['WECHATY_PUPPET_SERVICE_ENDPOINT'] = "<IP_ADDRESS>:8788"
os.environ['WECHATY_PUPPET_SERVICE_TOKEN'] = "insecure_18fbabcd-ca2b-44da-82fc-030d1a0cb07d"
os.environ['WECHATY_PUPPET_SERVICE_NO_TLS_INSECURE_CLIENT'] = "true"
npm error
11:09:33 ERR PuppetServiceImpl stop() eventStreamManager is not busy?
11:09:33 WARN PuppetLoginMixin logonoff() is deprecated, use `isLoggedIn` instead:
Error
    at PuppetXp.logonoff (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty-puppet-xp/node_modules/wechaty-puppet/dist/esm/src/mixins/login-mixin.js:86:101)
    at PuppetXp.onStop (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty-puppet-xp/dist/esm/src/puppet-xp.js:203:18)
    at PuppetXp.stop (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty-puppet-xp/node_modules/state-switch/dist/esm/src/service-ctl/service-ctl.js:108:28)
    at PuppetXp.stop (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty-puppet-xp/node_modules/wechaty-puppet/dist/esm/src/mixins/service-mixin.js:25:25)
    at stop (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/server/puppet-implementation.js:1085:45)
    at Object.stop (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/auth/auth-impl-token.js:26:28)
    at handleUnary (C:\Users\staff\AppData\Roaming\npm\node_modules\wechaty\node_modules\@grpc\grpc-js\build\src\server.js:674:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
11:09:33 INFO IoClient 苏.79. logged out
11:09:33 INFO IoClient 苏.79. logged in
file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/server/event-stream-manager.js:216
                    throw new Error('eventName ' + eventName + ' unsupported!');
                          ^

Error: eventName post unsupported!
    at EventStreamManager.connectPuppetEventToStreamingCall (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/server/event-stream-manager.js:216:27)
    at EventStreamManager.start (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/server/event-stream-manager.js:41:41)
    at event (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/server/puppet-implementation.js:287:32)
    at Object.event (file:///C:/Users/staff/AppData/Roaming/npm/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/auth/auth-impl-token.js:26:28)
    at handleServerStreaming (C:\Users\staff\AppData\Roaming\npm\node_modules\wechaty\node_modules\@grpc\grpc-js\build\src\server.js:696:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

i found wechaty-puppet-xp@next  version is 1.7.1
wechaty-puppet-xp@latest is 1.10.19
but both failed

Could you please post the log messages of the next version?

sorry, i don't know how to post the log messages , what should i do, I am glad to do it

Just like this one:
https://github.com/wechaty/python-wechaty-getting-started/issues/74#issuecomment-1059674608
With the exactly version you are using with both wechaty and the puppet-xp

you can reference here 【腾讯文档】如何在本地使用免费的wechaty-puppet-xy协议
https://docs.qq.com/doc/DQ0VJUWtSVE1Mb2JJ
hope helpful

window env
wechaty-puppet-xp  1.10.19
wechaty 1.13.22
python 3.9
wechaty 0.8.34
wechaty-grpc 0.20.19
wechat-puppet 0.4.0

@WukongZeming A blog post on the Wechaty website would be greatly valuable for publishing this article!

@suguer Have you tried the<EMAIL_ADDRESS>?

ok. i try again with a new machine

no<EMAIL_ADDRESS>is failed , i try to setup in a new machine

@WukongZeming A blog post on the Wechaty website would be greatly valuable for publishing this article!

I don't know how to do that.
I've tried to find a PR entrance on the wechaty.org github page. but it asked where to merge .... i'am puzzled with that

Here has a docs for PR might be helpful to you: https://wechaty.js.org/docs/contributing/pulls

@WukongZeming It's a sad result , i run again in a new host
config is same
+--<EMAIL_ADDRESS>extraneous
| --<EMAIL_ADDRESS>extraneous --<EMAIL_ADDRESS>extraneous
+--<EMAIL_ADDRESS>extraneous
| --<EMAIL_ADDRESS>deduped   +--<EMAIL_ADDRESS>extraneous   | --<EMAIL_ADDRESS>deduped
+--<EMAIL_ADDRESS>extraneous
--<EMAIL_ADDRESS>extraneous     --<EMAIL_ADDRESS>deduped
15:11:43 ERR PuppetServiceImpl stop() eventStreamManager is not busy?
15:11:43 WARN PuppetLoginMixin logonoff() is deprecated, use `isLoggedIn` instead:
Error
    at PuppetXp.logonoff (file:///C:/Users/Administrator/AppData/Roaming/npm/node_modules/wechaty-puppet-xp/node_modules/wechaty-puppet/dist/esm/src/mixins/login-mixin.js:86:101)
    at PuppetXp.onStop (file:///C:/Users/Administrator/AppData/Roaming/npm/node_modules/wechaty-puppet-xp/dist/esm/src/puppet-xp.js:260:18)
    at PuppetXp.stop (file:///C:/Users/Administrator/AppData/Roaming/npm/node_modules/wechaty-puppet-xp/node_modules/state-switch/dist/esm/src/service-ctl/service-ctl.js:108:28)
    at PuppetXp.stop (file:///C:/Users/Administrator/AppData/Roaming/npm/node_modules/wechaty-puppet-xp/node_modules/wechaty-puppet/dist/esm/src/mixins/service-mixin.js:25:25)
    at stop (file:///C:/Users/Administrator/AppData/Roaming/npm/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/server/puppet-implementation.js:1085:45)
    at Object.stop (file:///C:/Users/Administrator/AppData/Roaming/npm/node_modules/wechaty/node_modules/wechaty-puppet-service/dist/esm/src/auth/auth-impl-token.js:26:28)
    at handleUnary (C:\Users\Administrator\AppData\Roaming\npm\node_modules\wechaty\node_modules\@grpc\grpc-js\build\src\server.js:674:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

the working config is as follow:
npm@ C:\Users\bigbr\AppData\Roaming\npm
+--<EMAIL_ADDRESS>| --<EMAIL_ADDRESS>--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>| +--<EMAIL_ADDRESS>deduped
| --<EMAIL_ADDRESS> |   --<EMAIL_ADDRESS>deduped
+--<EMAIL_ADDRESS>| --<EMAIL_ADDRESS>deduped   --<EMAIL_ADDRESS>deduped
maybe you should try npm install -upgrade<EMAIL_ADDRESS>and npm install -upgrade wechaty-puppet-xp
hope helpful

i just tried, but it does not work for me. it so sad


how to translate  t = t[t>0]

hello,guys
i have a tensor t, and i would like to get the result of the expression: t = t[t > 0]. However, i cannot find a method to do it, any idea is appreciated. :)

Have you tried using masked_select? This should filter the elements of the tensor keeping only the values where it is true. Note that it results in a single dimension tensor even if your original tensor was multi-dimensional.
let t = t.masked_select(&t.gt(0));

Have you tried using masked_select? This should filter the elements of the tensor keeping only the values where it is true. Note that it results in a single dimension tensor even if your original tensor was multi-dimensional.
let t = t.masked_select(&t.gt(0));

Great, thanks a lot!


Please add ability to specify an Application Insights resource for telemetry during deployment

I'd like to collect telemetry about my Ghost blog instance. It would be nice if I could specify an Application Insights resource to use during the deployment of the Ghost instance to Azure.

You can add it after the deployment.
For the client version go to the admin page of your blog. In the Code Injection section past the code in the Blog Header.
For the server side Application Insights, in the Azure Portal, Go to the Web App.
From the top section select Tools. From the right panel select Extensions. Click the +Add button in the new section that just pop and select Application Insights.

Thank you for your response. I did that and its collecting telemetry properly. This is more of a feature request.. for the deployment script to ask to specify or create an Application Insights resource during deployment. Thanks again.


[material-ui][Dialog] Refactor form submission in FormDialog component

addresses: https://mui-org.slack.com/archives/C041SDSF32L/p1704573701949879?thread_ts=1704447600.158559&cid=C041SDSF32L
demo: https://deploy-preview-40470--material-ui.netlify.app/material-ui/react-dialog/#form-dialogs

[x] I have followed (at least) the PR section of the contributing guide.

This reminds me a bit of #13253.

It looks good 👍


Change file system copy folder to copy directory

Take into account source and destination's file systems so cross-filesystem copies can be made.
Added copy tests

@tvolkert

LGTM!


hlint: Unknown extension: 'Trustworthy'

We generate HLint step in haskell-ci which takes whatever default-extensions are in package. Sometimes Trustworthy and Safe are part of them.
I think HLint should recognize Unsafe, Trustworthy and Safe, even it doesn't do anything with them.

Thanks for letting me know. Definitely a bug. We get the extensions by calling readExtension from @shayne-fletcher's ghc-lib-parser-ex. There is no Safe value in the Extension data type it produces. I wonder if there should be some kind of function in that package which can also read an extension, or one of those pseudo-extensions that aren't in GHC's extension type? I'd rather HLint was isolated from what those were, but I can add if there is necessary.

Thanks for letting me know. Definitely a bug. We get the extensions by calling readExtension from @shayne-fletcher's ghc-lib-parser-ex. There is no Safe value in the Extension data type it produces. I wonder if there should be some kind of function in that package which can also read an extension, or one of those pseudo-extensions that aren't in GHC's extension type? I'd rather HLint was isolated from what those were, but I can add if there is necessary.

Yup, they seem not to be - https://github.com/ndmitchell/hlint/issues/961#issuecomment-623017720
And it seems you've already fixed this once. I wonder what happened for a regression to occur :thinking:

Yup, they seem not to be - https://github.com/ndmitchell/hlint/issues/961#issuecomment-623017720
And it seems you've already fixed this once. I wonder what happened for a regression to occur :thinking:

IIRC -XSafe and friends are parsed into https://hackage.haskell.org/package/ghc-8.10.2/docs/GHC.html#t:SafeHaskellMode by cli, somewhat similarly as -XHaskell2010 isn't an extension but a `Language

IIRC -XSafe and friends are parsed into https://hackage.haskell.org/package/ghc-8.10.2/docs/GHC.html#t:SafeHaskellMode by cli, somewhat similarly as -XHaskell2010 isn't an extension but a `Language

Thanks @googleson78 for remembering the issue! Very useful context. So the previous issue was if you wrote {-# LANGUAGE Safe #-} at the top of a file we crashed. This issue is about adding -XSafe on the command line. The fix in #961 was to just ignore any extensions we didn't know about - that might be a perfectly reasonable thing to do here too. If you pass -XScala should HLint give an error or not?

Thanks @googleson78 for remembering the issue! Very useful context. So the previous issue was if you wrote {-# LANGUAGE Safe #-} at the top of a file we crashed. This issue is about adding -XSafe on the command line. The fix in #961 was to just ignore any extensions we didn't know about - that might be a perfectly reasonable thing to do here too. If you pass -XScala should HLint give an error or not?

@ndmitchell If warning is an option, it would be fine with me.

@ndmitchell If warning is an option, it would be fine with me.

Even if we did warnings for unknown extensions, I'd want -XSafe etc to not trigger that warning. And I'm a little wary of warnings as they are usually just ignored, and HLint currently has no "warnings" other than those produced as lints.

Even if we did warnings for unknown extensions, I'd want -XSafe etc to not trigger that warning. And I'm a little wary of warnings as they are usually just ignored, and HLint currently has no "warnings" other than those produced as lints.

Agreed. It would be great however that HLint-3.next warned about LinearTypes if it doesn't yet know about it, rather then only failing with potentially confusing error which says LinearTypes is not enabled.

Agreed. It would be great however that HLint-3.next warned about LinearTypes if it doesn't yet know about it, rather then only failing with potentially confusing error which says LinearTypes is not enabled.

So, @ndmitchell anything for me to do here? If so, perhaps a ticket if you please!

So, @ndmitchell anything for me to do here? If so, perhaps a ticket if you please!

So, @ndmitchell anything for me to do here? If so, perhaps a ticket if you please!

So, @ndmitchell anything for me to do here? If so, perhaps a ticket if you please!

I think for extensions in files, HLint is right to ignore it. The extension is being given to GHC, and HLint is snooping on it. Great if HLint can find meaningful information, but if not, it should presume GHC and the user have it under control.
For extensions passed to HLint, we could either error ("Unknown extension"), or ignore. Erroring ensures people don't accidentally type -XGADPs. But means people who generate their HLint flags from extensions get errors on -XLinearTypes. My inclination is to say we error on those we don't know about, as that's what we do now.
That means we need a way to parse "pseudo extensions" from GHC, things that are extension but that readExtension doesn't work for. As far as I'm aware, that's Trustworth, Safe and Unsafe. So, maybe we need:
data PseudoExtension = Safe | Unsafe | Trustworthy

readPseudoExtension :: String -> Maybe PseudoExtension

And if we need that, having it in ghc-lib-parser-ex seems like a reasonable place to put it. Thoughts? (Not quite as far as a ticket @shayne-fletcher - more a thought of "is this the way to go", and if everyone agrees, then a ticket)


Building accessible services page overlap with service manual

The content on the building accessible services page is good quality but has significant overlaps with the Making your frontend accessible guidance in the service manual.
To avoid repeating ourselves, we should remove the overlapping content and link this page to the service manual guidance. It would also be beneficial to add specific guidance for GDS developers e.g. using the empathy lab.

Closing as discussed in last months forum meeting


Big Engine Brawl FNF Error

Describe your bug here.
When the mod loads it gives me a error and when i click okay then the game closes

Command Prompt/Terminal logs (if existing)
No response
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
No I Didn'r Edit anything

Report this to the mod's owners

Ok ShadowMario


Verification order

Shouldn't the signature verification come before the expiry verification, so if the token is expired, we can make sure that its signature is valid before refreshing it?
https://github.com/tsndr/cloudflare-worker-jwt/blob/d3d7e10b60cc886b426faa15fa4b0060a5b32915/src/index.ts#L213-L229
With the current order, I can't find a way to make sure that an expired token's signature is valid before proceeding to issuing a fresh one. Or am I missing something?

My thought process was to only verify the signature if necessary, because that's what uses up CPU time. Why waste CPU time if we already know that the token is expired.
I wouldn't recommend issuing a new token in exchange for an expired one, but rather have a user sign in again to keep your system secure. You could also look at the OAuth approach which uses an Access Token in conjunction with a Refresh Token.

I mean although I have a refresh token mechanism, I believe that verifying the access token signature validity before verifying the refresh token is still necessary. Wondering what are your thoughts about this?

FWIW I agree with @tsndr. Any refresh mechanism should be driven by a separate long lived refresh token. I can't think of any circumstance where you would want to verify the signature on an expired token...

After further research, I see that specs like OAuth and OIDC don't really mandate validating the signature of an expired access token before checking the refresh token. I've also found that auth service providers (like Keycloak and other OSS implementations...) proceed directly to the refresh token step without validating the expired access token. There could be some cases where you need some logging or audit trails that could be based on expired access token and of which the validation might be a good idea, but those are vey special cases. So I think that the current implementation is fine for now and that the issue could be closed!


How can I use aws c++ SDK in qt project using qt creator?

We have a QT qmake project and we would like import AWS C++ SDK to our project.
We built aws-sdk release mode.

Here's how I'm using the SDK and QT via CMake, you should be able to find the analogs for your build system:
add_project(aws-cpp-sdk-s3-desktop-sync
"GUI application using the transfer manager"
aws-cpp-sdk-transfer
aws-cpp-sdk-s3
aws-cpp-sdk-s3-encryption
aws-cpp-sdk-kms
aws-cpp-sdk-core)
Headers are included in the source so that they show up in Visual Studio.
They are included elsewhere for consistency.
#find Qt and get the cmake variables necessary to use it.
find_package(Qt5Widgets REQUIRED)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
include_directories(${Qt5Widgets_INCLUDE_DIRS})
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include")
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/qt")
add_definitions(${Qt5Widgets_DEFINITIONS})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}")
set(CMAKE_AUTOMOC ON)
file(GLOB QT_GUI_SRC
"qt/*.cpp"
)
file(GLOB QT_GUI_HEADERS
"qt/*.h"
)
file(GLOB QT_GUI_RESOURCES
"qt/*.qrc"
)
file(GLOB APP_HEADERS
"include/aws/s3-desktop-sync/*.h"
)
file(GLOB ROOT_SRC
"source/*.cpp"
)
QT5_ADD_RESOURCES( RES_SOURCES ${QT_GUI_RESOURCES} )
QT5_WRAP_CPP( MOC_SRCS ${QT_GUI_HEADERS} )
include_directories(${CMAKE_CURRENT_BINARY_DIR})
file(GLOB ALL_SRC
${RES_SOURCES}
${QT_GUI_HEADERS}
${MOC_SRCS}
${QT_GUI_SRC}
${APP_HEADERS}
${ROOT_SRC}
)
add_executable(${PROJECT_NAME} ${ALL_SRC})
target_link_libraries(${PROJECT_NAME} ${PROJECT_LIBS} ${Qt5Widgets_LIBRARIES})
copyDlls(${PROJECT_NAME} ${PROJECT_LIBS})
if(WIN32) # Check if we are on Windows
SET(EXTENSION "dll")
SET(LIBPATH "so")
SET(QT_NAME "Qt5")
SET(DEBUG_EXTENSION "d")
SET(PREFIX "")
if(MSVC) # Check if we are using the Visual Studio compiler
set_target_properties(${PROJECT_NAME} PROPERTIES
WIN32_EXECUTABLE YES
LINK_FLAGS "/ENTRY:mainCRTStartup"
)
elseif(CMAKE_COMPILER_IS_GNUCXX)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mwindows") # Not tested
else()
message(SEND_ERROR "You are using an unsupported Windows compiler! (Not MSVC or GCC)")
endif(MSVC)
elseif(APPLE)
SET(EXTENSION "framework")
SET(LIBPATH "lib")
SET(QT_NAME "Qt")
SET(DEBUG_EXTENSION ".dSYM")
SET(PREFIX "")
set_target_properties(${PROJECT_NAME} PROPERTIES
MACOSX_BUNDLE YES
)
else()
SET(LIBPATH "lib")
SET(EXTENSION "so")
SET(PREFIX "lib")
SET(QT_NAME "Qt5")
Nothing special required
endif(WIN32)
#copy QT binaries over to the executable's directory for dynamic linking
if(WIN32)
add_custom_command(TARGET aws-cpp-sdk-s3-desktop-sync POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${_qt5Widgets_install_prefix}/${LIBPATH}/${PREFIX}${QT_NAME}Core${DEBUG_EXTENSION}.${EXTENSON}" ${CMAKE_CURRENT_BINARY_DIR}/$
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${_qt5Widgets_install_prefix}/${LIBPATH}/${PREFIX}${QT_NAME}Widgets${DEBUG_EXTENSION}.${EXTENSION}" ${CMAKE_CURRENT_BINARY_DIR}/$
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${_qt5Widgets_install_prefix}/${LIBPATH}/${PREFIX}${QT_NAME}Gui${DEBUG_EXTENSION}}.${EXTENSION}" ${CMAKE_CURRENT_BINARY_DIR}/$
)
endif(WIN32)
set(SUFFIX "")
add_custom_command(TARGET aws-cpp-sdk-s3-desktop-sync POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${_qt5Widgets_install_prefix}/${LIBPATH}/${PREFIX}${QT_NAME}Core${SUFFIX}.${EXTENSION}" ${CMAKE_CURRENT_BINARY_DIR}/$
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${_qt5Widgets_install_prefix}/${LIBPATH}/${PREFIX}${QT_NAME}Widgets${SUFFIX}.${EXTENSION}" ${CMAKE_CURRENT_BINARY_DIR}/$
COMMAND ${CMAKE_COMMAND} -E copy_if_different
"${_qt5Widgets_install_prefix}/${LIBPATH}/${PREFIX}${QT_NAME}Gui${SUFFIX}.${EXTENSION}" ${CMAKE_CURRENT_BINARY_DIR}/$
)
add_custom_command(TARGET aws-cpp-sdk-s3-desktop-sync POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CMAKE_CURRENT_SOURCE_DIR}/assets" ${CMAKE_CURRENT_BINARY_DIR}/$
)

Thanks @JonathanHenson. I was able to do this with qmake in .pro file. Like:
INCLUDEPATH += /usr/local/include/ LIBS += -L/usr/local/lib -laws-cpp-sdk-core -laws-cpp-sdk-s3 \         -laws-cpp-sdk-cognito-sync -laws-cpp-sdk-cognito-idp -laws-cpp-sdk-cognito-identity \         -laws-cpp-sdk-s3

@gkhanacer
So I'm also trying to include AWS SDK into my QT project. (Issue #885)
I try to install with make install but it doesn't work.
Could you please help me with issue 885. I would really appreciate  #it.

make itself is failing. could you please elaborate on the correct procedures or make a instructions video so that we could follow.


CamelCasePropertyNamesContractResolver acronyms followed by underscore.

Source/destination types
//Source to JsonConvert
public class Example
{
    public string API_Field1 { get; set; }
    public string APIField2 { get; set; }
}

Source/destination JSON
//Output by JsonConvert
{
  "apI_Field1": null,
  "apiField2": null
}

Expected behavior
Input: API_Field
Output: api_Field
Actual behavior
Input: API_Field
Output: apI_Field
Steps to reproduce
Console.WriteLine(JsonConvert.SerializeObject(new Example(), Formatting.Indented, new JsonSerializerSettings { ContractResolver = new CamelCasePropertyNamesContractResolver() }));

Bump. Is there any fix to this?


Handle importing namespaces from npm modules

Codecov Report
Attention: Patch coverage is 87.37864% with 13 lines in your changes are missing coverage. Please review.

Project coverage is 83.02%. Comparing base (980ffa6) to head (ed8bd2e).

Files
Patch %
Lines

src/Escalier.Interop/Infer.fs
85.71%
5 Missing :warning:

src/Escalier.Compiler/Prelude.fs
92.30%
4 Missing :warning:

src/Escalier.Interop/TypeScript.fs
50.00%
3 Missing :warning:

src/Escalier.TypeChecker/Unify.fs
80.00%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #190      +/-   ##
==========================================
+ Coverage   82.69%   83.02%   +0.33%
==========================================
  Files          21       21
  Lines        8013     8095      +82
  Branches     1147     1201      +54
==========================================
+ Hits         6626     6721      +95
+ Misses       1387     1374      -13

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


Pass through error status code to json response

@jbothma

aaaah that's what it was. nice

Yeah, clearly I didn't test properly last time :(


Alex s hong patch 2

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@5bd38e9). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master       #2   +/-   ##
=========================================
  Coverage          ?   94.18%
=========================================
  Files             ?        2
  Lines             ?      258
  Branches          ?        0
=========================================
  Hits              ?      243
  Misses            ?       15
  Partials          ?        0

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 5bd38e9...4f53c6e. Read the comment docs.


Unicorn creating separate folder on Item edit/creation

Hello,
This is regarding creation of separate folder and creating duplicate 'yml' file when trying to edit synced items.
In case of item edits and creating new items in Sitecore separate folder is getting created with parent-item id in parallel to grand parent on physical disk.
Even after Re serializing configuration, it is creating separate folder with parent item id and moving only certain items to that folder.
Also tried moving created yml files to correct location and sync back, but it gives up error pop up on editing items (second time).
Please help and suggest.
Thanks,
Hemant Kumar

That's called a loopback path and its there to work around the Windows max
file path length. It's expected behavior.
The values used to determine when to loopback are in rainbow.config with
comments.
On Tue, Jan 12, 2016 at 11:07 PM hemantjangra<EMAIL_ADDRESS>wrote:

Hello,
This is regarding creation of separate folder and creating duplicate 'yml'
file when trying to edit synced items
In case of item edits and creating new items in Sitecore separate folder
is getting created with parent-item id in parallel to grand parent on
physical disk
Even after Re serializing configuration, it is creating separate folder
with parent item id and moving only certain items to that folder
Also tried moving created yml files to correct location and sync back, but
it gives up error pop up on editing items (second time)
Please help and suggest
Thanks,
Hemant Kumar
—
Reply to this email directly or view it on GitHub
https://github.com/kamsar/Unicorn/issues/100.

Thanks a lot, missed that setting. It definitely helped.


chore: Add wdio test for trace with replay behavior

Please add a one-paragraph summary here, suitable for a release notes description. This will help with documentation.

Overview
Follow up automated testing to #545 and #583 .
Related Issue(s)
NR-139661
Testing
Negligible src code change. Double check the wdio tests added.

https://github.com/newrelic/newrelic-browser-agent/actions/runs/5417909691

https://github.com/newrelic/newrelic-browser-agent/actions/runs/5684537511


Add remote logging/error handling in web3torrent

Add something like sentry to handle logging to a remote server.

Closing in favour of #1519


Bug/price fix

Q
A

Branch?
develop / bug/price-fix

Bug fix?
yes

New feature?
no

BC breaks?
no

Fixed tickets
#...

merged manuallt in all in one


Causal Broadcast as default broadcast

The first implementation is obselete and need to be rebuilt:

Use of https://github.com/Chat-Wane/version-vector-with-exceptions in brodcast.js
Add a customized AntyAntropy mechanism in order to retrieve old missed files

Done and close. #13


Merge testing branch into main after alot of work :)

Changes still coming i just thought it would be easier if it was in the main branch

Pray for nothing to go wrong


IE11 HierarchyRequestError

Hi,
We received an issue from a client using an older version of IE11 - version 11.0.9600.18837. It works in the version we have on our machines, which is 11.608.15063.0. Here are screenshots from their machine:

This is the script src of polyfill.io we're using:
https://cdn.polyfill.io/v2/polyfill.min.js?features=default,Array.prototype.includes,Array.prototype.find,Element.prototype.remove
Any help on this would be appreciated.
Thanks.

I think this is another instance of #875.  I ran into this on Android 4.4.3 webview.  I added the gated flag, which kept the unnecessary Element polyfill from executing.  Try
cdn.polyfill.io/v2/polyfill.min.js?features=default|gated,Array.prototype.includes,Array.prototype.find,Element.prototype.remove

Thanks, I'll try it out. We're not going to deploy until after the new year. I will comment back if this fix solves the issue.

+1, I get this error as well.

@marc-bouvier Thank you for the detailed bug report! I think I know how to solve the issue because of your excellent reproduction steps :-)

So... any news on this? We are seeing this problem in production on certain machines now, too.

+1 Any new on this?

This is still an issue when using the flags=always option. This html file will trigger the error on IE11:
<html>
<head>
  <script src="https://polyfill.io/v3/polyfill.js?flags=always"></script>
</head>
</html>

It is recommended to not use always on all polyfills without  also including gated on all polyfills for this very reason.
What is your use-case for https://polyfill.io/v3/polyfill.js?flags=always? Perhaps we can solve your issue without having to resort to always including the polyfills even when a browser does not require them.

What does gated,always even mean? I would expect this to be to a OR type of situation.
The issue that I'm having is that the fetch polyfill (and maybe the others as well) is not being loaded in IE11 and some versions of the Facebook browser. The strange thing is that it's loaded correctly in the VM I have with IE11 and on crossbrowsertesting.com, so I was trying to get the polyfills to always load.


How to Search/hoover on filtered graph

Hi,
I Used Sigma.JS export template in Gephi to generate a graph. I have JS Files auto generated in the folder.Below are my questions.

I need a filter on node property (say:Facebook,youtube etc) and once i get filtered graph, i want to search and hover what i need in the filtered nodes. Is this possible ?
Also, in filter plugin example, i see category is colored. In my case, property which i want to use for the filter will not be colored and the colors will be based on another property.
I want to know what is the difference between group selector and filter plugin. As i understand both are filtering out the nodes which we don't select.

For my case, which one is better group selector or filter ?
Thanks

The Gephi plugin is actually based on a legacy version of sigma (0.1), which not many people around here have experience with. Everything you're looking for is possible using sigma's current version, but would require you to set up another template I guess.
The group selector in that template is actually pretty equivalent in functionality compared to a filter in the current version's filter plugin.

Thanks...do you think if i export to JSON format from Gephi and then use JSON file to load to Sigma.JS ? will this work for using sigmaJS plugins and customize what i need ?
And also i am a beginner in SigmaJS...any pointers on how to use the plugins and do the code changes etc ?

That should work indeed, I think Gephi exports the JSON in the exact format which sigma expects.
As to how to begin, try to make good use of all the available examples, and make sure to search the Github issues and Stack Overflow for any answers to questions you may have - a lot has been asked before :-)


⚠ Bofrost.nl has degraded performance

In 060f224, Bofrost.nl (https://www.bofrost.nl) experienced degraded performance:

HTTP code: 200
Response time: 1622 ms

Resolved: Bofrost.nl performance has improved in 89ba114 after 7 minutes.


includes: rework the includes across the project

This reworks the includes to select between building under the Linux
kernel and Linux user space.
Signed-off-by: Daniel P. Smith<EMAIL_ADDRESS>

Reviewed-by: Ross Philipson<EMAIL_ADDRESS>


add Backup list from client

there are situations were we are not aware what is the current backup ID in order to make that available to the users
so Weaviate will support backup list from 1.27+ and in order for clients users to be able to list backups in progress without providing ID
that is the new specification for backup list

linked issues:
https://github.com/weaviate/java-client/issues/298
https://github.com/weaviate/weaviate-go-client/issues/241
https://github.com/weaviate/typescript-client/issues/189


Beatless Intermission

So I didn't want to put this into a pull request since I couldn't get it to work when I attempted it (multiple different ways), but there's a series called Beatless that has some really dumb things in which there are 4 recap episodes spread throughout the 24 episodes it has. These episodes are 6, 11, 17, and 20, of which they each displace the episode count by 1, so in actuality the series should has aired 20 episodes (which both MAL and Kitsu list correctly). So episodes 7-10 should equal 6-9, 12-16 -> 10-14, 18-19 -> 15-16, and 21-24 -> 17-20 (this is also the same for Anilist). Then 6, 11, 17, and 20 should represent episodes 1-4 of Beatless Intermission, which is a listing on MAL and Kitsu.

Note that Amazon Prime was the only one that merged the Intermissions. Fansubs and Raw sources of Beatless only go up to 20

MAL and Kitsu have separate entries for Intermission and Final Stage, whereas AniList has Final Stage appended to the series. In other words, all services are consistent with the first 20 episodes, leaving the recap episodes of Intermission out.
The situation with the official and fansub releases is complicated, though. Creating rules to cover some of them would cause incorrect redirections for the others. I don't think we should do that in this case.

@wopian HorribleSubs goes up to 24 which is primarily the downloaded version on nyaa

HorribleSubs goes up to 24 which is primarily the downloaded version on nyaa.

Which is a rip of the Amazon Prime stream. HS isn't a fansub group.

Which is a webrip of the Amazon Prime stream. HS isn't a fansub group.

Ignoring that they explicitly state otherwise on their website (which of course could be deceit), your note implies that there is a significant group of viewers of the series that are not benefiting from the rule change that I suggest in the original post, when in fact it's more than just the opposite.
Just judging by numbers, those who downloaded from HorribleSubs number almost 80x more than the only other FanSub group (Asuka Subs) on the last episode of the series (11811 vs 148 on the sum of the torrents).
All in all, I would still say the change would be beneficial to the majority of English watchers of the series. But like I said, if anime-relations doesn't have a way to already implement such rules, then it would be fine to ignore them.

The rules would be something like this:
# Beatless -> ~ Intermission
- 36516|13939|?:6 -> 37277|41051|?:1
- 36516|13939|100245:7-10 -> 36516|13939|100245:6-9
- 36516|13939|?:11 -> 37277|41051|?:2
- 36516|13939|100245:12-16 -> 36516|13939|100245:10-14
- 36516|13939|?:17 -> 37277|41051|?:3
- 36516|13939|100245:18-19 -> 36516|13939|100245:15-16
- 36516|13939|?:20 -> 37277|41051|?:4
- 36516|13939|100245:21-24 -> 36516|13939|100245:17-20

The thing is, Taiga only redirects invalid episode numbers, which is why only the last rule above would work. If it's already within the allowed range (1-20 in this case), Taiga doesn't check redirections at all. This is intentional, since redirecting valid episode numbers is generally not a good idea.
I decided not to take any action here, but I'll reconsider if we end up seeing more cases like this.

I'll reconsider if we end up seeing more cases like this.

Chuukan Kanriroku Tonegawa (24 eps) and its spin-off 1-nichi Gaishutsuroku Hanchou (1 ep aired, more might air sometime in the future) which was released as ep 14 of the main show by HorribleSubs?

Yeah, I know, but it's also 1-nichi Gaishutsuroku Hanchou so I thought it's the same case. Now I think it's not, and there was probably no need to make a separate db entry for Hanchou.


formData option

Please how can I use this formData: function (form){
......
} to send data input from form to controller. Jquery file upload

Please check the plugin docks + our wiki page https://github.com/pionl/laravel-chunk-upload/wiki/jquery-file-upload
You return an object containing additional request data you can retrieve from request().


Completed Kata wont display solutions

You have not earned access to this kata's solutions
Solutions are locked for kata ranked far above your rank. Rank up or complete this kata to view the solutions.
I would like to see the alternate solutions to this question, yet it tells me I have to beat it first, which I already have.

its the Ro13 5 kyu question

#1683?

Closing as duplicate of #1683. See https://github.com/Codewars/codewars.com/issues/1683#issuecomment-456951790


add guelma university

adding guelma university

@karimaouaouda-officiel First stage of verification passed, official domain is univ-guelma.dz as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@karimaouaouda-officiel Thank you for your patience while waiting for a review and processing your request. Pull request merged.


feat: support workspace ranges

close #307

I am not sure how the tests are organized in this repo and where should I cover these

I am not sure how the tests are organized in this repo and where should I cover these

You should most likely add fixtures here and add tests in test files like this

Thanks for the review. I will try to make the appropriate changes.

@Andarist too bad. You seem to be the most active contact person.

I'll probably look into that tomorrow.

Thanks for this! A good contribution.


[OpenAI] Azure OpenAI realtime client library for Java first version

Description
Proposal for the Azure OpenAI Realtime Audio Java client library. The client library is based of the TSP spec found here. We want to release this library only in the dev feed for the forseeable future.

Manually created APIView link
Web socket protocol layer ported over from the webPubSubClient library
A more detailed documentation of the OpenAI layer of this client library can be found here
Test coverage parity with the .NET analogous library. (https://github.com/openai/openai-dotnet/tree/main/tests/RealtimeConversation)
Sample coverage parity with the Python library (https://github.com/Azure-Samples/aoai-realtime-audio-sdk/tree/main/python/samples)

Remaining TODOs
This client libary related

More thorough testing of the webSocketClient layer
Figure out test recordings. Currently we only have LIVE tests with resources which are heavily restricted. We may need to disable tests running in the pipeline for now.
Once the roadmap for support for this libabry is clear. Define the release vehicle. For now we just ship in the dev feed.
[x] Populate the ReadmeSamples.java with relevant code snippets.
[x] Add instructions for users to set themselves up with the dev feed in the README

TSP related

Issues this bug for code gen. There is a small issue with how constructors are being generated for RealtimeResponseFunctionCallItem, RealtimeResponseFunctionCallOutputItem and RealtimeResponseMessageItem. I have filed an issue for this here: https://github.com/microsoft/typespec/issues/5157
There is another issue with the RealtimeServerVadTurnDetection which attempts to serialize the values for prefixPaddingMs and silenceDurationMs as String I have opened another issue asking about this:https://github.com/microsoft/typespec/issues/5158
After code gen, since this is a webSocket client library, we can't really utilize what is generated from the operation defined in TSP. Therefore, there is still the need to manually remove the following files:

src/main/java/com/azure/ai/openai/realtime/OpenAIAsyncClient.java
src/main/java/com/azure/ai/openai/realtime/OpenAIClient.java
src/main/java/com/azure/ai/openai/realtime/OpenAIClientBuilder.java
src/main/java/com/azure/ai/openai/realtime/implementation/OpenAIClientImpl.java
src/main/java/com/azure/ai/openai/realtime/implementation/RealtimesImpl.java

API change check
APIView has identified API level changes in this PR and created following API reviews.
com.azure:azure-ai-openai-realtime


Validate subcommand

fixed the path lib stuff for validation @ocefpaf :+1:

fixed the path lib stuff for validation @ocefpaf

You were to fast :smile:
(In my defense I was offline most of the day thought, power outage.)


When using v-bind to set the properties of a dynamic component, it does not work properly

Version
3.1.5
Reproduction link
https://codepen.io/Ruilin/pen/WNjyLNa
Steps to reproduce
Returns an object containing the is property to the dynamic component via V-bind
What is expected?
Dynamic components can load a specified component or HTML element
What is actually happening?
The specified component is not rendered properly

Specify the is attribute directly on the dynamic component, it can work normally

Duplicate of https://github.com/vuejs/vue-next/issues/2279


Add Breadcrumb to Registry that Tracks the Owner of the Package

Hello!

Vote on this issue by adding a 👍 reaction
If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details
Currently, the breadcrumbs of all registry packages does not include an "owner" of the package. It would be helpful to discern between Pulumi owned packages and non-Pulumi owned packages, such as Pulumiverse. This is not a huge deal today as the large majority of the packages are owned by Pulumi.

Affected area/feature
As more community or non-Pulumi owned providers become part of our ecosystem the importance of discerning when something is Pulumi owned or not becomes more important. We should consider adding the package "owner" to the breadcrumb of the package. Would also be nice to be able to search for packages by the owner. Eg- search for all Pulumi owned packages or all Pulumiverse owned packages.

Eg- this is a pulumiverse owned provider. Pulumiverse is listed in the upper right card as the owner, but doesn't appear anywhere in a breadcrumb.


Update index.md

Docs Build status updates of commit 2e3b67c:
:warning: Validation status: warnings

File
Status
Preview URL
Details

toc.json
:warning:Warning

Details

bread/toc.json
:warning:Warning

Details

sysinternals/index.md
:white_check_mark:Succeeded
View

toc.json

[Warning] Error happen when converting toc.json to Pdf. Details: Could not find file 'T:\1fzu\toc.json'.

bread/toc.json

[Warning] Error happen when converting bread/toc.json to Pdf. Details: Could not find a part of the path 'T:\1fzu\bread\toc.json'.

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


Add front-end asset pipeline

It would be nice if this boilerplate could generate a preconfigured taskrunner for front-end assets.
Off the top of my head, the structure could be like this:
├── assets/
│      ├── css/
│      └── js/
├── resources/
│      ├── scss/
│      └── js/
├── .babelrc ( if using ES6 )
├── bower.json  (Probably unneeded)
├── Gruntfile.js
└── package.json

Example package.json and Gruntfile.js can be taken from one of our recent front-end heavy projects. The most important question is whether or not to default to EcmaScript 6 or if there should be different templates for ES6 and ES5.

Do you have templates for the desired files?


chore(frontend): remove import of the third-party js script

 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.


sis-scraper: handle sunday classes

This addresses recent CI failures.

latest push has 22:00 now :+1: