PackageManagment binaries should be installed under  \Modules\PackageManagement\ folder

Problem
It is observed that PowerShell core is loading assembles from its installed folder first (e.g. PowerShell\<IP_ADDRESS>) if exists, even if ipmo with a full path.  For most cases, this behavior seems to be ok.  However for the PackageManagement, we need to allow users to update the PackageManagement via install-module.  The updated binaries will be installed under PowerShell\<IP_ADDRESS>\Modules\PackageManagement.  But these updated assemblies won't get loaded because PowerShell loads the built-in PackageManagement assemblies first.
Proposed Solution
When packaging the next alpha release, PackageManagment binaries should be installed under  PowerShell\<IP_ADDRESS>\Modules\PackageManagement\ folder instead of root  PowerShell\<IP_ADDRESS>\ folder.
FYI:
OneGet  assemblies including .dlls/.ni.dlls:
Microsoft.PackageManagement.ArchiverProviders
Microsoft.PackageManagement.CoreProviders
Microsoft.PackageManagement
Microsoft.PackageManagement.MetaProvider.PowerShell
Microsoft.PackageManagement.NuGetProvider
Microsoft.PowerShell.PackageManagement
Steps to reproduce

Install https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.10/PowerShell_<IP_ADDRESS>-alpha.10-win10-x64.msi
copy any binary , In my case, Microsoft.PackageManagement.dll, to C:\Program Files\PowerShell\<IP_ADDRESS>\Modules\PackageManagement
or any folder such as C:\Program Files\PowerShell\<IP_ADDRESS>\Temp.
ipmo "C:\Program Files\PowerShell\<IP_ADDRESS>\Modules\PackageManagement\Microsoft.PackageManagement.dll"
You will see the C:\Program Files\PowerShell\<IP_ADDRESS>\Microsoft.PackageManagement.dll is imported.

Expected behavior
The assembly under C:\Program Files\PowerShell\<IP_ADDRESS>\Modules\PackageManagement\ should be loaded.
Actual behavior
Any assembly if exists under C:\Program Files\PowerShell\<IP_ADDRESS>, will get loaded first.
Environment data
PS C:\Program Files\PowerShell\<IP_ADDRESS>> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      6.0.0-alpha
WSManStackVersion              3.0
GitCommitId                    v6.0.0-alpha.10
CLRVersion
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
BuildVersion                   <IP_ADDRESS>
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSEdition                      Core

This looks like it is the same for the other modules that are installed with v<IP_ADDRESS> too so would need to be resolved for them as well.

This happens because when running Import-Module <path-to-foo.dll>, powershell first tries to load the assembly using its short name foo via Assembly.Load, and if that fails, it turns to LoadFrom with the file path (https://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/engine/ExecutionContext.cs#L1376).
Therefore, for FullCLR powershell, Import-Module <path-to-foo.dll> would load the GAC'ed foo.dll if there is one:
PS:1> Import-Module F:\temp\Microsoft.PowerShell.Commands.Diagnostics.dll
PS:2> $m = Get-Module "Microsoft.PowerShell.Commands.Diagnostics"
PS:3> $m.ImplementingAssembly.Location
C:\windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Commands.Diagnostics\v4.0_<IP_ADDRESS>__31bf3856ad364e35\Microsoft.PowerShell.Commands.Diagnostics.dll

For CoreCLR powershell, Import-Module <path-to-foo.dll> would load the foo.dll from $PSHome if there is one there, which is the described symptom in this issue.

At any rate, if we want any in-box module to be update-able, then it should not leave the original set of assemblies around after it's updated. So PackageManagement assemblies should be placed within the module folder, at least when we package and release powershell core.

see #2350 which also has this similar issue and would correct this too

At any rate, if we want any in-box module to be update-able, then it should not leave the original set of assemblies around after it's updated.

This issue was moved to PowerShell/PowerShellGet#41

can you help me understand why this is OneGet issue?   If PowerShellCore does not want to handle loading the binareies under root, then at least package them module folder. In this case, \Modules\PackageManagement folder. Reopen it.

This seems to have been resolved in <IP_ADDRESS> with the binaries for PackageManagement being located correctly in C:\Program Files\PowerShell\<IP_ADDRESS>\Modules\PackageManagement\<IP_ADDRESS>\coreclr

@kilasuit Thanks for the confirmation.


Unable to rotate text

I am using version 2.1 from Nuget and I cannot rotate text. The issue is similar to the one reported in #72 and #73
The RotateAngle Property has not been renamed either.
My setup is as follows:
Nuget Package Version: 2.1.0
Platform: WPF

Hi rohaanhamid,
this works fine for  me:

Are you using 2.1.0 it in a WPF application? The RotateAngle property was supposed to be changed to RotationAngle based on #73

You didn't pointed out that.
:)
I use a plain 'Windows Form App (.NET)'

@Gnuelmpf Sorry about that. I should have added more detail.
Anyways, tried the WinForms version of this library and I can confirm that text rotation works as expected.

The WPF Text rotation was not supported before, now I have added a simple implementation that can support the text rotation from latest code.
For example:
var cell = grid.CurrentWorksheet.Cells["D12"];
cell.Style.RotationAngle = 90;

Will get this:

Currently I just added a simple support that rotated text will only aligned to cell center, that means always vertical and horizontal center alignment. I will consider to improve it in future.


landing page gui issue

If the page is narrow, it changes to a text based format

merged and deployed


[iOS] Cancelling download causes promise rejection to be called twice

If you cancel a download task the promise rejection is called twice by the delegate. This checks for -999 status code which indicates the download has been cancelled

Hi, is this something you'd be interested in merging in? Thanks


Any chance of jsx getting implemented

https://github.com/fable-compiler/Feliz.JSX
Is there any chance that something like the above would be added to Sutil?

I'm of the opinion, that the F# HTML DSLs are taking away more than they are bringing to the table.
For somebody doing web apps only occasionally, searching for Feliz style CSS selectors is really cumbersome.
(Its not where  F# really shines).

https://github.com/fable-compiler/Feliz.JSX
Is there any chance that something like the above would be added to Sutil?

Alfonso did create support for Sutil and something like this. I need to dig through and find it.

I'm of the opinion, that the F# HTML DSLs are taking away more than they are bringing to the table.

It's a fair criticism. Personally, I value the (degree of) type-safety + intellisense it provides, but then again, it's always out of date and requires constant maintenance to stay up-to-date. With my own projects, I mix the DSLs regularly with *.css stylesheets, and even my DSL CSS code will fall back to Css.custom ("template-grid-rows", "...") etc

Its not where F# really shines and it makes it really hard to sell F# to JS/TS developers used to JSX.
I think there's a market space for a F# web framework with an option of nice JSX integration.

I appreciate the insight and constructive criticism; I will dig out Alfonso's contribution - I'm hoping it's exactly what you're asking for. If not, it's something very similar

I personally feel that JSX fights against what Sutil helps, which is using the native web vs virtual-DOMs.
By focusing on F# patterns, it allows us to more easily expand things into functions (as a superset of function components) and more quickly/concisely develop pages.
I'll concede there is some learning time, but it is well worth it, and actually educates on proper web standards.
It does take some reset time from the React mindset, but it is totally worth it, since you can pick up any framework to include from there (including React).


[2.0.x] Debian package does not read /etc/influxdb/config.toml file

Steps to reproduce:
List the minimal actions needed to reproduce the behavior.

Install InfluxDB 2.x OSS
Provide /etc/influxdb/config.toml file
Starts it with service

Expected behavior:
/etc/influxdb/config.toml file should be read as default config file.
Actual behavior:
file ignored and influx will start in /var/lib/influxdb/.influxdbv2
Fix suggestion
As systemd service file contains:
EnvironmentFile=-/etc/default/influxdb

We could have for /etc/default/influxdb instead of empty file:
INFLUXD_CONFIG_PATH=/etc/influxdb/config.toml

This should be fixed in the 2.0.3 release for systemd installations (please let me know if you see otherwise). We found a parallel problem in the package's init.d script that will be fixed in 2.0.4.


Unify metronome build script

High-level description
Use the same build script in OSS and EE. This allows us to remove metronome package from EE since it will differ only on configuration.
Corresponding DC/OS tickets (required)

D2IQ-ID JIRA title / short description.

Related tickets (optional)

D2IQ-ID JIRA title / short description.

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[ ] Change log from the last version integrated (this should be a link to commits for easy verification and review): example
[ ] Included a test which will fail if code is reverted but test is not. If there is no test please explain.
[ ] Test Results: [link to CI job test results for component]
[ ] Code Coverage (if available): [link to code coverage report]

@mesosphere-mergebot bump-ee

@mesosphere-mergebot request-review @jeschkies @timcharper

@mesosphere-mergebot label Ready For Review

@mesosphere-mergebot request-review @jeschkies @timcharper

@mesosphere-mergebot changelog-not-required internal change.

@mesosphere-mergebot label Ready For Review

@mesosphere-mergebot request-review @jeschkies @timcharper

@mesosphere-mergebot label Ready For Review


[Manage Messages] Search in Messages

As any User I want to have search functionality,  so that can find needed information not losing time for browsing through all messages pages.
Mockup

If nothing had found:

Acceptance Criteria

User accesses this page from Chats page (US#22).
User should be able to see searched content updated in real-time as they type until no further coincidences found.
Team shall decide which search approach to use.
IF no coincidences found, the message shall be displayed: We couldn't find any result of the given criteria.
The system should search words in:
a. Titles
b. Content.
All search results should be placed in a vertical row in the order of newest chats > oldest chats.
Cross mark for deleting text in the search box shall be available on the right side of the search box

Assumption and Constraints:

Text box shall contain a symbol input limit: 25 symbols.
Search shall start after entering more than 2 symbols.

Epic link
Epic #73
Labels to be added
"User story" ("story"), Priority ("pri: ")
Tasks

[ ] sample task.

At the Assumption and Constraints are written that "Search shall start after entering more than 2 symbols", but at the meeting, we discussed that Search shall start after 3 symbols

@OlenaBobalo At the Assumption and Constraints are written that "Search shall start after entering more than 2 symbols", but at the meeting, we discussed that Search shall start after 3 symbols

@Vladyslava95 "start after 3 symbols" means that the search will start from the 4th symbol. :-)
As I remember we agreed that the search starts from the 3rd symbol. Don't we?

@OlenaBobalo At the Assumption and Constraints are written that "Search shall start after entering more than 2 symbols", but at the meeting, we discussed that Search shall start after 3 symbols

@Vladyslava95 "start after 3 symbols" means that the search will start from the 4th symbol. :-)
As I remember we agreed that the search starts from the 3rd symbol. Don't we?

@OlenaBobalo  oh, I got it. Yeap, the search starts from the 3rd symbol)))) Thx)

Not implemented focusing on searched text


Handle UserEvent in vb.net

Dear all,
I have a userevent registered with asterisk and can see it beeing provdid to the client in wireshark dump. But VB will not handle this event but ignores it.
What did I miss?
My class looks like this:
Public Class ExtCallEvent
Inherits UserEvent
Private callername As String = ""
Private CallerNum As String = ""
Public Event ExtCallEvent(sender As Object, e As ExtCallEvent)

Property callname() As String
    Get
        Return callername
    End Get
    Set(ByVal Value As String)

        callername = Value

    End Set
End Property
Property callnum() As String
    Get
        Return CallerNum
    End Get
    Set(ByVal Value As String)

        CallerNum = Value

    End Set

End Property
Sub RaiseEvents()
    RaiseEvent ExtCallEvent(Nothing, Nothing)

End Sub

Sub New(source As ManagerConnection)
    MyBase.New(source)
End Sub

End Class
In the form class I have declared:
WithEvents Manager As New AsterNET.Manager.ManagerConnection
Public Event ExtCallEvent(sender As Object, e As ExtCallEvent)
Dim WithEvents ueclass As New ExtCallEvent(Manager)
On load I perform:
Manager = New AsterNET.Manager.ManagerConnection(address, port, user, password)
allevents(True)
Manager.Login()
Manager.RegisterUserEventClass(GetType(ExtCallEvent))
My Functions look like:
Public Sub Userevents(sender As Object, e As ExtCallEvent) Handles Manager.UserEvents
msgbox("hi")
End Sub
Public Sub ue_Extcall(sender As Object, e As ExtCallEvent) Handles ueclass.ExtCallEvent
msgbox("hi")
End Sub
But they are not fired when I see the the userdefined event reiggered by
exten => s,n,UserEvent(ExtCallEvent,CallName: ${CALLERID(name)},callNum: ${CALLERID(num)})
and the data in the tcp stream.
Thanks for any help in advance
Jan

seems over complicated to me.
try...
public WithEvents Manager As  AsterNET.Manager.ManagerConnection
 onload

Manager = New AsterNET.Manager.ManagerConnection(address, port, user, password)
allevents(True)
Manager.Login()
Public Sub ue_Extcall(sender As Object, e As AsterNET.Manager.event.ExtCallEvent) Handles Manager.ExtCallEvent
msgbox("hi")
End Sub
(going from memory so forgive mi if you have to tidy some things up...)

Thanks!
The main difference lies in
Handles Manager.ExtCallEvent instead of using ueclass.ExtCallEvent.
I think this might be the solution and I tried it before but it does not work as ExtCallEvent is not an event of Manager.
I have registered the event with asterisk using manger. But this seems not to make it part of manager. How can I solve this?
But even without such  handle I would have expected to find the ExtCallEvent with
Private Sub unhandledEvent(sender As Object, e As AsterNET.Manager.Event.ManagerEvent) Handles Manager.UnhandledEvent  or  Private Sub unhandledUserEvent(sender As Object, e As ExtCallEvent) Handles Manager.UnhandledEvent. But I do not.
Moreover using Private Sub unhandledUserEvent(sender As Object, e As ExtCallEvent) Handles Manager.UnhandledEvent or Public Sub userevents(sender As Object, e As Object) Handles Manager.UserEvents leeds to a disconnect from AMI.
But I found a solution/workaround:
Using Private Sub unhandledEvent(sender As Object, e As Object) Handles Manager.UnhandledEvent
handles the  ExtCallEvent user event as well an I can work from there, filtering it and handling it.


Feature: Reactive var when all collections are loaded on startup of app.

Feature request should be more specific, please take the time to provide information on why you think it's going to be helpful and some use case scenarios. Thank you!

To reduce traffic my app checks on startup if its data is up to date. Only if not it subscribes to collections.
The problem is I don't know when ground:db did finish initialization of my local collections when i start the app (i.e. loading from localstore).
When I do the "is up to date" check in Meteor.onStartup sometimes the local collection is not fully loaded yet (e.g. only 3 of 5 docs are loaded).
Or is there already an event fired?


docs: Transform Readme on markdown style

To make it nice to read on github.
Signed-off-by: Bruno Dilly<EMAIL_ADDRESS>

lgtm


Spotlight + WorldEnvironment fog causes jaggedness.

Godot version
4.0 Alpha 3
System information
Windows 10, 3060
Issue description
My Spotlight is at 500 Energy.

Steps to reproduce
WorldEnvironment Fog
Spotlight
Crank on the energy
Minimal reproduction project
No response

these are clusters that fail to get the light applied, similar issue can be found with reflection probes..


NVM

Please don't mind, it was an issue caused by the old braindecode version that I pinned in Python

Hey @SparklingWasser,
Thank you for reporting, we gonna release soon to solve this issue in the braindecode and in the moabb side.
FYI. @sylvchev

Thanks @bruAristimunha , I will check that out

I personally recommend using moabb 0.5 until we release the new version @SparklingWasser.

@bruAristimunha Thanks a lot, I will try that one. Thank you!


Document git policies

We follow some principles for git, i.e. no merge-commits etc. Should document those in the contributing guide

@markusthoemmes would this work? https://github.com/openwhisk/openwhisk/wiki/Contributing:-Git-guidelines

LGTM, thanks for creating.


Create partitions for a partitioned topic even if topic auto-creation disabled

Describe the bug
Currently, for the persistent topic. If create a new partitioned persistent topic, we also create partitions. So even if users disabled the topic auto-creation, the producers and consumers also can connect to the partitions. But for the non-persistent topic. It needs to enable the topic auto-creation, otherwise, the partitions will not be created since we don't maintain any partition metadata in the metadata service. See https://github.com/apache/pulsar/pull/9107
But, enabled the topic auto-creation will allow any new topics from the producers and consumers. From the Pulsar maintainer perspective, if the partitioned topic created, this means allows to create the partitons of the partitioned topic.
Expected behavior
Even if the topic auto-creation disabled, the partitions should be created automatically if the partitioned topic created.

Move this to the next release

I'll be happy to participate

@codelipenghui can you please share more details on the way you proceed to reproduce the issue ?
Here is how I've tested and the results.
Auto Creation Enabled
By keeping the auto-creation enabled, allowAutoTopicCreation=true, I created a non-persistent partitioned topic:
 bin/pulsar-admin topics create-partitioned-topic non-persistent://public/default/issue-9173 -p 3
The partitioned topic is created but not the partitions.
When I create a new subscription or a producer the partitions are created but also a regular topic with the same as the partitioned topic :

After a certain time of inactivity, the regular topic, auto-created, is deleted.
The partitioned topic and its partitions are not deleted.
Auto Creation Disabled
By disabling the auto-creation, allowAutoTopicCreation=false, I noticed the same behavior except that after a certain time of inactivity both the partitions and the regular topic, auto-created, are deleted. The partitioned topic is kept.
Hence the partitions are auto-created even when the auto-creation is disabled.
The "odd" behavior that I noticed is the auto-creation of that regular topic with the same name as the partitioned topic.
Pulsar version: 2.7.0

@mlyahmed 2.7.0 does not contain https://github.com/apache/pulsar/pull/9029, so you can connect to the non-persistent topic partitions. You can try it based on the last master.

@codelipenghui What if the partitions are created automatically when the partitioned topic is created? Like for persistent topics ?
So we keep a consistent behavior on topics creation.

@mlyahmed For the persistent topic, we can create all partitions when creating the partitioned topic, the metadata for each partition also maintains in the zookeeper. But for the non-persistent topic, we don't need to store any metadata for the partition, so we can't keep consistent with the current persistent topic behavior
I think we can fix the non-persistent topic case directly, if the non-persistent partitioned topic is created, we should allow creating partitions even if the topic auto-creation disabled so that the client able to connect to partitions.

@codelipenghui when the partitions, for non persistent topics, created are those metadata created?

@mlyahmed No, Pulsar does not store any metadata for the non-persistent topic.

@codelipenghui got that thanks !
This auto-creation must be only for partitions right? The current behavior must be kept for the non-partitioned topics. For example, if a new subscription to a non-persistent regular topic and it does not exist the topic must not be created. Right?

Here is a suggestion

It seems non-persistent part of this issue is fixed.
I am glad to fix the case of persistent topics.

@codelipenghui  Here is how I reproduce this case for persistent topics.

set allowAutoTopicCreation=false in conf/standalone.conf
start pulsar standalone with bin/pulsar standalone
create partition topic with bin/pulsar-admin topics create-partitioned-topic persistent://public/default/jason -p 4
successfully produce one message to the topic with bin/pulsar-client produce persistent://public/default/jason --messages "HELLO"
list topics with bin/pulsar-admin topics list  public/default. Here is results:
"persistent://public/default/jason-partition-1"
"persistent://public/default/jason-partition-0"
"persistent://public/default/jason-partition-3"
"persistent://public/default/jason-partition-2"
Everything seems right for now.
Produce one message to one of the partitions with bin/pulsar-client produce persistent://public/default/jason-partition-0 --messages "HELLO". Failed with the following error: org.apache.pulsar.client.api.PulsarClientException$TopicDoesNotExistException: Topic Not Found.
Reproduce one message to the origin partitioned topic with bin/pulsar-client produce persistent://public/default/jason --messages "HELLO". And we got ERROR, here is the main logs for client.

15:00:57.766 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ProducerImpl - [persistent://public/default/jason-partition-0] [null] Creating producer on cnx [id: 0xb84eef3e, L:/<IP_ADDRESS>:59022 - R:localhost/<IP_ADDRESS>:6650]
15:00:57.771 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ProducerImpl - [persistent://public/default/jason-partition-1] [null] Creating producer on cnx [id: 0xb84eef3e, L:/<IP_ADDRESS>:59022 - R:localhost/<IP_ADDRESS>:6650]
15:00:57.772 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ProducerImpl - [persistent://public/default/jason-partition-2] [null] Creating producer on cnx [id: 0xb84eef3e, L:/<IP_ADDRESS>:59022 - R:localhost/<IP_ADDRESS>:6650]
15:00:57.772 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ProducerImpl - [persistent://public/default/jason-partition-3] [null] Creating producer on cnx [id: 0xb84eef3e, L:/<IP_ADDRESS>:59022 - R:localhost/<IP_ADDRESS>:6650]
15:00:57.777 [pulsar-client-io-1-1] WARN  org.apache.pulsar.client.impl.ClientCnx - [id: 0xb84eef3e, L:/<IP_ADDRESS>:59022 - R:localhost/<IP_ADDRESS>:6650] Received error from server: Topic Not Found.
15:00:57.778 [pulsar-client-io-1-1] ERROR org.apache.pulsar.client.impl.ProducerImpl - [persistent://public/default/jason-partition-0] [null] Failed to create producer: Topic Not Found.
15:00:57.778 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ProducerImpl - [persistent://public/default/jason-partition-0] [null] Closed Producer (not connected)
15:00:57.784 [pulsar-client-io-1-1] WARN  org.apache.pulsar.client.impl.ClientCnx - [id: 0xb84eef3e, L:/<IP_ADDRESS>:59022 - R:localhost/<IP_ADDRESS>:6650] Received error from server: Topic Not Found.
15:00:57.784 [pulsar-client-io-1-1] ERROR org.apache.pulsar.client.impl.ProducerImpl - [persistent://public/default/jason-partition-1] [null] Failed to create producer: Topic Not Found.
15:00:57.784 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ProducerImpl - [persistent://public/default/jason-partition-1] [null] Closed Producer (not connected)
15:00:57.789 [pulsar-client-io-1-1] WARN  org.apache.pulsar.client.impl.ClientCnx - [id: 0xb84eef3e, L:/<IP_ADDRESS>:59022 - R:localhost/<IP_ADDRESS>:6650] Received error from server: Topic Not Found.
15:00:57.790 [pulsar-client-io-1-1] ERROR org.apache.pulsar.client.impl.ProducerImpl - [persistent://public/default/jason-partition-2] [null] Failed to create producer: Topic Not Found.
15:00:57.790 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ProducerImpl - [persistent://public/default/jason-partition-2] [null] Closed Producer (not connected)
15:00:57.798 [pulsar-client-io-1-1] WARN  org.apache.pulsar.client.impl.ClientCnx - [id: 0xb84eef3e, L:/<IP_ADDRESS>:59022 - R:localhost/<IP_ADDRESS>:6650] Received error from server: Topic Not Found.
15:00:57.798 [pulsar-client-io-1-1] ERROR org.apache.pulsar.client.impl.ProducerImpl - [persistent://public/default/jason-partition-3] [null] Failed to create producer: Topic Not Found.
15:00:57.798 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.ProducerImpl - [persistent://public/default/jason-partition-3] [null] Closed Producer (not connected)
15:00:57.798 [pulsar-client-io-1-1] ERROR org.apache.pulsar.client.impl.PartitionedProducerImpl - [persistent://public/default/jason] Could not create partitioned producer.
15:00:57.799 [pulsar-client-io-1-1] INFO  org.apache.pulsar.client.impl.PartitionedProducerImpl - [persistent://public/default/jason] Closed Partitioned Producer
15:00:57.799 [main] ERROR org.apache.pulsar.client.cli.PulsarClientTool - Error while producing messages
15:00:57.799 [main] ERROR org.apache.pulsar.client.cli.PulsarClientTool - Topic Not Found.
org.apache.pulsar.client.api.PulsarClientException$TopicDoesNotExistException: Topic Not Found.
at org.apache.pulsar.client.api.PulsarClientException.unwrap(PulsarClientException.java:1019) ~[pulsar-client-api.jar:2.9.0-SNAPSHOT]
at org.apache.pulsar.client.impl.ProducerBuilderImpl.create(ProducerBuilderImpl.java:95) ~[pulsar-client-original.jar:2.9.0-SNAPSHOT]
at org.apache.pulsar.client.cli.CmdProduce.publish(CmdProduce.java:223) [pulsar-client-tools.jar:2.9.0-SNAPSHOT]
at org.apache.pulsar.client.cli.CmdProduce.run(CmdProduce.java:204) [pulsar-client-tools.jar:2.9.0-SNAPSHOT]
at org.apache.pulsar.client.cli.PulsarClientTool.run(PulsarClientTool.java:186) [pulsar-client-tools.jar:2.9.0-SNAPSHOT]
at org.apache.pulsar.client.cli.PulsarClientTool.main(PulsarClientTool.java:222) [pulsar-client-tools.jar:2.9.0-SNAPSHOT]
15:00:57.803 [main] INFO  org.apache.pulsar.client.cli.PulsarClientTool - 0 messages successfully produced

Here is the main error log in server:

15:20:29.192 [pulsar-io-29-8] INFO  org.apache.pulsar.broker.service.ServerCnx - New connection from /<IP_ADDRESS>:59462
15:20:29.318 [pulsar-io-29-8] INFO  org.apache.pulsar.broker.service.ServerCnx - [/<IP_ADDRESS>:59462][persistent://public/default/jason-partition-0] Creating producer. producerId=0
15:20:29.319 [pulsar-ordered-OrderedExecutor-2-0] INFO  org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - Opening managed ledger public/default/persistent/jason-partition-0
15:20:29.320 [bookkeeper-ml-scheduler-OrderedScheduler-3-0] INFO  org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/jason-partition-0] Closing managed ledger
15:20:29.320 [bookkeeper-ml-scheduler-OrderedScheduler-3-0] ERROR org.apache.pulsar.broker.service.ServerCnx - [/<IP_ADDRESS>:59462] Failed to create topic persistent://public/default/jason-partition-0, producerId=0
java.util.concurrent.CompletionException: java.util.NoSuchElementException: No value present
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) ~[?:1.8.0_91]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) ~[?:1.8.0_91]
at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:604) ~[?:1.8.0_91]
at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577) ~[?:1.8.0_91]
at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) ~[?:1.8.0_91]
at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962) ~[?:1.8.0_91]
at org.apache.pulsar.broker.service.BrokerService$3.openLedgerFailed(BrokerService.java:1261) ~[pulsar-broker.jar:2.9.0-SNAPSHOT]
at org.apache.bookkeeper.mledger.impl.ManagedLedgerFactoryImpl.lambda$asyncOpen$8(ManagedLedgerFactoryImpl.java:402) ~[managed-ledger.jar:2.9.0-SNAPSHOT]
at java.util.concurrent.CompletableFuture.uniExceptionally(CompletableFuture.java:870) ~[?:1.8.0_91]
at java.util.concurrent.CompletableFuture$UniExceptionally.tryFire(CompletableFuture.java:852) ~[?:1.8.0_91]
at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) ~[?:1.8.0_91]
at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977) ~[?:1.8.0_91]
at org.apache.bookkeeper.mledger.impl.ManagedLedgerFactoryImpl$2.initializeFailed(ManagedLedgerFactoryImpl.java:397) ~[managed-ledger.jar:2.9.0-SNAPSHOT]
at org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl$1.operationFailed(ManagedLedgerImpl.java:396) ~[managed-ledger.jar:2.9.0-SNAPSHOT]
at org.apache.bookkeeper.mledger.impl.MetaStoreImpl.lambda$getManagedLedgerInfo$2(MetaStoreImpl.java:87) ~[managed-ledger.jar:2.9.0-SNAPSHOT]
at java.util.concurrent.CompletableFuture.uniAccept(CompletableFuture.java:656) [?:1.8.0_91]
at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:632) [?:1.8.0_91]
at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:442) [?:1.8.0_91]
at org.apache.bookkeeper.common.util.OrderedExecutor$TimedRunnable.run(OrderedExecutor.java:203) [bookkeeper-common-4.14.1.jar:4.14.1]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_91]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_91]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_91]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_91]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_91]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_91]
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [netty-common-4.1.63.Final.jar:4.1.63.Final]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]
Caused by: java.util.NoSuchElementException: No value present
at java.util.Optional.get(Optional.java:135) ~[?:1.8.0_91]
at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602) ~[?:1.8.0_91]
... 24 more


python312Packages.pylibjpeg-libjpeg: 2.1.0 -> 2.2.0; enable tests

Description of changes
Routine update with minor refactor and enabling tests.
Note that the pydicom-related tests are skipped even though pydicom is present seemingly because the test for pydicom checks for the presence of as-yet-unreleased pydicom 3.x APIs. Still better than the current situation, though.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

@ofborg build python312Packages.pylibjpeg-libjpeg

@ofborg build python312Packages.pylibjpeg-libjpeg

@Aleksanaa can this get merged? I fixed the previous gdcm build failure on Darwin in another PR but there's now a new Darwin-specific error.

I fixed the previous gdcm build failure on Darwin in another PR but there's now a new Darwin-specific error in that dependency.

So was it finally resolved? I think we can temporarily not enable test before solving the problem.

I fixed the previous gdcm build failure on Darwin in another PR but there's now a new Darwin-specific error in that dependency.

So was it finally resolved? I think we can temporarily not enable test before solving the problem.

It was possible to remove gdcm from the test inputs.


Office Document Edit Error

Please click the link group merger to office website, you will found the error like this
<dubbo:reference interface="com.xxx.MenuService" group="*">
    <dubbo:method name="getMenuItems" merger="true" />
</dubbo:service>

Hi, can u describe your issue more clearly?

@a601942905git Indeed it is a slip in writing, the reference scheme shouldn't be closed by service. Would you like to send a PR to dubbo document which its source code is hosted on here.

@a601942905git
Hi, I open a issue at here:
https://github.com/apache/incubator-dubbo-website/issues/165
Pls focus on this issue.
Would u pls send a pr to fix this issue?


Update Caprine to 0.1.2

https://github.com/sindresorhus/caprine/releases/tag/0.1.2

:+1:

Thank you for the contribution. It was merged directly as b3186022ccca2db3598f8dcc90c614651eb59c66 to keep commit history cleaner. Your contribution is still credited to you.


"Try it out" doesn't work with JSON bodies that don't validate against the schema

I've noticed this in one of our apps, where we use Swagger UI 3 with the generated swagger.json. For POST actions that have a JSON body, clicking in the Execute button doesn't do anything.
You can try it out here:
https://avacloud-api.dangl-it.com/swagger/index.html?url=/swagger/swagger.json#/AvaConversion/AvaConversion_ConvertToAva
Just enable "Try it out", then remove the body and try just sending an empty JSON object like {}. Clicking on the Execute button doesn't do anything, it neither shows a validation error nor does it log anything to the console.
After a bit of debugging (with the prettified swagger-ui-bundle.js), it looks like this here is the error: https://github.com/swagger-api/swagger-ui/blob/master/src/core/utils.js#L495
So, at first glance, this looks like desired behavior. However, it worked in previous versions, and it also works in the latest official SwaggerUI. Ideally, it would just let me send the requests (since some of the required properties are actually just auto-generated read only properties, and thus aren't really required for POSTing JSON), or at least show the errors somehow.

SwaggerUI is bundled with NSwag but is a third-party project. Is the code the same upstream?do we need an update?
If that's the same code upstream, you need to ask to the swaggerUI repo directly

I tried with the latest SwaggerUI, and that worked fine locally for me. I did both checkout their source code directly and serve it via their script, and I also just tried the latest bundle from SwaggerUI. In both cases, it worked for me.
So I think it might just be an update required for SwaggerUI, but I didn't find anything in their releases that would indicate such a bug exists. I think the latest one that's bundled in NSWag is from around February or so, so not too old.
I also searched the original SwaggerUI repo, but from what I understood, the validation can't be disabled. However, I've been unable to really figure out why the validation fails for the bundled version, and why it works with the latest version...

If you could clone this project and try to update the swagger UI dependency and eventually make a PR, that'd be great 👍

Sure, I will😀 Should be ready sometime this evening.


cloudinary 'Must supply cloud_name' problem

Hello @mastermanav09 @Ashish-ash , first of all thank you for your hard work and dedication in making this platform but I have an issue.
I've downloaded your project and set up a cloudinary account with a .env containing all the details, api keys and secrets and everything but i'm encountering the issue of 'Must supply cloud_name' whenever i'm trying to upload a file in create assignment.
this is the error i'm encountering and i'm hoping that you guys can walk me through it.

Hello @ahmedbnr, Thank you for your kind words and for reaching out to us. We appreciate your support and are here to help you with the issue you're facing. Regarding the 'Must supply cloud_name' error, it seems like it is missing from the UPLOAD_CLOUDINARY_URL, we have to specify the cloud_name also in the url itself. Let me know if this works.
Thanks


Emulator - UI actions can clear embedded WebChat messages from view

Version
4.2.148187 Windows and Mac
Describe the bug
Presentation mode clear previous messages from view.
To Reproduce
Steps to reproduce the behavior:

Open bot.
Start typing in messages.
Click on "presentation mode" button (icon looks like a desktop screen)
Presentation mode appears without the messages that were already entered.

Expected behavior
Presentation mode should show the same messages as non-presentation mode.
Screenshots

[bug]

This is fixed in @justinwilaby 's branch for #1394


Removing trailing whitespace

Trailing whitespace removed from cs,json,xml,xaml,ps1,psm1,ps1xml, psd1 files.
The followning command was used:
using namespace System.Text.RegularExpressions

function Remove-TrailingWhitespace {
    param(
        [Parameter(Mandatory, ValueFromPipelineByPropertyName, ValueFromPipeline)]
        [Alias('PSPath')]
        [string] $LiteralPath
    )
    begin {
        $trailingWhiteSpace  = [Regex]::new('(?m)[ \t]+\r?$', [RegexOptions]::Compiled)
    }

    process {
        try {
            $LiteralPath = (Resolve-Path $LiteralPath).ProviderPath
            if (Test-path -PathType Leaf $LiteralPath) {
                $content = Get-Content -Raw -LiteralPath $LiteralPath
                if ($null -ne $content) {
                    $trimmedContent = $trailingWhiteSpace.Replace($content, "`r")
                    if ($trimmedContent -ne $content) {
                        # Set-Content fails for some reason with 'Set-Content : Stream was not readable.'
                        [io.file]::WriteAllText($LiteralPath, $trimmedContent, [Text.Encoding]::ASCII)
                        Get-Item $LiteralPath
                    }
                }
            }
        }
        catch {
            Write-Error -Message $_.Exception.Message -TargetObject $LiteralPath
        }
    }
}

Hi @powercode, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, MSBOT;

Can you, please, resolve the conflicts?

@powercode sorry there are conflicts again :(
I know it's pretty annoying.

Just pushed a resolved version

Unhandled Exception: System.IO.IOException: Broken pipe
   at System.IO.UnixFileStream.CheckFileCall(Int64 result, Boolean ignoreNotSupported)
   at System.IO.UnixFileStream.WriteNative(Byte[] array, Int32 offset, Int32 count)
   at System.IO.UnixFileStream.FlushWriteBuffer()
   at System.IO.UnixFileStream.Dispose(Boolean disposing)
   at System.IO.UnixFileStream.Finalize()
Test result file 'pester-tests.xml' not found for test/powershell.
At /home/travis/build/PowerShell/PowerShell/build.psm1:814 char:9
+         throw "Test result file '$testResultsFile' not found for $Tes ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Test result fil...est/powersh
   ell.:String) [], RuntimeException
    + FullyQualifiedErrorId : Test result file 'pester-tests.xml' not found fo
   r test/powershell.

Don't think I'm responsible for that.

There are way too many changes to review and I'm concerned about the potential for problems due to changing the file encoding.
For example, if we test data that used a specific encoding, we would lose the coverage due to a PR like this.

Closing this in favor of #3001.


Unity Crashes when using exported projects [bug]

So when I export the game (amazing frog? is the game i'm using) unity always crashes when loading "small assets"? the game is using unity 2017.3.0f3 so that may be the reason its effected. I've tried re exporting and using 2017.3.0, 2017.3.1, 2017.4.2, 2019 It was the latest full release don't remember the version number. My best guess is either something is corrupt or unity 2017 no longer works with the program. maybe someone with amazing frog? can try using this program on the game to see if its something I did wrong?! thx for the hard work on this useful program!

I need the file to reproduce this issue.

Ok will send in the morning when I have access to my pc

https://drive.google.com/drive/folders/1Ls6BkFYtH9059T6HID4wQTABLzURskWa?usp=sharing these are the game files sorry toke a while to upload

I also encountered similar problems.
unity log:
A default asset was created for 'Assets/Texture2D/light.png' because the asset importer crashed on it last time.
*.png file read error.

@truegamerxy it doesn't look like game files. at least, those aren't game file ripper works with
@Moqi01 without game files I can't check it

I fixed some texture related bugs in 58d1d16742d12075d6518d88fe35dfcd2e61990f . Perhaps, it fixed this issue.

@truegamerxy emmm, I just realized everything is alright with files you provided. Don't know why files downloaded last time turned out to be a junk. If 58d1d16 fix won't help you, tell me and I download files once again and check them.

I watched the performance monitor and right before the crashes unity overloads my ram usage which I have no clue why it would do that. I only have 8gb(this is next on my upgrade list) of ram so maybe its my pc. But I can use unity with other projects fine so i dont really know.

tl:dr: wont work. ram over load.

Make sure you are using at least 2019.2.10 unity version and latest version of ripper.

I just realized that when I tested the new version it launched in 2017 which is what caused the crash. thx for the help


Include object names in Start document

This a change to PlanBase. I'd like to get it in before users start taking data tomorrow.
It would be nice to be able to search on object name:
db(start_time='2016-01-19', detectors='fccd')

where mongo should interpret this as, "all of yesterday's scans that included that fccd as a detector."
This PR adds top-level fields to the Start Document for every category of object ('motor' or 'motors', 'detector' or 'detectors'). This is addition to storing the full reprs in 'plan_args', as we have been doing for some time now.
This also strips out some gratuitous complication from PlanBase. The 'derived_fields' concept is no more. It was supposed to make custom metadata "easy," but it really only made things more complicated.

P.S. This is what the RunStart document looks like with this PR. Unrelated: I really like that RE(plan, print) just works.
In [8]: RE(plan, print)
start {'time':<PHONE_NUMBER>.357652, 'scan_id': 2, 'owner': 'test_owner', 'group': 'Grant No. 12345', 'plan_type': 'AbsScanPlan', 'uid': '4e0e91f6-3468-4b69-9ee3-06932630491f', 'plan_args': {'num': '5', 'start': '1', 'detectors': '[reader: det]', 'motor': 'mover: motor', 'stop': '5'}, 'detectors': ['det'], 'beamline_id': 'test_beamline', 'motor': 'motor', 'config': {'detector_model': 'XYZ', 'pixel_size': 10}}


"inappropriate ioctl for device" for Logitech USB Receiver

When configuring mouse forward for my Logitech MX Vertical (key 0x115, sym mouse 9), it fails to grab or output the correct button event.
Snippet of input-event-codes.h:
#define BTN_FORWARD             0x115

ptt-fix output:
Apr 21 16:45:36.628 WARN ignoring device
        device=/dev/input/by-id/usb-Logitech_USB_Receiver-if02-mouse
        reason="failed to open"
        err="get device name: inappropriate ioctl for device"

If I've configured this incorrectly, feel free to let me know.
If the ioctl request itself is the issue I can go ahead and grab strace output so we can pick apart the file descriptor.

Are there any other devices under /dev/input that the mouse could correspond to? A number of physical devices show up as several different devices under there sometimes, and usually only one or two will work. For example, my mouse shows up as all four of
usb-04d9_USB_Laser_Game_Mouse-event-if02
usb-04d9_USB_Laser_Game_Mouse-event-mouse
usb-04d9_USB_Laser_Game_Mouse-if01-event-kbd
usb-04d9_USB_Laser_Game_Mouse-mouse

but usb-04d9_USB_Laser_Game_Mouse-mouse doesn't work as only the others support the necessary ioctl produce the events that ptt-fix looks for. The reason that there are so many is because, for example, usb-04d9_USB_Laser_Game_Mouse-if01-event-kbd is the one that yields events that correspond to keyboard keys that have been mapped to mouse buttons.

As there's been no response for several weeks now, I'm going to assume that you managed to fix the issue and close this. Feel free to comment again if that is not the case.


labelWidth doesn't affect DatBoolean e.g. checkbox label width

labelWidth doesn't affect DatBoolean e.g. checkbox label width, it remains at 40% width default.
This is the component which could use labelWidth the most.

Fix is in https://github.com/claus/react-dat-gui/pull/33
Which would let you do something like this:
<DatGUI labelWidth="40%">
    <DatBoolean labelWidth="200px" />
</DatGUI>


Estimator should be able to partially load checkpoints

Describe the problem
When training neural networks and experimenting with different architectures or simply adapting a model to a new number of classes, it is crucial to be able to reuse an existing trained model as far as possible. For example, if I want to use the inception-v4 architecture and train it on 700 instead of 1000 classes, I need to be able to load all layers but the logit ones.
Unfortunately, this is not possible (at least I wasn't able to find a way) with the Estimator API. Whenever the size of a variable in my model changes or I add or remove a variable, the Estimator cannot load an existing checkpoint any more. This is a major drawback making the Estimator basically unusable for developing a new architecture or adapting an existing one by iteratively adapting the model.
Requested features

It should be possible to tell the Estimator that it's ok if some variables aren't found in the checkpoint. Those should simply be initialized as if no checkpoint would be loaded.
It should be possible to specify scopes that should not be loaded from the checkpoint or to specify a flag that says something like "just don't load variables that have a different shape / that you can't load".
Be able to load an existing checkpoint from a different path than the Estimator's model_dir when there is no checkpoint in the model_dir yet. This is helpful to start training from a different checkpoint without manully having to copy those model's checkpoints into the new model_dir

Inspiration
This request has been inspired by the parameters you can specify to the train_image_classifier.py script from the tensorflow-models/slim directory. There you have the parameters --checkpoint_exclude_scopes, --ignore_missing_vars and --checkpoint_path.
Of course, one could say it's possible to implement this manually. But I think these are basic functionalities for everyone doing a bit more deeplearning than only the tutorial. That's why I think this should be part of the otherwise easy to use Estimator API.

Thanks for reaching out. This is very broad as far as feature requests go. I'll let @honkentuber respond, since he works on tf.learn.

If you're using a custom estimator, and supplying your own model_fn, you can call init_from_checkpoint. The checkpoint_dir arg can be different from your model_dir, and assignment_map allows you to map only the subset of variables you want to load.
Here's the API doc for 1.1, in 1.2 it will be available as tf.train.init_from_checkpoint.
tensorflow.org/api_docs/python/tf/contrib/framework/init_from_checkpoint

@honkentuber
I'm trying to do as you suggested, but when I call init_from_checkpoint from my model_fn it somehow mess the init operation...
I'm getting:
RuntimeError: Init operations did not make model ready for local_init.  Init op: group_deps, init fn: None, error: Variables not initialized: ...
the trained model_dir is different then the old one, but both options didn't work for me.
any suggestions?

as suggested here: https://stackoverflow.com/questions/43336553/how-to-use-tf-train-monitoredtrainingsession-to-restore-only-certain-variables
I edited prepare_session function (just commented out: # if not is_loaded_from_checkpoint:)
and now it works. I assume it can have bad effect in other scenarios but right now it looks like a bug

@honkentuber: Thanks for your response and sorry for my delay!
How exactly would I use init_from_checkpoint in the model_fn? And how would I test if this is the first run of my model (which is when I want to load the checkpoint from elsewhere) and when I continue training in the same folder (then I'd like to use the normal checkpoint loading). Can you outline a small example?

Hi, I just had the same issue, follow below a possible workflow.
.
.
 def _model_fn(features, labels, mode, params, config):
    graph = create_your_graph_here(features, labels)
    tf.contrib.framework.init_from_checkpoint("./checkpoint_path", {"scope/":"my_scope/"})
    .....

Cheers

Hello,
could you clarify how init_from_checkpoint's assignment_map should be defined?
I'm trying to restore weights from an InceptionResnet_v2 checkpoint, but I want to exclude the InceptionResnetV2/Logits and InceptionResnetV2/AuxLogits scopes.
I get the variables to restore via tf.contrib.slim.get_variables_to_restore(exclude=['InceptionResnetV2/Logits', 'InceptionResnetV2/AuxLogits']) and extract the scopes from the resulting list via scopes = { os.path.dirname(v.name) for v in variables_to_restore }. If I build the assignment_map as {s+'/':s+'/' for s in scopes}, the model init fails trying to restore InceptionResnetV2/Logits/Logits/biases. In scopes there is no */Logits/*, so why is init_from_checkpoint loading those as well from the checkpoint?

I've managed to use init_from_checkpoint, but until there I've made some mistakes.
First created a hook object (instance of a class that inherits from tf.train.SessionRunHook ) to load pretrained weights after a session is created ( on after_create_session method). But for some reason the string "Adam" was appended at the end of each variable name and then the variables could not be found in the checkpoint file. Yes, "Adam" due to the optimizer being used.
Afterwards, I tried to execute init_from_checkpoint right after my network architecture is defined on model_fn and it seems to work. The following is the snippet I'm currently using:
def model_fn(features, labels, mode, params):
    is_training = mode == ModeKeys.TRAIN
    logits = cnn_architecture(features, is_training=is_training)  # Architecture is defined here
    tf.train.init_from_checkpoint(FLAGS.checkpoint_path,{"InceptionV4/":"InceptionV4/"})
    ...

When the training starts the following appears on my console:
...
INFO:tensorflow:Initialize variable InceptionV4/Mixed_5c/Branch_2/Conv2d_0a_1x1/weights from checkpoint ../checkpoint_models/inception_v4.ckpt with InceptionV4/Mixed_5c/Branch_2/Conv2d_0a_1x1/weights
INFO:tensorflow:Initialize variable InceptionV4/Mixed_7c/Branch_1/Conv2d_0c_3x1/BatchNorm/moving_mean from checkpoint ../checkpoint_models/inception_v4.ckpt with InceptionV4/Mixed_7c/Branch_1/Conv2d_0c_3x1/BatchNorm/moving_mean
...

I hope it helps you

Would be nice to have an official example in the docs, showing how to use the Estimators API when some weights should be initialized from an existing checkpoint in the very first step and all others should be initialized randomly. @honkentuber

@jonasrauber AMEN!
Until then, I finally managed to find a way to make it work, see my question and answer here: https://stackoverflow.com/q/47867748/3214872
The question's code, amended with the answer's fix, can be used as a working example for this use-case.

Partially related to the fine tuning case in https://github.com/tensorflow/tensorflow/issues/14713.

Nagging Awaiting TensorFlower: It has been 14 days with no activity and the awaiting tensorflower label was assigned. Please update the label and/or status accordingly.

This issue should hopefully be searchable enough to be the definitive documentation. Please note StackOverflow has better searchability. We might also welcome a PR adding docs for this to the official site. Thanks everyone for reaching out.

How this is related to the new warm start parameter in master?

https://github.com/tensorflow/tensorflow/issues/14713#issuecomment-361866951

Supposing that we want to accept this Stackoverflow solution can we document at least how to handle this with estimator created by tf.keras.estimator.model_to_estimator API?

I'm using the following SessionRunHook to warm_start with an exclude=["Logits"] filter––useful for excluding the last FC layer of a pre-trained model. but shouldn't it be easier?
class RestoreHook(tf.train.SessionRunHook):
  """restores model from a checkpoint_path with include/exclude variable filtering from
  see:
   - https://www.tensorflow.org/api_docs/python/tf/contrib/framework/assign_from_checkpoint_fn
   - https://www.tensorflow.org/api_docs/python/tf/contrib/framework/get_variables_to_restore

  args:
    checkpoint_path: full path to checkpoint
    include: an optional list/tuple of scope strings for filtering which
      variables from the VARIABLES collection to include. None would include all
      the variables.
    exclude: an optional list/tuple of scope strings for filtering which
      variables from the VARIABLES collection to exclude. None it would not
      exclude any.

  use in combination with tf.Estimator `training_hooks`

  usage:
    def main():
      checkpoint_path = "/path/to/checkpoint/file.ckpt"
      restore_hook = RestoreHook(checkpoint_path, exclude=['Logits'])
      estimator = tf.estimator.Estimator( model_fn=model_fn,
                                          warm_start_from=None
                                         )
      estimator.train(, hooks=[restore_hook,])

  """
  def __init__(self, checkpoint_path, include=None, exclude=None ):
      self.checkpoint_path = checkpoint_path
      self.include = include
      self.exclude = exclude

  def after_create_session(self, session, coord=None):
      # delay until AFTER graph is created
      var_list = tf.contrib.framework.get_variables_to_restore(include=self.include, exclude=self.exclude)
      self.init_fn = tf.contrib.framework.assign_from_checkpoint_fn(
              checkpoint_path,
              var_list=var_list,
              ignore_missing_vars=True
              )
      if session.run(tf.train.get_or_create_global_step()) == 0:
          # suppress WARN
          log_level = tf.logging.get_verbosity()
          tf.logging.set_verbosity(tf.logging.ERROR)
          self.init_fn(session)
          tf.logging.set_verbosity(log_level)

@mixuala it is easier (from version 1.6, at least). Look at the warm start parameter @bhack mentioned, it does essentially what your hook does (allows you to filter what variables to restore based on a regexp on the var names)

Seems warm_start parameter can only specify the variables to restore with single reg string or use  var_name_to_vocab_info. Is it possible to filter with a list, or we can choose to ignore the missing variables in old checkpoint.

You can explicitly pass in a list of Variables or list of strings if you want to avoid regexp + TRAINABLE_VARIABLES (docstring).

Thanks, I check again and seems r1.9 add this feature

I apologize for the convoluted (no pun intended) API here -- there are users who want to warm-start variables from the GLOBAL_VARIABLES collection (such as batch norm or optimizer accumulator vars, which aren't added to TRAINABLE_VARIABLES), and we also needed to ensure backwards compatibility.  So tangibly, we have the following options for vars_to_warm_start:

regexp, which applies tf.get_collection to TRAINABLE_VARIABLES
list of tf.Variable, which is explicit
list of strings, each a regex scope to provide to tf.get_collection on GLOBAL_VARIABLES
None

An upcoming release's documentation should make this more clear.

I have a similar issue. I try to load a variable and train with Adam which had not been trainable in the previous model. For example I try to load: "graph/logits/conv/biases" but "graph/logits/conv/biases/Adam" is loaded too, which does not exist in my checkpoint and results in an error.
I am wondering why there is no name check in this line  (Amirtha1189 mentioned above) in file "tensorflow/python/training/warm_start_util.py" :
        list_of_vars += ops.get_collection(ops.GraphKeys.GLOBAL_VARIABLES,
                                           scope=v)

If it would be:
        for i in ops.get_collection(ops.GraphKeys.GLOBAL_VARIABLES,
                                           scope=v):
            if v == i.name:
                list_of_vars += i

instead.
The utility variabels (Adam, ExponentialMovingAverage) would be excluded. And there would still be the option to get them by passing in the whole name.

I've managed to use init_from_checkpoint, but until there I've made some mistakes.
First created a hook object (instance of a class that inherits from tf.train.SessionRunHook ) to load pretrained weights after a session is created ( on after_create_session method). But for some reason the string "Adam" was appended at the end of each variable name and then the variables could not be found in the checkpoint file. Yes, "Adam" due to the optimizer being used.
As my second attempt, I tried to execute init_from_checkpoint right after my network architecture is defined on model_fn and it seems to work. The following is the snippet I'm currently using:
def model_fn(features, labels, mode, params):
    is_training = mode == ModeKeys.TRAIN
    logits = cnn_architecture(features, is_training=is_training)  # Architecture is defined here
    tf.train.init_from_checkpoint(FLAGS.checkpoint_path,{"InceptionV4/":"InceptionV4/"})
    ...

When the training starts the following appears on my console:
...
INFO:tensorflow:Initialize variable InceptionV4/Mixed_5c/Branch_2/Conv2d_0a_1x1/weights from checkpoint ../checkpoint_models/inception_v4.ckpt with InceptionV4/Mixed_5c/Branch_2/Conv2d_0a_1x1/weights
INFO:tensorflow:Initialize variable InceptionV4/Mixed_7c/Branch_1/Conv2d_0c_3x1/BatchNorm/moving_mean from checkpoint ../checkpoint_models/inception_v4.ckpt with InceptionV4/Mixed_7c/Branch_1/Conv2d_0c_3x1/BatchNorm/moving_mean
...

OBS: I'm using TF-1.4
I hope it helps you

I got this message, in tf.logging.DEBUG and not in tf.logging.INFO, for TF-1.12 hopefully it is helpful.

I've managed to use init_from_checkpoint, but until there I've made some mistakes.
First created a hook object (instance of a class that inherits from tf.train.SessionRunHook ) to load pretrained weights after a session is created ( on after_create_session method). But for some reason the string "Adam" was appended at the end of each variable name and then the variables could not be found in the checkpoint file. Yes, "Adam" due to the optimizer being used.
As my second attempt, I tried to execute init_from_checkpoint right after my network architecture is defined on model_fn and it seems to work. The following is the snippet I'm currently using:
def model_fn(features, labels, mode, params):
    is_training = mode == ModeKeys.TRAIN
    logits = cnn_architecture(features, is_training=is_training)  # Architecture is defined here
    tf.train.init_from_checkpoint(FLAGS.checkpoint_path,{"InceptionV4/":"InceptionV4/"})
    ...

When the training starts the following appears on my console:
...
INFO:tensorflow:Initialize variable InceptionV4/Mixed_5c/Branch_2/Conv2d_0a_1x1/weights from checkpoint ../checkpoint_models/inception_v4.ckpt with InceptionV4/Mixed_5c/Branch_2/Conv2d_0a_1x1/weights
INFO:tensorflow:Initialize variable InceptionV4/Mixed_7c/Branch_1/Conv2d_0c_3x1/BatchNorm/moving_mean from checkpoint ../checkpoint_models/inception_v4.ckpt with InceptionV4/Mixed_7c/Branch_1/Conv2d_0c_3x1/BatchNorm/moving_mean
...

OBS: I'm using TF-1.4
I hope it helps you

I got this message, in tf.logging.DEBUG and not in tf.logging.INFO, for TF-1.12 hopefully it is helpful.

Thank you very much. Especially message log under tf.logging.DEBUG was very helpful.

When using estimator for training, argument warm_start_from in tf.estimator.Estimator() could be used to load pretrained model and it could be tf.estimtor.WarmStartSettings() which accepts regex to capture variables to warm-start.
For example, if we want to exclude dense layer for fine tuning:
warm_start_settings = tf.estimator.WarmStartSettings(model_checkpoint_path, vars_to_warm_start='^(?!.*dense)')
...
est = tf.estimator.Estimator(model_fn=model_function, model_dir=model_dir, config=run_config, warm_start_from=warm_start_settings)
...

@CasiaFan But how to handle situations that the vars in pretrained model change their scope in current model? It seems the param var_name_to_prev_var_name  doesn't accept regex format

@honkentuber  I try to address this problem as you said.But I meet a new problem. I load partially variable from a pretrain_dir. and use the model_dir to save the new model. So I write the resotre code part in the model_fn.
But when is start training, every iteration could restore from the pretrained checkpoint and model_dir. I just want it resotre from the pretrain_dir in the beginning.
`
def gan_model_fn(features, labels, mode, params):
model = transformer.Transformer(params, mode == tf.estimator.ModeKeys.TRAIN, mode=mode)

if mode == tf.estimator.ModeKeys.TRAIN:

    TENSORS_TO_LOG = {
        "bt_loss" : bt_loss,
    }

    logging_hook = tf.train.LoggingTensorHook(
        TENSORS_TO_LOG,
        every_n_iter=100)

    print("Right Here !!!")
    train_op = gen_train_op(bt_loss, params)

    print("!!!!!!!!!!!!!restore init from pretrain checkpoint")
    checkpoint_file = tf.train.get_checkpoint_state(params.pretrain_dir).model_checkpoint_path
    variables = tf.global_variables()
    var_keep_dic = get_variables_in_checkpoint_file(checkpoint_file)
    var_keep_dic.pop('global_step')

    assignment_map = {}
    for v in variables:
        if v.name.split(':')[0] in var_keep_dic:
            print('Varibles restored: %s' % v.name)
            assignment_map[v.name.split(":")[0]] = v
    tf.logging.info("Restoring from {}".format(checkpoint_file))
    tf.train.init_from_checkpoint(checkpoint_file, assignment_map)

    return tf.estimator.EstimatorSpec(
        mode=mode,
        loss=bt_loss,
        train_op=train_op,
        training_hooks=[logging_hook])
else:
    tf.logging.info("----------the mode is {} ---------".format(mode))
    return tf.estimator.EstimatorSpec(
        mode=mode,
        loss=bt_loss,
        predictions={"predictions": gen_samples},
        eval_metric_ops=metrics.get_eval_metrics_rl(gen_samples, labels, params)
    )


Feature Request: Analog of TargetReason (from Bukkit).

Bukkit has TargetReason which allows to check, why agent (entity) selected target (other entity).
Sponge's SetAITargetEvent does'nt have such analog.
It makes impossible to discover why entity selected other entity as target.
Bukkit link: https://github.com/Bukkit/Bukkit/blob/master/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java#L79
Also, there is no EventContextKey for it.

I'd imagine there's going to be some interesting heuristics, but this should be likely moved to API because it needs support for it.
thoughts, @Zidane ? I'm thinking this is more cause object tracking that needs to be provided, versus what the enum provides.

I did not know what to choose between Common or API, and I chose Common, so:
Do I need to create new issue on API?
And should I close this one?

To answer the question of whether it belongs in Common or the API is this: How do you as a plugin developer intend to use this "feature" port of the enums? Is it through an enum type from the event context? from the event? from additional causes that can include things like "oh, target change caused by player, itemstacksnapshot.... the player attacked the entity?" is the sort of question I have for you. Because if it's something that is cause or context related, we can keep it in common, but if you need a class representation for a "type", we'll need to make an issue to add it to the API.

yes.


password_change.html is missing

Hi Dani Hodovic,
congratulations for you great job!
Not sure if it is part of the roadmap but I noticed that the password_change.html, email.html are missing!
link

Fixed


Added changes

@Julias0 is it possible to redirect the user to the required settings from that info message?


[BUG] org.apache.shenyu.loadbalancer.cache.UpstreamCheckTaskTest.testRun test fail

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
org.apache.shenyu.loadbalancer.cache.UpstreamCheckTaskTest.testRun test fail sometimes.
see https://github.com/apache/incubator-shenyu/runs/3706238594
Expected Behavior
No Exception
Steps To Reproduce
No response
Environment
ShenYu version(s):

Debug logs
No response
Anything else?
No response

pls assign to me


apktool can't change imageview

Information

Apktool Version (apktool -version) -  2.4.0
Operating System (Mac, Linux, Windows) -windows
APK From? (Playstore, ROM, Other) - other

when I change an old image with new one after decombiling and then build the apk
the image doesn't change after I run the app in my phone it only view the old image
any help will be appreciated
Stacktrace/Logcat
Include stacktrace here

Steps to Reproduce

apktool

Frameworks
If this APK is from an OEM ROM (Samsung, HTC, LG). Please attach framework files
(.apks that live in /system/framework or /system/priv-app)
APK
If this APK can be freely shared, please upload/attach a link to it.
Questions to ask before submission

Have you tried apktool d, apktool b without changing anything? yes
If you are trying to install a modified apk, did you resign it? yes
Are you using the latest apktool version? yes

This doesn't look related to Apktool. Closing.


🧑💻 improve deploy script

Fix #37

[x] add erc721 transfer ownership to set minter as owner
[x] update protostar version
[x] fix deploy script according to latest protostar modifications

In the file "protostar,toml", you need to change the target value with:
["protostar.config"]
protostar_version = "0.3.2"

In the file "protostar,toml", you need to change the target value with:
["protostar.config"]
protostar_version = "0.3.2"

Please see my note here.

@Bal7hazar , I don't know if you saw it, I asked question on codeline during the review.
In addition, as I approved and merge the PR https://github.com/Carbonable/carbonable-starknet/pull/44
Now we need to pull the last main branch before merge this PR.

@cloudvenger, I merged the latest main.
I'll merge after your approval.


[feat] Use a specialized model for JSON parsing

Description
Apparently, some models are better at following instructions than others. In my own experience, chat models are a bit more likely to butcher JSON output e.g.
With that in mind, it would be cool to use an expensive chat model to process the request and let it respond in spoken text. Then a model that behaves very well w.r.t. output structure can use that text output and generate the structured output.
Why is this needed
This is needed if you need a creative model but you really need structured output.

I had the experience of chat models butchering JSON too, then I put the instructions into the system prompt, and achieved comparable performance to ordinary completion models.
In guardrails this means including an <instructions> tag. Following the example from guardrails_with_chat_models.ipynb:
<rail version="0.1">

<output>

    <list name="fees" description="What fees and charges are associated with my account?">
        <object>
            <integer name="index" format="1-indexed" />
            <string name="name" format="lower-case; two-words" on-fail-lower-case="fix" on-fail-two-words="reask" />
            <string name="explanation" format="one-line" />
            <float name="value" format="percentage"/>
        </object>
    </list>
    <object name="interest_rates" description="What are the interest rates offered by the bank on savings and checking accounts, loans, and credit products?" />
</output>

<instructions>
You are a helpful assistant only capable of communicating with valid JSON, and no other text.

@json_suffix_prompt_examples
</instructions>

<prompt>
Given the following document, answer the following questions. If the answer doesn't exist in the document, enter
`null`.

{{document}}

Extract information from this document and return a JSON that follows the correct schema.

@xml_prefix_prompt

{output_schema}
</prompt>

</rail>

Hey @irgolic, thanks for the example! Yeah, I know there is a lot you can do to make the LLM behave, but what if you want your model to be creative (high temp) and still need a structured output? I have tried to tune prompting, and in the end, you might get it to work. Until it breaks :)
I like the idea of using two models, a creative expensive model and a cheap model that understands language but will always behave w.r.t. structured output.
Anyway, if you think it's overkill, I'm happy to close this issue.

If you need your output to be creative but still need structured output, maybe try running it in two steps – firstly to get a freeform response, secondly to cast that freeform response to a structured form.
No plans to use specialized models for now, so I'm closing this issue.


Video freezes every 20/30 seconds

The video freezes every 20/30 seconds for 4/5 seconds.
Aqara G3 with HomeKit
Error demuxing input file 0: Operation timed out
rtsp://<IP_ADDRESS>:8554/aqara_g3?audio: Operation timed out ??

any news?


Implement ValidateBasic function for packetV2

in packet-server's SendPacket, after https://github.com/cosmos/ibc-go/pull/7254 is merged

@bznein can I work on this issue?

Hi @chandiniv1 apologies but this has actually be already done (https://github.com/cosmos/ibc-go/blob/feat/ibc-eureka/modules/core/04-channel/v2/types/packet.go#L34-L61) and whoever worked on it forgot to close the issue


test

https://github.com/UnityRPG/3-Modifiers-And-Abilities/commit/b6354ac9f090a0dd0e60795f6d64027e1db5719b


MissingPluginException (MissingPluginException(No implementation found for method setLogLevel on channel plugins.pauldemarco.com/flutter_blue/methods))

Have this error when trying to run the example app on an android 5.1 device but this do not appear when on an android 8.0 device.
More details on this thread: https://github.com/pauldemarco/flutter_blue/issues/530 that its author has closed while the problem persists...

This is typically only seen in the emulator. Just to clarify, you are seeing this on an physical Android device? Can you share the model number?

Yes I am seeing this on a physical Android device. This is a Xiaomi Redmi 3: https://www.gsmarena.com/xiaomi_redmi_3-7862.php with Android 5.1.1

And I seeing this too on a physical Android device. Huawei Y6II Compact : https://www.gsmarena.com/huawei_y6ii_compact-8663.php with Android 5.1.1

Same error on an old device HTC M8

Can the package be used while debugging with the Chrome extension. As I do to receive this same error?


fix issue with any other type that was not array

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[ ] I have added tests that prove my fix is effective or that my feature works.
[x] I have added all necessary documentation (if appropriate)

What was done
I am currently working with react-native + redux-beacon with google analytics.
I just update redux-beacon to the latest version and I found a small issue when using

@redux-beacon/offline-react-native
@redux-beacon/react-native-google-analytics

The problem is that the function isEmptyArray is returning false for any argument that the type is not array, in my case that function was being called with null, so the function isEmptyArray return false then the condition for not (!isEmptyArray) is going to be true, so the code thinks that we have an array and that the array is not empty.
I solve this problem reviewing the other way around that the argument is an array and that it is not empty, for that reason I change the name no isNotEmptyArray and replace is 2 places that were doing a wrong validation.
Associated Issues

list any associated issue numbers here

:heart: Thanks
Thanks for taking the time to help out with the project, it's much appreciated :slightly_smiling_face:

The problem is that the function isEmptyArray is returning false for any argument that the type is not array,

I don't see this as a problem.

in my case that function was being called with null

Right off the bat, I can't think of a reason why this would ever happen. If possible, could you paste in the error message you're getting?

I get an unhandled promise warning on ios simulator.

After some digging and for shadowing offlineStorage.purgeEvents I found that the issue was on 41, the function purgeEvents was being called with null as argument. isEmptyArray returns false the condition !isEmptyArray on 42 is true, so there is an exception that is not handled inside that if statement.
This is the error cached on the unhandled promise -->
TypeError: Cannot read property 'forEach' of null     at target (google-analytics.js:14)     at register-events.js:36     at tryCallOne (core.js:37)     at core.js:123     at JSTimers.js:297     at _callTimer (JSTimers.js:154)     at _callImmediatesPass (JSTimers.js:202)     at Object.callImmediates (JSTimers.js:466)     at MessageQueue.__callImmediates (MessageQueue.js:329)     at MessageQueue.js:147
I don't know why oldEvents is null on line 42. but is it possible as well the promise exception is not handled

 const purgeEvents = (handlePurgedEvents: PurgedEventsHandler) =>     AsyncStorage.getItem(STORE_KEY, () => AsyncStorage.removeItem(STORE_KEY))       .then(JSON.parse)       .then(handlePurgedEvents);
This function on offline-react-native file is going to be executed even if the AsyncStorage data for the key EventsStore is empty.
Since the key is empty AsyncStorage is going to return null

@lchapoy awesome work! Thanks very much. :100:
I think it's better for us to update offline-react-native so that it never returns null. That is, rather than null it should return an empty array. isEmptyArray will return true, and the error should go away.
Do you think you could help me out with making the change? Also, If possible could you write a unit test for this in offline-react-native.test.ts. Something like:
describe('When purging events', () => {
   it('returns an empty array when there are no items to be purged', () => {
     // use the other tests in this file as a template
   });
});

Sure I am going to do that, another point is that if we know the oldEvents should always return an empty array and that isEmpty array is going to always receive an array then we don't the validation for isArray, because if there is any possibility to not receive an array as an argument the isEmptyArray function is going to return false and the condition !isEmptyArray() will return true. (because of the isArray validation)
  const isEmptyArray = (arr: any[]) => Array.isArray(arr) && arr.length === 0;
Either way, we can make sure purgeEvents returns by default an empty array

The branch is already updated, anything else you want me to review

@lchapoy fix is released:
npm install<EMAIL_ADDRESS>
Thanks again!


[Feature] 使用硬链接备份截图

Checklist

[X] I have already read docs/Tips.md, but my feature is not implemented.
[X] My suggested feature was not mentioned by others, and it is not a duplicate feature.

Summary
备份截图时，如果进程拥有管理员权限，截图文件夹和备份文件夹在同一个驱动器分区内，使用硬链接节省存储空间。
Solution or Design
略

“备份”的意义不就是避免源数据损坏嘛


[Rancher2] Need migration path for PSP to OPA Gatekeeper

Request Summary:
Many organizations make heavy use of PSPs to secure their clusters.    Any automation we can build in will be greatly appreciated, but regardless it will be very helpful to address the need for a migration path in the docs.

OPA Gatekeeper is being deprecated.
https://github.com/rancher/rancher/issues/42627


Race condition when using TabBarView animation and InheritedWidget together

I'm using an InhertiedWidget to manage the state of a counter in this app.
However, if I update the state and change tabs at the same time, the update doesn't seem to pass through to the tabs.
I asked a question on StackOverflow first, and it seems like there's a race condition in either my code or flutter that prevents the InhertiedWidget state from being passed down to the tabs.
Steps to Reproduce

Run on dartpad
Go to tab B
Press + button

Expected results: The tab changes to A, and the counter updates in the tab
Actual results: The tab changes to A, but the counter does not update (even though the actual value changes)
Here's a video to explain what I mean -
https://user-images.githubusercontent.com/19492893/186615530-d3e063c7-3583-4cc1-b3a2-cefae71fc533.mov

Code sample

import 'package:flutter/material.dart';

void main() => runApp(MainApp());

class MainApp extends StatefulWidget {
  const MainApp({
    Key? key,
  }) : super(key: key);

  @override
  State<MainApp> createState() => _MainAppState();
}

class _MainAppState extends State<MainApp> {
  int count = 1;

  @override
  Widget build(BuildContext context) {
    return CounterInheritedWidget(
      count: count,
      child: MaterialApp(
        home: DefaultTabController(
          length: 2,
          child: CounterTabs(
            increment: increment,
          ),
        ),
      ),
    );
  }

  void increment() {
    setState(() {
      count += 1;
    });
  }
}

class CounterInheritedWidget extends InheritedWidget {
  const CounterInheritedWidget({
    Key? key,
    required this.count,
    required Widget child,
  }) : super(key: key, child: child);

  final int count;

  static CounterInheritedWidget of(BuildContext context) {
    final CounterInheritedWidget? result =
        context.dependOnInheritedWidgetOfExactType<CounterInheritedWidget>();
    assert(result != null, 'No CounterInheritedWidget found in context');
    return result!;
  }

  @override
  bool updateShouldNotify(CounterInheritedWidget old) => count != old.count;
}

class CounterTabs extends StatelessWidget {
  final VoidCallback increment;

  const CounterTabs({Key? key, required this.increment}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    int count = CounterInheritedWidget.of(context).count;
    return Scaffold(
      floatingActionButton: FloatingActionButton(
        child: Icon(Icons.add),
        onPressed: () {
          WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
            DefaultTabController.of(context)?.animateTo(0);
            increment();
          });
        },
      ),
      appBar: AppBar(
        title: Text("Actual value: $count"),
        bottom: TabBar(
          tabs: [
            Tab(text: "A"),
            Tab(text: "B"),
          ],
        ),
      ),
      body: TabBarView(
        children: [
          Center(child: Text("Tab value: $count")),
          Center(child: Text("Tab value: $count")),
        ],
      ),
    );
  }
}

Logs

[✓] Flutter (Channel stable, 3.0.5, on macOS 12.4 21F79 darwin-arm, locale en-IN)
    • Flutter version 3.0.5 at /Users/dev/Tools/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f1875d570e (6 weeks ago), 2022-07-13 11:24:16 -0700
    • Engine revision e85ea0e79c
    • Dart version 2.17.6
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/dev/Library/Android/sdk
    • Platform android-32, build-tools 33.0.0
    • Java binary at: /Users/dev/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/212.5712.43.2112.8609683/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Users/dev/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/212.5712.43.2112.8609683/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code (version 1.70.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.46.0

[✓] Connected device (3 available)
    • POCO F1 (mobile) • e19ec1f6 • android-arm64  • Android 12 (API 32)
    • macOS (desktop)  • macos    • darwin-arm64   • macOS 12.4 21F79 darwin-arm
    • Chrome (web)     • chrome   • web-javascript • Google Chrome 104.0.5112.101
    ! Error: iPad is not connected. Xcode will continue when iPad is connected. (code -13)

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Sorry if this is a weird edge case that is not supported by the framework, thanks for looking through my code :)

Marking as duplicate of https://github.com/flutter/flutter/issues/107399. Thank you.


[colmap] Build error

Host Environment

OS: Windows
vcpkg-tool version: 2023-01-24-8a88d63f241d391772fbde69af9cab96c3c64c75
vcpkg-scripts version: a32522820 2023-02-18 (2 days ago)
cmake version:  3.26.0-rc3

(not sure if relevant: "Microsoft (R) C/C++ Optimizing Compiler Version 19.34.31942 for x64")
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/microsoft/vcpkg
cd vcpkg
.\bootstrap-vcpkg.bat
.\vcpkg install colmap[cuda,tests]:x64-windows

Failure logs
install-x64-windows-rel-out.log
Additional context
Simply followed the installation instructions located here.
Seems similar/related to this issue and this issue.

C:\Projects\vcpkg\buildtrees\colmap\src\d576485fe6-7dd36362d1.clean\src\feature\utils.cc(81) : fatal error C1001: Internal compiler error.
(compiler file 'D:\a\_work\1\s\src\vctools\Compiler\Utc\src\p2\main.c', line 224)
 To work around this problem, try simplifying or changing the program near the locations listed above.
If possible please provide a repro here: https://developercommunity.visualstudio.com
Please choose the Technical Support command on the Visual C++
 Help menu, or open the Technical Support help file for more information
  cl!RaiseException()+0x69
  cl!RaiseException()+0x69
  cl!InvokeCompilerPassW()+0x87d1b
  cl!InvokeCompilerPassW()+0xf2a27

Please report this issue to Visual Studio feedback.

Update (21-02-2023): a fix was created to resolve a visual studio support ticket, and is currently pending release. See https://developercommunity.visualstudio.com/t/fatal-error-C1001:-Internal-compiler-err/10076899

@JonLiu1993 can be closed now.

I have tested out the preview release of Visual Studio, and I can confirm that the issue is resolved.
The issue can indeed be closed.


Add: prefixCaseInsensitive client option

Description of the PR
This PR adds a client option to toggle the prefix's case sensitivity.
Changes Proposed in this Pull Request (List new items in CHANGELOG.MD)

Semver Classification

[ ] This PR only includes documentation or non-code changes.
[ ] This PR fixes a bug and does not change the (intended) framework interface.
[x] This PR adds methods or properties to the framework interface.
[ ] This PR removes or renames methods or properties in the framework interface.

There is a better way to implement this. When I get to a workstation, I will give more details

This should only edit this line:
https://github.com/dirigeants/klasa/blob/master/src/monitors/commandHandler.js#L75
And add , 'i' to allow insensitive-case check.

half of the right answer^

Oh I see what you mean, that's honestly a much efficient way.


@var for compound statement isn't displayed correctly

I have a compound statement in one of my classes and as far as I know I'm following the docs here. This is just the relevant part of the file. The file itself and the class do have docblocks.
class contact {
    /**
     * @var PDO $pdo                The PDO class for database communication
     * @var int $id                 The id of the contact
     * @var int $clientId           The id of the client the contact is linked to
     * @var string $name            The name of the contact
     * @var string $address         The first address line (normally street and house number) of the contact
     * @var string $postal_code     The postal code of the contact
     * @var string $city            The city of the contact
     * @var string $state           The state or region of the contact
     * @var string $country         The country of the contact
     */
    protected $pdo, $id, $clientId, $name, $address, $postal_code, $city, $state, $country;

When I run phpdoc on this file, it's parsed fine without any output. However, when I look at the generated docs, the information isn't displayed correctly:

Am I doing something wrong?

it is in the documentation on
https://www.phpdoc.org/docs/latest/references/phpdoc/tags/var.html

@jozwikjp what exactly is in the documentation?

The '@var' documentation has example of multi line definitions with compound declarations.
``Even compound statements may be documented:
class Foo
{
  /**
   * @var string $name        Should contain a description
   * @var string $description Should contain a description
   */
  protected $name, $description;
}

``

@jozwikjp the point is that here all variables are listed as PDO, while only the first is.

@camilstaps  I guess my point is the documentation does not match the functionality. So either is a is a documentation bug in the docs, or a bug in phpDocumentor2 not a improvement.

Cleaning up my issues list. I don't need this any more.


Old Version of FreeRtos code not working.

Hello,
I was working on AWS IoT with ESP32 and RasPi. We were running FreeRtos on ESP32 and Greengrass on RasPi 3B+. The code was last tested on 7th June and was working absolutely fine but now when I am again starting to work on the project, I can see a major update on the FreeRtos page of GitHub. So, now the earlier version of FreeRtos code won't work? I am just using pub-sub service from FreeRtos to Cloud via Greengrass core. Need urgent help for project completion. Thanks for the help in advance!
Note - The code is getting compiled and even I can make new things via the setup file in Tools folder but not able to publish/subscribe any topic on the cloud.

Hello AagemMehta,
Correct me if I misunderstand, so you are concerned that older versions of Amazon FreeRTOS are not working anymore since the release of 201906.00_Major? This release did not change the behavior of the cloud side, except in the Amazon FreeRTOS Device Software Download Configuration, which does not effect MQTT, so we expect the same behavior in older versions.
What version of Amazon FreeRTOS are you using? Are you still able to discover your GGC from the ESP32? Could you run the Greengrass Discovery demo and post some logs?

Sorry, that was an issue from our side. Rechecking the complete set-up we have been able to get the error. Thanks for the support.


[Event Request] codeunit 7320 "Whse. Undo Quantity" - FindPostedWhseRcptLine

In codeunit 7320 "Whse. Undo Quantity" please add the following event:
    procedure FindPostedWhseRcptLine(var PostedWhseRcptLine: Record "Posted Whse. Receipt Line"; UndoType: Integer; UndoID: Code[20]; SourceType: Integer; SourceSubtype: Integer; SourceID: Code[20]; SourceRefNo: Integer) Ok: Boolean
    var
        WhseManagement: Codeunit "Whse. Management";
        // New variable
        IsHandled: Boolean;
        // New variable
    begin
        if not PostedWhseRcptLine.ReadPermission then
            exit;
        with PostedWhseRcptLine do begin
            Reset;
            case UndoType of
                DATABASE::"Purch. Rcpt. Line":
                    SetRange("Posted Source Document", "Posted Source Document"::"Posted Receipt");
                DATABASE::"Return Receipt Line":
                    SetRange("Posted Source Document", "Posted Source Document"::"Posted Return Receipt");
                else
                    // New event
                    //exit;
                    begin
                        OnFindPostedWhseRcptLine(PostedWhseRcptLine, UndoType, UndoID, SourceType, SourceSubtype, SourceID, SourceRefNo, IsHandled);
                        if not IsHandled then
                            exit;
                    end;
            // New event
            end;
            WhseManagement.SetSourceFilterForPostedWhseRcptLine(PostedWhseRcptLine, SourceType, SourceSubtype, SourceID, SourceRefNo, true);
            SetRange("Posted Source No.", UndoID);
            OnFindPostedWhseRcptLineOnAfterSetFilters(PostedWhseRcptLine);

    [IntegrationEvent(false, false)]
    local procedure OnFindPostedWhseRcptLine(var PostedWhseRcptLine: Record "Posted Whse. Receipt Line"; UndoType: Integer; UndoID: Code[20]; SourceType: Integer; SourceSubtype: Integer; SourceID: Code[20]; SourceRefNo: Integer; var IsHandled: Boolean)
    begin
    end;

Thank you

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Updating go.mod to fix CVE

What type of PR is this?
(bug)
What this PR does / why we need it?
This PR fixes some of the known CVE by updating go.mod file.
Which Jira/Github issue(s) this PR fixes?
Fixes OSD-22068

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

Project coverage is 54.94%. Comparing base (d3bc703) to head (cdebcaf).

Additional details and impacted files

@@           Coverage Diff           @@
##           master     #170   +/-   ##
=======================================
  Coverage   54.94%   54.94%
=======================================
  Files           7        7
  Lines         637      637
=======================================
  Hits          350      350
  Misses        277      277
  Partials       10       10

/lgtm


Track website URL

To allow us to see whether and how users are using the guestbook on production websites it would be nice to implement a tracking solution which stores the website URL in the database.

Resolving as it's now handled in the API.


Plugin issue

MoveMeNow will not move me when the server goes down or I am kicked. It just disconnects me. How can I fix this?

Is this issue still existent?

Nope, it is fixed now.


Upgrade front end to NuxtJS V3

This involves upgrading from vue2 to vue3, which has a consequence for a bunch of other libraries

Upgrade nuxtjs to v3
Upgrade nuxt-content to v2
Upgrade vue-chartjs to v5
Upgrade chartjs to v4

Also has some consequences e.g. for Bootstrap-Vue:
https://bootstrap-vue.org/vue3

The official migration documentation isn't fully out yet so I tried a couple of workarounds.
Things I tried in the process:

Build a new nuxt 3 project and move our files and components incrementally. Skipped this because we need to keep the file update history
Next, I tried to used the partial migration document outlines here: https://nuxt.com/docs/migration/overview. I started by upgrading Vue and Nuxt to version 3. The editing the nuxt config file as per the docs but ran into errors everytime I tried to start the application.
I also tried creating a new nuxt3 project, then moving the .nuxt folder and nuxt config file to the old project and tried to fixed the packages errors.


Add installation guide for FreeBSD

This pull request changes the documentation file _advanced_install.mdx which is used in Scala CLI website's front page. In "advanced installation", a new button for FreeBSD is added, with (at least for now) the only installation option being manual.
Unfortunately, scala-cli can't be installed from Nix on FreeBSD yet, since Nix support is experimental.

I did not test this installation method on other BSDs, but it should also work fine

I just noticed an issue with the commands in the installation guide, I'll fix it soon

Hey, thanks for the contribution! I left some comments. Also, please rebase on top of the latest stable branch, as the commit structure seems to be messy smh.

My fork isn't showing that it's commits behind upstream, I'm not sure what to do about that.

I tried rebasing the commits, but the commit history here still has all of them as before, I'm not sure what I did wrong

I tried rebasing the commits, but the commit history here still has all of them as before, I'm not sure what I did wrong

This is weird, as 235cfdd7d12cc8ce462cef0c59427ea55d09d494 shouldn't be listed as one of the commits on this PR... and yet it is 🤔

@spacebanana420 thank you for this, much appreciated


Multiupdate query in mybaties mapper

Hello,
I am trying to execute multiple update mysql query statements build in mybatis mapper xml file:
MyMapper.xml :
<update id="update_list">
        <foreach collection="list" item="id"  separator=";">
            UPDATE mytable
            SET my_field_to_update = 'myvalue'
            WHERE id =#{id}
        </foreach>
    </update>

In MyRepositoryImpl.java:
this.sqlSession.update(RepositoryConstants.getFullMapperMethodId(BatchQueryTestRepository.class, "update_list"), ids);
After while running above statement I got an following error:

Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UPDATE mytable

I am using mysql as database. I can execute multiple update query using DataGrip (mysql client).
I am executing multiple query this way to compare it with query run by using ExecutorType.BATCH type SqlSession.
Could you please help to resolve above exception? Let me know if you need any further information regarding this.
Thank you!
Sunil

You have to allow multi queries in your driver.
For mariadb it would be the same as MySQL
allowMultiQuery=true
https://dev.mysql.com/doc/connector-j/5.1/en/connector-j-reference-configuration-properties.html

It worked, thank you so much @h3adache

I got following result of comparing multiquery (foreach loop used for making multiple query in mapper xml) with batchquery (query run in ExecutorType.BATCH typed SqlSession) [foreach in my javaclass to make multiple query and add those query in batch and commit at last]:

(time in millisecond)
Testing batch query for : 2112 records
updating by using foreach loop in mapper xml  : time take : 547
reverting previous update by batch query  : time take : 8025
updating by batch query : time take : 8262
reverting previous update by foreach loop in mapper xml  : time take : 330
Repeating above query sequence in different order
updating by batch query  : time take : 8038
reverting previous update by foreach loop in mapper xml : time take : 360
updating by using foreach loop in mapper xml : time take : 304
reverting previous update by batch query  : time take : 7954

My question is: why above two type of execution is so different? Does multiquery (adding multiple query in mapper xml) assure us the Atomicity like batchquery or transaction query does [revert all query if one of them is failed]?
Thanks in advance!

You have to allow multi queries in your driver. For mariadb it would be the same as MySQL
allowMultiQuery=true
https://dev.mysql.com/doc/connector-j/5.1/en/connector-j-reference-configuration-properties.html

now it is allowMultiQueries=true.
https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-configuration-properties.html


Add 'concat_ws' function to PostgresModule

Add support for function concat_ws described in the PostgreSQL docs.

Add function to PostgresFunctionDef in PostgresModule
Add test in FunctionDefSpec

I would like to work on this.


Rotation optim

Fix GNB

I would also personally revert almost every change in 7988d1d

i didnt even know this pull request existed, i already fixed it mb


Segmentation fault when running "python train.py"

root@f9adda5586c3:/mnt/txf/codes/FlowNet3D# python train.py
pid: 22198
WARNING:tensorflow:From /mnt/txf/codes/FlowNet3D/model_concat_upsa.py:16: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.
WARNING:tensorflow:From train.py:83: The name tf.train.exponential_decay is deprecated. Please use tf.compat.v1.train.exponential_decay instead.
WARNING:tensorflow:From train.py:102: The name tf.summary.scalar is deprecated. Please use tf.compat.v1.summary.scalar instead.
--- Get model and loss
WARNING:tensorflow:From /mnt/txf/codes/FlowNet3D/model_concat_upsa.py:39: The name tf.variable_scope is deprecated. Please use tf.compat.v1.variable_scope instead.
Segmentation fault (core dumped)
My running environment configuration as follow:
GPU: GTX 1080
CUDA: CUDA10.0
Tensorflow: Tensorflow-gpu-1.14.0
I get a segmentation fault when running the train.py gets to the function https://github.com/xingyul/flownet3d/blob/master/tf_ops/sampling/tf_sampling.py#L56. I am not sure what could be causing the issue as I got to compile with no problems the code previously.

OK. I get it!
Thank you!
The issue is with the version of the g++ (7.4.0) on Ubuntu 18.04.
Simply installing the g++-4.8 and using it to build the tf_ops solved the issue.