SimulationScence get_obs throws eror if no agents exists

When calling get_obs with a current scene timestamp without any agent, the code throws an error.
If self.agents is empty, then agent_data_list will be empty to:
https://github.com/nvr-avg/trajdata/blob/7c8f7f597997bd3d5ee56b207d2122cc14f1e858/src/trajdata/simulation/sim_scene.py#L109-L110
and passed empty to:
https://github.com/nvr-avg/trajdata/blob/7c8f7f597997bd3d5ee56b207d2122cc14f1e858/src/trajdata/simulation/sim_scene.py#L135-L139
Then agent_collate_fn throws a couple of errors. The first one will be here:
https://github.com/nvr-avg/trajdata/blob/7c8f7f597997bd3d5ee56b207d2122cc14f1e858/src/trajdata/data_structures/collation.py#L112
Can be reproduced with the biwi_eth datasets and an init_timestep for the SimulationScene around 200. There are a couple of timesteps with no present agent.
Fixes might be returning None or construct an empty AgentBatch. This has some impact on the examples, because new_xyh_dict will be an empty dict and thus step throws errors. I fixed these by adding a check in
https://github.com/nvr-avg/trajdata/blob/7c8f7f597997bd3d5ee56b207d2122cc14f1e858/src/trajdata/simulation/sim_df_cache.py#L122-L128
and only modify the dataframe if sim_dict contains elements.

Good catch @Leon0402! I've opted to raise a ValueError for this and ask the user to choose a different initial timestep. There's not really much one can do with zero agents for simulation 🤷♂


Remove useless utils scripts for GCC

What problem does this PR solve?
Issue Number: ref #4909
Problem Summary:
What is changed and how it works?
Check List
Tests

[ ] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[x] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

/run-unit-test

/rebuild

/merge


pypirc for pushes instead of for pulls

Minor quirk but in Connect to feed section, should it read ".pypirc for pushes and pip.ini for pulls" instead? As pypirc is the config file for upload tools like twine or flit, and pip.ini is the config for pip to download the packages.

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

ID: c6cca7b9-7fe5-bc14-c7da-08983e920f81
Version Independent ID: 7d8cf191-b229-0e2e-8cb3-01a80c4842fd
Content: Get started with Python packages in Azure Artifacts - Azure Artifacts
Content Source: docs/artifacts/quickstarts/python-packages.md
Service: azure-devops-artifacts
GitHub Login: @ramiMSFT
Microsoft Alias: rabououn

@ramiMSFT -- Rami, please review this update in private PR 5522.

Thanks for your feedback!


adjust clusterIP in the service interceptor if it is equal to None

Description
Currently we intercept services with clusterIp, which has the default "None" value, such as i.e. here https://github.com/kyma-project/kyma/blob/main/resources/eventing/charts/nats/templates/service.yaml#L18. This then leads to errors like this spec.clusterIPs[0]: Invalid value: []string{"None"}: may not change once set') for component 'eventing' to caller .
Changes proposed in this pull request:

do not intercept services which current state have clusterIP equals "None"

Related issue(s)
https://github.com/kyma-project/kyma/issues/12697

/test all

/test all


[ci]: Get more free space on the runner for release's long tests

Description
I noticed that with soft disk space free up on the default runner for long tests into I2::Release::Tests we still receive the error [long](https://github.com/hyperledger/iroha/actions/runs/6850948216/job/18626197954) System.IO.IOException: No space left on device.
I propose to use the specific Action for hard disk space free up.
Linked issue
Failed long tests job
Benefits
Free up more disk space as much it's possible to be able to execute long release tests.
Checklist

[ ] I've read CONTRIBUTING.md
[ ] I've used the standard signed-off commit format (or will squash just before merging)
[ ] All applicable CI checks pass (or I promised to make them pass later)
[ ] (optional) I've written unit tests for the code changes
[ ] I replied to all comments after code review, marking all implemented changes with thumbs up

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
6907 unchanged lines in 128 files lost coverage.
Overall coverage decreased (-4.0%) to 55.39%

Files with Coverage Reduction
New Missed Lines
%

config/base/derive/src/view.rs
1
99.37%

config/src/block_sync.rs
1
95.0%

config/src/network.rs
1
93.75%

config/src/torii.rs
1
95.45%

config/src/wasm.rs
1
87.5%

core/src/smartcontracts/isi/block.rs
1
87.5%

config/src/kura.rs
2
79.41%

config/src/lib.rs
2
0.0%

ffi/src/option.rs
2
71.43%

config/src/genesis.rs
3
72.92%

Totals

Change from base Build<PHONE_NUMBER>:
-4.0%

Covered Lines:
22142

Relevant Lines:
39975

💛  - Coveralls


Add TrustedLen impl to avoid the slower path of Vec:: extend_desugared

... and what about implementing ExactSizeIterator on ArrayIter?


[Question] instructions for speculative decoding usage

❓ General Questions

@MasterJH5574 @vinx13 Hi MLC LLM's developers, I see that various speculative decoding algorithms such as small draft model, Medusa, and EAGLE have been implemented in MLC LLM. If I want to use them now, are there any corresponding instructions? I couldn't find the relevant section at https://llm.mlc.ai/docs/. Looking forward to your reply, thanks!

You can build the two models separately. For eagle or medusa, you can download the separate eagle or medusa head, and specify --model-type eagle / medusa when building the model.
After that, you can use the --speculative-mode parameter when starting the server
e.g
python3 -m mlc_llm serve dist/llama-3-8b-chat-hf-f16-1gpu/  --mode server --model-lib dist/llama-3-8b-chat-hf-f16-1gpu/llama-3-8b-chat-hf-f16.so --additional-models  dist/llama-3-1b-chat-hf-f16-1gpu,dist/llama-3-1b-chat-hf-f16-1gpu/llama-3-1b-chat-hf.so --speculative-mode small_draft --overrides "spec_draft_length=1"


notice error: Trying to get property of non-object in build/SlickInject.php on line 156

I'm getting this error when inserting with slickinject in a database table. The data is inserted, but the error occurs in the same way. I know it's easy to solve this, but could you please take a look?  Thanks!

@gabrielschuck Sorry, it needs updating. Also what version of PHP are you running?

Updated. Should now be working.
I am however not using the 1 build file, and everything is working fine on my server php v5.6 > v7.1 tested.

I am using xampp with php 5.6.30.
I've updated now and am getting other errors:
Warning: mysqli::stmt_init(): Couldn't fetch mysqli in C:\xampp\htdocs\agenda\build\SlickInject.php on line 308
Fatal error: Call to a member function prepare() on null in C:\xampp\htdocs\agenda\build\SlickInject.php on line 309

@gabrielschuck hm, interesting. 1 sec

@gabrielschuck Can I get an example of usage? Ignore your credentials.

Running this, will let you know.
if (!extension_loaded('mysqlnd')) die("mysqlind extension is not loaded.");

I have discovered that I am having two errors. The first, even with the Update, still continues.
The second of the previous comment is happening when I use the object As global within a function.
See the two codes below:
insert ("test",array("name"=>"Gabriel Schuck","city"=>"Novo hamburgo"));
$sql->close();
?>
It works fine, but I continue with the error of before:
Notice :  Trying to get property of non-object in C:\xampp\htdocs\agenda\build\SlickInject.php on line 156
Now the same code inside a function:
insert ("test",array("name"=>"Gabriel Schuck","city"=>"Novo hamburgo"));
}
$sql->close();

test();
?>
Result:
Warning :  mysqli::stmt_init(): Couldn't fetch mysqli in
C:\xampp\htdocs\agenda\build\SlickInject.php on line 308
Fatal error :  Call to a member function prepare() on null in
C:\xampp\htdocs\agenda\build\SlickInject.php on line 309
Am I doing something wrong?

@gabrielschuck hm, let's try 2 things.

Re-update. Hopefully that fixes your issue. Even this worked. No error, nor warnings.

Thank you! Everything working now. One more little thing: Is it possible to use the limit gulle? How would it be?

@gabrielschuck
SELECT([], "table", array("id"=>1, "LIMIT 1"));

SELECT * FROM table WHERE id = 1 LIMIT 1

SELECT([], "table", array("LIMIT 1"));

SELECT * FROM table LIMIT 1

Note, that if you use LIMIT, or anything as to that. It's your job to handle the use. For example, you cannot do
SELECT([], "table", array("LIMIT 1", "id"=>1));

Also, to send raw sql is complicating, but this is simple to execute, but it's something like this
$row = (SlickInject)->getSQLObject("SELECT * FROM table LIMIT 1", null);

// WHERE example
$row = (SlickInject)->getSQLObject("SELECT * FROM table WHERE id = ? LIMIT 1", array("i", 1));


Cannot pass params to screens on navigate

Version
Tell us which versions you are using:

react-native-router-flux v4.0.0-beta.28 (v3 is not supported)
react-native v0.52.0

Expected behaviour
For the app to navigate to the new screen with the params as props.
Actual behaviour
Error code undefined is not a function (evaluating '_this2[type](routeName, res)')

Steps to reproduce
The code for my router looks like this:
<Scene
	key="Filters"
	component={Filters}
	hideNavBar
/>

<Scene
	key="FiltersList"
	component={FiltersList}
	hideNavBar
/>

In my Filters screen, I want to navigate to the FiltersList and pass props but I get the error code I mentioned.
This is what my action looks like:
<ListItem
 	icon
 	button={true}
 	onPress={() => Actions.FiltersList({type: 'controller'})}
/>
 	<Body>
		<Text>Controllers</Text>
	</Body>
 	<Right>
 		<Icon name="ios-arrow-forward" />
 	</Right>
</ListItem>

Whenever I remove the params, then the app navigates to FiltersList without a problem but if I try to add the params I need then my app crash.
Any solutions around this problem?

If anybody had this issue, please use the react-navigation API that is provided in this package.
I wasn't really sure about what the documentation meant when it mentions the API... I guess for people familiar with the package there wouldn't be any need to mention it but the react-navigation API is accessible from Actions object.
Something along the lines of:
import { Actions } from 'react-native-router-flux';

Actions.push('FiltersList', {type: 'controller'});

It is because type is a prop already used in this library (i.e. reset, refresh etc..), this is why it was not working.
A quick look at the API would have helped you.

Same @kholiavko-roman did you end up finding a solution?

@d7laungani, I did like this:
Actions.settings({ title: 'settings title' });
And when defined all routes of the app, you need set some default value for this params:
<Scene title='my page' />

It is because type is a prop already used in this library (i.e. reset, refresh etc..), this is why it was not working.
A quick look at the API would have helped you.

I confirm this.


Initialize only the Regions available in the cluster account

During the region initialization phase, initialize only the regions enabled for the account, instead of using a hardcoded array of covered regions.
Card: https://issues.redhat.com/browse/OSD-6825

/hold

Given that we're moving away from this static list, maybe moving the ami IDs into a configmap would help here? In case the ami IDs change. Then a configmap update would be required, rather than a full new deploy of the operator.

Still missing a few region AMIs since the regions are taking a while to initialize

Given that we're moving away from this static list, maybe moving the ami IDs into a configmap would help here? In case the ami IDs change. Then a configmap update would be required, rather than a full new deploy of the operator.

I think this would be a good change

/hold

/hold cancel

Codecov Report

Merging #561 (324da7b) into master (50eb9ff) will decrease coverage by 0.21%.
The diff coverage is 0.00%.


Update supply-chain-traceability-solution.md

Updated few points @SnehaGunda @manishmsfte

#sign-off


Filter by route params in fetchAll

Hi,
if I have two entities (user and map), a request to /api/user/2/map/1 returns the map filtered with user=2, but a request to /api/user/2/map ignores this filter and returns all existing maps
I would expect it to work the same in both cases, wouldn't it be possible to extract the logic from findEntity() and filter by route params in fetchAll? (and probably in all other methods too?)

You can extend your resources to custom classes and write your own findEntity.
Alternatively you could not use multiple keys and instead use the extra key in the Query Provider to create the filter you're looking for.

Thanks I will try that, but I wonder why route filters works as expected by default with entities (https://github.com/zfcampus/zf-apigility-doctrine/blob/master/src/Server/Resource/DoctrineResource.php#L666) but not with collections

@rodsouto I'm going to close this for now.  You're the first to bring up collections of subkeys and if you want to experiment you do know the right place in the code to start from.  I'll look forward to any PRs.

If somebody else is interested, for now i'm using this .https://gist.github.com/rodsouto/2d305d2b3385226587ed. If there's interest in this functionality I'll send a PR later. Thanks!


Add a "SLOW MODE" banner in checked mode

Fixes https://github.com/flutter/flutter/issues/1682

@abarth or @HansMuller are better reviewers than me, but sgtm!

Updated to address verbal comments. PTAL.

LGTM


Refactor EmailService

Currently EmailService receives a PacktFreeOffer, so it is tightly coupled to that domain object.
The following is proposed to loose the coupling:

[x] Create a specific email model class EmailData.
[x] Create a specific EmailService interface with method:

[x] void send(EmailData)

[x] Modify EmailService:

[x] Rename it to SimpleJavaMailService.
[x] Remove NotificationListener interface and add EmailService interface instead.
[x] Adapt the current notify(PacktFreeOffer) method to send(EmailData) method.

[x]  Create an adapter class EmailNotifier which will implement NotificationListener interface. This class will send the object to the wrapped inside the EmailData class to the SimpleJavaMailService .
[x] Modify NotifierPacktApplication class to initialize the new EmailListener there instead of the old one.

This task should be priotirized first, as the old task should continue working as before, and then we can do the following tasks.

Done.


Failed to parse Jinja attribute starts with interpolation

This seems to cause an issue for the following snippet that is not parsing anymore:
<picture
    {% for key, val in attributes.items %}
        {{ key }}="{{ val }}"
    {% endfor %}
></picture>

I get this Failed to parse "src/t.html" with error Syntax(SyntaxError { kind: ExpectJinjaTag, pos: 61, line: 3, column: 11 }). This is failing to parse {{ key }} because it expect a JinjaTag.
Originally posted by @UnknownPlatypus in https://github.com/g-plane/markup_fmt/issues/44#issuecomment-2305455805

Thanks :raised_hands:


Error handling

Implicitly handle errors form the utility sub-routines in the core operations + address point B from #246

Breaking Changes

In hash_to_scalar removed the counter
In create_generators step 3, changed I2OSP(i, 4) to I2OSP(i, 8)

("1." is because I removed the checks for 0 and "2."  is to align the max number of messages with the max number of generators)

Ready for merge, subject to resolving the conflicts.


[PDI-19290]- Added Validation checks for "Nr. of packets to send"

Added validation for nr. of packets to send .
In UI,Entering Any non-numeric value (and negative integers)
will show a message asking user to enter numeric values or positive numbers.
Incase, if a kjb/ktr already has non-numeric value (and negative integers) ,value will be replaced with
2 during runtime and user will be notified about this replacement in logs.

:white_check_mark: Build finished in 31m 59s
Build command:
mvn clean verify -B -e -Daudit -amd -pl engine,ui

:ok_hand: All tests passed!
Tests run: 2243, Failures: 0, Skipped: 4    Test Results

:information_source:  This is an automatic message


Partials feedback

Just playing around with Partials and forms.  Some feedback:
In the optimising partial requests documentation it shows:

From my experiments, I believe this file location should be routes/partials/docs/[id].tsx.
With regards to form usage I ran into several problems:

In order to support deep linking for forms and load a specific snapshot of my search, I rely on the onSubmit event to update the URL search parms with the values of all the form fields.  However, the f-partial form submission isn't triggering this event.
The partial fetch is a GET request, meaning no form data is sent.  I could in theory add all form values (for my form anyway) as search parameters onto the f-partial value but this needs to be done at submission and I'm not able to hook into this event (but really, I think the fetch needs to be a POST with all form data).

I'm also trying to use a POST form submission (with onSubmit handler) to fetch a partial, so I was happy to find this issue that explains the situation perfectly, thanks!

I

Just playing around with Partials and forms. Some feedback:
In the optimising partial requests documentation it shows:

From my experiments, I believe this file location should be routes/partials/docs/[id].tsx.
With regards to form usage I ran into several problems:

In order to support deep linking for forms and load a specific snapshot of my search, I rely on the onSubmit event to update the URL search parms with the values of all the form fields.  However, the f-partial form submission isn't triggering this event.
The partial fetch is a GET request, meaning no form data is sent.  I could in theory add all form values (for my form anyway) as search parameters onto the f-partial value but this needs to be done at submission and I'm not able to hook into this event (but really, I think the fetch needs to be a POST with all form data).

I have the same use case as 1. <a> tags partial navigation is captured. Form f-partial submission navigation is not captured. The solution for progressive enhancement is exactly as you say
function handleSubmit(e: Event) {
    const form = e.target as HTMLFormElement;
    form.setAttribute("f-partial", `/products?search=${query.value}`);
    // Push a new URL to the browser history
    history.pushState(null, "", document.location.href);
    // Replace the current URL in the browser history
    history.replaceState(null, "", "/products?search=" + query.value);
  }

I think for case number 2, you have to implement the logic of a fetch request mode "POST" in the onSubmit handler. Then implement a post handler in the route you want to POST to and do ctx.render with the data. The function to render gets the info received as props and that should be wrapped with a Partial.

@SFToro Full form support for partials is coming with https://github.com/denoland/fresh/pull/1930 . I didn't manage to get it ready in time for Fresh 1.5 . It will ship with the next release.


uNet results not matching expected results

I really like this Library from the perspective of being really flexible so I can train a uNet model, or an FCN model, etc. Where it can be a single class, or multi-class.
But, I'm having difficulties matching the results I got using a much more limited uNet example that only supported single class (or 2 if you count the background) datasets.
Here is the results I got from the much more limited Unet example.

Here is the results I'm getting using this library.

I'm not a coder so my code is really just a copy/paste job of things I found while browsing the documentation for this repository, and the closed/open issues to figure out how to load the data for the model/etc.
So it's likely that I missed something.
My code
Code.zip
seg_train.py trains the model, and saves the model. It gives me some really low loss numbers on the validation data (around .02), and really high IoU numbers (.95 or so). So I'm really confused as to why the results are so bad.
seg_test.py loads the models, and does inference on a single image. I've tested seg_test.py with the uNet model I previously trained using code from a different github repository, and it seems to work fine. I initially suspected something was wrong with this code, but that doesn't seem to be the case.
The Dataset I used
https://drive.google.com/open?id=1T1i_v3ApSDPPiy4TAUmdQ4VJNXPc30jW

Hi @S4WRXTTCS
I looked quickly at your code:
First of all, you use different ways to read images:

skimage.imread
keras.preprocessing.image

Second, after resizing image can be converted from uint8 -> float32 (0..255 -> 0..1 range respectively).
Check that before using preprocessing_fn your x is uint8 data (0..255 range) both during training and during testing.
This should help you, good luck!

Thanks.
For some reason I thought I had accounted for that because the code I copy/pasted was from issue #74, and I knew that I had have account for the resize turning uint8 images into float64.  But, somehow I forgot to do that.
With that change I get results that look pretty good.

Here is the code with the change that was commented about in Issue #74, but I don't have the issue the person had with my validation dataset.  Everything seems as expected, but there still might be something wrong with it.
Code.zip


Make it more obvious that this uses TypeScript

At the very least that should be mentioned in the README and repo description. I'd also suggest appending -typescript to the repo name.
If you agree and decide to change the repo name/description, let me know and I could make a PR w/ changes to the README and package.json.

Totally agree.

I changed the repo name, and updated the readme and package.json.  Feel free to submit a PR if you want to add more detail, but I'm going to close this for now.

Great! I only saw one other place to update it and made PR #8
thanks!


CI:golangci error

Codecov Report

Merging #1733 (e3e5cc7) into main (dddb323) will increase coverage by 0.29%.
The diff coverage is n/a.

:exclamation: Current head e3e5cc7 differs from pull request most recent head b7804fa. Consider uploading reports for the commit b7804fa to get more accurate results

@@            Coverage Diff             @@
##             main    #1733      +/-   ##
==========================================
+ Coverage   61.59%   61.88%   +0.29%
==========================================
  Files         135      135
  Lines       22897    22899       +2
==========================================
+ Hits        14103    14171      +68
+ Misses       7194     7137      -57
+ Partials     1600     1591       -9

Impacted Files
Coverage Δ

pkg/meta/redis.go
73.42% <0.00%> (-0.07%)
:arrow_down:

pkg/meta/sql.go
67.23% <0.00%> (+0.20%)
:arrow_up:

pkg/meta/base.go
71.69% <0.00%> (+0.50%)
:arrow_up:

pkg/chunk/cached_store.go
80.40% <0.00%> (+2.95%)
:arrow_up:

pkg/vfs/reader.go
84.67% <0.00%> (+7.48%)
:arrow_up:

pkg/fuse/context.go
67.56% <0.00%> (+10.81%)
:arrow_up:

Continue to review full report at Codecov.

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


Proxy /metrics endpoint should support GZIP compression

According to the Prometheus documentation, metrics export endpoints should support an optional Content-Encoding: gzip header. Since there's some concern about the wire size of metrics reports (viz. https://github.com/runconduit/conduit/pull/536#discussion_r175645811), we should look into adding support for compression.

According to that discussion, "1046 lines per service that this instance communicates with. Each line is around 100 characters long so roughly in the neighborhood of 100kb per service before any type of compression." How often does Prometheus poll each pod?
If the size of the data is actually 100kb per service that is contacted, then does that mean we're storing ~100kb per service of data in memory for metrics? Do we send the response with HTTP/1.1 chunked encoding or do we buffer it in memory to calculate the Content-Length? Can we reduce the raw size of the data substantially (e.g. to 1/2 or 1/10th its current size, or more) to reduce the memory used for it? If so, I think it would be good to reduce the uncompressed size and then reconsider how useful the compression would be.

@briansmith

How often does Prometheus poll each pod?

I believe the default is every ten seconds; this is configurable.

If the size of the data is actually 100kb per service that is contacted, then does that mean we're storing ~100kb per service of data in memory for metrics?

Almost certainly not; a majority of this data is due to the very repetitive nature of the Prometheus text format. Consider, for example, a latency histogram stat, whose textual representation is something like
# HELP response_latency_ms A histogram of the total latency of a response. This is measured from when the request headers are received to when the response stream has completed.
# TYPE response_latency_ms histogram
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="1"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="2"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="3"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="4"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="5"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="10"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="20"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="30"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="40"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="50"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="100"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="200"} 1
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="300"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="400"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="500"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="1000"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="2000"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="3000"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="4000"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="5000"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="10000"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="20000"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="30000"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="40000"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="50000"} 0
response_latency_ms{authority="localhost:4140",status_code="404",direction="outbound",le="+Inf"} 0
response_latency_ms_count{authority="localhost:4140",status_code="404",direction="outbound"} 0
response_latency_ms_sum{authority="localhost:4140",status_code="404",direction="outbound"} 0

That string is 2,951 characters long --- nearly 3kb. Meanwhile, the in-memory representation of that stat is basically just the string "localhost:4140" (14 bytes), the u16 404, an array of 51 u32s, and a u64 --  about 230 bytes. Even with the added overhead of a few pointers, the in-memory representation of the stat is an order of magnitude smaller than the textual representation.
Furthermore, the repetitiveness of the text format means that we're likely to see some pretty significant impact from compression.

Seeing that, I agree that Content-encoding: deflate (with Transfer-encoding: chunked) seems like a good solution. (I don't think we should give the labels less clear names just to reduce their size, if anybody might actually use the data directly.)

I don't think we should give the labels less clear names just to reduce their size, if anybody might actually use the data directly.

I strongly agree!


Reading 10000 rows of data takes more than 3 minutes

I'm trying to read 10,000 data from the table. Drift taking almost more than 3 minutes.
drift: ^2.7.0

I'm using flutter 3.10.1 latest version
Future<List<Asset>> getAssetsList({required String siteID}) async {
final selectableQueryRow = customSelect(
    'select *, case when asset.location is not'
    ' null then (select description from locations where '
    'location = asset.location) else null end as locationdesc from '
        "asset where siteid='$siteID'");
final queryRowList = await selectableQueryRow.get();
final assetList = <Asset>[];
for (final queryRow in queryRowList) {
    final assetData = queryRow.data;
    final asset = Asset(
        assetID: assetData['assetnum'] as String,
        assetDescription: assetData['description'] as String?,
        assetLocationDescription: assetData['locationdesc'] as String?,
        assetLocationID: assetData['location'] as String,
     );
     assetList.add(asset);
 }
return assetList;
}

Did you resolve this issue? What was the problem if so?


Redirect mass.cantusdatabase.org to cantusdatabase.org

This PR redirects requests to mass.cantusdatabase.org to cantusdatabase.org:

updates config/nginx/conf.d/cantusdb.conf to include a permanent redirect on port 443
updates the certificate renewal job in cron/cron.txt to include the mass.cantusdatabase.org subdomain

Closes #1255

we just tested an analogous change on Staging, and this works. Nice!


Fixed a typo

@thebigredgeek - can you move this out to npm soon? All our builds are broken because of this.


Unexpected behavior of -output=register

My setup is:
    M.translate.setup({
        default = {
            command = "translate_shell",
            output = "floating",
            parse_before = "trim",
            parse_after = "replace_symbols",
        },
        preset = {
            output = {
                split = {
                    min_size = 8,
                },
            },
        },
        parse_after = {
            replace_symbols = {
                cmd = function(lines)
                    for index, char in ipairs(lines) do
                        if char:find("u003d") then
                            lines[index] = char:gsub("u003d", "=")
                        end
                    end
                    return lines
                end,
            },
        },
    })

I found that when using -output=register it doesn't seem to respect my settings.
Because when I use -output=split or -output=floating and other settings, newlines are well preserved.
Only when -output=replace is used, everything will be compressed into one line.

Fixed.


Curriculum update needed on text_editors.md

The Odin's file, text_editors.md is updated. Please update the Kampus' file, checkout file here text_editors.md
Latest commits:

Foundations: unify descriptions replacing WSL with WSL2 to be specific (#27130) (additions: 5, deletions: 5) on Jan 16 2024, 16:02 UTC

New commits have been made to the Odin's file. Please update the Kampus' file.
Latest commits:

Installation Lessons: Ignore lint rules regarding heading structure (#27146) (additions: 2, deletions: 0) on Jan 19 2024, 16:53 UTC

New commits have been made to the Odin's file. Please update the Kampus' file.
Latest commits:

Update text_editors.md (#27222) (additions: 2, deletions: 2) on Jan 28 2024, 17:29 UTC

New commits have been made to the Odin's file. Please update the Kampus' file.
Latest commits:

Foundations: Add notes on password usage in terminals (#27487) (additions: 14, deletions: 3) on Mar 23 2024, 22:33 UTC

New commits have been made to the Odin's file. Please update the Kampus' file.
Latest commits:

Correct grammar and improve clarity (#28153) (additions: 8, deletions: 4) on Jun 11 2024, 21:20 UTC


vendor lib/go-* for Go components

#2380 was specifically for traffic_stats, but the same issue affects other Go components:  traffic_ops, traffic_monitor, and grove.
When the build for each component is done, the top-level for that component is copied to the RPM SOURCE directory.  Then go get grabs any missing dependencies using the import paths in the source.   In the case of lib/go-*,  the master branch of apache/incubator-trafficcontrol is pulled from github.
It should instead be using the lib/go-* directory from the user's workspace.  traffic_stats does this using a symbolic link in the vendor directory and cp -L ... in the traffic_stats.spec file.
The same strategy needs to be used for the remaining Go components unless someone can come up with a better method...

turns out I was mistaken -- some testing by introducing a syntax error in my local lib/go-log showed it was picking up the correct lib for all 3..    Closing.


Support for shared formulae

Hi,
From trying to read a file and from looking through the code, it doesn't look like exceljs supports shared formulae:
     <c r="AE11" s="5">
        <f t="shared" ref="AE11:AE13" si="25">S11-S$10</f>
        <v>2.1</v>
      </c>

[...]
      <c r="AE12" s="5">
        <f t="shared" si="25"/>
        <v>10.2</v>
      </c>

Is anyone working on this? If not, I'd be happy to give it a go. Before sifting through the code, maybe you could point me into the right files to add the parsing?
Thanks,
Gaberoo

@gaberoo I had exactly the same need and I started working on it. It's just a workaround at this moment. The idea is to copy the f tag attributes upon reading and to write them again upon writing.
If you wanna check it out: https://github.com/alessandroniciforo/exceljs/commit/a9cdb5c1bbe710ad2dec15779bd69b0e6f5c0300

Hi @alessandroniciforo, thanks for getting back to me! Hmm... in my case I will need to parse the formula to find what cells it references. But I'll have a look at your modifications. Hopefully it'll point me in the right direction. Thanks!


Feature/safety box padding issue

There was an issue with the safety man. When a small amount of text the box wouldnt be big enough to show the entire image. His feet were cut off. I think ive fixed this with min-height

Looks good. Can you run gulp vf-css and commit the changes to styles.css?

Great. One more ask, in this file: https://github.com/embl-communications/science-in-school/blob/main/wp-content/themes/vf-wp-sis/style.css
Can you also update the beta version at:
Version:       1.0.0-beta.11

If you make this beta.12, it will append that version to the CSS request, helping ensure users get the latest CSS.
<link rel='stylesheet' id='child-style-css'  href='https://www.scienceinschool.org/wp-content/themes/vf-wp-sis/style.css?ver=1.0.0-beta.11' type='text/css' media='all' />

Hope that makes sense?


scale-resolutions options need more detail

The options do not describe what they do. Maybe they shouldn't exist and you should choose a default like SwitchResX does?
This is discussed at https://www.insanelymac.com/forum/topic/335018-hackintool-v3xx/?do=findComment&comment=2787571

Hey @joevt  happy to take any pull requests


WithSecure quarantined ollama_llama_server.exe as harmful file / Malware

What is the issue?
After updating Ollama to version 0.1.33 WithSecure Elements identified ollama_llama_server.exe as a harmful file and put it in quarantine. It classified it as "Category: Malware and Type: Exploit".
It's about ollama_llama_server.exe in the \ollama_runners\cpu_avx folder. The executables in the other ollama_runners folders are unaffected.
I assume it's a false positive. However, a solution is highly appreciated.
OS
Windows
GPU
AMD
CPU
AMD
Ollama version
0.1.33

Sorry you hit this.  I've submitted our binaries to WithSecure's false positive form.  I didn't see a mention of their turn-around time, but most AV vendors are a few days I believe.  If you're still seeing false positives by next week, please let us know.

Thank you for your quick response. I will get back to you next week if I keep seeing false positives.

Hello fyi i ran in similar flagging by WithSecure today morning.
7 mai 2024 09:59:48 UTC
Exploit:W32/CVE-2020-0601.I|Quarantined|On_access_scanner.file_infection.quarantine|...Ollama\ollama_runners\cpu_avx\ollama_llama_server.exe
OS : windows

@americium241 since I've already uploaded the binaries to WithSecure for false positive resolution, I'm not sure me submitting them again will help.  Since you have a business relationship with the company, can you try to submit them as well to see if that does the trick?
If I had to guess why this happened, there are malicious actors using Go to build malware, so we've seen various AV vendors trigger false positives as a result since we're also written in Go.

@dhiltgen I‘ve submitted the file in question (ollama_llama_server.exe from the cpu_avx folder) to WithSecure via their built in reporting form on May 3rd.

@sjdevcode has the false positive gone away or does WithSecure still flag Ollama?

@dhiltgen I've run the installation process today and no false positive showed up for me.


Model.all(:relation.not => nil) vs. Model.all('relation.id.not' => nil)

I noticed an implementation difference between comparing a relation to nil and using a String query-path to the relation.
Model.all(:relation.not => nil): results in two queries, one on the relationship's table and another on the Model's table using WHERE id IN (....). This implementation does not scale on large datasets, as all of the relationship IDs have to be returned, in order to build the second query.
Model.all('relation.id.not' => nil): results in one query, which uses an INNER JOIN to select all Models with accompanying relationships.

Unfortunately both syntax is handled in a different way. It's not specific to this case. I'm not sure if anybody will have enough motivation to fix this in DM1. @dkubb? @emmanuel? :)


examples with yarn2

Describe the feature you'd like to request
Looks like yarn2 ( now yarn 3 ) is supported
https://github.com/vercel/turborepo/issues/1017
But I am not sure how to change to yarn3.
Should I do it on root folder only or on each packages and apps? Cuz, yarn3 creates .yarn folder in them
Describe the solution you'd like
it would be nice to have 1 example with yarn3, if it is suppported.
Describe alternatives you've considered
not sure

yarn set version 3.x

from the projects root folder.

thank you.


Typo device_config => deviceConfig

k4a_device_configuration_t deviceConfig = K4A_DEVICE_CONFIG_INIT_DISABLE_ALL;
k4a_device_get_calibration(device, device_config.depth_mode, K4A_COLOR_RESOLUTION_OFF, &sensor_calibration);

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

ID: 50f08064-28da-6415-1e57-858760b31c64
Version Independent ID: ff491440-06d2-b9a0-12d0-deb3d1a68b6c
Content: Quickstart - Build your first Azure Kinect body tracking application
Content Source: articles/kinect-dk/build-first-body-app.md
Product: kinect-dk
GitHub Login: @qm13
Microsoft Alias: quentinm

@Shri-Humrudha Thank you for your feedback. We will investigate and update the thread further.

@Potapy4 Thanks for your contribution!


rollup: implement sequencing-window based derivation

This updates the block-derivation to:

Take a sequencing window as input
Check the size and consistency of the input
Derive L2 payloads from possibly out-of-order batches (ignore past/future epochs with overlapping sequencing window)
Build L2 blocks with fixed block time (fill gaps with empty blocks)
Limit L2 sequencer-produced blocks to a time-window, do not fill ridiculous out-of-window gaps with empty L2 blocks (by accident or not)
Force deposits of the epoch (first L1 block of window) into the batch of the first L2 time slot (created if none exists)

This is a work in progress. this is output from discussion with Karl/Norswap about the many options.
TODOs (may split into more PRs):

Spec for sequencing window, and outline why this seems to work best.
Load new rollup configuration (block time and special addresses etc.)
Update L1 downloader to fetch receipts lazily, and cache the block data (repeated usage due to overlapping sequencing windows).
Implement batch encoding/parsing

For my own understanding, an overview or brief spec would be great.
If I'm reading it correctly, the batch submitter is separately submitting batches and this component is still only reading L1 data and then driving L2. I guess it's a little out of scope, but I'm super curious to see how sequenced (but not batched) transactions are handled.

Summary of the derivation deisgn:

no more separation between deposit blocks and sequencer blocks

but the first block of each epoch has the deposit transactions from the L1 block  associated with the epoch

epoch numbers are equal to the L1 block number that has the deposit
the sequencer is free to pick the L2 block timestamp (expected to be the wallclock time when the block is "mined")

constraint: block timestamps are multiple of the block time (probably 2s)
constraint: successive blocks must have timestamps two second apart

if no batches for the epoch associated with an L1 block are made within the sequencing window, then the rollup driver automatically derives blocks

it will give the first block of the epoch a timestamp that is newL2Timestamp = max(blockTimeRounded(l1Timestamp), lastL2Timestamp + blockTime)
it will fill in the missing time period (between lastL2Timestamp and newL2Timestamp) with empty blocks


mkpr package.json [{"op":"test","path":"/devDependencies/npm-pkgbuild","value":"^6.4.1"},{"op":"replace","path":"/devDependencies/npm-pkgbuild","value":"^6.4.3"}]

Pull Request Test Coverage Report for Build 1606

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 99.399%

Totals

Change from base Build 1603:
0.0%

Covered Lines:
301

Relevant Lines:
302

💛  - Coveralls


ToC doesn't show the child sections correctly

Is this a BUG REPORT or FEATURE REQUEST?:
bug
What happened:
When there are more than 2 first-level sections (single #), the next one would get recognized as a child of the last section.
What you expected to happen:
A first-level header not shown as a child of another first-level header.
How to reproduce it (as minimally and precisely as possible):
I faced the issue in this file
Anything else we need to know?:
Here's an example if I'm not clear enough, the red ones only have one #:

Environment:

Syna Theme version:  0.15.0
Hugo version:  Hugo Static Site Generator v0.55.0-4333CC77F/extended linux/amd64 BuildDate: 2019-04-08T17:05:23Z
Others:

This might be the first organic cross project issue. Awesome :)


[BUG] Standardize advantage twice in on-policy buffer and vector-on-policy buffer

Required prerequisites

[X] I have read the documentation https://omnisafe.readthedocs.io.
[X] I have searched the Issue Tracker and Discussions that this hasn't already been reported. (+1 or comment there if it has.)
[X] Consider asking first in a Discussion.

What version of OmniSafe are you using?
0.1.1
System information
No need
Problem description
I found that the advantage will be standardized twice in the on-policy buffer and vector-on-policy buffer. I believe this is a bug.
See below:
    def get(self) -> Dict[str, torch.Tensor]:
        """Get the data in the buffer."""
        self.ptr, self.path_start_idx = 0, 0

        data = {
            'obs': self.data['obs'],
            'act': self.data['act'],
            'target_value_r': self.data['target_value_r'],
            'adv_r': self.data['adv_r'],
            'logp': self.data['logp'],
            'discounted_ret': self.data['discounted_ret'],
            'adv_c': self.data['adv_c'],
            'target_value_c': self.data['target_value_c'],
        }

        # self.data['adv_r'] = torch.zeros_like(self.data['adv_r'])
        # self.data['adv_c'] = torch.zeros_like(self.data['adv_c'])

        adv_mean, adv_std, *_ = distributed.dist_statistics_scalar(data['adv_r'])
        cadv_mean, *_ = distributed.dist_statistics_scalar(data['adv_c'])
        if self._standardized_adv_r:
            data['adv_r'] = (data['adv_r'] - adv_mean) / (adv_std + 1e-8)
        if self._standardized_adv_c:
            data['adv_c'] = data['adv_c'] - cadv_mean

        return data

    def get(self) -> Dict[str, torch.Tensor]:
        """Get the data from the buffer."""
        data_pre = {k: [v] for k, v in self.buffers[0].get().items()}
        for buffer in self.buffers[1:]:
            for k, v in buffer.get().items():
                data_pre[k].append(v)
        data = {k: torch.cat(v, dim=0) for k, v in data_pre.items()}

        adv_mean, adv_std, *_ = distributed.dist_statistics_scalar(data['adv_r'])
        cadv_mean, *_ = distributed.dist_statistics_scalar(data['adv_c'])
        if self._standardized_adv_r:
            data['adv_r'] = (data['adv_r'] - adv_mean) / (adv_std + 1e-8)
        if self._standardized_adv_c:
            data['adv_c'] = data['adv_c'] - cadv_mean

        return data

Reproducible example code
The Python snippets:

Command lines:

Extra dependencies:

Steps to reproduce:

Traceback
No response
Expected behavior
No response
Additional context
No response

Thanks for your question!

The current vector buffer is somewhat misleading. In fact, when creating OnPolicyBufffer, we specified standardized_adv_r=False and standardized_adv_c=False. So only one normalization operation will be performed in the vector buffer. Thanks for your question, we will improve the readability of the code in subsequent versions to avoid similar misunderstandings. You are welcome to keep in touch with us during the subsequent usage.


PLPGSQL - Using record fields

Hi,
Can't attribute values to record fields:
CREATE FUNCTION test(str character varying) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
  v3 RECORD;
  v4 integer;
BEGIN
  select 1 as c1, 2 as c2 into v3;
  v3.c1 := 4;
END;$$;

Error:
ERROR: "v3.c1" is not a known variable
CONTEXT: compilation of PL/pgSQL function "test" near line 7
LOCATION: cword_is_not_variable, pl_gram.y:2534

But postgresql accepts this syntax.
Great library by the way, keep up the good work.
Rafael.

The same happens when declaring variables with ROWTYPE from existing table. It obviously throws error because the table does not exist in the parser context. Is there a way to overcome this?
DECLARE
      myrow my_table%ROWTYPE;

ERROR: "my_table" is not a known variable

Hi @rafaelthca - thanks for reaching out about this!
You are indeed correct that this doesn't work - the PL/pgSQL parser is a bit of work in progress, since it doesn't setup variables and return values correctly (yet).
See https://github.com/lfittl/libpg_query/blob/9.5-latest/src/pg_query_parse_plpgsql.c#L80 which is inspired by https://github.com/postgres/postgres/blob/REL_10_STABLE/src/pl/plpgsql/src/pl_comp.c#L794
If you have time to work on this help would be very welcome :)

Fixed in https://github.com/pganalyze/libpg_query/commit/e9e4ba9ffcbac02bce6656ecabd22c2b54eca1b2


Resetting dynamic lists with empty arrays

Reproduction
https://formkit.link/bedd635f631efb22795c7c3f69d0a744
Describe the bug
I use a dynamic list to keep track of an unkown numbers of objects. Whenever I reset the list to an empty list under the hood Formkit creates an array that is filled with the same number of null as long as the previous list was before the reset, instead of giving me an empty array.
Environment
Windows 10 Pro
Microsoft Edge v111.0.1661.54

I guess that problem is due to there are values in list before mount, which casued the core of formkit create two input node.
The another problem is reset, If just reset by set the list.value to [], I guess the <form-kit type='text'> still haven't update before the <form-kit type='type'>  updated. It cause the formkit core re-create the value with null for those <form-kit type='text'> in node list.
I had refined the javascript code by add values after mouned and reset list value by set list.length = 0 to temporary solve the problem.
https://formkit.link/06ebccd48c24feec9d5655bb7a86a786

Well @mathsgod is kinda right in that when you change the array of values the nodes aren't being deleted at the correct time, so it removes the values, but not the nodes.
I would say that you should iterate over a list of items, not a the list of values, let FormKit take care of the reactive state of the form instead.
https://formkit.link/ae396eb07d90d5ca27a14ebf66eeceb1

Let's complicate the issue a bit more. If the user wants to delete an element from the array, then, the deletion will be replaced with  a null value.
https://formkit.link/22cdd25e80a1c1e38e38fae1460c60f5

Let's complicate the issue a bit more. If the user wants to delete an element from the array, then, the deletion will be replaced with a null value. https://formkit.link/22cdd25e80a1c1e38e38fae1460c60f5

Like I said in the previous answer, try no to iterate over values of the list, but iterator over a list itself like so https://formkit.link/86704a4a1e3821c8b5a014097eca5e66

@GustavoFenilli Try adding and deleting emails in your solution!

FormKit is very useful but I also have problem with lists.
I have form for an invoice with many fields, and also with lines field - an array of objects.
When I try to delete a row, I get Uncaught (in promise) Error: Cannot set 3 to non object value: undefined error.
I'm using v-model on form because I need to update values in some cases (changing country changes currency etc).
When I try to use :value on form, I can't update form's values.
I also can't watch forms state (watch(formRef.value.node.value, () => callback()) is not working).
Maybe I'm missing something?
Simplified example here:
https://formkit.link/ab4872368e04222d7346b2ed2b699db3

Well for your case you're setting the items with lines as name inside the form, and that is being passed to the list called lines as values, so in the end you end up iterating over list values, and that causes some problems.
I would change your logic from using v-model for the model to using events/hooks for changing values instead, and make the v-model only for creating the iteration part of the list ( can create a component to make that easier to deal with ).

There is now first-party support for dynamic lists. You can read about them here: https://formkit.com/inputs/list


Add support for alternatives (/)

Could you add support for alternatives (/)?
According to cucumber/cucumber-expressions:

Alternative text
Sometimes you want to relax your language, to make it flow better. For example:
I have {int} cucumber(s) in my belly/stomach

This would match either of those texts:
I have 1 cucumber in my belly
I have 1 cucumber in my stomach
I have 42 cucumbers in my stomach
I have 42 cucumbers in my belly

Alternative text only works when there is no whitespace between the alternative parts.

My bad I had misunderstood the docs, I thought I could use / in feature files…


Support biblatex field ids for citekey aliases

The biblatex manual defines field "ids" as comma separated list of citation key aliases for the main citation key. pandoc-citeproc seems to just ignore this field. Instead it should allow to use alias ids for citation:
@book{foo,
  author = {Alice},
  year = {2042},
  ids = {bar, doz}
}

Then reference book foo in Markdown:
@bar

Only way to do this would be to create several
references that are identical except for the id.
We could do that, though.

Only way to do this would be to create several references that are identical except for the id.

I’m afraid this won’t work without further modifications. As it is, pandoc-citeproc creates two reference section entries in such cases, and disambiguates these. I’m not sure whether there are other workable solutions: Checking whether biblio database entries are identical (except for the citekey) would of course work in principle, but I have no idea what that would mean performance-wise. Other solutions might be to allow a field called other-ids or similar. (Arguably, this wouldn’t even infract upon the CSL specs, since the commonly used id field isn’t defined there either …)
(The reason I’m interested: zotxt allows users to define additional citekeys for an entry by adding these to a tag or a note – but if more than one citekey per entry is used in a pandoc document, the entry is duplicated in the references section as well. An easy workaround is to avoid using different citekeys for the same entry, but a more foolproof approach, if possible at all, would of course be welcome.)
MWE:
pandoc -s -F pandoc-citeproc -t plain << EOT

Snow is white [@item1, 1]. Water is wet [@item2, 2].

# References {-}

---
references:
- id: item1
  type: book
  author:
  - family: Doe
    given: Jane
  issued:
    - year: 2018
  title: A title
- id: item2
  type: book
  author:
  - family: Doe
    given: Jane
  issued:
    - year: 2018
  title: A title
...
EOT

Actual output:
Snow is white (Doe 2018a, 1). Water is wet (Doe 2018b, 2).

REFERENCES

Doe, Jane. 2018a. _A Title_.

———. 2018b. _A Title_.

Expected:
Snow is white (Doe 2018, 1). Water is wet (Doe 2018, 2).

REFERENCES

Doe, Jane. 2018. _A Title_.

Yes, actually, I think we could introduce an other-ids field.
This would require:

changes in References module to add the field
changes in the Bibtex parser to populate the field
change getReference in References to also check the other ids

Not sure if that would suffice by itself, but it would be a start.


Tag content with facet values

https://trello.com/c/ws1zcCKX/286-update-facet-values-for-a-content-item

This PR appends an additional Facets tagging select2 input which allows facet values to be updated for a content item.
At present there's only one facet group defined in the Publishing API hence the hard-wiring to this specific group until we've iterated the UI to tag within the context of multiple facet groups.
This feature means we can opt to update specific content item facet_values links in content tagger similar to topics and related links. The aim being to ultimately replace the current metadata tagging process in Rummager.

I think this PR is missing the case where a previously untagged content item is tagged, though this would add facet_values links it would not add the appropriate facet group link.

Closing, this approach works but we need to factor in pinning and using different facet groups so we're going to work on facet value tagging in a bespoke tagging view.


acknowledgment, tweaking idea

hi,
been playing with the acknowledgment recently build into cabot.
awesome work by the way :)
i think it would be neat to have the ack stat in the services page, so we can ack or re-enable alert a bit easier :)
as well as the possibility to choose duration of the acknowledgment in the config file :)
ready to contribute if needed

Do you mean on the main dashboard? That would be very easy, just add a link (see https://github.com/arachnys/cabot/blob/fc33c9859a6c249f8821c88eb8506ebcad645a50/cabot/templates/cabotapp/service_detail.html#L20)
You can already set duration in the config file - see https://github.com/arachnys/cabot/blob/45449861503fdfc3a8dee04180803a3c057c505a/cabot/cabot_config.py#L30

dashboard updated :)


Smart json updates

Current formats for performing updates to the fields 'properties' and 'required' in the json schema are done in the current way
        for name, data_interface in self.data_interface_objects.items():
            this_schema = data_interface.get_metadata_schema()
            metadata_schema['properties'].update({name: this_schema['properties']})
            for field in this_schema['required']:
                metadata_schema['required'].append(field)

but a better way would be to have a merge function between two individual schemas such that the result of the merge robustly updates the appropriate field at the appropriate nesting level as well. I'll post an idea for such a function a bit later.

So I think we decided to keep the modality-specific divisions (e.g. 'Ecephys') because it allows us to easily share metadata between interfaces, e.g. sharing the starting time and sampling rate between the sorting and recording interfaces. So making a few adjustments, we'd have:
for data_interface in self.data_interface_objects.values():
    this_schema = data_interface.get_metadata_schema()
    metadata_schema['Ecephys']['properties'].update({this_schema['properties']})
    for field in this_schema['required']:
        if field not in metadata_schema['Ecephys']['required']:
            metadata_schema['required'].append(field)

it might be nice to have an API that allowed something like
for data_interface in self.data_interface_objects.values():
    this_schema = data_interface.get_metadata_schema()
    schema_obj.Ecephys.merge(this_schema)

json_schema_dict = schema_obj.to_dict()

It would also be nice to catch places in this merge where the key already exists in both dicts and the values are different.
I'm just playing around with syntax at this point. What do you all think? Not mission-critical at this point, but could be worth looking into.

For sure, that merge function is precisely the calling behavior I was thinking of. Having the schema be an instance of a general class in itself though would be even better, but yeah at that point it definitely deserves to be in its own separate repository.
I'll start working on this after I get the robustness of the Yuta converter over the entire dataset hammered out (as I check other sessions, there are even more special cases for stuff like the .clu and .res formatting that I had not seen, and break the current function versions in SpikeInterface, but are also easy fixes).

Hi guys, just found this issue now, I believe I solved it with the current PR #59

Yes, I think that will be sufficient for now

Yes, I think #59 handles most of what we need. If there are any needs that come up, we can re-open this issue


About the train.py

hello！
Thank you for your code contribution！I follow the setup instruction to run train.py , But I encountered the following problems:
$ python train.py --dataset_path CutPaste-Li/mvtec/bottle --num_class 3
Missing logger folder: tb_logs/exp1
Traceback (most recent call last):
File "train.py", line 103, in
model = CutPaste(hparams = args)
File "train.py", line 19, in init
self.model = CutPasteNet(encoder = hparams.encoder, pretrained = hparams.pretrained, dims = hparams.dims, num_class = hparams.num_class)
File "/home/lwz/CutPaste-Li/model.py", line 49, in init
super().init(encoder, pretrained, dims, num_class)
File "/home/lwz/CutPaste-Li/model.py", line 23, in init
self.out = nn.Linear(dims[-1], num_class)
File "/home/lwz/.conda/envs/cutpasteli/lib/python3.8/site-packages/torch/nn/modules/linear.py", line 85, in init
self.weight = Parameter(torch.empty((out_features, in_features), **factory_kwargs))
TypeError: empty() received an invalid combination of arguments - got (tuple, dtype=NoneType, device=NoneType), but expected one of:

(tuple of ints size, *, tuple of names names, torch.memory_format memory_format, torch.dtype dtype, torch.layout layout, torch.device device, bool pin_memory, bool requires_grad)
(tuple of ints size, *, torch.memory_format memory_format, Tensor out, torch.dtype dtype, torch.layout layout, torch.device device, bool pin_memory, bool requires_grad)

I am really confused about that, could you please give me some advice?
Is this a problem with the installation package version？

Hi @EricLee0224 ,  if you didn't change the structure of the mvtec dataset, you should change your path like this CutPaste-Li/mvtec/bottle/train

hello！ Thank you for your code contribution！I follow the setup instruction to run train.py , But I encountered the following problems:
$ python train.py --dataset_path CutPaste-Li/mvtec/bottle --num_class 3
Missing logger folder: tb_logs/exp1 Traceback (most recent call last): File "train.py", line 103, in model = CutPaste(hparams = args) File "train.py", line 19, in init self.model = CutPasteNet(encoder = hparams.encoder, pretrained = hparams.pretrained, dims = hparams.dims, num_class = hparams.num_class) File "/home/lwz/CutPaste-Li/model.py", line 49, in init super().init(encoder, pretrained, dims, num_class) File "/home/lwz/CutPaste-Li/model.py", line 23, in init self.out = nn.Linear(dims[-1], num_class) File "/home/lwz/.conda/envs/cutpasteli/lib/python3.8/site-packages/torch/nn/modules/linear.py", line 85, in init self.weight = Parameter(torch.empty((out_features, in_features), **factory_kwargs)) TypeError: empty() received an invalid combination of arguments - got (tuple, dtype=NoneType, device=NoneType), but expected one of:

(tuple of ints size, *, tuple of names names, torch.memory_format memory_format, torch.dtype dtype, torch.layout layout, torch.device device, bool pin_memory, bool requires_grad)
(tuple of ints size, *, torch.memory_format memory_format, Tensor out, torch.dtype dtype, torch.layout layout, torch.device device, bool pin_memory, bool requires_grad)

I am really confused about that, could you please give me some advice? Is this a problem with the installation package version？
Have you solved the problem yet? Can you give me some advice?

您好！ 感谢您的代码贡献！我按照设置说明运行 train.py ，但遇到以下问题：
$ python train.py --dataset_path CutPaste-Li/mvtec/bottle --num_class 3
缺少记录器文件夹：tb_logs/exp1 Traceback（最近一次调用最后）： 文件“train.py”，第 103 行，在 模型 = CutPaste（hparams = args） 文件“train.py”，第 19 行，在init self.model = CutPasteNet(encoder = hparams.encoder, pretrained = hparams.pretrained, dims = hparams.dims, num_class = hparams.num_class) 文件“/home/lwz/CutPaste-Li/model.py”，第 49 行，在init super() . init (encoder, pretrained, dims, num_class) File "/home/lwz/CutPaste-Li/model.py", line 23, init self.out = nn.Linear(dims[-1], num_class) File "/ home/lwz/.conda/envs/cutpasteli/lib/python3.8/site-packages/torch/nn/modules/linear.py”，第 85 行，**** self.weight = Parameter(torch.empty((out_features, in_features), **factory_kwargs)) TypeError: empty() 收到无效的参数组合 - 得到（元组，dtype=NoneType，device=NoneType），但预期其中之一：

（整数元组大小，*，名称元组名称，torch.memory_format memory_format，torch.dtype dtype，torch.layout 布局，torch.device 设备，bool pin_memory，bool requires_grad）
（整数大小的元组，*，torch.memory_format memory_format，Tensor out，torch.dtype dtype，torch.layout 布局，torch.device 设备，bool pin_memory，bool requires_grad）

我真的很困惑，你能给我一些建议吗？ 这是安装包版本的问题吗？
I have the same problem with you. Have you solved it?


Task: enable openplugin and api to use root_url

Chat
IMPORTANT: since OpenPlugin is developed according to "ChatGPT Driven Development", (unless you are doing cutting edge work or a simple edit every development should at least be templated by ChatGPT and at best be created completely by ChatGPT) please share your ChatGPT chat that was used to complete this task here.
Description
Enable openplugincore and api to use root_url
Tasks
These tasks are set up to be used as part of the ChatGPT prompts along with any additional context required. They don't need to be strictly followed but it is encouraged to use them as a guide.

[x] Knowing the source code of OpenPlugin enable OpenPluginMemo to take in root_url
[x] Knowing the source code of OpenPluginMemo enable /plugin endpoint to receive a openplugin_root_url

#29


Bugs, normalization and add-ons

Looks good, however it looks like you're pushing a new folder images to the root directory of the gh-pages branch instead of to your ArtPie folder. If you can fix that, we can accept the PR!

Thanks for the catch! The images folder has been removed from the root directory.


Use ROS drive to recieve line measurements

User story

As a SD
I want / need to use the provided package
So that we can recieve the line measurements in ROS

https://github.com/SICKAG/sick_lidar_localization
Acceptance criteria

Recieve line measurements in ROS

Definition of done (DoD)

Added only after week 5
The same for all features
Here goes the project specific part

DoD general criteria

Feature has been fully implemented
Feature has been merged into the mainline
All acceptance criteria were met
Product owner approved features
All tests are passing
Developers agreed to release

The LiDAR-LOC software has a virtual track sensor. The signals of the virtual track sensor are sent out via UDP. With the ROS driver for LiDAR-LOC the UDP packets can be received and published as ROS Topic. The ROS driver is already unpacked and compiled on the PC in the ROS Workspace.  With the following instructions the driver can be started https://github.com/SICKAG/sick_lidar_localization/blob/master/README.md#run-sick_lidar_localization
What still has to be done is

Configure the virtual sensor in LiDAR-LOC (#22)
Adjust the parameters of the ROS driver (if necessary) to receive the UDP packet
Start the driver and test if the virtual track sensor signals arrive.


Better Aspect Fill

Currently, VLCVideoPlayer.Event.aspectFill animation is manually controlled.
Replace to be more customizable by removing the manual animation and replace with:
enum Event {
    /// Aspect fill given the percentage between 0...1.0
    case aspectFill(Float)
}

This would set the aspect fill state to a certain progress. This would allow gestures to set the aspect fill based on its percentage completed and the send event can be surrounded by an animation for animations.

https://github.com/LePips/VLCUI/commit/71fcc74964882ca790a8bff9507a91ba0970ce5b


Slice buffer reallocate design::PR08::New slice buffer reallocate design

--clean unneed code
--New flag for slice buffer/slice bs buffer
--New slice buffer reallocate design and update UT cases
code review:
1796
1797

run_NasmCheck.sh is deleted, why?

run_NasmCheck.sh is add in previous commit which for temp test, forgot to remove it. so here remove it from repos


[slider/priceRange]: Allow changing the values using text inputs

Would be great to have an option that enables the display of two inputs above / under the slider and that enable the user to manually set the wanted values.
I can see various reasons why I can be useful:

In the case there are a lot of possible values, it might be tricky to set the slider to the exact value.
On mobile, because screens are smaller, but also touch interactions not as precise as mouse, its often easier to set a value using the keyboard.

What do you think do?

:+1: for the overall idea.
Could you give more details on the API you can think of to match this? Also can you describe more the mobile part (shall we continue to display the slide, desactivate it...)?

See #1069


Mapping a function over entire JSON

Hi,
I'm wondering if it's possible/already implemented to map a function to every leaf element of a JSON. For example, given a simple JSON like this:
{
"dict1": {
    "nest1": {
      "string": "a string",
      "int": 3
    },
    "nest2": {
      "string": "another string",
      "int": 4
    }
  }
}

Is it possible with map() or something similar to change, for example, every string by, say, appending "_processed" to it or adding 1 to every integer found?
Of course the given JSON is just an example, in this case I could directly access ("dict1", "nest1", "string") and so on to change the values, I'm interested in a general approach to this problem.
Thanks!

Freddy doesn't currently have support for modifying a JSON value in-place - its main focus is going in between JSON and model types.
You could write something that took a JSON and applied the transformations you described by recursively walking through the entire document:
extension JSON {
    // add 1 to integers and append "_processed" to non-key strings
    func myModifier() -> JSON {
        switch self {
        case let .Array(values):
            return .Array(values.map { $0.myModifier() })
        case let .Dictionary(d):
            var newDict: [Swift.String : JSON] = Swift.Dictionary(minimumCapacity: d.count)
            for (k, v) in d {
                newDict[k] = v.myModifier()
            }
            return .Dictionary(newDict)
        case let .Int(x):
            return .Int(x + 1)
        case let .String(s):
            return .String(s + "_processed")
        case .Double, .Bool, .Null:
            return self
        }
    }
}

Of course this could be generalized to apply other transformations without hardcoding these particular ones.

Yes, I imagined that the framework was more model oriented and I had already coded a solution similar to the one you posted, even though the solution involving the JSON extension is way more elegant than mine. I was just wondering if there were a more 'swiftly' solution to this, maybe using something functional like map() or filter() but I think I can live with this :)
Anyway, thanks for your time and help!


Client side of Inlay Hint support

This is the VSCode-side of inlay hint support, the backend is provided at https://github.com/fsharp/FsAutoComplete/pull/907.
There's nothing really special from the VSCode side of things, all the interesting work is on the backend.
Here's a snippet of what it looks like from my local debug version of the editor (which has bad coloring, I know):

I've added config toggles for enabling the feature overall, as well as type annotations and method parameters specifically. I'll have to do a PR to the ionide docs to sync this up, but they show up in the VS Code settings UI nicely.


Can we get the physical path of the uploaded file?

I need the physical path of the uploaded file as I don't want to send File Object Array form one page to another. Can you please help me?

If the file is selected through browsers popup or dropped it is not possible for security reasons.

Could you explain the security reasons?  We need the file name to pass on to a parser.  Thanks.

You can get the file name by file.name but not the physical path on the device.

aha - sorry should have sorted that. Thanks.


Content Type missing from Command Set selected rows

Category

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

Expected or Desired Behavior
The method call getSelectedValueByName("ContentType") should return a string value of the content type.
Observed Behavior
This value is missing from the mapped values.
Steps to Reproduce
Env: SPO and SR Tenant

Generate a new Command Set extension
Attempt to use item.getSelectedValueByName("ContentType")
Observe that no value is returned

I believe only the fields that are present in the view are available in the API. Do you have the ContentType field in the view?

I believe only the fields that are present in the view are available in the API. Do you have the ContentType field in the view?

Hi @andrewconnell I don't think that's right. This is true for custom fields but not for certain OOTB columns. It's also the case that a required custom column will always be present in the API also.
We have had code dependent on this behaviour for a few months in SR now. We have now had to use the OOTB column 'FSObjType' which is also not on the view.
Also ContentType was coming through as the ContentType/Name value via the API. I'm not sure if I can even add that field to the view as I believe I can only use ContentTypeId.
Regardless, this was working in SR and is still working in TR.

Hi @CPritch.
Sorry for really long delay...
You can get ContentTypeId from selected rows and get the Content Type object or name based on it.
There are no plans to expose ContentType in these events as this will lead to reduced performance on the page.


Security issue in dependencies

serve-static Open Redirect 1.5.3
CVE-2015-1164
**Credit: **Pierre-Élie Fauché
**Vulnerable: **<1.6.5 || >=1.7.0 <1.7.2
Patched: ~1.6.5 || >=1.7.2
https://nodesecurity.io/advisories/serve-static-open-redirect
Shall we upgrade serve-static to 1.6.5 or something?
Because there is no ci or unit test, I'm afraid that upgrading dependencies will brake the functions.

Speaking of CI or unit test, #729 contains the necessary code to setup Travis for building.
I did not get any feedback, but will be pleased to know if it works for you.
I did not get around to unit testing, since these days I am developing specific functionality for Stackedit.
Good to see the patch, I could not think it would break stackedit, but you probably want @benweet to confirm that.

In fact, without unit test, travis-ci can not help anything. BTW @jesperronn, there are many spaces changes and commits in that PR, which are not really meaningful, I can only see you added .travis.yml and updated part of developer-guide.md, I'll respectfully suggest you to remove that spaces changes and just squash your commits into two parts - add .travis.yml and update developer-guide.md, it'll be clean and clear, easier to trace, audit and review.


make travis with latest dev code.

1, Enable HTTPs in travis.
2, Add make in travis.
3, Update clarity image to support new UI build and compile.

Coverage decreased (-21.9%) to 29.811% when pulling 31b813a7c1d0104797ac64182ea01fa81b35377d on wy65701436:dev-new-ui into 6c337bbee1d8227365605703e11b1ad823725e6a on vmware:dev-new-ui.

Coverage decreased (-21.9%) to 29.811% when pulling 2c7beee188617c47f7d13993991b04f34cc6d4ec on wy65701436:dev-new-ui into 6c337bbee1d8227365605703e11b1ad823725e6a on vmware:dev-new-ui.

Coverage decreased (-21.9%) to 29.811% when pulling ec466cbbb31b837662ad37e62de9699477c160db on wy65701436:dev-new-ui into 6c337bbee1d8227365605703e11b1ad823725e6a on vmware:dev-new-ui.

Coverage decreased (-21.9%) to 29.811% when pulling 9d1085c99f1bccb6b38bdd5e3e2632c6886189ba on wy65701436:dev-new-ui into 6c337bbee1d8227365605703e11b1ad823725e6a on vmware:dev-new-ui.

Coverage decreased (-21.9%) to 29.811% when pulling 799ae0ff11119a5962b79450549fa930b0fb85c5 on wy65701436:dev-new-ui into 6c337bbee1d8227365605703e11b1ad823725e6a on vmware:dev-new-ui.

Coverage decreased (-21.9%) to 29.811% when pulling 61c32005c043bb610d6fa8c3e11ab8cf9ce8c3e9 on wy65701436:dev-new-ui into 6c337bbee1d8227365605703e11b1ad823725e6a on vmware:dev-new-ui.

Coverage increased (+0.05%) to 51.752% when pulling 61c32005c043bb610d6fa8c3e11ab8cf9ce8c3e9 on wy65701436:dev-new-ui into 6c337bbee1d8227365605703e11b1ad823725e6a on vmware:dev-new-ui.

@wknet123 please help to modify the test for controllers. See the errors inline.
github.com/vmware/harbor/src/ui/controllers
src/ui/controllers/controllers_test.go:53: undefined: OptionalMenuController
src/ui/controllers/controllers_test.go:54: undefined: NavigationHeaderController
src/ui/controllers/controllers_test.go:55: undefined: NavigationDetailController
src/ui/controllers/controllers_test.go:56: undefined: SignInController
FAIL	github.com/vmware/harbor/src/ui/controllers [build failed]

Coverage remained the same at 51.704% when pulling 34184ec5d8ffa62f69e0d0033709e4ab799a1edc on wy65701436:dev-new-ui into 6c337bbee1d8227365605703e11b1ad823725e6a on vmware:dev-new-ui.

Coverage increased (+0.05%) to 51.752% when pulling 0eae836301980cfddf42aa5c93a070a6743be9cf on wy65701436:dev-new-ui into 6c337bbee1d8227365605703e11b1ad823725e6a on vmware:dev-new-ui.

Coverage increased (+0.05%) to 51.752% when pulling 864245084adf07a10333e0a651c8b02d374f334a on wy65701436:dev-new-ui into 6c337bbee1d8227365605703e11b1ad823725e6a on vmware:dev-new-ui.

Coverage remained the same at 51.704% when pulling 5143265bd0fbae3958dfd79b9b0273b7487e0a7f on wy65701436:dev-new-ui into 6c337bbee1d8227365605703e11b1ad823725e6a on vmware:dev-new-ui.

Coverage increased (+2.9%) to 54.555% when pulling a1e44a50a6328eb15677a010080df3f123d6e291 on wy65701436:dev-new-ui into 6c337bbee1d8227365605703e11b1ad823725e6a on vmware:dev-new-ui.

Coverage increased (+2.9%) to 54.555% when pulling b5da56d6fe4754d5647dd9e3120492132402b058 on wy65701436:dev-new-ui into 6c337bbee1d8227365605703e11b1ad823725e6a on vmware:dev-new-ui.


404 error reported on inter-UI fonts.

On loading the website both locally and through the link,both the console and the terminal reports a 404 error on a couple of fonts.
the exact errors are listed on the screenshots below.
terminal:

browser console:

#929

Good

@co16353sidak thanks for reporting this! Yesterday I shipped a fix for these errors in #943, really appreciate you being thoughtful in your report! ✨


Transmit only meaningful GENERIC TAPI progress events

When TAPI clients are subscribed to OperationType.GENERIC events, they can get swamped by tens of thousands of events that are not very useful, yet create a lot of garbage and consume a non-trivial amount of CPU to process.
@adammurdoch:

Let's redefine OperationType.GENERIC to mean “only those operations that the rich console cares about” and filter everything else out in the daemon.

This would be an effective way to reduce the high number of operations sent to the TAPI client without much use.
In effect this would mean to filter out build operation events that don't have a category nor a progress name, like we do here for log events:
https://github.com/gradle/gradle/blob/239a339f35b22b0802c363d4053cce66d2133657/subprojects/logging/src/main/java/org/gradle/internal/logging/sink/OutputEventTransformer.java#L66-L83.

cc: @gradle/execution

#14783 is a half-finished attempt at implementing the filtering. Might be worth taking a look if somebody wants to pick this up.

This is still an important issues for Android Studio.


updated version to 4.0.0b2

I tried to test this by bulding on OS-X, but got an odd error on teh setup.py command -- it couldn't find setuptools, even though it was installed into the build environment.
and OS-X is set to skip here anyway -- not sure how we got that built for anaconda.org.
But hopefully we can get this update up there one way or another...

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

It's (really) complicated. Also see the other PRs on this repo.

Apparently so -- all builds failed :-(
Maybe worth considering wheel re-packaging in the meantime: #6
If not, anything I can do to help? I"d like to get this version up -- I don't see anything in the open PRs or Issues that I can work on.
I do develop primarily on the Mac -- so maybe can help there.
And there are all three platforms up for the last version -- how was that accomplished?

we actually had a working recipe for os x at some point - it just didnt complete within build time limit on travis ci.
repackaging wheels sound like a plan to me! do you want to set up a PR?

I could do a PR for the wheel repackaging. But not sure quite sure where to do it -- into a difference branch?
And did you get it to build on Windows? It looks like Appveyor failed this time. If not, we could re-package wheels for Windows, too.

It seems like the new version has a changed build process, that requires make to be available. Obviously that isn't available on Windows build chains...
I do think that re-packaging wheels is a much more sustainable method for this package, given the scarce resource maintainers of this feedstock seem to have available.
Would you be willing to open a PR for to make that happen?

Superceded by #9


Rlrm ccode

Description
 We have added Riemannian low-rank matrix completion algorithm. This algorithm makes use of Pymanopt package. Our algorithm and the package has been added in reco_utils/recommender/rlrmc/ folder. A corresponding jupyter notebook has been added to showcase an example on movielens dataset.
 This adds a new class of recommendation algorithm in the repo.
Related Issues

Checklist:

[ ] My code follows the code style of this project, as detailed in our contribution guidelines.
[ ] I have added tests.
[ ] I have updated the documentation accordingly.

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

hey @pratikjawanpuria this is really impressive, I have to confess that I almost cry of emotion when I saw that you are using swarm particle optimization.
Several of us will review the code and give you some hints on how we are structuring the code and showing the notebooks.
Probably the first several points are that I realized that your githhub user is not set correctly, in the commits you will see that there is no logo in your name. To fix it, you can follow these instructions. This is very important because it is a way to publically recognize your contribution. In fact, you might want to create a new branch and push the code again. Ping me on teams if you need help on this.
Also, when we add new code, we do a PR to staging branch, instead of master. See details here


CRAYSAT-1780: Retain image arch in sat bootprep

Summary and Scope
When renaming images in sat bootprep, ensure the image architecture is retained in the new image. This field is important to IMS, so it knows how to handle any future customization operations on that image.
Issues and Related PRs

Resolves CRAYSAT-1780

Testing
Tested on:

mug

Test description:
Tested on mug by downloading the new cray-sat image, opening a shell in the container with sat bash, and then opening a Python interpreter and using the copy_image function directly to confirm that the image architecture is retained when copying an aarch64 image. Also tested on an x86_64 image for good measure.
Risks and Mitigations
Pretty low risk, just fixing a pretty simple bug.
Pull Request Checklist

[x] Version number(s) incremented, if applicable
[x] Copyrights updated
[x] License file intact
[x] Target branch correct
[x] CHANGELOG.md updated
[x] Testing is appropriate and complete, if applicable
[x] HPC Product Announcement prepared, if applicable

Here's the testing script I used to test this on mug in a sat bash shell:
#!/usr/bin/env python3
#
# Test the copy_image function of IMSClient

from sat.logging import bootstrap_logging, configure_logging
from sat.session import SATSession
from sat.apiclient.ims import IMSClient
from sat.warnings import configure_insecure_request_warnings

bootstrap_logging()
configure_logging()
configure_insecure_request_warnings()

ims = IMSClient(SATSession())

# aarch64 image
# source_image_id = '8199af5a-a052-4013-9b0c-5046c34d1d6f'
# x86_64 image
source_image_id = '0194c2c1-0d59-49e7-8daa-1d4535d6720a'

new_image_name = 'haasken-copied'

print(f'Copying image with id {source_image_id} to a new image '
      f'named {new_image_name}.')

old_image = ims.get_image(source_image_id)
print(f'Here is the image to be copied: {old_image}')

new_image_id = ims.copy_image(source_image_id, new_image_name)

print(f'Image copied to new image named {new_image_name} with id {new_image_id}.')

new_image = ims.get_image(new_image_id)
print(f'Here is the new image: {new_image}')

And here are the results of the test script against an aarch64 image:
ncn-m001:~/haasken/CRAYSAT-1780 # sat bash
(43d3cf22c1ed) sat-container:/sat/share # ./test_copy_image.py
Copying image with id 8199af5a-a052-4013-9b0c-5046c34d1d6f to a new image named haasken-copied.
Here is the image to be copied: {'arch': 'aarch64', 'created': '2023-08-14T16:32:33.774652+00:00', 'id': '8199af5a-a052-4013-9b0c-5046c34d1d6f', 'link': {'etag': '454b0bcc6bb0fc99906ac8e67a9b9208', 'path': 's3://boot-images/8199af5a-a052-4013-9b0c-5046c34d1d6f/manifest.json', 'type': 's3'}, 'name': 'compute-csm-1.5-6.1.2-aarch64'}
WARNING: Unverified HTTPS request is being made to host 'rgw-vip.nmn'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
Image copied to new image named haasken-copied with id 47eabc4c-515a-4c82-8555-f81ba24659f7.
Here is the new image: {'arch': 'aarch64', 'created': '2023-10-18T18:32:40.168199+00:00', 'id': '47eabc4c-515a-4c82-8555-f81ba24659f7', 'link': {'etag': '97652a1b305ec4f30dace81b5fa00563', 'path': 's3://boot-images/47eabc4c-515a-4c82-8555-f81ba24659f7/manifest.json', 'type': 's3'}, 'name': 'haasken-copied'}
(43d3cf22c1ed) sat-container:/sat/share #

and an x86_64 image for good measure:
ncn-m001:~/haasken/CRAYSAT-1780 # sat bash
(dd0fd460fc78) sat-container:/sat/share # ./test_copy_image.py
Copying image with id 0194c2c1-0d59-49e7-8daa-1d4535d6720a to a new image named haasken-copied.
Here is the image to be copied: {'arch': 'x86_64', 'created': '2023-10-17T20:40:12.904904+00:00', 'id': '0194c2c1-0d59-49e7-8daa-1d4535d6720a', 'link': {'etag': '4cb69ef1afe017396a508cd8b68e1b1b', 'path': 's3://boot-images/0194c2c1-0d59-49e7-8daa-1d4535d6720a/manifest.json', 'type': 's3'}, 'name': 'csm-compute-6.0.12-x86_64_cfs_siat-b13.17'}
WARNING: Unverified HTTPS request is being made to host 'rgw-vip.nmn'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
Image copied to new image named haasken-copied with id 36c4bb01-9145-4b41-93c3-a03f11c73fac.
Here is the new image: {'arch': 'x86_64', 'created': '2023-10-18T18:37:12.370953+00:00', 'id': '36c4bb01-9145-4b41-93c3-a03f11c73fac', 'link': {'etag': '800259da4652ec9c7132a533a842795e', 'path': 's3://boot-images/36c4bb01-9145-4b41-93c3-a03f11c73fac/manifest.json', 'type': 's3'}, 'name': 'haasken-copied'}


1.12.0 error: failed to list interfaces: getifaddrs: Address family not supported by protocol

Hi! I'm packaging unbound for Arch Linux.
I am currently trying to upgrade the package to 1.12.0. Unfortunately I am running into serious issues with the service right on start.
With my configuration file, compatible with 1.11.0 I am trying to start unbound.service, but it returns:
unbound[1610946:0] error: failed to list interfaces: getifaddrs: Address family not supported by protocol
unbound[1610946:0] fatal error: could not open ports

I see that f6a527c25ad2e60e2dc129fff3605e6ec48c30f2 has changed the behavior of the *interface: settings in the configuration. Unfortunately, this doesn't seem to work out of the box with the systemd unit anymore (or because of another problem?).
Even if I provide interface names to the respective *interface: configuration settings, I get the above error message.

Okay, after some investigation I have found the issue.
It seems that the systemd service now requires AF_NETLINK in the RestrictAddressFamilies setting for the aforementioned changes to work and the service not to fail right away.
I'll open a pull request for this.


Is it possible to call a HA automation using an Alexa voice command?

Is it possible to call a HA automation using an Alexa voice command for example "Alexa, turn off my outside lights" where "turn off my outside lights" is in fact a HA automation?

You could make the alexa routine push a button in HA which then runs an automation. Thats what I do with my "Alexa Goodnight" routine. It pushes a HA button which is a trigger for my automation.


add repo commands

Commit https://github.com/rancher-sandbox/hypper/pull/51/commits/f1fd045aca0522d1c7211a855bb35cad3e47226d adds 14000 lines of code, and ~150 lines. I think this is wrong. How does one know which code is ours and which is Helms? From what point in Helm's history is the code (current master, v3.3, ...)? If any code gets copy-pasted from Helm, it should at minimum be contained to 1 commit, which message specifies the Helm' history point from which it was copy-pasted (I would prefer git subtrees, etc).
Also, commit https://github.com/rancher-sandbox/hypper/pull/51/commits/f1fd045aca0522d1c7211a855bb35cad3e47226d drops a lot of Helm packages in internal/helm/pkg/, for example internal/helm/pkg/{getter,repo}. The same concerns arise.
I would very much give a try using to composition instead, and any hypper modifications such be simple and in hypper/pkg/{getter,repo}.
There's also  internal/helm/plugin (and maybe others) that should go in internal/helm/ by your approach. But I think this is not sustainable, and it's worth a try to just use composition instead.

Also, we need to provide a hypper/pkg/repo analogous to helm/pkg/repo, as we are offering hypper as a library.


LEGO: Pull request from lego/hb_839_20170301011529128 to master

LEGO: Pull request from lego/hb_839_20170301011529128 to master with localized lcls

@csigs,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.
It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot


Flickr's API TOS, Developer guide, and CC licenses

Matt,

Can a developer get CC license information on images from Flickr's API? Looks so https://www.flickr.com/services/api/flickr.photos.licenses.getInfo.html

Do you think it is worth @sarahpearson's time to analyze Flickr's API TOS + Developer guidelines to see if any of it conflicts or pertains to CC licenses?
https://www.flickr.com/services/api/tos/
https://www.flickr.com/services/developer/

Do you have any idea if https://code.flickr.net/ is kept up to date?

@janeatcc For the WMF pilot, I limited my legal review to terms that bind normal users. I think we should stick with that for WMF analysis unless we previously agreed otherwise. Can always expand it later.

Sounds good @sarahpearson. I'm going to leave this issue up so @mattl can respond whether it's worth following up on these items separate from/following on WMF analysis.

Yep. You found it, though we could ask them to update that info for the newly added CC0/PD options.

Yes please. Flickr's API is seen as gold standard, so we should make sure there's no conflicts. @sarahpearson -- please do your legal magic.

@janeatcc added two notes about the API terms to the WMF Pilot Group Analysis doc.

@sarahpearson I don't see any notes around Flickr, just Twitter and Vimeo?

I promise they are there. In the WMF chart in the relevant categories. I'll highlight so you can see.


Pages will not change with the latest stencil-router and<EMAIL_ADDRESS>

With the latest stencil-router and<EMAIL_ADDRESS>certain pages will not be navigated too.
Repro Steps:

git clone https://github.com/ionic-team/stencil-site
npm install<EMAIL_ADDRESS>&&<EMAIL_ADDRESS>navigate to the docs page (docs button in header)
try navigating to some of the pages in the sidemenu

This is what the docs route looks like:
         <stencil-route
              url="/docs/:pageName"
              routeRender={(props: { [key: string]: any }) => {
                const map = {
                  'intro': 'intro/index.html',
                  'browser-support': 'intro/browsers.html',
                  'getting-started': 'start/index.html',
                  'my-first-component': 'basics/my-first-component.html',
                  'templating': 'basics/templating.html',
                  'decorators': 'basics/decorators.html',
                  'events': 'basics/events.html',
                  'component-lifecycle': 'basics/component-lifecycle.html',
                  'stencil-config': 'basics/stencil-config.html',
                  'forms': 'basics/forms.html',
                  'handling-arrays': 'basics/handling-arrays.html',
                  'testing': 'basics/testing.html',
                  'config': 'compiler/config.html',
                  'server-side-rendering': 'advanced/ssr/index.html',
                  'routing': 'addons/stencil-router.html',
                  'service-workers': 'advanced/service-worker/index.html',
                  'distribution': 'advanced/distribution/index.html',
                  'webpack': 'advanced/webpack/index.html',
                  'prerendering': 'advanced/pre-rendering/index.html',
                  'shadow-dom': 'advanced/shadow-dom/index.html'
                };
                return (
                  <document-component pages={[map[props.match.params.pageName]]} />
                );
              }}
            />

Does this throw an error or just do nothing?

https://github.com/ionic-team/stencil/issues/312
https://github.com/hufan-akari/stencil-site/commit/cae43b51159dd865ad3fbcd9662f0b7c74b4f640

This was an issue with stencil and was resolved in commit eedad6b3d689d0212ea9b5d3b0fc3c3a472ecbb6.


[ERROR] [launch]: Caught exception in launch (see debug for traceback): 'oakdlite'

Hi,
linorobot2 was installed using with ros2me & install_linorobot2.bash
bash install_linorobot2.bash 2wd rplidar oakdlite
When I try
ros2 launch linorobot2_bringup bringup.launch.py
I received,
oto@moov:~$ ros2 launch linorobot2_bringup bringup.launch.py
[INFO] [launch]: All log files can be found below /home/oto/.ros/log/2023-10-18-04-12-10-938851-moov-12950
[INFO] [launch]: Default logging verbosity is set to INFO
[ERROR] [launch]: Caught exception in launch (see debug for traceback): 'oakdlite'

I was able to get Oak-D Lite working as a webcam
Please help. Thank you

are you able to run other examples in oak d lite documentation?


Unsupported RTP media type

Hello
We have Vivotek Camera which produce livestream on this url:
rtsp://viewer:pass@<IP_ADDRESS>:554/live.sdp
I tried to use this url with or without port. But i am getting error
aws.iot.EdgeConnectorForKVS: stdout. 2023-12-13 20:39:09 WARN  RecorderCameraRtsp:Unsupported RTP media type: application.. {scriptName=services.aws.iot.EdgeConnectorForKVS.lifecycle.Run.Script, serviceName=aws.iot.EdgeConnectorForKVS, currentState=RUNNING}
Ive installed gstreamer from offical site:
apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
It seems that it should have plugin for sdp media type, but stream is not uploaded to kinesis.
2023-12-13T20:42:14.921Z [INFO] (Copier) aws.iot.EdgeConnectorForKVS: stdout. 2023-12-13 20:42:14 WARN  RecorderStatusCheckCallbackImpl:Recorder failed due to errors.  Pipeline name: pipeline0. {scriptName=services.aws.iot.EdgeConnectorForKVS.lifecycle.Run.Script, serviceName=aws.iot.EdgeConnectorForKVS, currentState=RUNNING}
I have all rights granted for kinesis stream, but i did not know what i should do with these errors.

Hi fotosidia,
Thanks for reaching out.
As far as I know, when the RTSP camera connects to the video recorder, it sends SDP, which contains the media types and other information of the camera, to the GStreamer rtspsrc element. Then, the GStreamer rtspsrc element creates GstPads based on the SDP information, and these GstPads also store their capabilities.
From our experience in developing this component, a RTSP camera reports SDP with media type video if it has video data and media type audio if it has audio data. Therefore, our component checks whether the media field is video or audio, and then processes these multimedia data accordingly.
The log of this issue shows that the camera gives us a GstPad with application media type, which our component does not support at the moment.


SKIPME: Apply different memory fraction configuration on driver and executor

This is an attempt to apply different memory fraction configuration on driver and executor. This approach passes in a flag to indicate whether the configuration is for driver, if it is for driver, it will look for a configuration from spark conf, otherwise, it will use the spark.memory.fraction setting.
I have tested this out on a single node cluster. I will also look for junit tests to add if this approach sounds reasonable.

jmwg


added aks privatelink example

Added an example on how to roll out an AKS cluster exposing the services via an internal loadbalancer with a privatelink. This architecture is interesting for making AKS services available without VNET peering or other solutions that have a risk of IP depletion due to AKS requirements. The readme should contain the steps that are required to rollout this example.

to help reviewing: @feiskyer, @palma21, @miwithro