Two-way binding to ng-model does not work

When I connect ng-model to a controller scope variable, it does not update the view if changes are made in the controller variable.  For example, I'm trying to find a way to initialize the "selected" listbox by doing the following:
<select
           ng-options="e.displayName for e in job.allEmployees"
           multiple
           ng-model="job.allEmployeesOnJob"
           bs-duallistbox
           ></select>

In the controller, I initialize allEmployeesOnJob to some array of objects:
jobService.getEmployeesOnJob(job.jobId).then(
              function(emps){
                vm.allEmployeesOnJob = emps;
                _.each(vm.allEmployeesOnJob, function(item, index, list){
                  item.displayName = item.firstName + " " + item.lastName + " - " + item.homeLocation.name;
                });
              }
            )

The right side listbox should show the initialized list of employees but it does not.  Then when I click an item from the left list, it moves to the right list but completely overwrites the "job.allEmployeesOnJob" variable.  I believe this means two-way binding is not setup properly to ng-model because updates in the controller should be reflected on the DOM if it were.

As with every issue, I need a live demo to debug it. Closing until provided.

I found the issue.  The array for ng-model has to reference the actual array elements of the ng-options array.  So to populate initial values, for example:
<select
           ng-options="e.displayName for e in job.allEmployees"
           multiple
           ng-model="job.allEmployeesOnJob"
           bs-duallistbox
           ></select>

in the controller:
jobService.getEmployeesOnJob(job.jobId).then(
              function(emps){
                this.allEmployeesOnJob = [
                          this.allEmployees[0],
                          this.allEmployees[1],
                   ]
              }
            )

Selects are passed by reference, not value, as someone pointed out in another issue


Training code issues

Thank you for your work! But I can't find the code for the backward propagation. Also, style_loss in train.py is a tensor with 4 items, which makes an error in total_cd_pc += cd_pc_item.

Thank you for your careful comment! This is an error during code reorganization, we have fix it.
The style_loss should be added up during forward function. This part only affects the display of the training process, and can be deleted if an error is reported.


tensorflow2 memory leak when using tf.function

I post this question here because no one is able to answer it for over a month. Hope someone here would give the solution.
https://stackoverflow.com/questions/68379996/how-to-profile-tensorflow-memory

Please resubmit and pay attention to the issue template (https://github.com/tensorflow/tensorflow/issues/new). Please provide all the information it asks. Thank you.


Stucks at flashing GPT image

I select a 16GB SD card and the WIM file. Press GO and ....
It displays the approval for USB drivers and then downloads the UEFI.
Then he wants to flash the data, but nothing happens.
Started the program as administrator.
System: Windows 10 Pro 64bit (1809)
Screenshots
https://i.ibb.co/4TgDxVX/2019-02-27-08-37-26-Window.png
Log file
2019-02-27 07:12:25.268 +01:00 [Verbose] The '""' does not exist 2019-02-27 07:13:17.455 +01:00 [Verbose] Default directory for WimFolder has been set to "I:\sources" 2019-02-27 07:13:17.459 +01:00 [Verbose] Trying to load WIM metadata file at '"I:\sources\install.wim"' 2019-02-27 07:13:17.491 +01:00 [Verbose] Getting WIM stream 2019-02-27 07:13:17.492 +01:00 [Verbose] (WIM) Finding Magic Bytes... 2019-02-27 07:13:17.493 +01:00 [Verbose] (WIM) Found Magic Bytes at 0 2019-02-27 07:13:17.493 +01:00 [Verbose] (WIM) Finding WIM XML Data... 2019-02-27 07:13:17.493 +01:00 [Verbose] (WIM) Found WIM XML Data at<PHONE_NUMBER>12 2019-02-27 07:13:17.518 +01:00 [Verbose] Wim metadata deserialized correctly WimMetadata { TotalBytes: "4411688541", Images: [ImageMetadata { DirectoryCount: "24050", FileCount: "102376", TotalBytes: "17282191529", HardLinkBytes: "6661211496", CreationTime: Time { HighPart: "0x01D44D1D", LowPart: "0x4FA82FDE" }, LastModificationTime: Time { HighPart: "0x01D4CDE1", LowPart: "0xC46B5842" }, WimBoot: "0", Windows: Windows { Arch: "12", ProductName: "Betriebssystem Microsoft® Windows®", EditionId: "Professional", InstallationType: "Client", ServicingData: ServicingData { GdrDuRevision: "0", PKeyConfigVersion: "10.0.17763.1;2016-01-01T00:00:00Z" }, ProductType: "WinNT", ProductSuite: "Terminal Server", Languages: Languages { Language: "de-DE", Default: "de-DE" }, Version: Version { Major: "10", Minor: "0", Build: "17763", SpBuild: "346", SpLevel: "0" }, SystemRoot: "WINDOWS" }, Name: "Windows 10 Pro", Description: "Windows 10 Pro", Flags: null, DiplayName: "Windows 10 Pro", DisplayDescription: "Windows 10 Pro", Index: "1" }] } 2019-02-27 07:13:17.522 +01:00 [Verbose] WIM metadata file at '"I:\sources\install.wim"' retrieved correctly 2019-02-27 07:13:42.610 +01:00 [Information] Downloading UEFI 2019-02-27 07:14:53.540 +01:00 [Information] Zip Unpack from http://ww1.microchip.com/downloads/en//softwarelibrary/obj-lan95xx-windows/lan9500-wdf-v<IP_ADDRESS>.zip to Downloaded\Drivers\LAN95XX 2019-02-27 07:14:55.463 +01:00 [Verbose] Copying directory "C:\Users\maximilian.hoer\AppData\Local\Temp\kpluhybi.tyy" to "Downloaded\Drivers\LAN95XX" 2019-02-27 07:14:56.226 +01:00 [Information] Zip Unpack from http://ww1.microchip.com/downloads/en//softwarelibrary/obj-lan78xx-windows/lan7800-wdf-v<IP_ADDRESS>.zip to Downloaded\Drivers\LAN78XX 2019-02-27 07:14:57.537 +01:00 [Verbose] Copying directory "C:\Users\maximilian.hoer\AppData\Local\Temp\szjud4lp.jjs" to "Downloaded\Drivers\LAN78XX" 2019-02-27 07:14:58.073 +01:00 [Information] Zip Unpack from https://pi64.win/wp-content/uploads/2019/02/usb-drivers.zip to Downloaded\Drivers\USB 2019-02-27 07:14:59.061 +01:00 [Verbose] Copying directory "C:\Users\maximilian.hoer\AppData\Local\Temp\vfub45rg.lyr" to "Downloaded\Drivers\USB" 2019-02-27 07:14:59.129 +01:00 [Information] Fetching from GitHub subfolder: https://github.com/driver1998/bsp/bsp-master/prebuilt to Downloaded\Drivers\BSP Drivers 2019-02-27 07:15:00.990 +01:00 [Information] License from Downloaded\Drivers\USB\license.md 2019-02-27 07:16:12.966 +01:00 [Information] Deploying Windows 2019-02-27 07:16:12.971 +01:00 [Information] Flashing GPT image... 2019-02-27 07:16:12.975 +01:00 [Verbose] We are about to run Etcher: "Core\Tools\Etcher-Cli\x86\Etcher" "-d \\.\PHYSICALDRIVE1 \"Core\gpt.zip\" --yes --no-unmount" 2019-02-27 07:16:12.979 +01:00 [Verbose] Starting process { FileName: "Core\Tools\Etcher-Cli\x86\Etcher", Arguments: "-d \\.\PHYSICALDRIVE1 \"Core\gpt.zip\" --yes --no-unmount" } 2019-02-27 07:16:15.265 +01:00 [Verbose] Process started sucessfully 2019-02-27 07:59:43.009 +01:00 [Verbose] The '"I:\sources"' exists 2019-02-27 07:59:44.717 +01:00 [Verbose] Default directory for WimFolder has been set to "I:\sources" 2019-02-27 07:59:44.721 +01:00 [Verbose] Trying to load WIM metadata file at '"I:\sources\install.wim"' 2019-02-27 07:59:44.738 +01:00 [Verbose] Getting WIM stream 2019-02-27 07:59:44.739 +01:00 [Verbose] (WIM) Finding Magic Bytes... 2019-02-27 07:59:44.739 +01:00 [Verbose] (WIM) Found Magic Bytes at 0 2019-02-27 07:59:44.739 +01:00 [Verbose] (WIM) Finding WIM XML Data... 2019-02-27 07:59:44.739 +01:00 [Verbose] (WIM) Found WIM XML Data at<PHONE_NUMBER>12 2019-02-27 07:59:44.769 +01:00 [Verbose] Wim metadata deserialized correctly WimMetadata { TotalBytes: "4411688541", Images: [ImageMetadata { DirectoryCount: "24050", FileCount: "102376", TotalBytes: "17282191529", HardLinkBytes: "6661211496", CreationTime: Time { HighPart: "0x01D44D1D", LowPart: "0x4FA82FDE" }, LastModificationTime: Time { HighPart: "0x01D4CDE1", LowPart: "0xC46B5842" }, WimBoot: "0", Windows: Windows { Arch: "12", ProductName: "Betriebssystem Microsoft® Windows®", EditionId: "Professional", InstallationType: "Client", ServicingData: ServicingData { GdrDuRevision: "0", PKeyConfigVersion: "10.0.17763.1;2016-01-01T00:00:00Z" }, ProductType: "WinNT", ProductSuite: "Terminal Server", Languages: Languages { Language: "de-DE", Default: "de-DE" }, Version: Version { Major: "10", Minor: "0", Build: "17763", SpBuild: "346", SpLevel: "0" }, SystemRoot: "WINDOWS" }, Name: "Windows 10 Pro", Description: "Windows 10 Pro", Flags: null, DiplayName: "Windows 10 Pro", DisplayDescription: "Windows 10 Pro", Index: "1" }] } 2019-02-27 07:59:44.773 +01:00 [Verbose] WIM metadata file at '"I:\sources\install.wim"' retrieved correctly 2019-02-27 07:59:52.104 +01:00 [Information] Downloading UEFI 2019-02-27 07:59:52.109 +01:00 [Warning] UEFI was already downloaded. Skipping download. 2019-02-27 07:59:52.118 +01:00 [Information] Zip Unpack from http://ww1.microchip.com/downloads/en//softwarelibrary/obj-lan95xx-windows/lan9500-wdf-v<IP_ADDRESS>.zip to Downloaded\Drivers\LAN95XX 2019-02-27 07:59:52.125 +01:00 [Information] Zip Unpack from http://ww1.microchip.com/downloads/en//softwarelibrary/obj-lan78xx-windows/lan7800-wdf-v<IP_ADDRESS>.zip to Downloaded\Drivers\LAN78XX 2019-02-27 07:59:52.130 +01:00 [Information] Zip Unpack from https://pi64.win/wp-content/uploads/2019/02/usb-drivers.zip to Downloaded\Drivers\USB 2019-02-27 07:59:52.138 +01:00 [Information] Fetching from GitHub subfolder: https://github.com/driver1998/bsp/bsp-master/prebuilt to Downloaded\Drivers\BSP Drivers 2019-02-27 07:59:52.141 +01:00 [Warning] "https://github.com/driver1998/bsp""bsp-master/prebuilt" was already downloaded. Skipping download. 2019-02-27 07:59:52.147 +01:00 [Information] License from Downloaded\Drivers\USB\license.md 2019-02-27 07:59:55.310 +01:00 [Information] Deploying Windows 2019-02-27 07:59:55.314 +01:00 [Information] Flashing GPT image... 2019-02-27 07:59:55.319 +01:00 [Verbose] We are about to run Etcher: "Core\Tools\Etcher-Cli\x86\Etcher" "-d \\.\PHYSICALDRIVE1 \"Core\gpt.zip\" --yes --no-unmount" 2019-02-27 07:59:55.321 +01:00 [Verbose] Starting process { FileName: "Core\Tools\Etcher-Cli\x86\Etcher", Arguments: "-d \\.\PHYSICALDRIVE1 \"Core\gpt.zip\" --yes --no-unmount" } 2019-02-27 07:59:55.329 +01:00 [Verbose] Process started sucessfully 2019-02-27 08:27:49.285 +01:00 [Verbose] The '"I:\sources"' exists 2019-02-27 08:27:50.891 +01:00 [Verbose] Default directory for WimFolder has been set to "I:\sources" 2019-02-27 08:27:50.895 +01:00 [Verbose] Trying to load WIM metadata file at '"I:\sources\install.wim"' 2019-02-27 08:27:50.917 +01:00 [Verbose] Getting WIM stream 2019-02-27 08:27:50.918 +01:00 [Verbose] (WIM) Finding Magic Bytes... 2019-02-27 08:27:50.919 +01:00 [Verbose] (WIM) Found Magic Bytes at 0 2019-02-27 08:27:50.919 +01:00 [Verbose] (WIM) Finding WIM XML Data... 2019-02-27 08:27:50.919 +01:00 [Verbose] (WIM) Found WIM XML Data at<PHONE_NUMBER>12 2019-02-27 08:27:50.944 +01:00 [Verbose] Wim metadata deserialized correctly WimMetadata { TotalBytes: "4411688541", Images: [ImageMetadata { DirectoryCount: "24050", FileCount: "102376", TotalBytes: "17282191529", HardLinkBytes: "6661211496", CreationTime: Time { HighPart: "0x01D44D1D", LowPart: "0x4FA82FDE" }, LastModificationTime: Time { HighPart: "0x01D4CDE1", LowPart: "0xC46B5842" }, WimBoot: "0", Windows: Windows { Arch: "12", ProductName: "Betriebssystem Microsoft® Windows®", EditionId: "Professional", InstallationType: "Client", ServicingData: ServicingData { GdrDuRevision: "0", PKeyConfigVersion: "10.0.17763.1;2016-01-01T00:00:00Z" }, ProductType: "WinNT", ProductSuite: "Terminal Server", Languages: Languages { Language: "de-DE", Default: "de-DE" }, Version: Version { Major: "10", Minor: "0", Build: "17763", SpBuild: "346", SpLevel: "0" }, SystemRoot: "WINDOWS" }, Name: "Windows 10 Pro", Description: "Windows 10 Pro", Flags: null, DiplayName: "Windows 10 Pro", DisplayDescription: "Windows 10 Pro", Index: "1" }] } 2019-02-27 08:27:50.947 +01:00 [Verbose] WIM metadata file at '"I:\sources\install.wim"' retrieved correctly 2019-02-27 08:27:56.396 +01:00 [Information] Downloading UEFI 2019-02-27 08:27:56.402 +01:00 [Warning] UEFI was already downloaded. Skipping download. 2019-02-27 08:27:56.410 +01:00 [Information] Zip Unpack from http://ww1.microchip.com/downloads/en//softwarelibrary/obj-lan95xx-windows/lan9500-wdf-v<IP_ADDRESS>.zip to Downloaded\Drivers\LAN95XX 2019-02-27 08:27:56.417 +01:00 [Information] Zip Unpack from http://ww1.microchip.com/downloads/en//softwarelibrary/obj-lan78xx-windows/lan7800-wdf-v<IP_ADDRESS>.zip to Downloaded\Drivers\LAN78XX 2019-02-27 08:27:56.422 +01:00 [Information] Zip Unpack from https://pi64.win/wp-content/uploads/2019/02/usb-drivers.zip to Downloaded\Drivers\USB 2019-02-27 08:27:56.427 +01:00 [Information] Fetching from GitHub subfolder: https://github.com/driver1998/bsp/bsp-master/prebuilt to Downloaded\Drivers\BSP Drivers 2019-02-27 08:27:56.429 +01:00 [Warning] "https://github.com/driver1998/bsp""bsp-master/prebuilt" was already downloaded. Skipping download. 2019-02-27 08:27:56.435 +01:00 [Information] License from Downloaded\Drivers\USB\license.md 2019-02-27 08:27:57.941 +01:00 [Information] Deploying Windows 2019-02-27 08:27:57.945 +01:00 [Information] Flashing GPT image... 2019-02-27 08:27:57.949 +01:00 [Verbose] We are about to run Etcher: "Core\Tools\Etcher-Cli\x86\Etcher" "-d \\.\PHYSICALDRIVE1 \"Core\gpt.zip\" --yes --no-unmount" 2019-02-27 08:27:57.951 +01:00 [Verbose] Starting process { FileName: "Core\Tools\Etcher-Cli\x86\Etcher", Arguments: "-d \\.\PHYSICALDRIVE1 \"Core\gpt.zip\" --yes --no-unmount" } 2019-02-27 08:27:57.959 +01:00 [Verbose] Process started sucessfully 2019-02-27 08:29:15.294 +01:00 [Verbose] The '"I:\sources"' exists 2019-02-27 08:29:16.524 +01:00 [Verbose] Default directory for WimFolder has been set to "I:\sources" 2019-02-27 08:29:16.528 +01:00 [Verbose] Trying to load WIM metadata file at '"I:\sources\install.wim"' 2019-02-27 08:29:16.545 +01:00 [Verbose] Getting WIM stream 2019-02-27 08:29:16.546 +01:00 [Verbose] (WIM) Finding Magic Bytes... 2019-02-27 08:29:16.547 +01:00 [Verbose] (WIM) Found Magic Bytes at 0 2019-02-27 08:29:16.547 +01:00 [Verbose] (WIM) Finding WIM XML Data... 2019-02-27 08:29:16.547 +01:00 [Verbose] (WIM) Found WIM XML Data at<PHONE_NUMBER>12 2019-02-27 08:29:16.575 +01:00 [Verbose] Wim metadata deserialized correctly WimMetadata { TotalBytes: "4411688541", Images: [ImageMetadata { DirectoryCount: "24050", FileCount: "102376", TotalBytes: "17282191529", HardLinkBytes: "6661211496", CreationTime: Time { HighPart: "0x01D44D1D", LowPart: "0x4FA82FDE" }, LastModificationTime: Time { HighPart: "0x01D4CDE1", LowPart: "0xC46B5842" }, WimBoot: "0", Windows: Windows { Arch: "12", ProductName: "Betriebssystem Microsoft® Windows®", EditionId: "Professional", InstallationType: "Client", ServicingData: ServicingData { GdrDuRevision: "0", PKeyConfigVersion: "10.0.17763.1;2016-01-01T00:00:00Z" }, ProductType: "WinNT", ProductSuite: "Terminal Server", Languages: Languages { Language: "de-DE", Default: "de-DE" }, Version: Version { Major: "10", Minor: "0", Build: "17763", SpBuild: "346", SpLevel: "0" }, SystemRoot: "WINDOWS" }, Name: "Windows 10 Pro", Description: "Windows 10 Pro", Flags: null, DiplayName: "Windows 10 Pro", DisplayDescription: "Windows 10 Pro", Index: "1" }] } 2019-02-27 08:29:16.579 +01:00 [Verbose] WIM metadata file at '"I:\sources\install.wim"' retrieved correctly 2019-02-27 08:29:19.499 +01:00 [Information] Downloading UEFI 2019-02-27 08:29:19.505 +01:00 [Warning] UEFI was already downloaded. Skipping download. 2019-02-27 08:29:19.511 +01:00 [Information] Zip Unpack from http://ww1.microchip.com/downloads/en//softwarelibrary/obj-lan95xx-windows/lan9500-wdf-v<IP_ADDRESS>.zip to Downloaded\Drivers\LAN95XX 2019-02-27 08:29:19.519 +01:00 [Information] Zip Unpack from http://ww1.microchip.com/downloads/en//softwarelibrary/obj-lan78xx-windows/lan7800-wdf-v<IP_ADDRESS>.zip to Downloaded\Drivers\LAN78XX 2019-02-27 08:29:19.524 +01:00 [Information] Zip Unpack from https://pi64.win/wp-content/uploads/2019/02/usb-drivers.zip to Downloaded\Drivers\USB 2019-02-27 08:29:19.529 +01:00 [Information] Fetching from GitHub subfolder: https://github.com/driver1998/bsp/bsp-master/prebuilt to Downloaded\Drivers\BSP Drivers 2019-02-27 08:29:19.531 +01:00 [Warning] "https://github.com/driver1998/bsp""bsp-master/prebuilt" was already downloaded. Skipping download. 2019-02-27 08:29:19.536 +01:00 [Information] License from Downloaded\Drivers\USB\license.md 2019-02-27 08:29:21.107 +01:00 [Information] Deploying Windows 2019-02-27 08:29:21.111 +01:00 [Information] Flashing GPT image... 2019-02-27 08:29:21.116 +01:00 [Verbose] We are about to run Etcher: "Core\Tools\Etcher-Cli\x86\Etcher" "-d \\.\PHYSICALDRIVE1 \"Core\gpt.zip\" --yes --no-unmount" 2019-02-27 08:29:21.118 +01:00 [Verbose] Starting process { FileName: "Core\Tools\Etcher-Cli\x86\Etcher", Arguments: "-d \\.\PHYSICALDRIVE1 \"Core\gpt.zip\" --yes --no-unmount" } 2019-02-27 08:29:21.126 +01:00 [Verbose] Process started sucessfully

Latest info:
It doesn't seem to be a bug. The program is extremely slow.
A simple flash process on a 16GB SD card took about 12 hours.
I tested it with 2 SD cards to rule out one of them being defective.


Bi section method is created

🛠 Issue (Number)
#1236
👨💻 Changes proposed

Creation of folder inside Maths with name root finding methods
Bi section method is implemented
Readme file for the folder is created

✔ Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

📄 Note to reviewers

Fully customizable code at every part for easy use and embedding at any other places
A bit of request - response is there which allows it to work like REST API
There is already bisection.py existing in the Maths folder but that is not actually the working. It is fixed for a specific equation with no modification allowance. So I thought to create a new folder for this root finding techniques and add the others methods like secant and Newton Raphson soon
The code is in Python

📷 Screenshots
None

If possible can you provide some more details regarding this. So that I can know exactly what is expected

If possible can you provide some more details regarding this. So that I can know exactly what is expected

The issue was assigned in four languages but you have only implemented it in one language

I have updated the changes suggested.

There is a problem in coding it in other languages like C, C++ as the function cannot be evaluted.
Python has eval() to deal with it

There is a problem in coding it in other languages like C, C++ as the function cannot be evaluted.
Python has eval() to deal with it

It is very much possible to code in any language unless you understand the algorithm, I suggest you to practice this on rough paper and then implement the recursive code of this logic


[PE-2247] refactor: remove options state & ref prop directly

tldr: we were using the state prop to jerry-rig some reactivity to VJS. There turns out to be a more idiomatic way to handle this.

Before this PR
Component properties and their values were being duplicated to state and "reactivity" was based on state changes.
After this PR
Component properties cause "reactive" updating of video elements without needing to store/transition their values in the state.

Stacked PR Chain: PE-2247

PR
Title
Status
Merges Into

#41
👉refactor: remove options state & ref prop directly

-

#42
feat: add controlled poster prop

#41

LGTM but I think we could benefit from a little more documentation here as to "why" this is a more idiomatic way to handle reactive updating.

Fair point. It comes down to setting the state to be the value of the props, IE referencing prop values through the state, being an anti-pattern in almost any framework. The odds that the two get out of sync are non-zero, creating a possible point of failure that you're better off without.


Add information about cantrips known on class items alongside spellcasting ability and spellcasting progression

Originally in GitLab by @iaguastalli
Currently, data.spellcasting.progression can be tied up to game.dnd5e.config.spellProgression to calculate the slots available for each level (alongside the max spell level they can cast, infered from that same array), but there's no information about cantrips that I can find.
First idea that comes to mind would be adding another key on {classItem}.data.spellcasting named probably cantrips, that will have a 1-20 array similar to game.dnd5e.config.spellProgression, but containing only the number of cantrips per level.
I understand this can't be coalesced with the spellProgression matrix as the cantrip count per level is not consistent between classes (e.g. Bard lv1 having 2 cantrips, Cleric lv1 having 3 cantrips, and Sorcerer lv1 having 4 cantrips), but the full spell progression might be merged into the class, but I don't know where else this might be used and if it would make sense to shift all those usages to an eventual progression completely inside the class.

Handled by scale value advancements.


Merge 4.10.x to 5.0.x

CLA signed by all contributors.

@johnduarte does my resolution of your PUP 7740 acceptance test change look alright after the merge to 5.0.x

@hlindberg we still need to accommodate the case where ENV['SERVER_VERSION'] is set to latest
I think the following should do:
step "Install puppetserver..." do
  if ENV['SERVER_VERSION'].nil? || ENV['SERVER_VERSION'] == 'latest'
    server_version = 'latest'
    server_download_url = "http://nightlies.puppet.com"
  else
    server_version = ENV['SERVER_VERSION']
    server_download_url = "http://builds.delivery.puppetlabs.net"
  end
  if master[:hypervisor] == 'ec2'
    if master[:platform].match(/(?:el|centos|oracle|redhat|scientific)/)
      # An EC2 master instance does not have access to puppetlabs.net for getting
      # dev repos. We will install the nightly repo to satisfy the puppetserver
      # requirement and then override it with the targeted SHA package later
      # So, install the puppet-agent package directly
      if server_version == 'latest'
        logger.info "EC2 master found: Installing nightly build of puppet-agent repo to satisfy puppetserver dependency."
        install_repos_on(master, 'puppet-agent', 'nightly', 'repo-configs')
        install_repos_on(master, 'puppetserver', 'nightly', 'repo-configs')
      else
        variant, version = master['platform'].to_array
        if server_version.to_i < 5
          logger.info "EC2 master found: Installing nightly build of puppet-agent repo to satisfy puppetserver dependency."
          on(master, "rpm -Uvh https://yum.puppetlabs.com/puppetlabs-release-pc1-el-#{version}.noarch.rpm")
        else
          logger.info "EC2 master found: Installing nightly build of puppet-agent repo to satisfy puppetserver dependency."
          on(master, "rpm -Uvh https://yum.puppetlabs.com/puppet5-release-el-#{version}.noarch.rpm")
        end
      end

      master.install_package('puppetserver')

      logger.info "EC2 master found: Installing #{ENV['SHA']} build of puppet-agent."
      # Override nightly puppet-agent with targeted SHA.
      # Currently, only an `el` master is supported for this operation.
      opts = {
        :puppet_collection => 'PC1',
        :puppet_agent_sha => ENV['SHA'],
        :puppet_agent_version => ENV['SUITE_VERSION'] || ENV['SHA'] ,
        :dev_builds_url => "http://builds.delivery.puppetlabs.net"
      }

      copy_dir_local = File.join('tmp', 'repo_configs', master['platform'])
      release_path_end, release_file = master.puppet_agent_dev_package_info( opts[:puppet_collection], opts[:puppet_agent_version], opts)
      release_path = "#{opts[:dev_builds_url]}/puppet-agent/#{opts[:puppet_agent_sha]}/repos/"
      release_path << release_path_end
      fetch_http_file(release_path, release_file, copy_dir_local)
      scp_to master, File.join(copy_dir_local, release_file), master.external_copy_base
      on master, "rpm -Uvh #{File.join(master.external_copy_base, release_file)} --oldpackage --force"
    else
      fail_test("EC2 master found, but it was not an `el` host: The specified `puppet-agent` build (#{ENV['SHA']}) cannot be installed.")
    end
  else
    install_puppetlabs_dev_repo(master, 'puppetserver', server_version, nil, :dev_builds_url => server_download_url)
    install_puppetlabs_dev_repo(master, 'puppet-agent', ENV['SHA'])
    master.install_package('puppetserver')
  end

end

@hlindberg my github foo is not strong enough to try and inject additional mods. I will merge and I can patch later.

@hlindberg @johnduarte for future PRs, please don't merge unless you're sure conflicts were resolved properly. Otherwise it makes it harder to revert if things don't work out, and unnecessarily causes builds to fail.


Only get package version once

This fixes a performance issue where get_package_version takes a long time and increases the time of our instrumentation.

Codecov Report

Merging #928 (e3736ff) into main (17cd48d) will decrease coverage by 0.13%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #928      +/-   ##
==========================================
- Coverage   81.74%   81.61%   -0.13%
==========================================
  Files         190      190
  Lines       19581    19581
  Branches     3401     3401
==========================================
- Hits        16007    15982      -25
- Misses       2593     2621      +28
+ Partials      981      978       -3

see 3 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Refactor Implicits

Fixes #346 Provide trait versions of all implicits.

Codecov Report

Merging #351 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #351   +/-   ##
=======================================
  Coverage   81.64%   81.64%
=======================================
  Files          24       24
  Lines         207      207
  Branches        2        3    +1
=======================================
  Hits          169      169
  Misses         38       38

Merge pending resolution of https://github.com/frees-io/freestyle/pull/344


Add skew and trading history

Description
Implement a trade history & skew panel
Related issue
#639
Motivation and Context
Show the trade history and skew panel.
How Has This Been Tested?

Switch to the different markets and check the skew and trade history
Check the layout when there is no trade

Screenshots (if appropriate):

@Tburm @platschi  The following changes have been made.

[X] show data even the wallet is disconnected
[X] remove the placeholder row when no trades
[X] remove the extra padding space of the table row
[X] fix the shifted layout issue
[X] rename the query type


Deployment: Introduction: Add Box Button section & Deployment CLI GIF

As Mocked here & Copy already written
https://docs.google.com/document/d/1Zt5rpGCT5aKG-IpRJwcx81LYPe1uPcikr_5NhtWy_os/edit#bookmark=id.n7gdz2jfpzvc
also UI Link section should reuse: https://github.com/airyhq/airy/issues/875

Intro section should be:
You can choose to deploy Airy in many different ways: locally with Vagrant or production ready in your cloud or in AWS, Google, Azure or Digital Ocean.
The following documentation covers how to develop locally with Airy or deploy Airy with various hosting options.
The text of the Box Button Section should be:
Deployment Guides
Step by step guides for deployment on various platforms, for installation please see our installation guides.
https://www.vectorlogo.zone/logos/vagrantup/vagrantup-icon.svg
Local test environment with Vagrant
Step by step guide to run Airy Core on your local machine
https://www.vectorlogo.zone/logos/apache_kafka/apache_kafka-vertical.svg
Production ready environment with Kafka
Manual step by step guide for running Airy in production

done in #924


Can't Load roms

Playdate OS: 2.4.2
PlayGB: 0.7.5
I can see the list of roms (all .gb), but whenever I try to load them it says "Oh no! Can't load the selected ROM"

Hi, did you try loading popular roms? E.g. Super Mario Land

Yes

Are you sure the file format is correct? The emulator doesn't support zip files, so if you rename a .zip to .gb, it won't work.
Also, please try with other emulators for Playdate and let me know.

Yes - .gb and gamekid loads the roms fine

Thanks, I just tried on Playdate OS 2.4.2 but it's working for me (I have a Rev A device).
Not sure what the issue is. Did you sideload it from the Playdate website?

Hmm, yes I did. I'm trying pokemon blue and Link's awakening. When I get the chance I will try super Mario land

Also tried Super Mario Land - same thing. I'm pretty sure I have rev B? I picked this up last week

Hi, I have a similiar if not identical issue:
I have tried the following roms so far:

Pokemon Yellow German (MD5 E93F10168E3C9B9D18E3AD4A1415E1D0)
Zelda Link's Awakening German (MD5 8B7AF1A8CA96C74301D633E0CE83BA0B)
Super Mario Land (MD5 B48161623F12F86FEC88320166A21FCE)
Tetris (MD5 084F1E457749CDEC86183189BD88CE69)

Each of these roms work fine on other emulators like:

MyOldBoy! (Android)
Gamekid (Playdate)
Probably others, I have been using these for a while.

With each of this roms, selecting it in the library leads to this text:

Oh no!
Can't load the selected ROM

Navigating back to Library or Home results in the Playdate crashing. I doubt that this will be helpful, but just in case, here is the crashlog:
--- crash at 2024/03/28 22:46:26---
build:5cd9814a-2.4.2-release.166897-buildbot
   r0:00000007    r1:2403f627     r2:3000027c    r3: 00000000
  r12:00001ff0    lr:2403f627     pc:2405d4be   psr: 810f0000
 cfsr:00000082  hfsr:00000000  mmfar:00000007  bfar: 00000007
rcccsr:00000000
heap allocated: 180896
Lua totalbytes=0 GCdebt=0 GCestimate=0 stacksize=0

I am running the newest versions OS 2.4.2 and PlayGB 0.7.5. I am not sure about my hardware rev, but ordered just 3 weeks ago so it's probably the latest.
 Since Gamekid is based on Peanut_GB as well, the cause for this issue is probably not the actual emulation code. I should be able to isolate the cause for this if I tinker with it a bit.

Thanks for the info, here's a build compiled with the latest SDK (I also changed/fixed some things)
PlayGB-test.pdx.zip
If you can, install the Simulator and connect the Playdate, it should give you a message such as "Can't open rom file" or "Can't read rom file" in the console.

Yes indeed, here is the full output:
01:25:01: Device Connected: /dev/ttyACM0
stats
echo off
target=h7d1
build=5cd9814a-2.4.2-release.166897-buildbot-240319
boot_build=5cd9814a-2.4.2-release.166897-buildbot
SDK=2.4.2
pdxversion=20400
serial#=PDU1-YXXXXXX
cc=9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]
crashed=1
pcbver=0x13
time and date set
src/game_scene.c:197: Can't open rom file games/Tetris (World).gb

Is that helpful?

Thanks for the help!
New build: PlayGB-test2.pdx.zip
It should give you a file error message.

Thanks!
If you haven't already done so, can you copy the pdx over USB to the /Games folder? The Data folder for the game will be different (com.risolvipro.playgb).

Up until now, I deployed the PDX files via the web sideloader, but I just tried it out like you suggested. Just to be sure, this is where it is at now:
$ pwd
/media/fejx/PLAYDATE/Games/PlayGB.pdx
$ ls
fonts  games  images  launcher  pdex.bin  pdex.dylib  pdxinfo

The console output still is:
src/game_scene.c:198: Can't open rom file games/Tetris (World).gb
src/game_scene.c:199: File error unknown uC-FS error: 0709

Okay, I think I found the issue.
I see a "games" folder in your pdx (it shouldn't be there), the correct folder is /Data/com.risolvipro.playgb (USB) or /Data/user.*.com.risolvipro.playgb (web sideload)

Well, this is embarrassing. This fixed the issue indeed. I probably should have read the manual more closely. Thank you for your patience and custom builds and sorry for the inconveniences.

No problem, it's a very odd issue because the playdate->file->listfiles function considers the pdx folder and Data folder as a single folder.

@fejx you and I both. This was also my issue. Working after moving to Data!

Maybe a dummy proof solution would be checking the pdx location as a fallback?

I'll try out if I can make it work regardless of the path. If that's not possible, I would rather suggest to add a hint to the error message that this might be the cause for the error.

Maybe a dummy proof solution would be checking the pdx location as a fallback?

I think I can't check the full location of the file (paths are relative). Maybe I could catch the error code 0709

@fejx @rainthefrog Added an error message in the latest version (based on the error code)


Enable compression for the following resources to reduce their transfer size by 14.1KiB (78% reduction).

What can i do for remove the graphql get url more space and line?

I think you should post this issue to apollographql?


Add retrofit and corresponding services for REST client

Add retrofit
Move login to retrofit
Put inventory requests on hold

@garg-anuj I will remove all the unused imports in one go.

@pg301 thanks.

@pg301 first thing first. Check if login logout are working properly or not on your device

@garg-anuj I think there's a problem with login. On entering wrong login details it goes into an endless loop. I will fix it and push an update soon.

@pg301 Now retrofit is all yours. Let me know if need any help at any place


Caps for primary keys in sql statments...

Hi!
// Artist represents an artist record.
type Artist struct {
	Id   int    `json:"id" db:"id"`
	Name string `json:"name" db:"name"`
}

Why we need  db:"id" in this case?  It's only for primary key... (

What is your code that is causing the execution of the problematic SELECT statement? Nope, db:"id" is not really necessary here.

Closed as no update was received.


Issue/57

Relates to #57

Improvement

Description:

Added pipe for transformation of type camelize

They all look fine. Thanks!


Introduce NativeCompileCache

This PR speeds up source code compile times by using a hacked version of the vm module (https://github.com/as-cii/cached-run-in-this-context).
We've been searching very hard for a way to make startup faster: the biggest low hanging fruit seemed to be vm.runInThisContext which, before this improvement, took more than 250ms-300ms. That function is used inside Module.prototype._compile for, surprise, compiling the source code: although v8 compiler is quite fast already, our codebase has grown quite a lot and the more files we added, the worse the situation would get.
The snapshot approach tried in #9265 should have indirectly solved this, but it felt way too complicated to construct an AtomEnvironment inside the snapshot context. Instead, we are taking advantage of a v8 compiler feature that allows to speed up source code compilation by producing/consuming a cache blob. By using this mechanism, we have managed to change startup times from (without any tab open):

to:

:tada: :tada: :tada:
There's still some aspect we could improve, such as where these cache blobs get stored: I used files as the storage mechanism, as it allows us to keep the code pretty simple, but they take ~40ms to get read. There are alternatives to this (e.g. asar), but I am not sure it would improve the situation that much: even a 50% improvement, would make this just ~20ms faster at the expense of making code a bit more complex.
Please, note that whenever DevTools are open, v8 seems to make this optimization a bit worse: if you, however, spawn Atom:

via cmd;
by running the executable;
by reloading the window with DevTools closed;

You will notice the speedup. @zcbenz: any ideas why this happens? I guess this covers already 100% of the average use cases and won't matter to the end user, but if possible it seems to be still worth investigating.
After this lands, I will go on hunting other things that are slowing startup down: we feel like IO could be the main cause but we'll get a better picture after this improvement gets :ship:ped.
/cc: @atom/feedback @nathansobo

:sparkles:

whenever DevTools are open, v8 seems to make this optimization a bit worse @zcbenz: any ideas why this happens?

I guess devtools disabled the cache optimization, devtools is known to affect V8's optimization when opened since it needs to receive full information of the JavaScript context.

This seems to work pretty nicely and the I/O improvements made in b365ba5 seems to let Atom load within 670ms-690ms almost always on my machine.
@maxbrunsfeld @nathansobo: I have polished up the code as well, so your feedback would be super appreciated! :pray:
@izuzak: features-wise nothing should have changed, but could you have a look and try to break :bomb:  it?

:heart: Clean design. Clean tests. Super nice.

Is there a reason the new bits are not written using Babel/ES2015? :confused:

I commented above about using es6. Don't think we need babel though, now that we're on electron 34, unless we're using async or await.

I commented above about using es6. Don't think we need babel though, now that we're on electron 34, unless we're using async or await.

Does the ES6 bits in Electron support new module loader syntax (e.g. import)? Makes code so much nicer :art:
Also var is generally evil, and should be avoided due to hoisting nonsense. Prefer let (and const when applicable).
Other than the ES syntax comment, this looks great! Awesome job as usual @as-cii :clap:

No, it doesn't support import. Personally, I probably wouldn't introduce transpilation just for that feature, but I guess I'd be open to it. Agreed about const and let, which electron also supports natively. You might have to use strict, but that's fine.

Also, in order to work in dev mode, in which files are transpiled on-the-fly, files like these, that are loaded early in the startup process (compile-cache.js and earlier), need to not be transpiled.

I've been using this branch this morning, and I can definitely feel the improvement in startup.

I've been using this branch this morning, and I can definitely feel the improvement in startup.

Clean design. Clean tests. Super nice.

Awesome job as usual

@thomasjo @maxbrunsfeld: :heart: :heart: :heart:
I have just ported the code over ES6 and removed references to cache. It reads so better now, thanks for the suggestion guys! I'll give this another spin and merge in the weekend if everything is :cool:. :sunglasses:

Is that cached-run-in-this-context module is something worth upstreaming?

:ship:

Thanks everyone for all the great suggestions! :sparkles: If needed we can refine this it on a separate branch/commit.

🐎🌠

Yeah!! Nice job @as-cii

Fantastic work as usual, @as-cii! :bow:

Hey @as-cii: @kevinsawicki and I were talking yesterday and he brought up that we should probably include the v8 version in the compile cache key in case they change their internal formats. Did a quick audit and not sure this is currently happening, but we should probably get that in before this goes to beta if we can.

we should include the v8 version in the compile cache key in case they change their internal formats

V8 does have a built-in notion of rejecting a cache blob, and @as-cii has handled this case by deleting it from our blob-store, so we may not need to worry about this.

Oh right, that makes sense. They handle their own invalidation internally.


[WIP] Fail on minimum coverage not met

Current coverage is 100.00%

Files changed
Coverage

models.py
100.00%

plugin.py
100.00%

report.py
100.00%

  Generated by :no_entry_sign: dangerJS against 49113ac259fe71e3ec38c6b187c54388a9e6cd9f


Dead link https://intercom.help/mobile-center/build/changes-to-tables-and-identity

Found in docs/azure//index.md

@nschonni thanks for catching that, I've pulled the link.


feat: explicitly set base of server-reflexive addresses

Without further adjustments, this will set Transmit.source to the provided base here. Opening this here because we are (temporarily) depending on it.
Resolves: #453.

Thanks. I need to circle back to this later this week. Did a mega-deploy at work today, so it's been busy.

Thanks. I need to circle back to this later this week. Did a mega-deploy at work today, so it's been busy.

No worries at all. If you want to see how it is used, check the linked PR :)
The gist is: Check if src is a TURN server IP, if yes, wrap in channel-data message, otherwise forward. This now works because base for srflx addresses is the local host candidate.


fixed print and raise format compliant to  python 3

This pull request enables this package compliant to python 3+ and continues supports python 2 as well

Due to absolute import in python3, init.py line 30, 31 should be fixed as below:
from AutoItLibrary import Logger
from AutoItLibrary import Counter

OR
>>> import AutoItLibrary
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\Python\Python365\lib\site-packages\AutoItLibrary\__init__.py", line 30, in <module>
    import Logger
ModuleNotFoundError: No module named 'Logger'


ARTEMIS-3601 expose acceptors via management

@jbertram can you rebase and fix conflicts?
@jbertram is this ready to merge after @brusdev 's review?

I just update the branch. It should be ready to be merged.


Welcome message

Hello,
Please confirm that removing the Welcome message is still this command:
Set-UnifiedGroup<EMAIL_ADDRESS>-UnifiedGroupWelcomeMessageEnabled:$false
Then maybe handy to add it to this doc?

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

ID: 048930a4-fdf2-9a90-3b47-46af66db3db4
Version Independent ID: 8d6a2c84-94e9-b17e-f5c1-91191187ce4e
Content: Guest experience in Microsoft Teams - Microsoft Teams
Content Source: Teams/guest-experience.md
Service: msteams
GitHub Login: @MikePlumleyMSFT
Microsoft Alias: mikeplum

Thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:https://docs.microsoft.com/office365/admin/contact-support-for-business-products
Please keep us posted here on the resolution so we can feed whatever information you discover into the content.


Github repo files not matching ZIP download or composer files

I have been trying to utilize project in the factory class so I can access different assistants. However, the code in the Github repo does not match the zip code or the code that downloads with composer require.
Replication

Go to https://github.com/openai-php/client/blob/main/src/Factory.php and you will see a property and method related to projects (line 34 and 85 are two examples)
Go to https://github.com/openai-php/client/releases/tag/v0.10.1 and download the ZIP file. Open the src/Factory.php and verify there is nothing with the project functionality.

This was put in the wrong project


should we use less steps to fine-tuning？

Hello sir
When I reproduce your experiment using the resnext-101-pretrained model, I found that the accuracy of the results obtained by softmax regression at 40 steps is higher than that in your paper, with the accuracy of top1 reaching 98.678%. So I think, is your result in the paper over-fitting? In addition, in the process of fine-tuning, should there be fewer steps to train?

sorry I am worry... I used top-5 accuracy.


Rename Solutions.md to Answers.md

A solution has also got the process but an answer just has the final answer

You're technically right but it is clear what is meant in this context. Leaving as-is.


Refactor

Dear Frank and Stanley,
I refactored the ospx code.  The changes in code were in fact quite massive (well, I never really touched the ospx code until now, hence the somewhat larger amount of changes).
While the ospCaseBuilder API underwent many changes 'under the hood', the behaviour as well as the ospCaseBuilder CLI should not have have changed.  At least this is what I aimed at.
Two changes though I needed to introduce in the file format of the case dict files.  This is where existing projects will need a manual update. The two mentioned changes in the case dict file format are documented in detail below.
Can you please checkout the ospx 'refactor' branch in one of your current projects, adapt your project's caseDict file accordingly and test the new code?
Once passing also your tests, we will merge the 'refactor' branch into 'main'.
I will create a related 'ospx_refactor' branch also in the farn-demo repository and adapt the case files used therein, so that we can we update the farn-demo code in-sync as soon as we merge the new ospx code.
Thank you very much!
Claas

@frl000 @StanleyYoo

Hi again Frank and Stanley,
I now also updated the farn-demo accordingly.  To test the new ospx code in farn-demo, checkout the 'ospx_refactor' branch from the farn-demo repository.  That branch in farn-demo matches the changes introduced in the 'refactor' branch in ospx.
On my machine, all the demos in farn-demo now work.  What I could not yet test is the FMU proxification.  But I feel this we could test and eventually repair, if needed, also after merging the ospx 'refactor' branch.
Best regards
Claas
@frl000 @StanleyYoo

@frl000 @StanleyYoo
added and updated also the documentation.


StrictClassLoader fails to load annotations

StrictClassLoader needs to load annotations to check if CommonComponent exists.  Allow annotations to load while checking for common component

Fixed with #1115


Optimize status interface

Fixes #1032
DONE:

short-circuit staging/unstaging files (still not optimistic)
render view as data arrives, whereby git stash list has the lowest priority
optimize git status calls
only draw when view changed

TODO:

Optimize git status calls
User looses selections / not multiple cursors but selected ranges collapse after each render (This is actually implemented in GsNewContentAndRegionsCommand so I don't touch that)
Only re-render if state actually changes / this should be trivial now since the actual render is a pure function on state

Thanks for your contribution. I guess this PR may take some time to review.

The first 9 commits are actually good to read, I could also add comments. The 10th commit is too complex, but splitting a commit after the fact is also super hairy.

@kaste that's an inspiring effort, thanks for contributing! I think the PR makes a lot of sense, and the state caching is something I had long been wishing for. To make the PR easier to read, could you kindly write a few words (e.g in docstring) to help walk us through the logical flow of status interface state / render changes?
I have not tested it yet, I'll check it out now and report back if any issues pop up.

I actually saw that render has this side-effect but assumed it would be a like a post process only necessary once per render.
Now this essentially comes down to invoking just another command 'enter_insert_mode' iirc. Do we have to call this actually on (every) focus? Is there somewhere the reverse action leave_insert_mode?

I think this is the default of Vintagous/NeoVintageous to switch to normal mode on tab focus:
https://github.com/NeoVintageous/NeoVintageous/blob/master/res/doc/neovintageous.txt#L528
Adding this setting "vintageous_reset_mode_when_switching_tabs": false to my settings seems to work well. Maybe we should point to this in our release notes / README / documentation?

Ah okay, then the solution would be to just ... well
If you look here
https://github.com/divmain/GitSavvy/blob/770f91523655c19a0486555989790e1b398d6357/common/commands/view_manipulation.py#L60-L85
it just looks like we could do this as a one time side-effect:
if savvy_settings.get("vintageous_friendly", False) is True:
    self.view.settings().set("git_savvy.vintageous_friendly", True)
    if savvy_settings.get("vintageous_enter_insert_mode", False) is True:
        self.view.settings().set("vintageous_reset_mode_when_switching_tabs", False)  # <--
        self.view.run_command("_enter_insert_mode")

if savvy_settings.get("arrow_keys_navigation", False) is True:
    self.view.settings().set("git_savvy.arrow_keys_navigation", True)

Hm, from reading the code I don't think the inline diff view calls 'enter_insert_mode' on refresh/activate only after the first run. Can you check this? Does it switch into insert mode if you switch tabs?

You're right about the inline diff view, and your suggestion to use view.settings.set fixes it for this view as well. I'll this single-line commit to your PR if you don't object, because otherwise vintageous_enter_insert_mode setting would appear broken to users.

Ok, that was an easy fix.
Another bug: You can't toggle the help bc this state is set in the view settings (and then read like so self.view.settings().get("git_savvy.help_hidden")). Toggling code is:
https://github.com/divmain/GitSavvy/blob/50c68a323006ed00f76afda62c662913fc29e403/common/ui.py#L299-L312
You see that it requests a complete refresh. A typical solution here could be (in the toggle command just shown)
interface = get_interface(self.view.id())
if interface:
	interface.toggle_help()

We then define on the base class
def toggle_help(self):
	current_help = bool(self.view.settings().get("git_savvy.help_hidden"))
    self.view.settings().set("git_savvy.help_hidden", not current_help)
	self.render()

which we override for the status dashboard
def toggle_help(self):
	self.state.update({'show_help': not self.state['show_help']})
	self.just_render()

Since both bugs are due to @distinct_until_state_changed we could also just drop this as premature optimization. But this is also lame, a complete refresh bc we toggle the help text is a waste we now see this and can tackle it.

Shall we tackle "toggle help requires full refresh" in another ticket / PR? This one is already reviewed and as far as I'm concerned it's ready to be merged.

Look good tested it locally and I can feel is't snappier. I added a syntax test.

Added docstrings,
call_then_render was an ad-hoc method to make it work. Wrote it now using a update_state fn
Basically fix 'toggle help' without making the solution pointed out above. I mean: Just fix it.

Note:

self.state.update(data) this one line ... we probably need a lock here bc we call it from two threads.
Same:

        self.clear_regions()
        rendered = self._render_template()

in just_render. It would be better if _render_template(state) -> (content, regions). We should ensure that regions contains all possible keys (even empty ones) bc then we don't need to erase unused regions, we just draw them empty. (I would prefer to not use regions here at all, and just search for scopes in the actions. Less state to manage, we just draw the view, and extract information out of it using syntax selectors or scopes.)

LGTM

The lock and state related functionality looks legit; next step would be to extract these into a reusable Mixin and start converting more interface views! I'm gonna merge this into dev as I've been using this for a while without noticeable issues. Thanks again @kaste !
@randy3k @stoivo shall we ready the next release (last one was in August) ?

Hooray!
@asfaltboy a tip here: Do not build abstractions or mixins over one case. If you did something three or four times it's much easier to see how it all fits together. We only have three more dashboard views but on the other side we have other fancy views like graph, diff, commit_prepare for which we currently have a completely different abstraction, although there are also just views with state.  It's like in TDD, first make it work in as few, but sane steps as possible then (maybe) do the refactoring.


Brushes?

Hi,
In your test commands you had a reference to the --texture /nfs/151/gpu/raghav/data/shadegan/brushes_v2 but did not see those brushes_v2 in the downloaded data tarball (https://bvraghav.com/shad3s/data.tar.xz)

Thanks for informing... I will get this done...

Sorry for the delay in response... But I have updated the link to brushes on the README as well as project page.


[REQUEST Membership]: New membership for LindaYu

GitHub Username
LindaYu17
Organization you are requesting membership in
openyurtio
Sponsors
Intel
Requirements

[x] I have joined in the community Dingding and [WeChat]
[x] I often attend Openyurt Community Week
[x] I have reviewed the [community membership docs]
[x] I have spoken to my sponsors ahead of this application, and they have agreed to sponsor my application
[x] I have checked my affiliation in devstats (if it's not correct, please fix in cncf/gitdm)
[x] I am actively contributing to 1 or more OpenYurt subprojects

List of your contributions

PRs reviewed / authored:

Issues :

@LindaYu17 Welcome you to request OpenYurt community member.
and would you add some issues or reviews links in the List of your contributions?

https://github.com/openyurtio/openyurt/pull/389/

@LindaYu17 Welcome you to request OpenYurt community member.
and would you add some issues or reviews links in the List of your contributions?

https://github.com/openyurtio/openyurt/issues/400

agree +1

agree +1

@LindaYu17 Congratulations you to become a member of OpenYurt community. We have sent a github message to invite you as member of OpenYurt, please check the message. and after joining member of OpenYurt, you need to check two points in this issue #14

Congratulations!


Support for iOS?

Is there any hope of this app becoming available for iOS?
I've asked similar questions of the vscode team, and it sounds like the issue is getting Electron in general to work on iOS.
Recently a cloud-oriented service called coder.com came out, and they've got vscode running directly in the browser. I'm wondering if something similar could happen with ADS.

@winzig we don't have near-term plans to support running ADS in a web browser.  We may look at this at some point in the future.

Closing this out as "out of scope" for now.  Thanks for the suggestion!


Support for traffic shaping using the calico operator?

We are using EKS and Calico, installed using the operator v3.26.1
If I'm reading the documentation correctly...
The traffic shaping plugin should be enabled by default.  I verified that the bandwidth binary is present in /opt/cin/bin
I have tried to set a annotation for a pod, and tested it using the following annotations.  However, I used iperf to test, and, it does not limit the bandwidth as the annotation is supposed to do.
kubernetes.io/ingress-bandwidth: 1M
kubernetes.io/egress-bandwidth: 1M

Can someone help me understand how the operator sets up the config... are there extra steps required?

Are you using Calico as the CNI type or are you using the Amazon VPC CNI plugin?
If you look at the Installation resource (kubectl get installation default -o yaml), what is the value in the spec.cni.type field. If that field is not Calico then the the operator is not handling the CNI configuration.


Corrected CONTRIBUTING.md Spanish version

Standarised the whole text in the use of 2nd person singular (tú) for referring to the reader.
Fixed some discrepancies with capital letters. Usually in Spanish it's not so common to capitalise common nouns.
Changed a couple of sentences that didn't sound clear. I used the English version of the article to find the meaning and propose a change of words.

I honestly don't know how we should translate the word issues. I understand "problema" is definitely it, but in sentences it might not seem clear when it's about a doubt the user has, or when, something reported. I think the usage of the verb "reportar" might be key to clarify the meaning in sentences where both kinds of issues are mixed. (I apologise beforehand if this explanation seems a bit poor. I've been trying to find the right language forum for this kinds of issues ;) ).

[X] I have read freeCodeCamp's contribution guidelines.
[X] My pull request has a descriptive title (not a vague title like Update index.md)
[X] My pull request targets the master branch of freeCodeCamp.
[X] None of my changes are plagiarized from another source without proper attribution.
[X] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Reviewed and conflicts solved. Ready to merge @freeCodeCamp/translation-team

@tomaspozo I sent you a DM regarding this PR on Gitter.

Thank you for your contribution.
Happy coding!


#29925 Enable Auto-save editor on close by default

This setting should be enabled by default.
According to the old issues investigation, it was false since was created https://github.com/dbeaver/dbeaver/commit/c1f93e479b9c6fada82ca490eda9a6ca14472d46
I have not found any evidence of when this setting might have been set to true.

verified


ESP32-C3-MINI-AWS-ExpressLink-DevKIt does not connect AWS

Hi there,
I've got a ESP32-C3 AWS Devkit last week and, after upate its firmware revision (I received the unit with a old 0,x,x revision so I updated to Rev. c1.0.20.bin using OTW as described at point 9.2 of "Getting Started Guide for Espressif's AWS IoT ExpressLink Evaluation Kit"), I started to send AT commands to its UART port.
It worked properly setting SSID and Password of my WiFi network, I readout ThingName and its certificate, I created the object with that  name in IoT Core of my AWS account but, when I send AT+CONNECT command I get the "ERR14 4 UNABLE TO CONNECT Failed to securely authenticate with AWS" error message: I received this message after only 2 or 3 seconds after sending the AT+CONNECT command.
I also tried the "Start_Quick_Connect" software using the USB port of the DevKit but and I got an other error message: "Something went wrong while processing the request. Response: ["message":"Thing doesn't exist"}, Status code: 400.
I let you know that I have already set objects in AWS IoT Core, so I don't think that there is something wrong there.
However I followed the instructions at point 6.c of the previous  document.
Any ideas?
Thank you all.

Topic successfully closed in the topic #7 with he help of dhavalgujar


Incompatible with open-next@2

open-next@2 introduces ISR support adding some required environment variables. Explanation can be found here. Therefore, the latest version of open-next supported is 1.4 for now.

Documenting for "paper" trail:

FYI, created a draft PR that at least gets me past the 500 error. I pulled the queue handler and SQS queue creation from SST. I haven't tested it yet (am not really sure how to).
I have some questions in the draft PR if anybody feels like taking a look!


Fallback for not yml/json files?

Hey, thanks for the lib!
What do you think about providing a fallback in case file isn't a json or yml. Just returning raw file content as a string. Because I stumbled upon this:
> require('read-data').sync('./CHANGELOG.md')
TypeError: Cannot read property 'sync' of undefined

So what are your thoughts as a lib author? Does it fit into existing API and lib purpose?

I'd like to keep this focused on "data" types, so that an object is always returned. However, you found a bug IMO. I think we should throw an error if a "reader" doesn't exist for the given type.
although a while ago there was a pr to add more types, I might be open to that now.

so that an object is always returned

Makes sense for me. It answers my question.
I think this issue can be closed, and a new one opened about wrong error thrown :sweat_smile:


[DOC]Provide a sample request for for adding Subject Claim URI using admin services

Provide a sample request for for adding Subject Claim URI using admin services
https://docs.wso2.com/display/IS540/Using+the+Service+Provider+API

Thank you for your contribution!
We are closing this issue since it has not been prioritized for a long time. Chances are that it has already been solved in more recent versions. If not, we will be re-evaluating this when it becomes a priority.


skeleton esnext fails to run in electron context

The code used to reproduce this problem is the unmodified skeleton-esnext taken from most current release (not from the master branch).
The error below was encountered running the following commands:
npm install
jspm install
gulp build
electron index.js

I am using electron v1.2.5 - the current version

I'm going to close this. We have the jquery fix going out in the latest skeleton in a minute.


#2303: 3-point-colour scheme for gradient colors

As a user, I want to define three points for the gradient color scheme, so that I can narrow the color gradient into the range of the most interesting compounds (e.g. from 0 to 1 and from 1 to 100).

This issue has been mirrored in Jira: https://reddata.atlassian.net/browse/GROK-14593

This issue has been mirrored in Jira: https://reddata.atlassian.net/browse/GROK-16137


New Project Set List

Hi,
Most of the code is just a copy of Project Management, the main difference is that Set List will not auto-load all the songs.
I also copy code from Region Playlist to flag the "current song" playing and "next" song to play.
Code worked fine on Windows and OSX.
From whatsnew.txt
Project Set List:
+Project Set List will let users play multiple Reaper Projects in sequence.
+Shortcuts

[A] Add new song.
[D] Delete selected song(s) from the set list.
[N] Load next song in the set list.
[P] Move song(s) up in the set list.
[M] Move song(s) down in the set list.
[C] Clear set list.
[L] Load set list.
[S] Save set list.
[O] Auto load next song in the set list.
[Y] If "Auto load" was enabled, "Y" will auto play the next song.
[Enter] Load song. If song is playing and "Auto Load" is enabled, hitting [Enter] will flag the song as the next song to play.
Mouse Drag - Move song(s) in the list.
Windows user will be able to insert multiple songs from the open file dialog. OSX users will only be able to add one song at a time.
[Shift+Up / Dn] - Select multiple songs.

Thanks,
Ruben

Hello! Is there anyway someone could send me this as a script?

Hi,
What would be the process I need to follow to get this change reviewed?
Thank you,
Ruben


Implement delete-subst command

Implement the delete-subst command which accepts substitution name as input and delete the substitution definition from Kptfile and remove all it's references from resource configs.

https://github.com/kubernetes-sigs/kustomize/pull/2855


No LogOut method on Reddit?

Id like to sign out of my Reddit instance. Is this possible?

I was using the old version.


Trouble displaying Results from dynamic source

Hello,
First off, really great website and documentation. Keep up the good work!
I'm trying to get some location results from a webservice, and while I get data back, I can't seem to get it to show up. I just get the Empty Template.
Here's my TypeAhead:
$(document).ready(function () {
        $.typeahead({
            input: ".js-typeahead",
            minLength: 1,
            order: "asc",
            dynamic: true,
            delay: 500,
            display: "PlaceId",
            emptyTemplate: "no result for {{query}}",
            template: function (query, item) {
                return '{{PlaceId}} - {{PlaceName}'
            },
            source: {

                    // Ajax Request
                    ajax: function (query) {
                        return {
                            type: "POST",
                            url: "/Home/LocationJson",
                            path: "data",
                            data: {
                                q: "{{query}}"
                            },
                            callback: {
                                done: function (data) {
                                    console.log(data);
                                    return data;
                                }
                            }
                        }
                    }

            },
            callback: {
                onInit: function (node) {
                    console.log('Typeahead Initiated on ' + node.selector);
                }
            },
            debug: true
        });
    });

Here's a screenshot of the XHR and the object returned.
http://screencast.com/t/fL7LDk7c
I've made a number of adjustments to the data being returned trying to get rid of the debug errors, and was able to get rid of a couple of them. But it still isn't returning data, so I'm not sure what's going on there.
Here's the HTML on the page:
<form>

                <input class="js-typeahead"
                       name="q"
                       type="search"
                       autocomplete="off">

                <button type="submit">

                </button>

</form>

Thanks for taking a look - I appreciate it!

Hey, perhaps you have created the ticket under the wrong project ;) np

is your data already filtered by your API?

in that case, you might want to specify maxItem: 0 to display all your results
also, use the option filter: false on your source group to ignore Typeahead filtering (since you already filtered in BE

What does it print in your console.log(data) of the callback.done function?

Oh, shoot. You're absolutely right that this is the wrong support forum. I had been browsing the correct forum for a while - I wonder how I ended up here. Sorry!
I'll try out your thoughts on #1, as the data is filtered already when it comes to me.
As for #2, I've attached a screenshot for you.

Thanks for taking the time!

Yea I can see "gran" does not match PlaceId from your data[0] item so filter:false would probably resolve your issue. Anything suspicious inside the Typeahead debug messages?

I don't know about you, but I often fix computer issues for friends or family where they have some crazy problem, I show up to look at it, and it magically fixes itself. They're left rambling on about how they tried all those things and it really wasn't working before I got there.
Seems this must happen to you, too. I have a feeling I did fix it when I was working through the debug messages, but it wanted to pretend it was still broken. Posting this message and getting your reply back appears to have fixed it, as I haven't changed anything from where it last was and now it works fine.
Sorry to bother you! Thanks for fixing it by taking a look :)

haha for some reason this always happens...


fix: undefined earn balances when no ETH/FOX LP balance

Description

Notice

[ ] Have you followed the guidelines in our Contributing guide?
[ ] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[ ] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

closes #
Risk

Testing

Engineering

Operations

Screenshots (if applicable)

Current dependencies on/for this PR:

develop

PR #3816   👈

This comment was auto-generated by Graphite.


Templatizer: Variables in the parent scope are not passed during initialization

When the templatized template is not the templatizer client, variables in the parent scope are not passed during initialization.
Originally filed as: https://github.com/PolymerElements/iron-list/issues/107
Root caused to https://github.com/Polymer/polymer/blob/master/src/lib/template/templatizer.html#L385-L389; parent props need to be pulled from the

PR: https://github.com/Polymer/polymer/pull/2508


Data loss scenarios with opening project with atom in empty state

Prerequisites

[x] Put an X between the brackets on this line if you have done all of the following:

[x] Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
[x] Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
[x] Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
[x] Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom

There's a lot of issues filed for this already :) this is a issue to consolidate the root issues.

[x] Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages

Description
This is to capture a few data loss scenarios with opening your project.
There are 3 bugs that we can see so far that will cause data loss
Opening a Empty Document and try to Open the folder from context menu.
Repro:

Open Atom, go to settings, check Open Empty Editor On Start and uncheck Restore Previous Windows on Start
Open a folder, add a few untitled documents or make changes to file and don't save anything.
Close Atom
Open Atom, you should get a blank editor
Go to context menu and click Open (or cmd+o on mac) and open the folder from step 2.

Expected: Restores Session
Actual: Unsaved session is lost.
Opening a Empty Document and trying to Add a Project Folder from context menu
Repro:

Open Atom, go to settings, check Open Empty Editor On Start and uncheck Restore Previous Windows on Start
Open a folder, add a few untitled documents or make changes to file and don't save anything.
Close Atom
Open Atom, you should get a blank editor
Go to context menu and click Add a Project Folder... (or cmd+shift+o on mac) and open the folder from step 2.

Expected: Since there isn't any folder added yet, Atom should restore the session of that folder.
Actual: Unsaved session is lost.
Open atom . when there is a empty atom editor open.
Repro:

Open Atom, go to settings, check Open Empty Editor On Start and uncheck Restore Previous Windows on Start
Open a folder, add a few untitled documents or make changes to file and don't save anything.

Expected: Restores Session
Actual: Unsaved session is lost. If no atom instance is running this works.
Reproduces how often: [What percentage of the time does it reproduce?] 100% of the time.
Versions
Atom 1.14.3
Additional Information
This is causing a lot of various reports, but I think this is the underlying cause for most of them.
/cc @lee-dohm @iolsen @ben3eee

Related issues so far:
https://github.com/atom/atom/issues/13861
https://github.com/atom/atom/issues/11293
https://github.com/atom/atom/issues/10044

Does checking the Restore Previous Windows on Start option mean that no state should ever be restored, or that you should be able to recover project state by explicitly opening the previous project you had open?

I believe the setting only affects restoring state when launching Atom without any arguments.


Context access might be invalid warning shows for push, not for pull_request event

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

With this workflow '...'
Do this '...'
See error

Expected behavior
Context access might be invalid shows up for all kind of events where the context might be missing.
Screenshots

Extension Version
v0.26.3

Apparently, you access the head_commit property without specifying an event type (github.event.head_commit.message), even though the structure of the payload should be correct according to the docs.
Also, technically the Context access might be invalid warning should always be displayed when accessing any event-specific context, since you have no guarantee of which event type triggered the workflow UNLESS the workflow specifies a single trigger, in which case that event type context would be guaranteed to be valid.

Apparently, you access the head_commit property without specifying an event type (github.event.head_commit.messag), even though the structure of the payload should be correct according to the docs.
Also, technically the Context access might be invalid warning should always be displayed when accessing any event-specific context, since you have no guarantee of which event type triggered the workflow UNLESS the workflow specifies a single trigger, in which case that event type context would be guaranteed to be valid.

Context validation is provided by https://github.com/actions/languageservices, so this seems again an issue in that repo.


Need way to explicitly exclude routes / DTOs from schema

Some API calls exist that should not be publically documented.
Need way to explicitly exclude these from any metadata generated, eg:
[Service(Undocumented=true)] or [Param(Undocumented=true)]


cargo-c: 0.8.0 -> 0.8.1

Motivation for this change
Things done

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

[x] NixOS
[ ] 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 nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 123371 at b4ad7b67 run on x86_64-linux 1

104 packages marked as broken and skipped:

agdaPackages.iowa-stdlib
aqemu
autotrace
bareos
bonfire
cassandra_2_1
cassandra_2_2
gimpPlugins.exposureBlend
gimpPlugins.texturize
glimpsePlugins.exposureBlend
...

8482 packages skipped due to time constraints:

DisnixWebService
EBTKS
R
abcl
abiword
adapta-gtk-theme
adoptopenjdk-icedtea-web
aerc
afew
agda (agdaPackages.agda)
...

1 package built successfully:

cargo-c

1 suggestion:

warning: maintainers-missing
Package does not have a maintainer. Consider adding yourself?
Near pkgs/development/tools/rust/cargo-c/default.nix:48:5:
   |
48 |     maintainers = with maintainers; [ ];
   |     ^


Drop unused dependency on cache location

While reading through some packagemanager code, I noticed we were no longer using the cache directory while building up the package-graph, so I pulled it out of the function signature and unwound some dependencies from there.

I'm fairly certain this is an artifact from an older implementation of lockfile parsing for yarn

I'm fairly certain this is an artifact from an older implementation of lockfile parsing for yarn

You're right, in the older implementation of the yarn lockfile parsing we cached an intermediate representation


StaticContentService Not Working with Java Modules

Environment Details

Helidon Version: 4.0.5
Helidon SE
JDK version: openjdk version "21.0.2" 2024-01-16 LTS
OS: Fedora 37
Docker version (if applicable): NA

Problem Description
Generated starter project with static content and Java modules returns 404 NOT FOUND for when requesting the static content. If I remove the module-info.java, making the application non-explcitly modular, Helidon finds the static content and returns it.
The following code was generated from the Helidon starter. The onlyh thin different is I removed the "/" redirect to "/ui" to see if that made any difference (it didn't):
  static void routing(HttpRouting.Builder routing) {
        routing
               .register("/greet", new GreetService())
               .get("/simple-greet", (req, res) -> res.send("Hello World!"))

                .register("/ui", StaticContentService.builder("WEB")
                        .welcomeFileName("index.html")
                        .build())
                .register("/api", new FileService());
    }

This problem happens consistently with module-info.java. With no module-info.java, index.html is returned consistently.
Does StaticContentService need to be updated to find files differently than the classpath and file system when modules are used?
Steps to reproduce

Generate a starter project with static content (the file upload example)
Start the application.
Navigate to the root or /ui URL.
Receive 404.

Add this to your module-info:
opens WEB;

This is a bug in the archetype, the module-info generated should be functional.

Also this info "should" be also in documentation. When you use "jpms" StaticContent" not all paths are available like in classic classpath


Missing Reference: Microsoft.Bot.Builder.AI.Luis

When creating the BotServices class, the LuisApplication and LuisRecognizer classes do not resolve because the article omits to tell the reader to add a Nuget reference to Microsoft.Bot.Builder.AI.Luis. The following using statements also need to be added:
using Microsoft.Bot.Builder.AI.Luis;
using Microsoft.Bot.Configuration;

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

ID: 73b78c1c-bd0f-caec-32ad-47e6dfcc5b34
Version Independent ID: 00957482-fbae-de4e-6c9c-49dae66c74af
Content: Add natural language understanding to your bot - Bot Service
Content Source: articles/v4sdk/bot-builder-howto-v4-luis.md
Service: bot-service
Product: bot-framework
GitHub Login: @ivorb
Microsoft Alias: v-ivorb

Hi Nick,
Thank you for your feedback! The changes you requested will appear live the next time this article is published.

Update ready


Delete of streams by selecting all gives error

And another one

open a pipeline, go to data browser, select all the data, press delete


Improved Docs

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind user-interface

/kind content

/kind translation

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area blog

/area documentation

/area videos

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

Thanks for your pull request. Before we can look at it, you'll need to add a 'DCO signoff' to your commits.
:memo: Please follow instructions in the contributing guide to update your commits with the DCO
Full details of the Developer Certificate of Origin can be found at developercertificate.org.
The list of commits missing DCO signoff:

b86f7dd Update README.md

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign lucperkins
You can assign the PR to them by writing /assign @lucperkins in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Welcome @harsh2699! It looks like this is your first PR to falcosecurity/falco-website 🎉

We believe that this being opened by a bot and we are closing this PR.
We had many interactions on this repository coming from bots and we limited the interactions to existing contributors until this is solved (starting with one day)
Read more at: lists.cncf.io/g/cncf-falco-dev/message/164
/close


Add docs about handling unknown fields in schema

https://webargs.readthedocs.io/en/latest/advanced.html

Not relevant to starlette-web itself.


Uplift ttlib matmul to support sharding

TODOs:

[x] Add separate path for sharded tensors for tt:tt_metal::matmul. If both are interleaved, we use old matmul. Otherwise, we figure out matmul program configs and directly call operations::primary::matmul.
[x] Same for bmm
[ ] Test/sweep

Future TODOs:

[ ] Deprecate tt:tt_metal::matmul op and have it directly call operations::primary::matmul for interleaved tensors. Most of the behaviour should be captured by MatmulDefaultProgramConfig. Basically, our matmul code should look like this throughout our whole stack:

[ ] How does auto format work with sharded tensors?

@TT-BrianLiu was there any remaining work on your end for this effort?

I think we can close. Right now, we are focusing on improving sharding for primary matmuls. Let's review after Javelin.


Include Threatstream indicator field

Currently it is difficult to determine what specific indicator caused the Threatstream module to appear for an event. Including the indicator field from the Threatstream platform would provide the additional context needed to tie the event back to a malicious IOC.

The actual value would be useful to see in the UI.

This should be fixable with 5.0 custom-fields-remap, i need to provide an example


[False positive] web.archive.org

https://github.com/davidonzo/Threat-Intel/blob/82ff2b29fc2951324b0623d6b6689402bb1bed51/lists/latestdomains.txt#L88
https://github.com/davidonzo/Threat-Intel/blob/82ff2b29fc2951324b0623d6b6689402bb1bed51/lists/latestdomains.piHole.txt#L88
Belongs to the Internet Archive, one of the good guys. :)

+1, just ran into this and came to make this issue.


feat: When 1 + a ≤ (1 - b) * (1 + c)

In analysis, we often manipulate quantities near 1 as if they were additive in their difference to 1. This PR adds lemmas supporting that kind of reasoning.
From LeanAPAP

bors merge


/r6stats - Doesnt work on deployed docker

Ref: https://github.com/hmes98318/r6s-stats-api/issues/1#issuecomment-1234520102
R6 stats api doesnt work within deployed docker
More research needs to be carried out for this

It works for this input waifu_-. pc and null for type

I think it's more like the user has to be registered here: https://r6.tracker.network/

Doing the inputs above I get

It works in my local development of nodejs, it may work for yours due to the dev.docker but im not sure why it doesnt work for the deployed docker

No worries, fix on the way 😬

Still getting undefined

Huh... how did you test it?

I ran the docker command seen in the README pulling the latest image. Ill try setting it up using the docker compose and giving it ago

Weird... I just tried the one in README it still worked I guess we need some third person to verify.

@CrimsonTome, we request your assistance 😆

Weird... I just tried the one in README it still worked I guess we need some third person to verify.

What inputs did you try. ill try the same ones

Similar to the one in the docs waifu_-., you can try the bot here: https://discord.gg/BfSVskDN

@CrimsonTome, we request your assistance 😆

If you don't mind waiting til this evening/tomorrow as I'm out most of today

It's looking like it doesn't want to work when being ran in Docker in a VM

correction: doesnt like being ran in a VM at all, node or docker
os: Ubuntu 22.04

try to install curl in the docker image may can get some help
https://github.com/hmes98318/r6s-stats-api/issues/1#issuecomment-1280021572

Mhm... this might be actually it, because curl doesn't exist on my WSL2 Ubuntu 20.04...
I can't remember if dockerfile can have 2 images i.e. two FROM, but the second option is to have a multi-stage dockerfile.

https://www.howtogeek.com/devops/what-are-multi-stage-docker-builds/#:~:text=Multi-stage Docker builds let you write Dockerfiles with,that image by adding commands to your Dockerfile.

Apparently theres multistage

gg, I'll try to do it soon_ish_.

Mhm... this might be actually it, because curl doesn't exist on my WSL2 Ubuntu 20.04...
I can't remember if dockerfile can have 2 images i.e. two FROM, but the second option is to have a multi-stage dockerfile.
edit, forgot to link

Add RUN apt-get update -y && apt-get install --no-install-recommends -y curl to your Dockerfile

Mhm... this might be actually it, because curl doesn't exist on my WSL2 Ubuntu 20.04...
I can't remember if dockerfile can have 2 images i.e. two FROM, but the second option is to have a multi-stage dockerfile.
edit, forgot to link

Add RUN apt-get update -y && apt-get install --no-install-recommends -y curl to your Dockerfile

This did not fix it

This did not fix it

Where is not solved?
I did not understand. 😕

Doing the inputs above I get

It outputs the above and in console, nothing appears when doing console.log(profile)

It outputs the above and in console, nothing appears when doing console.log(profile)

umm...
i use this Dockerfile building image is available.
FROM node:16.17.1

WORKDIR /usr/clarence/

COPY --chown=node:node . .

RUN npm --verbose install

RUN apt-get update -y && apt-get install --no-install-recommends -y curl

CMD ["node", "src/index.js"]

this is not a docker issue, this is most likely an issue with it being ran in a VM

Hmm... 👀
Just use Axios instead of exec in r6stats... this solves basically everything 😬

Could anyone try r6stats now after this.


The mod breaks when recreating the lobby

The mod works fine until you go back to main menu and create the lobby again. You can no longer turn the camera around to see the front side of your character.

Got the repro down. I am a little swamped with projects at the moment, so I can't make any promises to when I'll be able to get around to this. Thank you for reporting! I'll look into this as soon as I am able.

Thank you so much!


Unable to load targets in CLion 2022.3

Description of the issue. Please be specific.
Unable to load any target correctly.
Upon opening a synced target, I'm met with "This file does not belong to any project target; code insight features might not work properly", with a number of issues in C/C++ code resolution, highlighting, and others. All works fine when compiling the project.
What's the simplest set of steps to reproduce this issue? Please provide an example project, if possible.

Install fresh CLion, version 2022.3
Install Bazel plugin from Plugins menu
Open fresh project- I used the example repo as a sanity check.
Sync
Load any file- in the example I listed, it was hello-world.cc

It seems the master branch does not support 2022.3 yet, or I would try that as well.
Version information
CLion: 2022.3
Platform: Linux 6.0.0-5-amd64
Bazel plugin: 2<IP_ADDRESS>.1-api-version-223
Bazel: 5.3.2

Hi @sgowroji I've encountered the same problem on two different projects on two separate installs of CLion. Here's an example even after a successful sync:

I don't get any error log during sync (be it incremental or non-incremental):

Here are the CLion logs after that sync:
https://gist.github.com/kaliaumem/5152d953edd349d850f750c8876728d5#file-bazel-clion-logs

Apologies- somehow this didn't show up in my email. @kaliaumem is showing the same error I'm having, if you need me to check anything else, I'll watch this more carefully.

Seeing this as well on the latest clion release. Had to revert so that the warning wouldn't show up.


Filter responses from Response.all_4xx and Response.all_5xx lists

Sometimes you want to ensure that your client can handle all kinds of 4xx or 5xx responses, but you will handle some of these responses in a special way.
For example, suppose you are requesting an external service for a user by email. You want to return a specific message when the user is not found (when the server replies 404) but for any other 4xx status code, you just want return a default error message. This filter will help to test such cases:
  test_with_server "return {:error, :user_not_found} when the external service replies 404" do
    route("/users", Response.not_found)
    assert {:error, :not_found} ==<EMAIL_ADDRESS>  end

  test_with_server "return {:error, :invalid_response} when the external service replies any other 4xx" do
    responses = Response.all_4xx(except: [404])

    route("/users", responses)
    for _ <- responses do
      assert {:error, :invalid_response} ==<EMAIL_ADDRESS>    end
  end

I'll try to work on this issue.

#45 closes this issue.


Error @ Read Secrets step

Hey @freddydk ,
Has something change recently. I'm getting the following error message in our pipelines today
Unexpected error when running action. Error Message: Cannot bind argument to parameter 'gitHubSecrets' because it is an empty string., StackTrace: at <ScriptBlock>, D:\a\_temp\25fd1a97-8bc5-4767-96f3-0a569867b550.ps1: line 4 <- at <ScriptBlock>, <No file>: line 1

If I try to update AlGoSystemFiles, i get the same error message

I think there was an error during the latest deployment - will get this fixed asap.

Could you email me the full log of your run, thanks?

Found out what it was - should work again now

Please re-run and let me know, thanks

It's working now. Thank you @freddydk

It looks like another bug in the same area.

@DerekHotguns if you run Update AL-Go System files and retry, this should be hotfixed

@freddydk Thank you.
Update fixes this issue. And it's generated next one. I'm not sure which environment effect this one:

Manually and by VS Code I could install the extension, but GitHub action generate error which pointed BC default object.
App registration account has broadly rights to BC.

Answer to my question: my fault. App registration didn't contain D365 AUTOMATION permission set. Hotfix works.


Security: Review our escaping of HTML

I guess it is fine if hljs already escapes dangerous characters in the source.

We currently do > < &... it looks like we should maybe add a few?
&   ------->   &
<   ------->   <
>   ------->   >
"   ------->   "
'   ------->   '
/   ------->   /

Should that cover it? I'm not sure (off the top of my head) how the quotes or / could break out on their own though without the tag characters...  I think the quotes are more about raw insertion anywhere (like in the middle of an HTML attribute) as shown here:
https://webmasters.stackexchange.com/questions/12335/should-i-escape-the-apostrophe-character-with-its-html-entity-39
That's not what we do... although now I'm wondering if there is a potential attack vector with a evilly coded grammar via className. Although grammars already run any JS they want freely though, so some sort of attack via className would be the HARD way to do it.
Originally posted by @yyyc514 in https://github.com/highlightjs/highlight.js/issues/2537#issuecomment-626416365

The one place we mess with HTML attributes (merging embedded code) we always use " and we then also escape "... but I'm wondering if we should perhaps extend the regular utils#escapeHTML to escape all of this - just to be on the side of caution?
@allejo @egor-rogov

For HTML strings, based on this, I think just escaping those 5 chars should be enough to prevent interpretation as non-string by the browser.

Yeah I thought / was getting a little silly.  Ampersand seems so easy to do (and well known) but what type of attack is centered around ampersand? Do you know?
If I escaped everything but & what would the risk be?

Ah, another string escaping issue since you can use & to add an escaped quote instead of a literal quote:
https://erlend.oftedal.no/blog/static-124.html

This would break 124 tests... and while I can find time to go thru and fix them... I'm becoming less enthusiastic about this if it's not a real issue.

I want to say our current escaping is good enough since I think that's the only places where untrusted user input could be used to escape HTML tags that highlight.js is creating. Imagine a blog, a blog user's code block content should be escaped fully and be safe to render on the page. Blog users, however, shouldn't have access to run arbitrary JS nor include custom grammars. Like you said, grammars can run any arbitrary JS so site hosts should only use trusted grammars.
In my opinion, could this still be exploited? I mean, sure; quotes should be escaped too according to "best practices." But I wouldn't consider this a security issue unless it affected the actual code that the parser was highlighting.

Blog users, however, shouldn't have access to run arbitrary JS nor include custom grammars.

Well pretty sure they could do that from the browser console - if someone is just using the simple global hljs object... I mean it is all client-side after all.

Imagine a blog, a blog user's code block content should be escaped fully and be safe to render on the page.

Are you talking about highlightBlock here exclusively?  Remember there is the browser side usage and also the server-side usage, where you're passing raw content.
I wonder now if innerHTML escapes quotes and such things in the middle of content as they are retrieved?

Interesting single and double quotes go into encoded then code out text... while & survives the round trip.  Interesting (Safari).

I want to say our current escaping is good enough since I think that's the only places where untrusted user input could be used to escape HTML tags that highlight.js is creating.

I think it's ok too, but security is often about layers. :-)  I just realized I can probably just have the test suite write out all new files for those 126 cases... so it's not actually any manual work that would need to be done.

I just realized I can probably just have the test suite write out all new files for those 126 cases... so it's not actually any manual work that would need to be done.

Are the tests breaking because now quotes are being escaped whereas before they weren't?

Remember there is the browser side usage and also the server-side usage, where you're passing raw content.

I forgot about server-side usage. I was assuming something else was magically taking care of the sanitization before giving it to highlight.js on the browser to highlight.
If we're in charge of escaping/sanitizing raw user input, then I'd retract my statement and say we probably should update to escape quotes.

Are the tests breaking because now quotes are being escaped whereas before they weren't?

Yeah, I added escaping quotes and everything breaks in the markup tests since we are comparing the literal expected output vs input.

If we're in charge of escaping/sanitizing raw user input, then I'd retract my statement and say we probably should update to escape quotes.

Evidentially in the browser we are also since escaped quotes don't survive the HTML -> innerHTML -> variable transition anyways... at least in Safari.