What level of PCI compliance do you need in order to use Card?

I was wondering if someone could talk about and add to the README some information on PCI compliance rules for using this project.
My understanding is that this project can only be used if the vendor is scoped for SAQ D but i'm not sure. I'd love to use this project in conjunction with a solution like Braintree hosted fields to reduce PCI compliance burden but at this point I don't see how that's possible.

For a merchant to be eligible for the easiest level of PCI compliance—SAQ A—payment fields cannot be hosted on your checkout page. All payment fields (credit card number, CVV, and expiration date) must be hosted on an external payment gateway's domain and presented to the user in a frame or with a redirect.

Braintree Payments

I believe Braintree/Paypal is describing the issue incorrectly. The issue is where the data goes. If the data goes through your servers, they must be PCI Compliant. What they are claiming maybe true for how their solution is architected.
If what Braintree proposes is true, anyone using Stripe wouldn't be in compliance. Which is simply not the case.
(Note: I am not a PCI compliance specialist, if you have real concerns talk with your legal team)

@h3smith thanks for your reply. Unfortunately as I understand it the requirements are around who the data touches not solely where it goes. This includes the fact that your javascript may not have access to the sensitive card data (which means that you actually cannot do any custom client-side formatting of the inputs). The way providers like Braintree and Stripe work around these issues is by either hosting iFrames, hosted fields (one iFrame per input), or requiring increased PCI compliance scope.
I'm not aware of any Braintree or Stripe client tokenization procedure that doesn't require scope greater than SAQ A-EP.

I also strongly doubt that Braintree would be explaining the issue incorrectly. They are in the business and should know this stuff better than any of us.

I'm not an expert on PCI compliance, so I'm not sure I have much to add here. I'll leave this open in case someone with more knowledge wants to chime in.

To be compliant with stripe the magnetic card data should not hit your server and your payment page should be served via SSL/TLS.
Stripe handle this by not giving the form elements a name attribute and their form is passed to their server using an iframe.  They tokenise the card and insert the token back into your calling form.
eg:
<input type="text" name="number" placeholder="Card number">
would not be valid because when stripe's callback fires your form will post number to your server
<input type="text" placeholder="Card number">
is valid because it lacks the name attribute so you'll just get the token and any other fields with a name attribute.
https://support.stripe.com/questions/do-i-need-to-be-pci-compliant-what-do-i-have-to-do
https://stripe.com/docs/security/ssl

Thank you for the clarification @mbuk!

The nutshell as I understand it is, dont store the number (Including in the session! You'd be surprised how leaky even server side sessions are once a hacker gets inside your box) , ALWAYS use encryption, and if you need to retain access to the card, save the token not the details. This applies to ALL fields on the card, even the name (You can store a separately entered name, and pre-fill the card, but dont save whatrever they typed in). You may for convenience save a 4 digit excerpt of the number and I believe its OK to save the expiry date (So you can hassle the user to update their card when its ready to expire). Also, be secure, and keep up to date with all the security issues of your prefered platform (Never interpolate sql!!!!!!!!). The remaining PCI is mostly in relation to credit provider security ,and include things like datacenter security and the like. This probably wont affect you.


[Airbrake] [Production] key not found: "default"

Airbrake error: #2786
Airbrake project: ETMoses
Error type: KeyError
Error message: key not found: "default"
Where: testing_grounds#data
Occurred at: Jun 12, 2016 20:49:03 UTC
First seen at: Jun 12, 2016 20:49:03 UTC
Occurrences: 1 (1 since last deploy on Jun 12, 2016 15:59:55 UTC)
URL: https://moses.energytransitionmodel.com/testing_grounds/366/data.json
File: [PROJECT_ROOT]/app/models/calculation/technology_load.rb
Backtrace:
[PROJECT_ROOT]/app/models/calculation/technology_load.rb:82:in fetch
[PROJECT_ROOT]/app/models/calculation/technology_load.rb:82:in block in comps_for
[PROJECT_ROOT]/app/models/calculation/technology_load.rb:77:in each
[PROJECT_ROOT]/app/models/calculation/technology_load.rb:77:in each_with_object

Water heating buffers dind't have profile's assinged to them. Added them manually.


a second instance... Twice the goodness

I would like to run a second instance of this awesome add on.
I'm thinking one for Android one for Alexa/Echo etc. I tried forking and creating my own local repo and add it to my HA addon folder.
I also edited files (probably hap hazerdly - I'm not a real coder in the least) tried to change install locations-names. homebridge-my for example. Also port numbers. The my add on just wont start. Ports are one issue. Just wondering if this is possible or even worth the bother. One is good. Two better? Thanks all.

As of now the ports of this application are not configurable. Matterbridge doesn’t support that.
Since the Addon needs to run with host network mode, the ports are already blocked.
I’ll consider this in the future but i will not address this in the near future.


How to make a widget test of this component?

I know the component is on the screen, because I put a key on your ancestor and verified that the ancestor was found
final PDFWidget = find.byType(PDF);
expect(PDFWidget, findsOneWidget);
return _WidgetTypeFinder:<zero widgets with type "PDF" (ignoring offstage widgets)

@mdmota
u can use find.byKey
final Finder PDFWidget = find.byKey(Key('pdfFromUrlKey'));
expect(PDFWidget, findsOneWidget);

PDF().cachedFromUrl(         'url',         key: Key('pdfFromUrlKey'),       )

ah ok, good alternative.
thank you


feat!: upgrade fuel-core to 24.1

I've enabled fuel-cores test-helpers feature on our side. We make use of several default impls and it seems reasonable that users would want access to those as well when building configs for their tests.

As discussed during the sync, we ditch support for rocks db in favour of the snapshot scheme. We could stick with rocks db until the snapshot supports all remaining tables, but IMO, I don't see much benefit in doing so.

With the state configuration now separate in StateConfig instead of being part of ChainConfig, I had to make some breaking changes. We agreed to keep these changes minimal until we revisit things for V1, so I went with breaking FuelService::new to keep setup_test_provider stable.

Checklist

[ ] I have linked to any relevant issues.
[x] I have updated the documentation.
[x] I have added tests that prove my fix is effective or that my feature works.
[x] I have added necessary labels.
[x] I have done my best to ensure that my PR adheres to the Fuel Labs Code Review Standards.
[x] I have requested a review from the relevant team or maintainers.

Our rocksdb test is failing due to a bug on the core side. Disabling it for now
https://github.com/FuelLabs/fuels-rs/issues/1324


Simple embedded example to run a function in python

Summary
Hi I have been trying to run a simple embedded rust test case and failing somewhere.
Could someone please help?
I want to

read a simple python script as a module.
compile it
find a specific function in it
run the function
get the result and convert it to rust type.

Details
fn test_rustpy_vm() {
  let code = r#"

graph = '''
something is funny
''';

def my_fun():
  return(1)

def _fun():
  return(2)
"#;

  let interpreter = py_vm::Interpreter::with_init(Default::default(), |vm| {
    log("Entered Python VM".into());
    vm.add_native_module("testmod", Box::new(test_mod::make_module));
  });

  let compiler_result = interpreter.enter(|vm| {
    let cr = vm.compile(code, py_vm::compiler::Mode::Exec, "<embedded>".to_owned());

    match cr {
      Ok(code_obj) => {
        let scope = vm.new_scope_with_builtins();
        let res = vm.run_code_obj(code_obj, scope);

        match res {
          Ok(v) => {

            let idx = vm.get_attribute_opt(v, "my_fun").unwrap().unwrap();
            let y = idx.call((), vm);
            match y {
              Ok(a) => {},
              Err(b) => {
                panic!("errorrrr2");
              }
            }
          },
          Err(e) => {
            panic!("errorrrr");
          }
        }

      },
      Err(e) => {
        log("compilation failed".into());
      }
    }
  });

}

Finally got it to work, however I have some questions.
New to rust here so bear with me please.

Isn't clone supposed to be deep copy in rust? I clone scope before sending it off to vm and the function magically appears in it?
How do I convert easily from returned number to i64?

#[test]
fn test_rustpy_vm() {
  let code = r#"

graph = '''
something is funny
''';

def my_fun():
  return(10)

def _fun():
  return(2)
"#;

  let interpreter = py_vm::Interpreter::with_init(Default::default(), |vm| {
    log("Entered Python VM".into());
  });

  interpreter.enter(|vm| {
    let code_obj_res = vm.compile(code, py_vm::compiler::Mode::Exec, "<embedded>".to_owned());

    match code_obj_res {
      Ok(code_obj) => {
        let scope = vm.new_scope_with_builtins();
        let myscope = scope.clone();
        let a = vm.run_code_obj(code_obj, scope);
        println!("Leng of scope {}", myscope.globals.len());

        match a {
          Ok(v) => {
            let func = myscope.globals.get_item("my_fun", vm).unwrap();
            let v = func.call((), vm);
            match v {
              Ok(val) => {

                let y = val.to_number().str(vm).unwrap().to_string();
                println!("{}", y);
              },
              Err(b) => {
                panic!("errorrrr2");
              }
            }
          },
          Err(e) => {
            panic!("errorrrr");
          }
        }

      },
      Err(e) => {
        log("compilation failed".into());
      }
    }
  });

}

I am happy to know you solved the problem.

Isn't clone supposed to be deep copy in rust? I clone scope before sending it off to vm and the function magically appears in it?
In Rust, Copy means byte-only copy. It guarantees no destructor(drop) exists. Clone is any kind of cloning. You should check each type to know if it is a deep or shallow copy. Because Scope only contains Rc objects, you can regard Scope::clone is a (python-like) shallow copy.

How do I convert easily from returned number to i64?
These conversions will work. https://docs.rs/num-bigint/latest/num_bigint/struct.BigInt.html#impl-ToPrimitive-for-BigInt
I didn’t test, but big_int.try_into() also will work.


update br scripts to copy over jwks secrets

Account for updates to zen 5 backup and restore procedure

updated to remove the redundant secrets from oc command


ActiveRecord::InverseOfAssociationNotFoundError with self join

Hi,
I've been stuck with a ActiveRecord::InverseOfAssociationNotFoundError while trying to make a self join in some model.
The model relevant  code :
class Category < ActiveRecord::Base
  belongs_to :parent_category, :class_name => 'Category', :foreign_key => 'parent_id', :inverse_of => 'children_categories'
  has_many :children_categories, :class_name => 'Category', :foreign_key => 'parent_id', :inverse_of => 'parent_category'
end

Rails recognize my association and everything is working fine.
If I avoid :inverse_of param I can get to make RA work but the parent_category field is a text_field instead of the desired dropdown and children_categories is not shown.
The field children_categories appears if I force it from the rails_admin.rb initializer but shows me a dropdown select instead of multiple select.
EDIT : Like my previous issue, I'm on Rails 3.2 ... if it matters
I don't know if it's a known issue or if I'm making something wrong, but I'll try to figure it out.

Well, avoiding the :inverse_of finally worked. I admit I can't tell why it didn't worked before since I don't remember doing any action between the time it failed and now that it works apart from modifying the way I declare my relations.
So the working self-join relation :
class Category < ActiveRecord::Base
  belongs_to :parent_category, :class_name => 'Category', :foreign_key => 'parent_id'
  has_many :children_categories, :class_name => 'Category', :foreign_key => 'parent_id'
end

I think I'm misunderstanding something, but well, if it can be helpful.
Have a good day


Icon not correctly converted

I try to use an svg icon with the following path infos:
M144,100v36h-40v-24H88v24H48v-36l48-20L144,100z M132,75V60h-16v8.333L96,60   L48,80v12l48-20l48,20V80L132,75z
After conversion, the following code is generated:
<g class="IC-home-48x48"><path pid="0" class="custom-background" d="M0 0h192v192H0z"/><path pid="1" class="custom-fill" d="M96 72L60 87.737V120h28v-16h16v16h28V87.737z"/></g>
As you can see: The second (M132) and third (L48) info is missing. I tried to "convert" them manually. M132 is working, but I cant get L48 to work.
The fixed M132 looks like this:
<g class="IC-home-48x48"><path pid="0" class="custom-background" d="M0 0h192v192H0z"/><path pid="1" class="custom-fill" d="M96 72L60 87.737V120h28v-16h16v16h28V87.737z"/><path pid="2" class="custom-fill" d="M132 75V60h-16v8.60"/></g>
What am I doing wrong? Is this a bug? Can you fix it?

Vue-svgicon uses svgo to optimize SVG content. If the default svgo configuration does not meet your requirements, you can generate a SVG icon with a custom configuration. Read: https://github.com/MMF-FE/vue-svgicon#custom-svgo


Question: Should a more flexible version of summarize_by_time be created?

After reviewing polars and pandas more closely, I'm questioning the separation of value column and Agg functions.
Here's how polars accomplished Aggs:

df.group_by("a").agg(
    b_sum=pl.sum("b"),
    c_mean_squared=(pl.col("c") ** 2).mean(),
)

https://pola-rs.github.io/polars/py-polars/html/reference/dataframe/api/polars.dataframe.group_by.GroupBy.agg.html

#93 solves this.


update webhook check

[ ] Make sure you have followed Kube-OVN Code Style.

What type of this PR

Enhancement

Which issue(s) this PR fixes:
Fixes #2503 #2886 #2887
WHAT

🤖 Generated by Copilot at ff7b1b7
This pull request enhances the webhook validation for vpc nat gateway rules and ecmp policy routes. It adds context and cache client parameters to webhook functions in pkg/webhook/vpc_nat_gateway.go. It allows multiple next hop IPs in ValidateVpc function in pkg/util/validator.go. It verifies the namespaces and vpc mode in subnetCreateHook function in pkg/webhook/subnet.go.

🤖 Generated by Copilot at ff7b1b7

ValidateVpc splits
Next hop IPs for ecmp routes
Autumn of changes

HOW

🤖 Generated by Copilot at ff7b1b7

Add context parameter to cache client calls in vpc nat gateway webhook functions (link, link, link, link, link, link)
Fetch and validate vpc, qos, and eip objects from cache in vpc nat gateway webhook functions (link, link, link, link, link, link)
Support multiple next hop IPs for ecmp policy routes in ValidateVpc function in pkg/util/validator.go (link)
Check namespace range and vpc mode in subnet creation webhook function in pkg/webhook/subnet.go (link)

bugfix need to be backported to 1.11


How can I print all queries in console in waterline but without sails

Node version: 8.12.0
Sails version (sails):
ORM hook version (sails-hook-orm):
Sockets hook version (sails-hook-sockets):
Organics hook version (sails-hook-organics):
Grunt hook version (sails-hook-grunt):
Uploads hook version (sails-hook-uploads):
DB adapter & version (e.g. sails-mysql@5.55.5):
Skipper adapter & version (e.g. skipper-s3@5.55.5):

I don't use `sails`, but I need support from waterline but I can't create a issues in on waterline repository. How can I print all queries in console? I use sql-sails 1.0.1 and waterline 0.14.0-3

@thovt93 It looks like sails-sql uses knex. Not sure if starting your app like this could do what you want
DEBUG=knex:query sails lift
https://knexjs.org/#faq
https://stackoverflow.com/a/36894703/742129

@nahanil add option debug: ['ComQueryPacket'] work fine. I use sails-sql and hapi. Thank for your help


[RECAST] Recast Navigation update

Motivation and Context

This updates the RecastNavigation submodule with new performance improvements/bugfixes (as well as a few new C++ APIs).
Biggest change is a significant decrease in memory allocations needed while recomputing the NavMesh. Should be very useful since we are recomputing the navmesh dynamically more often especially with inserted objects.

How Has This Been Tested

By CircleCI / existing unit tests.

Types of changes

[X] Docs change / refactoring / dependency upgrade

Checklist

[X] My code follows the code style of this project.
[X] I have read the CONTRIBUTING document.
[X] I have completed my CLA (see CONTRIBUTING)
[X] All new and existing tests passed.

Edit: Also found a bug in our CMake and merged that into this PR.


Add ability to start the session

What Issue Are You Seeing or What Feature Needs To Be Added?
Current workflow is:

Admin creates a session in the admin panel.
We figure out the first game id and player ids and then open 6 windows by hand.

We want a web page (new_session.html) that makes step 2 easy for the admin.  They should be able to go to the link on 6 computers click buttons to open the user landing page.
Working backwards:

[x] create a user session landing page and route @router.get("/{game_id}/player/{player_id}/landing_page")

(see UX; something like are you ready to play RED or BLUE, should include student's name. "Are you ready Martin?")

the Next button on this page sends them to @router.get("/{game_id}/player/{player_id}/survey")

[x] create the admin page and route  (something like ... @router.get("session/{session_id}") or what have you) with links to   @router.get("/{game_id}/player/{player_id}/landing_page") This can be housed in the ~administration.py file.~ EDIT: it's in games.py.

Are There Any Links That Would Be Helpful?

Closed with #102


Final question button functionality

Description
This makes the button link to the results page and submit the users answer tot he final question tot he database.
Fixes # 137 and 172
There is an error in issue 172. It states that the URL should ens with "/resultPage". But the router says it should be "/quiz-results/:userId".
How to test?
Open branch and run "npm run dev". Follow the quiz through to the results page. Make sure your database has up to date migrations and seeds before beginning.
Checklist

[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] This PR is ready to be merged and not breaking any other functionality

I have updated this PR after updating the previous one. But this will not work until the changes from the previous PR have been merged.


Reactivate slave syncer

Fixes #586
The main goal of this PR is to only re-activate the slave syncer feature.
It also do some refactoring to improve the code as the old code is unnecessary complex and outdated.

new feature, redesign, and any other improvements will be addressed at #587  or #596

Blocked by #596.

Blocked by #596.

I think you misunderstood my comment at https://github.com/zero-os/0-Disk/issues/596#issuecomment-343033099.
It is not this PR that should be blocked, but #587.
This PR should be not blocked because there is no point to block it. It mainly contains two things:

refactor current code
reactivate slave syncer (which is only small code in main.go) -> if you want, i can undo this change

reactivate slave syncer (which is only small code in main.go) -> if you want, i can undo this change

I have disabled this code, so i think it is good to be merged.


Submit firewall rules via CR

I can submit the firewall rules via CR when we have them assembled. List of rules is being assemble here: https://cdc.sharepoint.com/:x:/r/teams/USDSatCDC/Shared Documents/PRIME ReportStream/Palo Alto Firewall Rules.xlsx?d=w8e222ceb3397434bad2d14fb06186751&csf=1&web=1&e=sffQ5b
@mauricereeves @jimduff-usds I could use your assistance to validate the list before I submit a CR containing the rules. Thanks!


HSEARCH-3172 Allow to run WildFly integration tests from the IDE

https://hibernate.atlassian.net//browse/HSEARCH-3172
The first two commits are only preliminary cleanup.
The third commit actually fixes the JaCoCo problem.
The fourth commit is not absolutely necessary, but it seems to make more sense that way... Also, it allows to make IDEA generate the WildFly instance by setting "Maven > Importing > Phase to be used for folders update" to "process-test-resources" in the IDEA settings, then clicking the "Generate Sources and Update Folders for All Projects" button in the Maven tool panel.
There doesn't seem to be any way to make IDEA generate the WildFly instance automatically, at least not without heavy customization of your IDEA project configuration.

+1 to merge

Thanks @gsmet! Before I merge... @Sanne can you confirm the first commit is fine? Or is the configuration property additionalRuntimeArgLine overridden by the product team, and we can't touch it under any circumstance?

It's still not working for me in IDEA, as this property is not resolved:
<byteman.agent.path>${org.jboss.byteman:byteman:jar}</byteman.agent.path>

I wonder if it's an IDEA specific limitation as this doesn't seem changed recently and AFAIK it worked fine in Eclipse.
Trying now some older branch in IDEA..

Not working on branch 5.5 with latest IDEA 2018.1.4 either. Does it work for you @yrodiere ?
If not, I'd still like to merge these as it does go in the right direction - but it doesn't solve the problem so maybe we could repurpose/rename the JIRA description to solve the jacoco properties problem only.

@Sanne As discussed on HipChat, IDEA is working against us in this case, so I'll work on something more useful. I repurposed the ticket and will merge.


Fix milestones too many SQL variables bug

As title.

Fixes #9841

Codecov Report

Merging #10880 into master will increase coverage by 0.04%.
The diff coverage is 84.90%.

@@            Coverage Diff             @@
##           master   #10880      +/-   ##
==========================================
+ Coverage   43.40%   43.45%   +0.04%
==========================================
  Files         593      593
  Lines       83343    83353      +10
==========================================
+ Hits        36175    36220      +45
+ Misses      42673    42642      -31
+ Partials     4495     4491       -4

Impacted Files
Coverage Δ

models/repo_list.go
77.32% <62.50%> (-0.18%)
:arrow_down:

routers/user/home.go
58.27% <82.45%> (+4.09%)
:arrow_up:

models/issue_milestone.go
69.16% <100.00%> (+1.54%)
:arrow_up:

modules/git/utils.go
65.67% <0.00%> (-4.48%)
:arrow_down:

models/gpg_key.go
53.42% <0.00%> (-0.53%)
:arrow_down:

modules/git/repo.go
48.53% <0.00%> (+0.41%)
:arrow_up:

routers/repo/view.go
36.82% <0.00%> (+0.67%)
:arrow_up:

models/unit.go
44.44% <0.00%> (+2.46%)
:arrow_up:

modules/indexer/stats/db.go
59.37% <0.00%> (+9.37%)
:arrow_up:

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 bf847b9...e2065b6. Read the comment docs.

Please send backport


Secret data displayed in logs

The log files for this task expose data that is flagged as secret within Bitrise.
Steps to reproduce:

Create a $USER_NAME environment variable under App Env Vars
Create a $PASSWORD environment variable under Secret Env Vars
Create the FTP-UPload step and use these in the Username / Password FIeld

Expected: Secret fields are not output to logs
Actual: Secret fields are revealed in logs.
Example (note password is not actually the password, but it is shown in my logs):
+------------------------------------------------------------------------------+
| (2) Azure Deploy                                                             |
+------------------------------------------------------------------------------+
| id: ftp-upload                                                               |
| version: 2.0.2                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: bash                                                                |
| time: 2017-01-23T15:50:29-08:00                                              |
+------------------------------------------------------------------------------+
|                                                                              |

Configs:
  * hostname: waws-prod-ch1-023.ftp.azurewebsites.windows.net
  * username: projecttest\myproject
  * password: MyPassword!
  * upload_source_path: /Users/vagrant/git/src/project.Myproject.JSClient/
  * upload_target_path: site/wwwroot/

Installing lftp on Darwin
  $ brew install homebrew/boneyard/lftp
==> Tapping homebrew/boneyard
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-boneyard'...
Tapped 276 formulae (310 files, 616.9K)
==> Installing lftp from homebrew/boneyard
==> Installing dependencies for homebrew/boneyard/lftp: pkg-config
==> Installing homebrew/boneyard/lftp dependency: pkg-config
==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.29.1_2.sierra.bottle.tar.gz
==> Pouring pkg-config-0.29.1_2.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/pkg-config/0.29.1_2: 10 files, 627.5K
==> Installing homebrew/boneyard/lftp
==> Downloading https://lftp.yar.ru/ftp/lftp-4.6.6.tar.xz
==> Downloading from https://lftp.tech/ftp/lftp-4.6.6.tar.xz
==> ./configure --prefix=/usr/local/Cellar/lftp/4.6.6 --with-openssl=/usr/local/opt/openssl
==> make install
🍺  /usr/local/Cellar/lftp/4.6.6: 21 files, 2.5M, built in 3 minutes 18 seconds

Uploading /Users/vagrant/git/src/project.Myproject.JSClient/ -> site/wwwroot/
|                                                                              |
+---+---------------------------------------------------------------+----------+
| x | Azure Deploy (exit code: 1)                                   | 222 sec  |
+---+---------------------------------------------------------------+----------+
| Issue tracker: https://github.com/bitrise-io/steps-ftp-upload/issues         |
| Source: https://github.com/bitrise-io/steps-ftp-upload                       |

@kensykora thanks for reporting!
I'll schedule a check for this step, or if you have the time, feel free to send a Pull Request.


INPUT LABEL references must be valid [Accessibility issue]

Login and go to https://ecamstage14.multicloud-ibm.com/lite/insights/ridashboard
Use DAP to scan
Description:
The id dropdown-0 referenced by the 'for' attribute of a LABEL element is not a valid FORM INPUT element or an element with id dropdown-0 is either null or does not exist.

Which DAP ruleset are you using and what version of carbon-components-angular are you using? It doesn't seem to be an issue in the latest version 3 and version 4

@RajshreejadhavIBM I can't access your link. Could you provide the info the @Donisius requested?

version details in package.json

Is it still an issue in the latest version 3?

@Donisius yes.

@RajshreejadhavIBM are you sure? I believe the for from the dropdown inputs have been removed some time ago which was what was causing the issue. I attached a screenshot of the storybook example for version 3.54.0, the for in the input is no longer there and the DAP issues are storybook related.

@Donisius Thanks a lot
It is resolved with 3.54.0.


Connections

Support for connections to secondary accounts. Also lands various previous alphas in main

The fun part begins with:
"Connecting" accounts without creating a second account


Easier integration demo

This would address #40, at least partially. To really ease integration I think would still need more polish, especially around the coordinates of interaction events that we send to the server. If we remove westures from the client and do all gesture handling on the server, then we could apply these coordinate changes to the pointer events before forwarding them.

Closing, this was handled by #60 (with canvas changes still to come)


Marked VIP badge as authority badge

I believe the VIP badge is actually a "Channel" badge - it takes up the same slot as the Broadcaster and Moderator badge


samples\bluetooth\mesh_demo crash with real payload

I use two boards nrf52840_pca10056, one as a Heartbeat subscriber (NODE_ADDR=0x0b0c), the other as a Heartbeat publisher (NODE_ADDR=0x000f).
I added two lines to the prj.conf file to use the RTT viewer:
CONFIG_RTT_CONSOLE=y
CONFIG_UART_CONSOLE=n
Minor changes to the main.c file.
The function call board_button_1_pressed() was added to the main loop, when the example was configured as a Heartbeat subscriber.
while (1) {
	k_sem_take(&tune_sem, K_FOREVER);
	board_play_tune(tune_str);
	#if NODE_ADDR != PUBLISHER_ADDR				// added line
	board_button_1_pressed();				// added line
	#endif							// added line
}

Also, the payload in the mesh packet in board_button_1_pressed() was added.
void board_button_1_pressed(void)
{
	char str[]={"01234567"};				// added line
	NET_BUF_SIMPLE_DEFINE(msg, 3+sizeof(str) + 4);		// changed line
	struct bt_mesh_msg_ctx ctx = {
		.net_idx = net_idx,
		.app_idx = app_idx,
		.addr = target,
		.send_ttl = BT_MESH_TTL_DEFAULT,
	};

	/* Bind to Health model */
	bt_mesh_model_msg_init(&msg, OP_VENDOR_BUTTON);

	net_buf_simple_add_mem(&msg, str, sizeof(str));		// added line

	if (bt_mesh_model_send(&vnd_models[0], &ctx, &msg, NULL, NULL)) {
		printk("Unable to send Vendor Button message\n");
	}

	printk("Button message sent with OpCode 0x%08x\n", OP_VENDOR_BUTTON);
}

As a result, for each packet received by the Heartbeat subscriber, a response is sent with the string "01234567" to the Heartbeat publisher.
After several cycles, I get "***** MPU FAULT *****" on the Heartbeat subscriber board. Sometimes this happens immediately after the connection.
Subscriber's log:
***** Booting Zephyr OS 1.13.0-rc1 *****
Initializing...
Unicast address: 0x0b0c
Bluetooth initialized
Mesh initialized
Loading stored settings
Provisioning completed
Configuring...
Configuration complete
Subscribing to heartbeat messages
Unable to send Vendor Button message
Button message sent with OpCode 0x00c005f1
src 0x0b0c
Button message sent with OpCode 0x00c005f1
src 0x0b0c
Button message sent with OpCode 0x00c005f1
***** MPU FAULT *****
  Instruction Access Violation
***** Hardware exception *****
Current thread ID = 0x20001784
Faulting instruction address = 0x4000e004
Fatal fault in thread 0x20001784! Aborting.

Publisher's log:
***** Booting Zephyr OS 1.13.0-rc1 *****
Initializing...
Unicast address: 0x000f
Bluetooth initialized
Mesh initialized
Loading stored settings
Provisioning completed
Configuring...
Publishing heartbeat messages
Configuration complete
src 0x0b0c
src 0x0b0c

If the payload string is reduced by one character to "0123456", then the problem disappears.
As I understand it, in the case of a short string there is no segmentation of packets, because the payload is 11 bytes (3 tag + 8 string) instead of 12 (3 tag + 9 string).
The issue was also in revision 1.12.99.

Could you verify that your thread stacks are large enough, before we investigate this any further? Too small thread stacks is a common cause for such issues. The most likely threads that can be at fault are the Bluetooth RX thread and the system workqueue thread.

I am very sorry for the delay in response.
Stack sizes are default.
In the file prj.conf now added lines
CONFIG_INIT_STACKS=y
CONFIG_THREAD_STACK_INFO=y

Subscriber's log:
Initializing...

 Also, could you play with increasing the stack sizes, as well as increasing the buffer counts (since segmentation means more buffers needed) and see if that helps at all? I wasn't able to reproduce such an issue when I tried with multi-segment messages with my mesh badge app #/10210

The last experiment was on October 17, 2018 with the master brunch.
What parameters of stacks and buffers do you recommend to change?

Are you still having this issue or were you able to solve it? Here are some config options you could play with - I recommend also looking up their documentation to understand what exactly they do.
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
CONFIG_CONFIG_BT_RX_STACK_SIZE=4096
CONFIG_BT_MESH_ADV_BUF_COUNT=30
CONFIG_BT_MESH_TX_SEG_MSG_COUNT=4
CONFIG_BT_MESH_TX_SEG_MSG_COUNT=4

The issue has not been solved yet.
Unfortunately, in the latest releases of the master branch, the original example does not work at all, even without my changes.
Only lines added:
CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y
CONFIG_UART_CONSOLE=n

Logs
***** Booting Zephyr OS 1.13.99 *****
Initializing...
Unicast address: 0x0b0c
Bluetooth initialized
Mesh initialized
Loading stored settings
Provisioning completed
Configuring...
Configuration complete
Subscribing to heartbeat messages

***** Booting Zephyr OS 1.13.99 *****
Initializing...
Unicast address: 0x000f
Bluetooth initialized
Mesh initialized
Loading stored settings
Provisioning completed
Configuring...
Publishing heartbeat messages
Configuration complete

I checked it on the boards nrf52840_pca10056, nrf52810_pca10040 and nrf51_pca10028.

@SergeSmirnov what do you mean "doesn't work at all"? Your logs look normal to me.
Btw, I noticed a bug in your original code sample:
char str[]={"01234567"};

That should be:
char str[] = "01234567";

I think the first form will make a single-char array out of the pointer to the string literal (taking the lower 8 bits of the 4 byte pointer). Also, note that using sizeof() on the string will also take the terminating null character - is that intended? Also note that anything more than 15 byte payload will result in segmentation. Since sizeof("01234567") == 9 you'll get 3 + 9 + 4, i.e. 16 bytes.

@SergeSmirnov what do you mean "doesn't work at all"? Your logs look normal to me.

For more information I added a debug print to the file board.h.
static inline void board_play_tune(const char *str)
{
	printk("%s\n", str);              // added line
}

This function is called in the main loop after receiving each message.
In older versions of Zephyr, a message from the publisher comes every 15 seconds. For example 23327.
***** Booting Zephyr OS 1.12.99 *****
Initializing...
Unicast address: 0x0b0c
Bluetooth initialized
Mesh initialized
Provisioning completed
Configuring...
Configuration complete
Subscribing to heartbeat messages
100C100D100E100F100G100A100H
100H
100H
100H
100H
100H
100H

***** Booting Zephyr OS 1.12.99 *****
Initializing...
Unicast address: 0x000f
Bluetooth initialized
Mesh initialized
Provisioning completed
Configuring...
Publishing heartbeat messages
Configuration complete
100C100D100E100F100G100A100H

Now this is not happening.
***** Booting Zephyr OS 1.13.99 *****
Initializing...
Unicast address: 0x0b0c
Bluetooth initialized
Mesh initialized
Provisioning completed
Configuring...
Configuration complete
Subscribing to heartbeat messages
100C100D100E100F100G100A100H

***** Booting Zephyr OS 1.13.99 *****
Initializing...
Unicast address: 0x000f
Bluetooth initialized
Mesh initialized
Provisioning completed
Configuring...
Publishing heartbeat messages
Configuration complete
100C100D100E100F100G100A100H

Btw, I noticed a bug in your original code sample:

    char str[]={"01234567"};

That should be:

    char str[] = "01234567";

I compiled both options and compared the binaries. They match bit by bit.

Also note that anything more than 15 byte payload will result in segmentation. Since sizeof("01234567") == 9 you'll get 3 + 9 + 4, i.e. 16 bytes.

In my first post, I assume that the problem appears when the segmentation of messages begins.

@SergeSmirnov are you still working on this and still seeing the issue, or you already resolved it?

Sorry, we have now switched to another task and I do not know about the current status of this issue.

@jhedberg can you close this one and @SergeSmirnov can re-open if this is reproduced?

I agree.


fix: filter ES error responses

Testing notes
:heavy_check_mark: test-plan-ok
Modified moxy to return the following response to _bulk
{
  "errors": true,
  "took": 0,
  "ingest_took": 0,
  "items": [
    {
      "create": {
        "_index": ".ds-logs-foo-bar-2024.12.11-000001",
        "_id": "3teQtpMBkI6qhmXm2zhY",
        "status": 400,
        "error": {
          "type": "document_parsing_exception",
          "reason": "[1:11] object mapping for [hello] tried to parse field [null] as object, but found a concrete value"
        }
      }
    }
  ]
}

Send an intake v2 request to apm server
{"metadata":{"service":{"name":"foo","environment":"dev","agent":{"name":"java","ephemeral_id":"foo","version":"1.39.0"},"language":{"name":"Java","version":"11.0.19"},"runtime":{"name":"Java","version":"11.0.19"},"version":"03.01.00"},"process":{"pid":42974,"ppid":1,"title":"/usr/lib/jvm/java-11-openjdk-<IP_ADDRESS>.7-1.el7_9.x86_64/bin/java"},"system":{"architecture":"amd64","detected_hostname":"bar","platform":"Linux"}}}
{"log": {"message": "test log message with string timestamp", "@timestamp": "2022-09-08T13:47:29.111-0800"}}

apm-server logs
{"log.level":"error","@timestamp":"2024-12-11T16:35:00.954Z","log.origin":{"function":"github.com/elastic/go-docappender/v2.(*Appender).flush","file.name":"v2@v2.3.1/appender.go","file.line":443},"message":"failed to index documents in '.ds-logs-foo-bar-2024.12.11-000001' (document_parsing_exception): ","service.name":"apm-server","documents":1,"ecs.version":"1.6.0"}


[V1] Improve AsyncLLM and API Server

NOTE: I am in process of slipping this PR into separate pieces
SUMMARY:

Improve API server performance by making add_request_id middleware optional
Improve AsyncLLM performance with 3 process architecture and reduction of task switching in AsyncLLM
Better error handling with SIGQUIT
Reduce usage of zmq sockets by switching readiness probes to use mp.Pipe
Avoid footguns with ulimit
Added abstractions for background process handling

TODO:

Re-enable profiling
Make AsyncLLM shutdown cleaner (raises an error in the stack trace)
More testing

Closing as complete


Broker & Importer linking Project for new metadata is now handled by core

Not needed. Broker (via ingest client) does not have a project reference when creating metadata for a submission from a spreadsheet, the project is the metadata it is creating, so linking will have to be done afterwards.


[SALTSTACK] Enhancement - Ballenthin/FireEye Tools

Please add the following Ballenthin/FireEye tools to the SIFT CLI build
INDXParse
python-sdb
EVTXtract
srum-dump
shellbags
Lfle
python-cim

INDXParse, Shellbags are already included for sure. I'll have to verify the others.

saltstack_2018.08.0.log
Hi Erik,
I see the shellbags.sls and indxparse.sls files in /var/cache/sift/cli/v2018.08.0/sift-saltstack-2018.08.0/sift/python-packages, but I cannot either tool from the command line.
I don't recall if there were any failures during the install, but there's no mention of either package in the saltstack.log file.  I'm performing sift update now, will follow with sift upgrade, then build a new VM if these don't work.  I'll report my findings shortly.
Thanks,
Erik

They should all be in /usr/local/bin

Hi Erik,
I ran sift update and got the following results. I've also included the saltstack.log file for review.

Completed with Failures -- Success: 256, Failure: 276

When I ls the /usr/local/bin directory, I don't see either INDXParse.py or shellbags.py.
I'm building a new SIFT VM now.  I'll let you know if these packages are installed once it's finished.
 I'll have to look at how to fix this tonight.
FYI if you have any failures in the output then the sift update/upgrade/install is not complete and things will be wrong/missing, especially on a new install.

Ok, thanks!
Erik

@esecrpm this shoudl be fixed, please test by manually downloading the CLI - https://github.com/sans-dfir/sift/issues/251

Hi Erik,
I was able to download CLI 1.6.0 and update a 2017.48.0 and 2018.08.0 SIFT VM, but INDXparse and shellbags did not get installed with the update.  I confirmed the salt package versions and CLI version on both SIFT systems after install:
dpkg -s salt-minion salt-common | grep 'Version'
Version: 2017.7.5+ds-1
Version: 2017.7.5+ds-1
sift -v
Version: 1.5.1-beta.0, Build: master-154cb2f
I also tried to install SIFT using CLI 1.6.0 on a clean ubuntu 16.04 VM and received an error about a missing '/etc/apt/sources.list.d/saltstack.list' file.  I have included the stdout, saltstack.log and /usr/local/bin listing for both SIFT VM updates, plus the clean ubuntu install error in the attached zip.  Please let me know if there's anything else I can do/provide.
Thanks,
Erik
troubleshooting.zip


Tried backing up channels but errored out and now won't boot or connect to network

I was trying to backup channels, and forget the error (pretty sure file permission or directory error) but I restarted. After restart it wouldn't connect to network. Solid ethernet lights on pi but only a few SD activity light flashes at first power.
Thought it might be issues related to shim fan so I removed the fan from pi and tried re-flashing SD with latest build. Lots of SD card activity on power now but still solid ethernet lights and not connected to network. I went and got a micro HDMI to see if there was anything but nothing there either. Blank screen. Any ideas?

Yes, some ideas.
After reboot, there is something stucking you from passing, cant now exactly what right now. If you not pass that, It wont connect to WLAN or ETH.
About the blank screen, get the sd card and insert in you computer. Open the config.txt file and uncomment the following line:
hdmi_safe=1.
And boot again the pi, you will know whats happening know.

Yes, some ideas.
After reboot, there is something stucking you from passing, cant now exactly what right now. If you not pass that, It wont connect to WLAN or ETH.
About the blank screen, get the sd card and insert in you computer. Open the config.txt file and uncomment the following line:
hdmi_safe=1.
And boot again the pi, you will know whats happening know.

No luck with the above, but after burning the image to sd card several times one of them finally booted.


Bpf::load fail in wsl (ubuntu 20.04)

hello, when i try run user-space app according to tutorial in wsl, bpf load fail and  report a error:
09:36:40 [DEBUG] (1) aya::bpf: [/home/jmhuang/.cargo/git/checkouts/aya-c55fbc69175ac116/79e06f2/aya/src/bpf.rs:106] [FEAT PROBE] BPF program name support: true
09:36:40 [DEBUG] (1) aya::bpf: [/home/jmhuang/.cargo/git/checkouts/aya-c55fbc69175ac116/79e06f2/aya/src/bpf.rs:109] [FEAT PROBE] BTF support: true
09:36:40 [DEBUG] (1) aya::bpf: [/home/jmhuang/.cargo/git/checkouts/aya-c55fbc69175ac116/79e06f2/aya/src/bpf.rs:113] [FEAT PROBE] BTF func support: true
09:36:40 [DEBUG] (1) aya::bpf: [/home/jmhuang/.cargo/git/checkouts/aya-c55fbc69175ac116/79e06f2/aya/src/bpf.rs:116] [FEAT PROBE] BTF global func support: true
09:36:40 [DEBUG] (1) aya::bpf: [/home/jmhuang/.cargo/git/checkouts/aya-c55fbc69175ac116/79e06f2/aya/src/bpf.rs:122] [FEAT PROBE] BTF var and datasec support: true
09:36:40 [DEBUG] (1) aya::bpf: [/home/jmhuang/.cargo/git/checkouts/aya-c55fbc69175ac116/79e06f2/aya/src/bpf.rs:128] [FEAT PROBE] BTF float support: false
09:36:40 [DEBUG] (1) aya::bpf: [/home/jmhuang/.cargo/git/checkouts/aya-c55fbc69175ac116/79e06f2/aya/src/bpf.rs:131] [FEAT PROBE] BTF decl_tag support: false
09:36:40 [DEBUG] (1) aya::bpf: [/home/jmhuang/.cargo/git/checkouts/aya-c55fbc69175ac116/79e06f2/aya/src/bpf.rs:134] [FEAT PROBE] BTF type_tag support: false
Error: map error

Caused by:
    0: failed to create map `AYA_LOG_BUF` with code -1
    1: Operation not permitted (os error 1)

now, how i should to resolve it?

What’s your kernel version?

What’s your kernel version?

Linux LAPTOP-U56930FU <IP_ADDRESS>-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

hello, now i install the linux_header, but it also report this error, Should I set any environment variables?
jmhuang@LAPTOP-U56930FU:/lib/modules$ tree -L 3  <IP_ADDRESS>-microsoft-standard-WSL2/
<IP_ADDRESS>-microsoft-standard-WSL2/
├── build -> /home/jmhuang/WSL2-Linux-Kernel-linux-msft-wsl-<IP_ADDRESS>
├── kernel
├── modules.alias
├── modules.alias.bin
├── modules.builtin
├── modules.builtin.alias.bin
├── modules.builtin.bin
├── modules.builtin.modinfo
├── modules.dep
├── modules.dep.bin
├── modules.devname
├── modules.order
├── modules.softdep
├── modules.symbols
├── modules.symbols.bin
└── source -> /home/jmhuang/WSL2-Linux-Kernel-linux-msft-wsl-<IP_ADDRESS>

3 directories, 13 files

Maybe I should upgrade the kernel to Linux-MSFT-WSL-<IP_ADDRESS> ?

If you haven’t done it yet, you should do so.

hello, it doesn't work:
14:28:48 [DEBUG] (1) aya::bpf: [/home/jmhuang/.cargo/git/checkouts/aya-c55fbc69175ac116/79e06f2/aya/src/bpf.rs:106] [FEAT PROBE] BPF program name support: true
14:28:48 [DEBUG] (1) aya::bpf: [/home/jmhuang/.cargo/git/checkouts/aya-c55fbc69175ac116/79e06f2/aya/src/bpf.rs:109] [FEAT PROBE] BTF support: true
14:28:48 [DEBUG] (1) aya::bpf: [/home/jmhuang/.cargo/git/checkouts/aya-c55fbc69175ac116/79e06f2/aya/src/bpf.rs:113] [FEAT PROBE] BTF func support: true
14:28:48 [DEBUG] (1) aya::bpf: [/home/jmhuang/.cargo/git/checkouts/aya-c55fbc69175ac116/79e06f2/aya/src/bpf.rs:116] [FEAT PROBE] BTF global func support: true
14:28:48 [DEBUG] (1) aya::bpf: [/home/jmhuang/.cargo/git/checkouts/aya-c55fbc69175ac116/79e06f2/aya/src/bpf.rs:122] [FEAT PROBE] BTF var and datasec support: true
14:28:48 [DEBUG] (1) aya::bpf: [/home/jmhuang/.cargo/git/checkouts/aya-c55fbc69175ac116/79e06f2/aya/src/bpf.rs:128] [FEAT PROBE] BTF float support: false
14:28:48 [DEBUG] (1) aya::bpf: [/home/jmhuang/.cargo/git/checkouts/aya-c55fbc69175ac116/79e06f2/aya/src/bpf.rs:131] [FEAT PROBE] BTF decl_tag support: false
14:28:48 [DEBUG] (1) aya::bpf: [/home/jmhuang/.cargo/git/checkouts/aya-c55fbc69175ac116/79e06f2/aya/src/bpf.rs:134] [FEAT PROBE] BTF type_tag support: false
Error: map error

Caused by:
    0: failed to create map `AYA_LOG_BUF` with code -1
    1: Operation not permitted (os error 1)
jmhuang@LAPTOP-U56930FU:~/git/myapp$ uname -r
<IP_ADDRESS>-microsoft-standard-WSL2
jmhuang@LAPTOP-U56930FU:~/git/myapp$ tree -L 3 -d /lib/modules/<IP_ADDRESS>-microsoft-standard-WSL2/
/lib/modules/<IP_ADDRESS>-microsoft-standard-WSL2/
├── build -> /home/jmhuang/WSL2-Linux-Kernel-linux-msft-wsl-<IP_ADDRESS>
├── kernel
└── source -> /home/jmhuang/WSL2-Linux-Kernel-linux-msft-wsl-<IP_ADDRESS>

3 directories

I run into the same yesterday, and was able to work around it using the following hints:
https://prototype-kernel.readthedocs.io/en/latest/bpf/troubleshooting.html
This indicates that the operation might fail due to RLIMIT_MEMLOCK   being too low. I tried changing the limit system wide via ulimit -l, but that didn't work (only allowed to increase the limit).
Then I read through some threads like https://bbs.archlinux.org/viewtopic.php?id=244525 and figured out I can increase it by editing /etc/security/limits.conf. Placing the following line there and logging in again as so root increased the limit (one can confirm via running ulimit -l) and makes my aya example run (at least as root user):
root             -       memlock         131072

As the first link mentioned, it might also be fixable via calling setrlimit in the application - but I didn't investigate that further so far.

I run into the same yesterday, and was able to work around it using the following hints:
我昨天也遇到了同样的情况，并且能够通过以下提示来解决它:
https://prototype-kernel.readthedocs.io/en/latest/bpf/troubleshooting.html
This indicates that the operation might fail due to RLIMIT_MEMLOCK  being too low. I tried changing the limit system wide via ulimit -l, but that didn't work (only allowed to increase the limit). Then I read through some threads like https://bbs.archlinux.org/viewtopic.php?id=244525 and figured out I can increase it by editing /etc/security/limits.conf. Placing the following line there and logging in again as so root increased the limit (one can confirm via running ulimit -l) and makes my aya example run (at least as root user):
这表明操作可能由于 RLIMIT _ MEMLOCK 太低而失败。我尝试通过 ulimit-l 在整个系统范围内更改限制，但是这不起作用(只允许增加限制)。然后我通读了一些线程，比如 https://bbs.archlinux.org/viewtopic.php?id=244525，发现我可以通过编辑/etc/security/limit s.conf 来增加它。将下面的代码行放在那里，然后再次登录，这样 root 用户就增加了限制(可以通过运行 ulimit-l 来确认) ，并使我的 aya 示例运行(至少作为 root 用户) :
root             -       memlock         131072

As the first link mentioned, it might also be fixable via calling setrlimit in the application - but I didn't investigate that further so far.
正如第一个链接所提到的，它也可以通过在应用程序中调用 setrlimit 来修复——但是到目前为止我还没有进一步研究这个问题。

Good job! thanks a lot! I'll try it sometime


Switching off high contrast removes setting

Testing #145616

Basically I'm mimicking the behavior of a user who turns on OS-wide high contrast, but wants to use a specific theme in VS Code.
The odd behavior to me is that I specify a new theme color (and it's not the preferred high contrast theme) then switch off high contrast on the OS, the setting I set is removed.
I think you should only remove this setting if it's the preferred value.
This is @TylerLeonhardt's alt account on linux.

We have the setting window.autoDetectHighContrast that controls whether themes are automatically switched.
A user that wants a specific theme can either disable that, or specify the prefferred hc theme with workbench.preferredHighContrastColorTheme/`workbench.preferredHighContrastLightColorTheme

Agree that the user needs to learn about window.autoDetectHighContrast.
If that setting is on and a OS scheme change happen, we change the theme, regardless if you have changed it manually.
The old behaviour led to situation where users wouldn't understand why window.autoDetectHighContrast was on and would not work.
In the end I think what we have now the most predictable approach.


Replace deprecated grafonnet-lib dependency

grafonnet-lib is deprecated.
Test and validate if a replacement grafonnet suits our needs and use it if so.

Deep investigation showed:

with high probablity it's currently the best and only long-term solution
grafonnet is still in experimental phase and it's not mature enough (in terms of community support and bugless code)
other projects which are significantly larger and also use grafonnet-lib hasn't migrated yet (e.g. kubernetes-mixin)
rewrite of our dashboards to grafonnet will be extensive work  (~4-8 weeks of work for 1 developer)

Conclusion:

we will wait with migration from grafonnet-lib to grafonnet until larger projects do so (watch kubernetes-mixin and also this question on their slack)


fix parquet index building

What changes were proposed in this pull request?
Not allow parquet to split one file into multiple tasks to eliminate no lease error when building index, if we are using OAP for parquet data.
How was this patch tested?
add a test case.
Fixes #243

I'm merging this.

We will support Parquet file splitable later? Is this patch just the work-around in currently?

For parquet, if we let them split files, multiple tasks may read the same index file, which lead to more IO operations. For now we just disable splitable, later we may figure out if we really need split file, or maybe only disable splitable when index is useful.


Scheduler config is not honored and default is used

Describe the bug
After 1.5.1 config from DynamoDB is not read, instead only global (lambda env) config is used.
To Reproduce
Use separate config in 1.5.1 version and it will not take effect.
Expected behavior
If there is additional configuration apart default defined, it should take priority
Please complete the following information about the solution:

[x] Version: [v1.5.1]

Additional context
[Add any other context about the problem here.]
Recent Change: (https://github.com/aws-solutions/instance-scheduler-on-aws/blame/fd54810be022742639cc7fe1ba32a13750424f92/source/app/instance_scheduler/configuration/scheduler_config_builder.py#L89)

This is an intentional change. To change the scheduler configuration, modify the cloudformation parameter values and update the stack. The dynamodb fields for global configuration will be removed in a future release.
When updating the stack, the prior and current behavior is to wipe out all custom configuration and replace it with the cloudformation parameter values (except for the remote account IDs), so configuring directly in dynamodb was always a little risky. An alternative is to modify the environment variables directly, though this creates drift and it has the same problem as dynamodb: it will be overwritten whenever the stack is updated.


error when using brew services on linux

This patch is related to https://github.com/Homebrew/brew/pull/5864 and fixes  https://github.com/Homebrew/brew/issues/5847

Thanks for this @morgo, great work!


Added multiplication table generator

Description
The above script is capable of printing a multiplication table for the given positive number.
Fixes #(2173)
Type of change

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

Checklist:

[x] My code follows the style guidelines(Clean Code) of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have created a helpful and easy to understand README.md
[x] My documentation follows Template for README.md
[x] I have added the project meta data in the PR template.
[x] I have created the requirements.txt file if needed.

Project Metadata
Category:

[x] Calculators
[ ] AI/ML
[ ] Scrappers
[ ] Social_Media
[ ] PDF
[ ] Image_Processing
[ ] Video_Processing
[ ] Games
[ ] Networking
[ ] OS_Utilities
[ ] Automation
[ ] Cryptography
[ ] Computer_Vision
[ ] Fun
[ ] Others

Title: Multiplication table generator
Folder: Multiplication-table-generator
Requirements: None
Script: multiplicationGenerator.py`
Contributor: nashira26
Description: Capable of printing a multiplication table for the given positive number.

@avinashkranjan please review this


ValueError: default logger already configured

I am using tensorboard logger with pytorch. I have this error when i write:
configure("runs/run-1234", flush_secs=5)
for step in range(1000):
log_value('v1', epoch, step)
log_value('v2', D_cost.data, step)
what could have gone wrong?

@GayatriPurandharT most likely, configure was already called once, and it's complaining that the logger is already configured. You can either find and remove a second call to configure, or use tensorboard_logger.Logger object and not configure a global logger.


chore: code cleanup for php 8.1

If those were fixed, we could raise the phpstan level to 5 with this PR:
 ------ --------------------------------------------------------------------------------------------------------------
  Line   src/Populator/OneFieldPopulator.php
 ------ --------------------------------------------------------------------------------------------------------------
  54     Call to an undefined method Doctrine\ORM\EntityRepository<araise\SearchBundle\Entity\Index>::findExisting().
 ------ --------------------------------------------------------------------------------------------------------------

 ------ --------------------------------------------------------------------------------------------------------------
  Line   src/Populator/StandardPopulator.php
 ------ --------------------------------------------------------------------------------------------------------------
  58     Call to an undefined method Doctrine\ORM\EntityRepository<araise\SearchBundle\Entity\Index>::findExisting().
 ------ --------------------------------------------------------------------------------------------------------------

But I need someone else to take a look at this. I don't really get where the problem is.
We should also test this cleanup in a project to see if it holds up.
The Unit Tests pass, but if that is enough - I'm not sure... 🤔

Maybe ask @rugbymauri for another review as he has developed most part of this bundle

@Ruesa18 I implemented the phpstan level 5. Please test this branch locally in a application, then it can be merged!

Hey @tuxes3
I tested this in one of our demo applications and the bundle still worked, as far as I can tell. Nonetheless I would like for @rugbymauri to review the changes as well 🙂


Go Bazelisk: Replace usage of deprecated io/ioutil

io/ioutil has been deprecated since Go 1.16.

https://pkg.go.dev/io/ioutil
https://go-review.googlesource.com/c/go/+/285377

This PR removes it in favor of equivalents in os and io packages.

Hey @fweikert / @meteorcloudy, I believe this one should be straightforward. Could you please review it when you have a moment? Thanks!

Thank you!


fixed fail_fast behavior for typ lists

if a type is specified as a list, then the data should be validated
against each element in the list and be considered valid if item
succeeds. the validate_type function does this by catching exceptions
with a try/except block until one schema validates.
however, if fast_fail is turned off, then exceptions are not thrown
immediatly, they are instead placed in a list to be thrown later. this
caused the loop through possible schemas to exit after the first schema,
even if it was not valide. however, the first schema would still put an
error in the _errors list if it was not valid.
so, if the first schema raised an exception, its exception would be
placed in the esception list and the types loop would not catch it,
exiting immediatly. then, even if a valid schema did exist at some point
later in the list, the validate function would report an error.
this fix monitors the _errors list to handle the above situation
correctly.

thanks for this, I'm going to try to write up a quick test for this & will merge soon

Sounds good. Do you want me to write one? You just using py.test right?

Sure if you have time that'd be great
On Tue, Jun 9, 2015 at 3:02 PM, C.D. Clark III<EMAIL_ADDRESS>wrote:

Sounds good. Do you want me to write one? You just using py.test right?
—
Reply to this email directly or view it on GitHub
https://github.com/sunlightlabs/validictory/pull/88#issuecomment-110465507
.

--
James Turk
Labs Director | Sunlight Foundation http://www.sunlightfoundation.com/
202-558-8723 | @JamesTurk https://twitter.com/jamesturk
[image: Sunlight Foundation] http://sunlightfoundation.com/

OK, I added two tests. One checks that validation does not fail when fast_fail is turned off an a type list is encountered (this is the error fixed by the previous commit), and the second tests that an error is raised and added to the MultipleValidationError that is raised.

thanks, looks great!


Ensure go.mod matches apis/go.mod

Add a utility that compares statements in go.mod and apis/go.mod. If
matching module paths are found, the utility determines whether the
versions match, printing a human-readable report and exiting nonzero iff
any versions do not match.
Add a make rule, make modcheck, to run it.
Plumb modcheck into verify.
HIVE-1941

Expect this to fail verify on the new check. A subsequent commit in this PR will have to sync up the versions.

:+1: Very cool. We have a dependency management section in our development docs which would probably be an okay place for docs if needed.

We have a dependency management section in our development docs which would probably be an okay place for docs if needed.

Good call, done.
Added a second commit to sync the modules. This should be ready for review now.
/assign @abutcher

/lgtm


[service-bus] Additional recovery code

After doing some more stress testing it's clear that our timeouts are far too aggressive and should be lengthened. They were using nanoseconds by default, which was very incorrect.
There were also some other fixes:

We pass in a link revision when recovering to avoid over-recovering the link
There was a spot in the processor where recovery needed to happen and it wasn't. That's been fixed as well.

@jhendrixMSFT - stress testing this newer set of changes now. It's holding up well and provides a much better experience.


Just initiate recompile

Let's close this. This also fails https://buildkite.com/julialang/scimlbenchmarks-dot-jl/builds/1788#018b0afa-219e-4b97-9fe5-696da5c64d92/322-352 because we created the Manifest in 1.10 which uses an incompatible version of Sundials compared to 1.9


Bugfix/home page typo

 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.:x: PaoloComensoli sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


Event promotion when cards are 4

@millianapia - can you please add some details on this? (asking since we have discussed this issue for the English homepage today)

on prod the cards flexes down one row if it is 4 and above instead of turning it to a carousel, i changed the amount of cards needed for it to turn into a carousel to 3 @meols


feat: support arbitrary field dependents

This is a proof of principle PR that would support the feature that @sjdemartini is requesting in https://github.com/pyapp-kit/psygnal/issues/337.  namely:

computed fields can gain events
computed fields (really, currently any field) can list non-field attribute names as their dependents for checking event emission.

@Czaki, I would appreciate your eyes on this.

I just "made it work" ... so there's likely some minor refactoring that should be done here to polish it (particularly in the _check_if_values_changed_and_emit_if_needed area that you had previously worked on)
Feel free to comment in general on the feature request.  I think @sjdemartini motivated it quite nicely his comment, https://github.com/pyapp-kit/psygnal/issues/337#issuecomment-2472157973 ... so please read that for context; and for a quick use case example, see the new test I added in test_private_field_dependents

closes #337

tests are failing during building of mypyc, due to https://github.com/pydantic/pydantic/issues/10907


Adding variable for user specific coverage to roiquant module

Hi,
I am currently running structural data through the struc pipeline. I am running into the problem where my dgm roi's are being rm'ed due to inadequate coverage (<.5 of the voxels have values). This is due to the DGM's k means segmentation, the DGM is being called WM more than GM.
Is it possible to either turn off the coverage flag, or lower the threshold to ~.25?
The threshold as determined here: https://github.com/PennBBL/xcpEngine/blob/master/utils/nodeCoverage.R#L29

It appears this issue is a result of GIGO
One way to possibly avoid this issue, specific to GMD calculation in the deep gray matter (DGM), would be a check for the DGM CNR w/ WM.
Calculating the CNR would be easy: |(mean GM intensity) - (mean WM intensity)| /(std of background intensities)
If the contrast is v low, then be aware of v low or 0 dgm gmd values.
I would consider adding this specifically to the GMD module, and then having the dgmcnr be output to the quality csv.

Potentially of interest for this issue: https://ieeexplore.ieee.org/abstract/document/897810

I actually think I am going to throw this into the QCANAT module, I'm not sure if people use the qcanat but in terms of workflow and what the module is reading in I think it makes much more sense.
I still think moving segmentations to use CNN's could be an incredibly interesting experiment and would deal much better with partial volume effects though

@rciric @mattcieslak @a3sha2
How are we checking if a module / PR / is good to integrate to master?
Is there a dataset I should be working with to see if structural results are identical to some standard output?
I'm not modifying really any processing code but just want to know if there is  a PR format and code check I should adhere to?


Is PIXI able to change Mouse Icon?

i have looking for change mouse's cursor .
From this site
[https://github.com/pixijs/pixi.js/issues/4238]
they have show how to change this. Like below.
const interaction = app.renderer.plugins.interaction;
interaction.cursorStyles["pointer"] = "url('http://pixijs.io/examples/required/assets/basics/bunny.png'), auto";
backgroupImage.cursor = "pointer";
if i don't want to use (url(),auto), just by using (resources.nameTexture,auto),
is this posible?
i had try it, but it is not function able, can anyone give me some suggestion?

OK, PIXI Example was add this already, Thanks!!


ARROW-8554 [C++][Benchmark] Fix building error "cannot bind lvalue"

https://issues.apache.org/jira/browse/ARROW-8554

Another gcc 4.8 issue here. We may need a more comprehensive build that also builds the benchmark executables

I understood that @bkietz added an entry for this, maybe it doesn't have the benchmark enabled?

manylinux1 uses gcc 4.8 but does not build the benchmarks.


Adding puppeeter cluster to this project

Hello again, I saw in ur pinned repos that u created a repo that helps create multiple accounts, with one fingerprint, why not implementing it in this project ?
I tried to create a code with python (the only language I know), and I had an issue with the CAPTCHAs, telling me to handle 20 CAPTCHAs, instead of 2/3/4/5 when I do it manually, I tried changing user agent, IP, Python webbrowser, still got 20 CAPTCHAs, how do you escape this detection in your code ?

Hi, I have not implemented puppeteer cluster to my project because running multiple executions on microsoft can give problems of bad captcha or bad accounts. The solution would be to use few instances with proxy but I want to make it mandatory for the user.
Regarding the captcha, the main work is done by the IP and the fingerprint (which in this case is totally human-likely generated by the library)

[like]  Mohamed akram CHERKAOUI reacted to your message:

From: Silvestro De Caro @.>
Sent: Thursday, October 10, 2024 1:15:58 PM
To: silvestrodecaro/microsoft-account-creator @.>
Cc: Mohamed akram CHERKAOUI @.>; Author @.>
Subject: Re: [silvestrodecaro/microsoft-account-creator] Adding puppeeter cluster to this project (Issue #12)
Vous ne recevez pas souvent de courriers de la part de @.*** Découvrez pourquoi cela est importanthttps://protect.checkpoint.com/v2/r02/___https://aka.ms/LearnAboutSenderIdentification___.YzJlOnVuaXZlcnNpdGludGVybmF0aW9uYWxlZGVyYWJhdDpjOm86ZDc0ZGU5NzU5NzczYjNjMGEyOTUwZmNlN2FkYTIxZTA6Nzo4YjVjOjc2YzVjODdiOWRiYzBjMzg0MmUyOWU5YTY0NTE4MTc3MDMyZDllODA1YTgxZTU2NmYzOTdmYmViOGRkNjcyZjg6aDpUOkY
Hi, I have not implemented puppeteer cluster to my project because running multiple executions on microsoft can give problems of bad captcha or bad accounts. The solution would be to use few instances with proxy but I want to make it mandatory for the user.
Regarding the captcha, the main work is done by the IP and the fingerprint (which in this case is totally human-likely generated by the library)
—
Reply to this email directly, view it on GitHubhttps://protect.checkpoint.com/v2/r02/___https://github.com/silvestrodecaro/microsoft-account-creator/issues/12%23issuecomment-2405066678___.YzJlOnVuaXZlcnNpdGludGVybmF0aW9uYWxlZGVyYWJhdDpjOm86ZDc0ZGU5NzU5NzczYjNjMGEyOTUwZmNlN2FkYTIxZTA6NzpkOTFkOjg3N2IxMjM1OThkNGQ4MTc1M2ZjNjczYmIwOTdlNmQxN2U0NWVkNTUyNTBmYjRiNzFiY2Y3NTY2MDQxMTU1MTU6aDpUOkY, or unsubscribehttps://protect.checkpoint.com/v2/r02/___https://github.com/notifications/unsubscribe-auth/A3P22ACQOKVSEXBHVX2W74LZ2Z4Y5AVCNFSM6AAAAABPWWM64GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBVGA3DMNRXHA___.YzJlOnVuaXZlcnNpdGludGVybmF0aW9uYWxlZGVyYWJhdDpjOm86ZDc0ZGU5NzU5NzczYjNjMGEyOTUwZmNlN2FkYTIxZTA6Nzo1OTE1OjFkOWNhOTNmMmI4MjQyZWJhMjgzNzViYWFjMGQwYTdhYjhiYmJmMGUzYjVhYjNhZjkwMTQ4NTQ3YTg4YTM4Y2Q6aDpUOkY.
You are receiving this because you authored the thread.Message ID: @.***>


Can't create a role with Kibana privileges?

NEST/Elasticsearch.Net version:
6.3.0
Elasticsearch version:
6.4.0
Description of the problem including expected versus actual behavior:
PutRoleAsync accepts a PutRoleDescriptor which allows to set Cluster and Indices privileges.
However there's no support for the Kibana privileges like available in Kibana UI under Management -> Security -> Roles?

Steps to reproduce:

Try to create a new role using PutRoleAsync
Notice it's impossible to provide any Kibana privileges

Provide ConnectionSettings (if relevant):
N/A
Provide DebugInformation (if relevant):
N/A
Describe the feature:
If this is not a bug but a new feature: please allow to set Kibana privileges by extending the PutRoleDescriptor class.

I think kibana is mapped as application specific privileges which we do not support yet as part of the PutRoleRequest
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html
Thanks for bringing this to our attention

opened #3462 to address


Platypus: Utility panel's "Lesson Notes" dropdown missing child roles

According to an Axe a11y audit performed on /course/ch-prerequisites/environment-setup-guide-to-work-with-qiskit-textbook, the Utility panel's "Lesson Notes" dropdown contains a listbox that is missing child roles according to WCAG 1.3.1: https://dequeuniversity.com/rules/axe/4.1/aria-required-children
This might be tricky to solve as it seems to be an issue with the Carbon dropdown component, which according to its accessibility section has some accessibility issues.
We should still try and see if something can be done from our end to solve this our maybe submit a PR to Carbon to solve this if it's an upstream issue.

https://dequeuniversity.com/rules/axe/4.1/aria-required-children

User impact: Critical
Disabilities affected: Blind, Deafblind, Mobility
Requirement(s): WCAG 2.0 (A): MUST
WCAG Success Criteria: 1.3.1 Info and Relationships

This repository is no longer maintained. It has been superseded by IBM Quantum Learning.


Failed to compile BPF module /usr/bin/ebpf-http-statistics.c

Such error while installing plugins on a 3 node k8s cluster:
chdir(/lib/modules/4.19.0-0.bpo.2-amd64/build): No such file or directory
Traceback (most recent call last):
  File "/usr/bin/http-statistics.py", line 294, in <module>
    kernel_inspector = KernelInspector()
  File "/usr/bin/http-statistics.py", line 57, in __init__
    self.bpf = bcc.BPF(EBPF_PROGRAM)
  File "/usr/lib/python2.7/dist-packages/bcc/__init__.py", line 284, in __init__
    raise Exception("Failed to compile BPF module %s" % src_file)
Exception: Failed to compile BPF module /usr/bin/ebpf-http-statistics.c

Having the same issue in a plain docker coreos deployment.
Kernel 4.19.23-coreos-r1 on image 2f782b82816b

Idem with the docker image
docker run --rm -it \
          --privileged --net=host --pid=host \
          -v /lib/modules:/lib/modules \
          -v /usr/src:/usr/src \
          -v /sys/kernel/debug/:/sys/kernel/debug/ \
          -v /var/run/scope/plugins:/var/run/scope/plugins \
          --name weaveworksplugins-scope-http-statistics weaveworksplugins/scope-http-statistics
In file included from /virtual/main.c:2:
In file included from /lib/modules/4.15.0-48-generic/build/include/net/sock.h:64:
/lib/modules/4.15.0-48-generic/build/include/linux/filter.h:463:11: error: use of undeclared identifier 'BPF_TAG_SIZE'
        u8                      tag[BPF_TAG_SIZE];
                                    ^
1 error generated.
Traceback (most recent call last):
  File "/usr/bin/http-statistics.py", line 294, in <module>
    kernel_inspector = KernelInspector()
  File "/usr/bin/http-statistics.py", line 57, in __init__
    self.bpf = bcc.BPF(EBPF_PROGRAM)
  File "/usr/lib/python2.7/dist-packages/bcc/__init__.py", line 284, in __init__
    raise Exception("Failed to compile BPF module %s" % src_file)
Exception: Failed to compile BPF module /usr/bin/ebpf-http-statistics.c

Same story here.

/lib/modules/4.19.0-0.bpo.2-amd64/build is missing for @botzill , should check if kernel version is the same across the cluster and if you have appropriate module directory. Not in scope of scope-http-plugin (sorry couldn't resist) @dguyonvarch here https://github.com/iovisor/bcc/issues/1407 a similar issue is solved by updating bcc tools to the latest version. Hope it helps investigate & close the issue. @TomaszKlosinski same as in missing BPF_TAG_SIZE declaration ?

@AntonioDiSalvo , no, I meant, same as @botzill (both on k8s and using docker on my laptop):
$ docker run --rm -it --privileged --net=host --pid=host \
          -v /lib/modules:/lib/modules \
          -v /usr/src:/usr/src \
          -v /sys/kernel/debug/:/sys/kernel/debug/ \
          -v /var/run/scope/plugins:/var/run/scope/plugins \
          --name weaveworksplugins-scope-http-statistics weaveworksplugins/scope-http-statistics

chdir(/lib/modules/4.19.121-linuxkit/build): No such file or directory
Traceback (most recent call last):
  File "/usr/bin/http-statistics.py", line 294, in <module>
    kernel_inspector = KernelInspector()
  File "/usr/bin/http-statistics.py", line 57, in __init__
    self.bpf = bcc.BPF(EBPF_PROGRAM)
  File "/usr/lib/python2.7/dist-packages/bcc/__init__.py", line 284, in __init__
    raise Exception("Failed to compile BPF module %s" % src_file)
Exception: Failed to compile BPF module /usr/bin/ebpf-http-statistics.c

@AntonioDiSalvo , no, I meant, same as @botzill (both on k8s and using docker on my laptop):
$ docker run --rm -it --privileged --net=host --pid=host \
          -v /lib/modules:/lib/modules \
          -v /usr/src:/usr/src \
          -v /sys/kernel/debug/:/sys/kernel/debug/ \
          -v /var/run/scope/plugins:/var/run/scope/plugins \
          --name weaveworksplugins-scope-http-statistics weaveworksplugins/scope-http-statistics

chdir(/lib/modules/4.19.121-linuxkit/build): No such file or directory
Traceback (most recent call last):
  File "/usr/bin/http-statistics.py", line 294, in <module>
    kernel_inspector = KernelInspector()
  File "/usr/bin/http-statistics.py", line 57, in __init__
    self.bpf = bcc.BPF(EBPF_PROGRAM)
  File "/usr/lib/python2.7/dist-packages/bcc/__init__.py", line 284, in __init__
    raise Exception("Failed to compile BPF module %s" % src_file)
Exception: Failed to compile BPF module /usr/bin/ebpf-http-statistics.c

Is https://github.com/iovisor/bcc/issues/1407#issuecomment-338704338 of any help ? Also very important : is linux 4.19.121 your mandatory target ?  In some recent trials I run there is a problem with a now-blacklisted kprobe which would prevent the execution. The culprit seems to be copy_from_iter as mentioned here https://github.com/iovisor/bcc/issues/2509#issuecomment-530191199 for this issue https://github.com/iovisor/bcc/issues/2509 . Please think about implementing the "solution" as it is a dangerous one (https://cateee.net/lkddb/web-lkddb/KPROBE_EVENTS_ON_NOTRACE.html).


Error:'ZoomTransition' cannot be constructed because it has no accessible initializers

Hi,
if let navigationController = self.navigationController {
        self.animationController = ZoomTransition(navigationController: navigationController) as! ZoomTransition
}
self.navigationController?.delegate = animationController

facing the same issue

Hmm that's odd. I'm not sure why this error is happening.
I have just released a new version with Swift 2.0 support which may have been the problem. Please get the latest and let me know if you are still having a problem.

still experiencing this issue. any ideas?

+1
public init(navigationController: UINavigationController) {
    self.navigationController = navigationController
}

I have just released a new version with the above PR fix.
Thanks everyone


sendMessage, generateToken

closes #18
closes #22

@jiyoontbd heads up, i've broken out the sign/verify logic into #45

Extracting http client to separate PR


point sonar to the right folder for test reports

this pr is for testing github actions only, DO NOT MERGE!

now lib also generates coverage file, and github action refers to all coverage files as well


metrics pod delete

would suggest using below
kubectl -n kube-system delete po -l k8s-app=metrics-server
than
kubectl -n kube-system delete po metrics-server-pod-name

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

ID: 2f0fde36-2ff7-b527-3714-641e48c1d91f
Version Independent ID: 54d4e1e4-4ae1-cc2f-2433-91a16507f847
Content: Configure Metrics Server VPA in Azure Kubernetes Service (AKS) - Azure Kubernetes Service
Content Source: articles/aks/use-metrics-server-vertical-pod-autoscaler.md
Service: azure-kubernetes-service
GitHub Login: @MGoedtel
Microsoft Alias: magoedte

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

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


Typo "Azure IoT hub"→"Azure IoT Hub"

https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-create-use-iot-toolkit

@hyoshioka0128 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Per https://github.com/MicrosoftDocs/azure-docs/pull/62746#issuecomment-693588658, the original capitalization is correct. We'll close this PR. Thanks.


Add the ability to share font data with the application

This adds two unsafe functions that will convert font data to an
Arc<dyn AsRef<[u8]> + Send + Sync> that's returned to the application.
If the face is backed by a file on disk, then it will be mmapped.
Fixes #18

Ok, I've moved the Arc from Arc<Source> into the two Source variants - that made the code a bit simpler as well I think. I used the opportunity of changing Source to allow for supplying a Source to the API, that way one can also use fontdb with std::include_bytes!("some_font.ttf") without copying the data.

Finally found time to review it. It's a very major change, but I guess there is no other way around this issue.


Renaming a .res or .resi to another file extension crashes ReScript language server

I am running one of the latest master builds of the VS Code extension.
When I rename some A.res or A.resi to another file extension, e.g., A.resx, the ReScript language server crashes. This even occurs when A.res/A.resi is empty.

@cknitt would you give more details on how to repro the crash?

@cristianoc In the project I am currently working on, just creating an empty A.res and renaming it to A.resx (by selecting it in the VS Code file tree, pressing enter, modifying the name and pressing enter again) reproduces the crash.
Is it not reproducible for you this way? Then maybe it has something to do with my project setup (yarn workspaces or whatever).

It does not seem to be dependent on my project setup. I can even reproduce this as described with a new project created from scratch following https://rescript-lang.org/docs/manual/latest/installation#new-project.

Turns out vscode calls rescript operations such as semanticTokens and documentSymbol on non-rescript file A.resx, and does not even send openedFile on A.resx.

For what it's worth. Another way to crash the extension: open a non-rescript file, force the editor to consider it ReScript, force an autocomplete.

This resurfaced after merging the actions branch.


Add Monroe County to the Email List

Hello,
I am writing to have Monroe County in New York added to the list of counties on defund12. After conducting some personal research, I have learned that a total of almost $99 million dollars was spent in the 2019-2020 fiscal year to fund the police department and its operations in Monroe County. As of May 15, 2020, the proposed budget is 3.7% less but it is still not enough. One of the “Strategic Goals & Objectives” is to “...reduce crime through crime prevention activities, early identification and intervention of disputes, and apprehension of offenders. (Section 9-13, 2020).” While the budget document does not go into detail about the crime prevention activities, I hardly believe that they will be as effective as a reallocation of funds to services including homeless shelters, education centers, mental health services, etc. My source for this information is the City of Rochester 2019-2020 and 2020-2021 Budget.
The list below is some of the major elected officials in Monroe County that I think should be emailed of these changes.
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Let me know if more information is needed. It is imperative that we begin to hold our elected officials accountable for the continued oversight of systemic racism that exists in our community.

Hey! Thanks for the submission. Please write the email as if someone from the govt was going to receive it so a developer can copy paste it into our codebase. Check out our style guide for more clarity:
https://github.com/defund12/defund12.org/blob/gh-pages/EMAIL_TEMPLATE_STYLE_GUIDE.md#email-template-style-guide

Closing this since Rochester is live https://defund12.org/rochester?browse
Please reopen if you have a Monroe County-specific email template!


storage API: Allow wildcard in object path to allow retrieval of several objects

gcsfs has a very handy feature that allows you to fetch multiple files by allowing wildcards in the object path. I think this would be a nice little feature to add to this library.
This example illustrates the idea:
from google.cloud import storage
c = storage.Client()
bucket = c.bucket('mybucket')
blobs = bucket.blob('2017/*.csv')

As far as I know, the current way to accomplish the same would be to filter the list of all the files in the bucket  and then fetch the files one by one (please correct me if I'm wrong :). The problem with this is that it's slow if you have a bucket with a very large number of files.
Cheers,
Halfdan

@halfdanrump bucket.list_blobs takes an optional parameter prefix. This will filter blobs starting with the given string, this can partly solve your problem.
The following will return iterator for blobs starting with test_
from google.cloud import storage
client = storage.Client()
bucket = client.bucket('mybucket')
blobs = bucket.list_blobs(prefix='test_')

@sagarrakshe You're right, I hadn't noticed that parameter. In my case this is sufficient, so thanks for telling me about it! :)
As you also point it's a partial solution. Actually it might be handle to even allow for regex matches on the filenames @lukesneeringer. I'm not into the code , so I don't know how difficult this would be to implement. Do you think it would be worth the effort?
Cheers,
Halfdan

The list objects API doesn't allow any wildcard parameter, apart from prefix:
https://cloud.google.com/storage/docs/json_api/v1/objects/list
So we need to add a parameter to bucket.list_blobs  method (say pattern=None) which will be used to filter objects by applying that pattern on each object. Is this the optimal way to do?
Any thoughts? @lukesneeringer @dhermes

@sagarrakshe As you note, the back-end doesn't provide such access, so what we are discussing is really a convenience wrapper for application code which would otherwise be something like:
import fnmatch

for blob in bucket.list_blobs():
    if fnmatch.fnmatch(blob.name, "*something"):
        do_something_with(blob)

Nice. So can we close this issue? @tseaver

I'll close it, as there isn't much we can do to improve on application-level processing.

fnmatch lib works, but the filter process so slow. Don't know how gsutil handle the problem, very effectively.

At any point will this feature request be re-opened to allow wildcards within the list_blobs method?
For example:
bucket.list_blobs(prefix='2019*.csv')

@ViRaL95

At any point will this feature request be re-opened to allow wildcards within the list_blobs method?

Because the back-end doesn't provide support for that kind of matching, we decided that it was not worth the effort, given how simple it is do do the matching in the application (as my example above illustrates).

Assuming you have few hundred keys in the same prefix, filter by pattern in memory can take significant time. I think through the API right way to do it is


Improve the retry support for nondeterministic expressions

Contributes to https://github.com/NVIDIA/spark-rapids/issues/11649
This PR is trying to address some requirements described in issue #11649, but not all of them.
It introduces two new classes named GpuExpressionRetryable and RetryStateTracker to initially set up a fundamental rule to support the items 2 and 3 as below, and adds in the relevant unit tests.

We need code changes so that if a retry happens on a non-deterministic expression that is outside of a checkpoint/restore, then we fail instead of retrying.
We also want a way to detect a non-deterministic expression being run outside of a checkpoint/restore retry block and throw an error from the plan so that when we can have tests validate that we have this covered.

And it also adds the integration tests for the case that rand() is used as a result exrepssion in the hash aggregate, along with the tests for Projection and Filter. This is for the item 4, and it still does not cover all the cases where a nondeterministic expression can be used.

build

build

The failure in CI is known issues, see https://github.com/NVIDIA/spark-rapids/issues/11790.

I would also love to see some rand tests around

join (we can restrict the range of rand to make it actually match)
hash aggregate with some distinct operators so expand is called
(Do we need/want rand in the key for an aggregate?)
window operations

Is it ok to add them by another PR ?

@revans2  Could you help review this again?  I'v addressed your comments. Thx in advance.


Chagnged remote_user to ansible_ssh_user

Setting remote_user doesn't seem to work any more in ansible 2.2.1.
Setting the variable ansible_ssh_user instead seems to work.

Not working == ?
When it's not working how do you set remote_user?

What happens if you set it in say ansible.cfg, group_vars or in the play?

tasks/main.yml tries to set_fact: remote_user to "{{ bootstrap_user }}" depending if the users exist or not.
It seems that remote_user is no longer respected by the rest of the play, and it ignores it completely, so the play will never try to run as the bootstrap_user.
setting ansible_ssh_user instead seems to work.

Tried ansible-role-users in a playbook (which worked with v1.7.3) and it didn't break anything (with v1.7.4).


t.takeScreenshot fails and deletes screenshot when runs on browserstack

What is your Test Scenario?
Running tests on browserstack (iPhone) and trying to take screenshot using takeScreenshot API method.
What is the Current behavior?
takeScreenshot fails with the next error
Error: Unable to locate the page area in the browser window screenshot at /path/screen.png, because the page area mark with ID 3717636 is not found in the screenshot.
      at calculateClipInfo (/node_modules/testcafe/src/screenshots/crop.js:81:19)
      at /node_modules/testcafe/src/screenshots/crop.js:104:18

As far as I realised testcafe wasn't able to calc crop area and thrown an error. I found this issue https://github.com/DevExpress/testcafe-browser-provider-browserstack/issues/51 which is exactly same one (setting BROWSERSTACK_USE_AUTOMATE=1 doesn't change anything). I understood the logic behind the error, it's probably fine, but screenshot is not created, what's more it's deleted (if file was there before).
It happens on this line https://github.com/DevExpress/testcafe/blob/master/src/screenshots/capturer.js#L142
What is the Expected behavior?
If I simply comment the line https://github.com/DevExpress/testcafe/blob/master/src/screenshots/capturer.js#L142 screenshot is being taken and saved. Since (I guess) original behaviour for takeScreenshot should just take screenshot (not crop it to element bounds) it would be nice to keep that screenshot.
Your Environment details:

testcafe version:                   1.1.1
testcafe-browser-provider-browserstack:                    1.8.0

Please let me know if I can help/contribute to make this moving.

Hi @Bogdan-Lyashenko
You are using an old TestCafe version - 1.1.1.
The latest TestCafe version (1.14) includes a few bug fixes related to cropping screenshots.
Try this version and let us know about results.

Hi @miherlosev thanks for the quick response.
I tried 1.2.0 - it's still the same behaviour, when takeScreenshot fails (cropScreenshot method throw the error Unable to locate the page area) the clean up logic you have in catch block deletes the file.
See the image with code (thrown error from cropping logic ends up in catch and delete file)

So, I guess there are few ways here, either to NOT delete file there in case of error; or to not throw error where you were 'unable to locate the page' in crop method; or that can be control by some new param for options config in takeScreenshot.
Thanks. Once again - please let me know if I can help/contribute to make this moving faster 🙂

Hello @Bogdan-Lyashenko ,
Thank you for your report. We are aware of this issue and going to fix it in the current development sprint. Please follow this thread to stay informed about our progress.


GUI: Add E/I synaptic gains button

Task 4 of https://github.com/jonescompneurolab/hnn-core/issues/910
hnn_core/network:Network.update_weights() (
https://github.com/jonescompneurolab/hnn-core/blob/master/hnn_core/network.py#L1430 ) currently applies universally across all subsets of {Excitatory, Inhibitory} -> {Excitatory, Inhibitory}. If we assume that most users are going to want to universally increase the gain of a particular synapse connection, this means that both the Network > Connectivity or Network > Cell parameters VBoxes are not good places to add this. In the Connectivity case, a user would have to add the gain to every type of connection, which is annoying and time-consuming. In the Cell parameters case, we cannot select all Excitatory connections to update, which update_weights() currently requires.
For the sake of the tutorial, I think this should be solved in three steps:

Add a new VBox named Network > Universal synaptic gain with 4 adjustable values: the 4 combinations that update_weights() supports.
Later, either add another function or refactor update_weights() so that you can add a unitless gain modifier to connections the "lowest" level of the hierarchy.
Then, add entries in the Network > Connectivity vbox to customize these per every connection, if the user wants: e.g. add a gain box to L2_pyramidal -> L5_basket (soma) and similar.
At this point, if we want, we could also add additional per-cell_type synaptic gain entries in Network > Cell parameters vbox

@dylansdaniels For the zero-ing out of the L2/3 synapses in the Gamma tutorial (near Fig 7 of https://jonescompneurolab.github.io/hnn-tutorials/gamma/gamma ), it may be fine for Thursday if the weights are changed manually. I think in the instance in the example, they would only need to change the outgoing L2/3 Pyramidal weights to 0, which is only about 15 clicks (shown below, they don't need to adjust the inhibitory weights).

I suggest this because the current update_weights() currently does not discriminate between L2 and L5, and will have to be changed before it could be used on Thursday, not to mention where it gets used and tested in the GUI would have to be implemented and tested, etc.

Makes sense! For class, I may make a separate config to load in with the weights set as such, just to save the clicks and speed things along. For updating the tutorial for now, maybe I sidestep this issue and just not that the weights will need to be changed to 0, and later we can add in language for the GUI buttons?

(Note that by "celltype", I mean one of {L2_basket, L2_pyramidal, L5_basket, L5_pyramidal}).
In thinking about this, there are several "levels" at which one would want to edit synaptic gain:

The "lowest" level: {celltype} x {compartment} x {synapse type}. In practice, I believe this is going to be the most detailed level by which users will want to change the gain using the GUI (for the gain of literally individual cells/connections, they can use the API). An API function still needs to be created for this (or net.update_weights() expanded). For the GUI, this should be added to the location indicated by 2 in the following comment: https://github.com/jonescompneurolab/hnn-core/issues/885#issuecomment-2341801255 . Note that in the GUI, this is where not only should the user be able to edit the final gain, but this should ALSO display the actual current value of the gain (this is important).

The "highest" level: the four main connection types: {e-e, e-i, i-e, i-i}. @nick has already implemented changing these in the API, but this needs to be added to the GUI. Note that while this is a common use case, it does not differentiate between layers, which is needed for the Gamma tutorial (see section 4.1 https://jonescompneurolab.github.io/hnn-tutorials/gamma/gamma ). Adding this to the GUI should be carefully considered: note that everything currently in the "Network" tab currently both 1. lets the user change a property, and 2. importantly, lets a user SEE the current value of a property. For the gain of these connections types, there are some valid cases where this will be impossible; for example, if L2_pyramidal->L2_pyramidal's gain is 1, but L2_pyramidal->L5_pyramidal's gain is 0, then we cannot display the current gain solely using the categories of {e-e, e-i, i-e, i-i}. For this reason, I think if we want to add functionality to modify the gain of these types, we do the following:
A. We add this as a separate tab next to "Connectivity" and "Cell parameters".
B. Have one entry for each of {e-e, e-i, i-e, i-i} (default 1), but title them similarly to "Amount to multiply gain by"
C. Also have a purple button that says "Multiply gains" and clearly indicates that this is performing an ACTION, instead of representing the network itself.
D. Finally, the new, current values of the actual gains themselves will be updated and reflected on a per-{celltype}-x-{compartment} basis in the "Connectivity" tab.

We could add an intermediate level, such as {celltype}. In theory, this could go in the "Cell parameters" vbox (once it has been expanded to include all celltypes via https://github.com/jonescompneurolab/hnn-core/issues/917 ). However, I don't think we should do this, since this won't add much value, but will increase the complexity. For example, if we wanted to add a per-celltype gain change from L2_pyramidal in the "Cell parameters" "Synapses" section, we would need to add many boxes like "AMPA gain to L2_pyramidal", "AMPA gain to L2_basket", "AMPA gain to L5_pyramidal", not to mention that it would only make sense to add the option per-synapse type. If we did this, we are basically re-inventing a second interface to do the same thing we will already have in the "Connectivity" tab.

Does anyone else have opinions about how to add synaptic gains to the GUI?


Fix the broken Host HTTP Header for Dailymotion && Fix Test

When I try to download a video from Dailymotion, it fails.
That's because the node request module sends the requests with a lowercase host HTTP Header, whereas it works only with a capitalized Host HTTP Header.
Also, one test didn't pass because the MixCloud URL was a 404.

Nice thanks!