Introduced db-connection function on startup

Allows a function to be passed on startup to pass db-connection details versus entering via inputs
Some small tidy up for IoCs and newspaper-article checking

Merging as needed in deployment

Discussed and approved.


Episode endpoint using wrong api call for updating

Inside the UpdateEpisode method:
var json = await _sonarrClient.PostJson("/command", JsonConvert.SerializeObject(episode, Converter.Settings), "PUT");
That "/command", should be "/episode"

Fixed! Thanks!


is patchfinder64.c  not open source?

is patchfinder64.c  not open source?

I think patchfinder64  is being used to get some function's offset, is it right?   who could help me~

Open it in Hopper or IDA Pro and see what it does if you have to know and obviously you can’t be modifying anything otherwise you would know to dissassemble it
On Oct 8, 2017, at 8:40 PM, gct30002000 <notifications<EMAIL_ADDRESS>wrote:
I think patchfinder64 is being used to get some function's offset, is it right? who could help me~
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/kpwn/yalu102/issues/487#issuecomment-335053731, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHxrWiAUhTVZSsDAVAlp37zLd1uUwczlks5sqXmYgaJpZM4Px7oQ.


Any Example for NodeJS

Hi
I want to use this lib in my node js project but there is no documentation for node js. The way is described is for typescript and I am not using typescript. When I try to use it according to node, I got error
const authenticator = require('otplib');
 const secret = 'KVKFKRCPNZQUYMLXOVYDSQKJKZDTSRLD';
 const token = authenticator.generate(secret);
Getting Error:   authenticator.generate is not a function
@yeojz @UziTech @madarche @encX @olsio

hi @zohaib-novaturesol
Try the following:
const otplib = require('otplib');
const secret = 'KVKFKRCPNZQUYMLXOVYDSQKJKZDTSRLD';
const token = otplib.authenticator.generate(secret);

Examples are still for node.js, and not typescript,  It's written using the import syntax of the future javascript standard.
p.s. Do avoid tagging all contributors.

Thanks...!!
It worked for me.


Get storage not working when use 'FlutterFragmentActivity' in main activity

In my project, I used local_auth and I must change extends of main activity to FlutterFragmentActivity.
After this change, android run make this issue :
   E/flutter (18075): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: MissingPluginException(No
   implementation found for method getApplicationDocumentsDirectory on channel plugins.flutter.io/path_provider)
   E/flutter (18075): #0      GetStorage._init (package:get_storage/src/storage_impl.dart:47:7)
   E/flutter (18075): <asynchronous suspension>
   E/flutter (18075): #1      new GetStorage._internal.<anonymous closure> (package:get_storage/src/storage_impl.dart:28:7)
   E/flutter (18075): <asynchronous suspension>
   E/flutter (18075): #2      main (package:somi_flutter_app/main.dart:25:3)
   E/flutter (18075): <asynchronous suspension>

How can I fix this issue?
Why get storage depends on FlutterActivity?

Facing the same issue, did you find a workaround?


Update error-code-poddrainfailure.md

The note was incorrectly indented, was not following the note format, modified and corrected.
Pull request guidance
Thank you for submitting your contribution to our support content! Our team works closely with subject matter experts in CSS and PMs in the product group to review all content requests to ensure technical accuracy and the best customer experience. This process can sometimes take one or more days, so we greatly appreciate your patience.
We also need your help in order to process your request as soon as possible:

We won't act on your pull request (PR) until you type "#sign-off" in a new comment in your pull request (PR) to indicate that your changes are complete.

After you sign off in your PR, the article will be tech reviewed by the PM or SME if it has more than minor changes. Once the article is approved, it will undergo a final editing pass before being merged.

#sign-off


Added Saved Filters Section and Scrteenshot

Description of the change

Checklist
Please make sure that the proposed change checks all the boxes below before requesting a review:

[X] I have reviewed the guidelines for contributing to this repository.
[X] The preview looks fine.
[X] The tests pass.
[X] The commit history is clean and meaningful.
[X] The pull request is opened against the main branch.
[X] The pull request is no longer marked as a draft.
[X] You agree to license your contribution under the MIT license to Spacelift.

If the proposed change is ready to be merged, please request a review from @spacelift-io/solutions-engineering. Someone will review and merge the pull request.
Thank you for your contribution! 🙇

Not relevant anymore.


[Preview 4] Logging configuration in Blazor WASM

Fixes #17665
Internal Review Topic (links to section)
❓ ...

Setting the logging level and adding a simple provider will likely be the most common use cases in the example code. Are you 👍 with my placing those two lines first?
PrependMessageLoggerProvider seems like an advanced scenario. If it appears, it seems like it should be explained (and probably shown). I noticed that you removed the commented description of it at https://github.com/dotnet/aspnetcore/pull/20432/files#diff-f86c9ef39022e31d7bac9d1aedb571cbL9. Do you want to ...

Only say what it is here? Is the description that you cut ok, or should we say something else about it? I'm concerned about this choice because it isn't going to help much in a fundamentals topic.
Say what it is, and show it? I need the description. Is it ok to use the code from the BasicTestApp? I'm concerned about this choice because it's going to take up a lot of space, and this seems like an advanced scenario. If we go this route, perhaps this bit should be over in our Blazor Advanced Scenarios topic with a cross-link from here (and the WASM hosting model config topic) to there.
Kill it! 🔪

Did I miss any other required namespaces that aren't in the template for the code example? (Devs regularly express their 😠 when we don't show them.)
WRT IConfiguration (https://github.com/dotnet/aspnetcore/issues/20231), I guess we don't need to say anything ... it's about to become 👍 A Thing!:tm: 👍 for Preview 5.

Setting the logging level and adding a simple provider will likely be the most common use cases in the example code. Are you 👍 with my placing those two lines first?

Yes. That seems sensible to me.

PrependMessageLoggerProvider seems like an advanced scenario. If it appears, it seems like it should be explained (and probably shown). I noticed that you removed the commented description of it at

It's probably safe to remove it. I included it in the example in the original issue to show users the variety of ways in which they can configure providers (via both the AddProvider extension method and directly by modifying the Services object). To keep the docs simple, we can axe it for now.

Did I miss any other required namespaces that aren't in the template for the code example? (Devs regularly express their 😠 when we don't show them.)

We'll probably want to include the following for completeness.
using System;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Microsoft.AspNetCore.Components.WebAssembly.Services;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;

Note that I have removed Microsoft.JSInterop because it won't really be needed if we remove the PrependMessageProvider per the note above.

WRT IConfiguration (dotnet/aspnetcore#20231), I guess we don't need to say anything ... it's about to become 👍 A Thing!™ 👍 for Preview 5.

Yes, I'll open another issue with documentation details for that once it is in.
Thanks!

Very good ... thanks.

We'll probably want to include the following for completeness.

Our repo guidelines ... non-verbal and assumed in this case :smile: (there are a lot of them 🙈) ... are only to show the usings for the namespaces involved in the example at hand. We don't show the additional ones that the template provides because they take up too much doc space for little benefit. The complaint from readers is almost never about the existing namespaces. They sharpen their 🦅 beaks and claws 🦅 for us when they go to drop the code into their app, and :boom: ... they need the namespace(s) that go with the code example.
I get the Microsoft.Extensions.Logging need, but what about Microsoft.AspNetCore.Components.WebAssembly.Services? That one isn't provided by the template (p3 template anyway, not sure about p4) ... will that one be required for ...
builder.Logging.SetMinimumLevel(LogLevel.Debug);
builder.Logging.AddProvider(new CustomLoggingProvider());

Done! :+1:
I'll take care of merging this on Preview 4 release day. There will be several of these, and they'll all go in together right after the DR blog post goes live.

@mkArtakMSFT All good on this one?


Zoom levels 2x 6x 8x breaks both scaling and canvas resizing via edge-point dragging

If you zoom in the selection scaling method becomes buggy. If you drag, any of the 8 points on the selection's dotted line, the selected point (along with the selection) jumps to an unexpected position. The same happens when you want to resize the canvas via the outer dragable points.

#13

duplicate of #13


Timeout while getting pending sender allocation ids

Describe the bug
indexer-tap-agent is crashing because it's not able to get the pending sender allocations.
in upgrade indexer we have this amount of tap receipts:
indexer=> select count(*) from scalar_tap_receipts;

  count
----------
 35751122
(1 row)

this is the log I see in tap agent:
  2024-12-06T13:14:13.268815Z  WARN sqlx::query: slow statement: execution time exceeded alert threshold, summary: "WITH grouped AS ( …", db.statement: "\n\
nWITH grouped AS (\n  SELECT\n    signer_address,\n    allocation_id\n  FROM\n    scalar_tap_receipts\n  GROUP BY\n    signer_address,\n    allocation_id\n)\n
SELECT\n  DISTINCT signer_address,\n  (\n    SELECT\n      ARRAY (\n        SELECT\n          DISTINCT allocation_id\n        FROM\n          grouped\n
 WHERE\n          signer_address = top.signer_address\n      )\n  ) AS allocation_ids\nFROM\n  grouped AS top\n", rows_affected: 0, rows_returned: 0, elapsed:
 29.992025861s, elapsed_secs: 29.992025861, slow_threshold: 1s
    at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.8.2/src/logger.rs:126
    in ractor::actor::Actor with id: "0.0"

thread 'main' panicked at crates/tap-agent/src/agent/sender_accounts_manager.rs:153:17:
Timeout while getting pending sender allocation ids
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at /root/crates/tap-agent/src/agent.rs:151:10:
Failed to start sender accounts manager actor.: StartupFailed("Timeout while getting pending sender allocation ids")

The query failing was supposedly improved in this bug https://github.com/graphprotocol/indexer-rs/commit/bf662dc25e0d7c13709e897ec3484c34f0b26cfd#diff-ef687136cadbd96fab64700f3dff0e6a8378eb783a28c9b48d01de29b336f187R313
after I created the index I see it's being heavily used
indexer=> SELECT * FROM pg_stat_user_indexes WHERE indexrelname LIKE 'manual_scalar_tap_receipts_signer_address_allocation_id';
  relid   | indexrelid | schemaname |       relname       |                      indexrelname                       | idx_scan | idx_tup_read | idx_tup_fetch
----------+------------+------------+---------------------+---------------------------------------------------------+----------+--------------+---------------
 13223100 |   74117249 | public     | scalar_tap_receipts | manual_scalar_tap_receipts_signer_address_allocation_id |       14 |    175329410 |      31457862
(1 row)

the index created:
create index concurrently manual_scalar_tap_receipts_signer_address_allocation_id on scalar_tap_receipts (signer_address, allocation_id);

there might be another index missing

the explain from for this query looks like this
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Unique  (cost=1127936.63..1127947.75 rows=200 width=196) (actual time=87064.195..103454.142 rows=2 loops=1)
   CTE grouped
     ->  Group  (cost=1000.59..1078132.41 rows=1483 width=82) (actual time=13.499..8157.096 rows=8884 loops=1)
           Group Key: scalar_tap_receipts.signer_address, scalar_tap_receipts.allocation_id
           ->  Gather Merge  (cost=1000.59..1078117.58 rows=2966 width=82) (actual time=13.496..8150.992 rows=10909 loops=1)
                 Workers Planned: 2
                 Workers Launched: 2
                 ->  Group  (cost=0.56..1076775.20 rows=1483 width=82) (actual time=0.518..5735.907 rows=3636 loops=3)
                       Group Key: scalar_tap_receipts.signer_address, scalar_tap_receipts.allocation_id
                       ->  Parallel Index Only Scan using manual_scalar_tap_receipts_signer_address_allocation_id on scalar_tap_receipts  (cost=0.56..1001341.34 rows=15086772 width=82) (actual time=0.513..3943.161 rows=12068855 loops=3)
                             Heap Fetches: 6837538
   ->  Sort  (cost=49804.23..49807.93 rows=1483 width=196) (actual time=87064.191..100675.713 rows=8884 loops=1)
         Sort Key: top.signer_address, ((SubPlan 3))
         Sort Method: external merge  Disk: 3392664kB
         ->  CTE Scan on grouped top  (cost=0.00..49726.11 rows=1483 width=196) (actual time=8165.491..74732.708 rows=8884 loops=1)
               SubPlan 3
                 ->  Result  (cost=33.50..33.51 rows=1 width=32) (actual time=8.319..8.319 rows=1 loops=8884)
                       InitPlan 2 (returns $3)
                         ->  Unique  (cost=33.47..33.50 rows=7 width=164) (actual time=5.463..7.312 rows=8868 loops=8884)
                               ->  Sort  (cost=33.47..33.48 rows=7 width=164) (actual time=5.454..5.857 rows=8868 loops=8884)
                                     Sort Key: grouped.allocation_id
                                     Sort Method: quicksort  Memory: 1078kB
                                     ->  CTE Scan on grouped  (cost=0.00..33.37 rows=7 width=164) (actual time=0.004..2.433 rows=8868 loops=8884)
                                           Filter: (signer_address = top.signer_address)
                                           Rows Removed by Filter: 16
 Planning Time: 1.966 ms
 Execution Time: 104705.578 ms
(27 rows)


[PoC] Deterministic Class Names

Description
Adds experimental support for deterministic class names.
This PoC is made to show how it could look like, it makes a lot of internal calculations more simple, stable and straight-forward. Yet it increases the overall bundle/markup size as class names are now ~6 chars long. The calculation generates an unique hash (using string-hash) which is then converted to a Base36 string.
Example
If required, add a code example or a link to a working example (repository).
const rule = () => ({
  color: 'red',
  backgroundColor: 'blue'
})

const anotherRule = () => ({
  color: 'red',
  backgroundColor: 'green'
})

renderer.renderRule(rule)
// => _gshHad _he3asi

renderer.renderRule(anotherRule)
// => _h3pyw _he3asi

Versioning

Major

fela

Minor
Patch

fela-dom

Checklist
Quality Assurance

You can also run yarn run check to run all 4 commands at once.

[x] The code was formatted using Prettier (yarn run format)
[x] The code has no linting errors (yarn run lint)
[x] All tests are passing (yarn run test)
[x] There are no flow-type errors (yarn run flow)

Changes
If one of the following checks doesn't make sense due to the type of PR, just check them.

[x] Tests have been added/updated
[ ] Documentation has been added/updated
[x] My changes have proper flow-types

Closing as it causes collisions that again cause issues with server-rendered and client-rendered indifferences.


Theming

Hey guys,
Would it be possible to provide us with a guide on how to theme the UI / components, I've been looking around but couldn't seem to find any.
Thanks for the great set of components! 👍

Its on the roadmap!

Thanks for the update 🐼  looking forward to it :)

Any update on this? Currently, I got no chance to edit styles unless I set every css property !important but this causes a couple of unwanted side effects
I could overide the ngx-ui properties without using !important if I could import the compiled .css file of ngx-ui after mine in e.g. angular-cli.json but I saw it is shipped within your index.ts
Any ideas for a workaround?

It's in our plans... but a ways off.  Closing thsi for now.


Is SAM-Med3D still being updated?

Thank for your great job！Will the Image Encoder of SAM-Med3D be replaced by VIT-Huge and ViT-Large for training? Will more medical data be added to the training?

Hi, scaling up the encoder is not in our plan. 😄
Our focus is to explore the most appropriate solution for general-purpose medical segmentation, especially for volumetric images. Scaling up training data is useful, but it requires burdensome efforts. 😢 We are still exploring to build a more efficient data workflow.


chore(NCI-98): Add checkov workflow

Description
Adding checkov workflow to the repo for security audits.

thank you but we will not be adding this at this time - it does not make sense to run these tools on modules since they are generic. the implementation of the modules is what should be evaluated instead


Dispose of streams that are created to wrap BinaryData

Certain overloads for blob storage create streams to wrap the bytes that are sent in. These Streams are not disposed ~which means (unless I've misunderstood something) they'll hang around for longer than required and cause additional pressure for GC~.
There are no breaking changes, and no changes to any API surfaces (internal or external).
EDIT: Just realised I was getting IDisposable and Finalizers confused, so my comment above about extra GC pressure is incorrect. It's not necessary for these Streams to be disposed of (as MemoryStream doesn't deal with any unmanaged resources) so it's just down to whether it's considered good practice I believe.

/azp run net -  storage - ci

API change check
API changes are not detected in this pull request.


Enable readline mode for coreclr

The coreclr supports the full console behavior now, and so FX_REDUCED_CONSOLE is no longer needed.
This enables tab completion and type coloring  on coreclr fsi.

Link #6185


Added function to calculate R squared value

This PR adds a function calculate_r_squared to algorithms/Linear Regression/linear_regression.go. This function calculates the R squared value of the linear regression model. The R squared value is a statistical measure of how close the data points fitted are to the line calculated. The formula for R squared value is:
$R^2 = \frac{\sum (y_{pred}-\bar{y})^2}{\sum (y-\bar{y})^2}$
For ease of access, a function predict_y was created, which, given an x value, predicts a y value based on the calculated slope and intercept with the formula given below:
$y_{pred} = slope * x + intercept$
closes #16

Great Job @z404!!


Document application rebalancing

Generally you would set a terminationGracePeriodSeconds on a pod that is at least as long as you expect a move to take (5-10m) and then register a preStop hook for your pod that starts the rebalance / waits for it to complete, then returns. The process does not receive SIGTERM under after preStop returns.

https://github.com/kubernetes/kubernetes/issues/43350#issuecomment-287632622

This doesn't appear to be a request for documentation.  I'm going to close this issue, but if there's something I need to document here, please reopen.

People are going to need to setup rebalancing for distributed DBs so I think it's worth documenting the steps.

Can you give the docs team some guidance on next steps?  Are you the right person to talk to or should we be talking to someone else?

@f-w can you help out on this one? It would be nice to have a real-world example documented, eg. ES rebalancing.

@kargakis, my pleasure. Here is the gist of my implementation with source code on GH

added preStop config and changed terminationGracePeriodSeconds per @smarterclayton's suggestion
the preStop script gets current node's ES id, adding it to routing allocation excluded list, then waits for doc count down to 0 and exit. Script can handle multi-pod termination simultaneously.
a cron job empties the list nightly when cluster is stable

With the changes, ES is auto-scalable. The whole ELK setup on OpenShift is documented here

@f-w so If I want to use it which version I can use?

@vinayk06, I use<EMAIL_ADDRESS><EMAIL_ADDRESS>I believe script itself works for es@5.


Consider Big Data for Data Engineers Specialization

https://www.coursera.org/specializations/big-data-engineering

In four concise courses you will learn the basics of Hadoop, MapReduce, Spark, methods of offline data processing for warehousing, real-time data processing and large-scale machine learning. And Capstone project for you to build and deploy your own Big Data Service (make your portfolio even more competitive).

I don't know. There is too many of them now. (lots of them are paid)


chore: External contri/external contri/issue #24726/feat wrong mssql configuration

Description
shadow PR for #34472
Fixes #24726
Automation
/ok-to-test<EMAIL_ADDRESS>:mag: Cypress test results

[!TIP]
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9962367370
Commit: a6cbef76610e9ec548d2dde9f59c848941d5d0c7
Cypress dashboard.
Tags: @tag.Datasource
Spec:
Tue, 16 Jul 2024 19:16:22 UTC

Communication
Should the DevRel and Marketing teams inform users about this change?

[ ] Yes
[x] No

Summary by CodeRabbit

New Features

Improved validation for connection mode, endpoints, and authentication in MSSQL plugin.
Enhanced error messages for missing hostnames and database names.

Tests

Added tests for validating various datasource configurations, including null credentials, endpoints, hosts, and authentication details.

To pull new changes from https://github.com/appsmithorg/appsmith/pull/34472 PR, we need to follow below steps

Checkout to the current PR branch where new changes need to fetch git checkout external-contri/external-contri/Issue-#24726/feat-wrong-mssql-configuration
git remote add saiprabhu https://github.com/saiprabhu-dandanayak/appsmith.git
git fetch saiprabhu   ( This will pull all the branches in the mentioned repo locally )
git merge external-contri/Issue-#24726/feat-wrong-mssql-configuration
Push changes

branch where new changes need to fe

ok @rishabhrathod01 , will do that now.

To pull new changes from #34472 PR, we need to follow below steps

Checkout to the current PR branch where new changes need to fetch git checkout external-contri/external-contri/Issue-#24726/feat-wrong-mssql-configuration
git remote add saiprabhu https://github.com/saiprabhu-dandanayak/appsmith.git
git fetch saiprabhu   ( This will pull all the branches in the mentioned repo locally )
git merge external-contri/Issue-#24726/feat-wrong-mssql-configuration
Push changes

Hi @rishabhrathod01 , actually the above mentioned  git checkout external-contri/external-contri/Issue-#24726/feat-wrong-mssql-configuration branch is not present in my forked repository so i am unable to switch to the same branch should take the latest pull from

To pull new changes from #34472 PR, we need to follow below steps

Checkout to the current PR branch where new changes need to fetch git checkout external-contri/external-contri/Issue-#24726/feat-wrong-mssql-configuration
git remote add saiprabhu https://github.com/saiprabhu-dandanayak/appsmith.git
git fetch saiprabhu   ( This will pull all the branches in the mentioned repo locally )
git merge external-contri/Issue-#24726/feat-wrong-mssql-configuration
Push changes

Hi @rishabhrathod01 , since i dont have git checkout external-contri/external-contri/Issue-#24726/feat-wrong-mssql-configuration branch is not present in my forked repo , should i create one and push or else can i take the leatest changes from release and push it to https://github.com/appsmithorg/appsmith/pull/34472

@saiprabhu-dandanayak those steps mentioned above were for the internal team to reference later on. You don't need to do anything here. Thanks.

/build-deploy-preview skip-test=true


🐛 [BUG] - incorrect calculation for prometheus provider

SLO Generator Version
v2.3.3
Python Version
3.9.13
What happened?
I am using ServiceLevelObjective in sre.google.com/v2 with this spec
spec:
  backend: prometheus
  method: good_bad_ratio
  service_level_indicator:
    filter_good: envoy_cluster_external_upstream_rq{app="x",envoy_cluster_name="y",kubernetes_namespace="z",envoy_response_code!~"5.."}
    filter_valid: envoy_cluster_external_upstream_rq{app="x",envoy_cluster_name="y",kubernetes_namespace="z"}

calculation ends with SLI is not between 0 and 1 (value = 1.000091)
with DEBUG=1 it seems that for 100% SLI prometheus returns sometime filter_good > filter_valid the DEBUG logs
....
slo_generator.backends.prometheus - DEBUG - Query: sum(increase(envoy_cluster_external_upstream_rq{app="x",envoy_cluster_name="y",kubernetes_namespace="z",envoy_response_code!~"5.."}[3600s]))
slo_generator.backends.prometheus - DEBUG - {'data': {'result': [{'metric': {},
                      'value': [1674577674.326, '44.197872287004095']}],
          'resultType': 'vector'},
 'status': 'success'}
...
slo_generator.backends.prometheus - DEBUG - Query: sum(increase(envoy_cluster_external_upstream_rq{app="x",envoy_cluster_name="y",kubernetes_namespace="z"}[3600s]))
slo_generator.backends.prometheus - DEBUG - {'data': {'result': [{'metric': {},
                      'value': [1674577674.959, '44.193849641808484']}],
          'resultType': 'vector'},
 'status': 'success'}
slo_generator.backends.prometheus - DEBUG - Good events: 44.197872287004095 | Bad events: -0.004022645195611574
slo_generator.report - DEBUG - paket-static-availability        | 1 hour   | Backend response: (44.197872287004095, -0.004022645195611574)

What did you expect?
calculation of SLI return 1
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Hi @maksim-paskal, thanks for raising this issue.
Any chance you could export the timeseries that generated these results and share them here (assuming there is nothing confidential) so I can reproduce the issue on my machine?
Then can you also confirm the filter_good query has a double quote after envoy_cluster_name="y, just before ,kubernetes_namespace="z"? Otherwise I am afraid the query might not give the expected results.
Finally, I am a bit surprised by the values returned by Prometheus. An SLI is usually computed by dividing the number of good events by the number of valid (= good + bad) events. These two numbers are usually integers. Here the logs show floating-point values. I am not a Prometheus expert but is it possible a count or sum is missing?

@lvaylet, thanks for quick responce.
Sory for typo in typo filter_good, change it in issue description, this is a real promQL they are works sometime, sometime return this error.
My example data from Prometheus (we actualy using Thanos Query v0.26.0)
Query:
envoy_cluster_external_upstream_rq{app="x",envoy_cluster_name="y",kubernetes_namespace="z"}[1m]

Returns:
envoy_cluster_external_upstream_rq{app="x", envoy_cluster_name="y",kubernetes_namespace="z"}

253117 @1674638934.622
253125 @1674638940.809
253127 @1674638955.809
253162 @1674638970.809
253197 @1674638985.809

Query:
increase(envoy_cluster_external_upstream_rq{app="x",envoy_cluster_name="y",kubernetes_namespace="z"}[1m])

Returns:
195.75282786645047

It's some time int, sometime float in different windows, increase and rate in PromQL is calculating per-second metrics I think it maybe float

Thanks @maksim-paskal. I need to investigate.
For the record, what type of SLI are you computing here? Availability? Also, what does envoy_cluster_external_upstream_rq represent? Requests with response class or response code, as hinted in this documentation?

envoy_cluster_external_upstream_rq is a upstream counter of specific HTTP response codes (e.g., 201, 302, etc.), we plan to use it to calculate availability of our service. You can simulate this environment with this files, you need Docker:
docker-compose.yml
version: '3.7'
services:
  prometheus:
    image: prom/prometheus:v2.36.2
    volumes:
    - ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
    ports:
    - 9090:9090
    command:
    - '--config.file=/etc/prometheus/prometheus.yml'
  envoy:
    image: envoyproxy/envoy:v1.21.5
    volumes:
    - ./envoy.yml:/etc/envoy/envoy.yaml:ro
    ports:
    - 10000:10000

prometheus.yml
global:
  scrape_interval:     5s
  evaluation_interval: 5s
scrape_configs:
- job_name: 'prometheus'
  static_configs:
  - targets: ['localhost:9090']
- job_name: 'envoy'
  metrics_path: /stats/prometheus
  static_configs:
  - targets: ['envoy:9901']

envoy.yml
admin:
  address:
    socket_address: { address: <IP_ADDRESS>, port_value: 9901 }

static_resources:
  listeners:
  - name: listener_0
    address:
      socket_address: { address: <IP_ADDRESS>, port_value: 10000 }
    filter_chains:
    - filters:
      - name: envoy.filters.network.http_connection_manager
        typed_config:
          "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
          stat_prefix: ingress_http
          codec_type: AUTO
          route_config:
            name: local_route
            virtual_hosts:
            - name: local_service
              domains: ["*"]
              routes:
              - match: { prefix: "/" }
                route: { cluster: some_service }
          http_filters:
          - name: envoy.filters.http.router
            typed_config:
              "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
  clusters:
  - name: some_service
    connect_timeout: 0.25s
    type: STATIC
    lb_policy: ROUND_ROBIN
    load_assignment:
      cluster_name: some_service
      endpoints:
      - lb_endpoints:
        - endpoint:
            address:
              socket_address:
                address: <IP_ADDRESS>
                port_value: 9901

# run prometheus and envoy
docker-compose up

# generate some records, for example with https://github.com/tsenart/vegeta
echo "GET http://localhost:10000/ready" | vegeta attack -duration=60s -output=/dev/null

open Prometheus http://<IP_ADDRESS>:9090
increase(envoy_cluster_external_upstream_rq{envoy_response_code="200"}[1d])

I think the issue is that if a ned datapoint is added to prometheus' TSDB between the Good & the Valid query, you get an offset between them, leading to this kind of behaviour.
You would need to send a finite timeframe to prometheus and make sure that this timeframe is further from "now" than the scrape interval of these metrics.
The only alternative is to make Prometheus perform the division and only query an SLI from it, to ensure consistency. (which may require developpement, depending on the backend current implementation.) But the downside from that is you cannot export good & bad event metrics anymore, by doing so.
In my opinion, this issue is probably similar to #343 (although with different backends)

a workaround could be use good/bad instead of good/valid

@maksim-paskal   I just discussed the issue with @bkamin29 and @mveroone.
We are pretty sure this behavior is caused by the tiny delay between the two requests (one for good and another one for valid). They are called and executed a few milliseconds apart, resulting in the same window length but slightly different start/end times. As a consequence, as we are looking at two different time horizons, the most recent one might have a slightly different number of good/valid events. Also note that the backend itself can be busy ingesting and persisting "old" data points between the two calls, and account for more data points during the second call.
Two options to mitigate this behavior:

I can work on integrating the @ modifier into the queries sent to Prometheus, so both calls have the exact same time horizon. I can use the timestamp of the report generation request for this value. Just note that this addition will not prevent the provider from ingesting/persisting new data points between the two calls.
You can use the query_sli method instead of the good_bad_ratio one, and delegate the computation of the good/valid ratio to Prometheus itself. That would result in a single request and a single call. However, with this approach, you give up on the ability to export the number of good and bad events.


Change custom matrix loader to LAGraph MM loader

Currently the raw *.e files can be read by the graphio.c loader.
A better solution is to offload the reindexing of the files to another script (so Graphalytics loading times will make some sense now), and only use a lightweight loading provided by LAGraph.

Implemented a converter target, which is a utility program to transform the Graphalytics matrices to the MatrixMarket format. This program is called from load-graph.sh.


New Bug converting Java to ObjC

Please Help! I have this trace:
java.lang.NullPointerException
at com.google.devtools.j2objc.translate.NilCheckResolver.handleConditional(NilCheckResolver.java:556)
at com.google.devtools.j2objc.translate.NilCheckResolver.visit(NilCheckResolver.java:539)
at com.google.devtools.j2objc.ast.IfStatement.acceptInner(IfStatement.java:69)
at com.google.devtools.j2objc.ast.TreeNode.accept(TreeNode.java:95)
at com.google.devtools.j2objc.ast.ChildLink.accept(ChildLink.java:76)
at com.google.devtools.j2objc.ast.ChildList.accept(ChildList.java:91)
at com.google.devtools.j2objc.ast.Block.acceptInner(Block.java:55)
at com.google.devtools.j2objc.ast.TreeNode.accept(TreeNode.java:95)
at com.google.devtools.j2objc.translate.NilCheckResolver.visit(NilCheckResolver.java:504)
at com.google.devtools.j2objc.ast.MethodDeclaration.acceptInner(MethodDeclaration.java:138)
at com.google.devtools.j2objc.ast.TreeNode.accept(TreeNode.java:95)
at com.google.devtools.j2objc.translate.NilCheckResolver.visitType(NilCheckResolver.java:512)
at com.google.devtools.j2objc.translate.NilCheckResolver.visit(NilCheckResolver.java:534)
at com.google.devtools.j2objc.ast.TypeDeclaration.acceptInner(TypeDeclaration.java:106)
at com.google.devtools.j2objc.ast.TreeNode.accept(TreeNode.java:95)
at com.google.devtools.j2objc.ast.ChildLink.accept(ChildLink.java:76)
at com.google.devtools.j2objc.ast.ChildList.accept(ChildList.java:91)
at com.google.devtools.j2objc.ast.CompilationUnit.acceptInner(CompilationUnit.java:209)
at com.google.devtools.j2objc.ast.TreeNode.accept(TreeNode.java:95)
at com.google.devtools.j2objc.ast.UnitTreeVisitor.run(UnitTreeVisitor.java:39)
at com.google.devtools.j2objc.pipeline.TranslationProcessor.applyMutations(TranslationProcessor.java:210)
at com.google.devtools.j2objc.pipeline.TranslationProcessor.processConvertedTree(TranslationProcessor.java:103)
at com.google.devtools.j2objc.pipeline.FileProcessor.processCompiledSource(FileProcessor.java:151)
at com.google.devtools.j2objc.pipeline.FileProcessor.access$000(FileProcessor.java:38)
at com.google.devtools.j2objc.pipeline.FileProcessor$1.handleParsedUnit(FileProcessor.java:129)
at com.google.devtools.j2objc.jdt.JdtParser$1.acceptAST(JdtParser.java:168)
at j2objc.org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:1029)
at j2objc.org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:636)
at j2objc.org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:990)
at com.google.devtools.j2objc.jdt.JdtParser.parseFiles(JdtParser.java:180)
at com.google.devtools.j2objc.pipeline.FileProcessor.processBatch(FileProcessor.java:134)
at com.google.devtools.j2objc.pipeline.FileProcessor.processInputs(FileProcessor.java:66)
at com.google.devtools.j2objc.pipeline.TranslationProcessor.processInputs(TranslationProcessor.java:81)
at com.google.devtools.j2objc.J2ObjC.run(J2ObjC.java:146)
at com.google.devtools.j2objc.J2ObjC.main(J2ObjC.java:183)

Can you attach either the source code or an example? Also, what version are you using? The latest NilCheckResolver.java:556 doesn't point to a code statement. Here are the instructions to build the latest.

I'm building the latest already.
Many thanks for your awesome work!!
Simone Giacometti (from Turin, Italy)
2016-11-17 16:32 GMT+01:00 Tom Ball<EMAIL_ADDRESS>
Can you attach either the source code or an example? Also, what version
are you using? The latest NilCheckResolver.java:556
https://github.com/google/j2objc/blob/master/translator/src/main/java/com/google/devtools/j2objc/translate/NilCheckResolver.java#L556
doesn't point to a code statement. Here are the instructions to build the
latest. http://j2objc.org/docs/Building-J2ObjC.html
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/google/j2objc/issues/816#issuecomment-261278256, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABfPdTTxTNVPUUJ5EzdtneygzgjSc_IJks5q_HN6gaJpZM4K1aBP
.

That stack trace isn't from the latest source, as NilCheckResolver.java:556
doesn't refer to a statement. Please do a "git pull" and rebuild, then post
an updated stack trace. If that isn't possible, please attach some source
that demonstrates this problem.
While you're doing that, I'll investigate how to improve the exception
handling so the node that triggered the problem gets logged.
On Thu, Nov 17, 2016 at 7:49 AM Simone Giacometti<EMAIL_ADDRESS>wrote:

I'm building the latest already.
Many thanks for your awesome work!!
Simone Giacometti (from Turin, Italy)
2016-11-17 16:32 GMT+01:00 Tom Ball<EMAIL_ADDRESS>
Can you attach either the source code or an example? Also, what version
are you using? The latest NilCheckResolver.java:556
<
https://github.com/google/j2objc/blob/master/translator/src/main/java/com/google/devtools/j2objc/translate/NilCheckResolver.java#L556
doesn't point to a code statement. Here are the instructions to build the
latest. http://j2objc.org/docs/Building-J2ObjC.html
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/google/j2objc/issues/816#issuecomment-261278256,
or mute
the thread
<
https://github.com/notifications/unsubscribe-auth/ABfPdTTxTNVPUUJ5EzdtneygzgjSc_IJks5q_HN6gaJpZM4K1aBP
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/google/j2objc/issues/816#issuecomment-261283327, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AC2kr9UW80-70qV8gAOOjlwPZYh-MmFgks5q_HeAgaJpZM4K1aBP
.

I just finished the build using "make frameworks" (2 hours long!). Where is now the j2objc executable? I cannot find it after the build...

From the root directory (where you ran "make frameworks") it's at
dist/j2objc.
On Thu, 17 Nov 2016 at 11:45 Simone Giacometti<EMAIL_ADDRESS>wrote:

I just finished the build using "make frameworks" (2 hours long!). Where
is now the j2objc executable? I cannot find it after the build...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/j2objc/issues/816#issuecomment-261299731, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AGPqjf6dTqCKI-Hdi1upO0fO8f_DQyeQks5q_ISJgaJpZM4K1aBP
.

Many thanks!!

Cannot reproduce, assume fixed.


Fix a crash when logging a JS exception that has no source file

This error occurs primarily when starting the app and the packager is not running.
source can be null when the evaluated code does not come from a source file so it just crashes with a SIGSEGV when passing it to String::adopt. This restores the beloved 'Can't find variable __fbBatchedBridge' redbox error :)
Seems to be introduced in 17e1ceb5437049f794b74507feb6856e3450d2b2.
cc @davidaurelio

Thanks! This looks good to me but I'd like someone familiar with this code to do the honors and ship this.

@facebook-github-bot shipit

@janicduplessis thank you! I didn’t realize source could actually be nullptr


api_base config key unsupported

Version info

intercom-rails version: 1.1.7
Rails version: 4.2.10

Was adviced to add api_base to our configuration to deal with Vietnam ISP issues. Are there any other ways to pass the api_base parameter with Rails?
Logs
NoMethodError: undefined method api_base= for IntercomRails::Config:Class

Hey @johanbaaij
I just merged a change here: https://github.com/intercom/intercom-rails/pull/329
The version of intercom-rails hasn't been bumped yet so you might have to try and target the master branch in your gemfile as per this article from bundler https://bundler.io/guides/git.html
If that is something you can do, let me know if all works as expected.
I'll also loop back here when the version is bumped.

This should now be fixed in version 0.4.2


VisualStudioCode insists on preserving files I do not want

!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

Hi @mcandre,
Templates are defined here: https://github.com/toptal/gitignore/tree/master/templates
Looks like there already is a PR relating to this: https://github.com/toptal/gitignore/pull/325
Please check it out and and your opinion as a comment


enable NNAPI in CPU path

With NNAPI delegate added, Android devices with floating point
NNAPI device(s) could run facedectioncpu and objectdectioncpu
accelerated. On devices without accelerators, tflite interpreter
will simply fall back to CPU.

Similar code is in recent update. Slose this. https://github.com/google/mediapipe/blob/master/mediapipe/calculators/tflite/tflite_inference_calculator.cc#L523-L530


"Bârla" is listed in the drop-down menu

Description:
"Bârla" is listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Bârla" in the search bar.

Expected results
The location is listed in the drop-down menu as "Bârla, Argeș".


Validation v1.11.1 not working on IE8

I was using the validation v1.11.1 (https://github.com/jzaefferer/jquery-validation/tree/1.11.1) in my project but when I tested at IE8, the submitHandler function runs ok but it doesn't validate the fields then, the form submit is executed.
Also, using the v1.11.0 (https://github.com/jzaefferer/jquery-validation/tree/1.11.0), the form is correctly validated at IE8.

@cstipkovic , Thanks for raising this issue. I was able to resolve my long going problem. I was struggling from past 2 days.


[RELAY] Allow StructuralEqual/Hash via Var.vid

cc @jroesch @michalpiszczek

So this PR also fixes the long standing VSCode warning issue, which is great.


Foreign key constraint when execute transaction

DBFlow Version: 3.1.1
Issue Kind (Bug, Question, Feature): Question
Description:
I have 2 tables like these:
Table A
public class A extend BaseModel {
    @Column
    @PrimaryKey(autoincrement = true)
    @Index
    private int id;

List<B> objectsOfTableB;

...
}

Table B
public class B extend BaseModel {
    @PrimaryKey
    @ForeignKey(saveForeignKeyModel = false)
    @Index
    ForeignKeyContainer<A> AForeignKeyContainer;

...
}

I'm trying to save a list with associated objects of both tables (ensuring that first are object from table A and nextly objects from table B) with the next code:
DatabaseDefinition database = FlowManager.getDatabase(AppDatabase.class);
ProcessModelTransaction<BaseModel> processModelTransaction =
new ProcessModelTransaction.Builder<>(new ProcessModelTransaction.ProcessModel<BaseModel>() {
     @Override
     public void processModel(BaseModel model) {
        model.save();
     }
}).addAll(models).build();
database.executeTransaction(processModelTransaction);

And I can't by foreign key constraint
android.database.sqlite.SQLiteConstraintException: foreign key constraint failed (code 19)
   at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
   at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:973)
   at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:788)
   at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:86)
   at com.raizlabs.android.dbflow.structure.database.AndroidDatabaseStatement.executeInsert(AndroidDatabaseStatement.java:77)
   at com.raizlabs.android.dbflow.sql.saveable.ModelSaver.insert(ModelSaver.java:110)
   at com.raizlabs.android.dbflow.sql.saveable.ModelSaver.save(ModelSaver.java:57)
   at com.raizlabs.android.dbflow.sql.saveable.ModelSaver.save(ModelSaver.java:40)
   at com.raizlabs.android.dbflow.structure.ModelAdapter.save(ModelAdapter.java:103)
   at com.raizlabs.android.dbflow.structure.BaseModel.save(BaseModel.java:51)
   at com.company.data.local.DbFlowDataManagerHelper$1.processModel(DbFlowDataManagerHelper.java:47)
   at com.company.data.local.DbFlowDataManagerHelper$1.processModel(DbFlowDataManagerHelper.java:44)
   at com.raizlabs.android.dbflow.structure.database.transaction.ProcessModelTransaction.execute(ProcessModelTransaction.java:68)

I'm searching in Google if SQLite or DBFlow have this constraint for transactions but I don't see anything relative to this.
How can I save all objects of both tables in a transaction?
Thank you for your time!

android.database.sqlite.SQLiteConstraintException: foreign key constraint failed (code 19) probably means you tried to save B before there was an A. you need to disable checking on foreign key constraints or save the A before a B. each transaction is executed sequentially so you should be ok in terms of adding one after another.


fix: add retry when applying knative manifests

Sometimes accessing knative manifests fails, e.g.: https://github.com/Kong/kubernetes-testing-framework/actions/runs/4063531683/jobs/6995883947#step:6:48
knative_test.go:22: configuring the testing environment
    knative_test.go:26: building the testing environment and Kubernetes cluster
    knative_test.go:28:
        	Error Trace:	/home/runner/work/kubernetes-testing-framework/kubernetes-testing-framework/test/integration/knative_test.go:28
        	Error:      	Received unexpected error:
        	            	failed to deploy addon knative: knative CRD deployment failed STDOUT=() STDERR=(error: unable to read URL "https://github.com/knative/serving/releases/download/knative-v1.9.0/serving-crds.yaml", server reported 403 Forbidden, status code=403
        	            	): exit status 1
        	Test:       	TestEnvironmentWithKnative
--- FAIL: TestEnvironmentWithKnative ([49](https://github.com/Kong/kubernetes-testing-framework/actions/runs/4063531683/jobs/6995883947#step:6:50).97s)

This PR adds a retry for this step to avoid such situations.

Codecov Report
Base: 53.67% // Head: 3.28% // Decreases project coverage by -50.40% :warning:

Coverage data is based on head (96a26fa) compared to base (2bbe466).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #520       +/-   ##
==========================================
- Coverage   53.67%   3.28%   -50.40%
==========================================
  Files          49      49
  Lines        3877    3896       +19
==========================================
- Hits         2081     128     -1953
- Misses       1539    3762     +2223
+ Partials      257       6      -251

Flag
Coverage Δ

integration-test
?

unit-test
3.28% <0.00%> (-0.02%)
:arrow_down:

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

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


use objects of uri/object type uri for fk and m2m in API

instead of having only the URI to the object itself, we should have an object of object uri / object type to make a simple destinction without another query more easy.

resolved in 717bc4ae94945042064579f70d025fb5bce6ddfd


Update JCE note in reference for recent JDK8 versions

In recent JDK8 versions, it is not required to download and install JCE policies.
Editing $JAVA_HOME/jre/lib/security/java.security and making sure to uncomment crypto.policy=unlimited is enough.
Could you update the reference documentation to reflect that?

@bclozel when you say "recent" do you mean only after a certain release or is it all JDK8 releases?

It's actually the latest, u152 - see release notes.

Yes: http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/07011844584f/src/share/lib/security/java.security-macosx


Permissions error writing cwl.outputs.json when running with Docker

While testing the latest bcbio test CWL workflow (https://github.com/bcbio/test_bcbio_cwl) using the 1.0.1 release, I'm running into a permissions issue using a Docker container. Everything runs cleanly when using --no-container but when I run with analysis happening in a container I get a mix of root and user owned files:
$ ls -lh bunny_work/main-run_info-cwl-2017-08-04-230809.994/root/prep_samples_to_rec/
total 20K
-rw-rw-r-- 1 chapmanb chapmanb 4.1K Aug  4 23:08 cwl.inputs.json
-rw-r--r-- 1 root     root     3.4K Aug  4 23:08 cwl.output.json
-rw-rw-r-- 1 chapmanb chapmanb    0 Aug  4 23:08 job.err.log
drwxr-xr-x 2 root     root     4.0K Aug  4 23:08 log
-rw-r--r-- 1 root     root      541 Aug  4 23:08 wdl.output.prep_samples_rec.txt

which triggers an error writing/reading cwl.outputs.json for all steps in the pipeline:
[2017-08-04 23:08:13.915] [info] job root.prep_samples_to_rec has started
[2017-08-04 23:08:14.205] [info] pulling docker image quay.io/bcbio/bcbio-vc:latest
[2017-08-04 23:08:14.215] [error] could not find auth config for quay.io. returning empty builder
[2017-08-04 23:08:15.178] [info] running command line: bcbio_nextgen.py runfn prep_samples_to_rec cwl sentinel_runtime=cores,1,ram,2048 sentinel_parallel=multi-combined 'sentinel_outputs=prep_samples_rec:description;reference__fasta__base;config__algorithm__coverage;config__algorithm__variant_regions' sentinel_inputs=config__algorithm__coverage:var,config__algorithm__variant_regions:var,reference__fasta__base:var,description:var
[2017-08-04 23:08:22.982] [error] failed to serialize object {prep_samples_rec=[{config__algorithm__coverage={class=file, path=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/automated/coverage_transcripts-bam.bed, location=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/automated/coverage_transcripts-bam.bed, size=29, checksum=sha1$775df662dc4252b71a038c97db7a744d77752e2a}, config__algorithm__variant_regions={class=file, path=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/automated/variant_regions-bam.bed, location=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/automated/variant_regions-bam.bed, size=150, checksum=sha1$7b9b8000707147addea362bec9edd35a72599eb8}, description=test1, reference__fasta__base={class=file, path=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19.fa, secondaryfiles=[{class=file, path=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19.fa.fai, location=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19.fa.fai, size=43, checksum=sha1$f2e30d7e4f304ffd45ddd3cc26441434df8bf5fe}, {class=file, path=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19.dict, location=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19.dict, size=292, checksum=sha1$d8584a6cb5bcdc476b4577bf89a25e215ca61449}, {class=file, path=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19.dict, location=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19.dict, size=292, checksum=sha1$d8584a6cb5bcdc476b4577bf89a25e215ca61449}, {class=file, path=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19-resources.yaml, location=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19-resources.yaml, size=696, checksum=sha1$834b7af0bda1f289f209a8d27b52ceac447a057c}, {class=file, path=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19.fa.fai, location=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19.fa.fai, size=43, checksum=sha1$f2e30d7e4f304ffd45ddd3cc26441434df8bf5fe}], location=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19.fa, size=37196, checksum=sha1$e2ca54abb52ba4013b16f3f31d4083b8bf6de054}}, {config__algorithm__coverage=null, config__algorithm__variant_regions={class=file, path=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/automated/variant_regions-bam.bed, location=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/automated/variant_regions-bam.bed, size=150, checksum=sha1$7b9b8000707147addea362bec9edd35a72599eb8}, description=test2, reference__fasta__base={class=file, path=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19.fa, secondaryfiles=[{class=file, path=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19.fa.fai, location=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19.fa.fai, size=43, checksum=sha1$f2e30d7e4f304ffd45ddd3cc26441434df8bf5fe}, {class=file, path=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19.dict, location=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19.dict, size=292, checksum=sha1$d8584a6cb5bcdc476b4577bf89a25e215ca61449}, {class=file, path=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19.dict, location=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19.dict, size=292, checksum=sha1$d8584a6cb5bcdc476b4577bf89a25e215ca61449}, {class=file, path=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19-resources.yaml, location=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19-resources.yaml, size=696, checksum=sha1$834b7af0bda1f289f209a8d27b52ceac447a057c}, {class=file, path=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19.fa.fai, location=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19.fa.fai, size=43, checksum=sha1$f2e30d7e4f304ffd45ddd3cc26441434df8bf5fe}], location=/home/chapmanb/drive/work/cwl/test_bcbio_cwl/testdata/genomes/hg19/seq/hg19.fa, size=37196, checksum=sha1$e2ca54abb52ba4013b16f3f31d4083b8bf6de054}}]} to file /home/chapmanb/drive/work/cwl/test_bcbio_cwl/bunny_work/main-run_info-cwl-2017-08-04-230809.994/root/prep_samples_to_rec/cwl.output.json
java.io.filenotfoundexception: /home/chapmanb/drive/work/cwl/test_bcbio_cwl/bunny_work/main-run_info-cwl-2017-08-04-230809.994/root/prep_samples_to_rec/cwl.output.json (permission denied)
        at java.io.fileoutputstream.open0(native method) ~[na:1.8.0_121]
        at java.io.fileoutputstream.open(fileoutputstream.java:270) ~[na:1.8.0_121]
        at java.io.fileoutputstream.<init>(fileoutputstream.java:213) ~[na:1.8.0_121]
        at java.io.fileoutputstream.<init>(fileoutputstream.java:162) ~[na:1.8.0_121]
        at com.fasterxml.jackson.core.jsonfactory.creategenerator(jsonfactory.java:1072) ~[rabix-cli.jar:na]
        at com.fasterxml.jackson.databind.objectwriter.writevalue(objectwriter.java:872) ~[rabix-cli.jar:na]
        at org.rabix.common.json.beanserializer.serialize(beanserializer.java:90) [rabix-cli.jar:na]
        at org.rabix.common.json.beanserializer.serializepartial(beanserializer.java:78) [rabix-cli.jar:na]
        at org.rabix.bindings.cwl.cwlprocessor.collectoutputs(cwlprocessor.java:150) [rabix-cli.jar:na]
        at org.rabix.bindings.cwl.cwlprocessor.postprocess(cwlprocessor.java:135) [rabix-cli.jar:na]
        at org.rabix.bindings.cwl.cwlbindings.postprocess(cwlbindings.java:83) [rabix-cli.jar:na]
        at org.rabix.executor.handler.impl.jobhandlerimpl.postprocess(jobhandlerimpl.java:346) [rabix-cli.jar:na]
        at org.rabix.executor.execution.command.statuscommand.run(statuscommand.java:53) [rabix-cli.jar:na]
        at org.rabix.executor.execution.jobhandlercommand.run(jobhandlercommand.java:51) [rabix-cli.jar:na]
        at org.rabix.executor.execution.jobhandlerrunnable.run(jobhandlerrunnable.java:60) [rabix-cli.jar:na]
        at java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) [na:1.8.0_121]
        at java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) [na:1.8.0_121]
        at java.lang.thread.run(thread.java:745) [na:1.8.0_121]
[2017-08-04 23:08:22.983] [error] failed to execute status command for 7c007953-b34d-458e-a84a-26222080af1d. java.io.filenotfoundexception: /home/chapmanb/drive/work/cwl/test_bcbio_cwl/bunny_work/main-run_info-cwl-2017-08-04-230809.994/root/prep_samples_to_rec/cwl.output.json (permission denied)
java.lang.illegalstateexception: java.io.filenotfoundexception: /home/chapmanb/drive/work/cwl/test_bcbio_cwl/bunny_work/main-run_info-cwl-2017-08-04-230809.994/root/prep_samples_to_rec/cwl.output.json (permission denied)
        at org.rabix.common.json.beanserializer.serialize(beanserializer.java:96) ~[rabix-cli.jar:na]
        at org.rabix.common.json.beanserializer.serializepartial(beanserializer.java:78) ~[rabix-cli.jar:na]
        at org.rabix.bindings.cwl.cwlprocessor.collectoutputs(cwlprocessor.java:150) ~[rabix-cli.jar:na]
        at org.rabix.bindings.cwl.cwlprocessor.postprocess(cwlprocessor.java:135) ~[rabix-cli.jar:na]
        at org.rabix.bindings.cwl.cwlbindings.postprocess(cwlbindings.java:83) ~[rabix-cli.jar:na]
        at org.rabix.executor.handler.impl.jobhandlerimpl.postprocess(jobhandlerimpl.java:346) ~[rabix-cli.jar:na]
        at org.rabix.executor.execution.command.statuscommand.run(statuscommand.java:53) ~[rabix-cli.jar:na]
        at org.rabix.executor.execution.jobhandlercommand.run(jobhandlercommand.java:51) [rabix-cli.jar:na]
        at org.rabix.executor.execution.jobhandlerrunnable.run(jobhandlerrunnable.java:60) [rabix-cli.jar:na]
        at java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) [na:1.8.0_121]
        at java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) [na:1.8.0_121]
        at java.lang.thread.run(thread.java:745) [na:1.8.0_121]
caused by: java.io.filenotfoundexception: /home/chapmanb/drive/work/cwl/test_bcbio_cwl/bunny_work/main-run_info-cwl-2017-08-04-230809.994/root/prep_samples_to_rec/cwl.output.json (permission denied)
        at java.io.fileoutputstream.open0(native method) ~[na:1.8.0_121]
        at java.io.fileoutputstream.open(fileoutputstream.java:270) ~[na:1.8.0_121]
        at java.io.fileoutputstream.<init>(fileoutputstream.java:213) ~[na:1.8.0_121]
        at java.io.fileoutputstream.<init>(fileoutputstream.java:162) ~[na:1.8.0_121]
        at com.fasterxml.jackson.core.jsonfactory.creategenerator(jsonfactory.java:1072) ~[rabix-cli.jar:na]
        at com.fasterxml.jackson.databind.objectwriter.writevalue(objectwriter.java:872) ~[rabix-cli.jar:na]
        at org.rabix.common.json.beanserializer.serialize(beanserializer.java:90) ~[rabix-cli.jar:na]
        ... 11 common frames omitted
[2017-08-04 23:08:22.984] [error] failed to execute status command for 7c007953-b34d-458e-a84a-26222080af1d. java.io.filenotfoundexception: /home/chapmanb/drive/work/cwl/test_bcbio_cwl/bunny_work/main-run_info-cwl-2017-08-04-230809.994/root/prep_samples_to_rec/cwl.output.json (permission denied)
java.lang.illegalstateexception: java.io.filenotfoundexception: /home/chapmanb/drive/work/cwl/test_bcbio_cwl/bunny_work/main-run_info-cwl-2017-08-04-230809.994/root/prep_samples_to_rec/cwl.output.json (permission denied)
        at org.rabix.common.json.beanserializer.serialize(beanserializer.java:96) ~[rabix-cli.jar:na]
        at org.rabix.common.json.beanserializer.serializepartial(beanserializer.java:78) ~[rabix-cli.jar:na]
        at org.rabix.bindings.cwl.cwlprocessor.collectoutputs(cwlprocessor.java:150) ~[rabix-cli.jar:na]
        at org.rabix.bindings.cwl.cwlprocessor.postprocess(cwlprocessor.java:135) ~[rabix-cli.jar:na]
        at org.rabix.bindings.cwl.cwlbindings.postprocess(cwlbindings.java:83) ~[rabix-cli.jar:na]
        at org.rabix.executor.handler.impl.jobhandlerimpl.postprocess(jobhandlerimpl.java:346) ~[rabix-cli.jar:na]
        at org.rabix.executor.execution.command.statuscommand.run(statuscommand.java:53) ~[rabix-cli.jar:na]
        at org.rabix.executor.execution.jobhandlercommand.run(jobhandlercommand.java:51) [rabix-cli.jar:na]
        at org.rabix.executor.execution.jobhandlerrunnable.run(jobhandlerrunnable.java:60) [rabix-cli.jar:na]
        at java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) [na:1.8.0_121]
        at java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) [na:1.8.0_121]
        at java.lang.thread.run(thread.java:745) [na:1.8.0_121]
caused by: java.io.filenotfoundexception: /home/chapmanb/drive/work/cwl/test_bcbio_cwl/bunny_work/main-run_info-cwl-2017-08-04-230809.994/root/prep_samples_to_rec/cwl.output.json (permission denied)
        at java.io.fileoutputstream.open0(native method) ~[na:1.8.0_121]
        at java.io.fileoutputstream.open(fileoutputstream.java:270) ~[na:1.8.0_121]
        at java.io.fileoutputstream.<init>(fileoutputstream.java:213) ~[na:1.8.0_121]
        at java.io.fileoutputstream.<init>(fileoutputstream.java:162) ~[na:1.8.0_121]
        at com.fasterxml.jackson.core.jsonfactory.creategenerator(jsonfactory.java:1072) ~[rabix-cli.jar:na]
        at com.fasterxml.jackson.databind.objectwriter.writevalue(objectwriter.java:872) ~[rabix-cli.jar:na]
        at org.rabix.common.json.beanserializer.serialize(beanserializer.java:90) ~[rabix-cli.jar:na]
        ... 11 common frames omitted
[2017-08-04 23:08:22.989] [info] failed to execute status command for 7c007953-b34d-458e-a84a-26222080af1d. java.io.filenotfoundexception: /home/chapmanb/drive/work/cwl/test_bcbio_cwl/bunny_work/main-run_info-cwl-2017-08-04-230809.994/root/prep_samples_to_rec/cwl.output.json (permission denied)
[2017-08-04 23:08:23.027] [warn] job root.prep_samples_to_rec, rootid: c4f4d90f-37c7-4c1c-aa42-b72445fe73ed failed: failed to execute status command for 7c007953-b34d-458e-a84a-26222080af1d. java.io.filenotfoundexception: /home/chapmanb/drive/work/cwl/test_bcbio_cwl/bunny_work/main-run_info-cwl-2017-08-04-230809.994/root/prep_samples_to_rec/cwl.output.json (permission denied)
[2017-08-04 23:08:23.057] [warn] root job c4f4d90f-37c7-4c1c-aa42-b72445fe73ed failed.

Thanks much for any suggestions/tips about how best to run this to avoid the issues. Ideally Docker would get run using -u so they're owned by the user and we never have to deal with root permissions outside of the container, but open to any ideas/thoughts about how best to do it. Thanks much.

In core.properties, if executor.set_permissions parameter is true, after execution Bunny chown all files in working directory to executor.permission.gid and executor.permission.uid or try to find uid and gid of current user. Can you try to set executor.permission.gid and executor.permission.uid in config? Maybe for some reason gid and uid are not detected properly, and that is why it failed. On which operating system you run workflow?

Thanks so much, swapping the config over to executor.set_permissions=true fixed the issue. We had it set to default to work around the issue where docker was required for --no-container runs (#258). Do you know if that's still a concern, or has that bug been fixed? If the --no-container bit is fixed I can stop changing the bioconda default so it'll do the right thing in this case by defaul.
As a more general question, is there a way to adjust the parameters via the command line without writing a new configuration directory/file -- via -D or some other java magic? I could adjust these for the specific cases via a small bcbio wrapper to avoid folks needing to worry about it.

The latest version (1.0.3) of rabix cli doesn't use any additional containers for setting permissions so you can leave executor.set_permissions=true and nothing will happen in the case of local execution.
We are also looking into a rework of the configuration system.

Milso, thanks so much for working on this. I was testing 1.0.3 and ran into a separate issue (#383) but will definitely do more testing on this once that's resolved. Thanks again for all the help.


As a user I want a flag to return a best result from every possible data source that hits

I think we need to add 2 modifications:
preferred_sources=0
: would return all preferred sources
multiple_per_source=true
: would return all detected matcher for a resource, not just the best one  in resource. They will still be sorted by score


⚠ Bofrost.be has degraded performance

In 8a6a0bb, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1499 ms

Resolved: Bofrost.be performance has improved in bcde4d5 after 13 minutes.


Create CONTRIBUTING.md for this project

CONTRIBUTING.md is a file which tells folks all they need to know to contribute to an project
Create the file for this repo stating step by step process from forking the repo to creating a PR (add screenshots if needed).

I would love to work upon this @anubha-v-ardhan

@BushraNazish Sure, go ahead

Yep !!

The context regarding how to add the directories and by what name was not clear, so I did it intuitively.
Feel free to connect for any further changes !

I have updated the README file.
And also added the contents for CONTRIBUTING.md in the README file as suggested by @saiyam1814


Use request.URL.Host instead when request.Host is empty

As we discussed in Slack, this will add support for HTTP requests with empty request.Host, such as elasticsearch client, which set request URL after a path-only request creation.

Please update the CHANGES.md file.

Reference to the slack link: https://the-asf.slack.com/archives/CHQ1L4T54/p1734924623039789

Binary is not allowed. Please remove this unexpected file.

@StoneMoe, please fix the CI failure.

@StoneMoe, please fix the CI failure.

It says:
Error: instrument.go:38:9: string `http` has 2 occurrences, make it a constant (goconst)
	return "http"
	       ^

Maybe we should fix it by incresing goconst min-occurrences options? @mrproliu

Can you help to check why there say 2 occurrences, If so, we should add a new const here.

Can you help to check why there say 2 occurrences, If so, we should add a new const here.

In test file there is a new "http" string I added.
Considering change goconst option ignore-tests to true instead I think.


Cleaning up  TFJS Service: Removing non-conventional ML examples

#3000 #3028

Fwiw, ability to perform linear regression is not without it's charms. If I had an actual use case, how would we get it done?

@sjmiles Great question.
I think the direction we want to move toward is one where models are referred to via URLs to artifacts (#3094).
Something that came up in my reading is the fact that some models read from artifacts are trainable after loading, and some are frozen.
The way I imagine you would accomplish a linear regression would be as follows:

In a particle, you call a service that loads a model. In this case, it is a pre-built linear regressor.
Once you have that model, you can call predict, assuming it's trained on a data set that suits your problem.
If you need to retrain the model, you can (in the same particle or another) call a service to fit the model to data. Elsewhere, you can call predict on this updated model.

This build is subject to the issue #3100. For all intents and purposes, the build is passing.


Add watch mode

It would be amazing to have tstyche --watch.

2.0.0-beta.0 shipped with initial support of the watch mode. Running tstyche --watch will watch for changes of test files and will rerun them. Give it a try!
In the upcoming weeks I will implement watch for:

[ ] direct dependencies of the test files
[ ] and tstyche.config.json.

2.0.0-beta.1 just shipped with improved watch mode.
The test runner will restart, if TSTyche config file changes. In case, if any configuration errors are encountered, it will wait for file changes and try again.

Initial implementation will ship tomorrow with TSTyche 2.0. I opened  a discussion for feedback, see #222.


Removed ownable from contract

Within Checkpoint 2: ⚖ Vendor 🤖, the instruction Edit Vendor.sol to inherit Ownable assumes that the Vendor contract isn't already Ownable. Therefore, the Vender contract should not inherit the Ownable contract by default. Instead, the user should update the contract to inherit the Ownable contract when the instruction Edit Vendor.sol to inherit Ownable is reached.

Thanks for your pr @miki-saarna , nice catch! Please check my comment

Updated uncomment message as mentioned here https://github.com/scaffold-eth/se-2-challenges/pull/146#discussion_r1510291060
Merging this, thank you again!


Try to get Github Actions CI running and passing

close #203 #309
the fix for the cache file issue can be worked around by making a new path for tests.


Minor fixes to wording on the home page

Mostly focused on better comparing leafmap to other tools, but also a few wording improvements.

Looks great! Many thanks for your contribution.


Add MDD Dataset

Name: MDD Dataset
Description: The Movie Dialog dataset (MDD) is designed to measure how well models can perform at goal and non-goal orientated dialog centered around the topic of movies (question answering, recommendation and discussion), from various movie reviews sources such as MovieLens and OMDb.
Paper: arXiv
Data: https://research.fb.com/downloads/babi/
Motivation: This is one of the popular dialog datasets, a part of Facebook Research's "bAbI project".

Checkbox

[x] Create the dataset script /datasets/my_dataset/my_dataset.py using the template
[x] Fill the _DESCRIPTION and _CITATION variables
[x] Implement _infos(), _split_generators() and _generate_examples()
[x] Make sure that the BUILDER_CONFIGS class attribute is filled with the different configurations of the dataset and that the BUILDER_CONFIG_CLASS is specified if there is a custom config class.
[x] Generate the metadata file dataset_infos.json for all configurations
[x] Generate the dummy data dummy_data.zip files to have the dataset script tested and that they don't weigh too much (<50KB)
[x] Add the dataset card README.md using the template : fill the tags and the various paragraphs
[x] Both tests for the real data and the dummy data pass.

Note: I haven't included the following from the data files: entities (the file containing list of all entities in the first three subtasks), dictionary(the dictionary of words they use in their models), movie_kb(contains the knowledge base of information about the movies, actors and other entities that are mentioned in the dialogs). Please let me know if those are needed, and if yes, should I make separate configurations for them?

Hi @lhoestq,
I have added changes from review.

Thanks for approving :)


when i run node index.js cannot do anything in koa-router 7.3

the code is copy the example , and version in the pircture . when i run the code and  die . no any error . what's wrong ?

At the end of your example code add:
app.listen(3000);

Check this "Hello World" example from koa.


Feature: URL Prefix support (#181)

Usable when service is behind a proxy.
Tested with docker-distribution and apache httpd.

This change is

Hi,
Is it ok?
Thanks!

sorry, severe case of ENOTIME-itis. looks ok overall, let's just call it path prefix, since it's a prefix to the url's path component

thank you!


TrimBot - Error handling should be more verbose

Describe the bug
Fatal error handling should be more verbose. We experienced a fatal and the error message was blank.
Not helpful.

We want to use
logging.exception(error)


How to bind to keycode rather then key "name"

I need to be able to bind a specific keycode rather then a typicla key "name" (such as 'escape/esc')
This is because webOS uses a keycode for the coloured keys on the TV remote.
Would this be possible?

And what are theses codes for theses keys?
Could you discovery it and use the name?

For one key the code is 406. It doesn't have a "name" :/
On Thu, 10 Sep 2015 21:32 Ismael Santos Kafeltz<EMAIL_ADDRESS>wrote:

And what are theses codes for theses keys?
Could you discovery it and use the name?
—
Reply to this email directly or view it on GitHub
https://github.com/ccampbell/mousetrap/issues/297#issuecomment-139370809
.

Possible ways to explore this:
a) modify _MAP, https://github.com/ccampbell/mousetrap/blob/master/mousetrap.js#L34
ai) fork and use your modification
aii) fork and submit patch for an API method that allows you to add to _MAP
b) utilize Mousetrap.handleKey (see docs)


Class 'Zend_Log' not found - sounds strange? We do log ...

Maybe it helps yoou
Fatal error: Class 'Zend_Log' not found in /home/xxx/domains/domai.nl/public_html/app/code/core/Mage/Core/functions.php on line 247
File does exist
lib/Zend/Log.php

Hi Sean,
I've fixed this issue by commenting the following in htaccess
php_value include_path "."
to (obvious)
#php_value include_path "."
and then the error disappeared and I was able to run the script.
Hope this helps!


Can't continue if typed invalid command and message sent

If I typed invalid command
info login Logging in...
info login Logged in
info login Request to reconnect
info login Request to pull 1
info login Request to pull 2
info login Request to thread_sync
info login Done logging in.
Logged in as<EMAIL_ADDRESS>Fetching user details...
Listening for incoming messages...
> exit
Invalid command - check your syntax

Invalid command - check your syntax

Invalid command - check your syntax
.exit

after message sent
> message "Shu-Cho Feng" Hello World!
Sent message to Shu-Cho Feng

Invalid command - check your syntax
message

I need to use ctrl + c to continue operation.

should be fixed now @fbukevin


bug(Menu): Up and down arrow keys do not cycle through all options

Is this a regression?

[ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
No response
Description
StackBlitz reproduction
When using keyboard navigation (up and down arrows) on the options on a Material Menu, in the reproduction example above, the arrow keys do not reach all items.
GIF:
Pressing the Down or Up arrow keys never reaches the "Feature A" item, it just cycles back to the top.
https://user-images.githubusercontent.com/36610621/220189514-bbcac50f-2ae1-4582-8549-ece2a4649fdd.mp4
HTML of the Material Menu and menu items. The 3rd button can't be navigated to using the keyboard up and down arrows.

In this case, the issue happens when Menu Items (mat-menu-item) are added to the Menu (mat-menu) with a <ng-content select="..."> directive .
The use case (minimally demonstrated in the example) is a common menu shared across multiple features, and each feature will add their own option to the menu.
Reproduction
StackBlitz reproduction
Steps to reproduce:

Open the StackBlitz above
Navigate to one of the Material Menu trigger buttons using the keyboard
Open the menu using the keyboard (Enter or Space)
Use Up and Down arrows to navigate through the menu options
Note that the last menu option cannot be selected with the keyboard

Expected Behavior
Up and down arrow keys move through the menu items, as documented in Menu keyboard interaction.
Actual Behavior
Up and down arrow keys do not navigate through all the menu options
Environment

Angular: 15.1.2
CDK/Material: 15.1.2
Browser(s): Edge, Chrome, Firefox
Operating System (e.g. Windows, macOS, Ubuntu): Windows

Duplicate of https://github.com/angular/components/issues/26243.

Thanks @crisbeto !
Is this a documentation issue then? The Angular Material Menu documentation implies that this works unconditionally, it doesn't mention that the keyboard accessibility sometimes works and sometimes not. This is important for us for accessibility compliance, the menu options are not reachable by keyboard/screen reader.
I'm happy to submit a PR to add this information to the documentation page!

I think the problem with calling this out in the docs is that it isn't really something specific to Material, it's just how content projection works on the framework level. There are several more Material components that depend on ContentChildren queries that would have to be called out.

Thanks!

There are several more Material components that depend on ContentChildren queries that would have to be called out.

For me, the fact that it is widespread is more reason to document it, not less. Or are you saying it's better to not document in @angular/material but instead in @angular/angular, like on this page? https://angular.io/guide/content-projection

Yeah I think that this is more a matter of documenting how content projection works rather than how Material works.


Switch axes order of TelescopeFrame / NominalFrame for CameraDisplay / CameraGeometry

Today I got an email asking about plotting cameras at the telescope positions and the showers then not matching up with the impact position.
While the email example I got uses CameraFrame and not TelescopeFrame or NominalFrame, this also does not work using those frames, it seems necessary to swap x / y for those frames.
Example with a 10 TeV shower on La Palma only showing the 4 LSTs:
from ctapipe.visualization import CameraDisplay
from ctapipe.coordinates import TelescopeFrame
from ctapipe.io import EventSource
from ctapipe.calib import CameraCalibrator
import matplotlib.pyplot as plt
import astropy.units as u
import numpy as np

# only the 4 LSTs
allowed_tels = [1, 2, 3, 4]

source = EventSource(
    './Data/sim_telarray/cta-prod5-lapalma/0.0deg/Data/gamma_20deg_180deg_run7___cta-prod5-lapalma_desert-2158m-LaPalma-dark.simtel.zst',
    allowed_tels=allowed_tels,
)

subarray = source.subarray
calib = CameraCalibrator(subarray)

positions = u.Quantity([subarray.positions[tel_id] for tel_id in allowed_tels]).to_value(u.m)

# get relative extent to normalize coordiantes to [0, 1]
min_x, min_y, min_z = positions.min(axis=0)
max_x, max_y, max_z = positions.max(axis=0)

fig = plt.figure(figsize=(10, 10))

ax = fig.add_subplot(1, 1, 1)
ax.scatter(positions[:, 0], positions[:, 1], s=10, zorder=10, label='Telescope Positions')
impact, = ax.plot([], [], 'ro', ms=15, label='impact')
ax.set_aspect(1)
ax.legend()

size = 100
axs = [
    ax.inset_axes([x - size / 2, y - size / 2, size, size], transform=ax.transData)
    for x, y, _ in positions
]

ax.set_xlim(min_x - size / 2, max_x + size / 2)
ax.set_ylim(min_y - size / 2, max_y + size / 2)

disps = []
for i, ax in enumerate(axs):
    geom = subarray.tel[i + 1].camera.geometry

    # transform to telescope frame
    geom_tel = geom.transform_to(TelescopeFrame())

    disps.append(CameraDisplay(geom_tel, ax=ax, cmap='inferno'))

    # remove any labels / axis / ticks
    ax.set_axis_off()
    ax.set_xticks([])
    ax.set_xlabel('')
    ax.set_ylabel('')

fig.tight_layout(pad=0)
fig.show()

for event in source:
    calib(event)
    shower = event.simulation.shower
    impact.set_data(shower.core_x.to_value(u.m), shower.core_y.to_value(u.m))
    for tel_id, dl1 in event.dl1.tel.items():
        disps[tel_id - 1].image = dl1.image

    plt.savefig('shower_image.png')
    break

Current master:

With assigning switching the attribution of fov_lon / fov_lat to x / y:

I am not yet sure how I would approach solving this. What I did to produce the image is certainly a hack and not the actual implementation we should use.

Ah, the plot also does not work in EngineeringCameraFrame:

Why using a frame in the sky to show something on the ground?
As far as I know, the camera frame should be already fixed as the ground frame in corsika, so I think we should limit ourselves to fix that and not the Telescope/Nominal frames
I think this problem could be fixed by checking if (I don't recall now) our ground frame is rotated wrt one from corsika

The CameraFrame  is  aligned with Corsika ground frame if and only if the telescope  points to zenith = 0°, az = 0°, and you are right.
This plot should only work in this condition.

Not sure also why we should support this kind of visualization when we already have e.g. ArrayDisplay.set_line_hillas.
This plot is showing essentially the same information (the direction of the image as projected on the ground) plus other information that would be clearer as shown e.g. in the plots used in PR #1408 which would be independent of pointing positions

Because it looks cool.
But you were right, the issue is just the azimuth. My file used 180d and the CameraFrame is only aligned when azimuth is 0d.
You can however rotate the camera by azimuth like so:
from ctapipe.visualization import CameraDisplay
from ctapipe.coordinates import TelescopeFrame, EngineeringCameraFrame
from ctapipe.io import EventSource
from ctapipe.calib import CameraCalibrator
import matplotlib.pyplot as plt
import astropy.units as u
import numpy as np
from copy import deepcopy

# only the 4 LSTs
allowed_tels = [1, 2, 3, 4]

source = EventSource(
    './Data/sim_telarray/cta-prod5-lapalma/0.0deg/Data/gamma_20deg_180deg_run7___cta-prod5-lapalma_desert-2158m-LaPalma-dark.simtel.zst',
    allowed_tels=allowed_tels,
)

subarray = source.subarray
calib = CameraCalibrator(subarray)
event = next(iter(source))
calib(event)

positions = u.Quantity([subarray.positions[tel_id] for tel_id in allowed_tels]).to_value(u.m)

# get relative extent to normalize coordiantes to [0, 1]
min_x, min_y, min_z = positions.min(axis=0)
max_x, max_y, max_z = positions.max(axis=0)

fig = plt.figure(figsize=(10, 10))

ax = fig.add_subplot(1, 1, 1)
ax.scatter(positions[:, 0], positions[:, 1], s=10, zorder=10, label='Telescope Positions')
impact, = ax.plot([], [], 'ro', ms=15, label='impact')
ax.set_aspect(1)
ax.legend()

size = 100
axs = [
    ax.inset_axes([x - size / 2, y - size / 2, size, size], transform=ax.transData)
    for x, y, _ in positions
]

ax.set_xlim(min_x - size / 2, max_x + size / 2)
ax.set_ylim(min_y - size / 2, max_y + size / 2)

disps = []
for i, ax in enumerate(axs):

    geom = deepcopy(subarray.tel[i + 1].camera.geometry)
    print(geom.rotate(event.pointing.array_azimuth))

    # transform to telescope frame
    # geom_tel = geom.transform_to(EngineeringCameraFrame())

    disps.append(CameraDisplay(geom, ax=ax, cmap='inferno'))

    # remove any labels / axis / ticks
    ax.set_axis_off()
    ax.set_xticks([])
    ax.set_xlabel('')
    ax.set_ylabel('')

fig.tight_layout(pad=0)
fig.show()

shower = event.simulation.shower
impact.set_data(shower.core_x.to_value(u.m), shower.core_y.to_value(u.m))
for tel_id, dl1 in event.dl1.tel.items():
    disps[tel_id - 1].image = dl1.image

fig.savefig('shower_image_engi.png')
plt.show()

So this in fact a non-issue. You can create this kind of plot using ctapipe, there is no bug, you just have to take care of rotation the camera frame to the correct azimuth before plotting.
Closing this.

Image using CameraFrame and rotation the cameras by azimuth:


Papyrus] Fix model validation

Issue and tracking information
Developer's time Estimated effort to fix (hours):
Developer's Actual time spent on fix (hours)
Issue reporter to provide a detailed description of the issue in the space below
Fix validation to work in Papyrus

Added "CX Validation" context menu for validation.


Added parameter to toggle NCC computation

Introduced a parameter (compute_ncc, defaut=True) that allows to turn off the (time-consuming) computation of the 4 NCC metrics.
Checklist

[x] I have read the CONTRIBUTING guide.
[x] My PR is based from the current GaNDLF master .
[x] Non-breaking change (does not break existing functionality): provide as many details as possible for any breaking change.
[ ] Function/class source code documentation added/updated.
[ ] Code has been blacked for style consistency.
[ ] If applicable, version information has been updated in GANDLF/version.py.
[ ] If adding a git submodule, add to list of exceptions for black styling in pyproject.toml file.
[ ] Usage documentation has been updated, if appropriate.
[ ] Tests added or modified to cover the changes; if coverage is reduced, please give explanation.
[ ] If customized dependency installation is required (i.e., a separate pip install step is needed for PR to be functional), please ensure it is reflected in all the files that control the CI, namely: python-test.yml, and all docker files [1,2,3].

@sarthakpati sorry to bother you again: I don't really know how to solve the "Dev-Container CI" error. I don't see how that is connected to to changes I made and I would not know where to start resolving this... Similarly the "Codacy Static Code Analysis", how can I make the PR pass this one?


export 'withTooltipPropTypes' (imported as 'vxTooltipPropTypes') was not found in '@vx/tooltip/build/tooltips/TooltipWithBounds' (possible exports: __esModule, default)

How to fix this issue?

this repo is no longer maintained


Update akka-actor, akka-cluster, akka-slf4j, ... to 2.5.26

Updates

com.typesafe.akka:akka-actor
com.typesafe.akka:akka-cluster
com.typesafe.akka:akka-slf4j
com.typesafe.akka:akka-testkit

from 2.5.25 to 2.5.26.
Release Notes/Changelog
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.typesafe.akka" } ]

labels: semver-patch

superseded by #42


Error: Email address is not verified. The following identities failed the check in region US-EAST-1

Not sure what I am doing wrong. But I keep getting this error message. When I check in Cognito the user is verified and confirmed. Any help is appreciated.
{
"errorMessage": "Email address is not verified. The following identities failed the check in region US-EAST-1<EMAIL_ADDRESS>"errorType": "MessageRejected",
"stackTrace": [
"Request.extractError (/var/runtime/node_modules/aws-sdk/lib/protocol/query.js:47:29)",
"Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:105:20)",
"Request.emit (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:77:10)",
"Request.emit (/var/runtime/node_modules/aws-sdk/lib/request.js:683:14)",
"Request.transition (/var/runtime/node_modules/aws-sdk/lib/request.js:22:10)",
"AcceptorStateMachine.runTo (/var/runtime/node_modules/aws-sdk/lib/state_machine.js:14:12)",
"/var/runtime/node_modules/aws-sdk/lib/state_machine.js:26:10",
"Request. (/var/runtime/node_modules/aws-sdk/lib/request.js:38:9)",
"Request. (/var/runtime/node_modules/aws-sdk/lib/request.js:685:12)",
"Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:115:18)"
]
}

Hi arunned. You need to also verify that e-mail address in Amazon SES, as it seems you are still in the SES sandbox. See here: https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-email-addresses-procedure.html

got it thanks. Will check it now. I knew i was missing something.

perfect. Worked as expected.. Thanks for the quick response.

I'm also facing the same issue. As per the answer from @ottokruse what actually SES Sandbox does? Do i have to store all the registered email in SES and have to verify email before getting registered? Please help me.

Have a read of the prerequisite, it contains links to docs explaining all about the sandbox and such: https://github.com/aws-samples/amazon-cognito-passwordless-email-auth/tree/master/cognito#pre-requisite
Short answer: no you do not need to register mails individually in SES - but you need to verify the domain


Report is not generated successfully

Hi there,
I've enabled the report plugin .yatas.yml:
plugins:
  - name: "aws"
    enabled: true
    source: "github.com/padok-team/yatas-aws"
    version: "latest"
    description: "Check for AWS good practices"
    exclude:
     # - AWS_S3_001
    include:
     # - "AWS_VPC_004"
     # - "AWS_VPC_003"
  - name: "markdown"
    enabled: true
    source: "github.com/padok-team/yatas-markdown"
    version: "latest"
    description: "Generates a markdown report"

And after I run yatas, I can only see this on report.md:
# Yatas

Is there a way to debug this?
cc: @StanGirard

Type: report in the markdown plugin conf :)

Stanislas Girard
Engineering Manager
+33 7 86 00 13 57
1 rue de Saint-Pétersbourg
75008 Paris
www.padok.fr ( https://www.padok.fr/ )
Sent via Superhuman iOS ( @.*** )
On Mon, Jul 10 2023 at 7:49 AM, za < @.*** > wrote:

Hi there,
I've enabled the report plugin.yatas.yml :
plugins:

name: "aws"
enabled: true
source:
"github.com/padok-team/yatas-aws"
version: "latest"
description:
"Check for AWS good practices"
exclude:
- AWS_S3_001

include:
# - "AWS_VPC_004"
# - "AWS_VPC_003"

name:
"markdown"
enabled: true
source:
"github.com/padok-team/yatas-markdown"
version: "latest"

description: "Generates a markdown report"
And after I run yatas , I can only see this on report.md :
Yatas
Is there a way to debug this?
cc: @StanGirard ( https://github.com/StanGirard )
—
Reply to this email directly, view it on GitHub (
https://github.com/padok-team/yatas-markdown/issues/14 ) , or unsubscribe (
https://github.com/notifications/unsubscribe-auth/AEVUW3AISFNM5XM7PEPWXWLXPOJXTANCNFSM6AAAAAA2EA4VFE
).
You are receiving this because you were mentioned. Message ID: <padok-team/yatas-markdown/issues/14
@ github. com>

name: "markdown"
enabled: true
type: "report"

Ah, missed that line. I copied and pasted from the default config file. Thanks @StanGirard it works now! 🎉
Oh, if I run with -details will it generate the detailed report too?


Improvement for k8s.io/docs/concepts/overview/working-with-objects/namespaces/  link updated with v1 namespace

What type of PR is this?
/bug / documentation
What this PR does / why we need it:
This PR changes the link in the Phase section of https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ to https://kubernetes.io/docs/reference/kubernetes-api/cluster-resources/namespace-v1/
After the changes, the phase section will link to the site that allows details of namespaces.

A namespace can be in one of two phases:
Active the namespace is in use
Terminating the namespace is being deleted, and can not be used for new objects
See the design doc for more details.

Which issue(s) this PR fixes:
Fixes #28062
Special notes for your reviewer:
Does this PR introduce a user-facing change?
fix- Improvement for k8s.io/docs/concepts/overview/working-with-objects/namespaces/
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
PR is ready for review  /assign @bradtopol i

I failed to see the improvement from this PR:

The link target is the API reference, not the design document;
The API reference provides no more details.

Hey @tengqm, Can you please elaborate a little more? Like what exactly you mean with these points:

The link target is the API reference, not the design document;
The API reference provides no more details.

Anything will be helpful for me. Thanks

@hardikshah197 would you like some help with how to address #28062?

@sftim sure, any guidance would helpful for me. Thanks

The link target is the API reference, it is not a design doc, right?

@tengqm Yes, the updated link is not a design doc link.

In the case of namespace, the API reference is not providing any further details than the docs page

Should I update it with the docs page link? If that would be effective and accurate here.

/lgtm


The optional scripts does'nt seem to work.

Even when I run the detector_node with camera topic it doesn't work. The objects returned is always an empty list. Does the code need any changes to make it run ?

We recently noticed that the weights file at http://pjreddie.com/media/files/yolo.weights has been updated, and that has caused the behaviour that you might be seeing. Are you able to make the darknet executable (make in the libs/darknet directory) and check that you are getting no object detections with the executable there? Alternately, can you make sure that your ROS node names and topics match those expected by the python scripts?

I tried to make in libs/darknet without catkin_make the workspace and it doesn't work. It gives gcc  -DOPENCV pkg-config --cflags opencv -Wall -Wfatal-errors -fPIC -Ofast -DOPENCV -c ./src/gemm.c -o obj/gemm.o Assembler messages: Fatal error: can't create obj/gemm.o: No such file or directory
I compared with the original updated library and some files are missing in rail_object_detector/libs/darknet/data.
I tried to run the detector_node changing the boolean flags of publish_detections_topic_ to true as I wanted to try topics and not services.
When I echoed topic rostopic echo /detector_node/detections I get : header:    seq: 143   stamp:      secs:<PHONE_NUMBER>     nsecs: 821221030   frame_id: head_camera objects: []
I am using usb_cam node for camera and also changed the image_sub_topic_name to /usb_cam/image_raw which is the camera topic for images.

@banerjs is there any other way to make it work. It seems like a lot has been changed in the darknet in few days. If you see in https://github.com/pjreddie/darknet there has been a shuffling of files like detector.c from src/detector to examples/detector. Is there any change in the weights that you mentioned earlier (which worked for you) and current weights the link points to wget http://pjreddie.com/media/files/yolo.weights ?

Sorry about the delayed response! So darknet has changed from the version that we have in the libs directory right now; and we do plan on updating that version sometime this year. Unfortunately, I don't think it will be anytime soon. I'm sorry. I'm leaving this issue open though so that this serves as a reminder to update the darknet library with this object detector.
In the meanwhile, if you need the weights, can you provide me with an scp or ftp drop location? I'd be happy to provide you with the old weights file that we have and which does work with the version of darknet in this repo.


Correct and improve HAVING clause

The statement:

When GROUP BY is not used, HAVING behaves like a WHERE clause.

is entirely incorrect. The following tests prove that HAVING only ever applies to groups and aggregate expressions (well, and constants, but that's not very useful 😉 ):
SELECT COUNT(tmp.[GroupID])
FROM   (VALUES (1, 2.2), (1, 3.5), (2, 5.1), (7, 3.5)) tmp(GroupID, Measurement)
HAVING COUNT(tmp.[GroupID]) > 3;
-- Returns one row containing: 4

-- Remove HAVING and nothing changes:
SELECT COUNT(tmp.[GroupID])
FROM   (VALUES (1, 2.2), (1, 3.5), (2, 5.1), (7, 3.5)) tmp(GroupID, Measurement);
-- Returns one row containing: 4

-- Change HAVING predicate and it still sees a single, aggregated group:
SELECT COUNT(tmp.[GroupID])
FROM   (VALUES (1, 2.2), (1, 3.5), (2, 5.1), (7, 3.5)) tmp(GroupID, Measurement)
HAVING SUM(tmp.[Measurement]) = 14.3;
-- Returns one row containing: 4

-- Add in an empty GROUP BY and nothing changes:
SELECT COUNT(tmp.[GroupID])
FROM   (VALUES (1, 2.2), (1, 3.5), (2, 5.1), (7, 3.5)) tmp(GroupID, Measurement)
GROUP BY ()
HAVING COUNT(tmp.[GroupID]) > 3;
-- 4

If HAVING without GROUP BY acted like a WHERE clause, then at least one of the following would work, yet they all error:
SELECT COUNT(tmp.[GroupID])
FROM   (VALUES (1, 2.2), (1, 3.5), (2, 5.1), (7, 3.5)) tmp(GroupID, Measurement)
HAVING tmp.[GroupID] > 3;
/*
Msg 8121, Level 16, State 1, Line 36
Column 'tmp.GroupID' is invalid in the HAVING clause because it is not contained in either an aggregate function or the GROUP BY clause.
*/

SELECT tmp.[GroupID]
FROM   (VALUES (1, 2.2), (1, 3.5), (2, 5.1), (7, 3.5)) tmp(GroupID, Measurement)
HAVING COUNT(tmp.[GroupID]) > 3;
/*
Msg 8120, Level 16, State 1, Line 44
Column 'tmp.GroupID' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
*/

SELECT tmp.[GroupID]
FROM   (VALUES (1, 2.2), (1, 3.5), (2, 5.1), (7, 3.5)) tmp(GroupID, Measurement)
HAVING tmp.[GroupID] > 3;
/*
Msg 8121, Level 16, State 1, Line 55
Column 'tmp.GroupID' is invalid in the HAVING clause because it is not contained in either an aggregate function or the GROUP BY clause.
*/

The following is just to show that constants are valid, but I don't see the benefit of including this in the documentation (just documenting it here for completeness and future reference):
SELECT COUNT(tmp.[GroupID])
FROM   (VALUES (1, 2.2), (1, 3.5), (2, 5.1), (7, 3.5)) tmp(GroupID, Measurement)
HAVING 999 > 998;
-- 4

I also clarified the explanation of the <search_condition> argument so it does not imply that only a single condition / predicate can be specified.

@srutzky : Thanks for your contribution to the SQL documentation! The author, @BYHAM, has been notified to review your proposed change.

@MightyPen please review

@srutzky @craigg-msft Solomon, this is excellent work. Your change fixes a direct problem in the T-SQL documentation. Thanks so much. This change shall be approved.

#sign-off

Thank you @MightyPen and @srutzky


Breaking removal of radius property from configuration options

Description
A previously existing property radius is gone from the path: options.legend.markers.radius in type definitions since 3.51, this feels like a bug since it would be a breaking upgrade
Here is a link to the commit and line of the public api changing: https://github.com/apexcharts/apexcharts.js/commit/b31f7e13b13bf3f35e2b77df12a7445aa7071c71#diff-1156359dc5238d9290bf8627dd0d6607f612e09ef7bdc89eb1598205eab1825bL834
As also can be noted, properties with the same name but different path seems to also be removed (as can be noted with one user commenting on this commit https://github.com/apexcharts/apexcharts.js/commit/b31f7e13b13bf3f35e2b77df12a7445aa7071c71#r144780997 )
Steps to Reproduce

Use old version of apexcharts > 3.51.0
Use the property: options.legend.markers.radius in the configuration of any of your charts
Upgrade the library to 3.51.0
The code no longer type-checks

Expected Behavior
I expect to be able to upgrade to a new patch release without breakage
Actual Behavior
The code no longer passes type checking after upgrade

This project does not follow semantic versioning, and the maintainers may at any time change the public API to improve the project.