freetype feature does not compile on Windows: tries to call non-existent pkg-config

error: failed to run custom build command for `imgui-sys v0.8.1-alpha.0 (https://github.com/imgui-rs/imgui-rs#6faa7f09)`

Caused by:
  process didn't exit successfully: `D:\a\glif\glif\target\debug\build\imgui-sys-98982d076e541193\build-script-build` (exit code: 101)
  --- stdout
  cargo:THIRD_PARTY=C:\Users\runneradmin\.cargo\git\checkouts\imgui-rs-61ccdc9370f94e57\6faa7f0\imgui-sys\third-party
  cargo:DEFINE_IMGUI_USE_WCHAR32=
  cargo:DEFINE_CIMGUI_NO_EXPORT=
  cargo:DEFINE_IMGUI_DISABLE_WIN32_FUNCTIONS=
  cargo:DEFINE_IMGUI_DISABLE_OSX_FUNCTIONS=
  cargo:rerun-if-env-changed=FREETYPE2_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=FREETYPE2_STATIC
  cargo:rerun-if-env-changed=FREETYPE2_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "Could not run `\"pkg-config\" \"--libs\" \"--cflags\" \"freetype2\"`\nThe pkg-config command could not be found.\n\nMost likely, you need to install a pkg-config package for your OS.\n\nIf you've already installed it, ensure the pkg-config command is one of the\ndirectories in the PATH environment variable.\n\nIf you did not expect this build to link to a pre-installed system library,\nthen check documentation of the imgui-sys crate for an option to\nbuild the library from source, or disable features or dependencies\nthat require pkg-config."', C:\Users\runneradmin\.cargo\git\checkouts\imgui-rs-61ccdc9370f94e57\6faa7f0\imgui-sys\build.rs:54:72
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed
Error: Process completed with exit code 1.

Ah, this is bad, sorry. I'll see if I can get a patch up tomorrow or so.

I think this overlaps significantly with #566 - it's unclear to me what the correct way is to make the freetype library available on Windows. On linux it just requires apt install libfreetype6-dev, but on Windows, :shrug:

Done in #582


WASAPI: handle KSAUDIO_SPEAKER_QUAD and KSAUDIO_SPEAKER_5POINT1 channel mapping

Band aid WASAPI channel mappings so that KSAUDIO_SPEAKER_QUAD and KSAUDIO_SPEAKER_5POINT1 are handled rather than returning undefined. Addresses https://github.com/kinetiknz/cubeb/issues/383.

LGTM. Thanks.


[BUG] Response 403

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.
[ ] My answer given in the checkbox above is a lie.

What problem did you encounter?
I load roblox and the reponse I get is: System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 (Forbidden).

"Update to the latest version: https://github.com/pizzaboxer/bloxstrap/releases/latest"
-> Pizzaboxer, many times before


Added next/image component to MDX

In your branch:

In main branch:

This approach wouldn't be the best
Please have a look at https://github.com/reactjs/reactjs.org/issues/4382#issuecomment-1050487817


Small resource leak in System.Reactive.Linq.QueryLanguage.LastOrDefaultInternal

Copied from https://rx.codeplex.com/workitem/75
Method : System.Reactive.Linq.QueryLanguage.LastOrDefaultInternal
The ManualResetEvent used to wait for the end of the sequence should be disposed after the call to WaitOne

Fixed.


Expand Recover+

[ ] Title: What is Recover+
[ ] Add Button: Project enroll
[ ] Description: Get help from leading DeFi professionals, protect your projects from catastrophic attacks. A portal to initiate emergency proposal when an attack happens.
[ ] ** Required input

Colors

Text: #E3FFFE
Background: #004E5C

Before

After

implemented


close() command hanging

My code involves executing 2 Powershell commands in a session and then closing the powershell object.   $PSVersionTable.PSVersion is:
Major  Minor  Build  Revision

4      0      -1     -1
Problem is that the close() hangs

Hello. Thank you for your feedback.
In order to fix it I will need more details:
-Windows version
-What kind of powershell commands are you trying to execute?
-Does it work if you perform a execute two executeSingleCommand?
Thanks

OS is Windows Server 2012 R2 Standard 64 bit and java version is 1.8
It wouldn't work if I ran it as 2 executeSingleCommand
1st command is: Import-Module to a psm1 file
2nd command is: Convert-DocxToHtml which is a method from the library imported

Ok, and the problem is that the close() hangs? The Convert-DocxToHtml is correctly executed and it does its job? You have no logs from the library of type "timeout"?
Thank you

This is also happening when I execute your example:
   powerShell = PowerShell.openSession();
   PowerShellResponse response = powerShell.executeCommand("Get-Process");
   response = powerShell.executeCommand("Get-WmiObject Win32_BIOS");

Somehow maybe whenever we are executing more than one command.

This is also happening when I execute your example:
Yes, but in my systems (Windows XP and Windows 7) it works and all the tests pass.

For that reason I would need more feedback of your problem.
I will try to reformulate the same questions I did in the last post:
-Does it hangs in the close()? or in the executeCommand()?
-The commands are executed correctly anyway before hanging?
-Nothing in the logs?
Thanks

It hangs in the close() and the command are executed correctly before hanging.
I am running it in debug mode in Eclipse and below are the lines executed for the close():
ln 141
ln 143
ln 151
ln 152
ln 163
ln 164
ln 165
ln 167
ln 171
ln 174 and it stays stuck here

Cool, thank you. I will keep you updated.

Apparently in your system the close() is not able to close correctly all the threads used by the pool.
I have created a new branch to fix it. You can already download the snapshot version here: https://oss.sonatype.org/content/repositories/snapshots/com/profesorfalken/jPowerShell/1.3.1-SNAPSHOT/jPowerShell-1.3.1-20160226.195542-2.jar
Can you check I it works now and, if not, what is the output?
Thank you

It is still hanging unfortunately with the new snapshot version.  You can see its getting to the last curly brace of the java method and then hanging.  There appears to be 3 threads tied to it in the Java Debugger as you can see from the Debugger screenshot:

And no logs? It is strange... I have added a lot of more code to locate&fix it.
Could you test it please?
https://oss.sonatype.org/content/repositories/snapshots/com/profesorfalken/jPowerShell/1.3.1-SNAPSHOT/jPowerShell-1.3.1-20160226.195542-3.jar
Thanks

No logs.  I am getting a 404 for your new link
On Fri, Feb 26, 2016 at 12:33 PM, JGA<EMAIL_ADDRESS>wrote:

And no logs? It is strange... I have added a lot of more code to
locate&fix it.
Could you test it please?
https://oss.sonatype.org/content/repositories/snapshots/com/profesorfalken/jPowerShell/1.3.1-SNAPSHOT/jPowerShell-1.3.1-20160226.195542-3.jar
Thanks
—
Reply to this email directly or view it on GitHub
https://github.com/profesorfalken/jPowerShell/issues/1#issuecomment-189473039
.

Good link:
https://oss.sonatype.org/content/repositories/snapshots/com/profesorfalken/jPowerShell/1.3.1-SNAPSHOT/jPowerShell-1.3.1-20160226.203036-3.jar

Tested it and the only log message was this:
Feb 26, 2016 3:44:25 PM com.profesorfalken.jpowershell.PowerShell close
INFO: Closing powerShell session...
On Fri, Feb 26, 2016 at 12:40 PM, JGA<EMAIL_ADDRESS>wrote:

Good link:
https://oss.sonatype.org/content/repositories/snapshots/com/profesorfalken/jPowerShell/1.3.1-SNAPSHOT/jPowerShell-1.3.1-20160226.203036-3.jar
—
Reply to this email directly or view it on GitHub
https://github.com/profesorfalken/jPowerShell/issues/1#issuecomment-189475447
.

I have cancel the threads manually after use them. Can you try please?
https://oss.sonatype.org/content/repositories/snapshots/com/profesorfalken/jPowerShell/1.3.1-SNAPSHOT/jPowerShell-1.3.1-20160226.210511-4.jar

It is still hanging but below are the logs:
Feb 26, 2016 5:43:30 PM com.profesorfalken.jpowershell.PowerShell close
INFO: Closing powerShell session...
Feb 26, 2016 5:43:30 PM com.profesorfalken.jpowershell.PowerShell close
INFO: ThreadPool going to shut down...
Feb 26, 2016 5:43:30 PM com.profesorfalken.jpowershell.PowerShell close
INFO: ThreadPool shutted down...
Feb 26, 2016 5:43:30 PM com.profesorfalken.jpowershell.PowerShell close
INFO: Its done

Good news. After many tries I have reproduced it!
I will post here when fixed

Done. The thread pool was initiliazed in the wrong place.
I have pushed the new 1.3.1 version with the fix but it will take several hours to be available on Maven Central.
Alternatively, you can already download the JAR file here:
https://oss.sonatype.org/content/groups/staging/com/profesorfalken/jPowerShell/1.3.1/jPowerShell-1.3.1.jar
Please, can you confirm that it works and I close the issue?
Thanks for your help.

Woohoo!! It works.
I even tested with my previous commands.  I wish I could pay you back or
get you a drink.
On Sat, Feb 27, 2016 at 8:54 AM, JGA<EMAIL_ADDRESS>wrote:

Done. The thread pool was initiliazed in the wrong place.
I have pushed the new 1.3.1 version with the fix but it will take several
hours to be available on Maven Central.
Alternatively, you can already download the JAR file here:
https://oss.sonatype.org/content/groups/staging/com/profesorfalken/jPowerShell/1.3.1/jPowerShell-1.3.1.jar
Please, can you confirm that it works and I close the issue?
Thanks for your help.
—
Reply to this email directly or view it on GitHub
https://github.com/profesorfalken/jPowerShell/issues/1#issuecomment-189681457
.

Great news! The world is small, who knows if one day :-)
Thanks to you for helping me to locate the error.
I close this issue.


Why is Competitor Sales a Positive Contribution?

Project Robyn
Describe issue
I am running the demo and see that in the response decomposition waterfall by predictor, competitor sales is the largest contribution. Why would competitor sales be the largest contribution, shouldn't it be negative?
Provide reproducible example
This is the input directly from the demo:
InputCollect <- robyn_inputs(
dt_input = dt_simulated_weekly,
dt_holidays = dt_prophet_holidays,
date_var = "DATE", # date format must be "2020-01-01"
dep_var = "revenue", # there should be only one dependent variable
dep_var_type = "revenue", # "revenue" (ROI) or "conversion" (CPA)
prophet_vars = c("trend", "season", "holiday"), # "trend","season", "weekday" & "holiday"
prophet_country = "DE", # input country code. Check: dt_prophet_holidays
context_vars = c("competitor_sales_B", "events"), # e.g. competitors, discount, unemployment etc
paid_media_spends = c("tv_S", "ooh_S", "print_S", "facebook_S", "search_S"), # mandatory input
paid_media_vars = c("tv_S", "ooh_S", "print_S", "facebook_I", "search_clicks_P"), # mandatory.
organic_vars = "newsletter", # marketing activity without media spend
window_start = "2016-01-01",
window_end = "2018-12-31",
adstock = "geometric" # geometric, weibull_cdf or weibull_pdf.
)
print(InputCollect)

Probably this indicates that when competitors sell more, your company sells more too. This might be due to seasonality or trends in the market, for example.


Tensorboard

How can I use this implementation to visualize the model in tensorboard ?

See issue #78. It can be done, but you would need to access either Tensorflow's classes and methods or Tensorboard's Keras callback directly (see here for the later)

duplicate of #78 as pointed out by @mathetes87


added name to contributors

oh, please also follow https://www.conventionalcommits.org/en/v1.0.0/ next time.
if you'd like, you can edit the commit message, that'd be even better.

Also, for future reference. It is good practice to follow this convention for naming your branches. https://dev.to/varbsan/a-simplified-convention-for-naming-branches-and-commits-in-git-il4

Can I merge?


Update cssparser dependency

This bevy plugin heavily relies on cssparser dependency. It would be nice to have this updated. It is a non-trivial task because since last update the crate changed.

I've created a PR, if you would like to check: https://github.com/afonsolage/bevy_ecss/pull/32.
I'll marge it by tomorrow and I'm planing releasing version 0.5.1, which includes the #27, #28 and #32.

Nice one! One thing worth considering could be adding CHANGELOG.md file to this repo maybe?


Upload photos to Flickr

A majority are there now, the rest after the event wraps up.
https://www.flickr.com/groups/citycampral

All of my photos are on Flickr now. If there are anymore, please feel free to add them to the group.
@suzanneccnc Please find the winning team photos at these links:
https://www.flickr.com/photos/ralcon/36708892404/in/pool-citycampral/
https://www.flickr.com/photos/ralcon/36747755413/in/pool-citycampral/


Add possibility to accept generic source terms to compute residual errors

The idea is to ask for a specific format. One option would be to accept 'sympy' expressions, possibly passed as lists.

Solved!


Add SIMD-based implementation of json_extract_scalar

Summary:
Continuing with the work in https://github.com/facebookincubator/velox/pull/5019 and building on
https://github.com/facebookincubator/velox/pull/5525 this adds a version of the JsonExtractScalar UDF with
the underlying implementation swapped from folly to simdjson.
This continues to show a significant performance improvement.  It also addresses an inconsistency between the Velox and Presto Java versions of the UDF where large numbers that would cause an integer overflow are returned directly as strings.
Differential Revision: D47240465

Will fix broken tests.


[DO NOT MERGE] Auto PR to update dependencies of istio

This PR will be merged automatically once checks are successful.
none

@istio-testing: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-presubmit.sh
8f69c9ca55bc6ed2cd2748b68a9d59f2dfc6afc9
link
/test istio-presubmit

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


Querying all records yields an error when primary key is type UUID

I'm trying to get all rows from the table members which is set-up like so (in migrations):
knex.schema.createTable('members', (table) => {
        table.uuid('id').notNullable().primary();
        // rest of cols...
})

When I try to get all rows from this table by await Member.query();, the operation fails. I'm using PostgreSQL, and the error from db is:
{
    "message": "select \"members\".* from \"members\" where \"members\".\"id\" = $1 - invalid input syntax for type uuid: \"all\"",
    "type": "UnknownError",
    "data": {}
}

pg's debug ouput:
{ method: 'select',
  options: {},
  timeout: false,
  cancelOnTimeout: false,
  bindings: [ 'all' ],
  __knexQueryUid: 'c7518928-a704-4b10-9b87-3fbe7d309628',
  sql: 'select "members".* from "members" where "members"."id" = ?' }

I suppose I need to change the binding but can't find a way to do so. How should I go about this? Also, I'm not certain that this is an objection.js issue, but figured I'd start here.
Thanks in advance!

That query isn't generated by the code Member.query(). Member.query() simply generates select "members".* from members without any where clauses.


feature: support user defined variable

Proposed changes
Support user-defined variables.
After this PR, we can use set @a = xx to define a user variable and use it in the query like select @a.
<--Describe your changes.-->

Support the grammar for set user variable in the parser.
Add the userVars in VariableMgr to store the user-defined variables.
For the set @a = xx, we will store the variable name and its value in the userVars in VariableMgr.
For the select @a, we will get the value for the variable name in userVars.

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

run buildall


[Business Partner Kit] Release Checks

This issue tracks all relevant release checks for KITs.
Release Info
Please provide information on what you want to be included in the Eclipse Tractus-X release.
If you are not owner of this issue, please provide the information as comment to the issue.
If changes to your KIT are not yet live on our website, link the open PR introducing the changes for this release.
If changes are already live, also point out the PRs witch included the changes for this version if possible.
Please refer to TRG 8.03 for the classification of mandatory and optional artefacts.

712

General

[X] CHANGELOG available and maintained

Adoption View

[X] Vision and Mission statement present
[X] Business Value statement present
[ ] Semantic Models linked and described
[ ] Logic / Schema available and described
[ ] Business Process documentation available
[ ] Access and Usage Policies documented
[X] Standards submitted / published via the Catena-X e.V. process and linked with current version (e.g., semantic models)
[ ] Tutorials available
[ ] White Paper available
[X] Notice CC BY 4.0 licence statement available

Development View

[ ] API Specification published on SwaggerHub
[ ] Protocols available (e.g., dataspace protocol)
[ ] Sample Data available
[X] Architecture integration into the overall Catena-X architecture and / or product architecture (e.g., Arc42) available.
[X] Reference Implementation available

Operation View

[X] Setup Guide available (e.g., installation guides)
[X] Deployment Script available (e.g., helm charts)

Helpful Links

Catena-X standard library

Reference
https://github.com/eclipse-tractusx/eclipse-tractusx.github.io/pull/712

PR reviewed. Please see comment.

@SujitMBRDI  & @danielmiehle please check once the ticket details. I am assuming that the ticket is related to 24.05. If thats the case, please update the milestone on the right hand side

As soon as this is done; the status needs to get adjusted as well.
Please note: if this is an issue ticket for Post-Consortia; the milestone should stay empty


Travis disable fedora jobs

Depends on #817

Coverage remained the same at ?% when pulling 5a22af03ac14bbc3d470e47d65e70a67204774df on EdDev:travis-disable-fedora-jobs into bc66b108c4a929a64438280bddc00a38eb409b0d on nmstate:master.

Coverage remained the same at ?% when pulling 5a22af03ac14bbc3d470e47d65e70a67204774df on EdDev:travis-disable-fedora-jobs into bc66b108c4a929a64438280bddc00a38eb409b0d on nmstate:master.

It launches all the travis jobs as expected, IMHO there is no need to wait for them to complete.


mitmproxy works for any known url but not for one and says 502 Bad Gateway Certificate verify failed: unable to get local issuer certificate

Problem Description
mitmproxy works for any known url but not for one and says 502 Bad Gateway Certificate verify failed: unable to get local issuer certificate
Steps to reproduce the behavior:

this curl -x http://localhost:8080 https://raw.githubusercontent.com/Chocapikk/CVE-2023-5360/main/requirements.txt or this curl -x http://localhost:8080 https://google.com works with 502
this doesnt : curl -x http://localhost:8080 https://auth-mailiz.formation.mssante.fr/robots.txt
Why ?

System Information
latest

Not recommended in general, but you can proxy it if you really must:
mitmproxy --ssl-insecure
``


[clcrunnerapi] Return check IDs known by the DCA when config contains secrets

What does this PR do?
Fixes a bug in the rebalance of cluster checks.
Cluster checks that contain secrets are not rebalanced when the Cluster Agent is configured to not resolved secrets (config option secret_backend_skip_checks is set to true).
The ID of a check changes when its secrets are decrypted. So the ID known by the Cluster Agent and the Cluster Check Runner is different in that case. When fetching stats from the Runner, the Cluster Agent sees a check ID that it does not recognize, so it incorrectly assumes that it's not a cluster check, and never tries to move it when rebalancing cluster checks.
This PR fixes the issue by making sure that the CLC API queried by the Cluster Agent returns the IDs that the check had before resolving its secrets so that the Cluster Agent recognizes it. To do that, this PR makes some changes in the autodiscovery package to keep a map that matches both IDs.
Describe how to test/QA your changes
The goal is to verify that Cluster checks that contain secrets are rebalanced even when the Cluster Agent is configured with secret_backend_skip_checks true.
Use a config like this to enable rebalancing, set the secret reader, skip secret resolving in the DCA, and set just 1 replica for the runners:
datadog:
  kubelet:
    tlsVerify: false
  secretBackend:
    command: "/readsecret_multiple_providers.sh"
clusterAgent:
  env:
    - name: "DD_CLUSTER_CHECKS_ADVANCED_DISPATCHING_ENABLED"
      value: "true"
    - name: "DD_CLUSTER_CHECKS_REBALANCE_WITH_UTILIZATION"
      value: "true"
    - name: "DD_SECRET_BACKEND_SKIP_CHECKS"
      value: "true"
clusterChecksRunner:
  enabled: true
  replicas: 1

Go to the runner pod and create a /tmp/test.txt file or similar that will be used as a secret.
Deploy 2 cluster checks. For example this one: https://docs.datadoghq.com/containers/cluster_agent/clusterchecks/?tab=helm#example-http-check-on-an-nginx-backed-service but also add a field with a secret in a check instance. For example: "test"<EMAIL_ADDRESS>To verify that the setup is correct, we need to check that the ID shown in the cluster-agent with agent clusterchecks do not match the ID seen by the runner with agent configcheck.
Now to force a rebalance, we can edit the runners deployment, set 2 replicas, and run agent clusterchecks rebalance from the Cluster Agent. Each runner should be assigned one check. Before this PR the 2 checks remained in the same runner.
Reviewer's Checklist

[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[ ] Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
[ ] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
[ ] If applicable, the config template has been updated.

Rebased on top of main to make sure that all the new linter rules are applied.


Add relative Euclidean distance metric

Yangang Liu (Topic Area 2) uses the relative Euclidean distance metric:

obs_mean = np.mean(obs)
fx_mean = np.mean(fx)
obs_std = np.std(obs)
fx_std = np.std(fx)
corr = pearson_correlation_coeff(obx, fx)
D = np.sqrt( ((fx_mean - obs_mean) / obs_mean) ** 2 + ((fx_std - obs_std) / obs_std) ** 2 + (1 - corr) **2 )

Add, in quadrature, the percent error of the mean, the percent error of the standard deviation, and the error of the correlation.
It's appealing to me because I'm a big proponent of forecasts having the same variance as the observations unless there's a reason they should not. I hope it would be useful for assessing ensemble mean forecasts (ensemble means have less variance and this is part of why they have better RMSEs).
Two issues to be aware of:

Yangang and coauthors invented the metric in Wu et al. 2012 (see below) and I've only seen Yangang's papers use it since then. So it's not in widespread use.
The percent error of the mean goes to infinity as the observation mean goes to 0. Same for standard deviation. So the hourly category will have infs at night unless we do something about it.

Attached a couple of papers that Yangang provided.

Son13 Evaluation of Precipitation Simulated by Seven SCMs against the ARM Observations at the SGP Site*.pdf
Wu12 Observationally based evaluation of NWP reanalyses in modeling cloud properties over the Southern Great Plains.pdf
Liu13 Evaluation of Surface Flux Parameterizations with Long-Term ARM Observations.pdf

For a persistence forecast, fx_mean = obs_mean and fx_std = obs_std, so D = 1 - corr. (only approximate when using a nighttime filter.)


WIP: Cleanup migrated AWS resources

Makes non-usage and non-optional attributes non-pointers, e.g. *r.Region -> r.Region
Moves functions into struct methods, e.g. func httpCostComponent() → func (r *APIGatewayV2API) httpCostComponent()
Fixes casing of some names, e.g. DmsReplicationInstance → DMSReplicationInstance
Fixes some generated attribute names, e.g. Environment0ComputeType -> ComputeType
Fixes some spacing

@sinabakh can you please review this if you get a chance?

@aliscott LGTM


Window resize does not resize footprint of powershell output

Environment
Windows build number: 10.0.18362.175
Windows Terminal version (if applicable): 0.2.1715.0

powershell

Steps to reproduce

open powershell terminal from pinned taskbar shortcut
do something to create output, e.g ls
grab edge of terminal with mouse and increase size
create more terminal output. Note output only consumes original footprint
control-t to open new tab
note that in new tab the entire terminal window is used for output

Expected behavior
the entire terminal window should be used for output after resize of window
Actual behavior
window resize does not use full window for output

I believe this is the other side of #1465.


Create MarketBackFinal 2.0

Backdoor attack via jumps-Diffusion and stock market and Bayesian Optimization : MarketBackFinal 2.0
Description
Hi guys @beat-buesser !, I am attaching the latest backdoor attack method based on Dynamic Hedging and rough volatility paths, the attack method is called MarketBackFinal 2.0 and it focuses explicitly on Bayesian optimization (BO) of trading processes. jump via a stochastic diffusion method.
Testing
MarketBackFinal 2.0   : For Bayesian optimization, an advanced black-box objective function is used in order to be able to use quadratic terms introducing non-linearity, sinusoidal components which add periodic fluctuations, making the oscillatory function more complex, thus introducing multiple local minima and maxima:
$$f(x, y) =  -(x^{2} + y^{2} + 0.1xy + \sin{x} + \cos{y})$$
update August 23rd, 2024 , last notebook,link

Reference, Figure
[update notebook MarketBackFinal 2.0 ( best version for fluid comprehension ) link..., notebook link(This notebook corresponds to the two figures you are observing )](https://github.com/OrsonTyphanel93/adversarial-robustness-toolbox/blob/dev_1.14.0/Udpdate_ART_1_18_MarketBackFinal_2_0_adversarial_machine_learning.ipynb
notebook link(This notebook corresponds to all the other figures you'll see, the one where I didn't include the vega and the rho on the studs.)

Reference 0
Reference 1
Reference 2
Reference 3
Reference 4
Reference 5
Reference 6
Reference 7
Reference 8
Reference 9
Reference 10
Reference 11
Reference 12
Reference 13
Reference 14
Reference 15
Reference 16
Reference 17
Reference 18
Reference 19
Reference 20
Reference 21
Reference 22
Reference 23
Reference 24
Reference 25
Reference 26
Reference 26
Reference 27
Reference 28
Reference 29
Reference 30
Reference 31
Reference 32
Reference 33
Reference 34
Reference 35
Reference 36
Reference 37
Reference 38
Reference 39
Reference 40
Reference 41
END.

The pathwise estimator of the option delta is $$\frac{dY}{dS(0)} = e^{-rT} 1_{\bar{S} > K} \frac{\bar{S}}{S(0)}.$$
$$S(t_i) = S(t_{i-1})e^{(r - \frac{1}{2}\sigma^2)(t_i - t_{i-1})} + \sigma\sqrt{t_i - t_{i-1}}Z_i, \quad i = 1, \dots, m,$$
with $Z_1,\ldots,Z_m$ independent standard normal random variables. The parameter $\sigma$ affects $S(t_i)$ explicitly through this functional relation but also implicitly through the dependence of $S(t_{i-1})$ on $\sigma$. By differentiating both sides, we get a recursion for the derivatives along the path:
$$\frac{dS(t_i)}{d\sigma} = \frac{dS(t_{i-1})}{d\sigma} \frac{S(t_i)}{S(t_{i-1})} + S(t_i)\left[-\sigma(t_i - t_{i-1}) + \sqrt{t_i - t_{i-1}}Z_i\right],$$
With initial condition $\frac{dS(0)}{d\sigma}=0$, this recursion is solved by
$$\frac{dS(t_i)}{d\sigma} = S(t_i)\left[\log\left(\frac{S(t_i)}{S(0)}\right) - (r + \frac{1}{2}\sigma^2)t_i\right]/\sigma.$$
The pathwise estimator of the Asian option vega is
$$e^{-rT} \frac{1}{m} \sum_{i=1}^{m} \frac{dS(t_i)}{d\sigma} 1_{\bar{S} > K}.$$
$$\begin{aligned}
& \mathbb{E}\left[e^{-r T} V_T-e^{-r T}\left(S_T-K\right)_{+}\right]^2 \
&= {\left[V_0-v\left(0, S_0\right)\right]^2+\mathbb{E}\left(\int_0^T e^{-2 r s} S_{s-}^2 \sigma^2\left[v_x^{\prime}\left(s, S_{s-}\right)-\delta(s)\right]^2 d s\right.} \
&\left.\quad+\int_0^T \lambda \int_{\mathbb{R}} e^{-2 r s}\left[v\left(s, S_{s-}(1+y)\right)-v\left(s, S_{s-}\right)-\delta(s) y S_{s-}\right]^2 \nu(d y) d s\right)
\end{aligned}$$
$$\begin{aligned}
& e^{-r T}\left(S_T-K\right)_{+} \
& =v\left(0, S_0\right)+\int_0^T e^{-r t}\left(v_t^{\prime}\left(t, S_{t-}\right)+\mu S_{t-} v_x^{\prime}\left(t, S_{t-}\right)+\frac{1}{2} \sigma^2 S_{t-}^2 v_{x x}^{\prime \prime}\left(t, S_{t-}\right)-r v\left(t, S_{t-}\right)\right) d t \
& +\int_0^T e^{-r t} \sigma S_{t-} v_x^{\prime}\left(t, S_{t-}\right) d W_t+\int_{10, T]} e^{-r t}\left(v\left(t, S_{t-}\left(1+Y_t\right)\right)-v\left(t, S_{t-}\right)\right) d N_t \
& =v\left(0, S_0\right)+\int_0^T e^{-r t} \sigma S_{t-} v_x^{\prime}\left(t, S_{t-}\right) d W_t+\int_{\mid 0, T]} e^{-r t}\left(v\left(t, S_{t-}\left(1+Y_t\right)\right)-v\left(t, S_{t-}\right)\right) d N_t \
& \quad-\int_0^T e^{-r t} \lambda \int_{\mathbb{R}}\left(v\left(t, S_{t-}(1+y)\right)-v\left(t, S_{t-}\right)\right) \nu(d y) d t .
\end{aligned}$$
$$\begin{aligned}
e^{-r T} V_T & =V_0+\int_0^T \delta(t) e^{-r t} S_{t-}\left((\mu-r) d t+\sigma d W_t\right)+\int_{[0, T]} \delta(t) e^{-r t} S_{t-} Y_t d N_t \
& =V_0+\int_0^T e^{-r t} \sigma S_{t-} \delta(t) d W_t \
& +\int_{10, T]} \delta(t) e^{-r t} S_{t-} Y_t d N_t-\int_0^T \lambda \delta(t) e^{-r t} S_{t-} \int_{\mathbb{R}} y \nu(dy) dt
\end{aligned}$$
Let $V_t^C$ be the value of a Call option at time $t$ whose payoff is $\Lambda^C$ on the underlying $S(t)$
$$V_t^C=\mathbb{E}^{\mathbb{Q}}\left[e^{-r(T-t)} \Lambda^C \mid \mathcal{F}_t\right]$$
$$
\begin{aligned}
V_t^C= & S(t) \Phi\left(\frac{\ln \frac{S(t)}{K}+\left(r+\sigma^2 / 2\right)(T-t)}{\sigma \sqrt{T-t}}\right) \
& -K e^{-r(T-t)} \Phi\left(\frac{\ln \frac{S(t)}{K}+\left(r-\sigma^2 / 2\right)(T-t)}{\sigma \sqrt{T-t}}\right) \
V_t^C= & S(t) \Phi\left(d_{1, t}\right)-K e^{-r(T-t)} \Phi\left(d_{2, t}\right)
\end{aligned}
$$
where $\Phi$ is the cumulative distribution function of a standard normal random variable, and $d_{1, t}$ and $d_{2, t}$ are given as follows:
$$
d_{1, t}=\frac{\ln \frac{S(t)}{K}+\left(r+\sigma^2 / 2\right)(T-t)}{\sigma \sqrt{T-t}}
$$
and
$$
\begin{aligned}
d_{2, t} & =\frac{\ln \frac{S(t)}{K}+\left(r-\sigma^2 / 2\right)(T-t)}{\sigma \sqrt{T-t}} \
& =d_{1, t}-\sigma \sqrt{T-t} \end{aligned}
$$
Then the unique rational price at time 0 of the Call option can be found betting $t=0$ in the equations of $V_t^C, d_{1, t}$ and $d_{2, t}$ to get the famous Black-Scholes pricing formula:
$$V_0^C=S(0) \Phi\left(d_{1,0}\right)-K e^{-r T} \Phi\left(d_{2,0}\right)$$
Fourier transform method for price calculation,sources
Reference 1
Reference 2
Reference 3

Hi @OrsonTyphanel93 Do you have a reviewed and published paper that describes your attack?

Hi @OrsonTyphanel93 Thank you for the link, let me take a closer look to better understand your work.

@OrsonTyphanel93  Could you please take a look at integrating your attack into the folder structure and architecture of ART?

Closing because of inactivity, please reopen if still current.


please refer signature mismatch issues

https://github.com/robotics-research-center/pygtsam/blob/master/output.txt

Need to replace ISAM2.cpp with the fix in this repo as explained in readme


gnushogi: init at 1.4.2

Motivation for this change
add cli gnushogi game to nixpkgs
Things done

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

@grahamcofborg build

@GrahamcOfBorg eval


ci: add Fossa CLI workflow

Adds the fossa cli workflow.

@tiagolobocastro The project url is incorrect for this on fossa portal.


Make /tmp permissive

Pull requests:

https://github.com/senzing-garage/docker-wrap-image-with-mysql/pull/16

Try:
chmod 1755 /tmp

Pull requests:

https://github.com/senzing-garage/docker-wrap-image-with-mysql/pull/17


Option to set save buttons for each model

I can't seem to find a way to set custom save options for different models. Maybe for a model i would like to set just "save and exit" or "save and back".

I think this PR does exactly that, so let's keep the conversation there.
Cheers!


[Feature Request] Set a memory breakpoint on device without needing GDB or a PC. (IDFGH-10308)

Describe the solution you'd like.
esp_memory_breakpoint_config_t  config = {
      .watch_address = XXXX, // the address to watch
      .print_backtrace = true, // print a backtrace when hit
      .breakpoint_handler = null,  // no handler to call
      .delay_millis = 4000, // paused execution for 4000 millis
}

esp_cpu_set_memory_breakpoint(config); // set breakpoint

Is your feature request related to a problem?
JTAG and OpenOCD is the bane of my existence. I can never get it to work well.
Even when I do get it working, it often breaks again as VSC, ESP-IDF, & OpenOCD are updated.
And it would be very convenient to set breakpoint in code because you can easily set a breakpoint programmatically on an address that might change from run to run.
I'd love a way to set memory breakpoints without needing JTAG.

Is there any way to use GDB (i.e. GDB At Runtime) and also "Print Registers and Reboot?".

@ESP-Marius

RE: debugging guide

please include this info as well: https://github.com/espressif/esp-idf/issues/11512#issuecomment-1565225163

PR: https://github.com/espressif/esp-idf/pull/11569

Closing, as esp_cpu_set_watchpoint already exists.


Upgrade next-pwa to latest

https://github.com/shadowwalker/next-pwa/blob/master/CHANGELOG.md

[ ] Confirm that the Lighthouse audit still returns a perfect score for the PWA test

I would like to take up this issue. Can you brief me about the issue a Lil bit and point me out to resources to get started! @mfix22

I have raised a pr. Please have a look @mfix22


Unresponsive script only firefox

Trying to make a screenshot of a screen with two html canvas everything works normally in google chrome put to use firefox has the same problem in the script, follow the print with the problem and the debugger at the point of travavent.

https://gist.github.com/FredericoSFerreira/91a340b6ec66021da89e

Same here.....


Harvest order not implemented

we say in our specs its uranium tiles first, then coal tiles, then wood tiles, but this is not the case...

Hopefully this fixes it. #57

Merged into branch v1.1.x - thanks!


Add support for multiple route services

Thanks for submitting an issue to cloud_controller_ng. We are always trying to improve! To help us, please fill out the following template.
Issue
A route should be able to have multiple route service instances associated with it.
Context
Route services are an extemely handy way of providing shared functionality across many applications.  E.g. http://docs.cloudfoundry.org/services/route-services.html gives a couple of examples: Request logging and rate limiting. Other examples could be virus scanners, authn/authz, etc. A given application could benefit from mulitple services. They should not be mutually exclusive.
Steps to Reproduce
Trying to add a second route service to a route yields:
Server error, status code: 400, error code: 130007, message: A route may only be bound to a single service instance

Expected result
I expected the route services to be stacked so requests would pass through all the route services.
Current result
I think I explained this already.
Possible Fix
To achive this, we need to obviously allow multiple route services to be configured for a route. For the request flow to work, I suggest:

A request comes to the gorouter.
The gorouter builds a list of route services the request must go through. This list is added to X-CF-Proxy-Metadata.
The gorouter pops the first one off the list, and sends the request to that URL following the exact same protocol we use right now for route services.
The route service follows the same protocol as always, i.e. eventually forwards the request to $X-CF-Forwarded-Url.
The gorouter receives the request from the route service, decodes the X-CF-Proxy-Metadata header and finds that there are more route services in the list and goes back to step 3.

This adds an extra roundtrip to the gorouter for each additional route service. It, however, is entirely transparent to route services, so we maintain backwards compatibility.
To prevent this extra roundtrip each time, we can:

Make gorouter add a X-CF-Route-Services header containing the list remaining services. The final element in the list will be identical to X-CF-Forwarded-Url.
If a given route service supports this new protocol, instead of sending the request to X-CF-Forwarded-Url, it may pop off the first element of X-CF-Route-Services and use it instead of X-CF-Forwarded-Url.
If a given route service does not support it, it will simply send the request to X-CF-Forwarded-Url, i.e. the gorouter.
If the gorouter receives a request (with correct proxy signature) and a non-empty X-CF-Route-Services, it knows it comes from a route service which did not support this new protocol. Using the value of X-CF-Route-Services and the route service list in X-CF-Proxy-Metadata (established above) it knows how many elements to strip off its list and then it proceeds as usual.

Example flow:
5 route services:
https://svc1.example.com/
https://svc2.example.com/
https://svc3.example.com/
https://svc4.example.com/
https://svc5.example.com/
Route: https://app.example.com/
A client sends a request to https://app.example.com/. The gorouter receives it, and constructs these headers:
X-CF-Forwarded-Url: https://app.example.com/
X-CF-Route-Services: https://svc2.example.com/, https://svc3.example.com/, https://svc4.example.com/, https://svc5.example.com/, https://app.example.com/
X-CF-Proxy-Signature: d8d469f3e6b9c9bee2b20deed9824b21ee8ace1
X-CF-Proxy-Metadata: (encrypted route service list: https://svc2.example.com/, https://svc3.example.com/, https://svc4.example.com/, https://svc5.example.com/)

...and sends the request to https://svc1.example.com/ which supports this new protocol. It pops https://svc2.example.com/ off the X-CF-Route-Services header and sends these headers to svc2:
X-CF-Forwarded-Url: https://app.example.com/
X-CF-Route-Services: https://svc3.example.com/, https://svc4.example.com/, https://svc5.example.com/, https://app.example.com/
X-CF-Proxy-Signature: d8d469f3e6b9c9bee2b20deed9824b21ee8ace1
X-CF-Proxy-Metadata: (encrypted route service list: https://svc2.example.com/, https://svc3.example.com/, https://svc4.example.com/, https://svc5.example.com/)

svc2 also supports this new protocol and eventaully sends these headers to svc3:
X-CF-Forwarded-Url: https://app.example.com/
X-CF-Route-Services: https://svc4.example.com/, https://app.example.com/
X-CF-Proxy-Signature: d8d469f3e6b9c9bee2b20deed9824b21ee8ace1
X-CF-Proxy-Metadata: (encrypted route service list:  https://svc2.example.com/, https://svc3.example.com/, https://svc4.example.com/, https://svc5.example.com/)

svc3 does not support this new protocol. It sends the request to X-CF-Forwarded-Url, i.e. the gorouter using the exact same headers:
X-CF-Forwarded-Url: https://app.example.com/
X-CF-Route-Services: https://svc4.example.com/, https://svc5.example.com/, https://app.example.com/
X-CF-Proxy-Signature: d8d469f3e6b9c9bee2b20deed9824b21ee8ace1
X-CF-Proxy-Metadata: (encrypted route service list:  https://svc2.example.com/, https://svc3.example.com/, https://svc4.example.com/, https://svc5.example.com/)

The gorouter detects a valid Signature and Metadata and a non-empty X-CF-Route-Services.
First it checks if the last element (https://app.example.com) matches the route it's currently handling. It does, so we're happy. Otherwise, we bail out.
Ignoring the last element of X-CF-Route-Services, the gorouter goes backwards through each element comparing it to the list in the metadata header. I.e. does https://svc5.example.com/ from X-CF-Route-Services match the last element of route services list? Yes. Does https://svc4.example.com/ match the next element? Yes. As there are no more elements in X-CF-Route-Services to compare, we must be receiving this request from the next element in the list from the metadata header (i.e. svc3) after having gone through svc1 and svc2.
The gorouter then removes svc2, and svc3 from the list in the metadata header and sends these headers to svc4:
X-CF-Forwarded-Url: https://app.example.com/
X-CF-Route-Services: https://svc5.example.com/, https://app.example.com/
X-CF-Proxy-Signature: e4a9591221b78fbf55f68c82d7f9a767085e7c
X-CF-Proxy-Metadata: (encrypted route service list: https://svc5.example.com/)

svc4 supports the new protocol, so ends up sending this to svc5:
X-CF-Forwarded-Url: https://app.example.com/
X-CF-Route-Services: https://app.example.com/
X-CF-Proxy-Signature: e4a9591221b78fbf55f68c82d7f9a767085e7c
X-CF-Proxy-Metadata: (encrypted route service list: https://svc5.example.com/)

svc5 also supports the new protocol so sends this to the app route:
X-CF-Forwarded-Url: https://app.example.com/
X-CF-Proxy-Signature: e4a9591221b78fbf55f68c82d7f9a767085e7c
X-CF-Proxy-Metadata: (encrypted route service list: https://svc5.example.com/)

The gorouter sees an empty (or non-existing) X-CF-Route-Services list and a valid proxy signature and finally sends the request to the application.
I hope this is clear. I'm in a bit of a rush, so did not have much time for editing.
name of issue screenshot
[if relevant, include a screenshot]

Hey @sorenh
It's great to hear that you're able to achieve so many use cases with route services!  Since this feature request is mostly a routing concern I'm going to ping @shalako, the PM for CF Routing.  It may make sense to move this over to the gorouter repository, since that is where this would mostly land, but let's see what Shannon has to say.
Thanks!

@zrob Agreed, this is mostly a gorouter issue, but let's see what Shannon has to say.

Hello @sorenh
Thank you for your feedback regarding chaining of route services. I have recorded your interest. At this time we don't have a timeline for delivery but we have recently been considering again how we might deliver on this in the context of other efforts under way.
Thank you also for putting some thought into a solution. We have considered something like this before but it helps to have your documented workflow. We are also considering a solution whereby each node in the chain receives individualized routing rules from a central API, requiring no coordination by Gorouter.
I would expect the app developer facing UX to be the same whatever the solution. This UX may be provided by CAPI or another API. Moving this issue to routing-release or gorouter is fine. Or keep it here. I'm going to link to it from my evidence documentation wherever it lives.

Closing now that we have a response.  If you would like to further pursue this please create an issue with the gorouter.
Thanks!


Key Error

Hey
First of all, great tutorial. I have been trying to follow it code by code but I get this error.
    track in response_json["items"]]
KeyError: 'items'

Can you help? This is from the spotifycleint.py and get_last_played_tracks function.

@QABoahene your auth token used in the terminal may have expired, refresh the token and re run the code it should work

This error was due to a mistake with the token

I am having the same problem. How did you solve it?

This was because there weren't any items to be retrieved. You should check your spotify credentials and also export them before you can run all the code.

I have exported my credentials already. What do you mean that there were any items?

The code is grabbing some information from the json file which will be the items. This issue happened because of the credentials for me. I had to redo the process to get my credentials again from the spotify API platform.

Thanks, in my case it is not the credentials, so I will have to investigate why.


PositionalMTFEncoder

Description

Takes a buffer, bwt pointers into that buffer, and a boolean array of used bytes
Converts the (used) bytes to their respective positions (0..count_bytes)
Then applies MTF on these bytes

Tests

[x] distinct bytes small
[x] repeating bytes small
[x] repeating bytes large

I'll remove the println!'s on the next commit (forgot earlier :P)
Considering the tight coupling with ptr, should we move this directly to encoder module itself, instead of keeping it in standalone move_to_front.rs?
Any other comments on performance code or otherwise? (I left a couple of TODOs as I couldn't figure them out yet, if you know, please tell :D)

For future reference:
MTF generator code
Random string generator


Add position index + example

Based on #4
This PR adds position index which allows to integrate uast tree with source code editor/viewer.

An app can import hook to get a position of hovered node or find the node by position.

Rebased.
I believe documentation using demo will be much better than just markdown file. I'm investigating it now.


Need a way to shorten cycle times when developing a buildpack

To shorten dev cycles when developing a buildpack I have found it useful (essential) to be able to run the detect and build locally. In doing that I found that many existing buildpacks (ones built with libpack probably) make assumptions about env vars, so they barf, for example, if PACK_STACK_ID is not set. That's useful to know (and not obvious from any documentation I managed to grok), but it means I can't use PACK_STACK_ID as a signal that I'm running in pack (or some kind of platform). I have adopted PACK_PLAN_PATH as such a signal (it's not mandatory for any of the packs that I have tried, and it is always there when running in pack), but it might not be stable. So what I need, I think, is something that is "just there", and doesn't mean anything other than that we are running in pack build.

One problem with running detect and build locally, without a full environment around them, is that then they're running in a non-spec complaint situation.  I'm not sure that enabling those binaries to be run in a way that isn't spec-complaint should be a goal.

I just want to be able to see it run quickly. The experience of waiting for pack create builder and pack build with multiple buildpacks is not efficient. The dev cycle is too long, and feedback is really painful. If you have a better "compliant" answer to that then show me.

I think that you need to create your environment in a complaint way.  That means setting the environment as-if you were inside the build image itself, but without being within the build image.  The spec defines this entire environment, including paths and environment variables (PACK_STACK_ID for example).

This is what I have been doing:
$ echo | PACK_ACTIVE=false PACK_STACK_ID=io.buildpacks.stacks.bionic \
/buildpacks/io.projectriff.native/1.0.0-BUILD-SNAPSHOT/bin/detect | \
/buildpacks/io.projectriff.native/1.0.0-BUILD-SNAPSHOT/bin/build

It works. I guess all I'm looking for here is some authoritative way of doing the env and stdin set up, e.g. a new command in pack or something?

That's an interesting idea.  There's an existing pattern where commands do things like direnv hook bash or rbenv init - to setup an environment.  That's seems like a good requirement and pattern.

The --buildpack flag that was just added to pack build should make this experience more reasonable: https://github.com/buildpack/pack/issues/25

Right now the --buildpack flag can only select buildpacks that are already packaged within the builder image. It sounds like we should prioritize a story allowing --buildpack=<dir> to point to a  buildpack source dir. If you don't need to wait for pack create-builder, that should significantly shorten the feedback cycles.

We could also do some optimizations to make pack create-builder faster against the docker daemon (the same sorts of optimization we did to speed up pack build for local images).

#25 says

ID of an existing buildpack supported in default builder - ie. io.buildpacks.java, io.buildpacks.ruby, io.buildpacks.go, etc

So that sounds like it's not yet what I need? I want to run my buildpack that I am trying (against all reason) to debug. Ideally I'd like to not run it in a container. But I suppose I don't mind, as long as I can control the container it runs in.
If it is running in a container, I probably want to be able to use other buildpacks - e.g. to install openjdk using one of Ben's things, and use that in my build - so I need to be able to run more than one, or simulate the result of running an earlier one, changing the buildplan or something.

Re-reading #25 it looks like I can supply multiple buildpacks. It's not clear to me yet what that means. How does a buildpack ID correpsond to a) my local buildpack, b) someone else's? When I have a builder.toml I guess I can resolve those things to uris or local files. If I'm building an app, where does that come from?

@dsyer - you should be able to just pass in multiple --buildpack flags.  Right now you map those buildpacks IDs through the builder.toml like you mention in your comment. If you want to test buildpacks without a builder.toml - you will be able to provide it in a path to your directory via the --buildpack flag - like @ekcasey mentioned above.  Going to add a story for this to the backlog - will link it back to this comment

Right now you map those buildpacks IDs through the builder.toml

That's the bit I didn't understand yet. How does pack know where to find a builder.toml? Unless it is running the fully-formed builder (which is what I want to avoid having to build).

@dsyer - Pack points to a builder image - it uses packs/sample by default. The buildpacks in the buildpacks/sample repo on github are supported.
Until we implement #11 - using a custom builder is the only way to pass in a custom buildpack.  Is there a specific reason you are looking to avoid creating your own builder - just curious?
iIs pretty straightforward if you follow these commands -
pack create-builder <builder name> --builder-config <local path to builder.toml>  -s <stack ID - if not provided it uses default stack>

Sample builder.toml
[[buildpacks]]
id = "org.cloudfoundry.buildpacks.nodejs"
uri = "file:///tmp/nodejs-cnb_08c783cce0a177ab5a5c2651"
version ="0.0.1"
latest=true

[[buildpacks]]
id ="org.cloudfoundry.buildpacks.npm"
uri = "file:///tmp/npm-cnb_174f9e4604bc9aab9d49e405"
latest=true
version="0.0.1"

[[groups]]
buildpacks = [
  {id = "org.cloudfoundry.buildpacks.npm" },
  { id = "org.cloudfoundry.buildpacks.nodejs"}
]

That’s what you have been doing. It’s straightforward but indirect and very slow. Short cycle times is what this is about remember.

Re-reading #25 it looks like I can supply multiple buildpacks. It's not clear to me yet what that means.

Multiple buildpacks can cooperate in both the detection and build phases to support multi-stage builds or build extensions. Happy to go into more detail about this if you'd like.

That’s what I have been doing. It’s straightforward but indirect and very slow. Short cycle times is what this is about remember.

We plan to address this with #11 and additionally a way to keep the container around after a build for debugging purposes.

How does pack know where to find a builder.toml? Unless it is running the fully-formed builder (which is what I want to avoid having to build).

After #11 is implemented, passing a number of local buildpack directories in via the --buildpack flag will create a buildpack group that overrides the values from builder.toml. If you don't specify a builder, it will use pack's default builder (ubuntu:bionic with some sample buildpacks).


Unable to start a Session

Hello,
I'm trying to get data from Odoo server using this library but I'm getting an error.
The error is "Error while reading data from the server".
Below is the code:
Session openERPSession = new Session("https://xyz-ltd4.odoo.com",8069, "xyz-ltd4", "my username",
"my password");
Any support?

Hi @IgnaceHakizimana ,
Thanks for your question.
The format is not the proper one.
You can find code there : https://github.com/odoo-java/odoo-java-api/blob/master/src/main/java/com/odoojava/api/Session.java#L71
and some explanations here : https://sourceforge.net/p/openerpjavaapi/wiki/Examples/
Please be advise that the last thread is outdated but it presents you the proper parameter.
In the end this library is nos reaching through the http protocol so you only have to give the domain without port, then the port etc...
Hope it could help

Hello @flotho ,
I've tried to follow your guidance but I still see another error: "Error while reading data from server:
Failed to read server's response: Connection timed out: connect"
Below is the source code:
Session openERPSession = new Session(RPCProtocol.RPC_HTTPS,"xyz-ltd4.odoo.com", 8069, "xyz-ltd4", "username","password");
Any further support?

Odoo enterprise ? which version ?
From now our module only deal with v12.
Maybe you could try on runbot intergration to check that you have proper syntax and then try to connect to your instance.
Regards

I'm on Odoo version 13. Do we have another library supporting that version, let me know.

From now, we didn't test on odoo v13, if you want to participate, change this part of code https://github.com/odoo-java/odoo-java-api/blob/master/src/main/java/com/odoojava/api/Session.java#L152 accordingly and also update the readme in a proper PR I'll make a review.
Regards

Hello @flotho , I changed the code and the session with the server started but now I'm getting an other error: "Could not find model with name 'res.partner'".
Any support on that?

are you sure to be logged in on the correct DB
Do you have some logs from the client AND the server ?

@flotho
Yes, I'm logged in on the correct DB.

any logs from the server ? Are you hosted by Odoo SA or by your own ?

I don't have server logs, I'm not a sudo user on the server. We are hosted on a local server.

@flotho
I don't have server logs, I'm not a sudo user on the server. We are hosted on a local server.

So it would be difficult to go further. Ask your sysadmin to get the Odoo server logs not the syslog but the odoo logs.
It's necessary to interpret how the query is received by Odoo and how v13 interpret the query.
Regards

@flotho ,
Below are server logs, note that Dbname, IP address, and username represent their respective real names.
TypeError: search() takes from 2 to 6 positional arguments but 7 were given
2020-03-17 14:57:52,622 723558 INFO DbName werkzeug: IP address- - [17/Mar/2020 14:57:52] "POST /xmlrpc/2/object HTTP/1.1" 200 - 2 0.001 0.007
2020-03-17 14:58:05,038 719846 INFO ? werkzeug: IP address - - [17/Mar/2020 14:58:05] "GET / HTTP/1.0" 303 - 1 0.001 0.006
2020-03-17 14:58:05,051 731844 INFO ? werkzeug: IP address - - [17/Mar/2020 14:58:05] "GET /web HTTP/1.0" 303 - 2 0.002 0.007
2020-03-17 14:58:05,117 731616 INFO ? werkzeug: IP address - - [17/Mar/2020 14:58:05] "GET /web/database/selector HTTP/1.0" 200 - 6 0.004 0.059
2020-03-17 14:58:12,645 731844 INFO None werkzeug: IP address- - [17/Mar/2020 14:58:12] "POST /xmlrpc/2/db HTTP/1.1" 200 - 2 0.003 0.007
2020-03-17 14:58:12,695 717243 INFO DbName  odoo.addons.base.models.res_users: Login successful for db: DbName login:username from IP address
2020-03-17 14:58:12,696 717243 INFO DbName odoo.service.common: successful login from ‘username ' using database DbName '
2020-03-17 14:58:12,696 717243 INFO DbName werkzeug: IP address- - [17/Mar/2020 14:58:12] "POST /xmlrpc/2/common HTTP/1.1" 200 - 20 0.007 0.034
2020-03-17 14:58:12,711 719846 INFO None werkzeug: IP address- - [17/Mar/2020 14:58:12] "POST /xmlrpc/2/db HTTP/1.1" 200 - 1 0.001 0.004
2020-03-17 14:58:12,737 723558 INFO DbName werkzeug: IP address- - [17/Mar/2020 14:58:12] "POST /xmlrpc/2/object HTTP/1.1" 200 - 7 0.003 0.011
2020-03-17 14:58:12,753 719846 ERROR DbName odoo.http: search() takes from 2 to 6 positional arguments but 7 were given
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/odoo/http.py", line 138, in dispatch_rpc
result = dispatch(method, params)
File "/usr/lib/python3.7/site-packages/odoo/service/model.py", line 40, in dispatch
res = fn(db, uid, *params)
File "/usr/lib/python3.7/site-packages/odoo/service/model.py", line 93, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3.7/site-packages/odoo/service/model.py", line 175, in execute
res = execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/lib/python3.7/site-packages/odoo/service/model.py", line 164, in execute_cr
return odoo.api.call_kw(recs, method, args, kw)
File "/usr/lib/python3.7/site-packages/odoo/api.py", line 407, in call_kw
result = _call_kw_model(method, model, args, kwargs)
File "/usr/lib/python3.7/site-packages/odoo/api.py", line 380, in _call_kw_model
result = method(recs, *args, **kwargs)
TypeError: search() takes from 2 to 6 positional arguments but 7 were given
2020-03-17 14:58:12,754 719846 INFO DbName werkzeug: IP Address - - [17/Mar/2020 14:58:12] "POST /xmlrpc/2/object HTTP/1.1" 200 - 2 0.001 0.006

Hi @IgnaceHakizimana , great,
Could you alos share the code you produce to make the search ?

@flotho ,
Below is the code. I'm taking an example from https://sourceforge.net/p/openerpjavaapi/wiki/Examples/
@Controller
@EnableAutoConfiguration
public class UserController {
@RequestMapping("/customers")
@ResponseBody
public ArrayList getCustomers() {
	ArrayList<String> customers = new ArrayList<String>();
	customers.add("John");

	Logger logger = Logger.getLogger(UserController.class.getName());

	Session openERPSession = new Session("Host Name", port, "Db Name", "Username", "Password");
	try {

		// startSession logs into the server and keeps the userid of the logged in user
		openERPSession.startSession();

		// ObjectAdapter partnerAd = openERPSession.getObjectAdapter("res.partner");
		ObjectAdapter partnerAd = openERPSession.getObjectAdapter("res.partner");

		//////
		////// Example code snippet goes here
		//////
	} catch (Exception e) {
		System.out.println("Error while reading data from server:\n\n" + e.getMessage());
		//logger.log(Level.WARNING, e.getMessage());
	}

	return customers;
}

}

ok, @IgnaceHakizimana ,
could you provide a lookalike parameters so that I check you're running proper the session.
Thanks

@flotho ,
@Controller
@EnableAutoConfiguration
public class UserController {
@RequestMapping("/customers")
@ResponseBody
public ArrayList getCustomers() {
	ArrayList<String> customers = new ArrayList<String>();
	customers.add("John");

	Logger logger = Logger.getLogger(UserController.class.getName());

	Session openERPSession = new Session("crm.abc.com", 8069, "ABC_CRM_live"<EMAIL_ADDRESS>"qzRtC{6rXN3N\RgL");
	try {

		// startSession logs into the server and keeps the userid of the logged in user
		openERPSession.startSession();

		// ObjectAdapter partnerAd = openERPSession.getObjectAdapter("res.partner");
		ObjectAdapter partnerAd = openERPSession.getObjectAdapter("res.partner");

		//////
		////// Example code snippet goes here
		//////
	} catch (Exception e) {
		System.out.println("Error while reading data from server:\n\n" + e.getMessage());
		//logger.log(Level.WARNING, e.getMessage());
	}

	return customers;
}

}

@flotho , Any update on what could be the source of this error?

Hi, @IgnaceHakizimana ,
Any chance to run the odoo server in debug mode and with dbfilter true.
I suspect that this API has not the option to set the version as in odoorpc in python. Your test would be appreciated for further debugging.
Regards

@flotho
It seems as if I can't go further debugging. Please, let me know if you test this library on this version of Odoo.
Thank you for support.

What I can tell is that I succeed in reaching a v11 EE with the latest lib.
It's hosted behind a  reverse proxy with https . So without more logs from your side it will be difficult to reproduce.
Sorry

Hi @IgnaceHakizimana , I think we'll probably have a good option in #7 ,
coming soon

Hi @IgnaceHakizimana , could you please retry with the latest version? don't forget to add the lib jsonrpc4j in the lib folder.
Regards


White page

Hello,
on installing the latest version (3.1?) on Sym2.6.1 I get a white page. Returning on the extensions list, email newsletter manager is pinned as non-installed.
Thanks

Sym 2.6.1? OMG. Can't you update to 2.6.3 at least? Much better!
That said, I have no idea about any breaking changes in 2.6.x. I will have to test with different Symphony versions.

I have successfully installed ENM on Symphony 2.6.1.
Could it be that your workspace folder is not writable?

Hello I cloned and tried to enable it on 2.6.2 and I am getting this error
Uncaught exception 'ErrorException' with message 'require_once
(C:\Users\Me\wamp\www\Website/extensions/email_template_manager
/lib/class.emailtemplatemanager.php): failed to open stream:
No such file or directory' in C:\Users\Me\wamp\www\Website\extensions
\email_newsletter_manager\lib\class.emailnewsletter.php:8

Might be a slash issue?

Hav you installed the Email Template Manager extension as well?

Men.... #:X that was embarassing...
Thanks!


Error upon invoking "oauth_token()"

I got the following error message:

Error in as.environment(pos) :no entry "package:httr" in search path

I checked that the package is installed, and also re-installed manually.
Best regards,
Sebastian

Okay, that one is done. One has to load the httr-package manually.

It should be loaded automatically in this package.
I'll do it.

This issue is also fixed by the PR https://github.com/teramonagi/fitbitr/pull/23

@codingbutstillalive
It might be fixed in the PR https://github.com/teramonagi/fitbitr/pull/23
Could I ask you to try again please?


Game crashes unpredictably with no stack trace and message: "swap_buffers: Vulkan: Cannot submit graphics queue. Error code: VK_ERROR_DEVICE_LOST"

Tested versions
v4.2.1.stable.official [b09f793f5]
System information
Windows 11 Home, Forward+, Intel(R) UHD Graphics
Issue description
I run the game from the editor and very infrequently, and without any identifiable pattern, the game hangs. I get the familiar Windows "Close program" dialog. There is no stack trace. See screen grab for messages.

Steps to reproduce
I cannot provide this as it happens very infrequently (I estimate once approximately every 100 times I run it). It's therefore basically impossible to reproduce. It's a fully 2D game utilizing a lot of Line2Ds, Sprite2Ds, and Polygon2Ds, some lighting, a few shaders, and many dynamically instantiated and freed nodes.
Minimal reproduction project (MRP)
As above, I cannot provide this because I cannot work out what reliably reproduces the bug.

Thanks for the report! Consolidating in https://github.com/godotengine/godot/issues/71929, as this is due to the same cause.


Add French Language

Quick add for french language.
BTW thx for this theme, it make extensive use of yaml instead of markdown but the experience is still quite smooth :)

Looks good, thank you for the addition! :)


Add JMX performance stats for non-sticky session operations

From martin.grotzke on January 27, 2011 00:30:55
For non-sticky sessions there are new operations performed with memcached. These should be measured and stats should be made available via jmx.
Original issue: http://code.google.com/p/memcached-session-manager/issues/detail?id=78

From martin.grotzke on January 26, 2011 15:33:15
(No comment was entered for this change.)
Labels: -Type-Defect Type-Enhancement

From martin.grotzke on February 02, 2011 07:46:49
(No comment was entered for this change.)
Labels: Milestone-1.4.1

From martin.grotzke on February 08, 2011 07:51:26
Implemented (commit d7b1ef60), documentation needs to be updated.
Status: Fixed
Labels: -Milestone-1.4.1 Milestone-1.4.0-RC3


Normalize whitespace

In my last few PRs, a lot of code has gotten changed as a result of inconsistent whitespace (tabs vs spaces, indentation of blocks, etc.) This makes diffs larger than they need to be (or requires more careful commits that cause undue burden to the author.) We should fix all whitespace errors in a single commit/PR to get it out of the way for future work, and perhaps look into a way to fail the build if a new commit introduces whitespace errors, to keep it from happening again in the future.

At the very least if we can get a rustfmt config file somewhere in the repo and a shell script or whatever to run it, that'd be a good start.  Then we can have Travis do that and fail builds where it changes things.
Doing this has been on my mind since my failed rustfmt PR last week or so.

Another quick workaround is just to make sure all the primary committers have their editors set up correctly. Here are my Vim settings to ensure no whitespace errors and correct indentation for Rust files:
set expandtab

" Strip trailing whitespace on save
function! <SID>StripTrailingWhitespace()
  let _s=@/
  let l = line(".")
  let c = col(".")
  %s/\s\+$//e
  let @/=_s
  call cursor(l, c)
endfunction
autocmd BufWritePre * :call <SID>StripTrailingWhitespace()

Plus rust.vim which I believe handles the right values for tabstop, softtabstop, and shiftwidth.
Of course, all that is useless if you're not using Vim!

I've just opened https://github.com/rusoto/rusoto/pull/246 to at least clean up any existing tabbed spacing for now.
Not sure if anything else needs to be done regarding this issue seeing as #191 is already open to track the rustfmt.toml addition but in case there is I didn't add a Closes ... to the commit summary.

I'm fine with #246 closing this once it passes the build and gets merged.

#246 is all merged in!


Add mCustomScrollbar() dynamically / content replacement

Hi, first, thanks for this elegant plugin.
I' like to know one thing. I init a page with a filefinfo div and this is how I use your plugin :
$("#fileinfo").mCustomScrollbar({
                theme:csTheme,
                scrollButtons:{enable:csButton},
                advanced:{ autoExpandHorizontalScroll:false, updateOnContentResize: true },
                axis: "y"
            });

But replacing the content of my div using $('#fileinfo').html(template); just destroy my customed scrollbar.
I'm surprised by this behavior Is that normal ??? And how can I keep it or recreate it dynamically
I use the latest from repository
Thanks!

in my case i'm just destroying the object before setting new one
self.$contentWindow.mCustomScrollbar("destroy");
self.$contentWindow.mCustomScrollbar();

working like charm


Expose captive core version details

PR Checklist
PR Structure

[x] This PR has reasonably narrow scope (if not, break it down into smaller PRs).
[ ] This PR avoids mixing refactoring changes with feature changes (split into two PRs
otherwise).
[ ] This PR's title starts with name of package that is most changed in the PR, ex.
services/friendbot, or all or doc if the changes are broad or impact many
packages.

Thoroughness

[ ] This PR adds tests for the most critical parts of the new functionality or fixes.
[ ] I've updated any docs (developer docs, .md
files, etc... affected by this change). Take a look in the docs folder for a given service,
like this one.

Release planning

[ ] I've updated the relevant CHANGELOG (here for Horizon) if
needed with deprecations, added features, breaking changes, and DB schema changes.
[ ] I've decided if this PR requires a new major/minor version according to
semver, or if it's mainly a patch change. The PR is targeted at the next
release branch if it's not a patch change.

What
Exposes captive core version details in captive-core-backend. This change is prerequisite for fixing https://github.com/stellar/soroban-rpc/issues/161
Why
Currently getNetowrk and getVersionInfo endpoint calls /info on core client, which in theory can semi-block the core thread. We need to refactor captive core implementation to expose captive core version so that soroban-rpc does not fetch it using http client. (i.e cache it at core process level)
Known limitations
N/A

There is no function for accessing the version.

Fixed the review comments Thank you @tamirms :)


Export default parse rules, another version

Hello Benjamin Bray! Thank you for your work on this plugin. I see that another person made a pull request to export default parse rules, but I figured I'd make a slight tweak to that PR. This doesn't alter any imports unlike the other PR. This pull request simply exports the parse rules from index.ts and rebuilt the dist folder with npm run build:dist.
I think this would be a valuable feature, unless of course the implementation is considered too experimental.
Anyways, thank you for the work you do!

Thanks for your contribution (and sorry for the very late reply)!  I'm not able to merge your PR since the structure of the project has changed, but I just merged PR #67 which exposes the parse rules.


Grouping SVG icons in folders for easier organization or Iconjar pack

Not an issue, but do you plan on iconjar package? Or possibly grouping icons inside folders for easier organization? Thanks.

Hey! We just added IconJar download: https://icons.modulz.app
Let me know if it works as expected

Spot on, thanks!


johndanz/ch17434/migrate-performance-chart-on-portfolio-page

https://app.clubhouse.io/augur/story/17434/migrate-performance-chart-on-portfolio-page-to-d3

Coverage remained the same at 55.383% when pulling 9282463cf9e173c1c22ba61eda2fb34e84ee7c2e on johndanz/ch17434/migrate-performance-chart-on-portfolio-page into dcecf6a76fa1bfd320297f48c90744af8ec71ac7 on master.


Refactor CI environment and build system

See #187 for motivation.
TODO:

[x] Fixup CI scripts to comply with new CMakeLists
[ ] Install targets
[ ] Generate Doxygen docs
[ ] Write Windows Dockerfile

Ll.

@capnkenny cat step on your keyboard or something?

"Simple" Sample now works on Windows, using a more-or-less standard setup.
Current build instructions:

Install .NET Core SDK
Install Python w/ pip
Use pip to install glad
Use vcpkg to install everything but glad (I mean, you can install glad probably..)
Create a build directory
Run CMake in build directory w/ vcpkg toolchain and -DVCPKG_OVERRIDE_FIND_PACKAGE_NAME=find_package_vcpkg
Build generated project using system of choice

I think I'm going to move the Windows Docker image work onto the backlog, since it's taking a lot longer than I expected to complete.

/azp run

This should be ready for review/merge at this point.


Merge TokenDisplay and TokenForm to replace one another

This PR combines Token Display and Token Form to replace one another once the form is done or the user selects to reset the form.

@googlebot I consent.


C++: Stricter loop-variant check

Fixes #2425. I've proposed this as a 1.23 hotfix since it's a very local change and fixes FPs on so many prominent projects.
From the commit message:

The loopVariant predicate in ComparisonWithWiderType.ql is intended
to identify loop counters, but it was too much of a stretch to apply it
to any subexpression of the small side of the comparison.
This change fixes two false positives on arvidn/libtorrent and many
others seen in the wild (on Linux, CoreCLR, ffmpeg, ...).

I've tested the change by adding the negation of loopVariant(small, l) to the current query so it selects the results that will now be removed. This shows that the two FPs go away on arvidn/libtorrent. I've checked only the first two pages of the results on our 88 test projects, but they all look like FPs to me, so I'll be glad to get rid of them.
I've tested performance on one medium-sized project (ChakraCore), and there was no difference from before.

This looks safe and is probably a reasonable tradeoff, but I think we will lose some good results.  For example, at some point we might want to add back support for cases like this one (from bloomberg/comdb2 on the third page of results):
++indx < recs

Good point. That can go in master.


Fix compatibility with flutter_map ^7.0.0

Fix compatibility with flutter_map ^7.0.0

@rorystephenson please check

Thanks @marcelo-soares-souza !

@rorystephenson
Would you publish new version to pub.dev?


Implement Context-powered state management

User story
As a developer working on this application, I should be able to pass global state values down without the need to prop drill so that I can simplify state access in nested child components.
Acceptance criteria

Context API for stateful tests variable is created and exported
Context Provider from above context is created and exported
Panels are wrapped in context provider
the test and setTests variables in each file where tests or setTests will be used are available via the API
Test-related variables from props in all files are removed
Data Canvas components are drilled from the panels-level.

Research questions

What are best practices for using React’s Context API?
What needs to be refactored to take advantage of state management?
Should we set internal guidelines on when to use Context vs. drill props?

I reexamined this and removed the "Data Tree(?)" components as props to be passed down from higher levels.  The data canvas component (which is now a prop) creates some of these trees, and the tests creation and updating logic seems better nested in the TestsPanel, and with the adjustments we've made, our prop count at every level is much more manageable 😁


Add pip Alias in UV-Managed Virtual Environments

Hello,
In my typical workflow, I create virtual environments using poetry or venv and activate them with source .venv/bin/activate. While I primarily rely on poetry for package management and tracking dependencies in pyproject.toml, I occasionally use pip for tasks like checking installed package versions or installing packages without tracking them in pyproject.toml.
Currently, this workflow isn’t possible with uv because virtual environments created by uv do not include pip by default. To address this, would it be possible to create an alias for pip that maps to uv pip within UV-managed virtual environments? This would ensure a seamless experience when using pip commands alongside uv.
Thank you for considering this feature request!

This is a rather old question (https://github.com/astral-sh/uv/issues/1657). Perhaps you could take a look at the discussion to see why uv didn't plan to do this in the past.


 The SIMARM run disagrees with all the other execution modes.
Here the --deterministic flag seems all that is needed to reproduce

dart --enable-interpreter  --deterministic out.dill

< [inf, inf, inf, 734826752.000000]
---
> [inf, inf, inf, 734857728.000000]

fuzz3754886595.dart.txt

Another divergence that reproduces:
 FP NO-FFI FLAT : KBC-CMP-SRC-O3-DET-ReleaseSIMARM - KBC-CMP-DebugIA32: !DIVERGENCE! 1.68:1817442711 (output)

-- BEGIN REPRODUCE  --

dartfuzz.dart --fp --no-ffi --flat --seed<PHONE_NUMBER> /b/s/w/itbxZOZ9/dart_fuzzTZQOAQ/fuzz.dart

-- RUN 1 --

/b/s/w/ir/out/ReleaseSIMARM/dart --use-bytecode-compiler --optimization_level=3 --deterministic --old_gen_heap_size=128 /b/s/w/itbxZOZ9/dart_fuzzTZQOAQ/fuzz.dart

-- RUN 2 --

/b/s/w/ir/pkg/vm/tool/gen_kernel --gen-bytecode --platform=/b/s/w/ir/out/DebugIA32/vm_platform_strong.dill -o /b/s/w/itbxZOZ9/dart_fuzzTZQOAQ/out.dill /b/s/w/itbxZOZ9/dart_fuzzTZQOAQ/fuzz.dart
/b/s/w/ir/out/DebugIA32/dart --use-bytecode-compiler --old_gen_heap_size=128 /b/s/w/itbxZOZ9/dart_fuzzTZQOAQ/out.dill

-- END REPRODUCE  --

Difference in output:
< [9.569135,<PHONE_NUMBER>034752.000000, inf, 5039697.000000]
---
> [9.569154,<PHONE_NUMBER>462464.000000, inf, 5039694.500000]

Another one:
Isolate (/b/s/w/it2Esm8W/dart_fuzzWXWXOA) FP NO-FFI FLAT : JIT-OPTCOUNTER-O3-DET-DebugX64 - KBC-CMP-ReleaseSIMARM64: !DIVERGENCE! 1.72:3103640098 (output)

-- BEGIN REPRODUCE  --

dartfuzz.dart --fp --no-ffi --flat --seed<PHONE_NUMBER> /b/s/w/it2Esm8W/dart_fuzzWXWXOA/fuzz.dart

-- RUN 1 --

/b/s/w/ir/out/DebugX64/dart --optimization_counter_threshold=1 --optimization_level=3 --deterministic --old_gen_heap_size=128 /b/s/w/it2Esm8W/dart_fuzzWXWXOA/fuzz.dart

-- RUN 2 --

/b/s/w/ir/pkg/vm/tool/gen_kernel --gen-bytecode --platform=/b/s/w/ir/out/ReleaseSIMARM64/vm_platform_strong.dill -o /b/s/w/it2Esm8W/dart_fuzzWXWXOA/out.dill /b/s/w/it2Esm8W/dart_fuzzWXWXOA/fuzz.dart
/b/s/w/ir/out/ReleaseSIMARM64/dart --use-bytecode-compiler --old_gen_heap_size=128 /b/s/w/it2Esm8W/dart_fuzzWXWXOA/out.dill

-- END REPRODUCE  --

For the original Dart program in Aart's first comment, it reproduces on current master and I've got it simplified down to:
// Simplified version of output from the Dart Project Fuzz Tester (1.65).
// Original program generated as:
//   dart dartfuzz.dart --seed<PHONE_NUMBER> --fp --no-ffi --flat

import 'dart:typed_data';

Uint32List var7;
Float32x4 var15 = Float32x4(0.6429601434830787, 0.017308018799043534, 0.14264533774635757, 0.49312965430708255);

void foo1(int n){
  // Changing this to a for loop from [0, n) removes the difference.
  List(n).forEach((loc1) {
    // Collapsing the for loops into a single loop from [0, 629)
    // (45 * 14 == 630 iterations) removes the difference.
    for (int loc3 = 0; loc3 < 45; loc3++){
      for (int loc4 = 14; loc4 > 0; --loc4){
        // Removing the following line removes the difference.
        var7 = Uint32List.fromList(Int32List(30));
        var15 /= new Float32x4(0.46869353761031984, 0.47123060617118784, 0.5638146268247126, 0.9952218774240806);
      }
    }
  });
}

main() {
  foo1(7);
  print('$var7\n$var15\n');
}

Inline comments denote simplifications I attempted that removed whatever the issue is. At this point I think the program is basically as simple as it can be while still exhibiting the issue and not changing the ending value of var15.

Checking again today, either something's changed or I made mistakes when trying to compare different simplified versions, as I can simplify this to:
// Simplified version of output from the Dart Project Fuzz Tester (1.65).
// Original program generated as:
//   dart dartfuzz.dart --seed<PHONE_NUMBER> --fp --no-ffi --flat

import 'dart:typed_data';

Float32x4 var15 = Float32x4(0.6429601434830787, 0.017308018799043534,
    0.14264533774635757, 0.49312965430708255);

void foo1(int n){
  final arg = Float32x4(0.46869353761031984, 0.47123060617118784,
      0.5638146268247126, 0.9952218774240806);
  for (int i = 0; i < 630 * n; i++) {
    var15 /= arg;
  }
}

main() {
  foo1(7);
  print('$var15\n');
}

without changes to either output. We see this difference without any of the command line arguments to dart.
Also, the SIMARM output has changed since https://github.com/dart-lang/sdk/issues/39351#issuecomment-553071005:
$ for i in IA32 X64 SIMARM SIMARM64; do echo $i; out/Release$i/dart ~/tmp/fuzz6.dart; done
IA32
[inf, inf, inf, 734826752.000000]

X64
[inf, inf, inf, 734826752.000000]

SIMARM
[inf, inf, inf, 735044352.000000]

SIMARM64
[inf, inf, inf, 734826752.000000]

That is, DebugIA32 has the same output, but ReleaseSIMARM now returns 735044352.000000 as the fourth element instead of 734857728.000000, a difference of 0.03% instead of 0.004%.
Since X64 shows the same result as the non-SIMARM ones, I don't think it's #39551, but it could still be a difference in how FP is handled on SIMARM vs. the other modes. (I was more concerned when it looked like semantically equivalent loops were ending up with different results.)

Also, foo1 only gets called once, and we don't set a threshold, so no compilation of foo1 is happening here. We're not hitting the C code in DN_HelperFloat32x4_div, so we're hitting the graph intrinsic code compiled in the monomorphic checked entry for Float32x4./, which means we're using divps on IA32 and X64, vdivs on SIMARM64, and... the code generated from Assembler::Vdivqs on SIMARM, which is a series of vrecpeqs, vrecpsqs, and vmulqs calls. Given that, I'm guessing it's just reasonable differences due to the reciprocal estimates used on SIMARM to approximate the division vs. the direct float division on elements used in the other cases.
Thus, we'd just need a similar solution to #39551 in making sure we don't use exact equivalence for float outputs, and I'm going to close this one.
Duplicate of #39551.


translate/v3: add samples for translate v3

Adding tests for translate v3.

Note: Tests involving custom models will be failing until we create the AutoML models on all the testing projects in GCP.
In the meantime, the code should be working so it's ready for review.
We can merge after creating the AutoML models and confirm all tests pass.

These are a lot of files created, please let me know if you prefer them to be divided into 1 PR per sample to make it more manageable for review.

I commented out the 4 tests that used AutoML models since we want to merge this as soon as possible. The samples themselves should work and the docs shouldn't need updating afterwards, but I'll uncomment those 4 tests in another PR once the setup is ready in the testing projects.

@tbpg @hongalex This is ready for review


Java buildpack doesn't respect Java Runtime version set in conf files

The Java buildpack should look for runtime specification in pom.xml or gradle... (sorry not a java person) as the other buildpacks do. It only respects GOOGLE_RUNTIME_VERSION.
For example, the Node buildpack looks for a node version in packages.json or if GOOGLE_NODEJS_VERSION is set, it gives that preference.

Hi @feliperyan , raising this issue. It does look like Java buildpacks respects Gradle and Maven configurations
https://github.com/GoogleCloudPlatform/buildpack-samples/blob/049092c48626cc1f6cd1885e00ad84de881ad934/sample-java-gradle/build.gradle#L12
https://github.com/GoogleCloudPlatform/buildpack-samples/blob/049092c48626cc1f6cd1885e00ad84de881ad934/sample-java-mvn/system.properties#L1
I think this is something I can update on our docs though, because to your point, we only show how you can pin via the GOOGLE_RUNTIME_VERSION environment variable

Docs have been updated to clarify Java languge pin behavior https://cloud.google.com/docs/buildpacks/java#specify_a_java_version
Hope that helps @feliperyan

Hey @jama22 thanks for this, I stumbled on this issue when trying to follow https://cloud.google.com/run/docs/quickstarts/build-and-deploy/deploy-java-service which fails as the runtime in the buildpack defaults to 11 and seems not to pick up on the fact that the build.gradle defines sourceCompatibility = '17' here's the whole build.gradle
plugins {
	id 'java'
	id 'org.springframework.boot' version '3.0.0'
	id 'io.spring.dependency-management' version '1.1.0'
}

group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'

repositories {
	mavenCentral()
}

dependencies {
	implementation 'org.springframework.boot:spring-boot-starter-web'
	testImplementation 'org.springframework.boot:spring-boot-starter-test'
}

tasks.named('test') {
	useJUnitPlatform()
}

reopening, I'll take a look when more folks are back online

@feliperyan Not a Java expert, but going by sourceCompatibility = '17'
do you have to wrap the sourceCompatability line in java like so:
java {
     sourceCompatibility = '17'
}

Did some digging. Mea culpa I was misled by our own examples and how (I assumed) the Java buildpacks work. I've requested a rollback the documentation changes I made yesterday, since I now understand them to be incorrect. To help clarify the situation, there are 3 separate issues at hand here:
Java buildpack keeps defaulting to JDK 11
Although we recently released support for the JDK 17 in our OSS buildpacks, most projects will default to JDK 11. The root cause of that can be found here: https://github.com/GoogleCloudPlatform/buildpacks/blob/1588a5e7eb2b474daf03f259d021dc168ed7544d/cmd/java/runtime/main.go#L33
Without GOOGLE_RUNTIME_VERSION set, the Java buildpack will always default to 11
The concrete action here would be to bump the default to always use the latest JDK available. However, this  could be a breaking change since some folks might have come to depend on the fact that JDK 11 is always being used. I think a good opportunity to make this change is in conjunction with the fix to #232 , where we plan on rolling out a builder:v2  which will have the new Ubuntu 22 base image.
java buildpacks don't actually respect the gradle and mvn files
Going through our buildpack samples under https://github.com/GoogleCloudPlatform/buildpack-samples/tree/master/sample-java-gradle and https://github.com/GoogleCloudPlatform/buildpack-samples/tree/master/sample-java-mvn , i was pretty confident that our buildpacks were picking up version details from the build systems themselvses. This is not the case.
The issue remains that we should provide language idiomatic ways for detecting the preferred JDK version. I'm going to leave this Github issue open to capture that request.
Looking at Heroku and Paketo, something tells me there's more to it than just inspecting the files to infer the JDK version. Both buildpacks rely on a buildpack-specific configuration or environment variable.
Documentation should include additional instructions on how to pin
Right now, the only reliable way to force a JDK version with the Java buildpacks is by using the GOOGLE_RUNTIME_VERSION environment variable. That said, there are many (frustrating) ways to set that environment variable, especially if you're trying to manipulate the environment variables using the gcloud CLI. A more declarative approach is to embed the environment variable declaration alongside your source code in a project.toml file as so:
[[build.env]]
name = "GOOGLE_RUNTIME_VERSION"
value = "17"

This has a few benefits:

the file will live alongside your code and configuration
project.toml will be picked up and respected when using Cloud Build and Cloud Run source deploy

I'll take on documenting that functionality after the rollback of the docs complete . Tracking bug is #255


editor comes up with black background

Since today editor starts with a black background and turns white only after a second or so.

@jrieken Can you check if there's anything in the console?
Or set a breakpoint in index.html, line 20 and see what the base theme is.

Breakpoint isn't hit but when executing that code manually I get this:
decodeURIComponent(window.location.search.substring(8))
"{"_":[],"performance":"sn_0_2081276","p":"sn_0_2081276","appRoot":"/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app","execPath":"/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron","userEnv":{"VSCODE_PID":"30224","VSCODE_IPC_HOOK":"/Users/jrieken/Library/Application Support/Code - Insiders/1.10.0-insider-main.sock","VSCODE_SHARED_IPC_HOOK":"/Users/jrieken/Library/Application Support/Code - Insiders/1.10.0-insider-shared.sock","VSCODE_NLS_CONFIG":"{\"locale\":\"en\",\"availableLanguages\":{}}"},"workspacePath":"/Users/jrieken/Code/vscode","nodeCachedDataDir":"/Users/jrieken/Library/Application Support/Code - Insiders/CachedData","baseTheme":"vs","perfStartTime":1487233068311,"perfAppReady":1487233068484,"perfWindowLoadTime":1487238555750}"


Missing reco--truth matches for both particles and interactions

There are cases of zero true particle matches for a given reconstructed particle when parsing CAFs. In these cases the sr->common.ixn.dlp[ixn].part.dlp[ipart].truth vector is empty (also truthOverlap is empty). The reconstructed particles have (apparently) valid values for their momentum/energy/etc.
Similarly, the reco--true interaction matching also has instances where reconstructed interactions will have no corresponding truth matches. The sr->common.ixn.dlp[ixn].truth and truthOverlap vectors are empty.
This is present in both MiniRun5 beta1 and beta2a files, and a couple of examples can be found below with the files and spill numbers identified.
caf_bug_output_20240626.txt

Hey @cuddandr , how often does this happen? Also do you mind providing some visual examples? Francois reckons it's due to noise but it seems suspicious to me.

Running over the available MR5 Beta2a CAFs, I get the following numbers:

I have new information (but no event display, still a work in progress). Looking at some beta1 flow files, it turns out a number of events/spills have no hits (or ADC counts) and no corresponding MC truth information (or even some reconstructed information).
Looking at the charge/raw_events/data or charge/events/data datasets and trying to deference them with the h5flow deference function returns entirely masked arrays, i.e. no valid data, when trying to find the corresponding truth interaction or even prompt hits. Looking at the charge/events/data dataset also reports zero hits and zero ADC counts for the given spill/event.
So it looks like in the CAFs for reconstructed interactions that have no truth interaction, the cause is missing info at the nd-flow (or larnd-sim) stage. (Or at least this explains some of the missing reco--truth matches).

Can you provide a file and event number?

Yes. Here are a few dozen examples. Reading files from the 2x2 productions stored at NERSC:
/global/cfs/projectdirs/dune/www/data/2x2/simulation/productions/MiniRun5_1E19_RHC/MiniRun5_1E19_RHC.flow.beta1/FLOW/0000000/

File names and the id field for charge/event/data:
MiniRun5_1E19_RHC.flow.0000010.FLOW.hdf5
27,37,67,77,86,108,126,128,150,182,185

MiniRun5_1E19_RHC.flow.0000013.FLOW.hdf5
7,8,15,57,71,78,137,148,160,163,176,184

MiniRun5_1E19_RHC.flow.0000017.FLOW.hdf5
6,16,19,27,33,50,79,84,88,91,92,96,105,107,114,134,143,147,150,156,191

MiniRun5_1E19_RHC.flow.0000020.FLOW.hdf5
19,24,43,45,46,50,51,52,65,66,77,90,104,118,123,131,144,145,151,153,156,161,168,184

Alright, I am closing this issue as it is not CAF related.
The interaction level matching issue is at the flow level as Andrew pointed out.
For particle level, it is the same: those reco "particles" are actually just noise coming from simulation, not actual particles (after talking to Francois and checking the event displays)
Entry 4 (the points in the middle):

I don't even know why these hits are associated to one of the two interaction vertices in flow (needs more detailed look inside the flow file, I'll leave it to the experts)

Hi @cuddandr @sindhu-ku @francois-drielsma Sorry for circle back to this after a while. I looked at a few events that Andrew pointed out. They have no hits and their corresponding true segments are neutrons, photons, nucleus and very short electrons. In these cases, it makes sense to me to not have a truth matching. However, haven't looked at the CAF files myslef, I wonder how long are these particles, how many particles do these interactions have and how much energy do they deposit? I'm not convinced that there are so many reconstructed particles that are from noises in the simulation. Have we checked these hits really not having backtracked segments? How they are associated to an interaction is a downstream question.

From what I checked, they have backtracked segments, but those correspond to those other vertices. But it's been a while, I don't remember. This is entry 4 in the first file if you want to take a look.

Moving some of the slack conversation to conclude this is behaviour is expected and with the later version the number of not matched particles is low.
FD: I looked at the first flow2supera LArCV file from MR5 beta2a that Yifan provided me with and found 6 particles out of 643 (~1%) which do not have a truth match (this is using SPINE, the only package that will be maintained moving forward, which had several bug fixes from the legacy lartpc_mlreco3d repo). I looked at all 6 particles and here's what they look like (entries [ 27,  79, 117, 133, 171, 174] in that file)

Reco PID: gamma, mu, p, gamma, gamma, gamma
Reco KE: 6, 3, 20, 6, 7.5, 6 MeV
Note that flow2supera can change the association, due to the heuristics it uses to prevent absurd associations. I think this effect will be further suppressed in MR6 where the labeling has improved.
If one day we no longer need heuristics (unlikely until we fix the hardware), the issue will entirely go away, but it seems to me like it should be < 1% effect in MR6.

YC: Given the above checks I think it's fair to say the observed behaviour is tolerable. The changes in these numbers came from the updates in the heuristic cuts in supera.


merge package from arlac77/npm-package-template

package.json

chore(package<EMAIL_ADDRESS>chore(scripts): cover@#overwrite c8 --temp-directory build/coverage ava && c8 report -r lcov --temp-directory build/coverage
chore(package): add xo from template
chore(package): add nyc from template
chore(package): set $.ava.require='esm' as in template
chore(package): set $.ava.files='tests/-test.js,tests/-test.mjs' as in template
chore(package): set $.ava.extensions='js,mjs' as in template

Codecov Report

Merging #404 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master   #404   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           1      1
  Lines          41     41
=====================================
  Hits           41     41

Continue to review full report at Codecov.

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

Coverage remained the same at 98.148% when pulling 07010bbfd2431825c89cdcc747b772ed441934af on template-sync-1 into cb11fc895e4b1fdcb50b27d210818be944901109 on master.

:tada: This PR is included in version 1.2.10 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


ApplicationCustomizer navigated event not firing when creating a new page

Category

[ ] Question
[ ] Typo
[X] Bug
[ ] Additional article idea

Expected or Desired Behavior
When a user is on a Site Page and clicks to add a new page via the command bar drop down or via "Add a page" in the settings panel the navigatedEvent should fire as the URL changes to:

"SitePages/newpage.aspx?Mode=Edit"
Then to a generated page URL e.g "SitePages/nmorjnzr.aspx?Mode=Edit"
Then to whatever title you have set in the page e.g "SitePages/addedpage.aspx"

This should then update the context object with the correct list item id of the newly created page in the application customizer (context.pageContext.listItem.id).
Observed Behavior
Navigated event is not fired on new page creation. The user is on the new page that was created but the current context is incorrect.
Steps to Reproduce
SharePoint Environment: SharePoint Online
SPFx Version: 1.9.1
Browser: Chrome
Create an application customizer that logs to the console each time the navigatedEvent fires.
It will not log when creating a new page from the command bar drop down or via "Add a page" in the settings panel. I'll provide a repo if necessary.

Known issues with this event, this is a dupe of #4054 & #3210... as such can you consolidate any additional feedback to those issues for tracking? Thanks!

Thanks. I'll add the description of this to #4054


New Project generation feature

Originating Project/Creator

Affected Component

Affected Architectures(s)

Related Issue(s)

Has Unit Tests (y/n)

Builds Without Errors (y/n)
y

Unit Tests Pass (y/n)

Documentation Included (y/n)
y

Change Description
Adds in a new project cookiecutter template and the associated logic for new --project
Checks that git is installed, generates a minimal amount of project files, then init a git repo and add F' as a git submodule.
Optionally creates a venv and sets it up with requirements.txt.
Rationale
Vastly improves user experience to getting started, enforces a good project structure instead of using Ref/
Testing/Review Recommendations
fprime-util new --project
cd ...
fprime-util new --deployment
cd ...
fprime-util generate
fprime-util build
fprime-gds

Tested with pip install . with no -e.

@LeStarch  There's probably a lot to be said about the generated CMakeLists.txt and settings.ini as this methodology is not clearly defined yet. Should we just remove them for the time being?