Problem with specific use case, with xpath

Hola,
I'm trying to scrape content off of the HP warranty check page (h20564.www2.hp.com/hpsc/wc/public/home).
I found a way to fill a form and go to the next page, where I get nested tables.
Here's the xpath for the item I'm interested in.
/html/body/div[@id='everything']/div[@id='content']/div[@id='body']/div/table/tbody/tr/td[3]/table/tbody/tr[2]/td/div/form[@id='warrantyCheck']/table[@class='hpui-padding-top-10']/tbody/tr[2]/td[@id='generate_table_yourSerialNumber']/table[@class='hpui-standard-table']/tbody/tr[@class='hpui-normal-row'][1]/td[5]
I've checked the xpath with both xpath helper (chrome extension to GET xpath) and xpather (chrome extension to TEST xpath validity), and it works alright.
I've saved the xpath to the variable item2. The line of code that's causing the issue:
print browser.find_by_xpath(item2).first.text
However, the program fails with this:
Traceback (most recent call last):
File "splintest.py", line 50, in
print browser.find_by_xpath(item2).first.text
File "C:\Python27\lib\site-packages\splinter\element_list.py", line 53, in fir
st
return self[0]
File "C:\Python27\lib\site-packages\splinter\element_list.py", line 44, in g
etitem
self.find_by, self.query))
splinter.exceptions.ElementDoesNotExist: no elements could be found with xpath "
//html/body/div[@id='everything']/div[@id='content']/div[@id='body']/div/table/t
body/tr/td[3]/table/tbody/tr[2]/td/div/form[@id='warrantyCheck']/table[@class='h
pui-padding-top-10']/tbody/tr[2]/td[@id='generate_table_mySerialNumber']/table[@clas
s='hpui-standard-table']/tbody/tr[@class='hpui-normal-row']/td[2]"
Anyone with a HP product to check warranty against, I could really, really use some help!

Two issues I can see with the xpath here:

When viewing the site the final tr class '/tr{@class="hpui-normal-row"]' is not there. Could be worth trying without that class?
Only 4 td contained within the previously mentioned  tr (the inputs for 'serial number' and 'country') whereas your xpath refers to the 5th.

Unless you're seeing something different to me, these need to be addressed first.


Using html2canvas to screen in ifram through content window will add ifram label to the body of ifram, but it can't screen.

error:Can only call open() on same-origin documents

Please tell me how to do it. think you so much

the ifram class name is 'html2canvas-container';

If you could explain in proper English what you are trying to achieve, maybe someone can help you.

I solved same origin issue by proxy.
Check this out.
Originally posted by @Pingren in https://github.com/niklasvh/html2canvas/issues/1532#issuecomment-501636032


Cleanup IOMUXC feature

The PR addresses the TODOs described in #73, updates documentation, adds tests, and describes how users should migrate their code.
The only new feature is that there's a convenience function for erasing all pad types. It turns the struct of strongly-typed pads into arrays of type-erased pads, with arrays named by their grouping (like ad_b0). Here's a comparison of how one access the same physical pad using the strongly-typed interface, and the type-erased interface:
let pads = unsafe { imxrt106x_iomuxc::Pads::new() };
use_pad(&pads.ad_b0.p13);

let erased_pads = pads.erase();
use_erased_pad(&erased_pads.ad_b0[13]);

Closes #26.

In #72, we proposed that we should have an interface crate, imxrt-iomuxc, and then maintain processor-specific crates, like imxrt106x-iomuxc. The latest batch of commits re-thinks this approach. We now have a single imxrt-iomuxc crate that uses feature-flags to include processor-specific pads. I think it will be a simpler to maintain, and it doesn't impact our plans for a split HAL. We discuss the equivalence and trade-offs in 6ff4795.
This PR includes the refactor and IOMUXC consolidation.


Chat reverse

Can u add reverse chat option in chatterino? That there is a new message at the top of the chat?
Its verry usefull features.
Now i solved it with CSS but not through chatterino. :(
Thank you

That's a pretty interesting suggestion actually, I'm surprised nobody has suggested it before.

Messages appear at the bottom just like they do in any other chat client. Changing the direction is very unconventional and too niche to be included. Get used to how it works instead of hanging yourself up on it.

Messages appear at the bottom just like they do in any other chat client. Changing the direction is very unconventional and too niche to be included. Get used to how it works instead of hanging yourself up on it.

So do you want chatterino like any other chat client?  Wtf than why exist if want be like any others.

Not that I would use such a layout myself, but I've seen a similar option in BTTV. That means, that there definitely is an audience for top-to-bottom chat clients, even if it can be considered unconventional.

Messages appear at the bottom just like they do in any other chat client. Changing the direction is very unconventional and too niche to be included. Get used to how it works instead of hanging yourself up on it.

So do you want chatterino like any other chat client? Wtf than why exist if want be like any others.

That's a pretty broad generalization. Not allowing this specific feature obviously doesn't mean that no new features should be added at all.
I have a question. Who's gonna take care of this feature down the road, possibly years into the future?  It's gonna be me and other contributors. Any feature is weight on the development at some point, even years down the line. The code constantly changes and having to consider edge cases like this makes changes a burden down the line. So allowing niche features like this that don't like this is not worth it.

Messages appear at the bottom just like they do in any other chat client. Changing the direction is very unconventional and too niche to be included. Get used to how it works instead of hanging yourself up on it.

So do you want chatterino like any other chat client? Wtf than why exist if want be like any others.

That's a pretty broad generalization. Not allowing this specific feature obviously doesn't mean that no new features should be added at all.
I have a question. Who's gonna take care of this feature down the road, possibly years into the future?  It's gonna be me and other contributors. Any feature is weight on the development at some point, even years down the line. The code constantly changes and having to consider edge cases like this makes changes a burden down the line. So allowing niche features like this that don't like this is not worth it.

Ok i understand your reason, BUT if in css is it just this "{ display: flex; flex-direction: column-reverse; top: 0; bottom: unset; }" so how much its hard to care about it. Plus one more button in settings. Is it really still not worth it?

Ok i understand your reason, BUT if in css is it just this "{ display: flex; flex-direction: column-reverse; top: 0; bottom: unset; }" so how much its hard to care about it. Plus one more button in settings. Is it really still not worth it?

It maybe just a little CSS. However this app is not a browser. Chatterino is made in c++ using Qt. From the user's perspective, it is an incredibly simple feature: Just place messages from the bottom, how hard could it be. But when looking at it as a programmer (and contributor) it's not as simple anymore. Updating how messages are placed is way more work here (there is no CSS and messages are placed manually). Ensuring this doesn't break with such a small user base (three potential users) doesn't help either. As with any change Chatterino gets more cluttered code-wise and user interface-wise (the settings already need a search bar!).

ok thank you for explain so best way for this is still pop up twitch chat. Just offtopic.. what is your vision with chatterino ? or what should be the benefit :)


Add note for installation on Apple Silicon

We really want this to be a straightforward/easy/student-friendly setup, so I think it's probably worth adding a note/link to rosetta instructions for Apple Silicon machines.

Leaving this note for myself as much as anything, but this is the link Aaron J. provided for installing on Apple silicon:
https://conda-forge.org/docs/user/tipsandtricks/#installing-apple-intel-packages-on-apple-silicon

For ease of use the first instruction to try is:
micromamba env create --platform osx-64 --file anaconda-env.yml
Closing this issue.

The same instruction is now in the readme.


HADOOP-17682. ABFS: Support FileStatus input to OpenFileWithOptions() via OpenFileParameters

2975

 Quality gate: Failed
9 Issues

 1 Vulnerabilities
 8 Code issues

Details


LUCENE-9928: speed up analysis/icu regeneration

The compilation of the library is slow, disable optimization as it doesn't speed up our usage of the gennorm2 tool.

@dweiss, thanks for the assistance. using the additional cores shaved another 10s off on my mac.
bench of latest patch on mac (uses LLVM/clang vs GCC, has 6 cores):
before: 82.68 sec.  compileIcuLinux
after:    53.11 sec.  compileIcuLinux

Nice! Still - these should only run very infrequently, right? On 8x we regenerated every few... months? :) I'm sorry for delays on other issues, full queue of priorities.

@dweiss I'm using regenerate -x bigDFA quite often, and this icuCompileLinux task is my bottleneck. I've been running this quite often recently! This patch drops it from 160s -> 126s (see JIRA) on my main machine.

Sure, no problem. If you reuse it often then you could also try to make it fully incremental by adding inputs and outputs to that task, then it'd be skipped if there's no need to recompile.

I'm forcing --rerun-tasks when i do this. For the icu regeneration the primary input is the jar file version as I mentioned before.


Need a inject node thats works with the Alexa Smarthome Action node?

I can't seem to get a inject node to send info to Smarthome Node / Action for a temperature valve, or see the Error!
Can you make an examples?

I have something like this and works:

The function defines the payload and send it to the smarthome action with option "Action" selected.
The topic should be the device name into Alexa:


Contributing guide

This describes how to setup and us VS Code for contributions and also demonstrates the git workflow using VS Code.

Any chance someone could look this over and approve it? Been two weeks....

Any chance someone could look this over and approve it? Been two weeks....

Jason, I need some time, I reviewing it currently.

@veena-ux have you been able to review this? Note, this won't be in the actual documentation, it's for anyone who wants to contribute to the docs.


Use Multi_GPU for Model Serving

Description
Hello All,
I have trained a T2T model and exported model, then used tensorflow-serving and nvidia docker to serving my model. It works fine on one GPU scenario: load a model on GPU and starting serving, the GPU usage is normal.
However, since I have 8 GPUs, I am thinking to deploy same model on each of my GPU. Then when I have a list of source texts to translate, I can just split them into batches and send each batch to model on different GPUs, kind of like parallel computing to speed up translation. I know concurrent.futures.ProcessPoolExecutor helps utilize multiple CPU workers to do task, but don't know if there's such method for multiple GPU. So far I couldn't figure out a way to do such experiment, is that possible? if so, how to do it? Is there any more efficient way to do the same thing?
Thank you all in advance.
OS: Ubuntu 16.04

$ pip freeze | grep tensor
mesh-tensorflow==0.0.5
tensor2tensor==1.13.4
tensorboard==1.14.0
tensorflow-estimator==1.14.0
tensorflow-gpu==1.14.0
tensorflow-hub==0.5.0
tensorflow-probability==0.7.0
tensorflow-serving-api-gpu==1.14.0

$ python -V
3.6

For bugs: reproduction and error logs
# Steps to reproduce:
...

# Error logs:
...

how 头 都 a 戏精
答复快捷键花嫁卡的算法


Built-in behavior of rest api error.

When users are using the admin website, I found there is no built-in notification for api error.
The errors are silence and users who doesn't have programming background can't notice what's going on - even if it is saved, waiting or nothinig.

This was fixed in master (#361), to be released soon as a bugfix.

Thanks!


Enable 'php_apc' crashed newrelic_plugin_agent

Hello there
When I enable php_apc monitoring:
  php_apc:
    name: hostname
    scheme: http
    host: localhost
    verify_ssl_cert: false
    port: 80
    path: /apc-nrp.php

I got this:
------------------------------------------------------------------------ [START]
/usr/local/bin/newrelic-plugin-agent Exception [2018-04-27T07:10:14.511446]
------------------------------------------------------------------------- [INFO]
Interpreter: /usr/bin/python
CLI arguments: /usr/local/bin/newrelic-plugin-agent -c /etc/newrelic/newrelic_plugin_agent.cfg
Exception: 'NoneType' object has no attribute 'get'
Traceback:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/helper/unix.py", line 92, in start
    self.controller.start()
  File "/usr/local/lib/python2.7/dist-packages/helper/controller.py", line 266, in start
    self.run()
  File "/usr/local/lib/python2.7/dist-packages/helper/controller.py", line 253, in run
    self.process()
  File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent/agent.py", line 118, in process
    self.start_plugin_polling()
  File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent/agent.py", line 280, in start_plugin_polling
    self.config.application.get(plugin))
  File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent/agent.py", line 108, in poll_plugin
    thread.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent/agent.py", line 308, in thread_process
    obj.poll()
  File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent/plugins/base.py", line 460, in poll
    self.add_datapoints(data)
  File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent/plugins/php_apc.py", line 36, in add_datapoints
    system_stats.get('nslots',
AttributeError: 'NoneType' object has no attribute 'get'
-------------------------------------------------------------------------- [END]

Without this module everything is fine.
apc-nrp.php working:
curl localhost/apc-nrp.php
{"system_stats":null,"user_stats":{"num_slots":2053,"ttl":7200,"num_hits":63,"num_misses":9,"num_inserts":9,"num_entries":9,"expunges":0,"start_time":1524761237,"mem_size":76848,"memory_type":"mmap"},"shared_memory":{"num_seg":1,"seg_size":134217592,"avail_mem":134123560}}

System info:
newrelic-plugin-agent (1.3.0)
Python 2.7.13
Here is my config:
https://pastebin.com/aAyK0nGv

I think my problem have been solved, when author accepted pull request: https://github.com/MeetMe/newrelic-plugin-agent/pull/504/files.
Because I using PHP 7 with php-apcu module.


Simulation Function

Hi @Mattehub, @aopy, @Dishie2498 and @brovelli,
@Mattehub wrote a function to simulate HOIs using multivariate Gaussians. @aopy accepted to improve the draft of the function and make the PR to integrate it inside the HOI package. @Dishie2498 and I will be in charge of reviewing the PR.
Main features implemented

[x] Generate HOIs between triplets and quadruplets nodes (output shape (n_samples, n_features))
[x] HOIs can also occur with an external variable (a.k.a. "task-related")
[x] The HOIs can be dynamic (input shape (n_samples, n_features, n_variables)). In that case, there's a bump in the HOIs.

Things that need to be done

[ ] We are targeting a broad audience, not only Neuroscience. Consequently, we need to remove any reference to neuroscientific data (brain areas, trials, ROI etc.). We used the following convention for inputs and outputs shapes: n_samples, n_features, n_variables
[ ] The code needs to pass the Black and Flake8 coding styles
[ ] Output type should be NumPy arrays

Function definition
For the moment, let's start simple and focus on a single function to simulate HOIs and let's set aside the task-related part for the moment. Here's a proposition for the function definition :

def simulate_hois_gauss(
    n_samples=200, n_features=4, n_variables=1, triplets=[(0, 1, 2), (1, 2, 3)],
    tiplet_types=['redundancy', 'synergy']
    )
    """Simulate higher-order interactions.

    n_samples: number of samples
    n_features: number of nodes
    n_variables: number of repetitions. This parameter can be used to simulate dynamic hoi
    triplets: list of triplets of nodes linked by hoi.
    tiplet_types: specify whether each triplet interaction type should be redundant or synergistic. By default
    the function generates redundant interactions between nodes (0, 1, 2) and synergistic interactions between
    nodes (1, 2, 3).
    """
    pass

A typical minimal use case :
from hoi.simulation import simulate_hois_gauss
from hoi.metrics import Oinfo
from hoi.utils import get_nbest_mult

# simulate hois
x = simulate_hois_gauss()

# compute hois
model = Oinfo()
hoi = model.fit(x)

# print the results and check that it correspond to the ground truth
df = get_nbest_mult(hoi, model=model)

Merged #26


Don't bring babel (2MB) into the client side.

Just evaluate your templates using string.replace's callback... then render the html raw. (there is no need to parse it as JSX into JS)

See it working in this fiddle: https://jsfiddle.net/97ugmkba/


Switch test images.

The new test image is sparsely populated (not all tiles exist at higher levels), so the test was modified to accommodate that condition.

Great, thanks. However, it now looks like even that image may not be appropriate for long-term release, and the attempt to scan a fresh test image this morning resulted in something that's 86MB, which is still too large for my liking.

LGTM for now. I reserve the right to be obnoxious and change it again at some point.


Adding routes in frontend

Hii I am Abhinav. I want to add routes to the application in the frontend and create there page and restructure them according to the production level application.

Hii I am Abhinav. I want to add routes to the application in the frontend and create there page and restructure them according to the production level application.

Hello @Abhinavhaldiya , Go for it
All the Best

Hii I am Abhinav. please assign me the issue.

Hii @Trisha-tech can you check the pr (Adding routes for the bookstore and order page #126) That's the pr for the this issue. Can you just check that once

Hello! I would like to take on the issue of adding routes to the frontend of the project. I believe this will enhance navigation and improve the overall user experience. Please assign this issue to me, and I’m excited to contribute to the project! Thank you!


How to reduce the time of post-processing?

Although the network forward time only about 5ms, But the post-processing time on my laptop is up to 150 ms.
The main time-consuming places are 98 to 102 lines in detect.py,  generating the prior box take up a lot of time, What can we do to reduce it? thanks

It looks like all the priorboxes are created, even the ones who are associated with an anchor without a match, then all the locations and all the priorboxes are send to decode and it's only later that the uninteresting predictions are discarded (line 114 through 124).
I think it's possible to do the opposite, first discard uninteresting predictions, then generate only the priorboxes corresponding to the interesting propositions and then decode them. This might provide the speedup you seek.

Personally, I run the code in C++ and have my own code that generates prior boxes once and caches the result.
    std::vector<std::array<float, 3>> generateDefaultBoxRetina(int width, int height, bool eight)
    {
        std::vector<std::array<float, 3>> boxes;

        // Perform pyramid boxes
        std::vector<int> feature_map_sizes = eight ? std::vector<int>{8, 16, 32} : std::vector<int>{16, 32, 64};
        std::vector<std::vector<int>> min_sizes = {{16, 32}, {64, 128}, {256, 512}};
        for (int e = 0; e < feature_map_sizes.size(); ++e)
        {
            auto fmap = feature_map_sizes.at(e);
            const int maxH = (int)std::ceil((float)height / (float)fmap);
            const int maxW = (int)std::ceil((float)width / (float)fmap);
            for (int h = 0; h < maxH; ++h)
            {
                for (int w = 0; w < maxW; ++w)
                {
                    for (const auto &min_size : min_sizes.at(e))
                    {
                        const float sz = (float)min_size;
                        auto addBox = [&boxes, &sz, &w, &h, &fmap](float xo, float yo) {
                            const float cx = (w + xo) * fmap;
                            const float cy = (h + yo) * fmap;
                            boxes.push_back({cx, cy, sz});
                        };
                        addBox(0.5f, 0.5f);
                    }
                }
            }
        }

        return boxes;
    }

@xsacha @mooss Thank you for your answer. It's very helpful to me.


Ml speed

Does a few things

Create our own custom feature generator object which forces AutoGluon to use our features as is. This doesn't seem to save too much time as is, but with larger datasets this could help multiple passes of the features & (not sure how to test this) may save the memory that AutoGluon eats up when it creates multiple sets of features
Pass in the type of each feature as we're in the unique position that we know what each feature is.

Only question would be when we implement #34 if a user supplies a custom feature that is say, a float, we may have trouble. Should we check and see if we ran nPrint to create the dataframe before making these smaller optimizations?

We already talked about the Test & Lint workflow. Just since I'd already opened it up (and it doesn't post the details here):
$ tox -e lint
…
src/nprintml/learn/automl.py:105:44: E124 closing bracket does not match visual indentation
src/nprintml/learn/automl.py:106:1: W293 blank line contains whitespace

(Also FYI you can of course install plugins for this kind of stuff into your editor.)

Like we were saying I see from the benchmark workflow a speed improvement of ~2s or ~0.5%. I wouldn't call that much but I'll take it :smile:
(And yes we're not yet monitoring memory usage.)
I think this type of improvement makes sense regardless.

Oh very minor thing – since we're accumulating changesets here it would be great when we do merge to do so via squash. This is easy enough via Github. (I'll do so if I'm the one to merge, but just FYI.)

Ok, figured out how to extract the command from the tests to pass locally. Really great stuff. I'm going to let you squash and merge this one read up on how exactly to do so moving forward.

:+1:
(Also a good idea to give the squashed changeset a useful commit message -- generally just pulled from others / PR.)


Adds SINGULARITY Token to devnet

Please note: This repository is being rebuilt to accept the new volume of token additions and modifications. PR merges will be delayed.

I agree to not ping anybody on Discord/Twitter/email about this pull request. Instead I will inquire by posting a new comment in the pull request if needed.

PRs are reviewed in bulk and and can take up to two weeks to be merged.
This repository is managed using an auto merge action. Please ensure your PR has no deleted lines, and it will be merged.
Please provide the following information for your token.
Please include change to the src/tokens/solana.tokenlist.json file in the PR.
DON'T modify any other token on the list.
At minimum each entry should have

Token Address: 3sJWs1uNphtHMVrqqP6foFxNTi1XLa6BZiyftq41y6kQ
Token Name: Singularity
Token Symbol: SINGULARITY
Logo: https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/3sJWs1uNphtHMVrqqP6foFxNTi1XLa6BZiyftq41y6kQ/logo.png
Link to the official homepage of token: https://singularityonline.app
Coingecko ID if available: N/A

Auto merge requirements
Your pull request will be automatically merged if the following conditions are met:

Your pull request only adds new tokens to the list. Any modification to existing
tokens will require manual review to prevent unwanted modifications.

Your pull request does not touch unrelated code. In particular, reformatting changes to unrelated
code will cause the auto merge to reject your PR.

Any asset files added correspond to the token address you are adding. Asset files
must be PNG, JPG or SVG files.

Your change is valid JSON and conforms to the schema. If your change failed validation,
read the error message carefully and update your PR accordingly.

No other tokens shares the same name, symbol or address.

For example, this change would be rejected due to unrelated changes:

The bot runs every 60 minutes and bulk-merges all open pull requests to prevent conflicts.
This means that you need to wait up to 60 minutes for your pull request to be merged or reprocessed.

See related issue #5013

/retry


[BUG][Security Plugin] Can't upload configuration

Describe the bug

ERR: Seems /usr/share/opensearch/plugins/opensearch-security/securityconfig/config.yml is not in OpenSearch Security 7 format: java.io.FileNotFoundException: /usr/share/opensearch/plugins/opensearch-security/securityconfig/config.yml (No such file or directory)
ERR: Seems /usr/share/opensearch/plugins/opensearch-security/securityconfig/whitelist.yml is not in OpenSearch Security 7 format: java.io.FileNotFoundException: /usr/share/opensearch/plugins/opensearch-security/securityconfig/whitelist.yml (No such file or directory)
ERR: cannot upload configuration, see errors above

This tool will be deprecated in the next major release of OpenSearch **
** https://github.com/opensearch-project/security/issues/1755           **
**************************************************************************
Security Admin v7
Will connect to <IP_ADDRESS>:9200 ... done
Connected as *****************"
OpenSearch Version: 2.3.0
Contacting opensearch cluster 'opensearch' and wait for YELLOW clusterstate ...
Clustername: *****
Clusterstate: GREEN
Number of nodes: 5
Number of data nodes: 5
.opendistro_security index already exists, so we do not need to create one.
Populate config from /usr/share/opensearch/plugins/opensearch-security/securityconfig/
ERR: Seems /usr/share/opensearch/plugins/opensearch-security/securityconfig/config.yml is not in OpenSearch Security 7 format: java.io.FileNotFoundException: /usr/share/opensearch/plugins/opensearch-security/securityconfig/config.yml (No such file or directory)
Will update '/roles' with /usr/share/opensearch/plugins/opensearch-security/securityconfig/roles.yml
   SUCC: Configuration for 'roles' created or updated
Will update '/rolesmapping' with /usr/share/opensearch/plugins/opensearch-security/securityconfig/roles_mapping.yml
   SUCC: Configuration for 'rolesmapping' created or updated
Will update '/internalusers' with /usr/share/opensearch/plugins/opensearch-security/securityconfig/internal_users.yml
   SUCC: Configuration for 'internalusers' created or updated
ERR: Seems /usr/share/opensearch/plugins/opensearch-security/securityconfig/action_groups.yml is not in OpenSearch Security 7 format: java.io.FileNotFoundException: /usr/share/opensearch/plugins/opensearch-security/securityconfig/action_groups.yml (No such file or directory)
Will update '/tenants' with /usr/share/opensearch/plugins/opensearch-security/securityconfig/tenants.yml
   SUCC: Configuration for 'tenants' created or updated
ERR: Seems /usr/share/opensearch/plugins/opensearch-security/securityconfig/nodes_dn.yml is not in OpenSearch Security 7 format: java.io.FileNotFoundException: /usr/share/opensearch/plugins/opensearch-security/securityconfig/nodes_dn.yml (No such file or directory)
ERR: Seems /usr/share/opensearch/plugins/opensearch-security/securityconfig/whitelist.yml is not in OpenSearch Security 7 format: java.io.FileNotFoundException: /usr/share/opensearch/plugins/opensearch-security/securityconfig/whitelist.yml (No such file or directory)
ERR: cannot upload configuration, see errors above

To Reproduce
Steps to reproduce the behavior:

Clone https://github.com/opensearch-project/ansible-playbook.git
Customize Variables in inventories/opensearch/hosts and inventories/opensearch/group_vars/all/all.yml
2.1 Fix various other problems with the Playbook, already mentioned in the Issues, which hinder the Playbook getting this far
Run ansible-playbook -i inventories/opensearch/hosts opensearch.yml --extra-vars "admin_password=Test@123 kibanaserver_password=Test@6789" --become
Get stuck on Security Plugin configuration | Initialize the opensearch security index in opensearch

Expected behavior
I expect the Playbook to run successfully and not into errors.
Playbook Name
roles/linux/opensearch/tasks/security.yml
Host/Environment (please complete the following information):

Freshly installed linux systems
OpenSearch & Dashboards v2.3.0
Playbook https://github.com/opensearch-project/ansible-playbook/commit/a2a7f285e5a6361909a09fee5520a48e61eae2cb

@ssi444 ^ Would you mind provide some context to the issue @ng-bsy is facing due to the commit?
Thanks!

@peterzhuamazon @ng-bsy
-cd {{os_sec_plugin_conf_path }} - applies all files
-f {{os_sec_plugin_conf_path }}/internal_users.yml - applies only 1 file

I checked on version 1.3, I haven't looked at version 2 yet. I'll see how the time is and I'll write.

Where does the securityconfig/config.yml come from, by the way, when not using auth_type 'oidc' ?
https://github.com/opensearch-project/ansible-playbook/blob/main/roles/linux/opensearch/tasks/security.yml#L149-L158

This file is in the OpenSearch package. With auth_type 'internal', this file is simply not overwritten and that's it

@peterzhuamazon @ng-bsy
In version 2.x, the security plugin files were moved from the {os_home}/plugins/opensearch-security/security config directory to the {os_home}/config/opensearch-security directory. To work correctly, you need to change the value of the os_sec_plugin_conf_path variable in the inventories/opensearch/group_vars/all/all.yml file
I had this
os_home: /OS/opensearch
os_conf_dir: /OS/opensearch/config
os_plugin_bin_path: /OS/opensearch/bin/opensearch-plugin
os_sec_plugin_conf_path: /OS/opensearch/plugins/opensearch-security/securityconfig
os_sec_plugin_tools_path: /OS/opensearch/plugins/opensearch-security/tools

os_dashboards_home: /OS/opensearch-dashboards
os_dashboards_conf_dir: /OS/opensearch-dashboards/config
os_dashboards_plugin_bin_path: /OS/opensearch-dashboards/bin/opensearch-dashboards-plugin

It became so
os_home: /OS/opensearch
os_conf_dir: /OS/opensearch/config
os_plugin_bin_path: /OS/opensearch/bin/opensearch-plugin
os_sec_plugin_conf_path: /OS/opensearch/config/opensearch-security
os_sec_plugin_tools_path: /OS/opensearch/plugins/opensearch-security/tools

os_dashboards_home: /OS/opensearch-dashboards
os_dashboards_conf_dir: /OS/opensearch-dashboards/config
os_dashboards_plugin_bin_path: /OS/opensearch-dashboards/bin/opensearch-dashboards-plugin

There is another pitfall associated with --become. This task will also be performed with elevated privileges, but on the local computer and if this cannot be done, an error will occur.
I started connecting to the OS nodes by the root user and there was no problem, but if another user connects, for example, ubuntu, an error will occur.
If you add become: no to this task, then it does not help. We need to think about it...
- name: Security Plugin configuration | Check that the files/internal_users.yml exists
  stat:
    path: files/internal_users.yml
  register: custom_users_result
  delegate_to: localhost
  run_once: true

and
- name: Security Plugin configuration | Check for a custom configuration for internal users and hash passwords for them

Fixed in #80


CSS folder not found on IIS .net core wwwroot

Somehow I decided to build my web API and client separately after several hours failed to combine .net core 2.2 with vue+vuetify.
I build the client using Vue CLI, with this config:
module.exports = {
  publicPath: process.env.NODE_ENV === 'production' ? '/joblist/' : '/',
}

Then place the content of dist folder to wwwroot folder on .net core project, I use below code to enable static files serving:
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
    if (env.IsDevelopment())
    {
        app.UseDeveloperExceptionPage();
    }
    else
    {
        app.UseHsts();
    }

    app.UseDefaultFiles();
    app.UseStaticFiles();
    app.UseMvc();
}

Everything looks perfect when I debug with APP URL set to http://localhost:49602/joblist. But somehow when I publish to my Server, which is myserver/joblist, the server can't serve EVERYTHING placed inside wwwroot/css folder, so the site looks ugly.
At first, I thought the problem is the wwwroot path or something like that, but I can browse to wwwroot/js folder perfectly, I try add an empty txt file on css folder, but still I can’t open it from web browser, then I try to rename wwwroot/css folder to wwwroot/notcss, then update the HTML file to point at notcss folder, the site works perfectly this time.
Can anybody help me with this problem?

Hi. It looks like this is a question about how to use ASP.NET Core. While we do our best to look through all the issues filed here, to get a faster response we suggest posting your questions to StackOverflow using the asp.net-core-mvc tag.


Group - All recents users selected when clicking on "Add to group"

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: v1.4.36-0
Reproducible in staging?: y
Reproducible in production?: yn
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:

Click on "+"
Go to the "Start chat"
Click on "Add to group" of recents users

Expected Result:
Only one user should be selected when clicking on "Add to group"
Actual Result:
All recents users selected when clicking on "Add to group"
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/93399543/e4e7ddbf-aeca-402b-9fcb-2ce6f9eb4d73
View all open jobs on GitHub

We think that this bug might be related to #vip-vsb
CC @quinthar

Offending PR: https://github.com/Expensify/App/pull/34847
cc @Krishna2323

I believe it is caused by this very large PR
Debugging locally and there seems to be some issue with this commit

The option selector isSelected logic compares multiple fields and some of these fields are not unique depending on the supplied list, e.g.:

List of policies, we should compare policy id
List of reports, we should compare report id
List of accounts, we should compare account id

The problem is that the option selector does not know the type of list so even if we are supplying a list of account it still compares the policy id field (which is not unique among accounts).
I think the best to do here is to compare keyForList as it's the only field that's guaranteed to be unique.

Proposal
Please re-state the problem that we are trying to solve in this issue.
In Add to group scenario, when a user is selected into a group, all the recent users also get selected. This is the problem we are solving here.
What is the root cause of that problem?
Offending PR is #33280 and offending code is here
Here, we check if the policy matches for option and item. However, since the policy ID report may contain a fake value _FAKE_, this would return isSelected true thereby causing the recent list items to be selected. This is the root cause of the problem here.
What changes do you think we should make in order to solve the problem?
To fix this, we should also additionally check if it contains a _FAKE_ value here like this:
        if (option.policyID && option.policyID !== CONST.POLICY.ID_FAKE && option.policyID === item.policyID) {

What alternative solutions did you explore? (Optional)

@s77rt I feel like your solution works the best. Since you review the PR, could you raise a PR to fix this please?

@hayata-suenaga https://github.com/Expensify/App/pull/35770

This can be closed. No payment is due here since it's part of the ideal nav.

Closing as per the comment above

Payment summary:
$500 - @s77rt (NewDot)

@MitchExpensify No payment is required here.

yep this is an issue for a regression stemmed from the Ideal Nav PR
sorry about that I should have specified that


Add better typings to $db functions.

This PR improves upon the existing $db typings, providing type safety throughout the process:
type MySchema = {
    _id: "my_schema",
    someData: number[]
}

$db.us<MySchema>({
    _id: "my_schema"
}, {
    $setOnInsert: {
        someData: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
    }
});

Thank you for beginning work on this. I have taken what you've done so far and and kept adding to and tweaking it over at the Longboyy/db-types branch.

it took me a while, but I finally got your changes merged into main


Type mismatch when make build

I tried to make build PLFA and encountered the following error:
$ make build
Building PLFA...
cabal  v2-update
Downloading the latest package list from mirrors.ustc.edu.cn
Package list of mirrors.ustc.edu.cn is up to date.
The index-state is set to 2024-02-20T21:39:04Z.
cabal  v2-run builder -- build -j --lint --profile=_cache/reports/build.html --timing
Build profile: -w ghc-9.4.8 -O1
In order, the following will be built (use -v for more details):
 - plfa-22.8 (exe:builder) (first run)
Preprocessing executable 'builder' for plfa-22.8..
Building executable 'builder' for plfa-22.8..
[1 of 1] Compiling Main             ( tools/Buildfile.hs, /mnt/d/Source/plfa/dist-newstyle/build/x86_64-linux/ghc-9.4.8/plfa-22.8/x/builder/build/builder/builder-tmp/Main.o )

tools/Buildfile.hs:273:28: error:
    • Couldn't match type ‘base64-1.0:Data.Base64.Types.Internal.Base64
                             'base64-1.0:Data.Base64.Types.Internal.StdPadded LazyText.Text’
                     with ‘LazyText.Text’
        arising from a functional dependency between constraints:
          ‘?getDigest::FilePath -> Action (Maybe LazyText.Text)’
            arising from a use of ‘getStylesheetField’ at tools/Buildfile.hs:273:28-45
          ‘?getDigest::FilePath
                       -> Action
                            (Maybe
                               (base64-1.0:Data.Base64.Types.Internal.Base64
                                  'base64-1.0:Data.Base64.Types.Internal.StdPadded LazyText.Text))’
            arising from the implicit-parameter binding for ?getDigest at tools/Buildfile.hs:229:7-15
    • In a stmt of a 'do' block: stylesheetField <- getStylesheetField
      In the expression:
        do src <- Route.source out
           tocField <- getTableOfContentsField ()
           (fileMetadata, indexMarkdownTemplate) <- getFileWithMetadata src
           stylesheetField <- getStylesheetField
           ....
      In the second argument of ‘(%>)’, namely
        ‘\ out
           -> do src <- Route.source out
                 tocField <- getTableOfContentsField ()
                 ....’
    |
273 |         stylesheetField <- getStylesheetField
    |                            ^^^^^^^^^^^^^^^^^^
make: *** [Makefile:33: build] Error 1

Here is my building environment:
$ cabal --version
cabal-install version <IP_ADDRESS>
compiled using version <IP_ADDRESS> of the Cabal library

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 9.4.8

$ agda --version
Agda version 2.6.3

This issue can be reproduced on Windows 11 and Archlinux/Ubuntu in WSL.

This can probably be fixed with an upper bound on the base64 package.

Fixed.


⚠ Bofrost.at has degraded performance

In e538056, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1250 ms

Resolved: Bofrost.at performance has improved in e73f141.


Better Docker workflow

Docker workflow leaves some things to be desired today.

[ ] User should be informed of status re: pulling, crashed container, etc. ...
[ ] No anchor available in container stuff (https://github.com/workbenchapp/solana-workbench/issues/6)
[ ] User should be able to toggle local env (i.e., local solana-test-validator) vs. Docker exec style?
[ ] Validator run and logs don't communicate their loading status well
[ ] State would not be persisted if validator container needed to be persisted (annoying, because airdrops and accounts would have to be re-created). We need to use a volume here.

I am thinking of moving docker to its own separate global state, so all different conditions (i.e uninstalled, permission deined etc) can be handled in it. It will enable us make sure docker can be used, before attempting to run any containers.

I am thinking creating a global state for docker, so all different conditions (i.e uninstalled, permission deined etc) can be handled in it. It will enable us make sure docker can be used and warn users, before attempting to run any containers.

Seems reasonable

Yea, to scribble down some additional thoughts / discussion points, I'd like to strive towards smooth integration between the Docker workflow (hopefully also available as a local run as well at $SOME_POINT_IN_FUTURE...), Anchor tests, and Amman.
To elaborate a bit more -- there is a problem setup --

Amman has its own view of the validator life cycle
Workbench has its own view of the validator life cycle (in container)
anchor test also has its own view of the validator life cycle (it will start a validator on test run)

We could merge these all together in the Workbench --

Validator start/stop would be managed by Amman in the container (in flight)
Workbench adds support for selecting an Anchor repo to watch and controlling the validator lifecycle with Anchor's flags to skip things it usually handles (anchor test --skip-local-validator --skip-build)

the resulting workflow would then be something like:

Workbench watches for file changes in an Anchor repo
On relevant file change, Workbench runs anchor build (perhaps exec'd in container)
Amman config includes the BPF .so from target/ as a program to include at validator start
Workbench runs amman stop, amman start
Workbench runs anchor test --skip-local-validator --skip-deploy --skip-build

This assumes a desire to wipe persisted validator state each time -- but we could also make it so that anything the user wants to actually keep around gets dropped into the Amman config

bonus -- Anchor doesn't current upload the IDL account automatically on test at the moment (https://github.com/coral-xyz/anchor/issues/1844 ), which is a bit annoying as it's quite helpful decoding what's otherwise gibberish in the explorer -- until upstream adds support for that, we could add it in the loop above (anchor idl init -f ./target/idls/prog.json <program_pubkey>)

being able to "import" a repo into workbench for tracking might also help with https://github.com/workbenchapp/solana-workbench/issues/146 cause we could parse Anchor.toml etc

Are you guys planning to replace dockerised validator with anam or give both options to the user?

Dockerized Amman replacing running validator directly yea. @SvenDowideit started  https://github.com/workbenchapp/solana-workbench/pull/149, Sven could you check in with @sammanadh to see how he could be most helpful there?

hummm... so we will be dockerizing amman..

The POC i did to make sure it wasn't a bad idea, uses daonetes/solana-amman:v1.10.27 a not optimized docker hub image that has rust, node, solana and amman (and was supposed to have anchor, but that needs work)
@sammanadh would you like to take over #149? What I'm envisioning, is to separate start/stop/remove container (basically the tail) from start/stop/snapshot/restart validator (which would use docker exec), and then the log view would use docker exec validator tail -f /...
What we want to enable by doing this, is for workbench to generate an ammanrc.json file, created from user selected program ids (from main/dev net), uploaded .so files, and account data that can be pulled in the same way. And then later to add amman snapshot save&load.


Automate running sanity checks via CI

As of now, we only run very minimal checks against the artifacts generated in the CI and manually running sanity check (backup -> restore -> incremental backup -> restore) against all architectures and platforms is not feasible. The idea is to automate this via GitHub CI. This can be a manually triggered job(by specifying a commit or against main) which will be run before we do a release and can be used to make sure everything is working.

This test has following steps:-

Download and install Corso using instructions in Docs
Expectation: Corso is installed and corso --version returns as expected

Create a new repo
Expectation: New repo is successfully created

Create first backup for a single user

Exchange
OneDrive

Expectation: Each backup is successful and available with corso backup details <service>

Create another backup without any changes to the user account data (test incremental)

Exchange
OneDrive

Expectation: Backup should complete faster and output should indicate that no new items were added to backup

Restore data for user from full backup. For all cases restore an item and a folder for each type

Exchange - mail, events, contacts
OneDrive - files

Expectation: Each restore is successful and can be seen in user’s M365 account

Create backup again after restore (test incremental)
Expectation: This should pick up newly restored files form (5)

Restore items from the newly picked up previously restored folders in (6)

Closing this issue. Enhancement will be tracked in - https://github.com/alcionai/corso/issues/2742


C:\Users\desmo\Downloads\file\lib\domains\com\lambdaschool

https://lambdaschool.com/
https://lambdaschool.com/courses/data-science

@Dlinz1 I am sorry, I have to close the request without merging, because you made a mistake in a request and did not specify any filepath. Please ensure that you are familiar with this repository rules located at the bottom of this page and make a new correct request. Thank you for the understanding!


Terminal shows both ghost suggestions as well as suggestion widget

Testing #210394
I find it confusing to know what happens in this case if I press Tab:

The ghost text here is a pwsh feature so I'm hesitant to mess with that. We do a decent job now of detecting when ghost text is present so I could try sync it and score the ghost text match the highest?

This is similar to how it works with ghost text and intellisense. The editor does have smarts for hiding the ghost text when it doesn't match the intellisense option, but unfortunately we don't have that sort of control in the terminal as history-based ghost text is entirely controlled by powershell itself. With deeper integration maybe this is possible, but closing as out of scope for now.


Connection UX is frustrating.

This seems always off by default when starting the wallet

Turning it on doesn't do anything.
Test connection seems to never work.

Going to edit the server turns off the

Sometime This button say EDIT existing connection some other time it say TEST connection.

Now works after closing and reopening the wallet.

Might be an idea to have a Green / Red signal to know if wallet is properly connected.

Might be an idea to have a Green / Red signal to know if wallet is properly connected.

The toggle in the lower right corner of the wallet acts both as a switch connect to the server, and to indicate the wallet is connected.
I tested the same connection details as above and the test worked immediately. I was then able to connect to this server using the toggle as described above.
The Edit Connection button appears on the Server preferences if the wallet is already connected. Clicking this button indicates that the wallet should terminate this connection in order to receive new connection details. The button then changes to Test Connection in order to allow the user to test these details. After a successful 'Test Connection' (the green tick you posted above), using the toggle should always connect to the server - no restart should be required, since the code execution is exactly the same as used in the test.
It's clear from the above that at some point there was a connection error: 'Retries exhausted'. This means Sparrow has tried repeatedly to get a response from the server, but eventually had to give up. This looks more like the server was overloaded (unable to respond) rather than a connection error though.
That said I have noticed an issue (still unresolved) when switching from between Tor and non-Tor connections, and between some VPN and non-VPN setups. It appears to be IP routing related and quite low level, and is resolved with a restart of the wallet.

Outstanding Action: More clearly display server has hit max retries in UI.
Proposed Priority: Low

As this issue is still open, please allow me to add my drama ...
For some reason, rpcuser did not work with my localhost bitcoin core. I tried to switch to coookie out. I restarted bitcoin core many times, deleted its config and waited until there is no indication of syncing or indexing in the bitcoin core before starting sparrow but sparrow always gave me errors when testing the connection.
In the end I had it set to cookie, it claimed it did not work but minutes later while I was busy doing other stuff, this window suddenly popped up:

I'm not sure what it does but it appears to be by Bitcoin-Qt and not by Sparrow. As my Bitcoin Core has indexing activated, I think it should not take as long as it takes to scan a hand full of addresses but apparently Sparrow now does talk to Bitcoin Core despite a conclusive failed test of the connection.
Something is off here.

@Giszmo It's possible that the Bitcoin-Qt had not yet started it's RPC interface on the initial test, started it later, and Sparrow then connected (re-attempts at connection are made after a minute). As to the rescan, the scanning is started from the date entered when creating the wallet. The actual time taken is of course dependant on Bitcoin Core, and is independent of any other index in Core (Bitcoin Core's txindex is not an address index, for example).
Given this is an old issue which is somewhat vague in subject, I'm going to close it off here.

As I'm probably not the only one who clicks "test connection" and immediately tries changing this and that if it says "error", I think it would be very helpful  if Sparrow could tell the user "Bitcoin Core can take  up to 5 minutes to accept rpc connections" or it could tell the user how to know if the rpc connection is up. Here it definitely took much more than a minute.


I would like to enhance the look of the README.md file.

Is your feature request related to a problem? Please describe.
A I would like to enhance the look of the README.md file by adding some colorful borders between sections to make it more readable

You can proceed for that @alok-38

I am assigning this issue to you

For this issue, you have made changes inside the Readme.md file

I'm a newbie  to opensource contributions. I will read the rules again and then start contributing once I fully understand.

I'm a newbie  to opensource contributions. I will read the rules again and then start contributing once I fully understand.

Yup 😀

@alok-38 any updates on this one ?

I'm really sorry.I totally forgot to unassign myself. Actually that's what I meant.


[wip] Feat/torch points3d

What does this PR do?

This PR resolve some bugs with Hydra / OmegaConf + all_gather better support for Lightning integration in TorchPoints3d.
Fixes # (issue) <- this links related issue to this PR
Before submitting

[ ] Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
[ ] Did you read the contributor guideline, Pull Request section?
[ ] Did you make sure your PR does only one thing, instead of bundling different changes together?
[ ] Did you make sure to update the documentation with your changes [if needed]?
[ ] Did you write any new necessary tests [no need for typos, docs]?
[ ] Did you verify new and existing tests pass locally with your changes?
[ ] If you made a notable change (that affects users), did you update the CHANGELOG?

PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:

[ ] Is this pull request ready for review? (if not, please submit in draft mode)
[ ] Check that all items from Before submitting are resolved
[ ] Make sure the title is self-explanatory and the description concisely explains the PR
[ ] Add labels and milestones (and optionally projects) to the PR so it can be classified
[ ] Check that target branch and milestone are aligned!

Did you have fun?
Make sure you had fun coding 🙃

Hello @tchaton! Thanks for updating this PR.

In the file pytorch_lightning/accelerators/ddp_accelerator.py:

Line 34:22: W291 trailing whitespace
Line 53:1: W293 blank line contains whitespace
Line 60:78: W291 trailing whitespace

In the file pytorch_lightning/loggers/tensorboard.py:

Line 32:121: E501 line too long (124 > 120 characters)

In the file pytorch_lightning/trainer/connectors/checkpoint_connector.py:

Line 24:121: E501 line too long (128 > 120 characters)

In the file pytorch_lightning/utilities/apply_func.py:

Line 31:1: W293 blank line contains whitespace
Line 35:1: W293 blank line contains whitespace
Line 39:1: W293 blank line contains whitespace

In the file pytorch_lightning/utilities/distributed.py:

Line 215:18: W292 no newline at end of file

Hello @tchaton! Thanks for updating this PR.

In the file pytorch_lightning/accelerators/ddp_accelerator.py:

Line 34:22: W291 trailing whitespace
Line 53:1: W293 blank line contains whitespace
Line 60:78: W291 trailing whitespace

In the file pytorch_lightning/loggers/tensorboard.py:

Line 32:121: E501 line too long (124 > 120 characters)

In the file pytorch_lightning/trainer/connectors/checkpoint_connector.py:

Line 24:121: E501 line too long (128 > 120 characters)

In the file pytorch_lightning/utilities/apply_func.py:

Line 31:1: W293 blank line contains whitespace
Line 35:1: W293 blank line contains whitespace
Line 39:1: W293 blank line contains whitespace

In the file pytorch_lightning/utilities/distributed.py:

Line 215:18: W292 no newline at end of file


console not closing

when i have the mod it doesn't want to close the console. I am using build #90 and minecraft fabric 1.19.3.

likely a duplicate of https://github.com/GeyserMC/Floodgate-Fabric/issues/59

Yes it probably is. Is there a build I can download to fix this?


Fine grained control over cpu usage for CPU Hog Exec experiment

Details:

We found some limitations with the the cpu hog exec experiment in comparison to the regular cpu hog experiment (which uses the stress package to support cpu load and cpu cores envs).
I understand that Litmus uses md5sum to induce the consumption of the cpu resources. However we're only able to specify entire cpu core here using the cpu core tunable. We want to target half a core for a special use case.

I've read the stress package makes this easy with the following command:
stress --cpu 1 --cpu-load 0.5 --timeout 60s
Unfortunately, we're unable to use the stress linux packages at the moment. Looking to leverage a basic cpu utility available in the linux distros by default. From my research, taskset could be useful but it only allows for whole core, not fractions of a core. Any insights are highly appreciated. Thank you

can you PTAL: @uditgaurav

We may need enhance the logic for this here but it won't be straight forward.

CPUs are designed to be either fully utilised or idle, so trying to precisely control them to be used at a certain intermediate level (like 50% or 75%) is complex. The OS scheduler is designed to allocate CPU time to processes based on need and priority, not to artificially limit a process to a certain percentage of CPU time.

We recommend adopting the 'cpu-hog' method over 'cpu-hog-exec' due to its significant advantages:

The 'cpu-hog' method, starting from Litmus version 1.13.8, eliminates the dependency on the target container's base image and resolves compatibility issues with scratch images, which were present in the exec approach.

It leverages the container's cgroup and pid namespace to run the stress-ng process, allowing for resource consumption without the need for container exec-ing, thereby addressing the shortcomings of previous methods.

Additionally, this method offers improved recovery mechanisms in the event of an abrupt termination, ensuring a more resilient and stable chaos testing process.

You will able to provide the the percentage of cpu using the --cpu-load as you explained.


Snyk generating false positives (not sure if plugin related or snyk cli related)

Hi there,
In my code somewhere I am using the function bypassSecurityTrustUrl and bypassSecurityTrustHTML because I am fetching content from a wisywig editor on one of my backends where the user needs to be able to style their own content with HTML.
Everywhere in my code I did this, snyk is giving me a warning about potential XSS security issues, which is good obviously.
However. All of these lines are directly put inside of a sanitize function that I am using with the exact same library that is using bypassSecurityTrustHTML and bypassSecurityTrustURL like so:
this.sanitizer.sanitize(SecurityContext.HTML, this.sanitizer.bypassSecurityTrustHtml(myHtml));

where this.sanitizer is imported from: @angular/platform-browser
Whenever this sanitize is in front of it, it should be considered sanitized. The user in this case is explicitly sanitizing the content because they know they are fetching information from a wisywig editor on their backend infrastructure.
Should snyk not recognize this?  Or something like that? It is now effectively saying this in my editor:
Unsanitized input from data from a remote resource.
Which is just wrong.
Also please tell me whether this is an issue in the interface of this plugin, or whether it is related to for example the snyk cli not implementing this?

I'm also unable to ignore these issues in any of the files they are showing up in.
I have snyk set to automatically analyze, so I am guessing that there is a bug in the snyk plugin for vs code that when it is scanning file changes, it will show all of the issues again. Regardless of whether you have tried to ignore them.

HI @Simbaclaws,
Thank you for feedback and your time 👍.
Just to clarify: did you using Visual Studio or Visual Studio Code IDE?
Regards,
Alex

Apologies visual studio code isn't an IDE... I was using visual studio code.

Thank you @Simbaclaws! I understand. I asked because we have another repo for VsCode. We will try to resolve the issue as soon as possible.

Hi @Simbaclaws, please submit a ticket via our official support channel https://support.snyk.io/ to report false positive for Snyk Code product.
Feel free to raise another ticket for VS Code extension with the bug reproductions steps for the following report:

I'm also unable to ignore these issues in any of the files they are showing up in.

I made 2 support tickets.
Hopefully someone will look into it :)
I'm sorry I couldn't contribute some code fixes, I'm pretty busy with some projects and don't know if I'd be good enough of a programmer to help diagnose and fix this issue. If I can find spare time, I'll try and see if I can help fix the issue.

Ok I just found out that the second issue about the warnings not disappearing, does actually disappear, but it's only doing it line by line. Regardless of whether you click the Ignore in this file button.
This is probably caused by the fact that I'm using a different parameter passed through one of the functions each time...
So for example:
this.sanitizer.sanitize(SecurityContext.URL, this.sanitizer.bypassSecurityTrustUrl(this.newsUrl));

Whenever I do this on the this.newsUrl object and I ignore that "in the entire file".
I was expecting it would remove all of the lines in the file that contains:
this.sanitizer.sanitize(SecurityContext.URL, this.sanitizer.bypassSecurityTrustUrl(anyParam))

However since the param anyParam differs, it only removes those that have the exact same param.
Is this considered "By Design"? Or should this behave differently?

Can this issue perhaps be moved to:
https://github.com/snyk/vscode-extension
I used the wrong repository apparently.
My bad...


WIP: add FTPS support for vdisk backups

WORK IN PROGRESS
Closes #414.

LGTM as it is! 👍
@katia-e are you OK with the code as it is? And are you sure you tested importing/exporting/describing backups using a secure FTPS server?

TLS flags --tls-server, --tls-insecure, --tls-certificate, --tls-key are added to enable FTPS support for backup with zeroctl commands.
TLS connection was tested for zeroctl import vdisk,  zeroctl export vdisk and zeroctl describe snapshot for the various server configurations both with and without client authentication.
All test were successful, the branch is ready for merging.


mimic apache resolves #12

Resolves #12
It compares the response of real Apache web server and chained server byte to byte for a set of URL patterns and methods to ensure we mimic it accurately.

There are a few failed tests (main_test.go, L112, L143, L235 and L247), but the related test code is a bit obscure to me. Still trying to fix them.
BTW, the screen output is overwhelming with -debug option. It would be good to have another level of logging for http dumping. Can we add something like DumpRequest() and DumpResponse() to golog and switch to use it?

So those test are failing now?
We need to be able to set logging per middleware, besides the particular case of dumping requests only if the level is above the one set. Creating DumpRequest/Response is already two methods instead of one (IsLevel), and they solve only that particular situation.
I don't think Golog provides any key functionality, and it is always going to be biased towards the Lantern client. Why are you interested in using it?

Yeah I added travis integration so you can also see the failed test there.
What I want is to change logging behaviour without change any line of code. For example, I don't want to dump requests/responses with -debug option, but want to see other debug outputs. Or show detailed output for any single package with an option or environment variable.
In golog, I can TRACE=detour,balancer ./lantern to see trace logs of the two packages but not others, which also makes sense for server debugging.
Anyway, it's just for convenience, so either one is ok.

Ok, that's a change that definitely makes sense. That kind of control is very useful.
What do you think about implementing that here? The reason I would like to keep them separate is because I think we are going to diverge in the needs of logging for the server and the client (inherently different problems), so we can do changes here without affecting the client. What do you think?

Thanks @fffw. I finished my first round of the review.

Given we already invested a lot of time on golog, I can't think of an
reason to maintain another logging utility. Golog has no client specific
feature AFAIK, and fronted server also use it. I think we can add IsLevel
call to golog and everything are done.

Well, Golog is about 200 lines of code, not much to replicate...
Worst case scenario if we bring that dependency is that it needs to make a different version at some point. However, I still see the optSetter pattern as an important one, especially since we are going to provide a "standard" HTTP proxy with compatibility with other providers of middleware (such as Oxy).

I've taken a look at the failing tests. Which are the ones you find obscure? I'm guessing that max connections and idle connections, the rest are just request/response round trips.

golog doesn't conflict with optSetter pattern as long as it implements utils.Logger interface (or, make an adapter if there's a solid reason to not change utils.Logger interface).

I tweaked the test to reflect the actual errors we want to capture, but still don't know where those EOFs and timeouts come from...

@uaalto updated code as per your suggestions, though still need some time to fix those failed tests.

OK, great!
The Max connections and Idle timeout tests rely on timings, if they become imprecise then it might be better to use fdcount for that, although in principle they should be working.

Also, if you are interested, we can also move to golog. I don't find the Logger option that important if we have a way to specify the modules that we want to log verbose via environment variables. I actually agree that via environment variables is more flexible than by code for this purpose.

The EOF error previous test captures is what Read returns after client closes connection. mimic package changes this behaviour by forcibly closing connection at server side. It's a violation of HTTP 1.1 standard as server should only close connection if "Connection:close" header is sent back to client （section 14.10 of rfc2616).
mimic has to do so because we can't further process an hijacked connection, and the reason why we hijack it is to make sure the response headers are of same order as Apache.
@uaalto Do you think it's ok to alter those failed asserts in TestReportStats and TestIdleTargetConnections to reflect this change of behaviour?
The failed asserts in TestMaxConnections is also because mimic closed connection immediately. I changed it to send request with valid tokens to avoid hitting mimic (which is also more meaningful as the limitation is mainly applied to valid requests).

I see. Well we have no other option, but to reimplement the whole Go server we are based on. I suspected that at some point the order of header fields was going to be an issue, given the degree of control we need here. They do matter in some cases.
No problem in changing those tests. The idle connection tests are "integration" tests, in the sense that measure the whole request lifetime. Idletiming is already being thoroughly unit-tested as an independent package, so I'm not very worried about that test.
I'm thinking, maybe we should evaluate the possibility of copying and customizing the Go server. I have found a few corner cases form Co Advisor that expose tiny bug in the depths of the server, and I'm not sure if is possible to do it without touching there.
Anything that requires hijacking is already requiring a fully-manual approach, which I think fares worse than making our own custom server.

Finally passed (though more appropriate word would be 'cheated') all tests. @uaalto Could you take a look again?
Building http-proxy directly on top of TCP and TLS gives us fine control as well as potential performance boost, but consider the substantial workload to implement and, more importantly, maintain the code, I would postpone discussing that option until Lantern pro has already stabilized.

Sure, I'm well aware of that, but some of the issues are very hard to implement otherwise, that's why I mention it. If we don't care about those, then we are fine.

It is also recognized by nmap as Apache server.

8080/tcp open     http         Apache httpd 2.4.7 ((Ubuntu))

That's nice, I was going to suggest that too. One thing, as an even more precise mimicking that we could do, is to run an unconfigured Apache through Co Advisor and then try to duplicate exactly the same success/failure/violation results. I don't think we need that yet though.

It's actually a lot of work...

By the way, we can talk about that later in the meetup, but actually the order of header fields is important for the meaning of some fields, and in some tests (such as those in chunking) they don't pass for that reason after my fixes.

LGTM!


Timeout exception (internal of UtBot) is dispayed in Summaries

Description
We have just fixed internal ArtificialError rendering in summaries, but there is still a problem with TimeoutException
For example, the following summaries are generated:
    /**
     * @utbot.classUnderTest {@link OrderService}
     * @utbot.methodUnderTest {@link OrderService#getOrders()}
     * @utbot.invokes {@link OrderRepository#findAll()}
     * @utbot.returnsFrom {@code return orderRepository.findAll();}
     * @utbot.throwsException {@link org.utbot.framework.plugin.api.TimeoutException} in: return orderRepository.findAll();
     */

The last line is erronous. We should not see utbot exceptions in summaries.
To Reproduce
Can be reproduced on any method that leads to Timeout exception.
Visual proofs (screenshots, logs, images)

Could you please supply the issue with a code sample?


Add example of passing struct to task function

Thanks for the very useful library!
I needed to pass more than a single integer to the task, this PR demonstrates passing a struct. I also updated gitignore to avoid committing the build artifact.

thanks @morisja for this. However I think it's best to keep examples separated as to make it friendly for beginners and less overwhelming.
I suggest if you could move your example as a separate one into ./examples unless you have another suggestion


Selection via mouse click does not work when menu is inside a portal

downshift version: 1.3.0
node version:
npm (or yarn) version:

What you did:
Trying to implement simple select component using Downshift. The requirement for my select is that menu is inside a portal. I'm using react-portal npm package that leverages React's native createPortal() API.
What happened:
After I've put menu inside portal, selection via mouse stopped working. Menu is being closed as always, but selection does not happen.
Reproduction repository:
Here's a sandbox: https://codesandbox.io/s/w7p91ol19k
You can try selecting one of menu items. The onChange is not happening, the state is not changed. Try removing Portal element. Without portal everything works as expected.
I believe, there is something to do with mousedown and blur event handlers.
I have found that there are native event listeners for mousedown and mouseup events.
They are preventing the selection of item due to calling reset prior to that.

I have found: https://github.com/paypal/downshift/blob/master/src/downshift.js#L796-L800
Here there is a check for mouseup event target to be inside the root element. Due to mouseup being browser native event and not a react synthetic one, this condition is met. That's because the menu is outside of Downshift root element.

Thanks for the report! We could probably add a feature for the upcoming getMenuProps function (see the pull requests) which would apply a ref so we can check that as well as the root ref... Unless someone else has another idea.

Thank you for so quick response. getMenuProps sounds like a good idea.

I've just hit this problem. Is there maybe a workaround in the meantime?

I'm at a cabin with my family right now with very limited internet access, but there is a work around. Any time you don't like what downshift does with state, you can control it yourself (see the readme). There's an example you can see here: https://github.com/paypal/downshift/blob/master/stories/examples/controlled.js
It's not an example of the workarounds necessarily, but hopefully that will point you in the right direction. If someone would like to help out by providing an example in codesandbox or something that'd be great!

Really hoping this will be added soon:D

@circlingthesun One workaround I've found works (courtesy of @techniq at https://github.com/paypal/downshift/issues/164)is to add onMouseUp: e => e.stopPropagation() to your getItemProps. For my use case, I'm rendering my items inside of an existing context menu component I wrote that uses portals.

@rhinoceraptor thanks. My workaround was to use onMouseDown={e => selectItem(item)}. That looks less hacky :)

Any idea when this will be resolved?

I'm planning on spending time soon to finish #285 and resolve this among other updates.
If anyone wants that to happen sooner then please feel free to open a PR :)

Hey folks! #285 was merged (into the next branch). Anyone want to work on adding a refKey prop to the new getMenuProps method? Make sure you make your branch off the next branch!

lol, I was just working on this and having a really hard time reproducing it. I finally upgraded the original codesandbox to the latest version of downshift and the bug is gone!
However, it's still possible to reproduce if the user clicks on a non-item that's rendered within the portal, like here. So I'll fix that :)

This has been merged into next which should be merged into master soon.

:tada: This issue has been resolved in version 2.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

I still had the issue (v3.2.10). The solution of @circlingthesun solve it:

@rhinoceraptor thanks. My workaround was to use onMouseDown={e => selectItem(item)}. That looks less hacky :)


Add support to multiple keyspaces using Ecto prefixes

This allows using Exandra to query schemas across keyspaces.
Close #34.

I could also potentially drop the requirement for the keyspace in start_link/1 in this PR, since we can now connect and query multiple keyspaces (it could just be optional).
What do you think @vinniefranco @whatyouhide?


For go vendor — do not restore already exists modules in vendor path

Hi.
If i'm already have all modules except one and only want to add one module, now I must re-download all modules.
It's a not good, may be we need additional param for gb-vendor restore?
gb vendor restore --skip-exists

Sorry, that is correct.
gb vendor restore is not the intended mode of operation, the expected mode of operation is to store your source code in vendor/, not use gb vendor restore as a replacement for go get.
I'm going to make this as closed as I do not intend to add this feature for the reason stated above. If you want to work on it, please reopen and assign to yourself.

Do you know another way to install dependancies to vendor directory ?

Can I do this functional for gb-vendor restore?

@davecheney

@kalloc gb vendor is a plugin that helps you maintain the contents of your vendor/src/ directory. The expected use is, gb vendor fetch , then commit the contents of vendor/src/

+1 this could be useful tool for gb.
In my case, I want to deny gb vendor restore to restore some repos, i.e.:
# Restore all, excepts
gb vendor restore --ignore github.com/...

or
# Restore all from
gb vendor restore github.com/...

Make sense @davecheney?

I am sorry for not replying earlier. I will not be adding this functionality. gb cares about repeatable builds, and your suggestion will further encourage people to not vendor their code, but instead ship with the manifest file only and expect users to use restore to recover the source.

@davecheney I understand you, but I'm worrying about cpu usage and projects making time.
If I can skip already exist depends in vendor path, I can make build faster than when I can't skip.
Can I write solution and create pull request?

Can you explain more about your build process. How does gb vendor restore
dominate your build time?
On Wed, 7 Oct 2015 07:50 kalloc<EMAIL_ADDRESS>wrote:

@davecheney https://github.com/davecheney I understand you, but I'm
worrying about cpu usage and projects making time.
If I can skip already exist depends in vendor path, I can make build
faster than when I can't skip.
Can I write solution and create pull request?
—
Reply to this email directly or view it on GitHub
https://github.com/constabulary/gb/issues/350#issuecomment-145996584.

@davecheney of course :)
Let's I show my Makefile file
all: deps test build

deps:
        gb vendor restore

build:
        env GOOS=darwin GOARCH=amd64 gb build
        env GOOS=linux GOARCH=amd64 gb build

test:
        vet src/project
        cd src/project && GOPATH=${PWD}:${PWD}/vendor/ go test -cover -test.coverprofile=../../reports/cover.out

Restoring all dependancies takes much time. I'm living (Russia, Indonesia, Urkaine) in country with poor internet connection, sometimes I'm working via EDGE connection. I don't want to download packages all time.
I'm going to create pull-request to support special flag (like --install-only), if you wouldn't mind.
p.s. Have a nice week ;)

@davecheney @kalloc and other case is: behind the firewall build server could not connect to github.com, and developers add dependencies into the vendor/src manually, and then commit them. After that, build server should restore only allowed to connect repos.
Thanks )
p.s. @kalloc in Moscow should be a good Internet Connection ;-)

@davecheney the time takes to build the project
time make deps
…

real    3m36.935s
user    0m13.451s
sys     0m8.487s

time make build
env GOOS=darwin GOARCH=amd64 gb build
…
env GOOS=linux GOARCH=amd64 gb build
…
real    0m8.845s
user    0m19.256s
sys     0m2.909s

@gobwas yes, you are right, Moscow's internet better than Kaluga's or Krasnodar's

Respectfully, you are using gb vendor incorrectly. The expected use case is
your project will contain all the source of your code, and the depedencies,
vendored into project/vendor/src. The expected use case is not to use gb
vendor restore to avoid vendoring your code, and this is why you are
hitting limitations.
I am afraid I am not willing to accept patches to alter gb vendor restore
for the reasons described above.
Can I suggest that if you do not wish to vendor you code, you use git
submodules or subtrees instead.
On Wed, Oct 7, 2015 at 9:04 PM, kalloc<EMAIL_ADDRESS>wrote:

@gobwas https://github.com/gobwas yes, you are right, Moscow's internet
better than Kaluga's or Krasnodar's
—
Reply to this email directly or view it on GitHub
https://github.com/constabulary/gb/issues/350#issuecomment-146138624.

@davecheney Sorry, help me to understand right use case.
I make example project (https://github.com/kalloc/gb-wrong-example), tell me, what's wrong with him.
I am not seeing difference between https://github.com/constabulary/example-gsftp and my case.

@davecheney Oh, you mean, I should store all dependancies source in the project?
It is an overhead

@kalloc that's fine. Let me explain the philosophy of gb. A gb project must contain all the source, including dependencies, however gb itself does not take care of this, it is left to the project owner to decide how to collect all the dependencies into the gb project structure.
One way to do this is to use the optional gb vendor plugin, which will copy the source of your dependencies into your project. This plugin is optional and not integrated into gb in any way apart from living in the same repository.
gb vendor is as opinionated as gb, so has a set way of working. If this doesn't fit your use case, you don't need to use it.
If you prefer not to vendor your code, then one option is to use git submodules or subtrees, whichever you prefer.

@davecheney Is it possible to use submodule and gb vendor together ?

gb vendor doesn't know about anything in the manifest file, that is, if it didn't vendor it, it doesn't know about it.
With that said, gb doesn't know about gb vendor either, all it cares about is the right code is on disk at the right location.

@davecheney ok, gb isn't that I need, I will look for another tools for dependancies manager, compatible to vendor


Extra_features

I don't know if there's any stopping it since we already opened Pandora's box, but it'd be nice to curb the addition of these one-command installs that just delegate to sudo apt install or npm install.
If you really want to keep them, I'd be happy and encouraging of splitting them into their own devcontainers-contrib/npm-features repository. This would still allow you and others to have your cake and eat it too without cluttering this repo.
See my reply/rebuttal in our discussion about postCreateCommand vs features:

What I'm trying to get across is that the devcontainer SHOULD NOT become your package.json replacement. There's already tooling for devDependencies or Poetry's dependency groups (which is even more customizable!), so why not take advantage of that instead of re-inventing it with a new JSON syntax?

https://github.com/devcontainers-contrib/features/discussions/294#discussioncomment-4821196

There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.

https://github.com/devcontainers-contrib/features/discussions/294#discussioncomment-4821196


Wifi-2542. Fix for populating correct ID in AWLAN_Node

This fix applies to EA8300, WF194c and EAP102. For these APs,
the br-wan is mapped to eth1 instead of eth0. Adding fix to
use the mac address from eth1 as ID for these particular APs.
Signed-off-by: ravi vaishnav<EMAIL_ADDRESS>

Merged c0cb6baa, thanks.


framewise output loss

Can you show me framewise_output loss?

Hi manhlab, there is no framewise_output loss. All systems are trained with clipwise_output loss.

So the sound event detection models are only trained with clipwise_output loss, but the forward function in those models is designed to generate framewise output? If so, can I modify a pretrained CNN_14 by just modifying its forward function, to make it perform framewise sound event detection without training from scratch again?

Yes, you can apply CNN_14 framewisely.
On Mon, 4 Apr 2022 at 23:44, marcoyang1998 @.***> wrote:

So the sound event detection models are only trained with clipwise_output
loss, but the forward function in those models is designed to generate
framewise output? If so, can I modify a pretrained CNN_14 by just modifying
its forward function, to make it perform framewise sound event detection
without training from scratch again?
—
Reply to this email directly, view it on GitHub
https://github.com/qiuqiangkong/audioset_tagging_cnn/issues/14#issuecomment-1087719106,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADFXTSLJOBM6ND3UNBTSQOLVDME4ZANCNFSM4P56SKTQ
.
You are receiving this because you commented.Message ID:
@.***>


Support Obsidian-style comment for inline linter toggle

Fixes #1121

I think the only concerns I have right now are that no UTs were added and that the docs would need updating to include the syntax reference to this new syntax.
The three tests shown by this search should have a duplicated test for the new syntax. I can update the docs or if you want to the source for the docs in question is located here.

I went ahead and made the two requested additions. Assuming UTs pass, I will go ahead and merge this.


Make MSYS2 git compatible (not only Git for Windows)

Problem:
When MSYS2 git is used with Visual Code (instead of Git for Windows), the vscode built-in git extension fails to initialize:
Validating found git in: C:\msys64\usr\bin\git.exe
Using git 2.33.0 from C:\msys64\usr\bin\git.exe
> git rev-parse --git-dir
Opening repository for path='c:\Project' failed; ex=spawn C:\msys64\usr\bin\git.exe ENOENT {
  "gitErrorCode": "NotAGitRepository"
}Error: spawn C:\msys64\usr\bin\git.exe ENOENT

Issue:
MSYS2 git rev-parse --show-toplevel returns cygwin style path vs Git for Windows, which returns  Windows style path.
Solution:
If Cygwin style path is detected convert it to Windows style
References:
https://github.com/microsoft/vscode/issues/111504
https://github.com/microsoft/vscode/issues/4651
https://github.com/microsoft/vscode/issues/17461

Similar PR can be made to https://github.com/eamodio/vscode-gitlens to fix https://github.com/eamodio/vscode-gitlens/issues/965

Will it be merged and fix the problem? I using Cygwin64 git, and meet this problem "spawn C:\cygwin64\bin\git.exe ENOENT"


The program '[8224] Stealer.exe' has exited with code 1 (0x1).

It doesnt working for me. When I open the sln in vs and click run it starts and stops immediately.

ahh i have realized i have to run it from cmd


feat: add explicit content negotiation

Current dependencies on/for this PR:

main

PR #7   👈

This comment was auto-generated by Graphite.


Fix CI

Addresses https://github.com/coiled/benchmarks/actions/runs/11800020434/job/32869942751#step:13:31

This PR fixes numerous problems on CI. It's still not green yet.

https://github.com/coiled/benchmarks/actions/runs/11820807408 is an example run.

Snowflake should be fixed by https://github.com/coiled/dask-snowflake/pull/64


Test CPMS degraded when failing to create new Machines

If we know that we aren't going to progress with a rollout, we should degrade the operator.
So, if we can see that a newly created replacement machine errors straight away, for example because the new instance type was invalid, then we should report that and go degraded.
If an existing Machine goes failed, this wouldn't result in degraded as a MachineHealthCheck should cause the Machine to be deleted, and then in that case, we would replace the Machine. Also, if we do go degraded when any Machine is failed, we will not be able to create a replacement Machine if the Failed Machine becomes deleted.

/retest-required

/retest-required


Migrate ort-transformers-tools and use rewriter/optimizer for dynamo_export of models

Models to be converted (sorted by priority)
### Models (to be converted)
- [ ] Add a draft title or issue reference here
- [ ] BERT
- [ ] GPT-2
- [ ] T5

### Tasks
- [ ] Add CI/Tests for each model (on dashboard?)

Hi @shubhambhokare1 : is issue #1485 same as this or different? If same, can you close one of them, as appropriate, thanks!


Support for lambda JWT authorizer

Hello 👋
In the previous version of SST we could use lambda authorizers, does such a feature exists in SST ion?

@jayair @fwang Any news on that?

We have this https://sst.dev/docs/component/aws/apigatewayv2/#auth-lambda

Awesome @jayair closing this then!


Insert Meg notes to assist with OAuth debugging

Removed Omniauth gem and initializer file

This was conflicting with Devise's OAuth setup

Added comments to Devise initializer, User model, and OAuth callbacks controller

Meg: Thanks much! Please see Slack message.


Upgrade to<EMAIL_ADDRESS>

Upgrade to<EMAIL_ADDRESS>see migration guide https://stylelint.io/migration-guide/to-15
Trivial PR to remove extra space between icon and period.
Changes

Upgrade to<EMAIL_ADDRESS>from 14.x

How to test this PR

yarn lint should pass.

I'll spin out major CSS adjustments to other PRs before this leaves draft status.


Condense Python 2-3 compatibility code

Cleans up the Python 2-3 compatibility checks and removes additional unnecessary imports.
Also removed a bunch of comments regarding cross-Python implementation, as they are quite redundant and don't actually clarify much as to what is happening.

Another nice PR @gfyoung.
Thanks!


Migrate towards exclusively using serde for Config

This series of commits was spawned off a thought I had while reading https://github.com/rust-lang/cargo/issues/7253#issuecomment-535656059, although it ended up not really touching on that at all. I was a little unsettled about how unstructured the config accesses are throughout Cargo and we had sort of two systems (one serde which is nice, one which is more manual) for reading config values.
This PR converts everything to run through serde for deserializing values, except for get_list which is funky. There's only one usage of that with the paths key though and we can probably fix this soon-ish.
In any case, the highlights of this PR are:

This PR is surprisingly large. I did a lot of movement in config.rs to try to make the file smaller and more understandable.
The Value type which retains information about where it was deserialized from is very special, and has special treatment with serde's data model. That's what allows us to use that and serde at the same time.
The ConfigRelativePath and ConfigKey structures have been revamped internally, but morally serve the same purposes as before.
Cargo now has structured struct access for a bunch of its configuration (net, http, build, etc). I would ideally like to move toward a world where this is the only way to read configuration, or at least everything conventionally runs through those paths.
Functionally, this PR should have no difference other than tweaks to error messages here and there, and perhaps more strict validation on commands where we validate more configuration on each run than we previously did.
This isn't a 100% transition for Cargo yet, but I figured it would be a good idea to post this and get some feedback first.
In the long run I want to remove get_env, get_cv, and get_*_priv from Config as internal details. I'd like to move this all to de.rs and have it walk down the tree of configuration as we deserialize a value. For now though these all remain in place and that refactoring is left to a future PR.

r? @ehuss

r? @nrc
(rust_highfive has picked a reviewer for you, use r? to override)

:umbrella: The latest upstream changes (presumably #7308) made this pull request unmergeable. Please resolve the merge conflicts.

r? @ehuss

Ok updated! Want to take another look @ehuss?

@bors: r=ehuss

:pushpin: Commit 9a12e48c8dc6655782842d69c05ecaa37be838fd has been approved by ehuss

:hourglass: Testing commit 9a12e48c8dc6655782842d69c05ecaa37be838fd with merge 94bf4781d0bbd266abe966c6fe1512bb1725d368...

:sunny: Test successful - checks-azure
Approved by: ehuss
Pushing 94bf4781d0bbd266abe966c6fe1512bb1725d368 to master...


Could you guys make the guide page more like a guide?

Say, each page has prev and next button, people just click those two buttons to navigate, I believe you got my points

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

ID: 862ee2d3-3052-822c-81e3-da9abca04113
Version Independent ID: ea4573ba-40c8-b9fc-931e-247a2d489455
Content: AVStream Minidrivers Design Guide - Windows drivers
Content Source: windows-driver-docs-pr/stream/avstream-minidrivers-design-guide.md
Product: windows-hardware
Technology: windows-devices
GitHub Login: @barrygolden
Microsoft Alias: bagold

@stang2019.Ya i understood your point.

Thanks for reaching out to the Windows Driver Developer Documentation team. Unfortunately, we don’t have the resources to offer individual technical advice to the broad array of customers who use the driver documentation.
You may have success posting specific questions in the following forums, where other driver developers and Microsoft engineers can be found. The community there is quite responsive.
MSDN Windows Hardware WDK and Driver Development forum
NTDEV forum at OSR Online


Remove unstable parts of the code

Codecov Report

Merging #293 into master will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #293      +/-   ##
==========================================
+ Coverage   99.21%   99.23%   +0.01%
==========================================
  Files          74       34      -40
  Lines        3323     1705    -1618
==========================================
- Hits         3297     1692    -1605
+ Misses         15        8       -7
+ Partials       11        5       -6

Flag
Coverage Δ

#dot
99.23% <ø> (+0.01%)
:arrow_up:

#dot_changes
100% <ø> (ø)
:arrow_up:

#dot_changes_diff
100% <ø> (ø)
:arrow_up:

#dot_changes_run
100% <ø> (ø)
:arrow_up:

#dot_changes_table
100% <ø> (ø)
:arrow_up:

#dot_changes_types
100% <ø> (ø)
:arrow_up:

#dot_example
100% <ø> (ø)
:arrow_up:

#dot_log
100% <ø> (ø)
:arrow_up:

#dot_ops
98.32% <ø> (ø)
:arrow_up:

#dot_ops_bolt
97.56% <ø> (ø)
:arrow_up:

#dot_ops_nw
96.74% <ø> (ø)
:arrow_up:

#dot_ops_pg
97.6% <ø> (ø)
:arrow_up:

#dot_ops_sync
99.06% <ø> (ø)
:arrow_up:

#dot_refs
?

#dot_streams
?

#dot_streams_undo
?

#dot_test_seqtest
?

#dot_test_testops
?

#dot_x_dotc
?

#dot_x_fold
?

#dot_x_heap
?

#dot_x_meta
?

#dot_x_meta_snapshot
?

#dot_x_rt
?

#dot_x_ui_collab
?

#dot_x_ui_dom
?

#dot_x_ui_html
?

#dot_x_ui_input
?

Impacted Files
Coverage Δ

streams/undo/stream.go

x/dotc/structs.go

x/dotc/union.go

x/dotc/slice.go

streams/branch.go

x/dotc/slices.go

x/dotc/unions.go

x/meta/snapshot/session.go

streams/undo/stack.go

streams/counter.go

... and 21 more

Continue to review full report at Codecov.

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


chore: Release flame_audio 1.3.4

Description
It bumps audioplayers to 1.2.0
Checklist

[x] I have followed the Contributor Guide when preparing my PR.
[x] I have updated/added tests for ALL new/updated/fixed functionality.
[x] I have updated/added relevant documentation in docs and added dartdoc comments with ///.
[x] I have updated/added relevant examples in examples or docs.

Breaking Change?

[x] No, this PR is not a breaking change.

Related Issues

Ooops, have to remove the other lingering commits


RFC: Improving plugin developer experience

While TypeDoc technically supports plugins, it isn't very friendly right now to develop a plugin for... even ignoring the lack of documentation. What would be helpful when developing plugins? Lets make a list.

Export all necessary items from the main entry point. Plugins should never need to import from typedoc/dist/....
Transformer API - It would be really useful to have something like TS has for rewriting types rather than implementing logic to iterate over all types in all reflections example

What else is missing?

Plugin need some way to modify/inject output into themes - #1377

A way to replace all references pointing to some reflection/symbol with another type - ideally should be covered by 2 above.

A way to replace all references pointing to some reflection/symbol with another type - ideally should be covered by 2 above.


Add Signature Field to existing PDF

First of all: thank you for providing this awesome library!
After hours of searching for it, it seems like there's only a "getSignature" function, but no createSignature function (unlike for other fields like createTextField etc.).
We tried to use AcroForms directly, but without notable success.
@Hopding
Maybe I just don't understand the mechanism and there's already a solution fort that (I'm super happy for every suggestion btw. :) ), but this would be a great feature for this library.
Are there any plans on adding this?
Best regards
Alex

pdf-lib does not currently provide any specialized APIs for creating digital signatures or reading the contents of existing digital signatures.
https://pdf-lib.js.org/docs/api/classes/pdfsignature

Support for digital signatures is on the roadmap: https://github.com/Hopding/pdf-lib/discussions/998.

Hi there! Thanks for all your work.
Any news on this topic?

Is this currently possible?

Any news about this?


Allow extensions to control default expanded state of contributed views

Currently, contributed views are always collapsed when inside core viewlets (explorer, SCM, debug, and extensions), and are expanded by default when inside custom view containers. Extensions being collapsed by default causes discoverability issues for some extensions and some extensions already try to work around this using reveal on the tree view.
I propose adding an "expanded" property on the views contribution point that allows extensions to set the default behavior. If not set, the default behavior is the same as now. One thing to note is that if extensions opt-in to expanding, this will cause them to activate on startup if their containing viewlet is open.

+1

We have this now!


Use default region in Connect

Will ultimately fix and close https://github.com/grafana/athena-datasource/issues/144
For now a draft until I have tests and have merged and released https://github.com/grafana/grafana-aws-sdk/pull/59
Can be used for for testing ^ by installing the package locally.

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


Use utf8CString instead of nulTerminatedUTF8

Needs to be committed simultaneously with apple/swift PR implementing SE-0134.

This should use nullTerminatedUTF8, not utf8CString, no?

Core team decision was to remove nullTerminatedUTF8 altogether.
On Thu, Jul 28, 2016 at 13:31 Jordan Rose<EMAIL_ADDRESS>wrote:

This should use nullTerminatedUTF8, not utf8CString, no?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/apple/swift-corelibs-foundation/pull/486#issuecomment-235984056,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAA2gNIouPk2CiWvg26a3oztqplgk15bks5qaPWHgaJpZM4JW0CP
.

@jrose-apple nullTerminatedUTF8 was removed. I always merge the foundation change right before the swift change so the CI passes. But I just found out I'm not authorized to merge anything and couldn't find anyone who could do it.
https://github.com/apple/swift/pull/3816