Line fitters should fit the signal integral, not the signal amplitude

Original report by Joseph Fowler (Bitbucket: joe_fowler, ).

When we use the Mass line fitters, the “amplitude” parameter is hard to interpret. It is basically the signal integral, but rescaled to be proportional to the bin width in eV.
This is dumb. If it’s like an integral, it ought to be the signal integral and not depend on bin widths.
Consider the following demo, in which we have 100,000 signal photons distributed as a Mn K-alpha shape (with energy resolution 5 eV) plus 500 background photons per eV. We then fit the data histogrammed with 1.00 eV bins (_left panel_), then with 0.50 eV bins (_right_). Notice that the amplitude is exactly 100,000±383 in the first case, but it’s 49,997±191 in the second. Also, the background counts are also given as per-bin numbers rather than per-eV numbers.
I’m pretty sure we should replace “ampl” with “integral” for better interpretability and to reduce confusion, so that both fits shown here would yield integral=100,000. I’m leaning to the idea that BG should also be per-eV, but on that point I am open to debate.

Code to generate this plot:

import mass
line = mass.MnKAlpha
bgperev = 500
Nsignal = 100000
sig = line.rvs(Nsignal, instrument_gaussian_fwhm=5)
bg = np.random.uniform(5850, 5950, 100*bgperev)
plt.clf()
_, axes = plt.subplots(1, 2)
for ax, nbins in zip(axes, (100, 200)):
    s, b = np.histogram(np.hstack((bg, sig)), nbins, [5850, 5950])
    e = b[:-1] + 0.5*(b[1]-b[0])

    model = line.model()
    params = model.guess(s, bin_centers=e)
    resultA = model.fit(s, params, bin_centers=e)
    # Repeat but with dPH/dE held at 1.
    params = resultA.params.copy()
    params["dph_de"].set(1.0, vary=False)
    resultB = model.fit(s, params, bin_centers=e)
    print(resultB.fit_report())
    resultB.plotm(ax=ax)

This is relevant to the new Voigt fitter imagined in #201.

Original comment by Joseph Fowler (Bitbucket: joe_fowler, ).

Actually, maybe the meaning of “background” should stay the way it is: as background counts per bin. I am trying to use the principle of least confusion here, and that might be what it demands.

Original comment by Joseph Fowler (Bitbucket: joe_fowler, ).

Removing milestone: v0.7 (automated comment)

Original comment by Joseph Fowler (Bitbucket: joe_fowler, ).

LineModel objects rescale the "integral" parameter correctly
Rescaling accounts for both bin width and the dph_de factor. Fixes #202.


🚀 Feature: Messaging when running publish & init --from-dash

Describe the solution
Add messaging for the wrangler publish & wrangler init --from-dash that informs the user that this can effect changes in in the Dashboard, and that it is not synchronized locally if changes are made in the Dashboard.
Suggested message: "After using <publish/init --from-dash> command it is suggested using the CLI, changes made in the Dashboard will not be synchronized locally and must be done manually."
Related discussion: #1623

What about asking for confirmation? i.e. [y]/n?


Kong ingress, nginx rename for gmp

This adds kong ingress runbook, also changes the name of the nginx ingress. It also removes the customized variable for the promql statement - as I want to play with getting the vars properly rendered, and if workspace-builder uses that codebundle, we are setting the statement anyways. We can opt to a more generic codebundle in the future if we want to add customizations - or we can develop a more robust approach.

I also removed a lot of text references to "controller" since these codebundles deal with a specific ingress object and are not focused on controller triage. I'd like to reserve much of that language for controller triage focused codebundles


Fix tippy styling on heatmap

Fixes: https://github.com/go-gitea/gitea/issues/30808
I will follup up with an upstream PR to enable us to pass options to these tippy instances.

FYI I disabled https://eslint.vuejs.org/rules/singleline-html-element-content-newline, it's a pointless stylistic rule imho.

obsoleted by https://github.com/go-gitea/gitea/pull/30823


Update dashboard's helm chart to 0.3.0-rc.0.

Description
Update dashboard's helm chart to 0.3.0-rc.0.
Issue reference
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: endgame
Checklist
Please make sure you've  completed the relevant tasks for this PR, out of the following list:

[ ] Code compiles correctly
[ ] Created/updated tests
[ ] Unit tests passing
[ ] End-to-end tests passing
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Specification has been updated / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Provided sample for the feature / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

not needed. Can manually change the version and test it .


Implement means of resizing the dashboard widget text as the window is resized

When resizing the window while the widgets contain large integers, they'll overflow. I'm proposing that we scale these down when resizing. There are CSS methods of achieving this (vw, wh, vmin, vmax) but these depend on the root div.
Here's another alternative: https://simplefocus.com/flowtype/

Solved as part of #64


Add blockedDatasets variable

and block alexandrainst/nota, see internal slack thread
The idea is to never process anything for blocked datasets. I also chose to not store anything in the cache in this case

Codecov Report
Patch coverage: 73.33% and project coverage change: +1.98% :tada:

Comparison is base (560d729) 90.44% compared to head (638229c) 92.42%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1751      +/-   ##
==========================================
+ Coverage   90.44%   92.42%   +1.98%
==========================================
  Files         213       83     -130
  Lines       12999     5824    -7175
==========================================
- Hits        11757     5383    -6374
+ Misses       1242      441     -801

Flag
Coverage Δ

jobs_cache_maintenance
?

jobs_mongodb_migration
?

libs_libcommon
?

services_admin
?

services_api
?

services_rows
?

services_search
?

services_worker
92.42% <73.33%> (+0.01%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed
Coverage Δ

services/worker/src/worker/job_manager.py
80.95% <33.33%> (-1.41%)
:arrow_down:

...worker/job_runners/split/descriptive_statistics.py
93.95% <71.42%> (ø)

services/worker/src/worker/config.py
100.00% <100.00%> (ø)

...s/job_runners/split/test_descriptive_statistics.py
97.82% <100.00%> (ø)

... and 142 files with indirect coverage changes

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

I think the cache entries should be deleted yes, but not a big deal for now given that there is only one dataset.

Also: should we remove the other block list (only used in config-parquet-and-info) ?

let's keep it for now, but ideally yes we should remove it imo

OK, created two issues: #1753 #1754

Thanks ! May I merge this one ? I'd like to deploy after this one

yes, sorry!


Can we do a conditional load if using the WP plugin?

I'd like to serve this menu to handhelds only. I already know how to do that, but how would I go about that in integrating the WordPress plugin. Or would we better off just manually deploying it and not using the plugin? Thanks in advance, and thanks for a wonderful menu.

The WP plugin has a tab "usage", check the "Use a different location" checkbox, specify the jQuery selector and check the "clone" checkbox.
That way, your desktop menu will be cloned and used for mobile.


Make sure that pollers are resilient and when error occurs they are hanled properly by mark them as poisoned and logging the exceptin chain in the db

The are lost request that never gets the result.


Emojii as habits header

Hi.
Thanks a lot for the code: works perfectly, and it is easy to adapt thanks to all the detailed comments.
I'm wondering if there is a way to substitute the text of the habits name with some emoij. Any clue?
Thanks

I assume you mean something like this?

If so, right before line 35, you can add something like this:
if (habitText === 'Run') habitText = '🏃'

Basically you just want to overwrite habitText to whatever you want before it's added.

Thanks. That's correct, that solves my need.
I got another question: in order to have the "day of the year" instead of the weekday, which is the code change I need to make? I could not really find any documentation about it on dataview.

You'd want to replace line 24. If you open dev tools in Obsidian (Ctrl+Shift+I) and add console.log(page.file.day) to the dataviewjs code block, you can see all the different date related data available to you.

Feel free to open another issue if you have any questions/concerns.


Add /dev/disk/by-id link tests

This adds tests for checking if /dev/disk/by-id links are being properly set up for different kinds of block devices. Also moves non pool specific tests away from storage-vm.
This is needed for #13672 and #13671.

@hamistao additionally please can you also add some tests to the storage-disks-vm file that checks for devices passed with long & escaped names that are longer than what udev uses, so we can check the udev /dev/disk/by-id path is unchanged. Ta

@tomponline I am planning to include the discussed moving of the tests on a later PR along with other similar changes to make this simpler.
Also, using long names don't serve a lot of purpose here because the name is trimmed to about 16 characters when added to the /dev/disk/by-id path, if you think it still makes sense to use them I can make the changes. As for escaped names, I believe I am using one.

@tomponline The new long name tests were added, feel free to take a look at this when you can. I believe this is failing the tests due to unrelated problems with latest/edge.

Thanks, unfortunately as latest/edge is now broken ill hold off on this until @mihalicyn and I can unblock it.

The new long name tests were added

You mentioned some devices didn't work with long names - please can you elaborate on this.

@tomponline It seemed like using long names could break the devices but in fact, the paths on /dev/ and /dev/disk/by-id behave differently. For example, on ubunt-minimal VMs adding two devices with names that share a 16 character prefix, the /dev/disk/by-id path of the first would be overwritten by the second, leaving the first without a link on /dev/disk/by-id.
For the purpose of these tests, thay are not affected by this behavior.

Thanks, unfortunately as latest/edge is now broken ill hold off on this until @mihalicyn and I can unblock it.
No problem!

@tomponline I will push new changes removing the tests that use readlink to check links to /dev/sd*, as was discussed earlier with @simondeziel

Good news, the latest/edge is unblocked and the tests are green.
Just need to understand about the restrictions being relaxed and then we can merge.


HPE server cannot obtain memory, disk, network and other information

HPE Server iLO 4  ProLiant DL580 Gen9 cannot obtain memory, disk, network and other information
idrac_exporter debug log:
2024-02-22T19:19:47.075 DEBUG Querying url "https://<IP_ADDRESS>/redfish/v1"
2024-02-22T19:19:48.659 DEBUG Querying url "https://<IP_ADDRESS>/redfish/v1/Systems/"
2024-02-22T19:19:49.583 DEBUG Querying url "https://<IP_ADDRESS>/redfish/v1/Chassis/"
2024-02-22T19:19:50.467 DEBUG Querying url "https://<IP_ADDRESS>/redfish/v1/Chassis/1/"
2024-02-22T19:19:51.328 DEBUG Querying url "https://<IP_ADDRESS>/redfish/v1/Systems/1/"
2024-02-22T19:19:52.783 DEBUG Collecting metrics for host <IP_ADDRESS>

NetworkInface:
curl -k https://<IP_ADDRESS>/redfish/v1/Systems/1/EthernetInterfaces/4/
{
<EMAIL_ADDRESS>"/redfish/v1/$metadata#Systems/Members/1/EthernetInterfaces/Members/$entity",
<EMAIL_ADDRESS>"/redfish/v1/Systems/1/EthernetInterfaces/4/",
<EMAIL_ADDRESS>"#EthernetInterface.1.0.0.EthernetInterface",
  "FullDuplex": false,
  "IPv4Addresses": [
    {
      "Address": null
    }
  ],
  "IPv6Addresses": [
    {
      "Address": null
    }
  ],
  "Id": "4",
  "MacAddress": "3C:A8:2A:ED:E9:DB",
  "Name": "System Ethernet Interface",
  "SpeedMbps": null,
  "Status": {
    "Health": "OK",
    "State": "Enabled"
  },
  "Type": "EthernetNetworkInterface.0.92.0",
  "UEFIDevicePath": "PciRoot(0x0)/Pci(0x2,0x2)/Pci(0x0,0x0)",
  "links": {
    "self": {
      "href": "/redfish/v1/Systems/1/EthernetInterfaces/4/"
    }
  }
}

Memory:
curl -k https://<IP_ADDRESS>/redfish/v1/Systems/1/Memory/
{
<EMAIL_ADDRESS>"/redfish/v1/$metadata#Systems/Members/1/Memory",
<EMAIL_ADDRESS>"/redfish/v1/Systems/1/Memory/",
<EMAIL_ADDRESS>"#HpMemoryCollection.HpMemoryCollection",
  "Description": "Memory DIMM Collection",
  "MemberType": "HpMemory.1",
  "Members": [
    {
<EMAIL_ADDRESS>"/redfish/v1/Systems/1/Memory/board1dimm4/"
    },
    {
<EMAIL_ADDRESS>"/redfish/v1/Systems/1/Memory/board1dimm9/"
    },
    {
<EMAIL_ADDRESS>"/redfish/v1/Systems/1/Memory/board3dimm4/"
    },
    {
<EMAIL_ADDRESS>"/redfish/v1/Systems/1/Memory/board3dimm9/"
    },
    {
<EMAIL_ADDRESS>"/redfish/v1/Systems/1/Memory/board5dimm4/"
    },
    {
<EMAIL_ADDRESS>"/redfish/v1/Systems/1/Memory/board5dimm9/"
    },
    {
<EMAIL_ADDRESS>"/redfish/v1/Systems/1/Memory/board7dimm4/"
    },
    {
<EMAIL_ADDRESS>"/redfish/v1/Systems/1/Memory/board7dimm9/"
    }
  ],
<EMAIL_ADDRESS>8,
  "Name": "Memory DIMM Collection",
  "Oem": {
    "Hp": {
<EMAIL_ADDRESS>"#HpAdvancedMemoryProtection.1.0.0.HpAdvancedMemoryProtection",
      "AmpModeActive": "AdvancedECC",
      "AmpModeStatus": "AdvancedECC",
      "AmpModeSupported": [
        "AdvancedECC",
        "Lockstep",
        "OnlineSpareRank",
        "IntrasocketMirroring"
      ],
      "Type": "HpAdvancedMemoryProtection.1.0.0"
    }
  },
  "Total": 8,
  "Type": "Collection.1.0.0",
  "links": {
    "Member": [
      {
        "href": "/redfish/v1/Systems/1/Memory/board1dimm4/"
      },
      {
        "href": "/redfish/v1/Systems/1/Memory/board1dimm9/"
      },
      {
        "href": "/redfish/v1/Systems/1/Memory/board3dimm4/"
      },
      {
        "href": "/redfish/v1/Systems/1/Memory/board3dimm9/"
      },
      {
        "href": "/redfish/v1/Systems/1/Memory/board5dimm4/"
      },
      {
        "href": "/redfish/v1/Systems/1/Memory/board5dimm9/"
      },
      {
        "href": "/redfish/v1/Systems/1/Memory/board7dimm4/"
      },
      {
        "href": "/redfish/v1/Systems/1/Memory/board7dimm9/"
      }
    ],
    "self": {
      "href": "/redfish/v1/Systems/1/Memory/"
    }
  }
}

curl -k https://<IP_ADDRESS>/redfish/v1/Systems/1/Memory/board1dimm4/ |jq .
{
<EMAIL_ADDRESS>"/redfish/v1/$metadata#Systems/Members/1/Memory/Members/$entity",
<EMAIL_ADDRESS>"/redfish/v1/Systems/1/Memory/board1dimm4/",
<EMAIL_ADDRESS>"#HpMemory.1.0.0.HpMemory",
  "DIMMStatus": "GoodInUse",
  "DIMMTechnology": "RDIMM",
  "DIMMType": "DDR4",
  "DataWidth": 64,
  "ErrorCorrection": "MultiBitECC",
  "HPMemoryType": "HPSmartMemory",
  "Id": "board1dimm4",
  "Manufacturer": "HP     ",
  "MaximumFrequencyMHz": 2400,
  "MinimumVoltageVoltsX10": 12,
  "Name": "board1dimm4",
  "PartNumber": "809082-091",
  "Rank": 1,
  "SizeMB": 16384,
  "SocketLocator": "BOARD 1 DIMM 4",
  "TotalWidth": 72,
  "Type": "HpMemory.1.0.0",
  "links": {
    "self": {
      "href": "/redfish/v1/Systems/1/Memory/board1dimm4/"
    }
  }
}

Disk:
curl -k  https://<IP_ADDRESS>/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/ |jq .
{
<EMAIL_ADDRESS>"/redfish/v1/$metadata#Systems/Members/1/SmartStorage/ArrayControllers/Members/$entity",
<EMAIL_ADDRESS>"/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/",
<EMAIL_ADDRESS>"#HpSmartStorageArrayController.1.1.0.HpSmartStorageArrayController",
  "AdapterType": "SmartArray",
  "BackupPowerSourceStatus": "NotPresent",
  "CurrentOperatingMode": "RAID",
  "Description": "HP Smart Storage Array Controller View",
  "EncryptionCryptoOfficerPasswordSet": false,
  "EncryptionEnabled": false,
  "EncryptionFwLocked": false,
  "EncryptionHasLockedVolumesMissingBootPassword": false,
  "EncryptionMixedVolumesEnabled": false,
  "EncryptionStandaloneModeEnabled": false,
  "ExternalPortCount": 0,
  "FirmwareVersion": {
    "Current": {
      "VersionString": "4.04"
    }
  },
  "HardwareRevision": "B",
  "Id": "0",
  "InternalPortCount": 2,
  "Location": "Slot 0",
  "LocationFormat": "PCISlot",
  "Model": "Smart Array P830i Controller",
  "Name": "HpSmartStorageArrayController",
  "SerialNumber": "001438040CF94C0",
  "Status": {
    "Health": "OK",
    "State": "Enabled"
  },
  "Type": "HpSmartStorageArrayController.1.1.0",
  "links": {
    "LogicalDrives": {
      "href": "/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/LogicalDrives/"
    },
    "PhysicalDrives": {
      "href": "/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/DiskDrives/"
    },
    "StorageEnclosures": {
      "href": "/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/StorageEnclosures/"
    },
    "UnconfiguredDrives": {
      "href": "/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/UnconfiguredDrives/"
    },
    "self": {
      "href": "/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/"
    }
  }
}

curl -k https://<IP_ADDRESS>/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/DiskDrives/ |jq .
{
<EMAIL_ADDRESS>"/redfish/v1/$metadata#Systems/Members/1/SmartStorage/ArrayControllers/Members/0/DiskDrives",
<EMAIL_ADDRESS>"/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/DiskDrives/",
<EMAIL_ADDRESS>"#HpSmartStorageDiskDriveCollection.HpSmartStorageDiskDriveCollection",
  "Description": "HP Smart Storage Disk Drives View",
  "MemberType": "HpSmartStorageDiskDrive.1",
  "Members": [
    {
<EMAIL_ADDRESS>"/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/DiskDrives/0/"
    },
    {
<EMAIL_ADDRESS>"/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/DiskDrives/1/"
    },
    {
<EMAIL_ADDRESS>"/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/DiskDrives/2/"
    },
    {
<EMAIL_ADDRESS>"/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/DiskDrives/3/"
    }
  ],
<EMAIL_ADDRESS>4,
  "Name": "HpSmartStorageDiskDrives",
  "Total": 4,
  "Type": "Collection.1.0.0",
  "links": {
    "Member": [
      {
        "href": "/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/DiskDrives/0/"
      },
      {
        "href": "/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/DiskDrives/1/"
      },
      {
        "href": "/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/DiskDrives/2/"
      },
      {
        "href": "/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/DiskDrives/3/"
      }
    ],
    "self": {
      "href": "/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/DiskDrives/"
    }
  }
}

curl -k  https://<IP_ADDRESS>/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/DiskDrives/0/ |jq .
{
<EMAIL_ADDRESS>"/redfish/v1/$metadata#Systems/Members/1/SmartStorage/ArrayControllers/Members/0/DiskDrives/Members/$entity",
<EMAIL_ADDRESS>"/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/DiskDrives/0/",
<EMAIL_ADDRESS>"#HpSmartStorageDiskDrive.1.3.0.HpSmartStorageDiskDrive",
  "BlockSizeBytes": 512,
  "CapacityGB": 480,
  "CapacityLogicalBlocks": 937703088,
  "CapacityMiB": 457862,
  "CarrierApplicationVersion": "11",
  "CarrierAuthenticationStatus": "OK",
  "CurrentTemperatureCelsius": 28,
  "Description": "HP Smart Storage Disk Drive View",
  "DiskDriveStatusReasons": [
    "None"
  ],
  "EncryptedDrive": false,
  "FirmwareVersion": {
    "Current": {
      "VersionString": "HPG4"
    }
  },
  "Id": "0",
  "InterfaceSpeedMbps": 6000,
  "InterfaceType": "SATA",
  "Location": "1I:1:1",
  "LocationFormat": "ControllerPort:Box:Bay",
  "MaximumTemperatureCelsius": 46,
  "MediaType": "SSD",
  "Model": "VK000480GWEZC",
  "Name": "HpSmartStorageDiskDrive",
  "PowerOnHours": 52053,
  "SSDEnduranceUtilizationPercentage": 12,
  "SerialNumber": "173818EFDA2A",
  "Status": {
    "Health": "OK",
    "State": "Enabled"
  },
  "Type": "HpSmartStorageDiskDrive.1.3.0",
  "links": {
    "self": {
      "href": "/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/DiskDrives/0/"
    }
  }
}

The old iLO 4 machines are also not fully compatible with the Redfish standard. I made some changes, such that Memory works now. But for the network there is again not enough information available. I have not looked at the storage part yet.

The old iLO 4 machines are also not fully compatible with the Redfish standard.
I made some changes, such that Memory partially works now, but for the network there is again not enough information available. I have not looked at the storage part yet.

Already very good, I just used the latest code and can already get the latest memory information. Currently, it cannot be stored, so I don’t know if it can be obtained. It doesn't matter if the network cannot be obtained. After all, the network here only shows how many network ports are alive and the speed of the network card.

@mrlhansen There are some problems found in obtaining the memory operating frequency. In the ilo web interface, you can clearly see that the operating frequency is 2400MHz, but through idrac_exporter, the obtained operating frequency is 0. I guess this should be a bug.

I was actually looking at this. However, 2400 Mhz is the maximal possible speed of the module, while in reality the actual speed is in your case only 1333 Mhz from what I can read. The metric is supposed to report the operating speed and not the maximal possible speed and this is why I did not include it.

I was actually looking at this. However, 2400 Mhz is the maximal possible speed of the module, while in reality the actual speed is in your case only 1333 Mhz from what I can read. The metric is supposed to report the operating speed and not the maximal possible speed and this is why I did not include it.

OK, thank you very much for your reply.

@mrlhansen
By the way, I have updated part of the code for ilo4 storage monitoring. In line 131 of client.go, I added the following content.
			client.memoryPath = "/redfish/v1/Systems/1/Memory/"
			client.storagePath = "/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/DiskDrives/"

After compilation, using the debug mode of idrac_exporter, you can see the interface for storing redfish, but I really don’t see the relevant information stored. Please help me find out where the problem is. Thank you very much🙏

I made another commit and storage should now be working. I think this is the best I can do for iLO 4

I made another commit and storage should now be working. I think this is the best I can do for iLO 4

Thank you very much. Using the latest code, you can now obtain disk related information.


Bring alternative saving of results from FreeREG

Export to CSV and Json

Likely to inherit this during the merge? In which case this 'may' already be done..

FC2  test 3 has 'SH' and 'Remove' versus FR2 live "Show' and 'Replies'.  the FC2 set-up is very different, with the message being the author-view, not the recipient-view (as far as I can see).

Alternative means are missing on FreeCEN:

Now there, so closing.


crash-2021-08-12_16.44.43-client.txt

crash-2021-08-12_16.44.43-client.txt
crashed after loaded in crystal zombie entity exist's world
Originally posted by @leon7104 in https://github.com/Safrodev/Zombified/issues/4#issuecomment-897466301

I've been getting the same issue, it has happened twice in my testing modpack both times a different type of zombie.
Here are both my logs, hopefully this will help find the issue :)
crash-2021-08-13_14.02.00-client.txt
crash-2021-08-13_12.36.57-client.txt

hey would you like to send me more like the .log file

Same issue but with the Miner zombie over here.
crash log.txt


added made with love

Summary of the Pull Request

PR Checklist

[x] Applies to #7933
[ ] CLA signed. If not, go over here and sign the CLA
[ ] Tests added/passed
[ ] Requires documentation to be updated
[ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Info on Pull Request
What does this include?
Validation Steps Performed
How does someone test & validate?

Yeah🎉🎉🎉🎉.

:shipit:


Fine tune inverted default color for powerline symbols

Images from https://github.com/microsoft/vscode/issues/151719, notice how the inverted powerlines use black instead of transparent. We should special case these characters to improve rendering of powerlines further

This actually may be an issue with the prompt, can action if someone reports with steps


Sending Gift or sending sats to be redirected to home page once task is done

Refresh is not working

Completed


Incompatible packages when using snowflake

This error comes up when using with snowflake: https://github.com/snowflakedb/snowflake-connector-python/issues/1206
it is remedied by the simple line pip install typing-extensions>=4.3.0 , but dbt2looker depends on < 4.0.0.
dbt2looker 0.9.2 requires typing-extensions<4.0.0,>=3.10.0, but you have typing-extensions 4.3.0 which is incompatible.

Closed in #74


ByteBufferBackedBinary serialization is broken

While working on logical types for parquet-avro, I updated the FromStringBinary to work with a CharSequence instead of a String, which broke TestFilterApiMethods#testSerializable. The underlying problem is that when the buffer-backed binary is deserialized, length and offset are not initialized so the buffer is correct but the apparent length of the binary is 0.
Reporter: Ryan Blue / @rdblue
Assignee: Ryan Blue / @rdblue
Related issues:

Release Parquet-mr 1.9.0 (blocks)

PRs and other links:

GitHub Pull Request #305
PR #305

Note: This issue was originally created as PARQUET-415. Please see the migration documentation for further details.

Ryan Blue / @rdblue:
Merged. Thanks for reviewing, Liwei and Julien!

Ryan Blue / @rdblue:
Fixed in PR #305. Luckily, no other Binary classes failed the new serialization test.


Image and Icon SizeModes are AutoSize - Should Be Zoom

I believe that
NetSparkle.UI.WinForms.NetCore\CheckingForUpdatesWindow.Designer.cs
NetSparkle.UI.WinForms.NetCore\MessageNotificationWindow.Designer.cs
NetSparkle.UI.WinForms.NetFramework\CheckingForUpdatesWindow.Designer.cs
NetSparkle.UI.WinForms.NetFramework\MessageNotificationWindow.Designer.cs

NetSparkle.UI.WinForms.NetCore\DownloadProgressWindow.resx
NetSparkle.UI.WinForms.NetCore\UpdateAvailableWindow.resx
NetSparkle.UI.WinForms.NetFramework\DownloadProgressWindow.resx

Use AutoSize where (I think) Zoom is intended
See: https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.pictureboxsizemode?view=net-5.0
says

AutoSize - The PictureBox is sized equal to the size of the image that it contains.
CenterImage	- The image is displayed in the center if the PictureBox is larger than the image. If the image is larger than the PictureBox, the picture is placed  in the center of the PictureBox and the outside edges are clipped.
Normal - The image is placed in the upper-left corner of the PictureBox. The image is clipped if it is larger than the PictureBox it is contained in.
StretchImage - The image within the PictureBox is stretched or shrunk to fit the size of the PictureBox.
Zoom - The size of the image is increased or decreased maintaining the size ratio.

I note that
 NetSparkle.UI.WinForms.NetCore\ToastNotifier.designer.cs
 NetSparkle.UI.WinForms.NetFramework\ToastNotifier.designer.cs

use a SizeMode of CenterImage and the Form Constructor goes to the trouble of creating a 48 x 48 version of the icon.
The others don't and so strange things happen with larger images. As I said in Issue #212, I think this may be part of issue #123's problems. I have a user with this problem (his buttons are not visible on the Form at all). I'll see if I can fix him.

Fixed in 2b169dc542cfae0c34fab6091ee4db26f561fa3f and ddb336f227bc02c3837da70a062113c6b341315d

Thanks for your notes on that!


Improve relativePath behavior when handling windows like path.

If a base path contains backslash '' (e.g. C:\Users\user\workspace),
because the backslash is teated as regex syntax, it may cause PatternSyntaxException.
Quote the base path for using regex pattern to avoid above problem.

Hi, I am enjoying to learn in SCALA EXERCISES.
I have got following error messages when I built https://github.com/scala-exercises/exercises-stdlib in my windows PC.
It seems to be occurred from sbt-exercises IMHO, so I have tried to improve it.
If I misunderstood, please tell me or close this PR.
$ sbt publishLocal
[info] welcome to sbt 1.3.13 (Oracle Corporation Java 1.8.0_261)
[info] loading global plugins from C:\Users\tyama\.sbt\1.0\plugins
[info] loading settings for project exercises-stdlib-build from plugins.sbt ...
[info] loading project definition from C:\Users\tyama\workspace\exercises-stdlib\project
[info] loading settings for project exercises from build.sbt ...
[info] set current project to exercises-stdlib (in build file:/C:/Users/tyama/workspace/exercises-stdlib/)
[error] java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 3
[error] C:\Users\tyama\workspace\exercises-stdlib
[error]    ^
[error]         at java.util.regex.Pattern.error(Unknown Source)
[error]         at java.util.regex.Pattern.escape(Unknown Source)
[error]         at java.util.regex.Pattern.atom(Unknown Source)
[error]         at java.util.regex.Pattern.sequence(Unknown Source)
[error]         at java.util.regex.Pattern.expr(Unknown Source)
[error]         at java.util.regex.Pattern.compile(Unknown Source)
[error]         at java.util.regex.Pattern.<init>(Unknown Source)
[error]         at java.util.regex.Pattern.compile(Unknown Source)
[error]         at java.lang.String.split(Unknown Source)
[error]         at java.lang.String.split(Unknown Source)
[error]         at org.scalaexercises.compiler.SourceTextExtraction.relativePath(SourceTextExtraction.scala:61)
[error]         at org.scalaexercises.compiler.SourceTextExtraction.$anonfun$extractAll$2(SourceTextExtraction.scala:69)


Save Session

📝 Is it possible to develop a "Save Session" feature for Fancy Zones?
It wrould be greate to have a feature where you can save the windows oppened in the File Explorer and active programs, all with respective positions in the Screen.

If you'd like to see this feature implemented, add a 👍 reaction to this post.

@carlosmatioli
add you comments to https://github.com/microsoft/PowerToys/issues/7014


Work around setuptools 18.6 regression

See
https://bitbucket.org/pypa/setuptools/issues/464/typeerror-in-install_wrapper_scripts
Signed-off-by: Zack Cerza<EMAIL_ADDRESS>

https://bitbucket.org/pypa/setuptools/issues/464/typeerror-in-install_wrapper_scripts

Also:  https://bitbucket.org/pypa/setuptools/pull-requests/161/issue-464-dont-crash-using-super-on-a-old/diff


Issues doesn't remember scroll position

If you browse through the issues and select an issue and use the back button to head back to the Issues overview. The scroll position has changed.

Bug Report Dump (Auto-generated)

Version 1.12.0 (1149)
Device: iPhone 6s (iOS 10.3.3)
TestFlight: true

Noticed this too, super annoying. Fixing right now.

Somehow this came back when I moved Tabman to a local pod? It's the same version (1.0.5). Will dig.

fixed w/ tabman updates


Integrate with smallrye-reactive-messaging

Feature Request
In order to allow usage of NATS through MiroProfile-base application, an integration with smallrye-reactive-messaging (github.com) would be beneficial.
Use Case:
Usage of NATS through the MicroProfile Reactive Messaging specification (github.com).
Proposed Change:
There is already https://github.com/smallrye/smallrye-reactive-messaging/issues/1158 with some prelimiary work. The smallrye team is explicitly looking for contributors with NATS experience (github.com).
Who Benefits From The Change(s)?
All java-applications using MicroProfile Reactive Messaging.
Alternative Approaches
Provide/implement a corresponding connector separate from smallrye.

Hi,
there is a recent Quarkus extension that do the job for Nats Jetstream: https://github.com/quarkiverse/quarkus-reactive-messaging-nats-jetstream
It may still benefits the eye of a Nats expert.
For non-jetstream cases, there is a Nats component available in Apache Camel which is available with SmallRye Reactive Messaging.


Update timeout for .github/workflows/label-check.yml

This is an automated pull request to update default timeouts for all jobs in .github/workflows/label-check.yml that do not currently contain a default timeout property.
Please review these changes closely to ensure that all jobs have sufficient time to run. If a job needs more time, please add a timeout property to that job to override the organization default.
Additionally, please be attentive to unintended changes to the workflow YAML file, as the parser is not perfect.
Lastly, note that it is up to the reviewer to merge this pull request and delete the PR branch once they are satisfied with the changes.

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

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

Closing in favor of https://github.com/Kong/kong/pull/12566.


proc_mag for WSI

Hi, I would like to clarify the parameter proc_mag for running WSI option. Should this be the magnification of my images? I have both 20X and 40X images?

If using our pretrained weights then these are all trained at 40x and so you should process with that objective magnification. We expose it as an argument in case you choose to train at a different objective magnification.


[ Feature ] Summary chart with Geometric mean

Is there any plan to implement a feature like this, this would be highly helpful:
https://benchmarksgame-team.pages.debian.net/benchmarksgame/box-plot-summary-charts.html
Ref:

https://salsa.debian.org/benchmarksgame-team/benchmarksgame/-/blob/master/public/box-plot-summary-charts.html
https://salsa.debian.org/benchmarksgame-team/benchmarksgame/-/blob/master/mybenchmarks/lib/lib_chartSVG.php

I'm not sure how to represent certain facts with such charts, e.g.
nbody/2.py is faster than nbody/1.py with pypy (with JIT) but is slower with python (no JIT), any combination of program selections to represent pypy and python can be misleading in some way, I would only analyze the numbers by reading the source code myself, instead of looking at a chart

hmm..
But, I think we can solve this by considering them as a group just like we have execution matrix in the Github action CI. i.e.

python-pypy
python-python3
go-golang-official
go-tinygo
javascript-typescript
javascript-vanila
wasm-wasm3
wasm-chorme
etc.

Then we can do the geometric mean with box-plot on these datasets. This way we see the performance of of a language and it specific compiler/interprert set.

I would only analyze the numbers by reading the source code myself, instead of looking at a chart

Have you tried to do that? Can you tell us how the Nim programs compare to the Zig programs, or how the Ruby programs compare to the Python programs?
There's an English idiom which describes this situation — "can't see the forest for the trees"
A summary is always less-complete than the detail but we accept that because there can be too much detail to comprehend in the time we have available.

There doesn't seem to be a way to download a file containing all the measurements?
That kind of data file would make it easier for people to do their own analysis and charts (although they  probably won't).


Support fort Selenium 2.53.1

When is this going to be added? Currently I'm getting org.testcontainers.containers.ContainerFetchException: Retry limit reached while trying to pull image: selenium/standalone-chrome-debug:2.53.1

Hi
The selenium docker images are maintained by the SeleniumHQ team, not by
us. If you're using a newer version of the selenium Java libs than there is
a container image for you'd see this issue.
I'd imagine they'd appreciate a PR in case the missing 2.53.1 is just a
simple omission.
In the meantime can you fall back to a version of selenium for which the
docker image is also available?
Richard
Richard

Hi, just curious - why not give an easy way to change version directly with BrowserWebDriverContainer? I faced the same issue, and haven't found quick way (probably I misread some docs after all).

@dmart28 yes - probably would be a good idea to allow the selenium container image to be overridden (not just the version tag).

Yes, the containers for 3.01 published by selenium seem to have a suffix so they can not be used at the moment. See the tags here: https://hub.docker.com/r/selenium/standalone-firefox/tags/
Being able to override the container template string would be very helpful.


how to split dateset

sorry for the bother, i can not see any code for splitting the training dataset.
could you tell me which part of the code is for this function?
thanks.

Hi,
You can find the splits here: https://github.com/YaoZhang93/mmFormer/blob/main/mmformer/data/datasets_nii.py

thanks


will support mangement multi k8s cluster?

Try Rancher if you want to manage multi- cluster.

Try Rancher if you want to manage multi- cluster.

I see kube-explorer have rancher face, why?

Because the kube-explorer is the light weight version of the Rancher explorer UI for single cluster.
Rancher has the multi-k8s lifecycle management and all kinds of tools you need for your clusters.

Closing this issue. Feel free to re-open if you have further questions.


Integrate Probot Settings app

We may want to add a note to faculty to enable the Probot Settings App.


Minor bug with fields' swwel property

Hi,
When defining the swwel property of a field, the field is returned by the compiler as read-only. Having a write enable signal (even if it is low active) indicates a writable field so this is probably a bug that slipped through. The issue I believe stems from  line 526 in the systemrdl/core/elaborate.py file:

513       if "swwe" in node.inst.properties:
514            swwe = node.inst.properties['swwe']
515            if isinstance(swwe, rdltypes.ComponentRef):
516                override_to_writable = True
517            elif swwe is True:
518                override_to_writable = True
519            else:
520                override_to_not_writable = True
521
522        elif "swwel" in node.inst.properties:
523            swwel = node.inst.properties['swwel']
524            if isinstance(swwel, rdltypes.ComponentRef):
525                override_to_writable = True
526            elif swwel is False:
527                override_to_writable = True
528            else:
529                override_to_not_writable = True

I think this was meant to be elif swwel is True just like for the swwe property above. Probably the corresponding HW logic unconsciously  found its way into the Python code.

Thanks for reporting!
It looks like I completely misinterpreted the spec's description of the swwe and swwel properties, thinking that they override the sw property at RDL compile-time. Instead, setting either to True results in a hardware input signal that changes the field's behavior.
This means that in fact, the entire block of code you referenced should simply be removed from the elaborate stage.
Should be an easy fix, but I just want to make sure I don't miss any other assumptions.
Thanks again for reporting! It helps to have multiple people interpreting the spec :-).

Revised interpretation results in a slightly different behavior of the FieldNode.is_sw_writable and FieldNode.implements_storage` utility properties.
If swwe or swwel are set to true or a reference, then the field is capable of being sw (perhaps not all the time). Also implies that the field has a storage element.

I think there are two things being intertwined here. The purpose of the swwe and swwel properties are to be able to explicitly define a write enable signal in the HW description of the field. However, your initial assumption of this property affecting the sw property wasn't wrong either and it came from 7.6.1.-d of the spec.
My personal opinion here is that the spec is trying to be too smart. In my mind setting sw=r and swwe=true are conflicting settings and should be reported as such. The spec decided resolve these conflicts and as it happens swwe and swwel takes precedence due to the compile order so what you have in the code is not wrong and is faithful to the spec.
There is one problem though. A read-write field, by definition, has a write enable signal and normally this is high active by default. So the assumptions described in 7.6.1-d should go both ways and if sw=rw this implicitly could result in swwe=true. At the moment the compiler returns swwe as false unless explicitly defined. I guess it is up to decide whether swwe should return true or false when not explicitly defined.

I mostly agree with your interpretation. I agree that the combination of swwe=true and sw=r makes no sense, but I disagree that the assumptions described in 7.6.1-d should go both ways. Reading through the spec a bit more, I noticed this in the intro paragraph to section 9.6 (or section 7.6 in the RDL 1.0 spec):

Some of these properties perform operations that directly effect the value of a field (rclr, woset, and woclr), others allow the surrounding logic to effect software operations (swwe and swwel), and still others allow software operations effecting the surrounding logic (swmod and swacc)

I believe the critical text that is missing is clarifying that the swwe and swwel properties expose a signal  where the user has the ability to augment the sw property at runtime. If a boolean true is assigned, then it implies the hardware provides an input to the register file that can be driven by external logic. Alternatively if a signal or field reference is assigned, then the state of the corresponding signal or field determines software's ability to write to the field. The polarity of this user-accessible signal is determined whether swwe or swwel is used.
Based on that, I feel that the compiler should do the following:

Keep existing code that overrides the sw property based on swwe or swwel (with the fix you originally suggested):

If the designer set the swwe or swwel properties to anything other than false, then the sw property should be upgraded to writable.
Reason to keep this is to prevent downstream tools from having to deal with odd conflicting scenarios like the one you mentioned: swwe=true and sw=r
Add: Emit a warning to the user. This kind of design input should be discouraged since it doesn't make sense.

Do not override the value of swwe or swwel

These properties seem to be exclusively for overriding the field's "writability" at runtime. You're correct that internally, a field will have its own implicit write-enable signal if sw=rw but I don't think that's what these properties are intended to denote. These properties imply an entirely unique "write-enable from software is allowed" signal.
Overriding swwe or swwel would be confusing to downstream tools since it would destroy the ability to distinguish whether the designer wanted an explicit input signal to their block or not.

No change to the FieldNode.is_sw_writable and FieldNode.implements_storage utility properties.

Since the compiler will automatically warn and patch the value of the sw property, these will continue to function as expected.

Does the above sound reasonable? If so, I may add some of this to the spec errata page I have been maintaining.

I think we are mostly in agreement here and I think your suggestion sounds reasonable, I just add a few notes to clarify what I meant.
For a normal read-write and write field there is a write enable signal which is basically active when the bus has a valid transaction, it is a write transaction and the address bus value matches the register offset. I agree that the purpose of the swwe and swwel properties would be to augment this by AND'ing this write enable with either a field value (SW controlled lock mechanism) or a signal value (HW controlled lock mechanism). Having the option to define these additional write enables as high or low active makes a lot of sense.
Now using these purely as boolean makes much less sense to me. I don't see a use case for selectively setting normal write enables to low active. Also, the presence or absence of (high active) normal write enable should be determined by the value of the sw property as I wrote earlier. I think the only reason for having the boolean as an option in the spec is to allow the dynamic reference assignment later.
So I think the downstream tools would really only need to care whether swwe or swwel has a reference (although technically they could cover the case when the normal write enable is set to low active but like I said, that seems odd to me). That's why I argued that setting sw based on the true/false status swwe value seems unnecessary but if it is done it may as well go both ways.
So all in all, I agree with the plan that you described. This will be faithful to the spec and will work well for any design descriptions that actually makes sense in HW.

Re-opening based on some discussions I had with @taichi-ishitani.
From section 9.6.1-d:

swwe and swwel have precedence over the software access property in determining its current
access state, e.g., if a field is declared as sw=rw, has a swwe property, and the value is currently
false, the effective software access property is sw=r.

I think we were correct to understand that the swwe/swwel infers logic to provide a mechanism for a field to be writable by software or not. Upon re-reading this thread, and conversations with Taichi, I don't think it is appropriate for the swwe/swwel properties to override the sw property at compile-time at all. This is purely a runtime effect.
Based on that, I am revising the implementation as follows:

Never override the value of the sw property, regardless of what swwe/swwel is set to.
If swwe or swwel is assigned a signal or field reference, or a boolean of true, then the field must also be writable. If it is not, validation should emit an error.

Re-opening based on some discussions I had with @taichi-ishitani.
From section 9.6.1-d:

swwe and swwel have precedence over the software access property in determining its current
access state, e.g., if a field is declared as sw=rw, has a swwe property, and the value is currently
false, the effective software access property is sw=r.

I think we were correct to understand that the swwe/swwel infers logic to provide a mechanism for a field to be writable by software or not. Upon re-reading this thread, and conversations with Taichi, I don't think it is appropriate for the swwe/swwel properties to override the sw property at compile-time at all. This is purely a runtime effect.
Based on that, I am revising the implementation as follows:

Never override the value of the sw property, regardless of what swwe/swwel is set to.
If swwe or swwel is assigned a signal or field reference, or a boolean of true, then the field must also be writable. If it is not, validation should emit an error.


(fix) Update example in README.md compatible with version 0.1.18

But may better will be just copy-paste from examples/time.rs....

I think you're right and we should just copy examples/time.rs, it's easier to keep things consistent that way.

Now copy-pasted :smile:

Nice, thanks :)


Fix/sevens spec -- resolves #266

Please check the following

[ ] Do the tests still pass? (see Run the Tests)
[ ] Is the code formatted properly? (see Linting (Formatting))
For New Features:

[ ] Have tests been added to cover any new features or fixes?
[ ] Has the documentation been updated accordingly?

Please describe additional details for testing this change
This update fixes the tests and associated features for playing sevens, including the targeting overlay applied to targetable cards while selecting a target.

This resolves #266


intialize shieldCtx when undefined

Hi.
I have created an issue while ago and this is a pr about it.
In the plugin.ts file, shieldCtx was specified as shieldContext, but there was actually a case where the value of shieldCtx was undefined.
I fixed it as guided here, but the error didn't go away.
  const server = new ApolloServer({
    context: ({ req }) => {
      return { _shield: { cache: {} } }
    },
...

your fix will be of great help to me🙏

I am in vacation this week, but will take a look when I get home.
There might be a bigger implication to this and I don't want to push this current fix as it could bypass rules put in place.

Thank you for answer. have a nice vacation🏖

Closed in favour or #428


Control commands

Is your feature request related to a problem? Please describe.
It would be nice to run control commands to create tables and such as that's what a lot of my work entails.
Describe the solution or feature you'd like
I'm not sure if this is possible with the Kusto API, I'm guessing it may be more of an upstream problem as to how the API handles control commands (which makes sense from a security perspective). The documentation is helpful but a little sparse.
Describe alternatives you've considered
Using the web portal works fine of course, but I like Azure Data Studio :)
Additional context
Is there any part of the extension source I could look at to see how queries are parsed and requested as well as the same for response handling? If it's something like switching api endpoints I could take a stab at it and submit a pull request.

This should work in kusto 0.2.0 version which will be released this week: https://github.com/microsoft/sqltoolsservice/pull/1094


The link for Installation is broken - showing a 404 page.

When I try to go to this link to install. https://github.com/Azure/application-gateway-kubernetes-ingress/blob/master/docs/tutorial.md
Prerequisites
Installed ingress-azure helm chart. Please refer to installation instructions to install the Azure Application Gateway Ingress controller on your AKS cluster. If you want to use HTTPS on this application, you will need a x509 certificate and its private key.
The link is in Prerequisites section - installation

@monubamb this should be fixed by #62
Thanks for reporting this problem.


Ewatercycle wflow rainfarm

Tasks

[ ] Create an issue to discuss what you are going to do, if you haven't done so already (and add the link at the bottom)
[ ] Give this pull request a descriptive title that can be used as a one line summary in a changelog
[ ] Make sure your code is composed of functions of no more than 50 lines and uses meaningful names for variables
[ ] Circle/CI tests pass. Status can be seen below your pull request. If the tests are failing, click the link to find out why.
[ ] Preferably Codacy code quality checks pass, however a few remaining hard to solve Codacy issues are still acceptable. Status can be seen below your pull request. If there is an error, click the link to find out why. If you suspect Codacy may be wrong, please ask by commenting.
[ ] Please use yamllint to check that your YAML files do not contain mistakes
[ ] (Only if really necessary) Add any additional dependencies needed for the diagnostic script to setup.py, esmvaltool/install/R/r_requirements.txt or esmvaltool/install/Julia/julia_requirements.txt (depending on the language of your script) and also to meta.yaml for conda dependencies (includes Python and others, but not R/Julia)
[ ] If new dependencies are introduced, check that the license is compatible with Apache2.0

New recipe/diagnostic

[ ] Add documentation for the recipe to the doc/sphinx/source/recipes folder and add a new entry to index.rst
[ ] Add provenance information

If you need help with any of the tasks above, please do not hesitate to ask by commenting in the issue or pull request.

Closes {Link to corresponding issue}

Hi @jeromaerts and @Peter9192 , I am really happy to see RainFARM being used also in another recipe, this is exactly what it is intended for :)
Please let me know if you need anything to help with this diagnostic.

Hi @jhardenberg, thanks for offering help with the diagnostic! The RainFARM recipe was a perfect match for bridging the spatial resolution gap between climate models (0.25 degrees) and hydrological models (up to 250 meters).

Hi @jeromaerts, I just talked to @Peter9192 and we agreed to close open pull requests from the eWaterCycle project because the project has ended. Do you still have an interest in this pull request? Or could it be closed?

Hi @bouweandela, thank you for asking. The PR can be closed.


PTX-1254 Upgrade Openshift while keeping the same version of the px

This PR is required to test torpedo against scheduler upgrades, in this specific case upgrade between openshift versions. It requires that these parameters are provided:
--sched-upgrade-hops=<comma separated value of ocp versions>
--scheduler=openshift

i.e
--sched-upgrade-hops=stable-4.5,stable-4.6,stable-4.7,candidate-4.7
--scheduler=openshift

or
--sched-upgrade-hops=4.5.30,4.6.20,4.7.2
--scheduler=openshift

regular dev-test passed here https://jenkins.portworx.dev/job/Torpedo/job/tp-dev-test/883/console

tested here https://jenkins.portworx.dev/job/Torpedo/job/tp-ocp-upgrade/29/console

also tested here https://jenkins.portworx.dev/job/Torpedo/job/tp-dev-test/893/console

tested succeded here https://jenkins.portworx.dev/job/Torpedo/view/Torpedo NextPX/job/tp-ocp-upgrade/59/console


python3Packages.pycurl: fix darwin build

Motivation for this change
18.03 ZHF darwin edition: #36454 (Please backport to 18.03!)
My last PR for pycurl on darwin just fixed the python2 problems: #37008.
There are still some SSL-related tests, which fail on python3 and I simply disable.
I tested this PR also for 3.4/3.5/3.6. For backporting to 18.03, we also need: #37038
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ ] NixOS
[x] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build python2.pkgs.pycurl
@GrahamcOfBorg build python3.pkgs.pycurl

Success on x86_64-linux (full log)
Attempted: python2.pkgs.pycurl
Partial log (click to expand)
=============================== warnings summary ===============================

tests/setopt_lifecycle_test.py::TestString
  cannot collect test class 'TestString' because it has a __new__ constructor

-- Docs: http://doc.pytest.org/en/latest/warnings.html
============================= 11 tests deselected ==============================
====== 338 passed, 7 skipped, 11 deselected, 1 warnings in 20.96 seconds =======

/nix/store/s02qarli9myqamk59x2izh1p6axi7hxk-python2.7-pycurl-<IP_ADDRESS>

Success on x86_64-linux (full log)
Attempted: python3.pkgs.pycurl
Partial log (click to expand)
  File "/nix/store/b8gd0cbvkm59x8flbc53bvsvmskyig5a-python3-3.6.4/lib/python3.6/socketserver.py", line 696, in __init__
    self.handle()
  File "/nix/store/b8gd0cbvkm59x8flbc53bvsvmskyig5a-python3-3.6.4/lib/python3.6/wsgiref/simple_server.py", line 133, in handle
    handler.run(self.server.get_app())
  File "/nix/store/b8gd0cbvkm59x8flbc53bvsvmskyig5a-python3-3.6.4/lib/python3.6/wsgiref/handlers.py", line 144, in run
    self.close()
  File "/nix/store/b8gd0cbvkm59x8flbc53bvsvmskyig5a-python3-3.6.4/lib/python3.6/wsgiref/simple_server.py", line 35, in close
    self.status.split(' ',1)[0], self.bytes_sent
AttributeError: 'NoneType' object has no attribute 'split'
part1part2

Success on aarch64-linux (full log)
Attempted: python2.pkgs.pycurl
Partial log (click to expand)
===End Flaky Test Report===

=============================== warnings summary ===============================
tests/setopt_lifecycle_test.py::TestString
  cannot collect test class 'TestString' because it has a __new__ constructor

-- Docs: http://doc.pytest.org/en/latest/warnings.html
============================= 11 tests deselected ==============================
====== 338 passed, 7 skipped, 11 deselected, 1 warnings in 71.21 seconds =======
/nix/store/7bhianr8cx1y9kw2ffx9j898g5nvy1x5-python2.7-pycurl-<IP_ADDRESS>

Failure on aarch64-linux (full log)
Attempted: python3.pkgs.pycurl
Partial log (click to expand)
=============================== warnings summary ===============================
tests/setopt_lifecycle_test.py::TestString
  cannot collect test class 'TestString' because it has a __new__ constructor

-- Docs: http://doc.pytest.org/en/latest/warnings.html
============================= 11 tests deselected ==============================
= 2 failed, 335 passed, 5 skipped, 11 deselected, 1 warnings in 71.99 seconds ==
part1part2
builder for '/nix/store/giczlfv1gn1srgpw9dkg70vdr4q3ivn5-python3.6-pycurl-<IP_ADDRESS>.drv' failed with exit code 1
error: build of '/nix/store/giczlfv1gn1srgpw9dkg70vdr4q3ivn5-python3.6-pycurl-<IP_ADDRESS>.drv' failed

@FRidh Can you please trigger a build so Darwin is tested?

@GrahamcOfBorg build python2Packages.pycurl
@GrahamcOfBorg build python3Packages.pycurl

Success on x86_64-linux (full log)
Attempted: python2Packages.pycurl
Partial log (click to expand)
===End Flaky Test Report===

=============================== warnings summary ===============================
tests/setopt_lifecycle_test.py::TestString
  cannot collect test class 'TestString' because it has a __new__ constructor

-- Docs: http://doc.pytest.org/en/latest/warnings.html
============================= 11 tests deselected ==============================
====== 338 passed, 7 skipped, 11 deselected, 1 warnings in 16.05 seconds =======
/nix/store/s02qarli9myqamk59x2izh1p6axi7hxk-python2.7-pycurl-<IP_ADDRESS>

Success on x86_64-darwin (full log)
Attempted: python2Packages.pycurl
Partial log (click to expand)
===End Flaky Test Report===

=============================== warnings summary ===============================
tests/setopt_lifecycle_test.py::TestString
  cannot collect test class 'TestString' because it has a __new__ constructor

-- Docs: http://doc.pytest.org/en/latest/warnings.html
============================= 11 tests deselected ==============================
====== 338 passed, 7 skipped, 11 deselected, 1 warnings in 17.77 seconds =======
/nix/store/j7x34ah5gmprz986wx5mwjgj4lzjzvrb-python2.7-pycurl-<IP_ADDRESS>

Success on x86_64-darwin (full log)
Attempted: python3Packages.pycurl
Partial log (click to expand)

=============================== warnings summary ===============================
tests/setopt_lifecycle_test.py::TestString
  cannot collect test class 'TestString' because it has a __new__ constructor

-- Docs: http://doc.pytest.org/en/latest/warnings.html
============================= 11 tests deselected ==============================
====== 337 passed, 5 skipped, 11 deselected, 1 warnings in 20.34 seconds =======
part1part2
/nix/store/srfwmz0w124kdb2d4hsg3xdrshizxamh-python3.6-pycurl-<IP_ADDRESS>

Success on x86_64-linux (full log)
Attempted: python3Packages.pycurl
Partial log (click to expand)

=============================== warnings summary ===============================
tests/setopt_lifecycle_test.py::TestString
  cannot collect test class 'TestString' because it has a __new__ constructor

-- Docs: http://doc.pytest.org/en/latest/warnings.html
============================= 11 tests deselected ==============================
====== 337 passed, 5 skipped, 11 deselected, 1 warnings in 50.57 seconds =======
/nix/store/wdypn8gfyqn3wisqqchd60chsz9rgz9v-python3.6-pycurl-<IP_ADDRESS>
part1part2

Success on aarch64-linux (full log)
Attempted: python2Packages.pycurl
Partial log (click to expand)
===End Flaky Test Report===

=============================== warnings summary ===============================
tests/setopt_lifecycle_test.py::TestString
  cannot collect test class 'TestString' because it has a __new__ constructor

-- Docs: http://doc.pytest.org/en/latest/warnings.html
============================= 11 tests deselected ==============================
====== 338 passed, 7 skipped, 11 deselected, 1 warnings in 114.46 seconds ======
/nix/store/7bhianr8cx1y9kw2ffx9j898g5nvy1x5-python2.7-pycurl-<IP_ADDRESS>

Failure on aarch64-linux (full log)
Attempted: python3Packages.pycurl
Partial log (click to expand)
=============================== warnings summary ===============================
tests/setopt_lifecycle_test.py::TestString
  cannot collect test class 'TestString' because it has a __new__ constructor

-- Docs: http://doc.pytest.org/en/latest/warnings.html
============================= 11 tests deselected ==============================
= 9 failed, 328 passed, 5 skipped, 11 deselected, 1 warnings in 125.08 seconds =
part1part2
builder for '/nix/store/giczlfv1gn1srgpw9dkg70vdr4q3ivn5-python3.6-pycurl-<IP_ADDRESS>.drv' failed with exit code 1
error: build of '/nix/store/giczlfv1gn1srgpw9dkg70vdr4q3ivn5-python3.6-pycurl-<IP_ADDRESS>.drv' failed

So, Darwin seems fixed. The only problem is Python 3 on aarch64.

Hm. It seems this didn't actually succeed: https://hydra.nixos.org/build/71540485 The darwin build fails with the same error message as aarch64 now. Didn't do that for ofborg.

@knedlsepp I found the tests to be flaky (in <IP_ADDRESS> and <IP_ADDRESS>). https://github.com/NixOS/nixpkgs/pull/37614 marks them as flaky and doesn't cause a build failure.

Perfect. Thx!


Simple Predict Example Without api-serving

Could you directly provide an example of prediction based on the huggingface transformer model generate function?, like the following:
from transformers import AutoModelForCausalLM, AutoTokenizer
device = "cuda" # the device to load the model onto
model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.1")
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.1")
messages = [
{"role": "user", "content": "What is your favourite condiment?"},
{"role": "assistant", "content": "Well, I'm quite partial to a good squeeze of fresh lemon juice. It adds just the right amount of zesty flavour to whatever I'm cooking up in the kitchen!"},
{"role": "user", "content": "Do you have mayonnaise recipes?"}
]
encodeds = tokenizer.apply_chat_template(messages, return_tensors="pt")
model_inputs = encodeds.to(device)
model.to(device)
generated_ids = model.generate(model_inputs, max_new_tokens=1000, do_sample=True)
decoded = tokenizer.batch_decode(generated_ids)
print(decoded[0])

Thanks for your advice! We are working on it

Any updates on this? @imoneoi

Can you clarify the the System promt format for non server use? The API one should be [{"role": "system", "content": system_prompt}] but in the Hugging face config files I only found <|pad_0|> and <|end_of_turn|> as special tokens.
GPT4 Correct User/Code User are given in the docs, I wonder what the role name for the system prompt is.


Simple system VCS simulation can't find prince_ref.h

Observed Behavior

When attempting to build and simulate the simple system example with VCS, I am getting errors that it can't find prince_ref.h
I get the following error log:
[...]
Starting vcs inline pass...

31 modules and 0 UDP read.
recompiling package _vcs_DPI_package
recompiling package ibex_pkg
recompiling package prim_pkg
recompiling package prim_cipher_pkg
recompiling package prim_ram_1p_pkg
recompiling package prim_ram_2p_pkg
recompiling package prim_secded_pkg
recompiling package prim_util_pkg
recompiling package ibex_tracer_pkg
recompiling module ibex_tracer
recompiling module prim_generic_ram_2p
recompiling module prim_buf
recompiling module prim_clock_gating
recompiling module ibex_alu
recompiling module ibex_controller
recompiling module ibex_cs_registers
recompiling module ibex_csr
recompiling module ibex_counter
recompiling module ibex_decoder
recompiling module ibex_ex_block
recompiling module ibex_id_stage
recompiling module ibex_if_stage
recompiling module ibex_multdiv_fast
recompiling module ibex_wb_stage
recompiling module ibex_core
recompiling module ram_2p
recompiling module bus
recompiling module simulator_ctrl
recompiling module timer
recompiling module ibex_register_file_ff
recompiling module ibex_simple_system
All of 31 modules done
make[1]: Entering directory '<my working dir>/riscv/ibex/build/lowrisc_ibex_ibex_simple_system_0/sim-vcs/csrc'
make[1]: Leaving directory '<my working dir>/riscv/ibex/build/lowrisc_ibex_ibex_simple_system_0/sim-vcs/csrc'
make[1]: Entering directory '<my working dir>/riscv/ibex/build/lowrisc_ibex_ibex_simple_system_0/sim-vcs/csrc'
rm -f _cuarc*.so _csrc*.so pre_vcsobj_*.so share_vcsobj_*.so
gcc -w  -pipe -fPIC -O -I/CMC/tools/synopsys/vcs_vQ-2020.03/vcs/Q-2020.03/include    -c ../../src/lowrisc_dv_secded_enc_0/secded_enc.c
../../src/lowrisc_dv_scramble_model_0/scramble_model.cc:14:10: fatal error: prince_ref.h: No such file or directory
 #include "prince_ref.h"
          ^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [filelist:13: scramble_model.d] Error 1
make[1]: *** [Makefile:101: product_clean_order] Error 2
make[1]: Leaving directory '<my working dir>/riscv/ibex/build/lowrisc_ibex_ibex_simple_system_0/sim-vcs/csrc'
Make exited with status 2
CPU time: 1.940 seconds to compile + .398 seconds to elab + .304 seconds to link

(Note that in this post I replaced the actual absolute path from my system with <my working dir>)
This only happens in my system with VCS, not with Verilator.
Expected Behavior

I expected the build to succeed, as it does when I use verilator with the following command:
fusesoc --cores-root=. run --target=sim --setup --build lowrisc:ibex:ibex_simple_system --RV32E=0 --RV32M=ibex_pkg::RV32MFast

Steps to reproduce the issue

I am following the instructions to simulate the simple system according to the README.md instructions.
Run the following command from the Ibex root directory:
fusesoc --cores-root=. run --target=sim --tool=vcs --setup --build lowrisc:ibex:ibex_simple_system --RV32E=0 --RV32M=ibex_pkg::RV32MFast --SRAMInitFile=./examples/sw/simple_system/hello_test/hello_test.vmem

My Environment

EDA tool and version:

Synopsys VCS Q-2020.03

Operating system:

Operating System:
Debian GNU/Linux 10 (buster)

Kernel:
Linux 4.19.0-19-amd64

Architecture:
x86-64

Version of the Ibex source code:

Latest version from master (094451a9489d631895101a5de19a26cd4cf4fd7d)

Hello again!
Commits 4c1a4ed1df4c9b16f9b380c8c507a823cb6a98c0 and 68b56ef0f5c0ba8058e8cb512fe724263ed874f2 solves this issue. Could you please try again with the latest version from master?
Thanks,
Canberk

Hello! This works fine now. Than you for your help. :smile:
You may close the issue


Add support for sparse updates

Add function to "checkout" latest committed model state
When git theta add is run with the --update_type sparse argument, sparse updates are computed by comparing current model checkpoint with the latest committed checkpoint under .git_theta and are stored under updates subfolder under each parameter group. Latest committed checkpoint can be retrieved (checkout) by loading the dense values under params folder and sequentially applying all files under updates

Fixed in #128


Automated cherry pick of #10928: fix(region): account arrears

Cherry pick of #10928 on release/3.5.
#10928: fix(region): account arrears

Codecov Report

Merging #10931 (f4910c4) into release/3.5 (6a15e02) will increase coverage by 11.90%.
The diff coverage is 8.33%.

@@               Coverage Diff                @@
##           release/3.5   #10931       +/-   ##
================================================
+ Coverage         5.98%   17.89%   +11.90%
================================================
  Files              796       85      -711
  Lines           125693     8943   -116750
================================================
- Hits              7522     1600     -5922
+ Misses          117504     7171   -110333
+ Partials           667      172      -495

Flag
Coverage Δ

aFlag
17.89% <8.33%> (+11.90%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/apigateway/handler/auth.go
0.00% <0.00%> (ø)

pkg/baremetal/cronjobs.go
0.00% <0.00%> (ø)

pkg/baremetal/manager.go
0.50% <0.00%> (-0.01%)
:arrow_down:

pkg/cloudcommon/db/lockman/inmemory.go
64.55% <20.00%> (+0.08%)
:arrow_up:

pkg/util/seclib2/seclib.go
80.39% <0.00%> (-5.66%)
:arrow_down:

pkg/util/ansiblev2/session.go
0.00% <0.00%> (ø)

.../monitor/alerting/conditions/suggestrulereducer.go
0.00% <0.00%> (ø)

pkg/monitor/models/nodealert.go

pkg/keystone/tokens/token.go

pkg/mcclient/options/loadbalanceracls.go

... and 586 more

Continue to review full report at Codecov.

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


mutation with upload variable

I wonder how to use Sociable Weaver to describe such information, I don't think this is currently possible but I would like to make sure, for now the only case I can't use your library is for my mutation that requires uploading a file.
mutation MyOperation($preview: Upload, $file: Upload) {
    ...
}

Thanks.

Hey sorry I just noticed this issue. I have been pretty busy at work and don't have as much time to look at stuff. Are you still experiencing this issue? Maybe I can throw something together.


Filter energy tariffs by half-hourly flag not just meter type

going to close this as half hourly has now been removed.


SSL Connection

How to configure Producer to use SSL connection?

The next version(v0.2.1) supports SSL connections

Please add doc or example how to use SSL.

我本地有几个ssl的文件
ca-cert
ca-cert.srl
ca-key
kafka.keystore
kafka.truststore
$config->setSslLocalCert('/XXX/ca-cert');
$config->setSslLocalPk('/XXX/ca-key');
$config->setSslEnable(true);
$config->setSslPassphrase('passwd');
是这样写么？不起作用

Hi nmred,
Is there any support for the below? Couldn't find the functions setSslLocalCert, setSslLocalPk, setSslEnable, setSslPassphrase or setSslPeerName defined in the composer package. The regular case works fine. Would be great to have the SSL support
// if use ssl connect
$config->setSslLocalCert('/home/vagrant/code/kafka-php/ca-cert');
$config->setSslLocalPk('/home/vagrant/code/kafka-php/ca-key');
$config->setSslEnable(true);
$config->setSslPassphrase('123456');
$config->setSslPeerName('nmred');


Markdown Code Blocks

Describe the bug
Markdown Code Blocks not working with code.
To Reproduce
Steps to reproduce the behavior:
`                pc.markdown(
``` python
            class MainState(pc.State):

            ```
            ),

`
Error:
``` python
^

SyntaxError: invalid syntax
Expected behavior
Show in Markdown Code Block
** Specifics (please complete the following information):**

Python Version: 3.10.9
Pynecone Version: pynecone          0.1.19
OS:  Windows 10

👀

@Meathelix1
I didn't get you.
Could you format your description?
You should pass str(""") to pc.markdown instead of ```.

It is ok like above.


[FEATURE REQUEST] Visualization of same notes at same time without overlap

When two or more voices play the same note at same time, only one of the voices is shown and the voice(s) below are hidden.
The following is an example:
ThreeVoices.zip
If it's not too much work to implement this, it would be nice to show all voices instead of only one.
I can imagine the following visualizations:

create the note with the same width like always but built from all colors of the voices that appear at this time at this note.
For example, when two voices have this note at this time, make it 50 % color1 and 50 % color 2. With three notes 33 % of each color.
stripe the note like above but diagonal

I am against your suggestion. The voices in your example appear to have the same length, so the color which is show is not determined. Spessasynth renders the shortest notes at the front and longest at the back, like every other visualization I am aware of that handles overlapping notes (Synthesisia or Midiano for example)
For example if blue note lasts for 5 seconds, and then a red note lasts for a second somewhere in the middle, the end result will be a blue note with the red note drawn over it in the place where it gets pressed. Also stripes would be tricky to implement as it's not CSS, but canvas. Not to mention that is quite rare that two exactly the same notes play at the exact same time.
Here's how Midiano handles overlapping notes:

And here's Spessasynth:

As you can see, they are the same and quite clean IMO.

The voices in your example appear to have the same length

Exactly! I made them look like they have the same length while in fact they do not! To show how difficult it is to see when and how long the underlying note is actually played.

like every other visualization I am aware

Yes, I also have not seen a single one that can do this and wondered why.

Not to mention that is quite rare that two exactly the same notes play at the exact same time.

Unfortunately, it's quite often, ca. 50 % of my MIDIs have this problems and they are from different composers.

Also stripes would be tricky to implement as it's not CSS, but canvas.

Ok, that's unfortunate. Maybe a different way of visualization appears that makes it more obvious. Also when the shorter note is on top, which is good, it is not clear, if at the same time the note below is played.

Maybe just put in a small  circle of each color that is played simultanesly in the shortest note. This would be simple to render I think and would make it clear. But I'm not 100 % sure how good this will look in praxis.

Can you maybe take a screenshot and draw a visual representation of your ideas?

The first note (orange) looks like this currently:

It hides the red and yellow notes. One of them has the same length. Nonetheless, the color orange is shown here as the only one.
I think, in the orange note it should already made clear, that there are more notes behind that are currently played and are hidden. Like this one (maybe not the best way, but a first idea):

When a note that is displayed on top hides an other note which finishes earlier, the small rectangle of this shorter note should only get displayed at the position of the note.
In the example above two colors are chosen for the small rectangles because two notes are hidden. If it is only one note then only one color is drawn. If it is three notes, then three colors in an alternating pattern.
This is my first idea of solving this.

Another idea would be to this note by a sequences of smaller rectangles with rounded corners in the alternating pattern but not on top of the orange note. Instead, there is no main note (here orange was chosen as main note). The alternating blocks of rounded rectangles form the note and all blocks get the shadow.


Added the conventions plugin to serverless.yml

Because I only added it to the package.json and didn't actually add it to the serverless.yml file for some reason. (PR #285 )

Great. Thanks!


Support SwiftUI's spring animation

Use case
The spring animation is used all over iOS, and is critical to building widgets with iOS look and feel. Although Flutter currently provides spring simulators, they're not directly usable as animation curves.
Proposal
The spring animation is introduced here: https://developer.apple.com/videos/play/wwdc2023/10158/
(Github backup)
Goals:

Various ways to construct

Presets: Smooth, bouncy, flattened
Customize with bounce and duration
Professional customization with mass, stiffness, and damping

Velocity: Smoothly connect animations
Settling time: Continue the long-tail animation beyond duration

Convert bounce and duration to detailed parameters (from the video):

Questions:

How extraBounce is applied
How settlingDuration is derived (we might not need it since our spring simulator allows a settling tolerance)

I'm excited to see this on the radar. Assuming this would be a subclass of Curve, one thing I'm wondering is how the animation duration specified by the AnimationController would behave, considering Curves don't have access to the duration of their driving AnimationController?
animationController.animateTo(
  1,
  duration: const Duration(milliseconds: 500),
  curve: SpringCurve(bounce: 0.2, duration: 0.5), // Considering this is perceptual time, the spring wouldn't settle prior to stopping
)

I've been waiting a long time for this

Update: It turns out that Flutter has long supported spring simulations, but simulations are not integrated into other components well. https://github.com/flutter/flutter/pull/155575 will allow AnimationController and TransitionRoute to use simulations.
Interestingly, this PR won't help much on the fidelity of Cupertino dialog or action sheets, because the current curve is close enough. However, using the proper simulation is still useful because it allows non-zero initial velocity, such as when the animation switches half way. Although, I don't know many specific cases for this.
After https://github.com/flutter/flutter/pull/155575 there will still be some work left. One of them is some convenient APIs that constructs SpringDescription in ways that replicate the SwiftUI APIs. I've done some research, and if I remember correctly, you can simply use the numbers extracted from XCode if you just want to replicate some native behavior.
What I'm trying to say is, I'm not sure what is badly needed for this issue after https://github.com/flutter/flutter/pull/155575. So let me know if there are any specific issues that are bothering you. Thanks!

I have a question.
Using the above formula, the result is wrong.
duration = 0.5，bounce = 0.2
// Wrong formula
damping = 1 - 4 * pi * bounce / duration        // -4.026548245743669

// The right formula, The correct value is obtained by the method described in Apple's documentation
// https://developer.apple.com/documentation/swiftui/spring
damping = 4 * pi * (1 - bounce) / duration        // 20.106192982974676

bounce < 0, I don't know how to calculate the correct value.

I've found this as well, and I've wasted so much time on it. The formulas were screenshot from the video and I don't know why they said so.
My suggestion is to extract basic properties (mass, stiffness, damping) from a built spring animation object and use them in Flutter.

I agree, Apple seems to be misleading developers.
I found that the algorithm of this library is closer to the curve of SwiftUI.
https://github.com/sodality-tech/figma_spring_curve/blob/main/lib/src/figma_spring_curve.dart


Create API Actions

General purpose code for creating API Actions and a new test case that is almost working except for a blocking issue in the UI.
See: Bug 2132: Automation cannot trigger 2nd Entity picker in API Action arguments

:tada: This PR is included in version 0.358.0 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[KYUUBI #2012] rename EventLoggingService and creates an correct directory

Why are the changes needed?

fix KYUUBI #2012.  In EventLoggingService.scala ，when EventLoggerType is set to Json
kyuubi created an error directory, it should not be the ENGINE_EVENT_JSON_LOG_PATH but the SERVER_EVENT_JSON_LOG_PATH。

rename EventLoggingService  in kyuubi-server to KyuubiEventLoggingService
rename EventLoggingService  in kyuubi-spark-sql-engine to SparkEventLoggingService
How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[ ] Run test locally before make a pull request

Check style failed, please run dev/reformat to fix it.

Codecov Report

Merging #2037 (714e5ea) into master (faa2dd4) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master    #2037      +/-   ##
============================================
- Coverage     60.57%   60.56%   -0.01%
  Complexity       69       69
============================================
  Files           305      305
  Lines         14900    14909       +9
  Branches       1927     1928       +1
============================================
+ Hits           9025     9030       +5
- Misses         5104     5108       +4
  Partials        771      771

Impacted Files
Coverage Δ

...rg/apache/kyuubi/engine/spark/SparkSQLEngine.scala
64.15% <100.00%> (ø)

...engine/spark/events/SparkEventLoggingService.scala
82.35% <100.00%> (ø)

...ala/org/apache/kyuubi/events/JsonEventLogger.scala
76.47% <100.00%> (ø)

...ache/kyuubi/server/KyuubiEventLoggingService.scala
87.50% <100.00%> (ø)

.../scala/org/apache/kyuubi/server/KyuubiServer.scala
62.96% <100.00%> (ø)

...rg/apache/kyuubi/engine/trino/TrinoStatement.scala
65.06% <0.00%> (-4.82%)
:arrow_down:

...a/org/apache/kyuubi/service/TFrontendService.scala
92.11% <0.00%> (-2.38%)
:arrow_down:

...ala/org/apache/kyuubi/session/SessionManager.scala
85.12% <0.00%> (-0.83%)
:arrow_down:

...e/kyuubi/server/mysql/constant/MySQLDataType.scala
25.00% <0.00%> (-0.22%)
:arrow_down:

...in/scala/org/apache/kyuubi/config/KyuubiConf.scala
96.41% <0.00%> (+0.14%)
:arrow_up:

... and 2 more

Continue to review full report at Codecov.

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

can help me to review the code? @pan3793 @yaooqinn

thanks, merged to master


Add PR template

Added PR template based on backend with irrelevant check boxes removed.

Not sure if drive link is public - might make sense to remove


Glob patterns in problems view filter with ** not working as expected

Issue Type: Bug
Testing #48390
Steps to repro:

Generate a problem in a .ts file
Enter **/*.ts in the problems view filter

Expected the problem to be filtered out, but it isn't. However, the pattern **\*.ts does work.
VS Code version: Code - Insiders 1.23.0-insider (b845ce918f2689344795e845ae6ef691916c3079, 2018-04-24T05:10:57.500Z)
OS version: Darwin x64 17.4.0

@RMacfarlane **/*.ts matches .ts files, hence it is shown. To exclude (filter out) you should use !**/*.ts


changed CardQueryParameter.CMC to string to allow for gt/lt queries

Codecov Report

Merging #3 into master will not change coverage.
The diff coverage is n/a.

@@         Coverage Diff          @@
##           master    #3   +/-   ##
====================================
  Coverage      99%   99%
====================================
  Files          21    21
  Lines         402   402
  Branches       54    54
====================================
  Hits          398   398
  Misses          2     2
  Partials        2     2

Continue to review full report at Codecov.

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


Typo in az cli command to delete and update DHSM

[Enter feedback here]
Below 2 command line needs to updated, missing "-" in parameter ""name:
az dedicated-hsm update --resource-group myRG –name hsm1
az dedicated-hsm delete --resource-group myRG –name hsm1
They should be:
az dedicated-hsm update --resource-group myRG -–name hsm1
az dedicated-hsm delete --resource-group myRG -–name hsm1
Or:
az dedicated-hsm delete –n hsm1 -g myRG

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

ID: 7273fafc-c951-8bfb-2c35-1403c9171efe
Version Independent ID: 6dc009c4-7c6f-9010-986b-e050902e1d77
Content: Tutorial deploys into an existing virtual network using the Azure CLI - Azure Dedicated HSM
Content Source: articles/dedicated-hsm/tutorial-deploy-hsm-cli.md
Service: key-vault
GitHub Login: @msmbaldwin
Microsoft Alias: keithp

@AlizeeChen11
Thanks for your feedback! We will investigate and update as appropriate.

@AlizeeChen11
Thanks for reporting this! We have created a PR for this issue and the changes should go live soon.


刘思竹-数据类型作业

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Fixes # (issue)
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

运算符-作业.txt

试玩函数-作业.txt

数据类型作业.docx

循环和数组-作业.txt


Feedback Required for Chapters 1 to 5

I solved the issues in the pull request in the latest commit


staticSites/config 'appsettings':  The property "parent" is not allowed on objects of type "Microsoft.Web/staticSites/config@2021-03-01"

Bicep version
Bicep CLI version 0.2.265 (184313e702)
Describe the bug
A clear and concise description of what the bug is vs what you expected to happen
Wish to use appSettings resource, associated to an SWA resource via parent attribute.
When using the default code given as an example in the docs I am given the below error message:
Error BCP038: The property "parent" is not allowed on objects of type "Microsoft.Web/staticSites/config@2021-03-01". Permissible properties include "dependsOn", "eTag", "extendedLocation", "identity", "location", "managedBy", "managedByExtended", "plan", "scale", "scope", "sku", "tags", "zones".

To Reproduce

Create generic staticSites resources such as:

resource adminSWA 'Microsoft.Web/staticSites@2021-03-01' = if (Deploy) {
  name: name
  location: location
  sku: {
    name: skuName
    tier: skuTier
  }
  tags: CoreTags
  properties: {
    stagingEnvironmentPolicy: stagingEnvironmentPolicy
    allowConfigFileUpdates: true
    provider: 'None'
    enterpriseGradeCdnStatus: 'Disabled'
  }
}

Use the default appSettings resource, with parent name matching that of the staticSite's symbolic name

Deploy to Azure DevOps

Additional context
The SWA is a Blazor application. It is necessary to use the appSettings as there are secret values stored as variables in our Azure DevOps pipeline which need to be imported for use, in replacement of launchSettings.json locally.

Can you share the full repro with the resource that is trying to use the parent property?

Hi @alex-frankel
The below is the script that's erroring (not including the param/var declarations) - in this instance I've literally copied/pasted the example code from the docs, hence it still being called "symbolicname":
var CoreTags = {
  Company: Company
  Application: Application
  Stage: Stage
  Approver: Approver
  NHQOwner: NHQOwner
  SLA: ServiceClass
  CreateDate: CreateDate
  Lifecycle: Lifecycle
}

resource adminSWA 'Microsoft.Web/staticSites@2021-03-01' = if (Deploy) {
  name: name
  location: location
  sku: {
    name: skuName
    tier: skuTier
  }
  tags: CoreTags
  properties: {
    stagingEnvironmentPolicy: stagingEnvironmentPolicy
    allowConfigFileUpdates: true
    provider: 'None'
    enterpriseGradeCdnStatus: 'Disabled'
  }
}

resource symbolicname 'Microsoft.Web/staticSites/config@2021-03-01' = {
  name: 'appsettings'
  kind: 'string'
  parent: adminSWA
  properties: {}
}

TIA!
Rich


Examples don't run

Python 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] on win32
from requests_tor import RequestsTor
rt = RequestsTor(tor_ports=(9000, 9001, 9002, 9003, 9004), autochange_id=1)
urls = (f'https://habr.com/ru/post/{x}' for x in range(1, 50))
r = rt.get_urls(urls)
print(r[-1].text)
Traceback (most recent call last):
File "", line 6, in
File "C:\Users\jbard\AppData\Local\Programs\Python\Python39\lib\site-packages\requests_tor.py", line 105, in get_urls
temp_results = [resp for resp in
File "C:\Users\jbard\AppData\Local\Programs\Python\Python39\lib\site-packages\requests_tor.py", line 105, in
temp_results = [resp for resp in
File "C:\Users\jbard\AppData\Local\Programs\Python\Python39\lib\concurrent\futures_base.py", line 608, in result_iterator
yield fs.pop().result()
File "C:\Users\jbard\AppData\Local\Programs\Python\Python39\lib\concurrent\futures_base.py", line 445, in result
return self.__get_result()
File "C:\Users\jbard\AppData\Local\Programs\Python\Python39\lib\concurrent\futures_base.py", line 390, in __get_result
raise self._exception
File "C:\Users\jbard\AppData\Local\Programs\Python\Python39\lib\concurrent\futures\thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\Users\jbard\AppData\Local\Programs\Python\Python39\lib\site-packages\requests_tor.py", line 77, in get
return self.request(method, url, **kwargs)
File "C:\Users\jbard\AppData\Local\Programs\Python\Python39\lib\site-packages\requests_tor.py", line 69, in request
resp = requests.request(method, url, **kwargs, proxies=proxies)
File "C:\Users\jbard\PycharmProjects\Parallel\venv\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\jbard\PycharmProjects\Parallel\venv\lib\site-packages\requests\sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\jbard\PycharmProjects\Parallel\venv\lib\site-packages\requests\sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "C:\Users\jbard\PycharmProjects\Parallel\venv\lib\site-packages\requests\adapters.py", line 412, in send
conn = self.get_connection(request.url, proxies)
File "C:\Users\jbard\PycharmProjects\Parallel\venv\lib\site-packages\requests\adapters.py", line 309, in get_connection
proxy_manager = self.proxy_manager_for(proxy)
File "C:\Users\jbard\PycharmProjects\Parallel\venv\lib\site-packages\requests\adapters.py", line 182, in proxy_manager_for
manager = self.proxy_manager[proxy] = SOCKSProxyManager(
File "C:\Users\jbard\PycharmProjects\Parallel\venv\lib\site-packages\requests\adapters.py", line 47, in SOCKSProxyManager
raise InvalidSchema("Missing dependencies for SOCKS support.")
requests.exceptions.InvalidSchema: Missing dependencies for SOCKS support.

PS - I tried installing pysocks, no luck:
pip install pysocks
see here: https://github.com/conda/conda/issues/3505

Try this solution:
pip install -U requests_tor --ignore-installed

Tried that, installed correctly, ran "simple application" and received following error(s):
Traceback (most recent call last):
File "C:\Users\jbard\AppData\Local\Programs\Python\Python39\lib\site-packages\socks.py", line 787, in connect
super(socksocket, self).connect(proxy_addr)
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\jbard\PycharmProjects\Parallel\venv\lib\site-packages\urllib3\contrib\socks.py", line 96, in _new_conn
conn = socks.create_connection(
File "C:\Users\jbard\AppData\Local\Programs\Python\Python39\lib\site-packages\socks.py", line 209, in create_connection
raise err
File "C:\Users\jbard\AppData\Local\Programs\Python\Python39\lib\site-packages\socks.py", line 199, in create_connection
sock.connect((remote_host, remote_port))
File "C:\Users\jbard\AppData\Local\Programs\Python\Python39\lib\site-packages\socks.py", line 47, in wrapper
return function(*args, **kwargs)
File "C:\Users\jbard\AppData\Local\Programs\Python\Python39\lib\site-packages\socks.py", line 800, in connect
raise ProxyConnectionError(msg, error)
socks.ProxyConnectionError: Error connecting to SOCKS5 proxy localhost:9050: [WinError 10061] No connection could be made because the target machine actively refused it
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\jbard\PycharmProjects\Parallel\venv\lib\site-packages\urllib3\connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "C:\Users\jbard\PycharmProjects\Parallel\venv\lib\site-packages\urllib3\connectionpool.py", line 382, in _make_request
self._validate_conn(conn)
File "C:\Users\jbard\PycharmProjects\Parallel\venv\lib\site-packages\urllib3\connectionpool.py", line 1010, in _validate_conn
conn.connect()
File "C:\Users\jbard\PycharmProjects\Parallel\venv\lib\site-packages\urllib3\connection.py", line 353, in connect
conn = self._new_conn()
File "C:\Users\jbard\PycharmProjects\Parallel\venv\lib\site-packages\urllib3\contrib\socks.py", line 127, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.contrib.socks.SOCKSHTTPSConnection object at 0x000001D897012850>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\jbard\PycharmProjects\Parallel\venv\lib\site-packages\requests\adapters.py", line 439, in send
resp = conn.urlopen(
File "C:\Users\jbard\PycharmProjects\Parallel\venv\lib\site-packages\urllib3\connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "C:\Users\jbard\PycharmProjects\Parallel\venv\lib\site-packages\urllib3\util\retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: SOCKSHTTPSConnectionPool(host='httpbin.org', port=443): Max retries exceeded with url: /anything (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSHTTPSConnection object at 0x000001D897012850>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 7, in
File "C:\Users\jbard\AppData\Local\Programs\Python\Python39\lib\site-packages\requests_tor.py", line 77, in get
return self.request(method, url, **kwargs)
File "C:\Users\jbard\AppData\Local\Programs\Python\Python39\lib\site-packages\requests_tor.py", line 69, in request
resp = requests.request(method, url, **kwargs, proxies=proxies)
File "C:\Users\jbard\PycharmProjects\Parallel\venv\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\jbard\PycharmProjects\Parallel\venv\lib\site-packages\requests\sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\jbard\PycharmProjects\Parallel\venv\lib\site-packages\requests\sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "C:\Users\jbard\PycharmProjects\Parallel\venv\lib\site-packages\requests\adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: SOCKSHTTPSConnectionPool(host='httpbin.org', port=443): Max retries exceeded with url: /anything (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSHTTPSConnection object at 0x000001D897012850>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))

socks.ProxyConnectionError: Error connecting to SOCKS5 proxy localhost:9050: [WinError 10061] No connection could be made because the target machine actively refused it

Your socks port 9050 is not responding.


bdd activate scenario

I have added the scenario for the activate promotion

I'm not sure if the values of the summer sale are the same for everyone. If not I can change them to somethign else.

Codecov Report

Merging #101 (12c4af6) into main (0d4a160) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #101   +/-   ##
=======================================
  Coverage   95.71%   95.71%
=======================================
  Files           5        5
  Lines         257      257
=======================================
  Hits          246      246
  Misses         11       11

Continue to review full report at Codecov.

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

the values of the summer sale are the same for everyone.

I'm sorry I can't understand your point.
Do you mean that the results after pushing the "search" button (all) are not the same as below?
            | title          | promotion_type   | start_date | end_date   | active |
            | Christmas Sale | buy 1 get 2      | 2021-07-01 | 2022-07-01 | true   |
            | New Product    | 10%OFF           | 2021-01-01 | 2022-01-01 | false  |
            | Black Friday   | 20%OFF           | 2021-12-01 | 2022-12-01 | true   |
            | Summer Sale    | buy 1 get 1 free | 2021-11-01 | 2022-11-01 | false  |

Yeah that looks good!