auto_projected_gradient_descent.py

TO WHOM IT MAY CONCERN:
I have a question related to https://github.com/Trusted-AI/adversarial-robustness-toolbox/blob/main/art/attacks/evasion/auto_projected_gradient_descent.py
Lines 522-526:
if (not self.targeted and f_k_p_1 > self.f_max) or (self.targeted and f_k_p_1 < self.f_max):
      self.count_condition_1 += 1
      self.x_max = x_k_p_1
      self.x_max_m_1 = x_k
      self.f_max = f_k_p_1

May I know why to update f_max when (self.targeted and f_k_p_1 < self.f_max)?

Hi @jinglin80 Thank you very much for using ART! This condition is for the targeted attack where the goal is to find perturbations that decrease the loss towards the targeted label.

Hi @beat-buesser Thank you for the clarification! One more question about the auto_projected_gradient_descent.py.
Lines 518-520:
if f_k_p_1 == 0.0:
       x_k = x_k_p_1.copy()
       break

May I know why break when the loss (f_k_p_1) is zero?

Hi @jinglin80 The condition and break in lines 518-520 are checking if the loss has become numerically zero, if it has become numerically zero it stops the attack to prevent  iterations based on numerical noise in the loss value f_k_p_1.


chore: updated CONTRIBUTING doc, removed @snyk/code-client

Description
This is just a cleanup, as our repository is showed up in a search by code-client
https://github.com/search?q=org%3Asnyk "%40snyk%2Fcode-client"&type=code
Checklist

[ ] Tests added and all succeed
[ ] Linted
[ ] CHANGELOG.md updated
[ ] README.md updated, if user-facing

Screenshots / GIFs
Visuals that may help the reviewer. Please add screenshots for any UI change. GIFs are most welcome!

@teodora-sandu @cat2608 do you know what is wrong with the failed pr check?

@Arvi3d, I'm re-running the failed tests 🙏


If Docker is not running, the error message is vague/unhelpful: "Docker is running  containers, you need to switch to Windows containers"

Describe the issue
If Docker is not running, the error message should say so, instead of being vague/unhelpful. That is: if $dockerOS is empty, just say "Docker must be running" or something, instead of Docker is running  containers, you need to switch to Windows containers..
Scripts used to create container and cause the issue
$containerName = 'somename'
$password = 'somepass'
$securePassword = ConvertTo-SecureString -String $password -AsPlainText -Force
$credential = New-Object pscredential 'admin', $securePassword
$auth = 'UserPassword'
$artifactUrl = Get-BcArtifactUrl -type 'Sandbox' -country 'gb' -select 'Latest'
New-BcContainer `
    -accept_eula `
    -containerName $containerName `
    -credential $credential `
    -auth $auth `
    -artifactUrl $artifactUrl `
    -imageName 'somename' `
    -updateHosts

Full output of scripts
BcContainerHelper version 2.0.6
BcContainerHelper is version 2.0.6
BcContainerHelper is running as administrator
Host is Microsoft Windows 10 Pro - 2004
Docker is running  containers, you need to switch to Windows containers.
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.6\ContainerHandling\New-NavContainer.ps1:463 char:9
+         throw "Docker is running $dockerOS containers, you need to sw ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Docker is runni...ows containers.:String) [], RuntimeException
    + FullyQualifiedErrorId : Docker is running  containers, you need to switch to Windows containers.

Shipped in 2.0.7


Change endpoint to create workflow with groups

Change the POST action of workflow. The input parameters contain an array of approval group ids.

@bzwei Please review.


Rendering Issues in Vim

I've come across some column rendering issues in vim 8.0 on macOS Sierra.
This was in a tmux session, but it also occurs outside the session. You can see the 80 col ruler is misaligned 3/4 page down.
Thanks for hyper, it's an awesome app. Enjoying playing with it.

@tamoore think you have to add this issue to https://www.github.com/zeit/hyper. This is the hyperline repository 👍

Ha! Sorry! Too many tabs!

👍


Feature/2123 edit qual pct

styling and structure changed made to modal and qualification components to compensate for pct component (3 column view and nested child)
modified and added unsaved changes confirmation windows for close, back, and breadcrumb bar buttons
functionality for editing pct record
added data year dropdown options

unit tests in progress


[Feature request] approach to File Explorer

Is your feature request related to a problem? Please describe
/
Describe the solution you'd like

Describe alternatives you've considered
No response
Additional context
No response

How to get file icon from syswin32 https://github.com/emako/QuickLook.Plugin.TorrentViewer/blob/master/QuickLook.Plugin/QuickLook.Plugin.TorrentViewer/IconManager.cs

What? This is too complicated


JAMES-4069 Healthcheck for IMAP

Sorry 2 more comments...

https://ci-builds.apache.org/job/james/job/ApacheJames/job/PR-2401/4/testReport/junit/org.apache.james.webadmin.integration.rabbitmq/RabbitMQWebAdminServerIntegrationImmutableTest/healthCheckComponentsList/
Likely related?


fix(controller): adds migration to get rid of dockerfile's u'False' valu...

When upgrading from 1.0.x to 1.1.x, builds with dockerfile's u'False'
are treated as Dockerfile based ones, because u'False' is not a falsy value.
This commit adds a migration to rectify that.
The story started here: https://github.com/deis/deis/issues/2733

Thanks for the contribution! Please ensure your commits follow our style guide. This code will be tested once a Deis maintainer reviews it.

thank you for this :)
Jenkins, add to whitelist.

@romansergey I'm not seeing the unit test failure on master. Could you please take a look into it and see why the tests are failing?

The failure reason shown looks quite unrelated or fairly indirect.
On my machine tests are passing consistently to OK.
The latest commit adds a more verbose assertion failure message which will help in case it is a persistent failure.

Pretty please re-run the tests again :-)

I just started a Jenkins job for this PR: https://ci.deis.io/job/test-integration/1704/

I am also scratching my head about that test failure--this PR passed for me locally as soon as I tried it. I'm glad Jenkins agrees now. LGTM.

code LGTM. Thanks @romansergey :)


Refactor change offer with view_components

Context
We need to add another step to the 'change offer' flow (for study_mode). This is relevant to both the initial offer and existing offer flows.
Changes proposed in this pull request
Move multi-step interface logic to view_components.
A single parent component (ProviderInterface::ChangeOfferComponent) accepts a ChangeOfferForm and decides which sub-component to render based on the supplied :step and the validity of the form.
The entire flow relies on a single route with a *step wildcard element. This makes it easier to troubleshoot user actions in the logs.
GET    /provider/applications/:application_choice_id/offer/change/*step(.:format)

After this PR, adding a study_mode step to the process will be a matter of adding a step to ChangeOfferForm, creating the relevant study_mode sub-component and modifying the logic of listing courses and locations based on study_mode.
Guidance to review
Best place to start is the 'change offer' component previews. See review app previews
Use 'split' view when inspecting file changes.
Link to Trello card
https://trello.com/c/0u3Z8WLc
Things to check

[x] This code doesn't rely on migrations in the same Pull Request
[x] If this code includes a migration adding or changing columns, it also backfills existing records for consistency
[x] API release notes have been updated if necessary
[x] New environment variables have been added to the Azure config

This is definitely an improvement! Minor comments/questions inline.
I wonder if the relationship between ChangeOfferForm and ChangeOfferComponent has become a bit too cosy — there's some slightly funky stuff going on where the components are validating and mutating the form. I'm not sure it's worth refactoring at this stage, though.

In order to support this multi-step process and remove as much logic from the controller as possible, I've gone for a new pattern, one which increases the coupling between component and form. The component is useless without the form, but the form contains all validation logic and can be used or tested individually. The component mutates the form during the multi-step process but the form doesn't save or produce side-effects.


Remove Fraudulent checks that don't apply to Liberty

PIVX, the codebase from which Liberty vNext is forked, released a patch to their codebase to stop the flow of fraudulent funds and it needs to be removed from our codebase because it doesn't apply and it affects consensus rules.

Squashed and merged in 2rVTdBWXd3uj4pdLpPfjxSquwunBDvqbiC7CLA1HqDE7kZwneN5


Supported Matlab versions

On the page ToolboxRequirements it states that Matlab versions later than 2007 are supported.
I tried updating my Matlab installation from 2014b to 2018b and found that at least one function does no longer work (misc_checkType) as the Matlab function inputname seems to return other outputs than in Matlab 2014b.
As I would guess that checking the whole code for compatibility is a tedious task, it would be easier to just state that Matlab up to 2014b is compatible (or whichever latest version is known to work).

Everything was fine until Matlab 2018a, the version I had on my laptop. Matlab does not care about downwards compatibility, which is a pain for maintaining toolboxes. I fixed the issue with a hack (should be revisited for a nicer solution). Now the demos run again with Matlab 2019a.
Sorry for the inconvenience.


Ensure dimension value stays within length limit after escaping

Very similar to https://github.com/dynatrace-oss/dynatrace-metric-utils-java/pull/11, except we don't have to change code to ensure values are not escaped twice. As far as i can tell, there is no way to actually pass the same dimension to the normalize function twice, as the dimensions become inaccessible as soon as they are normalized.

That is true, but only if the dimension value max length would ever be changed to an odd number. Otherwise, we will cut to 250 backslashes and everything should be fine (see test dimension value of only backslashes). Additionally, as you mentioned, it is highly unlikely that the value is only slashes.


Ensuring liveness/uptime for observer validators

Ensure OSs have a sufficient stake at all times to maintain their status as a validator.
What if observers took out a significant amount of stake?
Proposed solution
### Tasks

Closing as it seems no longer relevant with the current state of the project. Feel free to reopen it.


bbox search

Current bbox search throws this error: pystac_client.exceptions.APIError: {"detail":"RequestError(400, 'search_phase_execution_exception', 'failed to find type for field [spatial.bbox]')"}
bbox is now detected as a geo_shape and is in the field spatial.bbox but the mapping for it is as follows:
"spatial" : {
  "properties" : {
    "bbox" : {
      "properties" : {
        "coordinates" : {
          "type" : "float"
        },
        "type" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
 }}}}}}},

The mapping needs to be updated to as such stated here:
PUT esgf-solr-items-2022-03-10/_mapping
{
  "mappings": {
    "properties": {
      "spatial": {
        "properties": {
          "bbox": {
            "type": "geo_shape"
          }
        }
      }
    }
  }
}

Since elasticsearch doesn't support updating the mapping of an existing field, it will require a reindex.
TO-DO:

[x] Swap the min_lon and max_lon values of docs in the esgf index for assets, items and collections.
[ ] Shift the values of min_lon and max_lon by -180 and update the bbox. There exists two items in which the bbox values are correct: 892cfaee29239415d6b61b0fb027877e, 1b6b26545b55b0e6125b78d155881e50
[ ] Update the esgf-solr-input plugin to swap the values of west and east degrees when constructing the bbox at asset generation.

The ESGF lon and lat coordinates range from -90 to 90 for latitude and 0 to 360 for longitude.
This breaks elasticsearch geoshape as that requires longitude range of -180 to 180
Need to update the assets/items/collections so longitude values are shifted by 180 for ["properties.min_lon", "properties.max_long", "spatial.bbox"]

There are too many nuances using the cardinal degrees to represent latitude and longitude. It might be worth reindexing with a different method of ingesting the bbox:
Solution
The ESGF Solr datasets have a geo/geos field with spatial information that uses correct ranges, however it can be a string or a list of strings in the format: ENVELOPE (min_lon, max_lon, max_lat, min_lat). Will need to look up how to convert a geos field to an appropriate bbox. The geos field can have one or many geo_shape string that have different values but seem to describe the same area. It is not standardised accross all the datasets.

In the STAC generator, create or alter the esgf solr plugin/media_handler to ingest the geos field from the dataset level.
look up how to transform or extract latitude and longitude data from the geos. Use the geos to add min_lat, max_lat, min_lon and max_lon to the asset properties.
Update the elasticsearch aggregator spatial bbox method to format the bbox as expected by elasticsearch: [minLon, maxLon, maxLat, minLat] (This change might not be necessary, it seems elasticsearch can read what the current order is anyways.)
Re-index the solr assets, items and collections.


neuron develops-from some vertebrate neuroblast leads to incoherency

the multi-unit eye TC is clearly wrong, presumably intent was to make -ve, likely my error.
Note this unsat only arises on my branch where I am bringing in uberon TCs (for #709)

Side issue for @balhoff
this makes the TC plugin do weird stuff

branch issue-709-uberon-base to replicate

@dosumis you know most about difference in usage of 'neuroblast' across metazoa, can you recommend action?
We could simply have a GCI, neuron and in some Vert Sub dev-from some Vert neuroblast. But I'd like to pick more at the modeling here:
currently the "nematode and protostome" neuroblast (is this even a meaningful grouping?) has no texture definition. It is a neuronal stem cell (correct)

(suspiciously, the only subclasses of neuronal stem cell are nemo-proto)
in verts it has a definition, but not a stem cell (correct), it's non-terminally differentiated (correct), but is incomplete - no develops-from asserted or inferred:

I don't think any of this is wrong, it just seems suboptimal modeling
in fbbt the genus is neural stem cell though this is not a distinct concept:

in wbbt it's a blast cell. Not sure enough of c elegans development to say if this inconsistent with calling it

None of this is actually wrong, but it seems confusing and incomplete
in verts we presumably want to trace a lineage neuron back to neural stem cells, e.g. via RG cells

going with a GCI, which is not wrong:

GCI is fine.  Discussion of why we need separate sensu terms for vertebrate and invertebrate neuroblasts is here: https://github.com/obophenotype/cell-ontology/issues/617#issuecomment-580862253

in fbbt the genus is neural stem cell though this is not a distinct concept:

Not needed as neuroblasts are the only neural stem cells in flies (probably true in all arthropods).  I have no idea about nematodes.
Looks to me like radial glia should go under neural stem cell:
"During the late stages of neurogenesis, radial glial cells divide asymmetrically in the ventricular zone, generating a new radial glial cell, as well as a postmitotic neuron or an intermediate progenitor (IPC) daughter cell" https://en.wikipedia.org/wiki/Radial_glial_cell#Progenitors
Don't know whether all vertebrate neuroblasts develop from radial glia though.

This issue is preventing import of cl-base into GO.

If someone fixes it I can immediately run a new release.

@matentzn - as soon as the PR check completes successfully, merge and make a new release, thanks!


refactor: integrate deno_kv_oauth module

This change:

Integrates the codebase with the deno_kv_oauth module and removes the overlapping OAuth code.
Performs some passing-by cleanups.
Disables deno.lock as esm.sh is in-use.

This is a trial run for deno_kv_oauth. The module should improve ergonomics when handling OAuth. If any parts of the modified code cause a regression in ergonomics, then perhaps the deno_kv_oauth might need tweaking.

Are you able to take a look at this, @lucacasonato?

Seems as though this won't be getting merged. Closing.


Consider using data objects for live plots

The purpose of this issue is to explore the use use of data objects to make it easier to display "live" plots where the data is frequently updated. This mostly applies to Scatter plots, Signal plots, and Finance plots. Scatter plots will be explored first, and this new implementation may replace ScatterPlotList. This topic was initially explored in #815
Rationale
ScottPlot users frequently encounter difficulty when trying to figure-out how to update/add data in live plots. Live plots are possible using tricks as described on the FAQ: Live Data page. However, this task is difficult because the primary plot types store data in fixed-length arrays and do not have control over when renders occur. Use of a data object would abstract the task of data storage and array management from the user, simplifying this task. It would also improve encapsulation for data management (validation, axis limit detection, min/max detection, and tree management) and separation of concerns (data objects would manage data, plottables would manage style and rendering).
Data Object Responsibilities

Store data in private arrays
Add(), AddRange(), and Clear() methods update/resize/replace arrays as needed
Data validation (e.g., ensuring data does not contain double.NaN)
Axis limit detection
Range min/max detection for Signal plottables
Tree management for SignalConst plottables

Example Use
// user stores and interacts with the data object, not the plottable
readonly ScatterData myData = new ScatterData();

void Init()
{
    formsPlot1.Plot.AddScatter(myData);
}

void OnNewData()
{
    myData.AddRange(newXs, newYs);
    formsPlot1.Render();
}

I would hope any implementation would be pretty extensible for the user. Obviously it would be a very good idea to continue to allow arrays, but also to allow a user to create their own data objects (or even be compatible with existing classes). Currently the only requirements for data objects are that they have an indexer taking an integer, i.e. T this[int i], and that they implement IEnumerable (for LINQ). It would also be a very good idea for them to implement their own Count property, as the one on IEnumerable is O(n), and this is a very commonly used property and generally can be grabbed in constant time.
Now if we only want to allow a user to create their own data objects, we can create our own interface:
interface IDataObject<T>{
    int Count {get;}
    T this[int i];
    IEnumerator<T> GetEnumerator();
    IEnumerator GetEnumerator(); // IEnumerable<T> implements the non-generic IEnumerable for compatibility reasons
}

Unfortunately, regular arrays do not implement this interface. There is some witchcraft you can do with reflection or the dynamic keyword to mimic duck typing, but I don't think either of those are good ideas. You could create implicit conversions from T[] to MyArrayWrapperClass<T> or similar which would also allow (a form of) duck typing, which is alright but not ideal as it creates poorer performing code as well as more confusing method signatures and debugger output.
One option which does not involve duck typing is method overloading, which is a fine solution but it does run the same risks with any duplicate or near-duplicate code, a change in one method may not be applied to another. This can be alleviated by having them both delegate to another method, but this likely means either duck typing or conversion as this new method has to handle multiple types. Not ideal, but certainly workable.
Lastly, one could use an existing interface which is compatible with the Array class. If you look at the docs one notices that it implements System.Collections.IList, which in my opinion offers an elegant solution. We get all of the properties we hoped to:

Compatible with normal arrays
Extensible by the user and the library
Compatible with existing classes

While it doesn't say it there, in this article it says arrays which start at zero (in practice almost all of them) also implements IList<T>:

In C# 2.0 and later, single-dimensional arrays that have a lower bound of zero automatically implement IList.

If someone wants to get a live data app running they can just drop in a List<double> and not think about it again. If they want to tune something that the List<T> class doesn't offer (such as the allocation algorithm) they can write their own reasonably quickly. The IList<T> interface is larger than the example IDataObject interface I wrote above, but not by too much. What's more, they can use any existing methods that take in IList<T> either in the BCL or in third-party libraries without converting.
If you're worried about what to do with fixed or capped-size collections such as circular buffers, calling Add() on an array throws an exception. The class implements IList<T>, it just treats that operation as invalid. I'm taking this as a cue that this is how Microsoft wants us to treat such things.

IList<T> may not be particularly elegant for heatmaps as they require contiguous memory for their marshalling. Not to mention 2D arrays only implement IList. However, I think this is less of a concern as heatmaps are not expected to be resized, and the updating of heatmaps already requires significant copying, so one probably wouldn't gain much.

A reliable interface would also make Memory<T> or Span<T> wrapper classes easier to implement. It may also make sense to create an interface for contiguous memory, which would allow heatmaps to use Memory<T> or Span<T>.

The use of data objects (possibly using Memory/Span under the hood) is an important topic I want to explore carefully in the future. For now my focus for the next few weeks will be getting version 4.1 out of data and improving the documentation, so I've added this topic to the triage list and will return to it in the future.
Thank you everyone for your input!


[build-script] Pass --lit-test-dir while testing swift-driver

This passes --lit-test-dir to the swift driver's build-script-helper, which allows it to run Swift lit tests as part of its test suite. This shouldn't be merged until we're ready for CI to run the Driver lit tests from swift-driver.
This uses the flag added in https://github.com/apple/swift-driver/pull/511
rdar://73769164

@swift-ci smoke test

Please test with following PR:
https://github.com/apple/swift-driver/pull/518
@swift-ci please smoke test macOS platform

Please test with following PR:
apple/swift-driver#518
@swift-ci please test windows


I can use this tool with google colab

hi thanks for this tool, my question is i can use and connect this with google colab for generate the image in photoshop?

hi @wilzamguerrero, you will have to find a colab that expose automatic1111 webui api using nginx.
Then you will have to modify the variable SD_URL in "start_server.bat" by overriding its value with the url you get from nginx.

I have tested the plugin with this colab and it does work.
https://colab.research.google.com/drive/1nbcx_WOneRmYv9idBO33pN5CbxXrqZHu#scrollTo=A6OFCYOzNjDX
it will give you a url , use to overwrite the SD_URL in start_server.bat if you are on windows
here is an example of how it should look like
set SD_URL=https://f60db0c0b2314c1e.gradio.app

the colab was created by
https://github.com/ddPn08/automatic1111-colab

@wilzamguerrero you should run the colab without any modification.
don't select any of the settings just run all the cells as they are.
also, I see that you haven't saved the "start_server.bat" so that could be your problem.
you need to

Close the server
Edit the start_server.bat then save it.
Then run the modified "start_server.bat" again.


UI Redesign - Desktop - Terms & Conditions

Description
The task is to implement the new design for the Terms & Conditions menu in the desktop app.
Assets and Design Screens
All assets and design screens have already been created.

The Figma design can be found here
Button is a link to:

Additional context
This work should be done on the UI_Redesign branch https://github.com/atsign-foundation/atmosphere_pro/tree/ui_redesign

@ksanty I would like to work on this feature

@ksanty I would like to work on this feature

Great!  I've assigned the ticket to you.  Let us know if you have any questions.

@ksanty Can you assign this issue to me?

Thanks @AdiAr11 but we have already moved on from Hacktoberfest.  Perhaps we will see you later this year.  All the best!

@ksanty Actually i just want to help and contribute to the project, not for HacktoberFest 😀🙂

Ohhhh well our developer team is deploying the app now.  I'm sure we could find something for you to do.  Are you in school looking for projects?

@ksanty Actually i just finished my undergraduate degree 😅.

Great. Thank you so much !!


Chip widget inside appBar's actions throws an error

Hi, I would like to show a Chip widget at the end of the appbar, but this throws an error and doesn't get rendered. The chip works normally inside the body.
Steps to Reproduce
appBar: new AppBar
      (
        title: new Text("New App"),
        actions: <Widget>
        [
          new Chip(label: new Text("30.439.287 €"), avatar: new CircleAvatar(backgroundColor: Colors.white, child: new Icon(Icons.euro_symbol)))
        ],
      ),

Logs
Run your application with flutter run and attach all the log output.
Performing full restart...
Syncing files to device SM G935F...
Restarted app in 1 985ms.
I/flutter ( 2122): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞══════════════════
═══════════════════════════════════════
I/flutter ( 2122): The following assertion was thrown during performLayout():
I/flutter ( 2122): RenderFlex children have non-zero flex but incoming width con
straints are unbounded.
I/flutter ( 2122): When a row is in a parent that does not provide a finite widt
h constraint, for example if it is in a
I/flutter ( 2122): horizontal scrollable, it will try to shrink-wrap its childre
n along the horizontal axis. Setting a
I/flutter ( 2122): flex on a child (e.g. using a Flexible) indicates that the ch
ild is to expand to fill the remaining
I/flutter ( 2122): space in the horizontal direction.
I/flutter ( 2122): These two directives are mutually exclusive. If a parent is t
o shrink-wrap its child, the child
I/flutter ( 2122): cannot simultaneously expand to fit its parent.
I/flutter ( 2122): The affected RenderFlex is:
I/flutter ( 2122):   RenderFlex#d5ed8 relayoutBoundary=up18 NEEDS-LAYOUT NEEDS-P
AINT
I/flutter ( 2122): The creator information is set to:
I/flutter ( 2122):   Row ← Padding ← DecoratedBox ← ConstrainedBox ← Container ←
 Semantics ← Chip ← Row ←
I/flutter ( 2122):   LayoutId-[<_ToolbarSlot.trailing>] ← CustomMultiChildLayout
 ← NavigationToolbar ← Padding ← ⋯
I/flutter ( 2122): The nearest ancestor providing an unbounded width constraint
is:
I/flutter ( 2122):   RenderFlex#4e18a relayoutBoundary=up13 NEEDS-LAYOUT NEEDS-P
AINT
I/flutter ( 2122):   creator: Row ← LayoutId-[<_ToolbarSlot.trailing>] ← CustomM
ultiChildLayout ← NavigationToolbar ←
I/flutter ( 2122):   Padding ← DefaultTextStyle ← IconTheme ← Builder ← CustomSi
ngleChildLayout ← ClipRect ← Padding ←
I/flutter ( 2122):   Align ← ⋯
I/flutter ( 2122):   parentData: offset=Offset(0.0, 0.0); id=_ToolbarSlot.traili
ng (can use size)
I/flutter ( 2122):   constraints: BoxConstraints(0.0<=w<=356.0, 0.0<=h<=56.0)
I/flutter ( 2122):   size: MISSING
I/flutter ( 2122):   direction: horizontal
I/flutter ( 2122):   mainAxisAlignment: start
I/flutter ( 2122):   mainAxisSize: min
I/flutter ( 2122):   crossAxisAlignment: stretch
I/flutter ( 2122):   textBaseline: nullSee also: https://flutter.io/layout/
I/flutter ( 2122): If this message did not help you determine the problem, consi
der using debugDumpRenderTree():
I/flutter ( 2122):   https://flutter.io/debugging/#rendering-layer
I/flutter ( 2122):   http://docs.flutter.io/flutter/rendering/debugDumpRenderTre
e.html
I/flutter ( 2122): If none of the above helps enough to fix this problem, please
 don't hesitate to file a bug:
I/flutter ( 2122):   https://github.com/flutter/flutter/issues/new
I/flutter ( 2122):
I/flutter ( 2122): When the exception was thrown, this was the stack:
I/flutter ( 2122): #0      RenderFlex.performLayout.<anonymous closure> (package
:flutter/src/rendering/flex.dart:500:11)
I/flutter ( 2122): #2      RenderFlex.performLayout (package:flutter/src/renderi
ng/flex.dart:462:16)
I/flutter ( 2122): #3      RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #4      RenderPadding.performLayout (package:flutter/src/rend
ering/shifted_box.dart:160:11)
I/flutter ( 2122): #5      RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #6      RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMi
xin.performLayout (package:flutter/src/rendering/proxy_box.dart:106:13)
I/flutter ( 2122): #7      RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #8      RenderConstrainedBox.performLayout (package:flutter/s
rc/rendering/proxy_box.dart:256:13)
I/flutter ( 2122): #9      RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #10     RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMi
xin.performLayout (package:flutter/src/rendering/proxy_box.dart:106:13)
I/flutter ( 2122): #11     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #12     RenderFlex.performLayout (package:flutter/src/renderi
ng/flex.dart:541:15)
I/flutter ( 2122): #13     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #14     MultiChildLayoutDelegate.layoutChild (package:flutter
/src/rendering/custom_layout.dart:124:11)
I/flutter ( 2122): #15     _ToolbarLayout.performLayout (package:flutter/src/wid
gets/navigation_toolbar.dart:108:33)
I/flutter ( 2122): #16     MultiChildLayoutDelegate._callPerformLayout (package:
flutter/src/rendering/custom_layout.dart:194:7)
I/flutter ( 2122): #17     RenderCustomMultiChildLayoutBox.performLayout (packag
e:flutter/src/rendering/custom_layout.dart:338:14)
I/flutter ( 2122): #18     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #19     RenderPadding.performLayout (package:flutter/src/rend
ering/shifted_box.dart:160:11)
I/flutter ( 2122): #20     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #21     RenderCustomSingleChildLayoutBox.performLayout (packa
ge:flutter/src/rendering/shifted_box.dart:871:13)
I/flutter ( 2122): #22     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #23     RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMi
xin.performLayout (package:flutter/src/rendering/proxy_box.dart:106:13)
I/flutter ( 2122): #24     _RenderCustomClip.performLayout (package:flutter/src/
rendering/proxy_box.dart:1004:24)
I/flutter ( 2122): #25     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #26     RenderPadding.performLayout (package:flutter/src/rend
ering/shifted_box.dart:160:11)
I/flutter ( 2122): #27     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #28     RenderPositionedBox.performLayout (package:flutter/sr
c/rendering/shifted_box.dart:300:13)
I/flutter ( 2122): #29     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #30     RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMi
xin.performLayout (package:flutter/src/rendering/proxy_box.dart:106:13)
I/flutter ( 2122): #31     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #32     RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMi
xin.performLayout (package:flutter/src/rendering/proxy_box.dart:106:13)
I/flutter ( 2122): #33     _RenderCustomClip.performLayout (package:flutter/src/
rendering/proxy_box.dart:1004:24)
I/flutter ( 2122): #34     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #35     RenderConstrainedBox.performLayout (package:flutter/s
rc/rendering/proxy_box.dart:256:13)
I/flutter ( 2122): #36     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #37     MultiChildLayoutDelegate.layoutChild (package:flutter
/src/rendering/custom_layout.dart:124:11)
I/flutter ( 2122): #38     _ScaffoldLayout.performLayout (package:flutter/src/ma
terial/scaffold.dart:62:20)
I/flutter ( 2122): #39     MultiChildLayoutDelegate._callPerformLayout (package:
flutter/src/rendering/custom_layout.dart:194:7)
I/flutter ( 2122): #40     RenderCustomMultiChildLayoutBox.performLayout (packag
e:flutter/src/rendering/custom_layout.dart:338:14)
I/flutter ( 2122): #41     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #42     RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMi
xin.performLayout (package:flutter/src/rendering/proxy_box.dart:106:13)
I/flutter ( 2122): #43     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #44     RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMi
xin.performLayout (package:flutter/src/rendering/proxy_box.dart:106:13)
I/flutter ( 2122): #45     _RenderCustomClip.performLayout (package:flutter/src/
rendering/proxy_box.dart:1004:24)
I/flutter ( 2122): #46     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #47     MultiChildLayoutDelegate.layoutChild (package:flutter
/src/rendering/custom_layout.dart:124:11)
I/flutter ( 2122): #48     _ScaffoldLayout.performLayout (package:flutter/src/ma
terial/scaffold.dart:83:7)
I/flutter ( 2122): #49     MultiChildLayoutDelegate._callPerformLayout (package:
flutter/src/rendering/custom_layout.dart:194:7)
I/flutter ( 2122): #50     RenderCustomMultiChildLayoutBox.performLayout (packag
e:flutter/src/rendering/custom_layout.dart:338:14)
I/flutter ( 2122): #51     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #52     RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMi
xin.performLayout (package:flutter/src/rendering/proxy_box.dart:106:13)
I/flutter ( 2122): #53     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #54     RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMi
xin.performLayout (package:flutter/src/rendering/proxy_box.dart:106:13)
I/flutter ( 2122): #55     _RenderCustomClip.performLayout (package:flutter/src/
rendering/proxy_box.dart:1004:24)
I/flutter ( 2122): #56     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #57     RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMi
xin.performLayout (package:flutter/src/rendering/proxy_box.dart:106:13)
I/flutter ( 2122): #58     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #59     RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMi
xin.performLayout (package:flutter/src/rendering/proxy_box.dart:106:13)
I/flutter ( 2122): #60     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #61     RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMi
xin.performLayout (package:flutter/src/rendering/proxy_box.dart:106:13)
I/flutter ( 2122): #62     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #63     RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMi
xin.performLayout (package:flutter/src/rendering/proxy_box.dart:106:13)
I/flutter ( 2122): #64     RenderOffstage.performLayout (package:flutter/src/ren
dering/proxy_box.dart:2647:26)
I/flutter ( 2122): #65     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #66     RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMi
xin.performLayout (package:flutter/src/rendering/proxy_box.dart:106:13)
I/flutter ( 2122): #67     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #68     RenderStack.performLayout (package:flutter/src/render
ing/stack.dart:433:15)
I/flutter ( 2122): #69     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #70     RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMi
xin.performLayout (package:flutter/src/rendering/proxy_box.dart:106:13)
I/flutter ( 2122): #71     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #72     RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMi
xin.performLayout (package:flutter/src/rendering/proxy_box.dart:106:13)
I/flutter ( 2122): #73     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #74     RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMi
xin.performLayout (package:flutter/src/rendering/proxy_box.dart:106:13)
I/flutter ( 2122): #75     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #76     RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMi
xin.performLayout (package:flutter/src/rendering/proxy_box.dart:106:13)
I/flutter ( 2122): #77     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #78     RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMi
xin.performLayout (package:flutter/src/rendering/proxy_box.dart:106:13)
I/flutter ( 2122): #79     RenderObject.layout (package:flutter/src/rendering/ob
ject.dart:1892:7)
I/flutter ( 2122): #80     RenderView.performLayout (package:flutter/src/renderi
ng/view.dart:142:13)
I/flutter ( 2122): #81     RenderObject._layoutWithoutResize (package:flutter/sr
c/rendering/object.dart:1767:7)
I/flutter ( 2122): #82     PipelineOwner.flushLayout (package:flutter/src/render
ing/object.dart:1056:18)
I/flutter ( 2122): #83     BindingBase&SchedulerBinding&GestureBinding&ServicesB
inding&RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:251
:19)
I/flutter ( 2122): #84     BindingBase&SchedulerBinding&GestureBinding&ServicesB
inding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/bin
ding.dart:504:22)
I/flutter ( 2122): #85     BindingBase&SchedulerBinding&GestureBinding&ServicesB
inding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rende
ring/binding.dart:189:5)
I/flutter ( 2122): #86     BindingBase&SchedulerBinding._invokeFrameCallback (pa
ckage:flutter/src/scheduler/binding.dart:695:15)
I/flutter ( 2122): #87     BindingBase&SchedulerBinding.handleDrawFrame (package
:flutter/src/scheduler/binding.dart:643:9)
I/flutter ( 2122): #88     BindingBase&SchedulerBinding&GestureBinding&ServicesB
inding&RendererBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/
src/rendering/binding.dart:275:20)
I/flutter ( 2122): #90     _Timer._runTimers (dart:isolate-patch/timer_impl.dart
:366)
I/flutter ( 2122): #91     _Timer._handleMessage (dart:isolate-patch/timer_impl.
dart:394)
I/flutter ( 2122): #92     _RawReceivePortImpl._handleMessage (dart:isolate-patc
h/isolate_patch.dart:151)
I/flutter ( 2122): (elided 2 frames from class _AssertionError and package dart:
async-patch)
I/flutter ( 2122):
I/flutter ( 2122): The following RenderObject was being processed when the excep
tion was fired:
I/flutter ( 2122):   RenderFlex#d5ed8 relayoutBoundary=up18 NEEDS-LAYOUT NEEDS-P
AINT
I/flutter ( 2122):   creator: Row ← Padding ← DecoratedBox ← ConstrainedBox ← Co
ntainer ← Semantics ← Chip ← Row ←
I/flutter ( 2122):   LayoutId-[<_ToolbarSlot.trailing>] ← CustomMultiChildLayout
 ← NavigationToolbar ← Padding ← ⋯
I/flutter ( 2122):   parentData: offset=Offset(0.0, 0.0) (can use size)
I/flutter ( 2122):   constraints: BoxConstraints(0.0<=w<=Infinity, h=56.0)
I/flutter ( 2122):   size: MISSING
I/flutter ( 2122):   direction: horizontal
I/flutter ( 2122):   mainAxisAlignment: start
I/flutter ( 2122):   mainAxisSize: min
I/flutter ( 2122):   crossAxisAlignment: center
I/flutter ( 2122):   textBaseline: null
I/flutter ( 2122): This RenderObject had the following descendants (showing up t
o depth 5):
I/flutter ( 2122):   RenderExcludeSemantics#444ae relayoutBoundary=up19 NEEDS-PA
INT
I/flutter ( 2122):     RenderPadding#f2bb4 relayoutBoundary=up20 NEEDS-PAINT
I/flutter ( 2122):       RenderConstrainedBox#4d8b3 relayoutBoundary=up21 NEEDS-
PAINT
I/flutter ( 2122):         RenderConstrainedBox#95494 NEEDS-PAINT
I/flutter ( 2122):           RenderDecoratedBox#756cc NEEDS-PAINT
I/flutter ( 2122):   RenderParagraph#336c6 NEEDS-LAYOUT NEEDS-PAINT
I/flutter ( 2122): ═════════════════════════════════════════════════════════════
═══════════════════════════════════════
I/flutter ( 2122): Another exception was thrown: 'package:flutter/src/rendering/
box.dart': Failed assertion: line 1429 pos 12: 'hasSize': is not true.
I/flutter ( 2122): Another exception was thrown: 'package:flutter/src/rendering/
box.dart': Failed assertion: line 1429 pos 12: 'hasSize': is not true.
I/flutter ( 2122): Another exception was thrown: 'package:flutter/src/rendering/
box.dart': Failed assertion: line 1429 pos 12: 'hasSize': is not true.
I/flutter ( 2122): Another exception was thrown: 'package:flutter/src/rendering/
box.dart': Failed assertion: line 1429 pos 12: 'hasSize': is not true.
I/flutter ( 2122): Another exception was thrown: 'package:flutter/src/rendering/
box.dart': Failed assertion: line 1429 pos 12: 'hasSize': is not true.
I/flutter ( 2122): Another exception was thrown: 'package:flutter/src/rendering/
box.dart': Failed assertion: line 1429 pos 12: 'hasSize': is not true.
I/flutter ( 2122): Another exception was thrown: NoSuchMethodError: The method '
<=' was called on null.

Run flutter analyze and attach any output of that command also.
C:\Users\Ileana\Documents\memes_tycoon>flutter analyze
Analyzing C:\Users\Ileana\Documents\memes_tycoon...
No issues found!
Ran in 22.4s

Flutter Doctor
Paste the output of running flutter doctor here.
C:\Users\Ileana\Documents\memes_tycoon>flutter doctor
[ÔêÜ] Flutter (on Microsoft Windows [version 6.3.9600], locale fr-FR, channel al
pha)
    ÔÇó Flutter at C:\Users\Ileana\Documents\flutter
    ÔÇó Framework revision b156a0f054 (6 days ago), 2017-08-11 22:01:40 -0700
    ÔÇó Engine revision fef7d827d6
    ÔÇó Tools Dart version 1.25.0-dev.9.0

[ÔêÜ] Android toolchain - develop for Android devices (Android SDK 25.0.3)
    ÔÇó Android SDK at C:\android_sdk
    ÔÇó Platform android-25, build-tools 25.0.3
    ÔÇó Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    ÔÇó Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[ÔêÜ] Android Studio (version 2.3)
    ÔÇó Android Studio at C:\Program Files\Android\Android Studio
    ÔÇó Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[ÔêÜ] Connected devices
    ÔÇó SM G935F ÔÇó ce041604a249500a03 ÔÇó android-arm ÔÇó Android 7.0 (API 24)

For more information about diagnosing and reporting Flutter bugs, please see https://flutter.io/bug-reports/.

https://github.com/flutter/flutter/pull/11669 should fix it.

Please try this out on the master channel and reopen this bug if it isn't fixed! Thanks!


add support for riscv64

Add support for riscv64 as host architecture.

Checklist

[x] I've run tests to see all new and existing tests pass
[x] I've followed the code style of the rest of the project
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary

If you've made changes to gyb files

[ ] I've run .script/generate_boilerplate_files_with_gyb and included updated generated files in a commit of this pull request

Motivation:
Enable the Swift toolchain to build and run on RISC-V 64 host.
Modifications:
Add support for riscv64 as host architecture to cmake/modules/SwiftSupport.cmake
Result:
riscv64 is now recognized as a valid host architecture.

@swift-server-bot test this please


Call setWalletActionsEnabled(true) only for the first wallet

On master (a78742830aa35bf57bcb0a4730977a1e5a1876bc) there is a bug:

open an encrypted wallet; please note that the "Encrypt Wallet..." menu item is disabled that is expected:

then open any other wallet; note that the "Encrypt Wallet..." menu item gets enabled that is wrong:

This PR fixes this bug.

The bug initially was reported by @Saibato in #42:

https://github.com/bitcoin-core/gui/pull/42#issuecomment-667697341
https://github.com/bitcoin-core/gui/pull/42#issuecomment-667827606

friendly ping @achow101 @meshcollider @promag @Sjors

@achow101

It's not clear to me why this fixes the problem. Wouldn't a better fix be to enable/disable that menu item depending on the wallet being selected?

This is exactly how it works with this PR :)
When a new wallet added in m_wallet_selector->addItem(), a signal calls BitcoinGUI::setCurrentWalletBySelectorIndex() slot that in turn calls BitcoinGUI::setCurrentWallet().
Things are broken in master due to the unconditional call setWalletActionsEnabled(true).

When a new wallet added in m_wallet_selector->addItem(), a signal calls BitcoinGUI::setCurrentWalletBySelectorIndex() slot that in turn calls BitcoinGUI::setCurrentWallet().
Things are broken in master due to the unconditional call setWalletActionsEnabled(true).

BitcoinGUI::setCurrentWallet() should be occurring after setWalletActionsEnabled(true), so in theory, it should be fine to do it unconditionally. So why doesn't it work?

@achow101
I was a bit wrong describing adding a new wallet ((
When no wallets are open, and a new first wallet is added, the currentIndexChanged(0) signal is emitted with parameter index=0. This signal calls setCurrentWalletBySelectorIndex(0) slot. Result: wallet menu items are set correctly.
When any wallet is open already, and a non-first  wallet is added, the currentIndexChanged() signal is not emitted. And setCurrentWalletBySelectorIndex() is not called. Result: wallet menu items are ignored.
In the second case the setWalletActionsEnabled(true) call enables all wallet menu items unconditionally. That is wrong.

Tested ACK 20c9e035543892e322c7134e89eb33115678bb30 - I could reproduce the issue on master and have verify that this PR fixes it.

ACK 20c9e035543892e322c7134e89eb33115678bb30


Check for invalid characters

This closes #84. I also added unit tests for validate_strings_file.

Depends on #120.

Needs rebase.

Whoops! Since I was not assigned to this PR I was never notified that it (and the others) were updated. Sorry about that! I will get to these today.


chore(master): release 1.4.2

:robot: I have created a release beep boop
1.4.2 (2023-08-20)
Bug Fixes

ci (78aff94)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/KYX1234/Element-Admin/releases/tag/v1.4.2 :sunflower:


Custom formatters ignored in RichHandler when rich_tracebacks=True

Hi,
I am not sure if it is a bug or intended behavior. But I configured a RichHandler with rich traceback toggled on. I also added a custom formatter to include the process name and Id in all log messages.
This works fine for all logging levels with the exception of logging exceptions/errors. Raised errors are logged nicely with rich tracebacks but the process name isn’t included in the logged error message before the traceback. It seems the configured formatter is simply ignored in this case.
This works however, if I replace the RichHandler with a normal StreamHandler. Of course I can manually add the process name to the rich handled error traceback. But if a user of our library doesn’t use rich, he would see the process name twice (once because of the formatter and once because of the manual addition).
Any feedback on this issue is much appreciated :)
Best regards
Lars
Originally posted by @LarsHill in https://github.com/willmcgugan/rich/discussions/1072

@LarsHill Please give v9.12.4 a try

Hi,
Thanks a lot for your quick effort to fix this issue.
The current version works perfectly when a Formatter is actually provided to the RichHandler.
However, if no Formatter is provided, the traceback shows twice (once normally and once formatted).
I took the freedom to investigate the issue myself by checking the emit method in rich/logging.py.
The issue is that no matter what the self.format method from logging library is called in the beginning, which formats the traceback in the standard way and includes it in the log message string.
If rich traceback is true and a formatter is provided, this message gets overwritten and everything is fine. However, if no formatter is provided, the formatted message (including the traceback) is rendered together with the additional rich traceback.
I fixed this issue by including a simple else condition that handles the case of rich_traceback==True and self.formatter==False by overwriting the formatted message with the default string only message.
See below the edited emit fn:
def emit(self, record: LogRecord) -> None:
    """Invoked by logging."""
    message = self.format(record)

    traceback = None
    if (
        self.rich_tracebacks
        and record.exc_info
        and record.exc_info != (None, None, None)
    ):
        exc_type, exc_value, exc_traceback = record.exc_info
        assert exc_type is not None
        assert exc_value is not None
        traceback = Traceback.from_exception(
            exc_type,
            exc_value,
            exc_traceback,
            width=self.tracebacks_width,
            extra_lines=self.tracebacks_extra_lines,
            theme=self.tracebacks_theme,
            word_wrap=self.tracebacks_word_wrap,
            show_locals=self.tracebacks_show_locals,
            locals_max_length=self.locals_max_length,
            locals_max_string=self.locals_max_string,
        )
        if self.formatter:
            record.message = record.getMessage()
            formatter = self.formatter
            if hasattr(formatter, "usesTime") and formatter.usesTime():  # type: ignore
                record.asctime = formatter.formatTime(record, formatter.datefmt)
            message = formatter.formatMessage(record)
        else:
            message = record.getMessage()

    message_renderable = self.render_message(record, message)
    log_renderable = self.render(
        record=record, traceback=traceback, message_renderable=message_renderable
    )
    self.console.print(log_renderable)```

Should be fixed in 9.13.0
How are configuring logging so that the handler doesn't have a formatter? basicConfig seems to assign a default formatter.

Should be fixed in 9.13.0

Looks good :) I‘ll give it a try, but I guess it‘ll work now as expected.

How are configuring logging so that the handler doesn't have a formatter? basicConfig seems to assign a default formatter.

That‘s correct. But I was referring to explicitly assigning a formatter when not using basicConfig. If a handler has no formatter assigned, a default formatter will be used.
However, self.formatter is not set in this case.
For example, when using the RichHandler, I don’t necessarily have to assign a separate formatter.
Writing
import logging

from rich.logging import RichHandler

logger = logging.getLogger()
handler = RichHandler()
logger.addHandler(handler)
logger.setLevel(„INFO“)

would result in a logger that uses the default formatter. And since RichHandler inherits from Handler, self.formatter would be None.
And in rich Version 9.12.4 this scenario would lead to the double traceback rendering issue given rich_traceback is True.


Code Quality: Refactor Dialog pages

Description
Added detailed XAML comment and refactored code-behind codes in Files.App.Dialogs namespace classes.
Motivation and Context
One of the plan to add XAML comments.
PR checklist

[x] Were these changes approved in an issue or discussion with the project maintainers? In order to prevent extra work, feature requests and changes to the codebase must be approved before the pull request will be reviewed. This prevents extra work for the contributors and maintainers.
[x] Did you build the app and test your changes?
[x] Did you check for accessibility? You can use Accessibility Insights for this.
[ ] Did you remove any strings from the en-us resource file?

[ ] Did you search the solution to see if the string is still being used?

[ ] Did you implement any design changes to an existing feature?

[ ] Was this change approved?

[ ] Are there any other steps that were used to validate these changes?

Screenshots
None

I see you applied the rule-of-4, good job! 😄

@yaira2 Ready for review.

Haven't seen anything suspicious in the code. Another read is more than welcome though, I am not fluent in .xmal.


move standardization checks into orb

We should have checks to ensure that many of the great-first-issue things stay fixed. We should check those in: https://github.com/sous-chefs/orbs

A lot of this is already handled now :+1:


Add support for reverse geo-coding via REST api

Hi @klokan, here is my reverse-geocoding code.
Please let me know your thoughts!

Thanks, Gordon @komodo-solutions. We will schedule review and merge of the code. For the first glimpse, it looks very good.
We have to test it before merging to master. Give us some time, please.

@MartinMikita could you please check this and merge if everything is fine?
We should plan a new release of OSMNames SphinxSearch - and update of the docker and live instance.
Probably to the second half of August? After the OSMNames data v2.0 are finished and out: https://github.com/osmnames/osmnames/milestones

Hi @klokan and @MartinMikita, thanks for the comments.
Yes happy to optimise as and where possible.
The 2-part sql queries were a result of SphinxQL not supporting the OR operator (I think there is a comment there?) - if you have a suggestion to fold it into 1 then please let me know! I couldn't find a way round...
The sql = select + where + wherelat + limit approach is keeping the code DRY - I don't follow your thought that it is repeating? Please could you expand on that?
Thanks!
Thanks!

I know and understand the problem with OR operation.
But it could be probably handled via an array of queries (or where conditions).
And there should be no requirement for too many variables or conditions.
Sample code:

prepare wherelot variable as an array of the conditions (for example (lon BETWEEN {} AND {}) normal query, (lon BETWEEN {} AND 180.0) first query for (lon_min < -180.0))
loop over this array and prepare SQL as you have now, sql = select + "WHERE " + wherelot[i] + wherelat + limit
append this query into debug and execute it, append results into rows and save desc
in this case there will be only once conn.execute() and without additional conditions

Another note:

you can use an array of AND conditions and join them: sql = select + "WHERE " + " AND ".join([wherelot[i], wherelat, class) + limit

This could improve reading of what sql is: selecting, based on WHERE conditions and limit (with order).

Good morning, coding changes as requested are in place, unit tests run sucessfully.
Thanks!

Thanks Martin. Will you let me know when it gets released please (and do
you have a time for that)?
Many thanks,
Gordon
On 31/08/2017 15:02, Martin Mikita wrote:

Merged #39 https://github.com/klokantech/osmnames-sphinxsearch/pull/39.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/klokantech/osmnames-sphinxsearch/pull/39#event-1229607938,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Acv1BaQZMoMTbl5TQelhtWzAufoSa2rKks5sdrzZgaJpZM4OWzjh.
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
Virus-free. www.avg.com
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

We should be able to release this changes on osmnames.org in two weeks. We will notify you, as well.

Hello Gordon,
We have released and published new version of OSMNames SphinxSearch on osmnames.org.
We have modified the result JSON of your reverse geo-coding API, so it corresponds with the format of search queries.

Thanks Martin, I will get it integrated into my app now.
Regards,
Gordon
On 05/09/2017 14:36, Martin Mikita wrote:

Hello Gordon,
We have released and published new version of OSMNames SphinxSearch on
osmnames.org.
We have modified the result JSON of your reverse geo-coding API, so it
corresponds with the format of search queries.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/klokantech/osmnames-sphinxsearch/pull/39#issuecomment-327177233,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Acv1BX1Qpx8y4YJe6qjzBqgpUTbv1JCzks5sfU5RgaJpZM4OWzjh.
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
Virus-free. www.avg.com
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Hi Martin,
Could you just confirm the url form to do a lat/lon search on osmnames.org?
Using /r// or indeed a /q/ gives a 404 error - whereas
previously it would give the raw json result?
Thanks,
Gordon
On 05/09/2017 14:36, Martin Mikita wrote:

Hello Gordon,
We have released and published new version of OSMNames SphinxSearch on
osmnames.org.
We have modified the result JSON of your reverse geo-coding API, so it
corresponds with the format of search queries.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/klokantech/osmnames-sphinxsearch/pull/39#issuecomment-327177233,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Acv1BX1Qpx8y4YJe6qjzBqgpUTbv1JCzks5sfU5RgaJpZM4OWzjh.
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
Virus-free. www.avg.com
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

You can either use your proposed API /r/<lon>/<lat>, for an example /r/18/50 should return OSMNames result with display_name = Hněvošice, Hněvošice, okres Opava, Moravskoslezský kraj, Moravskoslezsko, Česko.
Or you can use our improved LatLon search via Query, for an example /q/50 18.js should return 2 results, the first is directly the LatLon point (50deg 18deg) and the second is the result of the reveresed geo-coding, the same as above.
If you think there is a bug in this repository, please, open a new issue with examples.


[Bug] Cancelling dbt invocation does not cancel the query on Athena

👋🏻 Hello dbt-athena community,
Is this a new bug in dbt-athena?

[X] I believe this is a new bug in dbt-athena
[X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior
When I try to cancel a dbt invocation, the invocation can be cancelled but the query is not cancelled in Athena. Therefore it can lead to concurrent requests when retrying.
Expected Behavior
When the dbt invocation cancel process is done, the query should be cancelled in Athena
Steps To Reproduce

Run a model
Cancel the invocation (for instance with CTRL + c)
Check in Athena console if the query is still running or not

Relevant log output
No response
Environment
- OS: MacOS (the same problem in Docker image based on Debian)
- Python: 3.12.7
- dbt-core: 1.8.9
- dbt-athena: 1.8.4

Additional Context
No response

The adapter cancel behavior is defined here: https://github.com/dbt-labs/dbt-adapters/blob/b6152d6b7ad70ea5c97237b802916f6387d7f43a/dbt/adapters/base/impl.py#L1327
Then if we go to the SQLConnectionsManager, the cancel_open is defined here: https://github.com/dbt-labs/dbt-adapters/blob/b6152d6b7ad70ea5c97237b802916f6387d7f43a/dbt/adapters/sql/connections.py#L53
But in the AthenaConnectionsManager, we don't implement the cancel method: https://github.com/dbt-labs/dbt-athena/blob/8e2aa424256e354103d619cc07f9a79d85fadf98/dbt-athena/src/dbt/adapters/athena/connections.py#L321-L322
I think the solution would be to have in the Connection object the query id and call athena api to cancel the query.


redesign navigation bars

Motivation and Context

Redesign the navigation bars.
Your Changes

Description: Redesign the navigation bars.

Type of change (select all that apply):

[x] Other (please specify): Redesign the navigation bars

Testing

UI Testing.
Questions and Comments (if applicable)

Sometimes the dropdown menu can be covered.
Checklist

[x] I have performed a self-review of my own code.

[ ] I have fixed any Hound bot comments.

[ ] I have reviewed the test coverage changes reported on Coveralls.

[ ] I have verified that the CI tests have passed.

Required documentation changes (if applicable)

@JunruL thank you for starting this! I am closing this PR for now but may revive the ideas here in the future.


[SPARK-43376][SQL] Improve reuse subquery with table cache

What changes were proposed in this pull request?

AQE can not reuse subquery if it is pushed into InMemoryTableScan. There are two issues:

ReuseAdaptiveSubquery can not support reuse subquery if two subquery have the same exprId
InMemoryTableScan miss apply ReuseAdaptiveSubquery when wrap TableCacheQueryStageExec

For example:
Seq(1).toDF("c1").cache().createOrReplaceTempView("t1")
Seq(2).toDF("c2").createOrReplaceTempView("t2")
spark.sql("SELECT * FROM t1 WHERE c1 < (SELECT c2 FROM t2)")

There are two subquery#27 but have no ReusedSubquery
AdaptiveSparkPlan isFinalPlan=true
+- == Final Plan ==
   *(1) Filter (c1#14 < Subquery subquery#27, [id=#20])
   :  +- Subquery subquery#27, [id=#20]
   :     +- AdaptiveSparkPlan isFinalPlan=true
   :        +- LocalTableScan [c2#25]
   +- TableCacheQueryStage 0
      +- InMemoryTableScan [c1#14], [(c1#14 < Subquery subquery#27, [id=#20])]
            :- InMemoryRelation [c1#14], StorageLevel(disk, memory, deserialized, 1 replicas)
            :     +- LocalTableScan [c1#14]
            +- Subquery subquery#27, [id=#20]
               +- AdaptiveSparkPlan isFinalPlan=true
                  +- LocalTableScan [c2#25]

Why are the changes needed?

Improve the coverage of reuse subquery.
Note that, it is not a real perf issue because the subquery has been already reused (the same Java object). This pr just makes the plan clearer about subquery reuse.
Does this PR introduce any user-facing change?

no
How was this patch tested?

add test

Can we mention it in the PR description that this is not a real perf issue, but just make the plan clearer about subquery reuse?

thanks, merging to master!

thank you @cloud-fan @peter-toth @dongjoon-hyun


CNAME URL not resolving for custom domain

Before opening, please confirm:

[X] I have checked the custom domains troubleshooting guide.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

App Id
d2utq15h2mroeh
Region
eu-west
Step
CNAME
Status
Failed
Issue or question
Trying to connect a sub domain that we have in cloudflair to the app.  The CNAME given by the domain config does not resolve to the app: d370nq6ui0gude.cloudfront.net
I deleted the domain and re added it today as it did not work over the previous 72 hours.
The help messages suggests waiting for the name to resolve before setting up the CNAME.
The domain we wish to use is apply.carcliq.co.uk
AWS appears to want to redirect apply.carcliq.co.uk to www.apply.carcliq.co.uk
Error message
The required CNAME records are not yet configured for the below subdomains.
Click "Actions > View DNS Records" and configure the required CNAME records with your DNS provider:
Additional information
No response

one of the dialogues says to wait "If you are migrating a custom domain that is already serving production traffic, please wait until your new application loads successfully at the .cloudfront.net url shown below before updating your DNS records:"  but your help guide says "However, you cannot access your application directly using this CloudFront URL. It returns a 404 error. Your application resolves only using the Amplify app URL (for example, https://main.d5udybEXAMPLE.amplifyapp.com, or your custom domain (for example www.example.com)"


Number of epochs to train Colbert

Hi @okhat
I have some questions
Q1: How do I set the number of epochs to train Colbert on a database?
Q2: What is the number of epochs to train Colbert by default?
Q3: In which file can I see the number of epoch settings for training Colbert?
Thank you

Thanks for asking! This is a common question.
There's no number of epochs to set. We train on triples (or, more generally, tuples) of <query, positive, negative[s]> and we train only once on each example you supply.
Because you can always sample more negatives per query--positive pair, you almost never run out of unique triples to train with, so there's no need to "repeat" examples in multiple "epochs".
That said, I recommend between 10 and 100 examples for each query-positive pair for training. For instance, if you have 10k queries, 2 positives per query, and you use batch size 32, you might want to train for anything between (10k210 / 32) steps up to (10k2100 / 32) steps.
You can simply use the saved checkpoints for this, which are saved regularly (e.g., colbert-10000.dnn, colbert-20000.dnn, etc.) or use --maxsteps to select the stopping point.

Thanks @okhat for the good explanation
I need help using the following script to train the model
In the last line that points to the root
When I want to train the model with my own dataset (for example, PF-dataset), what should I put after the following items?
Or rather, what exactly does each of those items on the last line refer to?
CUDA_VISIBLE_DEVICES="0,1,2,3" \
python -m torch.distributed.launch --nproc_per_node=4 -m \
colbert.train --amp --doc_maxlen 180 --mask-punctuation --bsize 32 --accum 1 \
--triples /path/to/MSMARCO/triples.train.small.tsv \
--root /root/to/experiments/ --experiment MSMARCO-psg --similarity l2 --run msmarco.psg.l2

--root
--experiment
--similarity
--run

Thank you

All of the options you listed at the bottom are optional.
You don't need to specify the similarity. Both options l2 and cosine work fine. (The default is cosine.)
Root is where to save logs. Experiment is the name of your experiment. Run is the name of the current run, within the experiment. If you don't specify any of these three, some default value will be selected for you.

Hi @okhat, could you clarify if pre-trained on MS MACRO v1 model is available somewhere? I’ve managed to find only v2 model in the example notebook in new_api branch. Thanks in advance!

Thanks for your help


Compatibility with Spark 3.0

Hello
I have updated my spark cluster with the new spark release 3.0
But the spark-deep-learning is not working (built with scala v 2.11)
Is there any plan to move this library to the new version of spark?
thanks :-)

Hello,
Any update on the issue .. i am too trying to implement sparkdl on spark 3.1 but getting the key error 16.
Any help would be highly appreciated.


Usage on a self-hosted server?

Details
From what it seems, unlighthouse is only usable in localhost, since it attempts to access localhost:5678/api/scan-meta. Is it possible to use it on an external server?
For example, imagine a web app that is running on an ubuntu server. I would like to unlighthouse it, but since I already have ownership of the server I would like to get the reports from that server. Is there a way to make unlighthouse use the correct address or is it always localhost?

if you start unlighthouse on the same server as your web app and set up a simple reverse proxy everything should be working just fine

@YannickFuereder thanks for the reply! I already solved this, simply forgot to close, my apologies, but thanks again!


Is there a way where we can specify each cell type as calendar specific to data ?

Hi ,
Is there a way where we can specify each cell type as calendar specific to data ?
Also is formula supported for date cell type ?
=E3+1  //date will get increment by 1

No, this is not supported  by jexcel.

Alternative 1
https://jsfiddle.net/paulhodel/03d5rhzo/
Alternative 2
https://jsfiddle.net/paulhodel/wk8kq4r5/7/
You can create you custom methods:
=customMethod(A1)
function customMethod(cell)
{
// your operations with cell
}


Taiwan is not a country，it is a province of China！

https://upload.cc/i1/2018/08/31/HRUkuM.png

We are not using that donation form any more.


Implement multiownable

Currently there is only one owner who can mark people attend.
There will be a risk when the owner had problem with his/her account.
User following as a reference to implement multi ownership system.
https://github.com/OpenZeppelin/zeppelin-solidity/issues/769

Implemented https://github.com/makoto/blockparty/pull/135 instead


Added View Tools sub menu in general tools

https://i.imgur.com/G6HpOdR.png

i fucked up by commiting to the main branch of mine lol


caption.py:IndexError: tensors used as indices must be long, byte or bool tensors

When I run caption.py,I got the following error:
Traceback (most recent call last):
File "D:/2021/sjt/code/a-PyTorch-Tutorial-to-Image-Captioning-master/caption.py", line 217, in
seq, alphas = caption_image_beam_search(encoder, decoder, args.img, word_map, args.beam_size)
File "D:/2021/sjt/code/a-PyTorch-Tutorial-to-Image-Captioning-master/caption.py", line 113, in caption_image_beam_search
seqs_alpha = torch.cat([seqs_alpha[prev_word_inds.long()], alpha[prev_word_inds].unsqueeze(1)],
IndexError: tensors used as indices must be long, byte or bool tensors

I had the same problem

I have the same problem. Have you solved it？

    prev_word_inds = top_k_words / vocab_size

You can try changing the "/" in the above code to "//".

你好，解决了没

我也遇到了同样的问题，请问怎么解决


feat(protocol): sync state root rather than signal service's storage root

verifyMerkleProof in SignalService remains to be re-implemented.

fyi @dantaik if you can hold off on merging this until i fix the tags that would be great. i didn't push the v1.0.0 protocol major release yet which establishes the base API. will take a look tomorrow.

fyi @dantaik if you can hold off on merging this until i fix the tags that would be great. i didn't push the v1.0.0 protocol major release yet which establishes the base API. will take a look tomorrow.

Please mark this as ready when you are done.

@dantaik this is okay to merge. lets not worry about breaking changes for now, we will not release the v1.0.0 yet. i will tag bcr audited tag in another way (0.x.y+bcr.audited)


General Grievance: Watch mb66v11.com

General Grievance requests the watch of the watch_keyword mb66v11\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

mb66v11\.com has been seen in 0 true positives, 0 false positives, and 0 NAAs.

Approved by Jeff Schaller in Charcoal HQ


Set branch coverage to false

@lbbrhzn I don't think branch testing is working properly with the asyncio tests

Why disable branch coverage? It would mean you only get coverage info after merging to main. I think we should look at coverage before merging to main.

Why disable branch coverage? It would mean you only get coverage info after merging to main. I think we should look at coverage before merging to main.

It does not relate to branches in Github but rather branching code eg an if statement. See https://coverage.readthedocs.io/en/latest/branch.html#branch

ok, then it's fine.


Access token response with wrong expires_in

Bug Description
When requesting an accessToken (/oauth2/token) the expires_in property generated by Oauth2TokenEndpointFilter and OAuth2AccessTokenResponse.Buider  is not based on the correct difference between issuedAt and the expiresAt.
How To Reproduce

A custom implementation of OAuth2ClientCredentialsAuthenticationProvider that retrieves an existing Oauth2Authorization.OAuth2AccessToken for that particular client or generates a new one if none is found.
Request a new access token (/oauth2/token?grant_type=client_credentials or whatever is based on your custom implementation).
Request again an accessToken. At this point the inconsistency between the actual expiration of the token and the expires_in property in the response is evident.

Expected behavior
The response property expires_in implemented by Oauth2TokenEndpointFilter and OAuth2AccessTokenResponse.Buider should be generated based on the correct time difference between the issuedAt value and the token's expiration value (expiresAt).
Sample
A link to a GitHub repository with a minimal, reproducible sample. Just follow the README to reproduce the bug.
I really want to contribute with a PR, as far it's my first contribution to this project. Let me know if it's OK to send it.

Hi @douglas-DS. It seems your custom provider (from the sample) is re-using access tokens in the token request. This does not seem correct to me, so can you shed some light on why you are choosing to do this?

The response property expires_in implemented by Oauth2TokenEndpointFilter and OAuth2AccessTokenResponse.Buider should be generated based on the correct time difference between the issuedAt value and the token's expiration value (expiresAt).

Do you mean to say that the expires_in field should be calculated based on the difference between "current time" and expiresAt instead of issuedAt and expiresAt?

@sjohnr The purpose of this custom provider is reuse an existing token or create a new one, in other words a "getOrCreate" operation. This is an intentional behavior, since we have a SaaS scenario and multiple instances of the same client that would collapse if they were competing for a new accessToken on each internal operation.

Thanks for the explanation, @douglas-DS.
I do see your point. However, the existing response handler correctly calculates the expires_in property for a freshly generated token, as defined in the spec:

"expires_in":    RECOMMENDED. The lifetime in seconds of the access token. For example, the value 3600 denotes that the access token will expire in one hour from the time the response was generated.

Since you've customized the AuthenticationProvider to re-use tokens which is not the intent of the token endpoint and not mentioned in the spec, I think you will need to provide your own AuthenticationSuccessHandler for the OAuth2TokenEndpointFilter as well. You can do so like this:
authorizationServerConfigurer
	.tokenEndpoint((tokenEndpoint) -> tokenEndpoint
		.accessTokenResponseHandler((request, response, authentication) -> {
			// ...
		})
	);

I'm going to close this, as the provided explanation should be able to move you forward.

No problem, @sjohnr. Tanks for the explanation and your time!

@sjohnr  One more think I'd like to add, as describe here in the spec:
"expires_in":     RECOMMENDED. The lifetime in seconds of the access token. For example, the value 3600 denotes that the access token will expire in one hour from the time the response was generated
In my opinion, that behavior should be implemented in the core of spring-authorization-server and no by a custom response handler as you mentioned earlier.


SPFx gulp serve issue in workbench.html

Category

[x ] Question
[ ] Typo
[ ] Bug
[ ] Additional article idea

Expected or Desired Behavior
Desired behavior is to open up workbench and see the hello world application
Observed Behavior
Observed behavior is it runs into
Steps to Reproduce
I followed the documentation on setting up a development environment and proceeded to the hello world application.
Additional information
I have attached the requested console output of running GULP trust-dev-cert && serve. Please let me know if you're able to view the output & if it is what you need.
https://imgur.com/a/KVDHomA
Steps I took to remedy the issue but failed:
I attempted to follow the troubleshooting steps from the Microsoft documentation but I don't believe it applies to my situation. The NODE version I am running is 10.16. I am using 0365 and followed the steps of setting up the Office 365 tenant & Development Environment.
_Troubleshooting
SPFx Development for SharePoint Server 2016
SharePoint Server 2016 uses the SharePoint Framework (SPFx) v1.1. Around this the time of the v1.1 release, NodeJS was transitioning from NodeJS v6.x to v8.x. In this update, NodeJS introduced a change where the default changed from HTTP1 to HTTP2. For some, this caused issues with SPFx. A later version of SPFx resolved these issues, but those who are still working with SPFx v1.1 (such as those working with SharePoint Server 2016) may run into issues.
To resolve this, set the following environment variable to instruct NodeJS to use HTTP1 instead of the default HTTP2: NODE_NO_HTTP2=1.
For more information, refer to issue #1002.
Unable to Trust the Self-signed Development Certificate
In some cases, executing the command gulp trust-dev-cert, does not have the desired effect of trusting the self-signed development certificate on your machine. In rare cases such as these, you may need to delete a hidden folder that's generated in your profile folder. Locate & delete the folder /.gcb-serve-data and then try to trust the self-signed development certificate again._

Please elaborate on this this:

Observed Behavior
Observed behavior is it runs into

What exactly is / is not happening. Please provide screenshots, error messages, etc.
Also please provide context... SPFx version installed, browser tested, etc.

When I run "gulp serve", I expect the workbench on sharepoint to run on my chrome browser. I'm not sure what SPFx version is installed. Everything I've done up to this point is the following
Getting Started:
Created an app catalog site
Created an developer site collection
Created a team site

This was all done in the office 365 SharePoint Admin Center-

Set up Development Environment
Installed NodeJS LTS v10.16
Installed Visual Studio Code
Installed Yeoman & Gulp
Installed Yeoman SharePoint Generator
Then I proceeded to create our first client side webpart

Need versions... please run npm list -g --depth=0.
@dimportfolio said:

When I run "gulp serve", I expect the workbench on sharepoint to run on my chrome browser.

But what is happening... what do you see when you run gulp serve? Errors/no errors in the console, nothing in the browser, etc? Provide details on what is happening... you say you expect the above to happen, as do I... but if it isn't, what is happening.

<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>there is no errors in my console, also gulp serve seems to run fine. I've attached an imgur in the initial post that has a image of what the gulp serve outputs.
I also attached here an imgur of the browser page.
https://imgur.com/a/LpV4Jtt

I tried to get Node LTS 10.16 to go as well. No dice. I kept getting the SSL error (referenced in the above imgur url).
Setting the environment variable NODE_NO_HTTP2=1 did nothing to alleviate the problem.
Toasting the c:\Users$me.gcb-serve-data folder and running gulp trust-dev-cert did nothing either.
I had to go back to Node 8.16 to get it to work.

@DaveHaasPowderSoftware Node.js 10.* should work with SPFx v1.8.x... what version are you running?
@dimportfolio In the past, when all else failed I suggest uninstalling Node completely, reboot, verify it's not installed (by running node -v & npm list -g --depth=0... both should fail... if not, you haven't uninstalled everything), and try installing everything again & re-trusting the cert from an administrative command prompt.


Increase default database pool size to 20

Fix #1796
@dsander is there anywhere else I need to change this for Docker?

👍  We don't need additional changes, the docker images will use the defaults from .env.example as long as they are not specified in environment variables.

Thanks!


Grammar Fixes

Idk about this one...

It's literally the same thing, but implemented in one line with less memory use.

I think you missed the point, that code was shitty on purpose.

^

I request the presence of the allmighty @Rabrennie

is ok

Thinking about making tons of real songs lyrics? cool?


Added tooltip component for Description property in Display Attribute

Added a tooltip component which appears by the label when Description property in Display attribute is set.
After hovering an icon it displays a text from Description.
A Description for a property:

A Description for a whole row (works with either TOP or LEFT alignment):

Hi Jakub Thanks for your pull-request. i like the addition. I have some remarks before I can merge it.
Could you make the Tooltip a RenderFragment. And that can be set in the RenderFormElements component.
<EditForm Model="Model"
		  OnValidSubmit="HandleValidSubmit"
		  OnInvalidSubmit="HandleInValidSubmit">
    <DataAnnotationsValidator></DataAnnotationsValidator>
    <RenderFormElements>
             <LabelDescriptionTemplate >
                      <Tooltip<EMAIL_ADDRESS>
()

                      </Tooltip>
             </LabelDescriptionTemplate >
    </RenderFormElements>
    <button class="btn btn-primary" type="submit">Submit</button>
</EditForm>

You can set the implementation for the core version below as a default. This is framework agnostic.
if(LabelDescriptionTemplate ==null){
<Tooltip<EMAIL_ADDRESS>
ℹ

</Tooltip>
} else{
@RenderLabelDescriptionTemplate()
}

Than you could  override it by the RenderFrament in the bootstrap demo:
<Tooltip<EMAIL_ADDRESS>
()

                </Tooltip>

And could you please update the Readme.md with an example of the description below the Layout paragraph.

one for the core version
one for the bootstrap version (renderFragment example)

Sorry for the delay, but hadn't the time to review your code.
Kind regards,
Alex


Flakyness with TestSideCar

When I run the E2E tests multiple times I gets the TestSideCar failing often...
--- FAIL: TestSidecarTaskSupport (660.15s)
    init_test.go:121: Create namespace arendelle-95hvc to deploy to
    init_test.go:133: Verify SA "default" is created in namespace "arendelle-95hvc"
    --- FAIL: TestSidecarTaskSupport/A_sidecar_that_runs_forever_is_terminated_when_Steps_complete (660.11s)
        sidecar_test.go:84: Creating Task "sidecar-test-task-0"
        sidecar_test.go:89: Creating TaskRun "sidecar-test-task-run-0"
        sidecar_test.go:99: Error waiting for TaskRun "sidecar-test-task-run-0" to finish: task run "sidecar-test-task-run-0" failed
        sidecar_test.go:111: Error waiting for Pod "sidecar-test-task-run-0-pod-nsbrg" to terminate both the primary and sidecar containers: timed out waiting for the condition
        sidecar_test.go:132: Sidecar container has a nil Terminated status but non-nil is expected.
        sidecar_test.go:125: Primary container has nil Terminated state or did not complete successfully. Actual Terminated state: nil
        sidecar_test.go:140: Either the primary or sidecar containers did not terminate
=== CONT  TestTaskRunPipelineRunCancel

This is easily replicated when running multiple times on the same cluster (I run the E2E test in a taskrun) :

/area testing
/kind flake

I guess #2656 seems to duplicate this anyway 😬


Fix: "blazor.boot.json.gz" and "blazor.boot.json.br" are removed undesirably

At first, thank you for your great work!
By the way, this package will remove compressed "blazor.boot.json" files after the renaming process (The source code is here and here). Unfortunately, that behavior caused the runtime error when the Blazor Wasm app tried to load the compressed version of the "blazor.boot.json" file at its startup.

See also: https://github.com/jsakamoto/BlazorWasmPreRendering.Build/issues/22#issuecomment-1302276022

So, could you accept this pull request containing the program's changes to make it recompress the updated  "blazor.boot.json" file?
P.S. I updated the target framework version of the build task project from "netstandard2.0" to "net6.0" to use the "System.IO.Compression.Brotli" to recompress the "blazor.boot.json" with Brotli algorithm. ("System.IO.Compression.Brotli" class is not contained in the ".NET Standard 2.0" specification.) I think this target framework changins is no matter because this package is already depends on .NET SDK ver.6.0.

Great work @jsakamoto

Thank you for your contribution. Looks great. I will merge and publish asap


CRDs not included in Helm template

Helm template call should to include flag --include-crds in order for Helm to generate custom resource definitions during templating, otherwise CRD's will be missing from output. This is relevant when using lovely-plugin to install cluster addons such as kube-prometheus-stack.

0.6.0 is being built with this change in for you.
Thanks for fixing it, great to have a new contributor.


nixos/streamcontroller: init, streamcontroller: init at 0-unstable-2024-08-13, pythonPackages.usb-monitor: init at 1.21

Description of changes
Closes #333746
Package StreamController/StreamController: An elegant Linux app for the Elgato Stream Deck with support for plugins, its dependency, and added a service for udev files.
StreamController is a replacement of streamdeck-ui , see https://github.com/streamdeck-linux-gui/streamdeck-linux-gui/discussions/203 for more detail.
Tested features (all works): plugins (tested clocks, speedtest), icon packs, background wallpaper, CPU monitor, memory monitor, spawning external commands, pages, brightness, volumes, media info, hyprland integration for detecting focus and auto change pages.
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

[x] 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
[x] 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.

@ebdavison @coreyoconnor @ciferkey @ulrikstrid would you mind to help test this PR?
To test this PR, please set streamdeck-ui.enable = false; (or remove it), and add streamcontroller.enable = true; instead. The program's name is streamcontroller, a .desktop entry is also available for launching from GUI.

I packaged streamcomtroller here: https://github.com/nixpkgs-friendly/nixpkgs-friendly-overlay/tree/master/pkgs%2Fmisc%2Fstream-controller
It has packaging of plugins with a update script as well. I can look closer att this PR tomorrow.

I didn't test the overlay, but the package itself works on NixOS unstable x86_64.

I packaged streamcomtroller here: https://github.com/nixpkgs-friendly/nixpkgs-friendly-overlay/tree/master/pkgs%2Fmisc%2Fstream-controller

Looks great! Some thoughts:

Regarding the buildPythonApplication approach: I determined that the extra work required (custom setup.py, patching relative paths appeared to source code to absolute paths) is too much work so I didn't go that way. We can probably request/contribute upstream to maintain a way to do python packaging (setup.py or poetry) so we don't need to make too many custom change in nixpkgs.
I didn't bother with plugins because they seems to work when the app install them to $HOME/.var/app/com.core447.StreamController/. Let's do nix-managed plugins in a follow-up PR? It might not be appropriate to include every single plugin in nixpkgs, but we can add a parameter to streamcontroller derivation to let user specify which plugin to install (similar to how vscode extensions are managed)

I built and ran the package. The app starts but doesn't detect my Streamdeck Neo
App logs are:
2024-08-19 12:58:53.335 | INFO     | __main__:quit_running:196 - Checking if another instance is running
2024-08-19 12:58:53.338 | INFO     | __main__:quit_running:204 - No other instance running, continuing
2024-08-19 12:58:53.338 | ERROR    | __main__:quit_running:205 - org.freedesktop.DBus.Error.ServiceUnknown: The name com.core447.StreamController was not provided by any .service files
2024-08-19 12:58:53.352 | ERROR    | src.backend.GnomeExtensions:connect_dbus:31 - Failed to connect to D-Bus: org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.Shell was not provided by any .service files
2024-08-19 12:58:53.562 | INFO     | src.backend.PageManagement.PageManagerBackend:update_auto_change_info:333 - Updated auto-change info in 0.0001251697540283203 seconds
2024-08-19 12:58:53.647 | INFO     | src.backend.PageManagement.PageManagerBackend:remove_old_backups:448 - Removed old page backups: 2024-08-15T07:34:31.103244
2024-08-19 12:58:53.975 | ERROR    | src.backend.WindowGrabber.WindowGrabber:init_integration:59 - Unsupported environment: kde with server: wayland for window grabber.
2024-08-19 12:58:53.976 | INFO     | autostart:setup_autostart_desktop_entry:81 - Setting up autostart using desktop entry
2024-08-19 12:58:53.976 | INFO     | autostart:setup_autostart_desktop_entry:92 - Autostart set up at: /home/ciferkey/.config/autostart/StreamController.desktop
2024-08-19 12:58:53.993 | INFO     | __main__:load:96 - Loading app
2024-08-19 12:58:54.019 | INFO     | src.backend.DeckManagement.DeckManager:__init__:70 - Beta resume mode: True

(process:111383): Gtk-WARNING **: 12:58:54.041: Theme parser error: style.css:399:19-27: Unknown name of pseudo-class

(process:111383): Gtk-WARNING **: 12:58:54.042: Unknown key gtk-modules in /home/ciferkey/.config/gtk-4.0/settings.ini

(process:111383): Adwaita-WARNING **: 12:58:54.238: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.
2024-08-19 12:58:54.252 | INFO     | __main__:update_assets:164 - Updating 0 store assets took 0.27449560165405273 seconds
2024-08-19 12:58:54.281 | TRACE    | src.app:on_activate:73 - running: on_activate
2024-08-19 12:58:54.282 | TRACE    | src.windows.mainWindow.mainWindow:build:93 - Building main window
2024-08-19 12:58:54.559 | SUCCESS  | src.app:on_activate:103 - Finished loading app

(StreamController:111383): Gtk-WARNING **: 12:58:54.594: Allocating size to src+windows+mainWindow+mainWindow+MainWindow 0x337e5b30 without calling gtk_widget_measure(). How does the code know the size to allocate?

Whats the correct way to test a new module option from a PR? I imagine I would need to do that in order to have all the udev rules set up correctly. I have  flake based config.

Thanks for the thorough review! I have addressed actionable comments and marked them as resolved

@SuperSandro2000 could you help take another look? Thank you


RAS-298 Create POST message and POST thread

Updated by LJBabbage
What and why?
This PR adds the endpoints to post a thread and a message. It also has implemented a simple sqlite database fixture structure and upped the tests (pytest framework) to 100% for the app (bar postgres which has been ignored as that can't be covered), visualisation of the tests has also been included. Mypy with type checking has been introduced and a tidy up of the app in general has been done (config files added, ignores files updated to reflect the repo, unused bits removed etc)
How to test?
First you need a postgres db on port 5432, I regularly use the one from terminal trigger (ras trigger dev  / ras pf) but  that naturally will build out the other apps (N.b if doing that you will either have to knock out the old secure messaging on port 5051 or change this app to a different one) Once you have done that run this PR locally (make start) and grab an app that can generate post request, I use Postman but it can be anything. Now you can interact with the app try happy paths and unhappy paths, see images for end points, and tests for valid messages/threads

N.B  a message has to have a thread_id that exists to work, although this is naturally an unhappy path which is also unit-tested, that I changed my port to 5052, it could have been anything, and there are also no authentication headers at present

First you need a postgres db on port 5432, I regularly use the one from terminal trigger

I would always advise using docker for local testing
docker run --name postgres -p 5432:5432 -p 15432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=ras -d postgres:9

First you need a postgres db on port 5432, I regularly use the one from terminal trigger

I would always advise using docker for local testing
docker run --name postgres -p 5432:5432 -p 15432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=ras -d postgres:9

You can, but if you have the environments built out in GCP with internal facing services (e.g. cases) not connected to your locally deployed on, you will end up splitting the data across dbs,. Depends on your situation