Logging controls per container and reduce logging

Problem
Per P2P:

Another request is have more controls on logging: set logging level per container, but not for all the router containers all the same. And reduce logging where it's possible.

Proposed Solution
TBD
Acceptance Criteria

adding to reliability and monitoring epic


Support success limit of ParallelChannel

What problem does this PR solve?
Issue Number:
Problem Summary:
What is changed and the side effects?
Changed:
支持设置阈值，使rpc成功数达到阈值时，Parallel RPC成功。
Side effects:

Performance effects(性能影响):

Breaking backward compatibility(向后兼容性):

Check List:

Please make sure your changes are compilable(请确保你的更改可以通过编译).
When providing us with a new feature, it is best to add related tests(如果你向我们增加一个新的功能, 请添加相关测试).
Please follow Contributor Covenant Code of Conduct.(请遵循贡献者准则).

赞，文档也更新一下？


[new : feature] support regsiter instance to consul

Volunteer help
Volunteer help
Hi Community
We already have the spi interface and already support zookeeper.
So there will be the following tasks：

[ ] new module shenyu-register-instance-consul  under shenyu-register-center
[ ] impl org.apache.shenyu.register.instance.api.ShenyuInstanceRegisterRepository
[ ] add unit test
[ ] add doc to shenyu-webiste

I’d loved to try this one~Plz assign me~Memeda

Is there any help ? Maybe I can help you finish it😁.  @babynata


docs: create unique links for lower level headings

Seems like this PR is working fine. If it doesn't in future, we might opt for https://leerob.io/snippets/mdx-table-of-contents.


Week operation bug

This PR closes #32

This PR removes a public function and is therefor not truly BC. However, the fact that this method existed was very much a bug and it is impossible somebody ever used to successfully. Therefor this PR will be in a patch release.


Release 221

Description
This PR is for Release branch 221 which has been deployed to Production as of August 8th, 2024.
Update main branch with Production version of MAiD - Case Management App. UAT has been done in the final phase of testing after the completion of QA testing.
MAiD:
BCMOHAD-24203 | MAID - HC Formula issue - PROC_Q75
BCMOHAD-24542 | MAID - Update label for Preferred Gender field
BCMOHAD-24546 | MAID - Add new picklist values in Requestor disability opinion field
BCMOHAD-24547 | MAID - Add new picklist values in Usual Place of Residence field
BCMOHAD-24574 | MAID - Add new picklist values in Length of Disability field
BCMOHAD-24575 | MAID - Add new picklist values in Daily Activity Limits field
BCMOHAD-24576 | MAID - Add new picklist values in If Private Residence, Living arrangement field
BCMOHAD-24545 | MAID - Add new picklist values in Racial, Ethnic or Cultural Group field
BCMOHAD-24583 | MAID - Add help text on Specialty(2023Reg) field of account object
BCMOHAD-24543 | MAID - Add new picklist values in Gender Identity field
BCMOHAD-24544 | MAID - Add new picklist values in Identify as Indigenious field
BCMOHAD-24577 | MAID - Add new picklist values in Prior Request for MAiD field
BCMOHAD-24579 | MAID - Add new picklist values in Length of medical condition field
BCMOHAD-24578 | MAID - Add new picklist values in Patient Required palliative care?
BCMOHAD-24670 | MAID - Remove one of the Manager Permission Sets
BCMOHAD-24540 | MAID - Update label for Older MAiD Forms to 2021 field
ICY:
BCMOHAD-24095 | ICY - Corrections to descriptions and help text for Referrals
BCMOHAD-24528 | ICY - Blank values while adding team members
BCMOHAD-24532 | ICY - Additional fields visible in closed Intake records
Fixes # (issue)
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

List high-level changes as bullet items
Below are some examples

[ ] Changed field permissions
[ ] changed field data-type

Deployment Tracker
List all the metadata that is pushed in this commit/PR. Full URL should be fine.
Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

@RanadheerRG please investigate outstanding conflict.


added map_as_series

Adds a Image.map_as_series method that uses Blocks to apply a function to each series in an Images object and then turn the data back into an Images object -- avoids needing to transform the data all the way to a Series representation, which can be quite expensive to turn back into Images due to the high level of fragmentation that can occur when the total size of the spatial dimensions greatly outnumbers the size of the temporal dimension.

This sounds great, any estimate on performance boost over Images -> Series' -> Images`?

@d-v-b from my anecdotal experience, it can be the difference between the job completely failing and being able to run to completion!
We decided to go this route rather than implementing a stand-alone thunder-movie package.

Would be really cool to report at least one benchmark alongside this change, just pick some fairly big representative workflow and time the two methods. though obviously not so big that the older method fails.

tests pass...merging
I'll get back with some stats on how this performs compared to Images.toseries().map(f).toimages()

@d-v-b @freeman-lab @sofroniewn
Preliminary analysis: https://gist.github.com/jwittenbach/dca311743395d904c3d7
The last cell is still running...25 minutes later

Also bumped number of nodes up to 40 (39 workers). The new map_as_series approach shows a linear speed up (2x nodes => 2x speed). The old approach still stalls out and never completes.

Nice, that's great!

Nice, I hope we can kiss those hanging stages goodbye


The renderToString function does not call component's static getDerivedStateFromProps

The renderToString function calls componentWillMount() before rendering. However, per changes to React API, getDerivedStateFromProps should take precedence over componentWillMount() when available.
Preact already has an issue (https://github.com/developit/preact/issues/1047) tracking what to do with React API changes.
Preact now supports getDerivedStateFromProps per this PR - https://github.com/developit/preact/pull/1094

Good catch!

Resolved with
https://github.com/developit/preact-render-to-string/pull/63 release with https://github.com/developit/preact-render-to-string/releases/tag/4.1.0


Broken Output from ST_AsText

I have encountered a very strange bug with the ST_AsText function. This did not happen in v0.7.1, but now in 0.8.1 it does, so it was newly introduced!
I was working on a dataset from opendatasoft, which contains all countries with their administrative borders. The data is provided as a GeoJSON containing a FeatureCollection with a Feature per country. The file can be downloaded here:
https://public.opendatasoft.com/api/explore/v2.1/catalog/datasets/world-administrative-boundaries/exports/geojson?lang=en&timezone=Europe%2FBerlin
When I now run this SQL Script:
INSTALL spatial;
LOAD spatial;

WITH countries AS (
    SELECT
        name,
        ST_AsText(ST_GeomFromWKB(wkb_geometry)) as shape,
    FROM ST_Read('countries.json')
)
SELECT
    name,
    ST_GeomFromText(shape),
FROM countries

I get this error:
duckdb.InvalidInputException: Invalid Input Error: ParseException: Expected ')' or ',' but encountered: '('
Bascially, I want to export the geometries per country into WKT. But the output of ST_AsText is broken, so it cannot be parsed again (e.g. with ST_GeomFromText, but it also does not work when using other python libraries).
Then I dug a little deeper. The culprit is actually 'Italy'. All other countries are parsed and converted to WKT correctly, except Italy.
Now, I exported the WKT for Italy only to a txt file. First with duckdb, then with shapely (using geopandas). Here is the code to reproduce:
DuckDB:
INSTALL spatial;
LOAD spatial;

COPY (
    SELECT
        ST_AsText(ST_GeomFromWKB(wkb_geometry)) as geometry,
    FROM ST_Read('countries.json')
    WHERE name = 'Italy'
) TO 'wkt_italy_duckdb.txt' (SEP ';');

Shapely/Geopandas:
import pathlib
import geopandas

geojson_file = pathlib.Path("countries.json").resolve().read_text()
target_file = pathlib.Path("wkt_italy_shapely.txt").resolve()

countries = geopandas.read_file(geojson_file)
shape = countries[countries["name"] == "Italy"]["geometry"].values[0]

target_file.write_text(shape.wkt)

So, both scripts just parse the original GeoJSON, filter for Italy and dump its geometry as WKT into a txt file.
And here is the error:
Duckdb for some reason added a comma , just after the opening brackets ( in the last two polygons. (See picture)

The WKT created by shapely does not have these two commas in the output. It only happens with DuckDB and only for Italy and only in the last two polygons of Italy's geometry. Again, this bug occurs now in v0.8.1. When you run this stuff in v0.7.1 everything works as expected.
So, why does this happen and can it be fixed?

Hi! Thanks for filing this issue, and including a reproducible example! The only thing that comes to mind is that we changed the WKT number formatting to behave the same as PostGIS, but there might be an edge case we're missing. I'll take a look into this later.

I just checked the GeoJSON. All the points are there, none is missing. So, duckdb did not drop the points, but instead inserted these two additional commas at the beginning of the polygon. Maybe that helps your investigation.
Thanks for looking into this ^^

Alright turns it this is just me being clumsy with where to put the paren when the innermost polygons contain multiple rings. I've implemented a fix for this on my fork so it will get into the next merge before the upcoming release.


renamed upsert related *Old classes to SymbolBased*

also re-add tests for SymbolBased* classes

ack


[8.x] Clear a cached user in RequestGuard if a request is changed

This guard retrieves a user based on a request data, so a cached user should be cleared on a request change.
Personally, I've faced a problem with it while creating a test for my API with a help of default Laravel testing methods (postJson, getJson etc). Requests with different API tokens got the same user (from the first request) because it is cached which is counter-intuitive.

@taylorotwell @GrahamCampbell  This breaks the Passport::actingAs method, thus breaking all tests using Passport.

We reverted this

I'm actually a bit confused because without this change it's not possible to test Sanctum logout and/ or token refresh properly. See https://laracasts.com/discuss/channels/testing/tdd-with-sanctum-issue-with-user-logout-case?page=1&replyId=797893

This change still makes sense to me, but I don't remember any details why I didn't continue with it. Looks like there is a bug in actingAs method but I don't see it at first glance.
Also, @sebastiaanluca, IIRC we discussed something about this on Twitter?


Supporting depots

Hi, are there any plans to add the ability to access depot data next to the normal accounts?

👍 @mschindler83 Any news on this?


make Author-email field optional

The core metadata spec says it should be optional  https://packaging.python.org/specifications/core-metadata/#author-email
Related: https://github.com/takluyver/flit/issues/236
Anecdotally, I've seen people confused about what to do when they don't want a public email associated (currently they can only use flit by entering a fake email address there)

I'd love to see this merged.
I currently put in a fake email during init and replace it with an empty string later.

Thanks, this looks OK apart from one minor change. Unfortunately my recent reorganisation has caused a merge conflict that github can't resolve. Do you want to resolve that? I'm happy to fix it, as it was me who broke it.

Hi Thomas, I’ll leave it in your capable hands. Cheers!


allow dynamic strings to be used in metrics_format option

Jenkins standing by to test this. If you aren't a maintainer, you can ignore this comment. Someone with commit access, please review this and clear it for Jenkins to run; then  say 'jenkins, test it'.


Don’t attempt to copy built-in modules

Several distributions (including Ubuntu) ship some of the modules we rely on compiled into the kernel. Since these modules are listed in modules.builtin, it’s very easy to detect and skip them.
Signed-off-by: Andrej Shadura<EMAIL_ADDRESS>

this should close #13 and improve Ubuntu support. Thanks Andrej!

actually, looking into this a bit further shows two other pull requests with similar functionality:
https://github.com/go-debos/fakemachine/pull/45
https://github.com/go-debos/fakemachine/pull/36
still, all three patchsets do not support reading from modules.builtin.bin

To be honest, I think while my knowledge of Go is very basic, reading the file into a map seems a better choice for me than slurping it into a string, splitting it into array and do linear searches in it.

I have included xz support commits from #45 into my pull requests.

agreed with the above, nice work ;-)


navbar : current page identification bug

Description
currently it is not possible to identify on which page we are on form the navbar.
Screenshots
No response
Additional information
different background colour can added to the active nav option.

I am working on it


gs://kfserving-samples/models/tensorflow/flowers cannot be accessed

/kind bug
What steps did you take and what happened:
[A clear and concise description of what the bug is.]
What did you expect to happen:
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:

Istio Version:
Knative Version:
KFServing Version:
Kubeflow version:
Kfdef:[k8s_istio/istio_dex/gcp_basic_auth/gcp_iap/aws/aws_cognito/ibm]
Minikube version:
Kubernetes version: (use kubectl version):
OS (e.g. from /etc/os-release):

storage-initializer log
[I 220608 17:55:28 initializer-entrypoint:13] Initializing, args: src_uri [gs://kfserving-samples/models/tensorflow/flowers] dest_path[ [/mnt/models]
[I 220608 17:55:28 storage:52] Copying contents of gs://kfserving-samples/models/tensorflow/flowers to local
[W 220608 17:55:28 _metadata:104] Compute Engine Metadata server unavailable onattempt 1 of 3. Reason: [Errno 111] Connection refused
[W 220608 17:55:28 _metadata:104] Compute Engine Metadata server unavailable onattempt 2 of 3. Reason: [Errno 111] Connection refused
[W 220608 17:55:28 _metadata:104] Compute Engine Metadata server unavailable onattempt 3 of 3. Reason: [Errno 111] Connection refused
[W 220608 17:55:28 _default:287] Authentication failed using Compute Engine authentication due to unavailable metadata server.
[I 220608 17:55:28 requests:504] Refreshing credentials due to a 401 response. Attempt 1/2.
Traceback (most recent call last):
File "/storage-initializer/scripts/initializer-entrypoint", line 14, in
kserve.Storage.download(src_uri, dest_path)
File "/usr/local/lib/python3.7/site-packages/kserve/storage.py", line 67, in download
Storage._download_gcs(uri, out_dir)
File "/usr/local/lib/python3.7/site-packages/kserve/storage.py", line 152, in _download_gcs
for blob in blobs:
File "/usr/local/lib/python3.7/site-packages/google/api_core/page_iterator.py", line 212, in _items_iter
for page in self._page_iter(increment=False):
File "/usr/local/lib/python3.7/site-packages/google/api_core/page_iterator.py", line 243, in _page_iter
page = self._next_page()
File "/usr/local/lib/python3.7/site-packages/google/api_core/page_iterator.py", line 372, in _next_page
response = self._get_next_page_response()
File "/usr/local/lib/python3.7/site-packages/google/api_core/page_iterator.py", line 432, in _get_next_page_response
method=self._HTTP_METHOD, path=self.path, query_params=params
File "/usr/local/lib/python3.7/site-packages/google/cloud/storage/_http.py", line 78, in api_request
return call()
File "/usr/local/lib/python3.7/site-packages/google/api_core/retry.py", line 290, in retry_wrapped_func
on_error=on_error,
File "/usr/local/lib/python3.7/site-packages/google/api_core/retry.py", line 188, in retry_target
return target()
File "/usr/local/lib/python3.7/site-packages/google/cloud/_http.py", line 475, in api_request
timeout=timeout,
File "/usr/local/lib/python3.7/site-packages/google/cloud/_http.py", line 333, in _make_request
method, url, headers, data, target_object, timeout=timeout
File "/usr/local/lib/python3.7/site-packages/google/cloud/_http.py", line 371, in _do_request
url=url, method=method, headers=headers, data=data, timeout=timeout
File "/usr/local/lib/python3.7/site-packages/google/auth/transport/requests.py", line 516, in request
self.credentials.refresh(auth_request)
File "/usr/local/lib/python3.7/site-packages/google/auth/credentials.py", line 173, in refresh
raise ValueError("Anonymous credentials cannot be refreshed.")
ValueError: Anonymous credentials cannot be refreshed.
It worked for me last week.

@xfzhang1974 Please use gs://kfserving-examples/models/tensorflow/flowers instead, the gcs bucket kfserving-samples has been deprecated.
see https://github.com/kserve/kserve/pull/2215

Thanks for the update.
On Saturday, June 11, 2022, 07:49:07 AM CDT, Dan Sun @.***> wrote:
@xfzhang1974 Please use gs://kfserving-examples/models/tensorflow/flowers instead, the gcs bucket kfserving-samples has been deprecated.
see #2215
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>


Can I use different option properties as names and values?

Per the example at http://plnkr.co/edit/LPGYIf?p=preview, I'm using one property of my option objects as the name for the option, with options="t.name for t in tags".
Rather than use the entire option object as a value, I want to only use the _id property, so that the model I bind to contains a list of _id Strings, rather than a list of Objects. This matches my backend, where my MongoDB documents have _id references to other documents.
Is it possible to use a single property as the value of an option, e.g. values="t._id for t in tags"?
My code is live at http://trollsgoals.ayoshitake.com/

@airandfingers Is your pull request accepted? Because I think we have the same problem, we also want the model we bind to contains a list of id strings.. We are also trying to use "t._id as t.name for t in tags" but it always binds our full model to the list.

I'm going to look into this tomorrow and make necessary changes 👍

That would be awesome 👍

@RobbertWolfs So, I just tried c.id as c.name for c in fruits and it binds id to the selected.  Can you show me an example in plunk?
http://plnkr.co/edit/NKas7sSP5lGJz3OTv0YU?p=preview

@amitava82 Let me try to implement it as your example. Otherwise I will try to create a plunker.

Could it be it gives problems with angular 1.5.5? Because we are using the angular components from angular 1.5.x...
I tried to create a gist of all the necessary code https://gist.github.com/RobbertWolfs/4c03ff1a27b042d3fb1d97c1b86445d7
And this is the result we get...

Are you sure that you are using latest version of multiselect lib?

I just did npm install angular-multiselect

ah.. It's old.. Hold on, I'll push latest.

ok thanks

Alright published<EMAIL_ADDRESS>

Let me check if I get it to work with the new version.

@amitava82 Thank you it works like a charm 👍 💯


Prefix postfix expression evaluator

Describe the project you want to add with tech stack
I would like to add a prefix postfix expression calculator built using HTML, CSS and JavaScript.
Expected behavior
It will take prefix and postfix expression from the user and evaluates it.
Screenshots (optional)

Additional context (optional )
NA

@pranjay-poddar please assign me this issue under hacktoberfest.


[Question]How to get the consumed data？

Versions
Please specify real version numbers or git SHAs, not just "Latest" since that changes fairly regularly.

Sarama
Kafka
Go

v1.34.1
v2.7.1
1.17.6

Configuration
What configuration values are you using for Sarama and Kafka?
	c.Admin.Retry.Max = 5
	c.Admin.Retry.Backoff = 100 * time.Millisecond
	c.Admin.Timeout = 3 * time.Second

	c.Net.MaxOpenRequests = 5
	c.Net.DialTimeout = 30 * time.Second
	c.Net.ReadTimeout = 30 * time.Second
	c.Net.WriteTimeout = 30 * time.Second
	c.Net.SASL.Handshake = true
	c.Net.SASL.Version = SASLHandshakeV0

	c.Metadata.Retry.Max = 3
	c.Metadata.Retry.Backoff = 250 * time.Millisecond
	c.Metadata.RefreshFrequency = 10 * time.Minute
	c.Metadata.Full = true
	c.Metadata.AllowAutoTopicCreation = true

	c.Producer.MaxMessageBytes = 1000000
	c.Producer.RequiredAcks = WaitForLocal
	c.Producer.Timeout = 10 * time.Second
	c.Producer.Partitioner = NewHashPartitioner
	c.Producer.Retry.Max = 3
	c.Producer.Retry.Backoff = 100 * time.Millisecond
	c.Producer.Return.Errors = true
	c.Producer.CompressionLevel = CompressionLevelDefault

	c.Consumer.Fetch.Min = 1
	c.Consumer.Fetch.Default = 1024 * 1024
	c.Consumer.Retry.Backoff = 2 * time.Second
	c.Consumer.MaxWaitTime = 500 * time.Millisecond
	c.Consumer.MaxProcessingTime = 100 * time.Millisecond
	c.Consumer.Return.Errors = false
	c.Consumer.Offsets.AutoCommit.Enable = true
	c.Consumer.Offsets.AutoCommit.Interval = 1 * time.Second
	c.Consumer.Offsets.Initial = OffsetOldest
	c.Consumer.Offsets.Retry.Max = 3

	c.Consumer.Group.Session.Timeout = 10 * time.Second
	c.Consumer.Group.Heartbeat.Interval = 3 * time.Second
	c.Consumer.Group.Rebalance.Strategy = BalanceStrategyRange
	c.Consumer.Group.Rebalance.Timeout = 60 * time.Second
	c.Consumer.Group.Rebalance.Retry.Max = 4
	c.Consumer.Group.Rebalance.Retry.Backoff = 2 * time.Second
	c.Consumer.Group.ResetInvalidOffsets = false

	c.ClientID = defaultClientID
	c.ChannelBufferSize = 256
	c.ApiVersionsRequest = true
	c.Version = DefaultVersion
	c.MetricRegistry = metrics.NewRegistry()

Logs
When filing an issue please provide logs from Sarama and Kafka if at all
possible. You can set sarama.Logger to a log.Logger to capture Sarama debug
output.
logs: CLICK ME

Problem Description
When the pause() method is called, the unprocessed data in the pipeline will be processed, and the pause() method will still be triggered at this time, but the original data that led to pause cannot be obtained after resume().
Is it possible to record the offset when the pause() is triggered and continue to consume from that offset after the resume()?

@huange7 hmm, are calling pause() the client will stop fetching new records and any buffered records should be delivered on the messages channel. Are you saying you would want the auto-commit to also pause when pause is called and re-fetch and re-deliver them on resume?

Are you saying you would want the auto-commit to also pause when pause is called and re-fetch and re-deliver them on resume?

Thanks for your reply!  That's exactly what I thought, but I don't know if the latest version has this feature or not

No worries, and thanks for clarifying. I need to investigate what we can do here, currently we don't have good FV coverage of the Pause and Resume behaviour, just a mock-based unittest here — so we'd probably need to start by adding a fuller FV test to verify what the current behaviour is, and then compare it with the Java client implementation (starting with KAFKA-2350  but also being mindful of KAFKA-7548)


Uncaught Unspecified Error Event (-72007)

Occasionally, I have been getting the following error. I can not reproduce this reliably but it still happens enough times for it to be a problem. Here's a screenshot.
Im not quite sure why the red screen is being shown even though I am catching errors using:
zeroconf.on('error', (error) => { alert(error) });
    try {
      zeroconf.scan(
        (type = 'http-nycts'),
        (protocol = 'tcp'),
        (domain = 'local.')
      );

    }
    catch(e) {
      //error
      alert(e);
    }

Is there a way to just suppress the screen for now till the error gets fixed?

Looks like it's related to #23, is it when you put it to sleep too?

I checked #23 but this seems to be unrelated given that the app is active and running in the foreground with the screen unlocked

From: Balthazar Gronon<EMAIL_ADDRESS>Sent: Thursday, September 21, 2017 5:50:28 PM
To: Apercu/react-native-zeroconf
Cc: Rohail Altaf; Author
Subject: Re: [Apercu/react-native-zeroconf] Uncaught Unspecified Error Event (-72007) (#45)
Looks like it's related to #23https://github.com/Apercu/react-native-zeroconf/issues/23, is it when you put it to sleep too?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/Apercu/react-native-zeroconf/issues/45#issuecomment-331291911, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFMg53AshDBdmi32AZyVjt-APJkE_Bwaks5sktokgaJpZM4Pf2xx.

Can you take a look at this maybe?

I get this error ever single time I try to use it. Any fix for this yet?

I found this on stack overflow https://stackoverflow.com/questions/10550137/what-cause-error-nsnetserviceserrorcode-72000.
This will tell you what those error codes actually mean. I was getting an error -72004 and that was because I was trying to pass in _http as the type. As soon as I switched that back to http I was able to get data back.
This may help narrow down what is actually happening.

Looks like this error code refers to a timeout. The catch should work however.

The issue situates itself on this line: https://github.com/balthazar/react-native-zeroconf/blob/master/src/index.js#L28
The err variabel is a string. However, when emitting an error event, the expected value is an Error object. This is asserted in the EventEmitter code (see: https://github.com/nodejs/node/blob/908292cf1f551c614a733d858528ffb13fb3a524/lib/events.js#L187).
I'll open a PR to fox this.

Nevermind, I was on the wrong track. Apparently it is intended that the error is thrown... however it's not right that the error can't be catched. Is this due to EventEmitter being addressed directly instead of just throwing the error?
Isn't the proper fix to not use the EventEmitter & just throw a regular error in JS? This wat it can be catched...
/cc @balthazar

@balthazar This fundamentally explains the issue why the errors can't be catched:
  setTimeout(() => {
    throw new Error("Won't be catched");
  }, 1000);
  throw new Error("Will be catched");
}
catch (e) {
  console.log("An error occured: " + ); // Will only execute for "Will be catched"
}```

With the difference that the `setTimeout` in the above example is actually an asynchronous event handler (registered on DeviceEmitter)  in the zeroconf library.

Has there been a resolution to this problem?

Did a PR for this bug. @balthazar if you could give a review, it would be better


Update README.md

the creator of the llu client made a specific thread for his solution. There the info is way more up to date.

I wasn't able to merge your request because of conflicts, caused by your previous request. I added the new url anyways (manually). Thank you for your contribution.


TOMEE-2870 Translate to Portuguese: examples/mp-metrics-timed

link to jira : https://issues.apache.org/jira/browse/TOMEE-2870

thanks @willesreis and @cesarhernandezgt  for review .

thanks.


Fix compiler warnings in generated code

Warnings in the generated code makes it difficult to find warnings in user
code.
Tested with ghc 7.8.4, 7.10.3 and 8.0.1.

Thanks!


Delete code that resets metrics to zero

This PR removes the code that resets all metrics to zero in _runtask(). This has been a TODO for a while, although it has some interesting implications that will probably require discussion.
I think the main reason we should get rid of this code is that it feels a little "unsafe", and can mask a lot of issues. I made the change now because I got bit by this: the goal for many metrics is to be zero, but if we reset metrics to zero to begin with that could make us inadvertently think that we've hit zero even if the metric isn't supported by a tool, or worse, if there's a bug in a tool's post_process() driver that causes the metric to not get set.
These are the main choices I made here:

Unset metrics have None values
In summary(), all unset metrics get displayed as ---
If a tool doesn't set errors for a certain step, we always continue to the next step (as if there are no errors)
In _minmax(), it is now an error if a metric value is unset for something that we have a weight or goal for

A knock-on change for this is that the asicflow needs to be more conservative about which metrics we set weights/goals for, and select them by node - Yosys extracts fewer metrics than OpenROAD.

In summary(), only display metrics that have non-zero weights or have a value set (before we'd display anything with a weight set, but chip.node() sets the weights of everything to zero by default. This resulted in a lot of meaningless stuff like LUTs, BRAMs, etc. getting displayed, so the summary() is a lot shorter now

While I was working on this, I also took the chance to implement metricoff.
Here's a before and after of the summary for GCD:
Before
                   import0        syn0     floorplan0     physyn0        place0         cts0         route0        dfm0        export0
 errors               0            0            0            0             0             0             0            0             0
 warnings             10           74           1            0             1             4             1            0             1
 drvs                 0            0            0            0             0             0             0            0             0
 unconstrained        0            0            0            0             0             0             0            0             0
 coverage            0.0          0.0          0.0          0.0           0.0           0.0           0.0          0.0           0.0
 security            0.0          0.0          0.0          0.0           0.0           0.0           0.0          0.0           0.0
 luts                 0            0            0            0             0             0             0            0             0
 dsps                 0            0            0            0             0             0             0            0             0
 brams                0            0            0            0             0             0             0            0             0
 cellarea            0.0         414.96       415.0        415.0         485.0         494.0         494.0        494.0          0.0
 totalarea           0.0          0.0        6916.67      6916.67        6062.5        6175.0        6175.0       6175.0         0.0
 utilization         0.0          0.0          6.0          6.0           8.0           8.0           8.0          8.0           0.0
 peakpower           0.0          0.0        0.000188     0.000188      0.000205      0.000277      0.000289     0.000291        0.0
 averagepower        0.0          0.0          0.0          0.0           0.0           0.0           0.0          0.0           0.0
 dozepower           0.0          0.0          0.0          0.0           0.0           0.0           0.0          0.0           0.0
 idlepower           0.0          0.0          0.0          0.0           0.0           0.0           0.0          0.0           0.0
 leakagepower        0.0          0.0        8.69e-06     8.69e-06      1.12e-05      1.17e-05      1.17e-05     1.17e-05        0.0
 sleeppower          0.0          0.0          0.0          0.0           0.0           0.0           0.0          0.0           0.0
 irdrop              0.0          0.0          0.0          0.0           0.0           0.0           0.0          0.0           0.0
 holdpaths            0            0            0            0             0             0             0            0             0
 setuppaths           0            0            0            0             0             0             0            0             0
 holdslack           0.0          0.0          0.0          0.0           0.0           0.0           0.0          0.0           0.0
 holdwns             0.0          0.0          0.0          0.0           0.0           0.0           0.0          0.0           0.0
 holdtns             0.0          0.0          0.0          0.0           0.0           0.0           0.0          0.0           0.0
 setupslack          0.0          0.0          0.11         0.11          0.11          0.11          0.11         0.11          0.0
 setupwns            0.0          0.0          0.0          0.0           0.0           0.0           0.0          0.0           0.0
 setuptns            0.0          0.0          0.0          0.0           0.0           0.0           0.0          0.0           0.0
 macros               0            0            0            0             0             0             0            0             0
 cells                0           250          250          250           305           310           1838         1838           0
 registers            0            0            0            0             0             0             0            0             0
 buffers              0            0            0            0             0             0             0            0             0
 transistors          0            0            0            0             0             0             0            0             0
 pins                 0            0            54           54            54            54            54           54            0
 nets                 0            0           321          321           376           381           381          381            0
 vias                 0            0            0            0             0             0            2167          0             0
 wirelength          0.0          0.0          0.0          0.0           0.0           0.0          6342.0        0.0           0.0
 overflow             0            0            0            0             0             0             0            0             0
 memory          37675008.0   31150080.0   77643776.0   78372864.0   108986368.0   100888576.0   743215104.0   91213824.0   366252032.0
 exetime             0.41         0.71         0.31         0.31          0.62          1.86          3.49         0.41          0.95
 tasktime            0.43         0.88         0.49         0.49          0.8           2.05          3.7          0.66          1.2
 totaltime           0.0          0.0          0.0          0.0           0.0           0.0           0.0          0.0           0.0
---------------------------------------------------------------------------------------------------------------------------------------

After
                  import0        syn0     floorplan0     physyn0        place0        cts0         route0        dfm0        export0
 errors              0            0            0            0             0            0             0            0             0
 warnings            10           74           1            0             1            4             1            0             1
 cellarea           ---         414.96       415.0        415.0         485.0        494.0         494.0        494.0          ---
 totalarea          ---          ---        6916.67      6916.67        6062.5       6175.0        6175.0       6175.0         ---
 utilization        ---          ---          6.0          6.0           8.0          8.0           8.0          8.0           ---
 peakpower          ---          ---        0.000188     0.000188      0.000205     0.000277      0.000289     0.000291        ---
 leakagepower       ---          ---        8.69e-06     8.69e-06      1.12e-05     1.17e-05      1.17e-05     1.17e-05        ---
 setupslack         ---          ---          0.11         0.11          0.11         0.11          0.11         0.11          ---
 setupwns           ---          ---          0.0          0.0           0.0          0.0           0.0          0.0           ---
 setuptns           ---          ---          0.0          0.0           0.0          0.0           0.0          0.0           ---
 cells              ---          250          250          250           305          310           1838         1838          ---
 pins               ---          ---           54           54            54           54            54           54           ---
 nets               ---          ---          321          321           376          381           381          381           ---
 vias               ---          ---          ---          ---           ---          ---           2167         ---           ---
 wirelength         ---          ---          ---          ---           ---          ---          6342.0        ---           ---
 memory         37019648.0   30961664.0   89178112.0   87740416.0   148115456.0   98963456.0   748228608.0   90595328.0   367001600.0
 exetime            0.41         0.71         0.41         0.41          0.62         1.96          3.42         0.41          1.09
 tasktime           0.43         0.9          0.62         0.62          0.82         2.16          3.66         0.66          1.31
---------------------------------------------------------------------------------------------------------------------------------------

This is a fantastic change! Ready to merge?

Yes, good to go!

This should be good to merge now!


The utility task might get stuck when run on a single thread

Describe the bug
This is probably due to https://github.com/go-task/task/issues/715
Version
main
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Anything else?
No response

@kami619 - I needed to revert the changes to the Taskfile.yaml as it lead to execution of the split.sh concurrently, and this turned out to modify files concurrently. I updated the docs that now state:

Until this has been fixed, whenever running with the parameter -C 1, comment out all run: once and run: when_changed within the task file.

:-(


[UT] Allow different output depending on downsample average order

Avoid X86_ASM ifdef.
https://rbcommons.com/s/OpenH264/r/1640/

Please help to fix the conflicts, thanks.


Update gradlew scripts

I learned the other day that when you update the gradle wrapper version, you should also run ./gradlew wrapper to update its scripts.

:+1:


Dead link

The link https://github.com/tamasfe/taplo/tree/master/schemas mentioned on https://taplo.tamasfe.dev/configuration/#schemas is 404.

Thank you, this should be solved with the new website.


Rectify path and command in README

Closes #19.

Great job @guilhermeportela ! I didn't even notice this when I read it. Glad you were looking more carefully!


MatFormField hint and error alignment wrong when using a matPrefix icon

Bug, feature request, or proposal:
Bug
What is the expected behavior?
Hint and error text are horizontally aligned with input text and both are indented if a matPrefix icon is present.
What is the current behavior?
The hint and error text are never indented when matPrefix is used.
What are the steps to reproduce?
https://stackblitz.com/edit/angular-h1lpum?embed=1&file=app/form-field-appearance-example.html
What is the use-case or motivation for changing an existing behavior?
Material Design guidelines are not being followed.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 6.0.5, Angular Material 6.2.1
Is there anything else we should know?
The alignment spec is not explicitly mentioned, but the anatomy diagram is clear: https://material.io/design/components/text-fields.html#anatomy.

It would be nice if this were optional. In my case I have a narrow input and need the full width for the hint an error, so I'm happy with it the way it is now.


Pushing to enable viewing of Lab06 progress for class code review.

Available to view for you to get your Code Review in, Eila.

Hi Gabe,
I looked through your code, and everything looks great code practice wise. One of the first things I noticed is that your var  connectionString code block in program.cs is in the wrong spot. Be sure to place it right under the builder.Services.AddControllersWithViews(); statement when you get to that point. Also I noticed that your appsettings.Development is saved to your repository. That means I could see your password if you had it written there. You'll have to make github ignore that file somehow. I made that same mistake.
Other than those things, your code is just incomplete. Be sure to watch the Adding DB to BookReviews video that Brian posted. It was very helpful to me for getting caught up. I appreciate you getting this pull request out to me even if you didn't have lots done. I wish you luck with your Lab, you can do it!
-Eila

Thanks for the pointers! I went ahead and fixed those things and got caught up on this lab. I appreciate the code review despite me not being finished 👍🏼


currency convertor

Idea 💡: -
Idea is to create a program to automate the process of converting currency so that we don't have to do the maths manually.

How it would program look like ?

users can convert any currency to any currency.

example: user can convert to from rupees  to euro.
users can convert dollar to rupees.

users can convert to specific currency to specific currency.

example: users can only  convert rupees to dollar

@vivek80801 the idea is just a basic outline of what to make. rest is totally up to one who want to create it. I am keeping it such that programmers of different skill level can contribute to the repo.
this means both of the following programs that you suggested would work.

@Arsenic-ATG Can I work on this?

@Roshaen ok I am assigning you this issue and will be waiting for your PR 🙂

@Arsenic-ATG Can I make this as a web app?

@Roshaen why not, go for it.

This issue is still open for others to contribute to any other language

opened pull request


jsdom causing startup fail on locally served

There seems to be a problem with jsdom
Repro steps below. Anyone have any ideas?
matt$ npm install -S tilestream
matt$ cd node_modules/tilestream
matt$ ./index.js start

/some-path-blah-blah/TileStream-XSViewer/node_modules/tilestream/node_modules/bones/node_modules/jquery/node_modules/jsdom/lib/jsdom/browser/Window.js:39
  this._globalProxy = vm.runInContext("this", this);
                         ^
TypeError: needs a 'context' argument.
    at new Window (/some-path-blah-blah/TileStream-XSViewer/node_modules/tilestream/node_modules/bones/node_modules/jquery/node_modules/jsdom/lib/jsdom/browser/Window.js:39:26)
    at Object.exports.jsdom (/some-path-blah-blah/TileStream-XSViewer/node_modules/tilestream/node_modules/bones/node_modules/jquery/node_modules/jsdom/lib/jsdom.js:46:16)
    at create (/some-path-blah-blah/TileStream-XSViewer/node_modules/tilestream/node_modules/bones/node_modules/jquery/node-jquery.js:5:39)
    at /some-path-blah-blahTileStream-XSViewer/node_modules/tilestream/node_modules/bones/node_modules/jquery/node-jquery.js:9065:18
    at Object.<anonymous> (/some-path-blah-blahTileStream-XSViewer/node_modules/tilestream/node_modules/bones/node_modules/jquery/node-jquery.js:9067:2)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

Stick with node v0.10.x and the version of jsdom should work.

Ah, ok. Might be an issue with my other stuff but I'll give it a go. Thanks!

I spoke too soon. I'm using node v0.10.32. Do I need to go even earlier?

try applying this patch (which hit tilemill recently): https://github.com/mapbox/tilemill/commit/a4e35a6c437da7499e4795e58d7c663bcb3424ca#diff-b9cfc7f2cdf78a7f4b91a753d10865a2

Ok, that seemed to work. Because the dependency is nested inside Tilestream -> bones -> jquery -> jsdom I had to manually copy it in there but now it seems to be working on my local system.
Thanks for the workaround.


Hiframes call refactor

Coverage decreased (-0.03%) to 82.628% when pulling b14a8c1f70c83ae7305e5e51fd1a6371a7da5309 on hiframes_call_refactor into 05a88b4d180cea955d6b4dd8aa027c831fe2a371 on master.


CameraWithCVAndCalibration not working!

Hello,
I've been trying to get the CameraWithCVAndCalibration sample to work for the past two days. However I still haven't succeded yet.
Opening the sln-file I got the error: LNK1104 cannot open file 'opencv_world412d.lib' 	so I manually added the path to the .lib-file under Properties->Configuration Properties->VC++ Directories->Library Directories.
Trying to deploy the project to HoloLens2 as Debug|ARM64 configuration results in the following two errors:

And yes I did use git lfs clone to clone the repository!
Can anyone please help me? I spend hours trying to figure out where things went wrong and still have no clue... I tried out different PC's and even factory resetted my HoloLens2. Other examples work just fine but I can't get this to work.
Thanks in advance!

Edit: The console shows the following output. Could it be that there might be a dll reference missing?

I have the same issue

I have the same issue too.

Update: Checking out an earlier version of this repository solved the issue for me! I checked out commit 41ec9e542a7a84b3a68e5089b9906864bc7c526a which contains the missing lib files in the staticlib folder.
Please fix this!

Update: Checking out an earlier version of this repository solved the issue for me! I checked out commit 41ec9e5 which contains the missing lib files in the staticlib folder.
Please fix this!

I'vs also solved this problems through this method !!!!

Thanks a lot for the solution. Don‘t understand why the authors delete the library.

Downloading the previous commit didn't help with the OpenCV lib issue. :/ Could anyone clarify how they got the CameraWithCVAndCalibration app to work?
Thank you in advance!

Downloading the previous commit didn't help with the OpenCV lib issue. :/ Could anyone clarify how they got the CameraWithCVAndCalibration app to work? Thank you in advance!

Have you solved it? I have the same problem?

the commit 41ec9e5  did work!!!

the commit 41ec9e5  did work!!!

Thanks for the pointer for using this older commit. Hope the fixing PR https://github.com/microsoft/HoloLens2ForCV/pull/120 gets merged soon.
I'm able to build the app now, but get the following run time error after deploying to my HL2:
Exception thrown at 0x00007FFD9D8C5E5C (KernelBase.dll) in CameraWithCVAndCalibration.exe: WinRT originate error - 0x8000FFFF : 'Catastrophic failure'.
Exception thrown at 0x00007FFD9D8C5E5C in CameraWithCVAndCalibration.exe: Microsoft C++ exception: winrt::hresult_error at memory location 0x00000021234FD290.

Anyone else has this problem.

@friederwC I had the same problem. I realized research mode was not enabled on my HoloLens 2. Make sure you have research mode enabled.


Some unary expressions failing

It appears unary expressions such as '+' and '-' work well for numbers.  However, the current implementation does not working for function calls or variables (see examples below).
a = 123.0 + -func()
a = 123.0 + -func

This issue is considered resolved with PR #43 merged to dev.


Calling a javascript function from python code?

I'm trying to embed the Ace Editor in my application.
https://ace.c9.io/#nav=embedding
with the following script in head_html, I just need to call the create_editor and destroy_editor functions with the appropriate strings.
Is there a way to invoke a JS function from the python backend?
<script src="/static/ace-builds/src-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
<script>
    window.all_editors = {};
    function create_editor(element_id) {
        var editor = ace.edit(element_id);
        editor.setTheme("ace/theme/monokai");
        editor.session.setMode("ace/mode/markdown");
        window.all_editors[element_id] = editor;
    }
    function destroy_editor(element_id) {
        window.all_editors[element_id].destroy();
        delete window.all_editors[element_id];
    }
</script>

No, there is no way to invoke a JavaScript function from the backend. I'll add that as a feature suggestion.
However, in this case there is a workaround that may partially work (you need version 0.0.7).
Using body_html (https://justpy.io/reference/webpage/#head_html-and-body_html ) insert a div with your unique id (just don't use an integer string) and after it insert also the script tag running the function create_editor on that div.

So this enhancement was very simple to implementand I added it to version 0.0.8 (coming out Monday).
I added a method to the WebPage class called run_javascript. It accepts as an argument a string with JS code.
This is the test example:
import justpy as jp

async def my_click(self, msg):
    await msg.page.run_javascript("""
    for (var i = 0; i<10; i++) {
        console.log('Line: ' + i);
        }
    """)

def javascript_test():
    wp = jp.WebPage()
    d = jp.Div(a=wp, classes='m-2')
    b = jp.Button(text='Run Script', a=d, classes=jp.Styles.button_simple, click=my_click)
    return wp

jp.justpy(javascript_test)

Thanks for the speedy fix ^_^

Please upgrade to version 0.0.8 and let me know how this works for you.

Please upgrade to version 0.0.8 and let me know how this works for you.

Works, but a little difficult to use. If I'm in an event handler, I can get the page instance from the msg.
However, I am really looking for calling the JS code when my component has been rendered (so in the __init__ function).
For this, I need to explicitly pass the current webpage instance into the __init__ of every component.
It works, but is not the prettiest of solutions :D

The cleanest way to solve this problem I think is to have WebPage events that can be captured, like page ready that will fire once the Websocket connection is in place. Then you could run JavaScript from within event handlers for these events.

If you are building a custom element, then you can use the Vue life cycle hooks such as mounted.

If you are building a custom element, then you can use the Vue life cycle hooks such as mounted.

At present, I've simply added the run_javascript call in the event handler, since I want an Ace editor to be added to the page when a particular button is clicked.
I guess I will have to build a Vue component as well if I wish to do anything more complicated. :)

I'll probably add a page loaded event which will fire when the Websocket connection is established.


Ubuntu OVA credentials for scan

Our bank customer is trying to scan Ubuntu OVA with Kubernetes 1.22 that I downloaded from artifacts before using it for security purpose.
For scanning, it should be created on VMWare environment and normally asking for credentials.
It was not including ubuntu user and root user password (blank) didn't work.
So I couldn't access to OVA as creating VM and scan it properly.
Is there any way to achieve that?

The Ubuntu OVAs do not have the root credentials on them. I'd suggest to create a VM using the template and before booting up, to construct a cloud-config with ssh keys, base64 encode it and attach it to the VM's userdata using govc commands. Booting the VM now would write the ssh key that should let you into the OS.
Example for cloud-config
## template: jinja
#cloud-config

users:
  - name: capv
    sudo: ALL=(ALL) NOPASSWD:ALL
    ssh_authorized_keys:
      - ssh-rsa ****

You should also have a metadata template, that you can use to inject networking details.
instance-id: "scan"
local-hostname: "scan"
wait-on-network:
  ipv4: true
  ipv6: false
network:
  version: 2
  ethernets:
    id0:
      match:
        macaddress: $MACADDRESS
      set-name: "eth0"
      wakeonlan: true
      dhcp4: true
      dhcp6: false

GOVC Commands:
govc vm.clone  -on=false -vm <template> -folder <folder path> <vm name>
govc vm.change -vm <vm name> -e guestinfo.userdata="$(base64 <user-data file path>)" -e guestinfo.userdata.encoding="base64"
govc vm.change -vm <vm name> -e guestinfo.metadata="$(MACADDRESS=$(govc device.info -vm <vm name> -json ethernet-0 | jq ".Devices[0].MacAddress") envsubst < <meta-data file path> | base64)" -e guestinfo.metadata.encoding="base64"
govc vm.power -on <vm name>

This should start the VM and let you ssh into the VM as the user specified on the cloud-config. This above commands will create the vm, attach user-data and meta-data and start the vm.


Is there any reference code to generate kitti dataset annotation?

I ran project on kitti mot dataset, but the result was not as expected. I guess maybe the generation of kitti dataset annotation was not correct. As described in the project, we need the following annotations which should be converted from original dataset.
'rgb': 'data/kitti_demo/rgb/xxx.png',
'depth': 'data/kitti_demo/depth/xxx.png',
'depth_scale': 1000.0 # the depth scale of gt depth img.
Could anyone share some information on how to do that?

I ran project on kitti mot dataset, but the result was not as expected. I guess maybe the generation of kitti dataset annotation was not correct. As described in the project, we need the following annotations which should be converted from original dataset. 'rgb': 'data/kitti_demo/rgb/xxx.png', 'depth': 'data/kitti_demo/depth/xxx.png', 'depth_scale': 1000.0 # the depth scale of gt depth img.
Could anyone share some information on how to do that?

The depth scale should never be 1000.0 for kitti. It is 256.0 because we use original KITTI Depth datasets (eigen splits) for fine-tuning and testing.

I ran project on kitti mot dataset, but the result was not as expected. I guess maybe the generation of kitti dataset annotation was not correct. As described in the project, we need the following annotations which should be converted from original dataset. 'rgb': 'data/kitti_demo/rgb/xxx.png', 'depth': 'data/kitti_demo/depth/xxx.png', 'depth_scale': 1000.0 # the depth scale of gt depth img.
Could anyone share some information on how to do that?

The depth scale should never be 1000.0 for kitti. It is 256.0 because we use original KITTI Depth datasets (eigen splits) for fine-tuning and testing.

您好，the depth scale意味着什么，我现在想用metric3d在我自己的数据集上做video metric depth estimation任务，我是室外的数据集，我可以按照kitti的形式生成一个json文件么，这个depth scale该怎么定，以及想问下哪个预训练模型效果针对室外自动驾驶数据集效果更好一点，可以使用和kitti测试脚本中一样的设置么，convlarge_hourglass_0.3_150_step750k_v1.1.pth


Weave net plugin PoC.

There is few bits missed here, specially for weave due to other software needing to be aware of weave proxy.
Opening this just as an starting point for a discussion about networking and cloud-config vs ansible

closing this on favour of https://github.com/Capgemini/kubeform/pull/43


feat(refinementlist): lets configure showmore feature FIX #401

The API changed slightly from the original proposition; It still adds a new object in the configuration of the refinementlist, but the attributes are :

limit : for the max number of items when showing more
templates :
active: when showing more
inactive: when showing less
and it reuses the currently implemented limit parameter .

@bobylito I believe you only miss a test for the new option in the widget test

Updated with some tests, and the few comments to be taken care :)

need rebase (maybe because of urlsync merge?)

Erf done! :)

LGTM


[FEATURE] Harvester UI plugin

Is your feature request related to a problem? Please describe.

https://github.com/rancher/dashboard/issues/4109
Describe the solution you'd like

Describe alternatives you've considered

Additional context

Test plan

Regression test of Rancher v2.6.9 integrate with Harvester v1.1.0

Access Harvester cluster from Rancher
RBAC related Harvester permission on Harvester

Regression test of Rancher v2.6.9 integrate with Harvester v1.0.3

Access Harvester cluster from Rancher
RBAC related Harvester permission on Harvester

Test plan stated in https://harvester.github.io/tests/manual/harvester-rancher/

Both test plan should be verified in Rancher v2.6.9-rc2, so this issue still pending on Rancher's docker image release

Verified this feature has been implemented.
https://user-images.githubusercontent.com/5169694/192982019-616e6e23-281a-4e93-a018-f6fc3ed5840e.mp4
Test Information

Environment: baremetal DL360G9 4 nodes and qemu/KVM 2 nodes
Harvester Version: master-7dd398f0-head and v1.0.3
ui-source Option: External and Bundled
Rancher Version: v2.6.9-rc2
Rancher ui-offline-preferred: Dynamic

Verify Steps:

Install Rancher v2.6.9-rc2
Navigate to Virtualization Management, Import Existing Harvester
Harvester should imported successfully
Access Harvester by Rancher's Virtualization Management
Harvester's dashboard pages should display correctly
Create an image for VM then create a VM from it
Page's state (viewing from Rancher) should synced with Harvester Dashboard


Clean unit tests

Remove all warning messages from Vue in unit tests

Current coverage is 86.60% (diff: 100%)

Merging #103 into develop will decrease coverage by 0.15%

@@            develop       #103   diff @@
==========================================
  Files           110        110
  Lines          1805       1806     +1
  Methods          56         56
  Messages          0          0
  Branches        138        138
==========================================
- Hits           1566       1564     -2
- Misses          190        193     +3
  Partials         49         49

Powered by Codecov. Last update 573341b...e3bc931

+1 well done


[BUG - Release] Tower Of Fantasy: Game crash on startup

Branch or Release
zDEV-UE4SS v3.0.1
Game and Engine Version
Tower Of Fantasy - UE v4.26.2
Describe the bug
Out of the box UE4SS do not find GUObjectArrray and FText, so i had to find and use them like it says here. After i do that and try to run the game with UE4SS attached the PS Scan passes but the game crash when UE4SS starts the LUA scan.

The FText_Constructor one is suspiciously short, it doesn't look unique, which means it might find all sorts of unrelated functions which definitely can cause crashes.
Other than that, GUObjectArray could be wrong, that will cause a crash regardless of the uniqueness of the AOB.
Unfortunately I don't have this game so I can't check for myself.

oh i see, i will check and make sure to find the correct AOBs. Also i am relatively new in this world of reversing engineering games, so thanks for your patience and i would like to ask if there is a guide or a doc that tells me exactly what bytes from what assembly code should i take, especially for FText, because from what i find on the internet i really didn’t understand if i was doing it right or not. Thanks again

i would like to ask if there is a guide or a doc that tells me exactly what bytes from what assembly code should i take, especially for FText, because from what i find on the internet i really didn’t understand if i was doing it right or not. Thanks again

I'm not aware of what else is out there but the only guide we have is this one: https://docs.ue4ss.com/dev/guides/fixing-compatibility-problems.html#how-to-find-aobs

yeah i used that guide but i didnt really understand what bytes should i take to make ue4ss works. could you provide me an example of a GUObjectArray and FText AOBs

Here's a quick & dirty explanation with a few screenshots.
GUObjectArray
Attach to your blank game that has a PDB and open x64dbg, and go to the Symbols tab.
It can take a few minutes for the PDB to load, so just wait a while.
Once it's loaded, locate your game exe in the left pane (for me: ue4ss_main51-win64-shipping.exe) and click it.
It might take a while for the symbols to load into the right pane.
Once it's loaded, search for GUObjectArray, for me it looks like class FUObjectArray GUObjectArray.
Right click it and choose Follow in Dump, that should take you to the CPU tab and your Dump tabs are at the bottom of that tab.
Right click the top of that Dump window and select Find References:

You should now have a list of references to the address of GUObjectArray.
Choose any one of them, as long as it's an LEA instruction.
For example:

Select a few lines, go to Plugins at the top menu and then SwissArmyKnife->Signature->Create:

In the window that opens, select PEID and then copy all of the bytes in the Data field and save it somewhere.
This is the AOB that you will search for in your game (Tower Of Fantasy in your case).
Searching for it in your game is done by attacthing to it with x64dbg just like you did with your blank game, and then going to the symbols tab and double clicking the game exe, that will take you to the CPU tab inside the game module.
From here, you can use the same SwissArmyKnife plugin to search for the AOB, just do the same thing you did when creating an AOB except replace the data field with the AOB you saved from before and hit Scan.
It can take a lot of messing around with different AOB locations (meaning the search results from your blank game, the first LEA result might not be found in your game, so try another result) and/or shortening/lengthening the AOB before you find something that exists in your game.
Once you've found it in your game, this Lua script should work:
function Register()
    return "put AOB here leading to an LEA instruction for GUObjectArray"
end

function OnMatchFound(MatchAddress)
    local LeaInstr = MatchAddress
    local NextInstr = LeaInstr + 0x7
    local Offset = LeaInstr + 0x3
    local AddressLoaded = NextInstr + DerefToInt32(Offset)
    return AddressLoaded
end

FText_Constructor
Repeat the same as above until you get to the symbol search part, and this time search for FText::FText instead, and you're looking for FText::FText(class FString & ptr64).
It's important that the only param is const FString & ptr64.
There will likely be more than one result, but there should only be one that takes an FString& as the only param.
Right click it, and this time choose Follow in Disassembler instead of Follow in Dump.
Select a few lines, and go to the Plugins menu and create an AOB as you did before.
From here, the procedure is the same as GUObjectArray except you need to use this Lua script instead:
function Register()
    return "put AOB here leading to FText::FText"
end

function OnMatchFound(MatchAddress)
    return MatchAddress
end

Additional notes
For both of these, you need to make sure that your signature is unique enough.
To do that, when you open the SwissArmyKnife->Signature->Create window, hit the Scan button and it will scan the entire module for the AOB and you can see in the bottom of the program how many results were found or by clicking the References tab.
Ideally you want only one result, and to achieve this, you might need to select a lot of lines, not just two or three.

OMG, finally a fast concise tutorial on how to find those AOBs, now UE4SS find addresses, but the game still crash at startup.
UE4SS.log
[2024-03-26 16:54:13] Console created
[2024-03-26 16:54:13] UE4SS - v3.0.1 Beta #0 - Git SHA #d935b5b
[2024-03-26 16:54:13] UE4SS Build Configuration: Game__Shipping__Win64 (MSVC)
[2024-03-26 16:54:13] Setting up mods...
[2024-03-26 16:54:13] Starting mods (from mods.txt load order)...
[2024-03-26 16:54:13] Starting mods (from enabled.txt, no defined load order)...
[2024-03-26 16:54:13] No specific game configuration found, using default configuration file
[2024-03-26 16:54:13] Config: C:\Users\NAME\Desktop\TOF_modding\UE4SS\UE4SS-settings.ini

[2024-03-26 16:54:13] root directory: C:\Users\NAME\Desktop\TOF_modding\UE4SS
[2024-03-26 16:54:13] working directory: C:\Users\NAME\Desktop\TOF_modding\UE4SS
[2024-03-26 16:54:13] game executable directory: D:\Games\Tower Of Fantasy\Hotta\Binaries\Win64
[2024-03-26 16:54:13] game executable: D:\Games\Tower Of Fantasy\Hotta\Binaries\Win64\QRSL.exe (89448904 bytes)

[2024-03-26 16:54:13] mods directory: C:\Users\NAME\Desktop\TOF_modding\UE4SS\Mods
[2024-03-26 16:54:13] log directory: C:\Users\NAME\Desktop\TOF_modding\UE4SS
[2024-03-26 16:54:13] object dumper directory: D:\Games\Tower Of Fantasy\Hotta\Binaries\Win64

[2024-03-26 16:54:13] PS Scan attempt 1
[2024-03-26 16:54:13] [PS] Reading image
[2024-03-26 16:54:13] [PS] Starting scan
[2024-03-26 16:54:14] [PS] Scan finished in 921.7423ms
[2024-03-26 16:54:14] [PS] Found EngineVersion: 4.26
[2024-03-26 16:54:14] [PS] Found GMalloc: 0x7ff7c9551a28
[2024-03-26 16:54:14] [PS] Found FName::ToString: 0x7ff7c3588300
[2024-03-26 16:54:14] [PS] Found FName::FName(wchar_t*): 0x7ff7c3572340
[2024-03-26 16:54:14] [PS] Found StaticConstructObject_Internal: 0x7ff7c3791380
[2024-03-26 16:54:14] PS scan successful
[2024-03-26 16:54:14] Running second pass of Lua override scans
[2024-03-26 16:54:14] Lua Scan attempt 1
[2024-03-26 16:54:14] GUObjectArray address: 0x7ff7c9792928 <- Lua Script
[2024-03-26 16:54:14] FText::FText address: 0x7ff7c346ff70 <- Lua Script

Is there a .dmp file in the Win64 directory ?

yes is inside one folder called TQM64 which is related directly to a service used by the game. Here's the .dmp file
GbDump.GbS.1711472601.dmp.gz

That's not relevant to this unfortunately.
I can think of three things that could be causing this crash.
A. One or both the AOBs are still wrong.
B. The game has made some custom changes to engine vtables that UE4SS relies on.
C. The game has made some custom changes to the memory layout (i.e. adding/removing properties) of classes that UE4SS relies on.
Unfortunately I don't have this game so without a crash dump, I can't properly debug this.

mhhhh, if i search on CE with the FText Sig, nothing is being found. Propably that AOB is still wrong even if UE4SS found the address

This game has modified UE, you probably need to fix VTables and stuff.

no problems about the anti-cheat because i found a way to bypass it, the problems are with VTables because i do not know know to fix them

Oh this is an online only game it seems.
We don't support online only games.

Well thanks again, i learnt new things with your support

Where can I search for GUObjectArray? Sorry, I'm new to X64dbg. Is it possible to take a screenshot and demonstrate it?


Parser fails on >=>

Parser fails to parse Kleisli combinator: http://scalex.org/?q=>%3D>
Parsing of reverse combinator works: http://scalex.org/?q=<%3D<

fixed http://scalex-web/?q=>%3D>


GazeProgressEventArgs should be DwellProgressEventArgs

In the Examples section talking about Animations, the example for disabling default animation shows the use of GazeProgressEventArgs, which doesn't seem to exist. Should be DwellProgressEventArgs.

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

ID: 95a83209-ec0a-81dc-03fd-60f113ac2318
Version Independent ID: 05034b89-f3a1-a2a9-f8e3-94e31ae4d782
Content: Gaze Interaction Library - Windows Community Toolkit
Content Source: docs/gaze/GazeInteractionLibrary.md
Product: community-toolkit
GitHub Login: @harishsk
Microsoft Alias: nikolame

ping @harishsk, @peteams

Fixed in #161


Cache bundle gems not working

Since getting OS name from /etc/os-release  and saving to the bundle's folder is always failed, this causes caching bundle gems not working.

We should also use below cache key for the actions/cache.
# Use GitHub Actions' cache to cache dependencies on servers
- uses: actions/cache@v2
  with:
    path: vendor/bundle
    key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}-${{ hashFiles('**/os-name') }}
    restore-keys: |
      ${{ runner.os }}-gems-

We can use a VERSION secrect for updating the cache as below code snippet.
# Use GitHub Actions' cache to cache dependencies on servers
- uses: actions/cache@v2
  with:
    path: vendor/bundle
    key: ${{ runner.os }}-gems-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/Gemfile.lock') }}
    restore-keys: |
      ${{ runner.os }}-gems-


Update images for model bamf_nnunet_mr_liver

The sample screenshots for the below test case attached as zip file. Please update this under bamf_nnunet_mr_liver page
Archive.zip

could you update this please?

Done, thx for the reminder!


pg_hint_plan does not work

Steps to reproduce
create extension pg_hint_plan;
create table t1(id int);
create table t2(id int);
create table t3(id int);
create table t4(id int);
/*+Leading( t3 t4 )*/
EXPLAIN (COSTS false) SELECT * FROM t1, t2, t3, t4 WHERE t1.id = t2.id AND t1.id = t3.id AND t1.id = t4.id;

Expected result
Actual result
Environment
Logs, links

I get the same behaviour with Vanilla Postgres.
May be something wrong with the test?

Slack thread -> https://neondb.slack.com/archives/C04DGM6SMTM/p1713280441791079

This is documented: https://github.com/ossc-db/pg_hint_plan/blob/master/docs/installation.md

As discussed, I asked the customer who requested this extension to share further details regarding the final objective.
Our customer reports facing difficulties with a specific query.
I collected the output of an explain analyze of the poor performing query.
Please see: https://neondb.slack.com/archives/C04DGM6SMTM/p1715334366403299?thread_ts=1713280441.791079&cid=C04DGM6SMTM


tf2 Tutorial: tf2 broadcaster (C++)

Has references to https://github.com/ros2/ros2_documentation/pull/1836. Should be merged together
Signed-off-by: Shyngyskhan Abilkassov<EMAIL_ADDRESS>

@mergifyio backport galactic foxy


('Observation ({}) outside given space ({})!' Error when trying to train model

Hi,
I don't have any trouble getting the env viewer to work, but when I try to actually train the models I get issues. When I run the line:
"python3 -m assistive_gym.learn --env "FeedingSawyerHuman-v1" --algo ppo --train --train-timesteps 100000 --save-dir ./trained_models/"
I get an error to do with ray[rllib] that's something like:
"
ray.exceptions.RayTaskError(ValueError): ray::RolloutWorker.par_iter_next() (pid=71524, ip=<IP_ADDRESS>)
File "python/ray/_raylet.pyx", line 505, in ray._raylet.execute_task
File "python/ray/_raylet.pyx", line 449, in ray._raylet.execute_task.function_executor
File "/home/zoe/miniconda3/envs/assistivegymtwo/lib/python3.7/site-packages/ray/_private/function_manager.py", line 556, in actor_method_executor
return method(__ray_actor, *args, **kwargs)
File "/home/zoe/miniconda3/envs/assistivegymtwo/lib/python3.7/site-packages/ray/util/iter.py", line 1152, in par_iter_next
return next(self.local_it)
File "/home/zoe/miniconda3/envs/assistivegymtwo/lib/python3.7/site-packages/ray/rllib/evaluation/rollout_worker.py", line 332, in gen_rollouts
yield self.sample()
File "/home/zoe/miniconda3/envs/assistivegymtwo/lib/python3.7/site-packages/ray/rllib/evaluation/rollout_worker.py", line 706, in sample
batches = [self.input_reader.next()]
File "/home/zoe/miniconda3/envs/assistivegymtwo/lib/python3.7/site-packages/ray/rllib/evaluation/sampler.py", line 96, in next
batches = [self.get_data()]
File "/home/zoe/miniconda3/envs/assistivegymtwo/lib/python3.7/site-packages/ray/rllib/evaluation/sampler.py", line 223, in get_data
item = next(self.rollout_provider)
File "/home/zoe/miniconda3/envs/assistivegymtwo/lib/python3.7/site-packages/ray/rllib/evaluation/sampler.py", line 613, in _env_runner
sample_collector=sample_collector,
File "/home/zoe/miniconda3/envs/assistivegymtwo/lib/python3.7/site-packages/ray/rllib/evaluation/sampler.py", line 808, in _process_observations
policy_id).transform(raw_obs)
File "/home/zoe/miniconda3/envs/assistivegymtwo/lib/python3.7/site-packages/ray/rllib/models/preprocessors.py", line 187, in transform
self.check_shape(observation)
File "/home/zoe/miniconda3/envs/assistivegymtwo/lib/python3.7/site-packages/ray/rllib/models/preprocessors.py", line 68, in check_shape
observation, self._obs_space)
ValueError: ('Observation ({}) outside given space ({})!', array([ 0.74139816, -0.5481506 ,  0.13728762,  0.67066866, -0.0354565 ,
-0.04076764,  0.73978668, -0.25926405, -0.50434195, -0.06268156,
-0.94625477, -0.31422273, -0.55584883,  0.89838678, -0.86592606,
-1.34115179, -1.86178359,  0.97019053,  0.03369198,  0.13699996,
-0.21314327,  0.21102498,  0.05298619,  0.95248669,  0.        ]), Box(-1000000000.0,<PHONE_NUMBER>.0, (25,), float32))
Exception ignored in: <function ActorHandle.del at 0x7f675cd07f80>
"
I'm wondering if I'm using the wrong version of something like rllib or gym?
I'm using python==3.7.10, gym==0.23.1, ray[rllib] == 1.3.0
I've tried other version of these and still get the same error. I'm a bit unsure of how to fix. Any help or guidance would be greatly appreciated!!
Thanks

Hi,
Thanks for the reply!
I've been unable to use Google Colab for a slightly different issue (which I also have when installing everything without Miniconda.) I run into the problem of not having tensorflow = 1.14.0, which I think is required by assistive gym (although I'm not sure), however I can't pip install this version onto my system unless I'm in a virtual environment because it's no longer available. I also can't seem to use this version of tensorflow in google colab.

Any of the colabs that I use seem to have this issue. Installing using a Miniconda virtual environment has been the only way I've gotten the demos to run so far.
Thanks again so much for the help

Okay, it looks like Google Colab has changed their Python version, so I'll need to update Assistive Gym to work for that.
However, on your local machine, I suspect the issue is miniconda.
Could you try pyenv instead? pyenv install 3.7.10; pyenv local 3.7.10 then follow the installation: https://github.com/Healthcare-Robotics/assistive-gym#full-installation-to-editcreate-environments-using-a-python-virtual-environment

Thanks again for your help!
I tried it again with pyenv 3.7.10, but still ran into the same issue unfortunately


map erase error

hello, when I use sl_map :: erase(key) , program stop in skiplist_wait_for_free
how to resolve?

Hi @ggkingdom , sorry for the late reply.
sl_map::erase(...) (skiplist_wait_for_free() especially) waits for all the other threads holding the same key-value pair until they release it, to guarantee thread safety.
If a single thread that is holding an iterator tries to erase it by key, it will be hanging there. Below is a simple example of it:
sl_map<int, int> sl;
...
auto ii = sl.begin(); // now `ii` is holding a key-value pair.
// Below command will wait until there is no reference to `ii->first`,
// but this thread is holding it by `ii`. Hence it will be hanging here forever.
sl.erase(ii->first);

To avoid such case, there are two options:

Release iterator before erasing by key

auto ii = sl.begin();
int key = ii->first;
ii++; // Iterator moved, now no one refers `key`.
sl.erase(key);

Erase by iterator

auto ii = sl.begin();
ii = sl.erase(ii); // Will return the iterator of next key-value.

Maybe I need to make another version of map wrapper that is using lazy garbage collection instead of busy waiting.
Thanks.


on failure, optionally provide data on errors (by row & reason)

at the moment data issues can either cause an Exception or for data to be dropped, depending on args used.
Having a way to get data back on where and why errors occurred across a whole DF would be useful
Thanks!

Hi @hottwaj,
Fully agree. A summary and a better error log printing would be a logical next step to implement. I am currently searching for some spare time but this is on top of the to-do list.
Feel free to give it a try and create a PR if you found a nice solution, or wait till I found some time haah.

@wesselhuising this could be a good (optional) feature as opposed to just skipping rows.
We can have a kwarg like errors="skip"/"raise"/"log" which controls whether to skip or raise. We can also have a logger kwarg, where the users logger can be passed in.

Interesting take on the logger kwargs, I think we should combine both functionality as the logger kwarg part can be considered advanced and for some just the log would be sufficient.

I gave it a start but I stopped at the point as we need to chose on this particular topic. What would the default behavior be when selecting log as the errors method. skip the rows but log them, or raise the error like you would with raiseoption?

@wesselhuising I would say the default for validate() must be raise, as that is the general behavior with validation libraries.
Having skip/log as the optional behavior makes sense. Also, capture these options in an StrEnum if you can.

But for skipping, that would be the future .filter() method, right? So in that case I would just incorperate a boolean over the string option for the error handling for the validate() method. I had a verbose option before but I also could bring it back? So;
validate(verbose: bool = False) and filter(verbose: bool = False) to tackle this but keep the functionality between skipping and raising separated as we discussed.


Update compose for 0.9.9 config

Would it make sense to set defaults for A2S as well?

@Dahlgren @BrettMayson see question above.

Would it make sense to set defaults for A2S as well?

I would say off to minimize the amount of used ports out of the box and it's not required to host a server

Then I would say merge as-is.


Setting width of options

Hi,
I am using dropdown to insert data. But the width of the data is approx 140 px.
I want  tag's width to be 80 px.
Is there a way to set width of the options without affecting the width of the ??
Thank you in advance.

I guess you could play with the CSS. Look into the Multiselect.vue file to see how it is styled.


Index pattern with nested time field

Issue:
When creating an index pattern, a time field must be chosen.  When choosing a nested time field - no matching results can be discovered or aggregated.
Workaround:
A hack is possible by adding a non-nested LastModified field in the mapping (a regular date datatype field), and each time nested document is added, an update operation is made for this field to the current timestamp (now). This way I was managed to filter all my dashboard.

Didn't know there were any limiations uppon index patterns so far - so thanks for letting me know.
In my specific use case, I don't need to create more than 1 index pattern per index. The reason for that is that, unfortuently, I already duplicate the same data to different indices. As of peformance considerations, I maintain periodic indices per different time fields. This  allows me make each search request directly to the relevant indices right away instead of all indices (in price of higher write throughput). So option 1 is great for me, I only need this for dashboards uppon the peridoic indices correlated to my UserActionTime - which is a nested field.
Maybe that's the best-practice for searching through different time fields in general is to index them accordingly. In case of big data sets, that's a must for any search made on ElasticSearch - not only kibana dashboards.
Remark: If, in the futrue, ElasticSearch will support index sort on nested fields - no duplicates will be necessary and then this feature request will need to get higher priority. That's what I believe.

How difficult it is to add this improvement? The logic is already implement, so I guess the current challenge is how to plug it into the time filter. In case the dashboard needs to be periodically update by a nested time filter this feature is a must.
Maintaining a workaround by updating a non nested last update time is quite uncomfortable.

How difficult it is to add this improvement? The logic is already implement, so I guess the current challenge is how to plug it into the time filter. In case the dashboard needs to be periodically update by a nested time filter this feature is a must.
Maintaining a workaround by updating a non nested last update time is quite uncomfortable.


Cant Assign Number BadRequest Telephone Number '+xxx55502600' has already been assigned to another user

Cant assign a phone number, no matter what i do i get this error
Set-CsPhoneNumberAssignment -Identity $Object.ObjectId -PhoneNumber +xxx55502600 -PhoneNumberType DirectRouting
BadRequest Telephone Number '+xxx55502600' has already been assigned to another user
if i do a Get-CsPhoneNumberAssignment -PhoneNumber +xxx55502600 i get this
TelephoneNumber         : +xxx55502600
NumberType              : DirectRouting
ActivationState         : Activated
AssignedPstnTargetId    : c29b96ec-0d16-4a08-a9a1-e8b93cbd3ab1
Capability              : {ConferenceAssignment, VoiceApplicationAssignment, UserAssignment}
CivicAddressId          : 00000000-0000-0000-0000-000000000000
IsoCountryCode          :
LocationId              : 00000000-0000-0000-0000-000000000000
LocationUpdateSupported : True
PortInOrderStatus       :
PstnAssignmentStatus    : VoiceApplicationAssigned
PstnPartnerId           :
PstnPartnerName         :
But i cant find any user  or resource account that is assigned this number
'c29b96ec-0d16-4a08-a9a1-e8b93cbd3ab1' -in (Get-CsOnlineUser -ResultSize<PHONE_NUMBER>).Identity
'c29b96ec-0d16-4a08-a9a1-e8b93cbd3ab1' -in (get-CsOnlineApplicationInstance -ResultSize<PHONE_NUMBER>).ObjectId
I have no idea what object id 'c29b96ec-0d16-4a08-a9a1-e8b93cbd3ab1'  is

@darwincr I think the best approach is for you to open a Microsoft support case and they will work with you to sort out what's going on here.

@darwincr Considering the nature of the issue, as advised, please open a service ticket in your tenant and follow with them for the resolution. We proceed to close it as here we are limited to documentation fixes and improvements only.
We will be very happy if you can share the outcome or resolution with us if you see documentation update is required. We will certainly update this documentation with that valuable information. Thanks again, for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.

I'm having this exact same issue, has Microsoft resolved your issue yet?

@miklak101 please open a Microsoft support case and they will work with you to solve this.

we opened our case two days ago, I was just checking here to see if there was a known fix yet so that the Microsoft engineer working on our case might have something to refer to.

Sorry to hear it is taking so long time. Please tell the support engineer to escalate the case, if not already done.

@darwincr Do you have any input to update the documentation with? Thanks

@darwincr We appreciate any feedback that improves the content in the Microsoft docs but we haven't had any response from you so we are going to close this issue.
Please feel free to re-open this issue if you see an improvement is required in the specific area of this documentation. We will certainly update this documentation with that valuable information. Thanks again, for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.

I just had this issue, had a number assigned to what looked like old auto attendant for EXO UM (not sure how the porting team at MS was able to see this resource account, I could not, just saw that the number was assigned to an identity GUID I could not find).  MS porting team opened an internal ticket with MS support and somehow wacked the stale entry.


MAISTRA-1631 implement SMCP v1 to v2 conversion

These changes are now complete.  There were some minor modifications to some of the structs to make things more consistent.  I haven't tested an install yet, but will give it a go in the morning.

/retest

/retest


Upgrade to 0.11

Closes #137
I'm a bit unsure regarding the code around RustQuery/ToQuerierResult/ToSystemError/ToStdError. It is unclear to me if there is a reliable split between system erros and contract errors, especially since
type Querier interface {
	Query(request QueryRequest, gasLimit uint64) ([]byte, error)
	// ...
}

does not seem to return multi level results.

This should close https://github.com/CosmWasm/go-cosmwasm/issues/134 as well, as that was addressed in cosmwasm 0.11 https://github.com/CosmWasm/cosmwasm/pull/521/files
I think this needs testing with wasmd, but I would make that fix, merge, and label an alpha, so I can start proper wasmd integration testing.

I'm a bit unsure regarding the code around RustQuery/ToQuerierResult/ToSystemError/ToStdError. It is unclear to me if there is a reliable split between system erros and contract errors, especially since Querier interface does not seem to return multi level results.

I reviewed the code and it is not an issue. It will use reflection to check the error type. If the error is any registered SystemError sub-type, then it will encode it as a SystemError. Otherwise, it will return it as a contract error (string).


Snappy codec related problem

I'm trying to use the client and consume messages from our cluster. In particular, first I do:
from kafka import KafkaConsumer

Then:
consumer = KafkaConsumer('topic_name', group_id='drorata', bootstrap_servers=['foo.srv.bar.com:9092'])

Finally, I try to iterate of the messages:
for msg in consumer:
    print(msg.value)

I get the following error:
---------------------------------------------------------------------------
NotImplementedError                       Traceback (most recent call last)
<ipython-input-5-4bd249908742> in <module>()
----> 1 for msg in consumer:
      2     print(msg.value)
      3

/Users/dror/anaconda/lib/python3.4/site-packages/kafka/consumer/kafka.py in __next__(self)
    730
    731     def __next__(self):
--> 732         return self.next()
    733
    734     def _get_message_iterator(self):

/Users/dror/anaconda/lib/python3.4/site-packages/kafka/consumer/kafka.py in next(self)
    288
    289             try:
--> 290                 return six.next(self._get_message_iterator())
    291
    292             # Handle batch completion

/Users/dror/anaconda/lib/python3.4/site-packages/kafka/consumer/kafka.py in fetch_messages(self)
    383             # Kafka-python could raise an exception during iteration
    384             # we are not catching -- user will need to address
--> 385             for (offset, message) in resp.messages:
    386                 # deserializer_class could raise an exception here
    387                 val = self._config['deserializer_class'](message.value)

/Users/dror/anaconda/lib/python3.4/site-packages/kafka/protocol.py in _decode_message_set_iter(cls, data)
    126                 ((offset, ), cur) = relative_unpack('>q', data, cur)
    127                 (msg, cur) = read_int_string(data, cur)
--> 128                 for (offset, message) in KafkaProtocol._decode_message(msg, offset):
    129                     read_message = True
    130                     yield OffsetAndMessage(offset, message)

/Users/dror/anaconda/lib/python3.4/site-packages/kafka/protocol.py in _decode_message(cls, data, offset)
    173
    174         elif codec == CODEC_SNAPPY:
--> 175             snp = snappy_decode(value)
    176             for (offset, msg) in KafkaProtocol._decode_message_set_iter(snp):
    177                 yield (offset, msg)

/Users/dror/anaconda/lib/python3.4/site-packages/kafka/codec.py in snappy_decode(payload)
    130 def snappy_decode(payload):
    131     if not has_snappy():
--> 132         raise NotImplementedError("Snappy codec is not available")
    133
    134     if _detect_xerial_stream(payload):

NotImplementedError: Snappy codec is not available

I found some references in the tickets to this issue, but failed to resolve it. Any kind of help would be appreciated!
Thanks,
Dror

Problem solved. On mac, I installed snappy using sudo port install snappy. Then, I installed python-snappy. The trick is to let the installer find the sanppy lib: to that end:
CPPFLAGS="-I/opt/local/include -L/opt/local/lib" pip install python-snappy

For details see: https://github.com/andrix/python-snappy/issues/7#issuecomment-34558939
Afterwards, I managed to consume messages.

Do you have the snappy codec installed? It's not explicitly required by us in setup.py, but if you want to use that feature you'll need python-snappy installed

Ah, beat me to it :)


Feral DPS : Lacerate

Lacerate stopped doing damage in the feral DPS model.
It is still applied but every entry amounts to 0 damage.

Fixed


Allow PlayCanvas-Sync to Run without .pcconfig file

Motivation
I was attempting to run this code for the first time in a while on my machine and I was getting a Error: could not find target directory: . Check capitalization. error. It looks like the code expects a PLAYCANVAS_TARGET_DIR from the .pcconfig file. So, that makes adding a .pcconfig with a PLAYCANVS_TARGET_DIR a requirement for new users. From the language in the README, I had the impression that the .pcconfig was optional.
What's Changed
This PR adds a default to PLAYCANVAS_TARGET_DIR to use the CWD. That default only comes into play when PLAYCANVAS_TARGET_DIR is not set. Also, when the target dir was validated was moved down to be after defaults are set.
Tested on
:heavy_check_mark: Ubuntu 20.04
:heavy_check_mark: Windows 11 (Git Bash)
:construction: TODO - OS X
Fixes
Partially fixes #22

I like the idea of this change as playcanvas-sync can be installed globally IIRC so it makes it a lot easier to switch between projects via going to different folders on the commandline.

Oh right, this tool doesn't have to be globally installed. I guess I'm so used to globally installed NPM tools, I went for that the moment I saw it and totally forgot it wasn't the only option. Yeah, I figured in the future if I started working on another project, the utility would be ready to go. Similarly, I often run into trouble with a project global config overwriting the config of another project, which can be confusing and hard to debug, which is why starting off with a separate pcconfig.json for each project appealed to me.

Yeah, I agree. With your proposed change, having a config in each 'target' folder makes switch between projects really easy

Thank you for suggesting this. We've added this functionality in https://github.com/playcanvas/playcanvas-sync/pull/27
To make it safer for users running the tool without a global install, we require the flag PLAYCANVAS_USE_CWD_AS_TARGET in ~/.pcconfig to enable this. We've also added an error if the target directory is the same as the directory where the tool is installed. Closing this PR.


Feature Request: search application

Like PowerToys Run, it can search.

window-switcher only supports two shortcut keys to switch windows/apps and does not support anything else.
Sorry, this feature will not be supported.


getComponentForState made more generic

It's just one line...
routeName (and what component is being rendered) should depend directly and only on the navigation state.

Can you explain the motivation behind this change?

@matthamil
order const is being calculated only once when the router is created.
Router should render components based on its current state and not on preconfigured one from the startup.
In my project I am using TabBar as child navigator of another navigator. Parent navigator dynamically change order and availability of tabs. It doesn't work because of this one line, I had to monkey-patch the router.
Hope it explains my motivation a bit better...

@matthamil Did previous explanation help?

Codecov Report

Merging #2498 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master    #2498   +/-   ##
=======================================
  Coverage   70.01%   70.01%
=======================================
  Files          54       54
  Lines        1714     1714
=======================================
  Hits         1200     1200
  Misses        514      514

Impacted Files
Coverage Δ

src/routers/TabRouter.js
94.32% <100%> (ø)
: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 9d36daf...7346ed1. Read the comment docs.


Fix input.value undefined

Fix error when using trim() on an undefined value.

I don't know if you guys accept optional chaining for browser compatibility.
eg:
input.value?.trim() ?? ''

So I've ended up using a simple ternary operator.

@cavasinf can you share a reproduction for the original issue you found? I'm struggling to see how value could be undefined here.

I'm seeing the same issue. I'm trying to integrate tom-select into Request Tracker, so it's hard to create a minimal test case. You can see it in this branch, but you need to set up an environment to run RT, which is some work: https://github.com/bestpractical/rt/tree/6.0/add-tom-select
Inspecting the element generating the error, it looks like an input created by tom-select rather than RT itself.
'open (Unchanged)'
It looks like a Status dropdown for a ticket, but the input doesn't look like what RT would generate.
Anything else I can provide to help debug?

If I had to hazard a guess, I'd say that for some reason this function is returning something unexpected:
https://github.com/orchidjs/tom-select/blob/78c0d4609ba29bf4ff45c86dff31234b14941419/src/vanilla.ts#L10-L27
The value returned from there is ultimately passed to getSettings:
https://github.com/orchidjs/tom-select/blob/78c0d4609ba29bf4ff45c86dff31234b14941419/src/tom-select.ts#L117
Which in turn is used in the init_textbox function that ultimately throws an error:
https://github.com/orchidjs/tom-select/blob/78c0d4609ba29bf4ff45c86dff31234b14941419/src/getSettings.ts#L145-L173
Consider adding a breakpoint, logpoint, or just a console.log to check what the return value of getDom is.

Hey, sorry for the late reply!
I honestly don’t remember exactly what scenario led us to encounter that issue.
It’s been three months, and that feels like ages ago for me! 😄
That said, if we expect both input and input.value to be defined in every possible case, why are we currently using the logical OR operator?
It seems like there might be some cases where this approach is necessary, but calling trim() on undefined or null will definitely throw an error.

Looking at that input, it doesn't have a value, so that part makes sense.

All input elements have a value property in the DOM, even if there's no attribute in the markup itself. So I'm thinking you're providing a selector or an element that is neither a select nor an input. This is why I'm asking you for either an isolated reproduction or to place some breakpoints and see what's actually being passed around here!
My worry is that adding optional chaining here will just mask a deeper problem: either with your own code, or perhaps an invariant that tom-select should be asserting before this point.
I'd like to have a reproduction of this bug, ideally one that could be turned into a failing test case, before accepting a change.

Working with this some more, I have an idea what is going on. I was using the code suggested in the docs to find all select elements on the page with a class:
document.querySelectorAll('.classname').forEach((el)=>{
On a dashboard in RT, the main page loads, then individual components load via AJAX. To cover all select elements, I was running an "initialize" function multiple times as components were loaded. I used this to avoid calling new on elements that had already been processed.
    if ( elt.tomselect ) {
        // This can get called on elements already initialized.
        return;
    }

As components are loading via AJAX, I think TomSelect was adding the dynamic input box. Even though my class wasn't directly on the ts-generated input tag, it looks like the TomSelect code added my classes to a surrounding div, along with "ts-wrapper". So I think that div was getting returned by querySelectorAll. And maybe that div is the element that doesn't have a value because it's not an input.
To test this, I tightened my selector to target only select.classname, no longer matching divs or inputs, and the console error is gone.
So I think users may see this error with applications running some AJAX that loads more markup dynamically, then they try to initialize again and end up grabbing some ts-generated elements that included the class name they used.
Does the above seem possible?

That definitely sounds plausible, yeah. Weird things will happen if you have a selector that targets any DOM elements created by tom-select. You can probably use a selector like .classname:not(.ts-wrapper) to ensure that you don't target anything that tom-select creates.
I'm inclined to say it's outside the scope of this project to check for and handle things like this. What do you think?
If this PR were merged, it would just mask the fact that you're sort of recursively creating TomSelect instances, so I don't think this particular change is a good idea.

I'm inclined to say it's outside the scope of this project to check for and handle things like this. What do you think?
If this PR were merged, it would just mask the fact that you're sort of recursively creating TomSelect instances, so I don't think this particular change is a good idea.

Yeah, now that I see what is going on, I'm inclined to agree. The error is pointing out an unexpected use case. It would help with debugging to check the input for expected types and bail with a message, but that's a different PR.
I think a doc update would be easier and help new users. If I wanted to take a shot at providing some info on the two issues I encountered and possible fixes, where would that go? Maybe a new section at the bottom of the Usage page?


Upgrade jenkins to 2.346.3 & fix groovy security hole

What is version of KubeSphere DevOps has the issue?
v3.4.0
How did you install the Kubernetes? Or what is the Kubernetes distribution?
kubekey
Describe this feature
Upgrade Jenkins and Jenkins plugins

Additional information
No response

https://github.com/kubesphere/ks-jenkins/commit/b67cb0d9c60e8dabfa43d458029d98e3e863662a

Issue fixed in kse v3.5.0-beta.1


Pagination support?

I just found this plugin again and it really looks to be well maintained. As far as I can see on the demo page there is no pagination for a page with many comments? Is it a feature that you would like to implement?
Personally I don't care about page numbers, just next/previous page would be fine. Else the page would take long to load, the search engines would see more comments than the article text etc.

The demo page uses no pagination because I want to show off with the many people how are using my plugin 😉. There comments are listed by the default comments snippet, but you can write your own snippet and add lots of fun and interesting features to it, such as pagination.
I don’t think this is a common use-case and as the default snippet serves as reference for creating your own snippet, I try to keep it simple. The default snippet lacks a lot of features, such as language support, date-format customisation, no AJAX loading or custom error messages, all of which would bloat the default snippet and make it unusable for reference.
The plugin itself ships with a snippet and I try to make it as good as it can be. If you want to build on-top of it, have a look at the Custom Markup and the API Documentation sections in the readme file.

Alright. It should be simple to implement with a route or get variables then. I close this because of the "wontimplement" label. =)