Clone in word embedding

Thank you for your repo. I have a question about clone before word embedding. Here is code in AttModel.py
for i in range(seq.size(1)):
    if self.training and i >= 1 and self.ss_prob > 0.0: # otherwiste no need to sample
        sample_prob = fc_feats.new(batch_size*seq_per_img).uniform_(0, 1)
        sample_mask = sample_prob < self.ss_prob
        if sample_mask.sum() == 0:
            it = seq[:, i].clone()
        else:
            sample_ind = sample_mask.nonzero().view(-1)
            it = seq[:, i].data.clone()
            prob_prev = torch.exp(outputs[:, i-1].detach()) # fetch prev distribution: shape Nx(M+1)
            it.index_copy_(0, sample_ind, torch.multinomial(prob_prev, 1).view(-1).index_select(0, sample_ind))

I have read document and learn that tensor.clone() returns a copy of original tensor and gradient of cloning tensor will be add to original tensor.
Since seq is ground truth caption, its require_grad property is False. So
1.why we need to clone seq[:, i] when sample_mask.sum()==0? Is it to avoid changing it unintendedly later?
2.What's the difference between .clone() and .data.clone() in schedule sampling?

I use clone because it's the safest choice. Same with data.clone


Gh-2850: Fix failsafe plugin skipping some ITs

Related Issue

Resolve #2850

Codecov Report

:exclamation: No coverage uploaded for pull request base (v2-alpha@803a374). Click here to learn what that means.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             v2-alpha    #2851   +/-   ##
===========================================
  Coverage            ?   65.33%
  Complexity          ?     2197
===========================================
  Files               ?      551
  Lines               ?    17463
  Branches            ?     2114
===========================================
  Hits                ?    11410
  Misses              ?     5082
  Partials            ?      971

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

This will pass once #2852 has been merged in. That PR fixes the underlying problem with JUnit annotations for the test which is failing.


[mesheryctl] Remove args flag in subcommands

See mesheryctl Command Tracker for current status of commands.
Current Behavior

mesheryctl has three subcommands that would benefit from removing the args flags to not require the user to provide a flag.
This makes the user experience a little bit jarring because when you go to navigate to certain subcommand, you expect the help menu to show up. On some of the subcommand, it didn't make sense to have args because there's already a help menu in place with other subcommands for that one.
Here is before with the list of subcommands that I found that I don't think needs the args flag set to require the user to provide a flag.
./mesheryctl system context
Error: please specify a flag or subcommand. Use 'mesheryctl system context --help' to display user guide.

See https://docs.meshery.io/reference/mesheryctl/system/context for usage details

./mesheryctl system channel
Error: please specify a flag or subcommand. Use 'mesheryctl system channel --help' to display user guide.

See https://docs.meshery.io/reference/mesheryctl/system/channel for usage details

./mesheryctl system token
Error: please specify a flag or subcommand. Use 'mesheryctl system token --help' to display user guide.

See https://docs.meshery.io/reference/mesheryctl/system/token for usage details

Desired Behavior

Remove the check if the input was not a flag, to instead show the help menu.
./mesheryctl system context
Configure and switch between different named Meshery server and component versions and deployments.

Usage:
  mesheryctl system context [command] [flags]
  mesheryctl system context [command]

Examples:

// Base command
mesheryctl system context

Available Commands:
  create      Create a new context (a named Meshery deployment)
  delete      delete context
  list        list contexts
  switch      switch context
  view        view current context

Flags:
  -c, --context string   (optional) temporarily change the current context.
  -h, --help             help for context

Global Flags:
      --config string   path to config file (default "/home/nebula-aac/.meshery/config.yaml")
  -v, --verbose         verbose output
  -y, --yes             (optional) assume yes for user interactive prompts.

Use "mesheryctl system context [command] --help" for more information about a command.

Implementation

This is already done in the PR: https://github.com/meshery/meshery/pull/8374
Acceptance Tests

Mockups

Contributor Resources

⌨ mesheryctl Contributing Guide
Beginner's guide to contributing to Meshery and mesheryctl
mesheryctl Command Tracker
Meshery CLI Commands and Documentation
🙋🏾🙋🏼 Questions: Layer5 Discussion Forum and Layer5 Community Slack

If this issue is persisting, I would like to contribute to it

This is already done, just waiting for PR to be reviewed and approved to be merged in. Thanks for checking @EraKin575

completed


Unable to sync when incoming and current changes add the same file

Across vscode.dev and github.dev, create the same file e.g. foo.md in a repo with conflicting changes
Commit in vscode.dev
Sync from github.dev and accept syncing with potential conflicts. What should happen is that RemoteHub presents this as an Added By Both conflict in the SCM view
🐛 unable to sync

This is because when performing the three way merge as part of the sync process, we attempt a workspace.fs.readFile on the provider URI representing the base change, but at that point the file doesn't exist, so the readFile call throws FileNotFoundError and the entire merge/sync is aborted

Note, this will not repro if using RemoteHub stable, because https://github.com/microsoft/vscode-remote-repositories-github/issues/126 obscures this bug by not flagging that two files have potential conflicts. You will need to use RemoteHub pre-release e.g. v0.25.2022021509 which contains the fix for #126 but not the fix for this issue.

I expected the hover of this decoration to provide action(s) I can take. Instead, I have to notice this in the status bar.


Take the variable that gets the window scope in the browser

I have a variable in the browser, the variable name is "a", how do I get it in puppeteer

@LLLLLamHo
'use strict';

const puppeteer = require('puppeteer');

(async function main() {
  try {
    const browser = await puppeteer.launch();
    const page = await browser.newPage();

    console.log(await page.evaluate(() => a));

    await browser.close();
  } catch (err) {
    console.error(err);
  }
})();

@vsemozhetbyt
wow~ thanks!!!

This can't work
`const puppeteer = require('puppeteer');
var a = 3 ;
(async function main() {
try {
const browser = await puppeteer.launch( { args: [ '--no-sandbox' ] });
const page = await browser.newPage();
console.log(await page.evaluate(() => a));

await browser.close();

} catch (err) {
console.error(err);
}
})();`
Error:
Error: Evaluation failed: ReferenceError: a is not defined

@hailite You have a different case: how to use a variable from Node.js (puppeteer) context in a browser context. You can transfer it via second page.evaluate() parameter:
console.log(await page.evaluate(aFromNode => aFromNode, a));

@vsemozhetbyt im trying the sample above to access the 'dataLayer'  window object - I understand that I need to wait for the GTM scripts to be attached here. But Im still getting undefined, any idea why/how this could happen?
 const dataLayer = await page.evaluate('dataLayer');
    if (!dataLayer) {
        throw new Error('no datalayer found');
    }

@undrafted If dataLayer is a complex unserializable object, it can be transferred as undefined:

If the function passed to the page.evaluate returns a non-Serializable value, then page.evaluate resolves to undefined.

You can check if dataLayer is available by something like this:
 const dataLayer = await page.evaluate('typeof dataLayer');

thanks @vsemozhetbyt , would there be another way to get these complex objects from the window in puppeteer? - although the object could get pretty complex fast and could result to errors on serialization like JSON.stringify(datalayer) -> TypeError: Converting circular structure to JSON

@undrafted Well, it seems you have two options: either extract all needed serializable data from dataLayer in the browser context and transfer this data to the puppeteer context, or get the JSHandle of this object and manipulate it via this handle's API.

thanks for these ideas @vsemozhetbyt 👍


Jupyter kernel running within WSL2 keeps restarting after a certain point while running RAG.index()

Hi.
I'm running the 01-basic-indexing example on a Windows 11 machine with 16gb RAM, RTX 3060 12gb (faiss-gpu enabled) under WSL2.
The 02-basic-training example runs well but indexing example stops abruptly and keeps restarting my Jupyter kernel after the following output from RAG.index():

The issue:

NOTE: I'm trying to index 10k wikipedia articles, but this same notebook runs and retrieves perfectly on Google Colab GPU when I ran with just 3 wikipedia docs to index. Even with 3 documents, i received the same error on my local machine.
Although I am trying to index Bengali (bn) documents, I can confirm from Colab that non-english language isn't the issue.
Any help will be appreciated and thanks for working on the project!

Sorry, forgot to add the log output when kernel restarts.
WARNING clustering 3638 points to 512 centroids: please provide at least 19968 training points Faiss assertion 'err == CUBLAS_STATUS_SUCCESS' failed in void faiss::gpu::runMatrixMult(faiss::gpu::Tensor<float, 2, true>&, bool, faiss::gpu::Tensor<T, 2, true>&, bool, faiss::gpu::Tensor<IndexType, 2, true>&, bool, float, float, cublasHandle_t, cudaStream_t) [with AT = float; BT = float; cublasHandle_t = cublasContext*; cudaStream_t = CUstream_st*] at /project/faiss/faiss/gpu/utils/MatrixMult-inl.cuh:265; details: cublas failed (13): (512, 128) x (512, 128)' = (512, 512) gemm params m 512 n 512 k 128 trA T trB N lda 128 ldb 128 ldc 512

This is a very, very unintuitive Faiss error. The issue here is most likely that you have CUDA 12 bindings installed, but faiss-gpu 1.7.2 is expecting CUDA 11. I'm working on trying to fix this, but it's not made easy by recent versions of faiss being too big for PyPi, meaning new driver supports never get released there :/

@bclavie  I managed to fix the faiss CUBLAS error by referring to this comment:
https://github.com/facebookresearch/faiss/issues/1405#issuecomment-1866475393
Then I faced an os.error saying CUDA_HOME was not set, which was simply solved by adding the line !export CUDA_HOME=$CONDA_PREFIX to my notebook.
Now, I'm facing another issue that seems to be almost the same as what is mentioned here.
So I'll close this thread. Thanks.

@bclavie  I managed to fix the faiss CUBLAS error by referring to this comment:
https://github.com/facebookresearch/faiss/issues/1405#issuecomment-1866475393
Then I faced an os.error saying CUDA_HOME was not set, which was simply solved by adding the line !export CUDA_HOME=$CONDA_PREFIX to my notebook.
Now, I'm facing another issue that seems to be almost the same as what is mentioned here.
So I'll close this thread. Thanks.


updated rows display error

Description
I have a table test_updated_rows
CREATE TABLE `test_updated_rows` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `value` int unsigned NOT NULL,
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

Data rows

When I execute the following SQL in DBeaver, the result is as follows
INSERT INTO
    test_updated_rows
    (id, value)
VALUES
    (1, 1)
ON DUPLICATE KEY UPDATE
    value = 1;

When I execute the same SQL in the MySQL CLI, the result is as follows

I think this is a bug, because I looked through the MySQL documentation and found that updated rows will show 1 only when a new record is inserted. If the updated value is the same as the original value, affected-rows value should be 0
Reference: https://dev.mysql.com/doc/refman/8.0/en/insert-on-duplicate.html#:~:text=With ON DUPLICATE KEY UPDATE,set to its current values
DBeaver Version
<IP_ADDRESS>305211610
Operating System
No response
Database and driver
MySQL version 8.0.32
MySQL JDBC Driver 8.0.29
Steps to reproduce
No response
Additional context
No response

@HelloJysun Thank you for the report. This is specific to the JDBC.
According to the MySQL Connector/J development team's interpretation of the JDBC spec, UPDATE statements should return the number of rows matched by the statement, not the number of rows actually changed.
But if you actually need it to work as in your example, you need to change driver parameter useAffectedRows to true


Windows Defender alert on v0.99.0

Windows Defender blocks NeoGo v0.99 download due to Trojan:Win32/Wacatac.B!ml

No false positive for v0.98.5, so maybe worth a look what may be triggering this.

Just to make sure, your file has 0e0196308184602156a19e07d05434355547f84c32a5648e18c9f59460e02eaf sha256 hash?
Virustotal gives it 2/50: https://www.virustotal.com/gui/file/0e0196308184602156a19e07d05434355547f84c32a5648e18c9f59460e02eaf
But frankly I have no idea what might be triggering it.

Well, I've submitted this as false positive to Microsoft, let's see how it goes.

But seems like this happens to Go binaries from time to time: https://go.dev/doc/faq#virus

And I've even got a reply:

At this time, the submitted files do not meet our criteria for malware or potentially unwanted applications. The detection has been removed. Please follow the steps below to clear cached detections and obtain the latest malware definitions.
1. Open command prompt as administrator and change directory to c:\Program Files\Windows Defender
2. Run “MpCmdRun.exe -removedefinitions -dynamicsignatures”
3. Run "MpCmdRun.exe -SignatureUpdate"

Please try it.

Got No updates needed on the signature update, probably happened on boot this morning. Removed the Defender exception and tested, no alert. Woo Microsoft I guess 😄


Add Slack properties and publisher to jobs

This commit adds the slack configuration to the following jobs:

Copy Data To Integration;
Smokey;
Deploy Puppet.

This will alert us on some of the statuses on those jobs (more details on which alerts can be seen in the individual commits).
Requires:

[x] https://github.gds/gds/deployment/pull/1172 to be merged.
[x] testing in integration

Original PR is here for reference.

If this is only enabled in Production, what's the behaviour of the Slack notification plugin if it's set in the job but the authentication token isn't present? The same template for Deploy Puppet is used in all three environments, without the token will it just silently fail?

@surminus Good point. We tested this in integration again and we do need those environment variables to be in place (otherwise, jenkins-jobs doesn't produce the new configuration). However, the token can be invalid - the slack plugin handles that for us and doesn't impact the jobs. This means we can still prevent unwanted notifications in integration and staging.
There is a PR to add those variables again to the missing environments: https://github.gds/gds/deployment/pull/1177
With that branch added during the puppet deploy, the output of jenkins-jobs was successful and the jobs complete as they normally do. The post build action happens and the slack plugin fails silently.
The PR mentioned above needs to be merged before this PR is merged.
Is there anything else you think we should test?


'Center' not parameter in TinySliderSettings

Issue description:
Trying to center the slideshow but in typescript.
Object literal may only specify known properties, and 'center' does not exist in type 'TinySliderSettings'.

Demo link/slider setting:
N/A
Tiny-slider version:   ^2.9.2
Browser name && version:  N/A
OS name && version:   N/A

As a temporary solution, you can manually edit the TinySlider options (center: true) in tiny-slider.js (in tiny-slider folder in node-modules)


Error: could not reconnect after resetting board.

Description
Uploading to any of my sparkfun pro micro clones doesn't work. These boards use official atmel chips, and work in Arduino and Platformio without problems. Here's a simple test I wrote that demonstrates the issue:
var Avrgirl = require('avrgirl-arduino');

var avrgirl = new Avrgirl({
  board: 'sf-pro-micro'
});

avrgirl.flash('node_modules/avrgirl-arduino/junk/hex/sf-pro-micro/Blink-5v.cpp.hex', function (error) {
  if (error) {
    console.error(error);
  } else {
    console.info('done.');
  }
});

Expected behaviour
Successful upload to sparkfun pro micro
Actual behaviour
The program dumped the following error
Error: could not reconnect after resetting board.
    at C:\Users\Paul\Workspace\firmata-party\node_modules\avrgirl-arduino\lib\connection.js:133:23
    at next (C:\Users\Paul\Workspace\firmata-party\node_modules\awty\index.js:39:11)
    at C:\Users\Paul\Workspace\firmata-party\node_modules\avrgirl-arduino\lib\connection.js:118:7
    at C:\Users\Paul\Workspace\firmata-party\node_modules\avrgirl-arduino\lib\connection.js:72:12
    at C:\Users\Paul\Workspace\firmata-party\node_modules\avrgirl-arduino\lib\connection.js:211:12
    at promise.then.ports (C:\Users\Paul\Workspace\firmata-party\node_modules\serialport\lib\serialport.js:628:16)

Operating system and version
OS Name:                   Microsoft Windows 10 Pro
OS Version:                10.0.17763 N/A Build 17763
For information on the specific distribution. Please consult your distribution documentation.
Avrgirl Arduino version
v3.0.2
NodeJS version
v10.16.3
Arduino Board being used
sparkfun pro micro 5v 16Mhz  clone
( Although this board is a clone, it works with platformio and arduino IDE's without issue, I've been using them for about 3 years without uploader issues )
Log output, if available
Please add any log output, which can be used to describe the issue or circumstances surrounding the issues.
Step by step guide to reproducing the issue
If possible a code snipppet to demonstrate the issue or a throught step by step description of how to get reproduce the error.

@paulhayes thanks for reporting this issue. There is a chance that this board has a different product id when it's in bootloader mode and I don't have it in my list to poll for once the board's USB serial emulation comes back online after resetting.
Would you mind performing the following steps below to confirm this is the case or not:

Plug in the Pro Micro to your computer
Run the following code:

var Avrgirl = require('avrgirl-arduino');

Avrgirl.list(function(error, list) {
  console.log('pre-reset list:', list);
});

var avrgirl = new Avrgirl({
  board: 'sf-pro-micro'
});

avrgirl.flash('node_modules/avrgirl-arduino/junk/hex/sf-pro-micro/Blink-5v.cpp.hex', function (error) {
  avrgirl.list(function(error, list) {
    console.log('post-reset list:', list);
  });
  if (error) {
    console.error(error);
  } else {
    console.info('done.');
  }
});

If you could share the output of your terminal by copy + pasting it in this issue that would be helpful to debug. Feel free to filter out the other USB device info if you want to for privacy reasons.
I realise the above code is a little janky but it should get the output I need to debug. If the Pro Micro had a physical reset button this would be a little easier.

Yup, I think you're right. Unusual product id seems to be the cause. Will you add support for this variant to your library?
Thanks so much for taking the time to address this issue.
pre-reset list: [ { comName: 'COM29',
    manufacturer: 'Microsoft',
    serialNumber: '7&22d08be5&0&1',
    pnpId: 'USB\\VID_1B4F&PID_9206&MI_00\\8&21D8619A&0&0000',
    locationId: '0000.0014.0<IP_ADDRESS>.000.000.000',
    vendorId: '1B4F',
    productId: '9206',
    _standardPid: '9206' } ]
Error: could not reconnect after resetting board.
    at C:\Users\Paul\Workspace\firmata-party\node_modules\avrgirl-arduino\lib\connection.js:133:23
    at next (C:\Users\Paul\Workspace\firmata-party\node_modules\awty\index.js:39:11)
    at C:\Users\Paul\Workspace\firmata-party\node_modules\avrgirl-arduino\lib\connection.js:118:7
    at C:\Users\Paul\Workspace\firmata-party\node_modules\avrgirl-arduino\lib\connection.js:72:12
    at C:\Users\Paul\Workspace\firmata-party\node_modules\avrgirl-arduino\lib\connection.js:211:12
    at promise.then.ports (C:\Users\Paul\Workspace\firmata-party\node_modules\serialport\lib\serialport.js:628:16)
post-reset list: [ { comName: 'COM31',
    manufacturer: 'Arduino LLC (www.arduino.cc)',
    serialNumber: '7&22d08be5&0&1',
    pnpId: 'USB\\VID_2341&PID_0036\\7&22D08BE5&0&1',
    locationId: 'Port_#0001.Hub_#0006',
    vendorId: '2341',
    productId: '0036',
    _standardPid: '0036' } ]

hi @paulhayes sorry for taking so long with this but I have added the product id to the latest release of this library. For future FYI and I should have told you this earlier (🙈) but you can supply a custom board object as outlined in the README in order to get around instead of waiting me to add it officially to the matching board configuration.
Can you kindly let me know if the latest release doesn't fix reset port hopping bug for you? Then I'll investigate further 🙇♀


Paper Elements not rendered correctly using FF

Originally opened as dart-lang/sdk#19737
This issue was originally filed by<EMAIL_ADDRESS>

check out current version of "github.com/dart-lang/paper-elements"

usc@xps13:~/oss/paper-elements$ git log -1
commit b408cc6464ea6526b652b5ea531b612c8cdb06a8
Merge: 012104d 877a1ec
Author: sigmundch<EMAIL_ADDRESS>Date:   Mon Jun 30 09:06:18 2014 -0700
    Merge pull request #23 from dart-lang/warnings

    Fix warnings

do a "pub upgrade"

Resolving dependencies... (2.5s)
  analyzer 0.15.7 (3 newer versions available)
  args 0.11.0+1
  barback 0.14.0+3 (2 newer versions available)
  browser 0.10.0+2
  code_transformers 0.1.4+2
  collection 0.9.3+1
  core_elements 0.0.6
  csslib 0.10.0+1
  html5lib 0.11.0+1
  logging 0.9.1+1
  observe 0.10.1
  path 1.2.1
  polymer 0.11.0+5
  polymer_expressions 0.11.2
  quiver 0.18.2 (2 newer unstable versions available)
  smoke 0.1.0+1
  source_maps 0.9.2+3
  stack_trace 0.9.3+2 (3 newer versions available)
  string_scanner 0.0.3
  template_binding 0.11.0
  utf 0.9.0
  web_components 0.4.0
  yaml 1.1.1
No dependencies changed.

check "dart --version"

usc@xps13:~/oss/paper-elements$ dart --version
Dart VM version: 1.5.1 (Tue Jun 24 04:17:09 2014) on "linux_x64"

pub serve example

usc@xps13:~/oss/paper-elements$ pub serve example
Loading source assets...
Loading smoke/src/default_transformer transformers... (1.0s)
Loading observe transformers...
Loading polymer/src/build/mirrors_remover transformers...
Loading polymer transformers...
Loading polymer transformers... (1.1s)
Serving paper_elements example on http://localhost:8080
[Warning from ImportInliner on paper_elements|example/paper_menu_button.html]:
example/paper_menu_button.html:81:5: Unexpected end tag (core-layout). Ignored.
[Warning from ImportInliner on paper_elements|example/paper_menu_button.html]:
example/paper_menu_button.html:86:1: Unexpected end tag (body). Missing end tag (div).
[Warning from ImportInliner on paper_elements|example/core_animated_pages/nested_animated_pages.html]:
example/core_animated_pages/nested_animated_pages.html:1:1: Unexpected start tag (link). Expected DOCTYPE.
[Warning from ImportInliner on paper_elements|example/core_animated_pages/nested.html]:
example/core_animated_pages/nested_animated_pages.html:1:1: Unexpected start tag (link). Expected DOCTYPE.
[Warning from ImportInliner on paper_elements|example/paper_button2.html]:
lib/src/font-roboto/roboto.html:9:1: Named entity expected. Got none.
[Warning from ImportInliner on paper_elements|example/paper_fab.html]:
lib/src/font-roboto/roboto.html:9:1: Named entity expected. Got none.
[Warning from ImportInliner on paper_elements|example/paper_dialog.html]:
lib/src/font-roboto/roboto.html:9:1: Named entity expected. Got none.
[Warning from ImportInliner on paper_elements|example/paper_input.html]:
lib/src/font-roboto/roboto.html:9:1: Named entity expected. Got none.
[Warning from ImportInliner on paper_elements|example/paper_button.html]:
lib/src/font-roboto/roboto.html:9:1: Named entity expected. Got none.
[Warning from ImportInliner on paper_elements|example/paper_input2.html]:
lib/src/font-roboto/roboto.html:9:1: Named entity expected. Got none.
[Warning from ImportInliner on paper_elements|example/paper_fab2.html]:
lib/src/font-roboto/roboto.html:9:1: Named entity expected. Got none.
[Warning from ImportInliner on paper_elements|example/paper_item.html]:
lib/src/font-roboto/roboto.html:9:1: Named entity expected. Got none.
[Warning from ImportInliner on paper_elements|example/paper_toggle_button.html]:
lib/src/font-roboto/roboto.html:9:1: Named entity expected. Got none.
[Warning from ImportInliner on paper_elements|example/paper_checkbox.html]:
lib/src/font-roboto/roboto.html:9:1: Named entity expected. Got none.
[Warning from ImportInliner on paper_elements|example/paper_radio_group.html]:
lib/src/font-roboto/roboto.html:9:1: Named entity expected. Got none.
[Warning from ImportInliner on paper_elements|example/paper_ripple.html]:
lib/src/font-roboto/roboto.html:9:1: Named entity expected. Got none.
[Warning from ImportInliner on paper_elements|example/paper_slider.html]:
lib/src/font-roboto/roboto.html:9:1: Named entity expected. Got none.
[Warning from ImportInliner on paper_elements|example/paper_toast.html]:
lib/src/font-roboto/roboto.html:9:1: Named entity expected. Got none.
[Warning from ScriptCompactor on paper_elements|example/paper_button2.html]:
example/paper_button2.html:1027:1: private symbols cannot be used in event handlers
[Warning from ScriptCompactor on paper_elements|example/paper_button2.html]:
example/paper_button2.html:1027:1: private symbols cannot be used in event handlers
[Warning from ScriptCompactor on paper_elements|example/paper_button.html]:
example/paper_button.html:1027:1: private symbols cannot be used in event handlers
[Warning from ScriptCompactor on paper_elements|example/paper_button.html]:
example/paper_button.html:1027:1: private symbols cannot be used in event handlers
[Warning from ScriptCompactor on paper_elements|example/paper_progress.html]:
example/paper_progress.html:884:1: private symbols cannot be used in event handlers
[Warning from ScriptCompactor on paper_elements|example/paper_progress.html]:
example/paper_progress.html:884:1: private symbols cannot be used in event handlers
[Warning from ScriptCompactor on paper_elements|example/core_animated_pages/nested_animated_pages.html]:
example/core_animated_pages/nested_animated_pages.html:1:1: Unexpected start tag (html). Expected DOCTYPE.
[Warning from ScriptCompactor on paper_elements|example/paper_fab.html]:
example/paper_fab.html:1036:1: private symbols cannot be used in event handlers
[Warning from ScriptCompactor on paper_elements|example/paper_fab.html]:
example/paper_fab.html:1036:1: private symbols cannot be used in event handlers
[Warning from polymer (PolyfillInjector) on paper_elements|example/core_animated_pages/nested_animated_pages.html]:
example/core_animated_pages/nested_animated_pages.html:1:1: Unexpected start tag (html). Expected DOCTYPE.
[Warning from ScriptCompactor on paper_elements|example/paper_icon_button.html]:
example/paper_icon_button.html:1535:1: private symbols cannot be used in event handlers
[Warning from ScriptCompactor on paper_elements|example/paper_icon_button.html]:
example/paper_icon_button.html:1535:1: private symbols cannot be used in event handlers
[Warning from ScriptCompactor on paper_elements|example/paper_fab2.html]:
example/paper_fab2.html:1530:1: private symbols cannot be used in event handlers
[Warning from ScriptCompactor on paper_elements|example/paper_fab2.html]:
example/paper_fab2.html:1530:1: private symbols cannot be used in event handlers
[Warning from ImportInliner on paper_elements|example/paper_tabs.html]:
lib/src/font-roboto/roboto.html:9:1: Named entity expected. Got none.
[Warning from ScriptCompactor on paper_elements|example/paper_toast.html]:
example/paper_toast.html:1986:1: private symbols cannot be used in event handlers
[Warning from ScriptCompactor on paper_elements|example/paper_toast.html]:
example/paper_toast.html:1986:1: private symbols cannot be used in event handlers
[Warning from ScriptCompactor on paper_elements|example/paper_dialog.html]:
example/paper_dialog.html:709:1: private symbols cannot be used in event handlers
[Warning from ScriptCompactor on paper_elements|example/paper_dialog.html]:
example/paper_dialog.html:709:1: private symbols cannot be used in event handlers
[Warning from ScriptCompactor on paper_elements|example/paper_tabs.html]:
example/paper_tabs.html:2229:1: private symbols cannot be used in event handlers
[Warning from ScriptCompactor on paper_elements|example/paper_tabs.html]:
example/paper_tabs.html:2229:1: private symbols cannot be used in event handlers
[Warning from ScriptCompactor on paper_elements|example/core_animated_pages/quiz1.html]:
example/core_animated_pages/quiz1.html:869:1: private symbols cannot be used in event handlers
[Warning from ScriptCompactor on paper_elements|example/core_animated_pages/quiz1.html]:
example/core_animated_pages/quiz1.html:869:1: private symbols cannot be used in event handlers
[Warning from ScriptCompactor on paper_elements|example/paper_menu_button.html]:
example/paper_menu_button.html:1024:1: private symbols cannot be used in event handlers
[Warning from ScriptCompactor on paper_elements|example/paper_menu_button.html]:
example/paper_menu_button.html:1024:1: private symbols cannot be used in event handlers
Build completed successfully

start FF 30 and open "http://localhost:8080/paper_shadow.html"

you see a white page with text-labels but no squares with shadows. opening the same URL with chrome36 shows squares with shadows.
the webconsole in FF shows the following:
getUserData() und setUserData() sollten nicht mehr verwendet werden. Verwenden Sie stattdessen WeakMap oder element.dataset. requestNotifier.js:63
Error: http://localhost:8080/packages/web_components/platform.js is being assigned a //# sourceMappingURL, but already has one
Error: http://localhost:8080/packages/polymer/src/js/polymer/polymer.js is being assigned a //# sourceMappingURL, but already has one
TypeError: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create platform.js:16
TypeError: this._style is null paper_shadow.html:441
SyntaxError: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead paper_shadow.html_bootstrap.dart.js:22472
console with "pub serve" prints the following:
[example] GET /paper_shadow.html → paper_elements|example/paper_shadow.html
[example] GET /packages/web_components/platform.js → web_components|lib/platform.js
[example] GET /paper_shadow.html_bootstrap.dart → paper_elements|example/paper_shadow.html_bootstrap.dart
[example] GET /packages/polymer/src/js/polymer/polymer.js → polymer|lib/src/js/polymer/polymer.js
[example] GET /packages/web_components/dart_support.js → web_components|lib/dart_support.js
[example] GET /packages/browser/dart.js → browser|lib/dart.js
[Info from Dart2JS]:
Compiling paper_elements|example/paper_shadow.html_bootstrap.dart...
[Warning from Dart2JS]:
example/paper_shadow.html_bootstrap.dart:
673 methods retained for use by dart:mirrors out of 2035 total methods (33%).
[Info from Dart2JS]:
Took 0:00:13.390599 to compile paper_elements|example/paper_shadow.html_bootstrap.dart.
Build completed successfully
[example] GET /paper_shadow.html_bootstrap.dart.js → paper_elements|example/paper_shadow.html_bootstrap.dart.js

show pubspec.lock

Generated by pub
See http://pub.dartlang.org/doc/glossary.html#lockfile
packages:
  analyzer:
    description: analyzer
    source: hosted
    version: "0.15.7"
  args:
    description: args
    source: hosted
    version: "0.11.0+1"
  barback:
    description: barback
    source: hosted
    version: "0.14.0+3"
  browser:
    description: browser
    source: hosted
    version: "0.10.0+2"
  code_transformers:
    description: code_transformers
    source: hosted
    version: "0.1.4+2"
  collection:
    description: collection
    source: hosted
    version: "0.9.3+1"
  core_elements:
    description: core_elements
    source: hosted
    version: "0.0.6"
  csslib:
    description: csslib
    source: hosted
    version: "0.10.0+1"
  html5lib:
    description: html5lib
    source: hosted
    version: "0.11.0+1"
  logging:
    description: logging
    source: hosted
    version: "0.9.1+1"
  observe:
    description: observe
    source: hosted
    version: "0.10.1"
  path:
    description: path
    source: hosted
    version: "1.2.1"
  polymer:
    description: polymer
    source: hosted
    version: "0.11.0+5"
  polymer_expressions:
    description: polymer_expressions
    source: hosted
    version: "0.11.2"
  quiver:
    description: quiver
    source: hosted
    version: "0.18.2"
  smoke:
    description: smoke
    source: hosted
    version: "0.1.0+1"
  source_maps:
    description: source_maps
    source: hosted
    version: "0.9.2+3"
  stack_trace:
    description: stack_trace
    source: hosted
    version: "0.9.3+2"
  string_scanner:
    description: string_scanner
    source: hosted
    version: "0.0.3"
  template_binding:
    description: template_binding
    source: hosted
    version: "0.11.0"
  utf:
    description: utf
    source: hosted
    version: "0.9.0"
  web_components:
    description: web_components
    source: hosted
    version: "0.4.0"
  yaml:
    description: yaml
    source: hosted
    version: "1.1.1"
a similar problem happens, when "paper_dialog.html" is opened, chrome works (two buttons which can be clicked; after that a dialog appears), FF shows both dialogs directly embedded in the page. trivial pages (paper_button) seems to work, although errors appear in the JS-console of firefox.

 Comment by sigmundch

Added this to the 1.6 milestone.
Removed Priority-Unassigned label.
Added Priority-High label.

 Comment by jmesserly

lovely bug report, thank you.
I can see this on both paper-dialog and paper-shadow. It looks like an upstream issue, however, both are working upstream:
http://www.polymer-project.org/components/paper-elements/demo.html#paper-shadow
@sigmund @justin -- my guess is polymer.js is out of date, if someone wants to take a stab at updating it

cc @sigmundch.
cc @justinfagnani.
Added Pkg-Polymer, Area-Pkg, Triaged labels.

 Comment by sigmundch

Removed this from the 1.6 milestone.
Added Polymer-P-1 label.

 Comment by sigmundch

Removed Polymer-P-1 label.
Added Polymer-Milestone-Next label.

 Comment by sigmundch

Added PolymerMilestone-Next label.

 Comment by kasperl

Added this to the 1.6 milestone.

 Comment by sigmundch

Removed Polymer-Milestone-Next label.

 Comment by jakemac53

This looks like it was fixed in the last roll of the paper-elements. They are not published yet but should be soon once the new version of polymer is published.

 Comment by sigmundch

Removed this from the 1.6 milestone.

 Comment by sethladd

Assigning owner as Priority is High. If this is done in error, please reassign or bump priority down. Thanks!

Set owner to @jakemac53.

 Comment by jakemac53

Added AssumedStale label.


Show number of total calls in the selected range

I hope it makes more sense now:

Ah, is this live anywhere? Ah never mind, I see it's live on C3 dev. Yeah I think this is more useful than what it replaces. @nielshelsoe agree?

Jah I think so.
Just so I get it. The old counter was just the total of all endpoints called in a Fatman? (E.g. labels,health, perform e.c.t.)

Jah I think so. Just so I get it. The old counter was just the total of all endpoints called in a Fatman? (E.g. labels,health, perform e.c.t.)

Yeah.
Old: show total since the Big Bang
New: respect the time range selected on the dashboard up here:


Term Name
schema:name
Digital Object Name
Agent
Feedback
In schema.org, name has a much wider scope. There it refers to any identifiable entity. Here, name has a narrower scope, the preferred name of the Agent. Therefore, there is not an exact match between the terms and the property in openDS should be changed to the openDS namespace.

I think that this term is fitting, as Agent is a really generic class. Besides a person, it could also represent a software system or an organisation, so having a property with a wide scope is fitting. An alternative would be to use foaf:name which also has a really wide definition: "A name for some thing."

We have discussed this, and concluded that if for every term we want to reuse we need an exact match, we can almost not reuse any terms, which does not help interoperability. Also this is not how schema.org is currently used. It is intended to be very broad so it can be used for most purposes. Foaf:name could also be used, but we have opted for schema. org as we can reuse more terms from it than from foaf so it limits the number of namespaces we need to include.


Have icon for adding a keybinding action

See
https://github.com/microsoft/vscode/issues/229827#issuecomment-2377020240

@hbons could you take this one?


Added additional integration tests for sl-radio

Closes softlayer/sl-ember-components#769
Added additional tests for:
default rendered state
label property
value property
Also added the property inline: false to the component since it was missing.
No tests were written for:
readonly property, since it is no longer part of this component
id is set to inputId, since it is no longer set in the template
name property, since the test was already written

Review status: 0 of 2 files reviewed at latest revision, 1 unresolved discussion, some commit checks broke.

tests/integration/components/sl-radio-test.js, line 26 [r1] (raw file):
This assert will always be true because find will always return a jQuery object either with or without a collection (always truthy). Instead, do a strictEqual to check that length is 1.
assert.strictEqual(     this.$( '>:first-child' ).find( 'input[type="radio"]' ).length,     1 );

Comments from the review on Reviewable.io

tests/integration/components/sl-radio-test.js, line 26 [r1] (raw file):
RESOLVED

Comments from the review on Reviewable.io

Reviewed 2 of 2 files at r1, 1 of 1 files at r2.
Review status: all files reviewed at latest revision, 1 unresolved discussion.

Comments from the review on Reviewable.io

Reviewed 1 of 2 files at r1, 1 of 1 files at r2.
Review status: all files reviewed at latest revision, 3 unresolved discussions.

tests/integration/components/sl-radio-test.js, line 82 [r2] (raw file):
I'm not sure we need this assertion.

tests/integration/components/sl-radio-test.js, line 104 [r2] (raw file):
Is this assertion needed, as its absence is asserted (by not being asserted) in the default state test case?

Comments from the review on Reviewable.io

Reviewed 1 of 1 files at r3.
Review status: all files reviewed at latest revision, 1 unresolved discussion.

Comments from the review on Reviewable.io


When a user is customizing their background color text should auto render black when it is a lighter color

Problem
If a user has a lighter shade color for the chat widget the text is not legible
Solution
We should auto change the color of the text to black when the shade is too light (need to figure out how to detect the shades and brightness)
Describe alternatives you've considered
We could let them change the color of the text themselves but it could be too ugly if they choose some mismatch colors.
Right now if the color is too bright it is not legible

An example of changing to black text

This is also a problem in the Flutter version, I'll create an issue for it and see what I come up with 😀

This is also a problem in the Flutter version, I'll create an issue for it and see what I come up with 😀

BTW @cheeseblubber, it looks like the shadow's z-index isn't quite right and the message is going in front of it:

BTW @cheeseblubber, it looks like the shadow's z-index isn't quite right and the message is going in front of it:


Question about draw_sketch.py

Hi there!
Firstly, thank you for your advice about sample_all in sample.py! However, I noticed that in your dataset such as moon.npz, the size of data.train (as shown in the 80th line in draw_sketch.py) is 70000×3. While the size I get in sample_all.npz (from the 73rd line in sample.py) is 16×96×4.
So could you please explain how you save sample_all into the true npz file? I've tried
np.savez(args.save_path + "sample0.npz", train=sample_all) but it didn't work when draw_sketch.
Thank you for your help agian!

Hi，The right saved sizes Batch_size, image_size, 3. So I think may be there are error of you saving code.
I have updated the code for saving npz files in the latest code: https://github.com/XDUWQ/SketchKnitter/blob/8a44cf138acba2c406d71bd0350b94ed755ad26c/sample.py#L74


Catch all 4xxs with DjangoIntegration

Hi,
I'm using DRF with the new Sentry SDK for Python. Is there a built-in way to log all 4xxs in the new SDK?
It would be nice to drop in a middleware and start logging all 4xx and 5xx implicitly.

@iMerica I am not sure if that answered the question but I am going to go ahead and close this due to lack of activity.


feat(client): runtime cmd of swcli support output to json

Description
Modules

[ ] UI
[ ] Controller
[ ] Agent
[x] Client
[ ] Python-SDK
[ ] Others

Checklist

[x] run code format and lint check
[ ] add unit test
[ ] add necessary doc

#642


docs: add Cloud SQL for MySQL vector store integration docs

Adding docs page for Google Cloud SQL for MySQL vector store integration. This was recently released as part of the Cloud SQL for MySQL LangChain package (release)

@efriis do you mind taking a look at this? Just adding a new entry for the freshly released Cloud SQL for MySQL vector store LangChain integration 😄


Refactor to remove STRLEN() part 3

Refactor do_excmd.c to reduce the number calls to STRLEN(). At the same time improve the efficiency of various lookups, some of which are done many times.
My measurements on startup with an empty buffer:
In function modifier_len(), the number of STRNCMP() comparisons changed from 96990 down to 7205.
In function cmd_exists(), the number of STRNCMP() comparisons changed from 26 down to 0! This was because only one call is made and that cannot match and so is not even attempted.
In function find_cmdline_var(), the number of comparisons changed from 80 (including calls to STRLEN() and STRNCMP()) and down to 14 (only a call to STRNCMP()).
The last two are small potatoes but every bit helps.
Cheers
John

thanks, looks good


doc/python: mention sorting attribute names

Motivation for this change
to continue the groundwork of #96850 and make it more official
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"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

But don't we have are sorted quasi-alphabetically to avoid merge conflicts. right above this? I do agree that alphanumeric the better word since there's attributes with numbers also.

I did a sort -f on all of them. I would like to keep it that way :)

Is there any practical reason behind this? I think that it's just painful to find the right position when adding a new attribute (in all-packages.nix, python-packages.nix or whatever) and any decent editor provides inline-search to jump to the proper position.

We should probably enforce some sort of pre commit hook to make sure it's sorted? Along with maybe a CI check.

Is there any practical reason behind this?

From the perspective of the nix-cli? no
From the perspective of a human? yes.
There's now just one location that "it should be located". Previously I would look at several locations to see which one was "most appropriate", now I can just type the package name until I find no results, and delete a character to find the package which contains the most similar prefix characters

We should probably enforce some sort of pre commit hook to make sure it's sorted?

This may be hard since we would have to "sort on paragraphs, while filtering out comments". It's likely to be do-able, but some of the expressions when I was initially sorting them were hard to handle.
I also thought of including this my nix-template cli tool https://github.com/jonringer/nix-template/issues/5

There's now just one location that "it should be located". Previously I would look at several locations to see which one was "most appropriate", now I can just type the package name until I find no results, and delete a character to find the package which contains the most similar prefix characters

I asked about the sorting itself. The entire "where do I place my attribute"-thing wouldn't be necessary without it.

I asked about the sorting itself. The entire "where do I place my attribute"-thing wouldn't be necessary without it.

I'm not sure I understand, I sorted all of python-packages.nix in https://github.com/NixOS/nixpkgs/pull/96850. This PR is just making it "more official" that the expected behavior is have new additions also be sorted.

@Ma27 wonders if there is any value to having it sorted at all.
I think its mostly a matter of preference, at least for me it is. It has happened more than once a package was in the set twice, but under a slightly different name (capitalized or not). This you would spot sooner in case of a sorted list, but its rare it happens.

I think its mostly a matter of preference, at least for me it is. It has happened more than once a package was in the set twice, but under a slightly different name (capitalized or not). This you would spot sooner in case of a sorted list, but its rare it happens.

I have similar feelings. Making it easier to find packages helps both with additions, modifications, and removals.
The "hard work" has already been done, I just want it to be more official.

The entire "where do I place my attribute"-thing wouldn't be necessary without it.

This was added under the "contributing guidelines" and I think it makes more sense if you look at the rendered document. https://github.com/NixOS/nixpkgs/blob/6bc12c461ff497f1c6bafeebca02033bea7b396b/doc/languages-frameworks/python.section.md#contributing-guidelines

I split the first bullet into two, and made the sorting word choice to be stronger.

We should probably enforce some sort of pre commit hook

Some hooks mess with rebasing broken commits so I personally never activated them.

Is there any practical reason behind this?

Less merge conflicts.

We should probably enforce some sort of pre commit hook

Some hooks mess with rebasing broken commits so I personally never activated them.

Is there any practical reason behind this?

Less merge conflicts.

I beliver there was a dd-agent and a datadog python package which would have been easier to spot if they were anywhere co-located.
I haven't heard any strong objection to this, and it has been open for months now.


Upgrade to Laravel 7

Could be nice to upgrade to Laravel 7 to take advantage of some of the new features it provides. I'd be happy to work on this too.

Ordered a shift for this: https://github.com/laravelio/laravel.io/pull/494

Done


Initiate Nim Entire CI Recipe

Description
Nim programming language is where I want to go next. Let's initialize it.
Expected Behavior
Template can initiate a Nim workspace immediately.
Current Behavior
To initiate Nim workspace, manual efforts are needed.
Associated Data Files
No response

Added general nim.

avr-gcc is too hackish and requires a dedicated library construction: https://disconnected.systems/blog/nim-on-adruino/

applied regressive changes back to C.

applied regressive changes back to Go.

applied regressive changes back to Python.

Released in https://github.com/ChewKeanHo/AutomataCI/releases/tag/v2.0.0


Increase sink water cap to Int32.MaxValue.

This is done as a workaround intended to fix running out of sink water while playing as bartender. This should be reverted when plumbing is implemented.

About the PR
Media

[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog

:cl:

add: Increase sink capacity and quantity of water to Int32.MaxValue (2,147,483,647)

NOTE: I currently cannot test this fix as I am unable to get the server to build on Ubuntu Studio 22.10. I'll be doing some troubleshooting and will look into improving the build documentation accordingly.

uhhh i don't like this solution, we have auto regen ones that are less likely to be problematic

uhhh i don't like this solution, we have auto regen ones that are less likely to be problematic

Could you link me to the relevant class? I have noticed the opposite of the behavior you're describing.

auto regen will prevent you from flooding the entire station
look at ifrit welder etc

I see. So I will search for code related to the auto regeneration of the ifrit welder. Thank you.

Just imagine if this spilled.

jani to everywhere please!


Request: Config for "solid" blocks for oxygen system

On my space station I'm attempting to use the Mekanism Electrolytic Separator/Rotary Condensentrator combo to produce liquid oxygen, and my current setup has the Rotary Condensentrator as part of the wall. Unfortunately, the oxygen system doesn't count the RC as a solid block (even though it is solid and opaque), and there doesn't seem to be a config whitelist for that.
Is there any chance a whitelist could be added for blocks that the default system missed or doesn't recognize as solid?

Thanks @zmaster587. You're awesome.


Update CI to build wheels for linux + osx with cibuildwheel

This PR overhauls whats being done in CI, so that wheel builds are done in a similar manor to lxml using cibuildwheel. This should let us push wheels for all platforms out to PyPi. Right now this PR just attaches the built wheels to the build as an artifact, since I don't have any access to PyPi for this repo. cibuildwheel has some guidance in their docs as to how to upload the built wheels to PyPi.
Since I've changed around the actions, I don't think they will run until a admin enables them on this PR, or the PR is merged. But you can see in my fork what the build process looks like.
I bumped the minimum supported version of lxml up to 5.0.0, so that the version of libxml2 that is statically linked by the build process matches the version that is shipped with lxml. I also added a CI workflow that tests a matrix of:

python:

"3.7"
"3.12"

lxml:

"5.0.0"
"5.1.0"

libxmlsec1:

"1.3.3"
"1.2.39"

setup.py was updated to:

Look up and install the latest version of openssl 1.1.1. Static builds were not linking against the latest before.

In the future it would be nice to update this to install openssl 3.x versions, but the build requirements are different, so I didn't take that on as part of this PR.

Allow static builds for osx, so we can push static wheels to pypi

Allow cross compiling so github actions OSX x86_64 workers can build arm64 osx packages

Remove --enable-rebuild-docs arg to configure for libxml2, since it no longer exists
Build libxmlsec1 with --enable-md5 build arg, required for the tests to pass, otherwise the built wheel has a symbol missing
Bump the supported python versions to 3.6+ to match the wheels that are being built.

Note: This PR does not do anything to build wheels for Windows. I don't have a lot of windows build experience, and it looks like the existing builds depend on pre-built binaries in some other repo. Someone with more experience on Windows will have to do that work. Once the windows wheel builds are working, we should be able to package them up the same way as the osx and linux builds. I left a comment in the wheel.yml job pointing to how to make this change.

Happy to break this one up into a series of smaller PRs, if this one is too large / too wide reaching. Happy to incorporate any feedback.
I'd love to see at least some of the work in this PR get merged into this repo. I think being able to publish staticly linked wheels for linux / osx would be a big win, and would ease the pain for end users of this package of making sure libxml2 stays in sync between this package and lxml.

@jimjag thanks for merging https://github.com/xmlsec/python-xmlsec/pull/289! 🎉
Is there anything you would like me to do to make it easier to merge this PR? Happy to make any changes necessary here.

Going to close this one, and open some more targeted PR instead that might be easier to review.


Initial version

I think the first version should also include a silo host which exemplifies how to use SiloHostBuilder (with application parts) and configure basic logging, as this is not always trivial.
It could also have ClientBuilder code in the form of comments (not as a new template, but in the same one for the silo host), so that the user gets an idea of how to connect to the silo. Link to documents can be added later as soon as we update our documentation.

FYI, I just tested it on OSX and it worked perfectly

This is an old style project because of VS SDK and it cannot be built with dotnet.exe.
Since NuGet workload was not part of VS Build before 15.4 on build servers 15.4 needed and it involves a separate restore step.
From VS 2017 command prompt the following 2 commands are building the solution:
msbuild /t:restore
msbuild

I will extend the readme with this information.

Hi, is this up to date? We should review and merge.
/cc @ReubenBond @sergeybykov

Yeah, it was complete for some time ;-)


slash_comments incorrectly fix "puppet:///file"

Describe the Bug
if you for a file have a source that uses puppet and you are using single quots it will conver it to comments
Expected Behavior
it should not make any changes to it
Steps to Reproduce
  file { '/etc/ssh/sshrc':
    mode   => 'a+rx',
    source => 'puppet:///modules/profile/auth/ssh/sshrc',
  }

puppet-lint --fix file.pp
FIXED: // comment found on line 57 (check: slash_comments)
FIXED: unquoted resource title on line 57 (check: unquoted_resource_title)
FIXED: double quoted string containing no variables on line 62 (check: double_quoted_strings)

  file { '/etc/ssh/sshrc':
    mode   => 'a+rx',
    source => ''puppet':#/modules/profile/auth/ssh/sshrc',
}

but if you are using dubble quots there is no proble
  file { '/etc/ssh/sshrc':
    mode   => 'a+rx',
    source => "puppet:///modules/profile/auth/ssh/sshrc",
  }

Environment

Version [3.3.0]
Platform [Ubuntu 22.10]

Looks like this is a built-in plugin.
We will investigate and get back to you!


Added new pattern resilience-backup-restore-aws

Issue #, if available:
Description of changes:  Added new pattern resilience-backup-restore-aws. Also updated cdk version in package.json and added aws-sdk in package.json
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Will open a new pull request


optimize branch update with small lookup tables

Use small lookup table to avoid branching during probability updates

@danielrh might find this amusing... finally figured out a way to handle the zero probability corner case without an extra branch

I love this! :-) Did you have a microbenchmark comparison? Does it end up helping in practice


[FLINK-19189][runtime] Enable pipelined scheduling by default

What is the purpose of the change
This PR is to enable pipelined scheduling by default.
This change is based on #13422
Verifying this change

Stability tests passed
TPC-DS benchmark on 1T dataset passed with a slightly better performance over lazy-from-sources scheduling

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

Thanks for reviewing! @azagrebin
Merging.


Update logic to download transport costs

Feature Request
Currently, transport costs are taken from the ATB and automatically downloaded in the retrieve_costs_usa rule. It probably makes more sense to move this to the retrieve_sector_databundle rule or to add a conditional to the retrieve_costs_usa rule that only downloads transport costs if needed.
Suggested Solution
No response
Additional Info
No response

Closing as this is outdated.


Dark theme is not applied. createTheme with ThemeProvider @mui/material 5.0.3

It seems like createTheme with ThemeProvider are not applied globally(?)

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯
Using this minimal snippet, dark theme is not applied. https://codesandbox.io/s/material-ui-5-0-3-dark-theme-dol5w?file=/src/App.js:161-593
const theme = createTheme({
  palette: "dark"
});

const App = () => {
  return (
    <ThemeProvider theme={theme}>
      <CssBaseline />
      <Typography style={{ marginTop: 50 }}>
        Text should be white, background should be dark
      </Typography>
      <AppBar color="inherit">
        <Typography variant="h6">App bar background should be dark!</Typography>
      </AppBar>
    </ThemeProvider>
  );
};

Expected Behavior 🤔
Dark theme should be applied. Example of @material-ui/core v4 (4.4.2) https://codesandbox.io/s/gg811

Your Environment 🌎

`npx @mui/envinfo`
  System:
    OS: macOS 11.6
  Binaries:
    Node: 16.10.0 - /usr/local/bin/node
    Yarn: 1.22.15 - /usr/local/bin/yarn
    npm: 7.24.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 94.0.4606.71
    Edge: Not Found
    Firefox: 89.0.1
    Safari: 15.0
  npmPackages:
    @emotion/react: ^11.4.1 => 11.4.1
    @emotion/styled: ^11.3.0 => 11.3.0
    @mui/core:  5.0.0-alpha.50
    @mui/icons-material: ^5.0.0 => 5.0.0
    @mui/material: ^5.0.3 => 5.0.3
    @mui/private-theming:  5.0.1
    @mui/styled-engine:  5.0.1
    @mui/system:  5.0.3
    @mui/types:  7.0.0
    @mui/utils:  5.0.1
    @types/react:  17.0.21
    react: ^17.0.2 => 17.0.2
    react-dom: ^17.0.2 => 17.0.2

Ok, that was my bad sorry. I was trying to migrate some projects to @mui/material v5. I should have re-read the docs before creating this issue. Change type to mode.
const darkTheme = createTheme({
  palette: {
    mode: 'dark',
  },
});


bug - exception listener does not work with safari of ios 9.3.5

e.g. if localStorage if disabled in the browser, a error message in a modal is not displayed

analyse alternative


Wrong $ref validation for remote references in OAS3

Describe the bug
The action wrongfully takes as an error having $ref that are remote references
To Reproduce
Use a remote reference for a file in another folder in the same repository, in an OAS3 definition file.
Run this action against that file.
Additional context
Source:

$ref: '../../common/v0/schemas.yaml#components/schemas/example'

Output:
Error: Definition contains errors.
Error: Semantic error at paths./get.responses.200.content.text/plain.schema.items.$ref
Error: $ref paths must begin with #/
Look at the specification for remote references: https://swagger.io/docs/specification/using-ref/

Hi @DiegoVillalpandoTR,
This is the limitation of this technical solution. Basically your document is validated in SwaggerEditor, the same way as you would copy&paste your definition in here https://editor.swagger.io/. The SwaggerEditor doesn't see anything that is referenced via local filesystem URIs. In order for this to work, URIs in $ref need to be in form of absolute URL.


Bot not working

I got the discord bot installed and got api enabled on namelessMC but when I try to do the !apiurl   command with the bot I get the following error.
com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 22 path $
Unable to parse json. Received response code 200. Website response:
-----------------
This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support
-----------------

any suggestions???

sorry for the bad formating here is the error
com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 22 path $
Unable to parse json. Received response code 200. Website response:
This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support
-----------------

The bot is probably blocked by a proxy such as cloudflare. Add an exception: https://github.com/NamelessMC/Nameless/wiki/Plugin-is-not-working

Okay I will try those steps but I was certain I had no proxy on my domain but I even used a Cloudflare checker online and it confirmed I didn't have any. Is there a Proxy that my domain has installed and I'm not aware of? Do you know where I could check this information?

It could be some other ddos prevention mechanism used by your hosting provider if you use shared hosting

Okay if it is not a v2 pre 8 issue then I will contact my Domain help desk, is there a specific way I can phrase or say my question for them to easily understand? Thanks

Also, the guide says "Make sure that legacy api is disabled". where can I check this?

Yeah most of the API stuff does work the same way, except for any plugin-specific tips. Legacy API has been removed in pr8, that's why you can't find it

Okay good, do you have an idea of what I should be asking my domain provider in regards to this issue? Should I be asking about any ddos or proxies installed or...? thanks


Account for collateral outputs within Primitive.Model.

Issue Number
ADP-1718
Summary
This PR updates the wallet primitive model to correctly account for collateral outputs.

bors r+


Update Clear Command to clear current list

Also changed the numbers in the test cases. Some numbers were 7 digits long while some numbers were 8, changed it so that all of it were 8 digits long to be more consistent

LGTM.


manual focus control!

thanks https://github.com/xupsh/Vision-Zynq/blob/master/ov5640_init/OV5640.c#L249 :)

just for posterity -- i've been testing this and it is working very well!


added diamond price prediction using machine learning

Description
This script predict the prices of diamond based on various inputted parameters related of Kaggle dataset of Diamond price prediction using Machine learning.
models applied :
Decision tree
linear regression
random forest
SVM
Fixes #649
Type of change

[X] Added a new machine learning frameworks, libraries or software.
[ ] Documentation update

Checklist:

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation
[X] My changes generate no new warnings

@sanjay-kv please merge this pr along with level and label, it will resolve issue number 649

@sanjay-kv ?


Rust-Servers.net API keys

Hello there guys, if some of you own Rust server and already add it to Rust-Servers.net monitoring, please contact me! I need API keys, so i can create and test ability to get data from Rust-Servers.net instead of Rust-Servers.info.
Thank you.

Done.


Added support type for accessing specific redis functions

Please check if the PR fulfills these requirements

[x] Followed the Contributing guidelines.
[x] Tests for the changes have been added (for bug fixes/features) with 100% code coverage.
[x] Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Codecov Report

Merging #608 (1c22d23) into master (b07f4b1) will not change coverage.
The diff coverage is 100.00%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@            Coverage Diff            @@
##            master      #608   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            5         5
  Lines          295       302    +7
  Branches        76        76
=========================================
+ Hits           295       302    +7

Files
Coverage Δ

src/caching.ts
100.00% <100.00%> (ø)

Hi @pauld8 - would love to understand how this would work and the use case / problem you are trying to resolve. The reason I am asking is that at the start of 2024 we plan to enable Keyv adapters to cache-manager which does have redis instance and is more aligned with showing less direct functionality.

Hi @pauld8 - would love to understand how this would work and the use case / problem you are trying to resolve. The reason I am asking is that at the start of 2024 we plan to enable Keyv adapters to cache-manager which does have redis instance and is more aligned with showing less direct functionality.

Hi, I'm using this package in my Nest JS project and redis has a way of managing members (https://redis.io/commands/smembers/), I was able to access those functions without the need for the PR in a hacky typescript way which I don't like hence I wanted to add those types in order to access them easily.
Code example:

@pauld8 - will be closing this pull request. Let me know if you plan to work on it more. Also, happy to have a video chat on this if that helps. Shoot me a note<EMAIL_ADDRESS>


Usernameless seems not to be working on ANY Browser on W10 1903/1909

it basically just says "this key seems to be unknown, please try another", without even asking me for a UV.

as far as I know how windows 1903+ captures Fido things, I believe this would apply to all browsers running on at the very least 1903.
I tried both classic Edge and Insider Dev, as well as the latest chrome as of the writing of this issue (literally just downloaded)
Since Windows 10 started intercepting FIDO2, the general "browser XYZ works" approach is kinda flawed in my opinion.
Update, also happens on 1909.
Edge 1809 seems to work fine, albeit with the limitation that only the 20 most recent RKs for any given RP are shown, also other browsers work fine pre-1809 as interception wasnt a thing back then.

I just successfully enrolled and logged in usernameless with a security key on 1909 with Edge, Firefox, and Chrome 79 (Chrome 78 is crashing for me for some reason).  What exactly are you doing in order to reproduce the failure?

okay this is getting weird here.
while I do use a Remote machine via USB over IP for this, other things work flawlessly, although apparently there seems to be variation in the Specific Keys.
I recently got an eWBM Goldengate G310 (That one with Fingerprint Sensor and Fido2 L2) and that on any request I tried (even literally just as I write this comment) just gets that error posted above, without even asking for UV.
My Solo Hacker (3.0.0) on the other Hand doesnt even ask for a PIN when trying to Log in.
basically I went and created the credential locally (brave on Kubuntu, and logging in with that seems to work fine on every system that doesnt intercept Fido calls, including the other remote W10 with 1809, although the Edge on 1809 is limited to 20 RKs per RP)
I basically just connect the stick using virtualhere, then start the login process, and well after a short wait for nothing, I get that message that the key is unknown, with W10 not asking for any Verification.
The fact that the solo doesnt ask for PIN and the Goldengate doesnt get recognized properly, seems to be VERY weird to me to be honest.
even on classic edge on 1809 the solo doesnt ask for PIN when using usernameless login.

okay I found out what's going on with the missing UVs. apparently passwordless.dev on usernameless sends userverification discouraged, and apparently windows just takes that even when everything else goes to enforce UV on RK logins.
also I think that may be the reason why the Goldengate immediately refuses, as it probably doesnt wanna give out any RKs without UV.

I was also able to register and login with G310.  The flow does feel a tad awkward, but it does work. The Windows WebAuthn library seems to require PIN entry an excessive amount of the time.

PIN entry? I've never seen it ask for a PIN unless
a) no finger is set
b) I want to manage the Fingerprints
that it requires UV for a lot may be that W10 is iirc only Fido2 aware and registrations force UV if set by spec (imo stupid)

... unless
a) no finger is set

Ah yes, I almost certainly factory reset this since last demo.

passwordless.dev works for me on win 1903.
I could update to require UV if that makes any difference on other platforms?

I am not sure whether it made any differences other platforms i used just ignored the uv parameter and forced uv.
The chaos apparently comes from that on my g310 the issue apparently only arose when registering on a different platform and then signing in via 1903 (don't ask me why)
Although i can't currently check whether this is still the case as i am not at home currently and i didnt take the g310 with me (as i do have to send it back)

I was also able to register and login with G310. The flow does feel a tad awkward, but it does work. The Windows WebAuthn library seems to require PIN entry an excessive amount of the time.

On my Windows 10 computer with Chrome and a USB security key, require_resident_key needed to be "false" rather than false on the passwordless page in order to remove the pin code requirement.  See PR #152 .  The usernameless page always requires a pin code on my machine.


redirection seems brocken on second pipe?

$ << oui cat | << non cat does nothing
$  << oui cat > a | << non cat print the first heredoc


firefox-bin: 92.0.1 -> 93.0

Motivation for this change
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

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

[x] Fits CONTRIBUTING.md.

How do you update the firefox-bin expression? I couldn't figure out how to do it

nix-shell maintainers/scripts/update.nix --argstr path firefox-bin-unwrapped


Kotlin suspend functions return type is incorrect

In what version(s) of Spring AMQP are you seeing this issue?
3.0.9(for my project)  & 3.2.3(latest version for demo)
Describe the bug
It is known in #1210 this library added a kotlin coroutine support.  This is fine as long as the function doesn't return a value. But as soon as our function returns a value the return value type resolver in AbstractAdaptableMessageListener.asyncSuccess throws an error because it gets the invocation result type of java.lang.Object which can't be cast to ParameterizedType.
To Reproduce
A kotlin coroutine with a return value of String?  annotated with @RabbitListener
Expected behavior
The return type must be correctly set in InvocationResult
Sample
https://github.com/abelmulq/spring-amqp-2638-sample

Thank you @artembilan for the quick fix.

Hello @abelmulq and @artembilan,
I've been following the discussion on Kotlin suspend function return types and appreciate the fixes and updates made. I am curious if similar support or modifications have been considered for the KafkaListener in the context of handling Kafka messages with Kotlin coroutines? Specifically, is there any ongoing work or planned updates to ensure that KafkaListeners can handle return types correctly when used with Kotlin suspend functions?
Thank you for your efforts and any information you can provide on this matter.

@PsyBrainy ,
It would be great if you ask such a question in Spring for Apache Kafka project by itself.
Yes, that work has been done for the @KafkaListener as well. See respective GH issue: https://github.com/spring-projects/spring-kafka/issues/1189.
And docs for upcoming 3.2 version: https://docs.spring.io/spring-kafka/reference/3.2/whats-new.html#x32-async-return


Fixed a broken link (Sphinx Style Guide) within the contributing.md

Fixed a broken link (Sphinx Style Guide) within the contributing.md

Thanks @matthewreily. Appreciated.


Update Staking for current token

I have 1 custom token on Kovan test net, but it just a simple smartcontact like "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol". And now I want to update Staking for my token. Can I do that without create 1 new token?

https://github.com/pironmind/TokenActionProtocol

@cong235 If you using a Proxy pattern you can just replace your token implementation :smile:
If not, you should be able to run burning and minting tokens from an external contract.


DHCP client closes the socket and stops solicitation if two consecutive Data response message are received in a short time

If two messages with the same prefix arrive in a short time ( See void Dhcp6Client::UpdateAddresses(void) in  dhcp6_client.cpp)
The second message closes the socket before the first message (DHCP solicit) is handled. This happens because "newAgent" variable in the function will stay false.
The result is that a Thread device will not do the address solicitation successfully and does not get the global ipv6 address.
To Reproduce

Git commit id: c8efee95f3be7aa3f35a6da50bca737d2e53ddc3 (src/core/net/dhcp6_client.cpp)
IEEE 802.15.4 hardware platform: Atmel at86rf233
Build steps: Reference platform should work fine for testing.
Network topology: Not relevant

Expected behavior
If consecutive Data response messages are received with the same prefix, the second one should not close the socket.

@karsev , thanks for raising this issue. I have submitted #5169 that proposes a fix. Please review.


Install target is not found because in uppercase

Brief Issue Summary
CMake tools does not find the INSTALL target.
Expected:

Run CMake : Configure
Run CMake : Install or install target from CMake : Build Target

Apparent Behavior:
CMake tools tries to launch install target while the real name is INSTALL
"C:\Program Files\CMake\bin\cmake.EXE" --build e:/******/build --config RelWithDebInfo --target install -- /maxcpucount:50

CMake Tools Log
[main] Building folder: ******* install
[build] Starting build
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --build e:/******/build --config RelWithDebInfo --target install -- /maxcpucount:50
[build] Microsoft (R) Build Engine version 16.7.0+b89cb5fde for .NET Framework
[build] Copyright (C) Microsoft Corporation. All rights reserved.
[build]
[build] MSBUILD : error MSB1009: Project file does not exist.
[build] Switch: install
[build] Build finished with exit code 1

Platform and Versions

Operating System: Windows 10 Entreprise 10.0.18363 Build 18363
CMake Version: CMake 3.18.4
VSCode Version: 1.15.1
CMake Tools Extension Version: 1.5.3
Compiler/Toolchain: Visual Studio 2019 MSVC 14.27.29110

Thank you for opening this issue. I wasn't aware that you can define INSTALL target.
It would help us if you share your CMakeLists.txt (or only how you define this target) and what happens in your terminal when the CMake extension is not involved, only the raw CMake tool. Does that handle install and INSTALL differently? Can you have both defined?
We can fix the extension to support anything that the build tool supports, of course.

I don't think INSTALL target has been renamed, though I did change PREDEFINED_TARGETS_FOLDER to the root folder.
I would advise to use INSTALL uppercase for a Visual Studio kit scenario (it has always been uppercase, to my knowledge) or at least let the Build Target finder find it.

I'm not sure what's different here besides maybe that you have a newer version of CMake.  We haven't ever seen this problem before and the CMake targets have always been upper cased.  Do you happen to have the case-sensitive file system enabled for the folder you're working in?
In any case, I believe #1511 would address this.


Fix/develop missingnamespace

Looks like the std:: namespace is required by Intel(R) oneAPI DPC++/C++ Compiler 2024.0.0 (2024.x.0.20230905)

Don't know why all your commits from the last 3 months appeared in my history :S


Better behavior for two lines of text in menu bar

Wouldn't it be easy to improve the option to show two lines of text in the menu bar?
Say there's the initial line echo -e "Text String\nOther Text String"
BitBar will not center the text, and it will not adjust the font size to auto-fit the two lines in the menu bar.
You can always say echo -e "Text String\nOther Text String" | size=10, but line spacing is messed up, so it doesn't look good. Furthermore, there doesn't seem to be a way to tell BitBar to center both lines of text.
So the idea for a feature enhancement is for BitBar to auto-adjust the font size and line spacing, if it encounters a \n in the initial echo-line, and some form of option to center, left-align or right-align the text strings.
The latter would be related to #429

@JayBrown
Did you ever figure out how to indent/align text?
I'm trying to dump some json data. It looks good on the terminal:
{
  "status": "OK",
  "rows": [
    {
      "elements": [
        {
          "duration": {
            "text": "17 mins",
            "value": 1011
          },
          "distance": {
            "text": "10.8 mi",
            "value": 17377
          },
          "duration_in_traffic": {
            "text": "18 mins",
            "value": 1050
          },
          "status": "OK"
        }
      ]
    }
  ],

But looks ugly in the menubar

I haven't looked into that for quite some time, but as far as I recall, I didn't manage to make this work.
echo -e "\ttest"
echo "   test"
echo -e "\ua0\ua0\ua0test"

all work in Terminal, shell scripts etc., but not in BitBar.

I finally got it to work! Woo Hoo. Game changer!

The trick was to use an invisible character between the dashes for the indent (or whatever) and the actual variable holding the text. It may not copy/paste correctly on here but you can copy paste them from somewhere online which is what I did.
print("----" + '' + line + "| color=white size=11 font='Courier New'")

Looks good in color too:

Oh wow - that does look good. Hey @frakman1 can you share the code for this ?

@johnoscott Sorry for the delay. I was still working on the code. Although not really happy with it, I have put a ribbon on it and declared it feature-complete as of now. You can find it here. Feel free to suggest any improvements on the formatting.


Crash on dynamic_cast

Seeing this crash in ats9 in prod.
It's a bit strange that dynamic_cast would crash this way.  Http2ClientSession is no longer a subclass of PluginIdentity and only PluginVC now is derived from PluginIdentity, but it's odd that instead of returning a nullptr, dynamic_cast is causing a SegFault on attempting to do that.
Everything else about the pointer seems fine (i.e it seems to be a valid SSL VC pointer). Given that, this dynamic_cast is not required anymore (ie no real netvc is of type PluginIdentity anymore, I'm going to try just guarding it with is_internal_request() check to see if it helps. It's still pretty strange that it's crashing like this though.
(gdb) bt
#0  0x00002b88ea38987e in __cxxabiv1::__dynamic_cast (src_ptr=0x2b89451cb5d0, src_type=0x81dd48 <typeinfo for NetVConnection>, dst_type=dst_type@entry=0x7c49d8 <typeinfo for PluginIdentity>, src2dst=src2dst@entry=-2)
    at ../../.././libstdc++-v3/libsupc++/dyncast.cc:71
#1  0x000000000071d0e8 in ProxyTransaction::new_transaction (this=this@entry=0x2b894a65e240, from_early_data=<optimized out>) at ProxyTransaction.cc:46
#2  0x0000000000523c11 in new_transaction (this=0x2b894a65ded0) at Http1ClientSession.cc:473
#3  Http1ClientSession::state_keep_alive (this=0x2b894a65ded0, event=100, data=<optimized out>) at Http1ClientSession.cc:388
#4  0x0000000000770393 in handleEvent (data=0x2b89451cb7b0, event=100, this=0x2b894a65ded0) at /home/svinukon/Traffic/ATS/ats9/ats-core_trunk/ats9/src/iocore/eventsystem/I_Continuation.h:190
#5  read_signal_and_update (vc=0x2b89451cb5d0, event=100) at UnixNetVConnection.cc:83
#6  UnixNetVConnection::readSignalAndUpdate (this=this@entry=0x2b89451cb5d0, event=event@entry=100) at UnixNetVConnection.cc:1016
#7  0x0000000000741d53 in SSLNetVConnection::net_read_io (this=0x2b89451cb5d0, nh=0x2b88ef623d80, lthread=<optimized out>) at SSLNetVConnection.cc:671
#8  0x0000000000760208 in NetHandler::process_ready_list (this=this@entry=0x2b88ef623d80) at UnixNet.cc:412
#9  0x00000000007604fd in NetHandler::waitForActivity (this=0x2b88ef623d80, timeout=<optimized out>) at UnixNet.cc:547
#10 0x00000000007be9ba in EThread::execute_regular (this=this@entry=0x2b88ef620000) at UnixEThread.cc:266
#11 0x00000000007bec82 in EThread::execute (this=0x2b88ef620000) at UnixEThread.cc:327
#12 0x00000000007bd029 in spawn_thread_internal (a=0x2b88ec163ec0) at Thread.cc:92
#13 0x00002b88e9ee3dd5 in start_thread () from /lib64/libpthread.so.0
#14 0x00002b88eac94ead in clone () from /lib64/libc.so.6
(gdb) p *this

(gdb) p *this
$66 = {<Continuation> = {<force_VFPT_to_top> = {_vptr.force_VFPT_to_top = 0x825448 <vtable for NetHandler+16>}, handler = (int (Continuation::*)(Continuation * const, int, void *)) 0x75f8d0 <NetHandler::mainNetEvent(int, Event*)>, mutex = {
      m_ptr = 0x2b88ec51d780}, link = {<SLink<Continuation>> = {next = 0x0}, prev = 0x0}, control_flags = {raw_flags = 0}, thread_affinity = 0x0}, <EThread::LoopTailHandler> = {_vptr.LoopTailHandler = 0x825478 <vtable for NetHandler+64>},
  thread = 0x2b88ef620000, trigger_event = 0x0, read_ready_list = {<DLL<NetEvent, NetEvent::Link_read_ready_link>> = {head = 0x0}, tail = 0x0}, write_ready_list = {<DLL<NetEvent, NetEvent::Link_write_ready_link>> = {head = 0x2b89451cb780},
    tail = 0x2b89451cb780}, open_list = {<DLL<NetEvent, NetEvent::Link_open_link>> = {head = 0x2b8945367a00}, tail = 0x2b8949e724c0}, cop_list = {head = 0x2b891a03b070}, read_enable_list = {al = {head = {s = {pointer = 0x0, version = 0},
        data = 0x00000000000000000000000000000000}, name = 0x7fc219 "AtomicSLL", offset = 136}}, write_enable_list = {al = {head = {s = {pointer = 0x0, version = 0}, data = 0x00000000000000000000000000000000}, name = 0x7fc219 "AtomicSLL", offset = 248}},
  keep_alive_queue = {<DLL<NetEvent, NetEvent::Link_keep_alive_queue_link>> = {head = 0x2b899dee1e20}, tail = 0x2b89451e70a0}, keep_alive_queue_size = 4, active_queue = {<DLL<NetEvent, NetEvent::Link_active_queue_link>> = {head = 0x2b8945333cb0},
    tail = 0x2b89451cb780}, active_queue_size = 51, static global_config = {max_connections_in = 100000, max_connections_active_in = 10000, inactive_threshold_in = 0, transaction_no_activity_timeout_in = 0, keep_alive_no_activity_timeout_in = 0,
    default_inactivity_timeout = 300}, config = {max_connections_in = 100000, max_connections_active_in = 10000, inactive_threshold_in = 0, transaction_no_activity_timeout_in = 0, keep_alive_no_activity_timeout_in = 0, default_inactivity_timeout = 300},
  max_connections_per_thread_in = 2083, max_connections_active_per_thread_in = 208, static CONFIG_ITEM_COUNT = 6, static config_value_affects_per_thread_value = {<std::_Base_bitset<1>> = {_M_w = 3}, <No data fields>},
  static active_thread_types = {<std::_Base_bitset<1>> = {_M_w = 1}, <No data fields>}}

(gdb) p ne->nh
$63 = (NetHandler *) 0x2b88ef623d80
(gdb) p *ne->nh
$64 = {<Continuation> = {<force_VFPT_to_top> = {_vptr.force_VFPT_to_top = 0x825448 <vtable for NetHandler+16>}, handler = (int (Continuation::*)(Continuation * const, int, void *)) 0x75f8d0 <NetHandler::mainNetEvent(int, Event*)>, mutex = {
      m_ptr = 0x2b88ec51d780}, link = {<SLink<Continuation>> = {next = 0x0}, prev = 0x0}, control_flags = {raw_flags = 0}, thread_affinity = 0x0}, <EThread::LoopTailHandler> = {_vptr.LoopTailHandler = 0x825478 <vtable for NetHandler+64>},
  thread = 0x2b88ef620000, trigger_event = 0x0, read_ready_list = {<DLL<NetEvent, NetEvent::Link_read_ready_link>> = {head = 0x0}, tail = 0x0}, write_ready_list = {<DLL<NetEvent, NetEvent::Link_write_ready_link>> = {head = 0x2b89451cb780},
    tail = 0x2b89451cb780}, open_list = {<DLL<NetEvent, NetEvent::Link_open_link>> = {head = 0x2b8945367a00}, tail = 0x2b8949e724c0}, cop_list = {head = 0x2b891a03b070}, read_enable_list = {al = {head = {s = {pointer = 0x0, version = 0},
        data = 0x00000000000000000000000000000000}, name = 0x7fc219 "AtomicSLL", offset = 136}}, write_enable_list = {al = {head = {s = {pointer = 0x0, version = 0}, data = 0x00000000000000000000000000000000}, name = 0x7fc219 "AtomicSLL", offset = 248}},
  keep_alive_queue = {<DLL<NetEvent, NetEvent::Link_keep_alive_queue_link>> = {head = 0x2b899dee1e20}, tail = 0x2b89451e70a0}, keep_alive_queue_size = 4, active_queue = {<DLL<NetEvent, NetEvent::Link_active_queue_link>> = {head = 0x2b8945333cb0},
    tail = 0x2b89451cb780}, active_queue_size = 51, static global_config = {max_connections_in = 100000, max_connections_active_in = 10000, inactive_threshold_in = 0, transaction_no_activity_timeout_in = 0, keep_alive_no_activity_timeout_in = 0,
    default_inactivity_timeout = 300}, config = {max_connections_in = 100000, max_connections_active_in = 10000, inactive_threshold_in = 0, transaction_no_activity_timeout_in = 0, keep_alive_no_activity_timeout_in = 0, default_inactivity_timeout = 300},
  max_connections_per_thread_in = 2083, max_connections_active_per_thread_in = 208, static CONFIG_ITEM_COUNT = 6, static config_value_affects_per_thread_value = {<std::_Base_bitset<1>> = {_M_w = 3}, <No data fields>},
  static active_thread_types = {<std::_Base_bitset<1>> = {_M_w = 1}, <No data fields>}}
(gdb) p ne->read
$65 = {enabled = 1, vio = {cont = 0x2b894a65ded0, nbytes =<PHONE_NUMBER>854775807, ndone = 845, op = 1, buffer = {mbuf = 0x2b89a3328460, entry = 0x0}, vc_server = 0x2b89451cb5d0, mutex = {m_ptr = 0x2b8955727080}, _disabled = false},
  ready_link = {<SLink<NetEvent>> = {next = 0x0}, prev = 0x0}, enable_link = {next = 0x0}, in_enabled_list = 0, triggered = 1}
(gdb) p ((UnixNetVConnection*)client_vc)->con.fd
$33 = 1522
(gdb) p ((UnixNetVConnection*)client_vc)->read
$34 = {enabled = 1, vio = {cont = 0x2b894a65ded0, nbytes =<PHONE_NUMBER>854775807, ndone = 845, op = 1, buffer = {mbuf = 0x2b89a3328460, entry = 0x0}, vc_server = 0x2b89451cb5d0, mutex = {m_ptr = 0x2b8955727080}, _disabled = false},
  ready_link = {<SLink<NetEvent>> = {next = 0x0}, prev = 0x0}, enable_link = {next = 0x0}, in_enabled_list = 0, triggered = 1}
(gdb) p ((UnixNetVConnection*)client_vc)->write
$35 = {enabled = 0, vio = {cont = 0x2b894a65ded0, nbytes = 0, ndone = 0, op = 2, buffer = {mbuf = 0x2b89b929eb40, entry = 0x2b89b929eb80}, vc_server = 0x2b89451cb5d0, mutex = {m_ptr = 0x2b8955727080}, _disabled = false}, ready_link = {<SLink<NetEvent>> = {
      next = 0x0}, prev = 0x0}, enable_link = {next = 0x0}, in_enabled_list = 0, triggered = 1}
(gdb) p client_vc
$36 = (NetVConnection *) 0x2b89451cb5d0
(gdb) p client_vc->sslHandshakeStatus
There is no member or method named sslHandshakeStatus.
(gdb) p ((SSLNetVConnection*)client_vc)->sslHandshakeStatus
$37 = SSL_HANDSHAKE_DONE
(gdb) p ((SSLNetVConnection*)client_vc)->sslSessionCacheHit
$38 = false
(gdb) p ((SSLNetVConnection*)client_vc)->sslHandshakeBeginTime
$39 =<PHONE_NUMBER>913487983
(gdb) p ((SSLNetVConnection*)client_vc)->handShakeBuffer
$40 = (MIOBuffer *) 0x0
(gdb) p ((SSLNetVConnection*)client_vc)->sslVerifyCallback
$41 = (void *) 0x0
(gdb) p ((SSLNetVConnection*)client_vc)->sslVerifyCallbackArgs
$42 = (void *) 0x0
(gdb) p ((SSLNetVConnection*)client_vc)->sslTotalBytesSent
$43 = 2847060
(gdb) p ((SSLNetVConnection*)client_vc)->sslHandshakeEndTime
$44 =<PHONE_NUMBER>090272100
(gdb) p ((SSLNetVConnection*)client_vc)->sslLastWriteTime
$45 = 0
(gdb) p ((SSLNetVConnection*)client_vc)->_serverName
$46 = {_M_t = {
    _M_t = {<std::_Tuple_impl<0, char*, std::default_delete<char []> >> = {<std::_Tuple_impl<1, std::default_delete<char []> >> = {<std::_Head_base<1, std::default_delete<char []>, true>> = {<std::default_delete<char []>> = {<No data fields>}, <No data fields>}, <No data fields>}, <std::_Head_base<0, char*, false>> = {_M_head_impl = 0x2b8949e7d340 "dms-src.linkedin.com"}, <No data fields>}, <No data fields>}}}
(gdb) p ((SSLNetVConnection*)client_vc)->protocol_mask
$47 = 0
(gdb) p ((SSLNetVConnection*)client_vc)->protocol_mask_set
$48 = false
(gdb) p ((SSLNetVConnection*)client_vc)->early_data_buf
$49 = (MIOBuffer *) 0x0
(gdb) p ((SSLNetVConnection*)client_vc)->read_from_early_data
$50 = 0
(gdb) p ((SSLNetVConnection*)client_vc)->verify_cert
$51 = (X509_STORE_CTX *) 0x0
(gdb) p ((SSLNetVConnection*)client_vc)->ssl
$52 = (SSL *) 0x2b898d47b000
(gdb) p *((SSLNetVConnection*)client_vc)->ssl
$53 = {version = 771, type = 0, method = 0x2b88e949d940 <tlsv1_2_server_method_data.22516>, rbio = 0x2b8949e82380, wbio = 0x2b88fc249900, bbio = 0x0, rwstate = 1, in_handshake = 0, handshake_func = 0x2b88e9261c80 <ossl_statem_accept>, server = 1,
  new_session = 0, quiet_shutdown = 0, shutdown = 0, state = 4, rstate = 1, init_buf = 0x100000001, init_msg = 0x100000002, init_num = 0, init_off = 0, packet = 0x0, packet_length = 0, s2 = 0x0, s3 = 0x0, d1 = 0x0, read_ahead =<PHONE_NUMBER>, msg_callback = 0x0,
  msg_callback_arg = 0x0, hit =<PHONE_NUMBER>, param = 0x0, cipher_list = 0x0, cipher_list_by_id = 0x0, mac_flags = 0, enc_read_ctx = 0x2b893036f740, read_hash = 0x0, expand = 0x0, enc_write_ctx = 0x0, write_hash = 0x0, compress = 0x0, cert = 0xffffffff00000000,
  sid_ctx_length =<PHONE_NUMBER>, sid_ctx = '\000' <repeats 28 times>, "\200|\360I", session = 0x0, generate_session_id = 0x0, verify_mode = 0, verify_callback = 0x0, info_callback = 0x0, error = 0, error_code = 0, kssl_ctx = 0x0, psk_client_callback = 0x0,
  psk_server_callback = 0x0, ctx = 0x0, debug = 0, verify_result = 0, ex_data = {sk = 0x0, dummy = 0}, client_CA = 0x0, references = 0, options = 0, mode = 0, max_cert_list = 0, first_packet = 0, client_version = 0, max_send_fragment = 0,
  tlsext_debug_cb = 0x0, tlsext_debug_arg = 0x0, tlsext_hostname = 0x0, servername_done = 0, tlsext_status_type = 0, tlsext_status_expected = 0, tlsext_ocsp_ids = 0x0, tlsext_ocsp_exts = 0x0, tlsext_ocsp_resp = 0x0, tlsext_ocsp_resplen = 0,
  tlsext_ticket_expected = 0, tlsext_ecpointformatlist_length = 0, tlsext_ecpointformatlist = 0x0, tlsext_ellipticcurvelist_length = 0, tlsext_ellipticcurvelist = 0x0, tlsext_opaque_prf_input = 0x0, tlsext_opaque_prf_input_len = 0, tlsext_session_ticket = 0x0,
  tls_session_ticket_ext_cb = 0x0, tls_session_ticket_ext_cb_arg = 0x0, tls_session_secret_cb = 0x0, tls_session_secret_cb_arg = 0x0, initial_ctx = 0x0, next_proto_negotiated = 0x0, next_proto_negotiated_len = 0 '\000', srtp_profiles = 0x0, srtp_profile = 0x0,
  tlsext_heartbeat = 0, tlsext_hb_pending = 0, tlsext_hb_seq = 0, renegotiate = 0, alpn_client_proto_list = 0x0, alpn_client_proto_list_len = 0}
(gdb) p *((SSLNetVConnection*)client_vc)->curHook
Cannot access memory at address 0x0
(gdb) p ((SSLNetVConnection*)client_vc)->curHook
$54 = (APIHook *) 0x0
(gdb) p ((SSLNetVConnection*)client_vc)->sslVerifyCallback
$55 = (void *) 0x0
(gdb) p ((SSLNetVConnection*)client_vc)->sslVerifyCallbackOptions
There is no member or method named sslVerifyCallbackOptions.
(gdb) p ((SSLNetVConnection*)client_vc)->sslVerifyCallbackArgs
$56 = (void *) 0x0

Dug into this some more and it turns out this is likely related to the issue https://github.com/apache/trafficserver/issues/6849 and https://github.com/apache/trafficserver/issues/6850.
The root cause seems to be that the default max_iobuffer_size which is supposed to be an iobuffer size index (and not the raw size) and is used in figuring out the iobuffer index for a caller that asks for a IOBuffer (without explicitly passing in a max), is sometimes garbage. This results in corrupting IOBuffers and ends in weird crashes like a few of these.
(gdb) p max_iobuffer_size
$1 =<PHONE_NUMBER>088831029

(gdb) bt
#0  0x00002b1926ed987e in __cxxabiv1::__dynamic_cast (src_ptr=0x2b19e1b0baf0, src_type=src_type@entry=0x7c1498 <typeinfo for Continuation>, dst_type=dst_type@entry=0x7c5188 <typeinfo for PluginUserArgsMixin>, src2dst=src2dst@entry=-2) at ../../.././libstdc++-v3/libsupc++/dyncast.cc:71
#1  0x00000000004e17ce in TSUserArgGet (data=<optimized out>, arg_idx=0) at traffic_server/InkAPI.cc:6200
#2  0x00002b193e022144 in atscppapi::utils::internal::getTransaction (ats_txn_handle=ats_txn_handle@entry=0x2b19e1b0baf0) at utils_internal.cc:178
#3  0x00002b193e0230ce in (anonymous namespace)::handleTransactionEvents (cont=0x2b192abf4ec0, event=TS_EVENT_HTTP_READ_RESPONSE_HDR, edata=0x2b19e1b0baf0) at utils_internal.cc:76
#4  0x00000000004d7231 in INKContInternal::handle_event (this=0x2b192abf4ec0, event=60006, edata=0x2b19e1b0baf0) at traffic_server/InkAPI.cc:1096
#5  0x00000000004ef7e6 in Continuation::handleEvent (this=0x2b192abf4ec0, event=event@entry=60006, data=data@entry=0x2b19e1b0baf0) at /home/svinukon/Traffic/ATS/ats9/ats-core_trunk/ats9/src/iocore/eventsystem/I_Continuation.h:193
#6  0x00000000004e9517 in APIHook::invoke (this=this@entry=0x2b1928d6df80, event=60006, edata=edata@entry=0x2b19e1b0baf0) at traffic_server/InkAPI.cc:1333
#7  0x000000000054c987 in HttpSM::state_api_callout (this=0x2b19e1b0baf0, event=<optimized out>, data=<optimized out>) at HttpSM.cc:1499
#8  0x000000000054db4b in HttpSM::state_read_server_response_header (this=0x2b19e1b0baf0, event=100, data=0x2b19f25c9130) at HttpSM.cc:2026
#9  0x000000000054fa58 in HttpSM::main_handler (this=0x2b19e1b0baf0, event=100, data=0x2b19f25c9130) at HttpSM.cc:2729
#10 0x000000000076fbbe in handleEvent (data=0x2b19f25c9130, event=100, this=0x2b19e1b0baf0) at /home/svinukon/Traffic/ATS/ats9/ats-core_trunk/ats9/src/iocore/eventsystem/I_Continuation.h:193
#11 read_signal_and_update (vc=0x2b19f25c8f50, event=100) at UnixNetVConnection.cc:83
#12 UnixNetVConnection::readSignalAndUpdate (this=this@entry=0x2b19f25c8f50, event=event@entry=100) at UnixNetVConnection.cc:1016
#13 0x000000000073f64d in SSLNetVConnection::net_read_io (this=0x2b19f25c8f50, nh=0x2b192aa23d80, lthread=<optimized out>) at SSLNetVConnection.cc:674
#14 0x000000000075de68 in NetHandler::process_ready_list (this=this@entry=0x2b192aa23d80) at UnixNet.cc:412
#15 0x000000000075e15d in NetHandler::waitForActivity (this=0x2b192aa23d80, timeout=<optimized out>) at UnixNet.cc:547
#16 0x00000000007bbc0a in EThread::execute_regular (this=this@entry=0x2b192aa20000) at UnixEThread.cc:266
#17 0x00000000007bbe92 in EThread::execute (this=0x2b192aa20000) at UnixEThread.cc:327
#18 0x00000000007ba1e9 in spawn_thread_internal (a=0x2b1928d63a40) at Thread.cc:92
#19 0x00002b1926a33dd5 in start_thread () from /lib64/libpthread.so.0
#20 0x00002b19277e4ead in clone () from /lib64/libc.so.6
(gdb) p max_iobuffer_size
$1 =<PHONE_NUMBER>088831029
(gdb)

Ran ASAN in prod (couldn't run it for longer than an hour before maxing out CPU) and our staging/integration environment (over a day, slow burn as the qps is lower) and found a few heap corruption (in our internal plugins and libraries) and heap overflow issues (#6916 ). After fixing those, the occurrence of this crash dropped significantly (from once every 3-4 hours to 1-2/day).


No such file or directory: './support_dir/support_feature.pkl'

Thanks for your code! but I meet this error when I run your code on COCO dataset, could you please tell me what is this file for？and where could I get it？It seems that the file，train_support_df.pkl，and  10_shot_support_df.pkl organize the support data, so I'm confused about this error.
[08/18 14:15:37 d2.evaluation.evaluator]: Start inference on 5000 images
/home/ly/anaconda3/envs/py3_torch151/lib/python3.7/site-packages/setuptools/distutils_patch.py:26: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first.
"Distutils was imported before Setuptools. This usage is discouraged "
Traceback (most recent call last):
File "fsod_train_net.py", line 118, in
args=(args,),
File "/home/ly/anaconda3/envs/py3_torch151/lib/python3.7/site-packages/detectron2/engine/launch.py", line 62, in launch
main_func(*args)
File "fsod_train_net.py", line 101, in main
res = Trainer.test(cfg, model)
File "/home/ly/anaconda3/envs/py3_torch151/lib/python3.7/site-packages/detectron2/engine/defaults.py", line 516, in test
results_i = inference_on_dataset(model, data_loader, evaluator)
File "/home/ly/anaconda3/envs/py3_torch151/lib/python3.7/site-packages/detectron2/evaluation/evaluator.py", line 141, in inference_on_dataset
outputs = model(inputs)
File "/home/ly/anaconda3/envs/py3_torch151/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in call
result = self.forward(*input, **kwargs)
File "/home/ly/few-shot-object-detection/FewX-master/fewx/modeling/fsod/fsod_rcnn.py", line 126, in forward
self.init_model()
File "/home/ly/few-shot-object-detection/FewX-master/fewx/modeling/fsod/fsod_rcnn.py", line 302, in init_model
with open(support_file_name, 'wb') as f:
FileNotFoundError: [Errno 2] No such file or directory: './support_dir/support_feature.pkl'

finetune training will generate the suppoer_feature.pkl.

Problem solved！ Thank you so much！

Hello. I still have this problem.
when I ran this code, it never made the support_feature.pkl...
(even ./support_dir/)

Bug fixed.

I ran into the same problem, even if I manually created ‘support_dir’, it couldn’t solve the problem