Not getting Campaign Details in getAllAdgroup call

Hi Team,
While doing getAllAdgroup API call we are not getting the campaignId as blank .We are using below code to fetch campaign details from adgroup:
com.google.ads.googleads.v9.resources.Campaign _c = campaigns.get(_ag.getCampaign());
Request :
google.ads.googleads.v9.services.GoogleAdsService/Search, Endpoint: googleads.googleapis.com:443,  RequestID: qI5G7dPSjcnPoIMTkibCKQ, ResponseCode: OK, Fault: null.
query: "SELECT ad_group.type, ad_group.ad_rotation_mode, ad_group.base_ad_group, bidding_strategy.id, bidding_strategy.name, bidding_strategy.resource_name, bidding_strategy.type, ad_group.cpc_bid_micros, ad_group.cpm_bid_micros, bidding_strategy.enhanced_cpc, ad_group.final_url_suffix, ad_group.id, ad_group.name, ad_group.labels, ad_group.status, ad_group.effective_target_cpa_micros, ad_group.effective_target_cpa_source, bidding_strategy.target_cpa.target_cpa_micros, bidding_strategy.target_roas.target_roas, ad_group.effective_target_roas, ad_group.tracking_url_template, ad_group.url_custom_parameters, campaign.base_campaign, campaign.id, campaign.name FROM ad_group WHERE campaign.id IN<PHONE_NUMBER>) AND ad_group.status IN ('ENABLED', 'PAUSED', 'REMOVED') ORDER BY ad_group.id ASC"
Response:
ad_group {
resource_name: "customers//adGroups/58986403656"
status: ENABLED
type: SEARCH_STANDARD
ad_rotation_mode: OPTIMIZE
id:<PHONE_NUMBER>6
name: "One Law Group, S.C. BRANDING<PHONE_NUMBER>"
base_ad_group: "customers/*/adGroups/58986403656"
cpc_bid_micros: 5320000
cpm_bid_micros: 10000
effective_target_cpa_micros: 0
}

Hi,
This appears to be an API issue that's not specific to this library. Please post to our forum at https://groups.google.com/g/adwords-api for assistance on this one.
Thanks,
Josh


Auto-publish CEPs on conda.org

Description
Since CEPs are an important part for evolving conda community standards, I wonder if it would make sense to have a first class section under conda.org/ceps to render them fully automatically during build time?
Tasks

[ ] Find out how we can fetch CEP files from the conda/ceps repo
[ ] Render a landing page under conda.org/ceps with a list of CEPs
[ ] Show the CEPs in the left sidebar for easier selection

Fixed in #220 and #222. /cc @jaimergp


Add ability to run scripts per page

Currently all scripts are added at the end of the page, in layout.html.
This means if you have a script on one page that relies on jQuery, there's no way to add it after jQuery is loaded.
Propose changing this in layout.html
{% block body_end %}
  {% include "includes/scripts.html" %}
  <!-- GOV.UK Prototype kit {{releaseVersion}} -->
{% endblock %}

to
{% block body_end %}
  {% include "includes/scripts.html" %}
  {% block page_script %}{% endblock %}
  <!-- GOV.UK Prototype kit {{releaseVersion}} -->
{% endblock %}

That makes it simpler for people not aware of super() which is a less obvious work around I've tended to use.
Overview of Super
Super gives the ability to effectively append or prepend to the block because using super() outputs contents of the parent block (in this example the stuff inside body_end within layout.html) inside a child block (the stuff inside body_end within the actual page template).
For example: In the page template (page.html)
{% block body_end %}
  {{ super() }}
  <script src="/public/javascripts/mypagescript.js"></script>
{% endblock %}

A suggestion might be:
inside layout.html
{% block body_end %}
  {% block scripts %}
    {% include "includes/scripts.html" %}
    {% block page_scripts %}{% endblock %}
  {% endblock %}
  <!-- GOV.UK Prototype kit {{releaseVersion}} -->
{% endblock %}

This would allow overriding/removing/editing of all scripts on a page or just adding additional scripts after the global scripts.
Enables overriding all scripts in page.html:
{% block scripts %}
  <script src="/public/javascripts/myscript-1.js"></script>
  <script src="/public/javascripts/myscript-2.js"></script>
  <script src="/public/javascripts/mypagescript.js"></script>
{% endblock %}

or
Enables just including additional page.html specific scripts similar to your proposal
{% block page_scripts %}
  <script src="/public/javascripts/mypagescript-1.js"></script>
  <script src="/public/javascripts/mypagescript-2.js"></script>
  <script src="/public/javascripts/mypagescript-3.js"></script>
{% endblock %}

that super() suggestion is smart, I hadn't thought of it. But yeah I think a new block would avoid introducing people to new syntax, and the name of the block could be clearer than body_end
on your suggestion of adding scripts block - its not strictly necessary is it? You could just define body_end? It's not as nice a name, but I'm wondering if its worth adding an extra block, and how many times you'll need to remove all scripts? For one thing it'll break the autodata store feature

I've wanted to do it a few times. What I've ended up doing is duplicating some of the contents of includes/scripts.html and removing or changing some lines. I've not only wanted to do that on a per page basis but I've also wanted to do it when creating custom layouts for specific sections of a service/app.
Overriding body_end would remove the version comment and possibly be less obvious to other/future contributors as to why it has been overridden it.
I'm probably not the target user (I'm an advanced user) but my suggestion adds a little more flexibility and another block 'hook' for people be more targeted and direct in what they're doing with their templates IMO.

cool, thanks, I've made a PR: https://github.com/alphagov/govuk_prototype_kit/pull/373

#373 is merged so closing this now.


Setup htmltest link checker

This PR brings the htmltest GitHub Action that is used to check links on pull request.
The configuration file is located at the root of the project .htmltest.yml.

@andreySadomovskiy PTAL


Difficulty running commands on training data corpus

Seem to have difficulty running the initial step 1 command from the Readme.md
"node javascript/extractFromJS.js idsLitsWithTokens --parallel 4 data/js/programs_50_training.txt data/js/programs_50"
With all the files correctly in place it seems to return a code of
Total number of files: 0
Left in worklist: 0. Spawning an instance.
Left in worklist: 0. Spawning an instance.
Left in worklist: 0. Spawning an instance.
Left in worklist: 0. Spawning an instance.

From your original question (before you edited it), it looks like you've downloaded the Python corpus, but you need the JavaScript corpus. Can you double-check this, please?

I am working with jjholmes on this project and I have downloaded the full corpus (Java) and I have experienced the same issue as what he is getting when running the first step from the ReadMe.md

DeepBugs is for JavaScript, not Java. Running it on the Java corpus doesn't work. (I'm closing this for now; feel free to re-open if you have further questions.)

Hey Michael, Matthew misspoke we are trying it on the JavaScript corpus set provided by yourself for training data however when attempting to run, it provides feed back of 0 calls found, I’ve tried searching for different things binops/call assignments etc but it fails to find anything for all of them !
Get Outlook for iOShttps://aka.ms/o0ukef

From: Michael Pradel<EMAIL_ADDRESS>Sent: Wednesday, June 19, 2019 1:20:47 AM
To: michaelpradel/DeepBugs
Cc: Joel Holmes; Author
Subject: Re: [michaelpradel/DeepBugs] Difficulty running commands on training data corpus (#7)
Closed #7https://github.com/michaelpradel/DeepBugs/issues/7.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/michaelpradel/DeepBugs/issues/7?email_source=notifications&email_token=AFQNBQVM7QABONJ4CC3VB5DP3F3V7A5CNFSM4HVVHPS2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOSBSZ6WY#event-2422579035, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFQNBQQXD7NWV2ABL5ORERTP3F3V7ANCNFSM4HVVHPSQ.

The idsLitsWithTokens option is not supported anymore, and I've just removed it. If you run the command with any of the following options instead, it should extract some data:
tokens
calls
callsMissingArg
assignments
binOps
E.g., try to run this:
node javascript/extractFromJS.js tokens --parallel 4 data/js/programs_50_training.txt data/js/programs_50

Hi Michael, I have tried running the above command on the changes you made however I am still getting the same error that we were originally getting:
node javascript/extractFromJS.js tokens --parallel 4 data/js/programs_50_training.txt data/js/programs_50
Total number of files: 0
Left in worklist: 0. Spawning an instance.
Left in worklist: 0. Spawning an instance.
Left in worklist: 0. Spawning an instance.
Left in worklist: 0. Spawning an instance.

Hello @mbays @jjholmes @michaelpradel,
It's just a minor issue, I have made a pull request to fix this. You're welcome to use my fork in the meantime.

Hello @mbays @jjholmes @michaelpradel,
It's just a minor issue, I have made a pull request to fix this. You're welcome to use my fork in the meantime.

Thanks for the fix. Just merged it. I'm closing this now, assuming that the problem is resolved.


401 Client Error: Unauthorized for url: https://huggingface.co/None/resolve/main/config.json

Follow the instruction, but got the error:
creating model quickly: OSError
Traceback (most recent call last):
  File "/home/user/.conda/envs/RPG/lib/python3.9/site-packages/huggingface_hub/utils/_errors.py", line 270, in hf_raise_for_status
    response.raise_for_status()
  File "/home/user/.conda/envs/RPG/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/None/resolve/main/config.json

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/user/.conda/envs/RPG/lib/python3.9/site-packages/transformers/utils/hub.py", line 385, in cached_file
    resolved_file = hf_hub_download(
  File "/home/user/.conda/envs/RPG/lib/python3.9/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
    return fn(*args, **kwargs)
  File "/home/user/.conda/envs/RPG/lib/python3.9/site-packages/huggingface_hub/file_download.py", line 1374, in hf_hub_download
    raise head_call_error
  File "/home/user/.conda/envs/RPG/lib/python3.9/site-packages/huggingface_hub/file_download.py", line 1247, in hf_hub_download
    metadata = get_hf_file_metadata(
  File "/home/user/.conda/envs/RPG/lib/python3.9/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
    return fn(*args, **kwargs)
  File "/home/user/.conda/envs/RPG/lib/python3.9/site-packages/huggingface_hub/file_download.py", line 1624, in get_hf_file_metadata
    r = _request_wrapper(
  File "/home/user/.conda/envs/RPG/lib/python3.9/site-packages/huggingface_hub/file_download.py", line 402, in _request_wrapper
    response = _request_wrapper(
  File "/home/user/.conda/envs/RPG/lib/python3.9/site-packages/huggingface_hub/file_download.py", line 426, in _request_wrapper
    hf_raise_for_status(response)
  File "/home/user/.conda/envs/RPG/lib/python3.9/site-packages/huggingface_hub/utils/_errors.py", line 320, in hf_raise_for_status
    raise RepositoryNotFoundError(message, response) from e
huggingface_hub.utils._errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-65b20d86-1b897ebc0e79ac4164603e75;8aa129ba-e901-46ae-8e3f-2e433b67d303)

Repository Not Found for url: https://huggingface.co/None/resolve/main/config.json.
Please make sure you specified the correct `repo_id` and `repo_type`.
If you are trying to access a private or gated repo, make sure you are authenticated.
Invalid username or password.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/user/RPG-DiffusionMaster/RPG.py", line 338, in <module>
    initialize(model_name=model_name)
  File "/home/user/RPG-DiffusionMaster/RPG.py", line 92, in initialize
    modules.sd_models.load_model(model_name=model_name)
  File "/home/user/RPG-DiffusionMaster/modules/sd_models.py", line 636, in load_model
    sd_model = instantiate_from_config(sd_config.model)
  File "/home/user/RPG-DiffusionMaster/repositories/stable-diffusion-stability-ai/ldm/util.py", line 89, in instantiate_from_config
    return get_obj_from_str(config["target"])(**config.get("params", dict()))
  File "/home/user/RPG-DiffusionMaster/repositories/generative-models/sgm/models/diffusion.py", line 59, in __init__
    self.conditioner = instantiate_from_config(
  File "/home/user/RPG-DiffusionMaster/repositories/generative-models/sgm/util.py", line 175, in instantiate_from_config
    return get_obj_from_str(config["target"])(**config.get("params", dict()))
  File "/home/user/RPG-DiffusionMaster/repositories/generative-models/sgm/modules/encoders/modules.py", line 79, in __init__
    embedder = instantiate_from_config(embconfig)
  File "/home/user/RPG-DiffusionMaster/repositories/generative-models/sgm/util.py", line 175, in instantiate_from_config
    return get_obj_from_str(config["target"])(**config.get("params", dict()))
  File "/home/user/RPG-DiffusionMaster/repositories/generative-models/sgm/modules/encoders/modules.py", line 349, in __init__
    self.transformer = CLIPTextModel.from_pretrained(version)
  File "/home/user/RPG-DiffusionMaster/modules/sd_disable_initialization.py", line 68, in CLIPTextModel_from_pretrained
    res = self.CLIPTextModel_from_pretrained(None, *model_args, config=pretrained_model_name_or_path, state_dict={}, **kwargs)
  File "/home/user/.conda/envs/RPG/lib/python3.9/site-packages/transformers/modeling_utils.py", line 2928, in from_pretrained
    resolved_config_file = cached_file(
  File "/home/user/.conda/envs/RPG/lib/python3.9/site-packages/transformers/utils/hub.py", line 406, in cached_file
    raise EnvironmentError(
OSError: None is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
If this is a private repository, make sure to pass a token having permission to this repo either by logging in with `huggingface-cli login` or by passing `token=<your_token>`

Failed to create model quickly; will retry using slow method.

Does this matter and any fix to it? Thanks.

I have the same error at the moment and it looks like it's trying to download a model that is set to None. maybe one of the arguments' default setting needs to be set.  However, my run of --demo still generates.

Having the same error, but the generation can still be done

same error here too

same error here too

same error

I'm getting below error, how to go about fixing it?
model_id = "helenai/Linaqruf-anything-v3.0-ov"
pipe = RegionalGenerator(model_id, dtype=torch.float32, device="cpu")
tokenizer/tokenizer_config.json: 100%
 819/819 [00:00<00:00, 19.8kB/s]
tokenizer/vocab.json: 100%
 1.06M/1.06M [00:00<00:00, 1.26MB/s]
tokenizer/merges.txt: 100%
 525k/525k [00:00<00:00, 1.32MB/s]
tokenizer/special_tokens_map.json: 100%
 472/472 [00:00<00:00, 20.8kB/s]
HTTPError                                 Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_errors.py in hf_raise_for_status(response, endpoint_name)
285     try:
--> 286         response.raise_for_status()
287     except HTTPError as e:
15 frames
HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/helenai/Linaqruf-anything-v3.0-ov/resolve/main/text_encoder/config.json
The above exception was the direct cause of the following exception:
EntryNotFoundError                        Traceback (most recent call last)
EntryNotFoundError: 404 Client Error. (Request ID: Root=1-65f8d6b9-1847ac8a19f2cc4f18e35042;6d2590fe-c17d-4737-81ec-bd2ef18f15a3)
Entry Not Found for url: https://huggingface.co/helenai/Linaqruf-anything-v3.0-ov/resolve/main/text_encoder/config.json.
The above exception was the direct cause of the following exception:
OSError                                   Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/transformers/utils/hub.py in cached_file(path_or_repo_id, filename, cache_dir, force_download, resume_download, proxies, token, revision, local_files_only, subfolder, repo_type, user_agent, _raise_exceptions_for_gated_repo, _raise_exceptions_for_missing_entries, _raise_exceptions_for_connection_errors, _commit_hash, **deprecated_kwargs)
450         if revision is None:
451             revision = "main"
--> 452         raise EnvironmentError(
453             f"{path_or_repo_id} does not appear to have a file named {full_filename}. Checkout "
454             f"'https://huggingface.co/{path_or_repo_id}/{revision}' for available files."
OSError: helenai/Linaqruf-anything-v3.0-ov does not appear to have a file named text_encoder/config.json. Checkout 'https://huggingface.co/helenai/Linaqruf-anything-v3.0-ov/main' for available files.


Adding execute permissions

@monkieboy I meant the chromedriver_linux64 and chromedriver_macOS files
they are renamed to chromedriver during the build depending on OS
but they need the execute flag
could you please ammend

Ok sorry, I will do those now.

cool thanks!

closed and reopened to trigger travis

cool it actually started the chromedriver. thank you!


Add isPublicRepo

To be used in Refined GitHub (I think there may be several features could benefit from this)
I wonder why we didn't have this (until now)
Test URL: here

Hmm, so we have a Netlify bot now, but I prefer Vercel :thinking:

Vercel doesn’t prefer us so I had to switch. Organizations aren’t free on Vercel and even after contacting them they refused to allow it. So Netlify is just as good.

Meta: I think I disabled Netlify’s comments. The preview URLs are still available in the checks list

Given updates on #5853 I'm merging this.


metaplex initial commit

:pushpin: References
🎄 Asset Checklist

[ ] Added to databases.csv or already exists

🧮 Metric Checklist

[ ] Added new fact tables if necessary
[ ] Pulled fact table into ez_asset_metrics.sql table
[ ] Compiles in Github
[ ] Show Changed Models in Github matches expectations for what metric value should be

Most recent run before merge:


VMs should not have public IP enabled by default.

Is your feature request related to a problem?
Some (many?) organization security policies block VM deployments with public IP.
This code deploys two of multi nic* using public IP.
Describe the solution you'd like
add
# access_config {}  # remove comment to have a public IP

Describe alternatives you've considered
Pleading with org security to get exceptions.
Additional context

here's what our TF SME guided me to

resource "google_compute_instance" "vmseries" {
  name                      = "palo-vmseries-${var.availablity_zone}-${var.env}-${var.env_state}-${var.random_hex}"
  machine_type              = var.vmseries_machine_type
  project                   = var.project_id_hub_one
  zone                      = var.availablity_zone
  can_ip_forward            = true
  allow_stopping_for_update = true
  tags                      = ["palo-fw"]

  boot_disk {
    initialize_params {
      image = var.vmseries_image
      type  = "pd-standard"
    }
  }
  metadata = {
    mgmt-interface-swap                  = "enable"
    serial-port-enable                   = true
    ssh-keys                             = "admin:${var.public_key}"
    vmseries-bootstrap-gce-storagebucket = module.bootstrap.bucket_name
  }

  // nic0 - untrust nic
  network_interface {
    subnetwork = google_compute_subnetwork.dmz.self_link
    dynamic "access_config" {
      for_each = var.dmz_public_ip ? ["prod-live"] : []
      content {}
    }
  }
  // nic1 - mgnt
  network_interface {
    subnetwork = google_compute_subnetwork.mgnt.self_link
  }
  // nic2 - hub_one
  network_interface {
    subnetwork = google_compute_subnetwork.hub_one.self_link
    network_ip = var.palo.fw_ip_hub_one
  }
  service_account {
    email = var.palo_sa_vm_email

    scopes = [
      "https://www.googleapis.com/auth/compute.readonly",
      "https://www.googleapis.com/auth/cloud.useraccounts.readonly",
      "https://www.googleapis.com/auth/devstorage.read_only",
      "https://www.googleapis.com/auth/logging.write",
      "https://www.googleapis.com/auth/monitoring.write"
    ]
  }

  depends_on = [
    module.bootstrap
  ]
}

we pass into the module
  dmz_public_ip                = terraform.workspace == "default" ? true : false


Partial page load across site collections (Modern team sites

Category

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

Expected or Desired Behavior
When moving between site collections the page context is refreshed and application customizers are re-loaded with new site details. This used to be the behavior until a couple of weeks ago.
Observed Behavior
Until recently this worked as expected but now when you navigate between pages in different site collections you get a partial page load and any application customizers are not re-loaded.
Steps to Reproduce
Below shows a page with an application customizer which passes the current site from the context to a react component. On first load the current site is correct but after clicking a link to a different team site the page is partially refreshed and the application customizer is not re-loaded. This may be by design but it not how this used to work until a couple of weeks ago and I can find nothing from MS describing this change
Original page load

Component details after clicking link

What you need to do is hook into the navigatedEvent of the app customizer. You can do this in the onInit.
        this.context.application.navigatedEvent.add(this, () => {        // update your control     })
Another thing I have found is that if you use the url of the page you are on from the browser window.location to make any calls inside webparts you will find that the partial navigation causes their js to run before the url is actually updated. So you should always pass the context around and never read from window.location.

You can use this but the documentation from Microsoft still suggests you use the changedEvent, see documentation below.
This approach worked fine until Microsoft changed the partial page loading to work across site collections whereas previous it was only within the one site collection. All I'm trying to do, and have been for the last few weeks, is get a clear position from them around what is the expected behavior. Its frustrating because all they have to do is say yes its expected or its not. If it is expected here is the correct approach for registering your customizer but there has been nothing
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/using-page-placeholder-with-extensions

@raymondlittle100 I agree the partial navigation feature is broken. I am trying to debug issues with it right now in fact. I have the issue where when the page does the partial navigation to a page on a different site collection, it seems to reload components two or more times and causes all their async logic to run multiple times.

@tdwhite0 Thanks for the response good to know its not just me. When i was testing using the changedEvent customizer event my React render methods weren't event getting hit so it was as if the customizer wasn't getting re-loaded.
Slightly disappointed on the lack of response on this one

@VesaJuvonen did a recent update for this go out that enabled partial navigation between site collections recently? I recently started experiencing some weird issues and that might explain it.

@tdwhite0  there was a recent change to the customizer events for things like navigating to search application pages and back to ensure the customizer was reloaded but that was a month or two ago. This seemed to start a few weeks ago and I can't find anything to say if its expected or not hence this bug.

@raymondlittle100 We also had something that seems related: We rendered  tags to get them to open in new tabs, which just recently broke because SP started taking them over and doing partial navigation.

@tdwhite0 Thanks for the workaround.  I am experiencing the same thing with regard to window.location.  It seems that there is a lot of unexpected behavior when doing a partial navigation even through normal HTML links (missing title sometimes, tooltips text breaking)
@raymondlittle100 same here. App customizers not running again on a partial page navigation is happening for me too.
I wish we could get a little more traction on this issue.

@tdwhite0  if you're tags are links you can disable the partial page rendering by adding data-interception="off".
My guess is MS had some code which looks for all links ending with .aspx which used to look for only links pointing to the current site collection and when once of these were hit only reload the content area. This seems to be have been expanded so its not only links in the same team site but any team site.

I started a new issue for my specific case: https://github.com/SharePoint/sp-dev-docs/issues/2023

Anything on this?

@raymondlittle100 thanks for the data-interception="off" tip. Our solution was much more convoluted.
Ours is working in Chrome with a this.context.application.navigatedEvent callback but has stopped working in IE11. In IE the customiser (I assume correctly??) disposes and disappears from the page.
This has been absolutely catastrophic for our deployment. I'm surprised this isn't getting more attention.

@VesaJuvonen  any ideas on this?

I am also having this same issue, and glad to know I'm not crazy. We are seeing this with a topbar navigation menu built using AngularJS. As you navigate between site collections, it will often throw the browser back to the originating site collection when navigating through secondary collections.
We just released our intranet on May 30th, and it was working fine up until about 2 weeks ago.
I opened a Premier Support ticket, and they are investigating. Has anybody else done so?

@raymondlittle100 can you explain the data-interception tag? Does that just get adding as an attribute of the anchor tag?
@tdwhite0 do you have an example of how to get the window location from the context?

@marcDeSantis It looks like there is a top level routing interceptor that on every click will determine where your link is going and attempt to do a partial navigation on it. For example this will intercept any click on an  tag, which is why target="_blank" stopped working on those. However if you set data-interception="off" on the element, it will get ignored and do the old behavior.
For getting the url I make sure to always use the passed in this.context.pageContext.web.absoluteUrl instead of reading it out of window.location.

SharePoint seems by default to intercept any link pointing to the target tenant and only do a partial page load. This used to be only the current site collection and seems to be where the change has been.
By adding this data attribute to any link it stops the partial page load and does a full refresh

This data-interception attribute is undocumented, I assume?

It is supposed because it's what Microsoft do to links set via content editing which are flagged as open in new tab

I have verified that data-interception="off" has also fixed my issue. Am still curious what Microsoft's recommendation is here, and whether they will take these application extensions into account before making breaking changes down the road.

Glad to hear it. It's frustrating at the lack of progress or comments

If its any consolation it appears that the OOTB quick launch is also affected as per #2095
The simplest case is:

Create two modern Team Sites
Add a link from one to the other to the quick launch
Click the link
Site navigates but the quick launch stays the same

@marcDeSantis did your premier support ticket get anywhere?

@marcDeSantis did your premier support ticket get anywhere?

Nope. I told them that the data-interception workaround was working for me, so they recommended putting in a suggested change to the docs, and mentioned that they cannot guarantee the functionality of customizations 😞

Thanks. Appreciate the update

Any further update on this?

@rmillener  is this still working for you I still get the error?

@raymondlittle100 not last time I checked. We will continue with data-interception until we see an official response around navigatedEvent.

@VesaJuvonen  any more details on this?

@VesaJuvonen is there any news on this? I'm still getting this bug!

@VesaJuvonen also keenly interested in this issue.  We have a client about to launch a modern Intranet that this is a blocker for.

I created a scaled down AppCustomizer and sent it to @westleyMS.

I'm not at the same organisation so am no longer in a position to test in the same way.

@patmill , I still have issues with that event. I can tweak the code to make it work for me, but they are still there.
Here are the three things still an issue for me:

OnInit of the customizer fires 2 times. There seem to be two instances of my customizer class instead of one.
this.context.application.navigatedEvent.add sometimes fires 2 times instead of 1.
this.context.application.navigatedEvent.add does not fire after navigated when page is not cached in IndexedDB, but before.

I will explain in details bellow with the hope that it will help @patmill, but also the community to workaround that for now.
My SPFx version is 1.7.0
The assembly I have on my tenant is the following

Issue #1 - OnInit of the app customizer fires two times. There seem to be two instances of my app customzier class instantiated from the internal SharePoint redux single page application router SharePoint team is building.
I have my app customizer installed only once for the communication site

, but when I add console log on the onInit method of the app costomizer, the onInit is being called twice and NOT from the same instance of the class. There seem to be two app customizer classes running simultaneously for some reason.

The problem with that is that when I subscribe to this.context.application.navigatedEvent.add from onInit, I will subscribe twice if I do not put extra checks to prevent that.
Issue #2 - this.context.application.navigatedEvent.add sometimes fires twice or four times in total if onInit fires twice as well and I've subscribed from there

Here is what happens on the GIF. The this.context.application.navigatedEvent.add fires once, waits for some moments and fires again. Combined with the fact that onInit fires twice, I get navigatedEvent fired 4 times.
Issue #3 - this.context.application.navigatedEvent.add does not fire after navigated when page is not cached in IndexedDB.
So the description of the navigatedEvent says that is fires after navigated, but it is wrong in specific cases

I noticed that is fires relatively after page load only when the page is pulled from the client (IndexedDB). If the Microsoft router has to fetch the page from the server, then the navigatedEvent event is fired before the page transition.
3 Tweaks to make it work
Here are the 3 tweaks I had to make in my code so that event fires only once and after the page has loaded. Of-course would be great if I do not have to do that in future.
Here is my code to make it work:
export default class CustomizerLifecycleEventsApplicationCustomizer
  extends BaseApplicationCustomizer<ICustomizerLifecycleEventsApplicationCustomizerProperties> {

  @override
  public onInit(): Promise<void> {

    console.log(`LCEVENT:onInit=${window.location.href}`);

    if (!(window as any).isNavigatedEventSubscribed) {

      this.context.application.navigatedEvent.add(this, this.logNavigatedEvent);

      (window as any).isNavigatedEventSubscribed = true;
    }

    return Promise.resolve();
  }

  @override
  public onDispose(): Promise<void> {

    console.log(`LCEVENT:onDispose=${window.location.href}`);

    this.context.application.navigatedEvent.remove(this, this.logNavigatedEvent);

    (window as any).isNavigatedEventSubscribed = false;
    (window as any).currentPage = '';

    return Promise.resolve();
  }

  public logNavigatedEvent(args: SPEventArgs): void {

    setTimeout(() => {

      if ((window as any).currentPage !== window.location.href) {

        // REGISTER PAGE VIEW HERE >>>
        console.log(`LCEVENT:navigatedEvent=${window.location.href}`);

        (window as any).currentPage = window.location.href;
      }
    }, 3000);
  }
}

So you can see some ugly stuff happening, but this is the way to make it work.

Issue #1. Subscribing twice is solved by having  window.isNavigatedEventSubscribed flag to indicate that a subscription is already set before.
Issue #2. Firing twice navigatedEvent is solved by having another window.currentPage flag to indicate that this is actually the same navigatedEvent and we do not have to do anything.
Issue #3. Having setTimeout for 3000 milliseconds is likely to fix the timing issues and ensure that my code will start executing after the new page is loaded by the client router. I can increase or decrease this time.

the double firing event has been resolved. My tenant was fixed, and that rollout should be complete by today.

Appears this issue is fixed from this comment... if not, we can reopen the issue.

Apparantly partial page loads are now also happening when switching from classic view to modern view...when the happens (not always, some links are not intercepted link page contents) the application customizer doesn't get loaded at all (no onInit trigger)
apparantly SP thinks that the placeholders have been there before the navigate event even though it was a classic experience before and the placeholders have never been initialized...


Submitting my HacktoberGreenShell art files

Zero To Mastery - Canvas 2022 🎉🎉
👉 Please remove the below and replace with your own values, leaving the headers where they are. 👈
PR contains:
Submitting my Hacktoberfest art exhibition(HacktoberGreenShell). (Please be as descriptive as possible) 🤜
Breaking changes
None
Screenshots

Please review again. I have fixed(added a title in the title tag index.html
file) and resolved the issue. Thank you
On Tue, Oct 4, 2022, 01:52 zero-to-mastery-bot[bot] <
@.***> wrote:

🙏 Thanks for your pull request @betiniakarandut
https://github.com/betiniakarandut, The team will now review and merge
this request. In the mean time why not check out some of the other
opensource projects available, contributions are greatly appreciated!
Some of the most popular are

Student Resources https://github.com/zero-to-mastery/resources
ZTM Job Board https://github.com/zero-to-mastery/ZtM-Job-Board
Complete Web Developer Manual
https://github.com/zero-to-mastery/complete-web-developer-manual

PR Statistics
#⃣ PR Number: ➕ Line Additions: 🗑 Line Deletions:
71 76 0
📑 Files Changed: ⭐ Repo Stars: 🔱 Total Forks:
5 9 66
—
Reply to this email directly, view it on GitHub
https://github.com/zero-to-mastery/canvas-2022/pull/71#issuecomment-1266264736,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXV35SMTGATGMSHWK5RGJ33WBN5TBANCNFSM6AAAAAAQ4C3ZEI
.
You are receiving this because you were mentioned.Message ID:
@.***>


Update doc

add slides, talks
refactor doc structure

structure:

mopro-core
mopro-ffi
mopro-cli
circom

configuration
core API
iOS
Android

halo2

configuration
introduction (TBD)

Nice work! Quite a lot of changes but I made a pass and some things that jumped out. Can see if more things are needed to change once live


Display work item link using AzDevops API

I'm well advanced in fixing #72, but I'm stuck on rendering differences between wkhtmltopdf and chrome/firefox. I guess it"s because they still use QT 4.
This is the html generated displayed in chrome :

And this is how it's printed in the pdf :

The border is all around the element and text color is blue for some reason. State color could be ignored, as Azure Devops already ignores it when printing a single page to PDF.
Also, we should maybe create a PAT to your devops organization to allow testing of this feature in CI.

[ ] Fix rendering issues
[ ] Create a read only PAT to https://dev.azure.com/mmelcher
[ ] Add rendering in test.html

I'll check once I am back from vacation next week.
Rendering/styling is a pain, I would love to switch to something better - but most of the options are commercial.

I'll check once I am back from vacation next week.
Rendering/styling is a pain, I would love to switch to something better - but most of the options are commercial.

Checking wkhtmltopdf site you can see it's not likely to improve: https://wkhtmltopdf.org/status.html
I think moving to puppeteer for pdf printing is the best course of action. In the meantime, we could just delay this PR or merge with minor css fixes. Might be smarter to invest time in switching to puppeteer than trying to work around wkhtmltopdf.
Enjoy the vacation !

Puppeteer is already added, would simplify the three external cases also (mermaid, latex, code highlighter) - and reduce the binary size. Potentially would work in Linux, too.
Thanks for the pointer - I totally agree this would be a better path and will result in a v4 :)
You wanna start?
Get Outlook for iOShttps://aka.ms/o0ukef

From: Rémi Benoit @.>
Sent: Tuesday, July 20, 2021 2:41:14 PM
To: MaxMelcher/AzureDevOps.WikiPDFExport @.>
Cc: Max Melcher @.>; Comment @.>
Subject: Re: [MaxMelcher/AzureDevOps.WikiPDFExport] Display work item link using AzDevops API (#75)
Checking wkhtmltopdf site you can see it's not likely to improve: https://wkhtmltopdf.org/status.html
I think moving to puppeteer for pdf printing is the best course of action. In the meantime, we could just delay this PR or merge with minor css fixes. Might be smarter to invest time in switching to puppeteer than trying to work around wkhtmltopdf.
Enjoy the vacation !
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/MaxMelcher/AzureDevOps.WikiPDFExport/pull/75#issuecomment-883360643, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAH3LN3FWHXIHLGQLLNGCWTTYVVGVANCNFSM5AVOC7PQ.

I released a draft version: https://github.com/MaxMelcher/AzureDevOps.WikiPDFExport/releases/tag/4.0.0-alpha

Nice work on puppeteer !
In the mean time I almost fixed the rendering issues I had :

Removed uses of var as it's css 3
Fixed some margins and line height

Still have a problem with using border-radius to round corners of the left colored border.
I commented it as it looks better without it. I also opened an issue at wkhtmltopdf/wkhtmltopdf#5068

If I add a PAT to the launch.json it gets immediately discovered by azure devops and revoked within 72hours. Security :)


q: fallback flag not respected in case of overflowing header size

I'm running a DNS server and am trying to query it with q.  (The server is ncdns if that helps reproducing the issue.)  The following works:
$ ./q -tcp -port 5391 @<IP_ADDRESS> TLSA _443._tcp.prism-break.bit
;; opcode: QUERY, status: NOERROR, id: 59147
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;_443._tcp.prism-break.bit.	IN	 TLSA

;; ANSWER SECTION:
_443._tcp.prism-break.bit.	600	IN	TLSA	3 0 0 308201cb30820172a003020102021315e794c838a346fadea4d0935cb9bf9545320b300a06082a8648ce3d040302303d311830160603550403130f707269736d2d627265616b2e6269743121301f060355040513184e616d65636f696e20544c53204365727469666963617465301e170d3138313230393233333530305a170d3139313230393233333530305a303d311830160603550403130f707269736d2d627265616b2e6269743121301f060355040513184e616d65636f696e20544c532043657274696669636174653059301306072a8648ce3d020106082a8648ce3d03010703420004a812b65d69fd9a0ee653db354a716f053f6cb95ca53dd82a1dd58e8693a1d7342649ca0c902cf66f2b05e1f5b20dc927c001139cfb9352be84a105aecfdd4393a351304f300e0603551d0f0101ff04040302078030130603551d25040c300a06082b06010505070301300c0603551d130101ff04023000301a0603551d1104133011820f707269736d2d627265616b2e626974300a06082a8648ce3d0403020347003044022010a31cb8ee04d0a4edc375da181428f160616e73ae77161b6098124d5767c7c2022072cb72281b1869505267d9bedea64981367f0de5da9960774b088886562c450c

;; query time: 529 µs, server: <IP_ADDRESS>:5391(tcp), size: 547 bytes

However, the following does not work:
$ ./q -fallback -port 5391 @<IP_ADDRESS> TLSA _443._tcp.prism-break.bit
;; dns: overflowing header size

I would expect the -fallback flag to automatically retry with TCP in this situation, but it seems that it doesn't.  I'm not certain if this is a bug in the server or in q.  Any idea what's wrong?
(Note that I'm using the latest version of exdns and all of its dependencies except for dns, which is still at v1.0.15 due to https://github.com/miekg/exdns/issues/17 .)

Don't have time to look into this.
On Fri, 21 Dec 2018, 08:44 JeremyRand<EMAIL_ADDRESS>wrote:

I'm running a DNS server and am trying to query it with q. (The server is
ncdns https://github.com/namecoin/ncdns if that helps reproducing the
issue.) The following works:
$ ./q -tcp -port 5391 @<IP_ADDRESS> TLSA _443._tcp.prism-break.bit
;; opcode: QUERY, status: NOERROR, id: 59147
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;_443._tcp.prism-break.bit.	IN	 TLSA
;; ANSWER SECTION:
_443._tcp.prism-break.bit.	600	IN	TLSA	3 0 0 308201cb30820172a003020102021315e794c838a346fadea4d0935cb9bf9545320b300a06082a8648ce3d040302303d311830160603550403130f707269736d2d627265616b2e6269743121301f060355040513184e616d65636f696e20544c53204365727469666963617465301e170d3138313230393233333530305a170d3139313230393233333530305a303d311830160603550403130f707269736d2d627265616b2e6269743121301f060355040513184e616d65636f696e20544c532043657274696669636174653059301306072a8648ce3d020106082a8648ce3d03010703420004a812b65d69fd9a0ee653db354a716f053f6cb95ca53dd82a1dd58e8693a1d7342649ca0c902cf66f2b05e1f5b20dc927c001139cfb9352be84a105aecfdd4393a351304f300e0603551d0f0101ff04040302078030130603551d25040c300a06082b06010505070301300c0603551d130101ff04023000301a0603551d1104133011820f707269736d2d627265616b2e626974300a06082a8648ce3d0403020347003044022010a31cb8ee04d0a4edc375da181428f160616e73ae77161b6098124d5767c7c2022072cb72281b1869505267d9bedea64981367f0de5da9960774b088886562c450c
;; query time: 529 µs, server: <IP_ADDRESS>:5391(tcp), size: 547 bytes
However, the following does not work:
$ ./q -fallback -port 5391 @<IP_ADDRESS> TLSA _443._tcp.prism-break.bit
;; dns: overflowing header size
I would expect the -fallback flag to automatically retry with TCP in this
situation, but it seems that it doesn't. I'm not certain if this is a bug
in the server or in q. Any idea what's wrong?
(Note that I'm using the latest version of exdns and all of its
dependencies except for dns, which is still at v1.0.15 due to #17
https://github.com/miekg/exdns/issues/17 .)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/miekg/exdns/issues/19, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAVkW2FxHAaPNQKAtUZOmzAMEQdhCGP5ks5u7J9ugaJpZM4ZdmOn
.


Revisit the state array structure

Y.component.variable vs Y.variable, same for aux variables, in LSM runs vs standalone runs.

Copying over some discussion  of the aux variables from PR #2.
Ben:

My instinct is to not have model_name as part of p, since a particular p already belongs to a particular model, right? The only case were I would want p.model_name is a multi-component LSM run.

Kat:

Agreed - we dont really want the hierarchy in a single component run. But I thought we had worked out that we need to pass the entire p in the LSM run to each component RHS (due to shared variables). and so for consistency in the RHS function, we also need to pass the entire p in single component mode. that is, the arguments to rhs_component! can be dY,Y,p,t and we always store variables in Y and p as Y.component, p.component, or we can pass
dY.component, Y.component,p,t and just unpack p...

Maybe we can give the p we pass additional structure? like pass p_component (with no hierarchy) and p_interactions as separate pieces, and in single component mode p_interactions could be nothing.

#45 specifies the direction we are taking here.


[Feature Request]: token position adjustment

What is your idea?
I hope the author can update the software so that the tokens can be freely reordered. It would be great if there is an option to lock the order after making adjustments. I really love this software; it has been a big help.

Hello, thanks for your feature request!
At the moment I don't have enough time to implement this function myself, so I have added it to the backlog.


Should all queries be defined within the database class?

If we have many tables like Blog, Posts, Categories, Comments, Votes, Rates .
Then all of queries for these classes need to be define on the MyDatabase class:
@UseMoor(tables: [Blog, Posts, Categories, Comments, Votes, Rates])
class MyDatabase extends _$MyDatabase {

// A lot of methods of queries of all tables ...
..
}

Instead of each class has its own queries methods:
class Blog extends Table {
// Methods of queries of Blog ...
}

class Post extends Table {
// Methods of queries of Post ...
}

You could use DAOs to split your query methods across different classes. Is that what you need?

Can you give me a simple example?
This page of the documentary is not fully illustrative.
Here is my code:
models/todo.dart
import 'package:moor/moor.dart';
import 'package:moor_ffi/moor_ffi.dart';
import 'package:path_provider/path_provider.dart';
import 'package:path/path.dart' as p;
import 'package:moor/moor.dart';
import 'dart:io';

part 'todo.g.dart';

class Todos extends Table {
  IntColumn get id => integer().autoIncrement()();
  TextColumn get title => text().withLength(min: 6, max: 32)();
  TextColumn get content => text().named('body')();
  IntColumn get category => integer().nullable()();
}

Related queries to this model:
  Future<int> addTodo(TodosCompanion entry) {
    return into(todos).insert(entry);
  }

  Future<List<Todo>> get allTodoEntries => select(todos).get();

models/category.dart
import 'package:moor/moor.dart';
import 'package:moor_ffi/moor_ffi.dart';
import 'package:path_provider/path_provider.dart';
import 'package:path/path.dart' as p;
import 'package:moor/moor.dart';
import 'dart:io';

part 'category.g.dart';

@DataClassName("Category")
class Categories extends Table {
  IntColumn get id => integer().autoIncrement()();
  TextColumn get description => text()();
}

Related query to this model:
  Future<List<Category>> get allCategories => select(categories).get();

Related queries to both models:
  Stream<List<Todo>> watchEntriesInCategory(Category c) {
    return (select(todos)..where((t) => t.category.equals(c.id))).watch();
  }

  Future moveImportantTasksIntoCategory(Category target) {
    // for updates, we use the "companion" version of a generated class. This wraps the
    // fields in a "Value" type which can be set to be absent using "Value.absent()". This
    // allows us to separate between "SET category = NULL" (`category: Value(null)`) and not
    // updating the category at all: `category: Value.absent()`.
    return (update(todos)..where((t) => t.title.like('%Important%'))).write(
      TodosCompanion(
        category: Value(target.id),
      ),
    );
  }

I want each model to have its own related queries.
And for common queries, it is possible to send the relevant parameters such todos, categories to each others.

I want each model to have its own related queries.

You can write two seperate DAOS for that:
@UseDao(tables: [Todos])
class TodosDao extends DatabaseAccessor<YourDatabase> {
  TodosDao(YourDatabase db): super(db);

  Future<int> addTodo(TodosCompanion entry) {
    return into(todos).insert(entry);
  }

  Future<List<Todo>> get allTodoEntries => select(todos).get();
}

You could write a similar CategoriesDao class.
@UseMoor(tables: [Todos, Categories], daos: [TodosDao, CategoriesDao])
class YourDatabase extends _$YourDatabase {...}

You could write a seperate dao for queries that use more than one table, put them in one of the two daos, or just add them to the database class directly.

And for common queries, it is possible to send the relevant parameters such todos, categories to each others.

See also https://github.com/simolus3/moor/issues/677


how to use my own picture dataset rather than MNIST or CelebA dataset?

I wanna to know how to use my own picture dataset to get the model which defenses Adversarial Attacks.How could I change the code to train my own dataset?

Have you resolve this problem?
hope for your answer


Pasting over a selection adds an extra undo step

Godot version:
v3.0.2.stable.official
OS/device including version:
Linux/Ubuntu 1710
Issue description:
Pasting over a selection adds an extra undo step
Steps to reproduce:

Copy something to clipboard
Make a selection, then paste replacing the selection
Undo. Instead of the text reverting to the initial selection which you replaced, it reverts to an empty string.
Undo again. This will restore the original string

Minimal reproduction project:
Any script file

Considering the "paste" operation as complex seems to be doing the job. I Will add a PR soon

Fixed by #18743.


Manually defeated

hey @ilkerccom ,
What exactly do you mean with the message at the bottom of your website?
Note: 2000000-2050000 (First ~%0.98) ranges and 3FAF000-3FFFFFF (Last ~%0.98) manually defeated in Puzzle 66 pool.
Does it mean that those ranges have been scanned already therefore we can exclude them ?
Thanks

I marked it as manually scanned as it is very unlikely. However, you can still scan these fields with "includeDefeatedRanges". But I think the private key is not in these ranges.
According to my estimations, no private keys were found, especially in the first 7-8%. (Except for small puzzles). That's why I chose those ranges.


[Help wanted] Access Docker logs inside Jenkins

Following the issue #10.
I would like to see the logs of Docker.
To access - or enable - the logs of Docker inside Jenkins, is there a specific configuration related to this Docker image or is it something common to any Docker image inside Jenkins?
Reminder
I use the Docker image like this:
docker.image("trion/ng-cli-karma").inside("--entrypoint='' -e HOME=${userHome}") { ... }
Thank you.

Do you want to see the logs of the Docker daemon or output of the container ?

@everflux You are always so fast to respond 👍🏻
Since the related issue is still a thing I want to access all the logs I can find to help me to identify the culprit. 👿
I want to see logs related to files - whole size of a build, all metrics I can have on CPU/Ram/Fs -.
So If you know how to configure Jenkins to output both Docker and container logs it would be wonderful.
It's really like a needle in a haystack here... 😢

There is no special configuration required to get logging from this image.
The error from the other issue is a general communication problem between your docker client and the docker daemon.
You can diagnose this using a shell on the jenkins machine and manually executing the steps from the jenkins build (jenkinsfile). To increase the logging use --log-level debug when executing commands.
In addition to that you can print the complete environment (as well as in the build) and check for DOCKER_* variables - if that points to the wrong daemon host this is your culprit.

This error happen:
docker ps
docker: error while loading shared libraries: cannot make segment writable for relocation: Cannot allocate memory
I have no clue if this is something related to this image or if it could happen for anyone.

This is a broken system. Perhaps a raspberry or something very limited or the Setup is broken.
You can check with
free -m
Perhaps a reboot helps. This is not related to this image but your environment.


Need to document KAPACITOR_USERNAME/KAPACITOR_PASSWORD

The Cronograf docs make mention of $KAPACITOR_USERNAME and $KAPACITOR_PASSWORD however the Kapacitor docs are silent on this, as is the default sample kapacitor.conf file.

@udf2457 What chronograf docs are you referring to? Kapacitor does not have support for those env vars.

Chronograf has some [configuration options for Kapacitor](e.g., https://docs.influxdata.com/chronograf/v1.4/administration/config-options/#kapacitor-username), but they could only be used to define one instance using the CLI or even using the environment variables. If you use the Chronograf UI, you can define multiple Kapacitor instances. The current plan is to deprecate these configuration options in a future release.

Closing this since the functionality does not exist in Kapacitor and is going to be deprecated in Chronograf.


refactor, add comments to worker functions, add blocking wait between bunny commands

Major changes:

renamed src/input/pyodide.js to src/input/worker.js
renamed src/pythonfiles to src/python
renamed puputesti.py to pelaaja.py
refactored parts of worker.js (former pyodide.js), some changes also in game.js and event_handler.js
wrote comments for functions in worker.js (former pyodide.js) and index.js
made worker.js (former pyodide.js) wait until the game logic has returned from executing the current command before running the next one

Minor changes:

changed server.py port to 8000 (was 8989 before)
fixed some lint/test issues

Everything except event_handler.js passes tests (because eventhandler doesn't have tests yet). It seems to work fine for the most part, but still has room for improvement. With the following input:

pupu.liiku("oikea");
pupu.liiku("oikea");
pupu.liiku(input("mihin?"));
pupu.liiku("oikea");
pupu.liiku("oikea");

it will ask for input at what seems to be the start of the 2nd jump, instead of right before the 3rd one. In any case, it's ready for merging already so others can hack at it to figure out where the problems are.

its good


About data preparation

Thanks for your great work. I have some doubt reproducing your results about data preparation. The data structure puzzles me because they are not the default structure of KITTI, nuScenes and Argoverse. So I wonder how to convert from raw data to your data structure. Could you please explain in detail in README how to formulate the data? E.g. which cam to use and the calib.json file how to generate?

Thank you for your question. Since we are busy with other things these days, we will explain more details about data generation as soon as possible.

Could you provide the script or source you used to generate the annotated BEV images?

Please see readme for details.

Could you provide the script or source you used to generate the annotated BEV images?

Please see readme for details.

Dear author, how to generate the "ann_bev_dir"  for Nuscenes dataset ?

Could not find the instruction or the script for it in the link.
THX.

me too.

We have updated the guidance to generate BEV annotations in README.md. Follow the guidance in KITTI Annotations and nuScens/Argoverse Annotations to get the ann_bev_dir.

Dear author, abot the KITTI RAW dataset, "For KITTI RAW and KITTI Odometry datasets, we manually annotate static layouts in bird's eye view." However, the ground truth link is 404 not found. I tried to contact the original author of monolayout but was unsuccessfulI. So could you upload it? THX。

你好，我想问下作者说的这个make_nuscenes_label.py生成的标签名字是token，请问训练的时候输入的是前视相机的图片吗


BuildInDataTypeTests: move EnsureCreated() call into test setup

Should help fix the race conditions when running tests on DNX Core.

:shipit:


Use a ringbuffer for internal consensus messaging

This should help the nodes keep up with the consensus, even in a very populated network.

There is no actual reason to go this direction. We'll keep this in mind if we see major inefficiencies where the channels are the bottleneck (which is not the case atm)


2 suggestions, 1 issue

Reset button. There needs to be a reset button to restart the simulator
Save and load UGOs
There is an issue when I change the world size, it thows an "ArrayIndexOutOfBounds: (WorldSize)" at line 323 in Cell (while(chosen == -1 || cells[y+dire[chosen][1]][x+dire[chosen][0]].type != 0){)

As for the world size problem, the issue is that there are cells directly on the bounds (without a 1 space separation) and the waste removal code fails because there's no space left for the waste due to the generation code. So only a few values for WORLD_SIZE actually work.
I've successfully tried the values 4, 9, 12 (default), 25, 28 and 36 (some perfect squares or some perfect squares + 3 work). However, the particle number is constant, so cells might die (with WORLD_SIZE = 4, they die in seconds), you should also adjust that, and the frame rate drops for bigger worlds (as is to be expected).
A way to fix this would be by adding a 1-cell wide border of empty cells if there isn't any, another would be to fix the waste removal code to make it wrap around.

In issue #13 there was a coded solution by @c00lum. This way, one can use the other world sizes,


[FEATURE REQUEST] Loosen Release version poetry requirements

Could you lower the httpx requirement to "^0.24.0" for the release versions of the build?
My project requires supabase python which doesn't have a package version that supports a version this high.
I also had to downgrade the pytest-httpx to "^0.24.0"
Below is the updated poetry file:
[tool.poetry]
name = "zep-python"
version = "2.0.0-rc.3"
description = "Zep: Fast, scalable building blocks for LLM apps. This is the Python client for the Zep service."
authors = ["Daniel Chalef<EMAIL_ADDRESS>readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.9.0,<4"
httpx = "^0.24.0"
pydantic = ">=2.0.0"

[tool.poetry.group.test.dependencies]
pytest = "^7.3.1"
pytest-httpx = "^0.24.0"
pytest-asyncio = "^0.21.0"
ruff = "^0.0.291"
mypy = "^1.2.0"
pytest-mock = "^3.10.0"

[tool.poetry.group.dev.dependencies]
packaging = "^23.1"
black = "^24.2.0"
ruff = ">=0.0.291"
mypy = "^1.2.0"
pre-commit = "^3.3.1"
pytest-httpx = "^0.24.0"
faker = "^19.2.0"
python-dotenv = "^1.0.0"
pdoc3 = "^0.10.0"
langchain = "^0.1.3"
openai = "^1.9.0"
langchain-openai = "^0.0.3"
langchain-cli = { extras = ["serve"], version = "^0.0.21" }
bs4 = "^0.0.2"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

@ellipsis please create a pr to downgrade httpx and httpx-pytest to version "^0.24.0".
@encodexdev thanks for reporting this. Are you using Zep Open Source or Zep Cloud?

https://github.com/getzep/zep-python/pull/137
I created a PR to help. I am using zep cloud.

Thank you! I'll be merging #138, which resolves a merge conflict in #137. Appreciate your assistance here!


1.36.3 breaking changes

trying to upgrade from 1.28 to 1.36.3 creates breaking changes.
The same setup causes:
Error: TypeError: Cannot convert undefined or null to object
It seems to be caused by trying to interpret the serverUrl as an object in "templateUrl" from<EMAIL_ADDRESS>At least for me, the library is not usable with this release.

I am facing the same error.
- error<EMAIL_ADDRESS>(146:11) @ entries
- error unhandledRejection: Error [TypeError]: Cannot convert undefined or null to object
    at Function.entries (<anonymous>)
    at Object.templateUrl (webpack-internal:///(sc_server)/./node_modules/@leonardo-ai/sdk/dist/internal/utils/utils.js:135:12)
    at Generation.eval (webpack-internal:///(sc_server)/./node_modules/@leonardo-ai/sdk/dist/sdk/generation.js:195:41)
    at step (webpack-internal:///(sc_server)/./node_modules/@leonardo-ai/sdk/dist/sdk/generation.js:152:23)
    at Object.eval [as next] (webpack-internal:///(sc_server)/./node_modules/@leonardo-ai/sdk/dist/sdk/generation.js:93:20)

Here is my code:
      sdk.generation.createGeneration({
        prompt: "cool cat",
      }).then((res: CreateGenerationResponse) => {
        if (res.statusCode == 200) {
          // handle response
        }
      });

Version: "@leonardo-ai/sdk": "^1.36.3"

Fixed in https://github.com/Leonardo-Interactive/leonardo-ts-sdk/releases/tag/v1.39.1

Seems to work now. Thanks


T265: New (old?) USB problems on macOS Catalina

Required Info

Camera Model
T265

Firmware Version
<IP_ADDRESS>9

Operating System & Version
macOS Catalina

Kernel Version (Linux Only)

Platform

SDK Version
2.31.0

Language

Segment
others

Issue Description
Hmm, I already had made my peace with these issues, but today I downloaded a fresh copy of the entire repo, switched to development branch, applied PR #5213, compiled and installed it all again.
It is sometimes hard to launch my T265 from cold boot. Nothing helps: No plug/unplug, no restart. Twice a start of realsense-viewer helped. From that on the things did roll.
Before I got things like this (I have enabled severity console logging in pose.cpp):
~/Documents/librealsense/build/examples/pose $ ./rs-pose
 06/12 22:55:42,569 INFO [0x111dffdc0] (tm-info.cpp:51) Picked 0/3 devices
 06/12 22:55:42,572 INFO [0x111dffdc0] (tm-info.cpp:51) Picked 0/3 devices
 06/12 22:55:42,572 WARNING [0x111dffdc0] (rs.cpp:1618) null pointer passed for argument "profile"
RealSense error calling rs2_config_resolve(config:0x7f8289cbc180, pipe:0x7f8289ca3780):
    No device connected

After re-plug then continuoulsy:
/Documents/librealsense/build/examples/pose $ ./rs-pose
 06/12 22:53:16,680 INFO [0x106d57dc0] (tm-info.cpp:51) Picked 1/4 devices
 06/12 22:53:16,684 INFO [0x106d57dc0] (tm-device.cpp:1898) Serial:<PHONE_NUMBER>110112
 06/12 22:53:16,684 INFO [0x106d57dc0] (tm-device.cpp:1900) Connection type: 3.1
 06/12 22:53:16,684 INFO [0x106d57dc0] (tm-device.cpp:1906) Firmware version: <IP_ADDRESS>9
 06/12 22:53:16,685 WARNING [0x70000d04e000] (tm-device.cpp:1378) T265 FW message: 207714271: [0x/1:386] TM2 version <IP_ADDRESS>9, sku 2155
 06/12 22:53:16,685 WARNING [0x70000d04e000] (tm-device.cpp:1378) T265 FW message: 375081905: [0x/29:190] LeonIPCRxReassignSinkThread status: 0
 06/12 22:53:16,685 WARNING [0x70000d04e000] (tm-device.cpp:1378) T265 FW message: 375188185: [0x/29:192] LOS started
 06/12 22:53:16,686 WARNING [0x70000d04e000] (tm-device.cpp:1378) T265 FW message: 375257871: [0x/29:193] LeonIPC message size is 1
 06/12 22:53:16,686 WARNING [0x70000d04e000] (tm-device.cpp:1378) T265 FW message: 91700253: [0x/29:190] LeonIPCRxReassignSinkThread status: 0
 06/12 22:53:16,686 WARNING [0x70000d04e000] (tm-device.cpp:1378) T265 FW message: 91844193: [0x/29:192] LRT started
 06/12 22:53:16,686 WARNING [0x70000d04e000] (tm-device.cpp:1378) T265 FW message: 91916898: [0x/29:193] LeonIPC message size is 1
 06/12 22:53:16,688 INFO [0x106d57dc0] (tm-device.cpp:474) Added a fisheye sensor id: 0
 06/12 22:53:16,689 INFO [0x106d57dc0] (tm-device.cpp:474) Added a fisheye sensor id: 1
 06/12 22:53:16,689 INFO [0x106d57dc0] (tm-device.cpp:506) Added a gyro sensor id: 0 at 200Hz
 06/12 22:53:16,689 INFO [0x106d57dc0] (tm-device.cpp:506) Added a accel sensor id: 0 at 62Hz
 06/12 22:53:16,689 INFO [0x106d57dc0] (tm-device.cpp:509) Skipped a velocimeter stream
 06/12 22:53:16,689 INFO [0x106d57dc0] (tm-device.cpp:509) Skipped a velocimeter stream
 06/12 22:53:16,697 INFO [0x106d57dc0] (tm-device.cpp:599) Request for stream type 8 with stream index 0
 06/12 22:53:16,697 INFO [0x106d57dc0] (tm-device.cpp:644) Activated 1/5 streams
 06/12 22:53:18,212 ERROR [0x106d57dc0] (types.h:304) open(...) unknown error starting TIMEOUT
 06/12 22:53:18,212 WARNING [0x106d57dc0] (rs.cpp:1618) null pointer passed for argument "profile"
 06/12 22:53:28,375 WARNING [0x70000d04e000] (messenger-libusb.cpp:66) bulk_transfer returned error, endpoint: 0x82, error: Operation timed out, err. num: 60
 06/12 22:53:28,375 ERROR [0x70000d04e000] (tm-device.cpp:1983) Bulk response error RS2_USB_STATUS_TIMEOUT
 06/12 22:53:28,375 INFO [0x70000d04e000] (tm-device.cpp:1407) Got bad response, stopping log_poll
 06/12 22:53:38,535 WARNING [0x70000d0d1000] (messenger-libusb.cpp:66) bulk_transfer returned error, endpoint: 0x2, error: Operation timed out, err. num: 60
 06/12 22:53:38,535 ERROR [0x70000d0d1000] (tm-device.cpp:1967) Bulk request error RS2_USB_STATUS_TIMEOUT
 06/12 22:53:38,535 INFO [0x70000d0d1000] (tm-device.cpp:1422) Got bad response, stopping time sync
 06/12 22:53:48,549 WARNING [0x106d57dc0] (messenger-libusb.cpp:66) bulk_transfer returned error, endpoint: 0x2, error: Operation timed out, err. num: 60
 06/12 22:53:48,549 ERROR [0x106d57dc0] (tm-device.cpp:1967) Bulk request error RS2_USB_STATUS_TIMEOUT
RealSense error calling rs2_pipeline_start_with_config(pipe:0x7fdb8f4085e0, config:0x7fdb8f40b470):
    open(...) unknown error starting TIMEOUT

~/Documents/librealsense/build/examples/pose $

Only realsense-viewer came to help. After starting the device there, all C and python attempts work. Until the device was powered off by unplugging. Then the same sequence restarted.
I'm sorry, I had a pretty "old" development branch until today and I thought it would have been a good idea to start from scratch. Until today a lot of my USB problems were gone with PR #5213 . I don't currently know, what happened.

...plus building the master branch dies at 14% with linker error:
[ 14%] Linking CXX shared library pybackend2.cpython-37m-darwin.so
[ 14%] Built target pybackend2
make: *** [all] Error 2

OK, I'm not sure, if this makes sense: Cloning repo, checkout development, apply #5213, compile, install ---> fail
Cloning repo, checkout development, compile, install, apply #5213, compile, install  ---> works.
Just one (also known issue): Starting a new run too early leads to an error:
Device Positio^C 0.000 0.001 -0.000 (meters))
~/Documents/librealsense/build/examples/pose $ ./rs-pose
Device Position: -0.002 0.002 -0.000 (me^Crs)
~/Documents/librealsense/build/examples/pose $ ./rs-pose
De^Cce Position: -0.001 -0.000 -0.001 (meters)
~/Documents/librealsense/build/examples/pose $ ./rs-pose
Device Position:^C0.000 0.000 0.000 (meters))
~/Documents/librealsense/build/examples/pose $ ./rs-pose
RealSense error calling rs2_pipeline_start_with_config(pipe:0x7ffbdb508f70, config:0x7ffbdb508f80):
    open(...) failed to configure streams. T265 is running!
~/Documents/librealsense/build/examples/pose $ ./rs-pose
Device Position: -0^C00 0.000 -0.001 (meters)
~/Documents/librealsense/build/examples/pose $ ./rs-pose
Device Position: -0.001 -0.000 -0.000 (met^Cs)
~/Documents/librealsense/build/examples/pose $ ./rs-pose
RealSense error calling rs2_pipeline_start_with_config(pipe:0x7fa42c40ef60, config:0x7fa42c4076a0):
    open(...) failed to configure streams. T265 is running!

Well, I don't know. Either I have now a lucky phase, or the way, how the PR has to be applied, has to be as described.

Disregard

Here a small collection of consecutive runs of rs-pose, stopped by CTRL-C and immediately started. My observation with latest repo, USB and macOS Catalina is:

Master: Does not work at all reliably
Development: Does not work if not patched with #5213
If patched with #5213: Does work (at least better than Master or w/o patch), but far from working stable and reliably. See below.

~/Documents/librealsense/build/examples/pose $ ./rs-pose
Device Posit^Cn: 0.000 0.000 -0.000 (meters))
~/Documents/librealsense/build/examples/pose $ ./rs-pose
Device ^Csition: -0.000 0.000 0.000 (meters))
~/Documents/librealsense/build/examples/pose $ ./rs-pose
Device Position: 0.^C0 0.000 -0.001 (meters)))
~/Documents/librealsense/build/examples/pose $ ./rs-pose
RealSense error calling rs2_config_resolve(config:0x7facd8d00760, pipe:0x7facd8d00720):
    No device connected
~/Documents/librealsense/build/examples/pose $
~/Documents/librealsense/build/examples/pose $ ./rs-pose
D^Cice Position: -0.001 -0.000 0.000 (meters))
~/Documents/librealsense/build/examples/pose $ ./rs-pose
Device Position: -0.000 0.000 0.000^Cmeters))
~/Documents/librealsense/build/examples/pose $ ./rs-pose
RealSense error calling rs2_config_resolve(config:0x7fdfce901cb0, pipe:0x7fdfce901530):
    No device connected
~/Documents/librealsense/build/examples/pose $ ./rs-pose
Device Position: -0.000 0.001 ^C000 (meters))
~/Documents/librealsense/build/examples/pose $ ./rs-pose
Device Pos^Cion: -0.001 0.001 0.001 (meters)))
~/Documents/librealsense/build/examples/pose $ ./rs-pose
De^Cce Position: -0.000 0.004 0.000 (meters))
~/Documents/librealsense/build/examples/pose $ ./rs-pose
libc++abi.dylib: terminating
Abort trap: 6
~/Documents/librealsense/build/examples/pose $ ./rs-pose
Dev^Ce Position: 0.000 0.000 -0.001 (meters)))
~/Documents/librealsense/build/examples/pose $ ./rs-pose
libc++abi.dylib: terminating
Abort trap: 6
~/Documents/librealsense/build/examples/pose $

Even if it works, it is decorated with a couple of disturbing warnings :)
08/12 09:22:59,859 INFO [0x11d35edc0] (tm-info.cpp:51) Picked 1/4 devices
 08/12 09:22:59,864 INFO [0x11d35edc0] (tm-device.cpp:1898) Serial:<PHONE_NUMBER>110112
 08/12 09:22:59,864 INFO [0x11d35edc0] (tm-device.cpp:1900) Connection type: 3.1
 08/12 09:22:59,864 INFO [0x11d35edc0] (tm-device.cpp:1906) Firmware version: <IP_ADDRESS>9
 08/12 09:22:59,867 INFO [0x11d35edc0] (tm-device.cpp:474) Added a fisheye sensor id: 0
 08/12 09:22:59,868 WARNING [0x700008f9f000] (tm-device.cpp:1378) T265 FW message:<PHONE_NUMBER>: [0x/5:100] mempool out of memory: video
 08/12 09:22:59,868 WARNING [0x700008f9f000] (tm-device.cpp:1378) T265 FW message:<PHONE_NUMBER>: [0x/5:100] mempool out of memory: video
 08/12 09:22:59,868 WARNING [0x700008f9f000] (tm-device.cpp:1378) T265 FW message:<PHONE_NUMBER>: [0x/5:100] mempool out of memory: video
 08/12 09:22:59,868 WARNING [0x700008f9f000] (tm-device.cpp:1378) T265 FW message:<PHONE_NUMBER>: [0x/28:616] ASSERTION ret != RTEMS_TIMEOUT failed: sema
 08/12 09:22:59,868 WARNING [0x700008f9f000] (tm-device.cpp:1378) T265 FW message:<PHONE_NUMBER>: [0x/28:616] phore of write endpoint 1 was not released
 08/12 09:22:59,868 WARNING [0x700008f9f000] (tm-device.cpp:1378) T265 FW message:<PHONE_NUMBER>: [0x/31:546] Can't get stage test
 08/12 09:22:59,868 WARNING [0x700008f9f000] (tm-device.cpp:1378) T265 FW message:<PHONE_NUMBER>: [0x/31:546] Can't get stage test
 08/12 09:22:59,868 WARNING [0x700008f9f000] (tm-device.cpp:1378) T265 FW message:<PHONE_NUMBER>: [0x/31:546] Can't get stage test
 08/12 09:22:59,868 WARNING [0x700008f9f000] (tm-device.cpp:1378) T265 FW message:<PHONE_NUMBER>: [0x/31:546] Can't get stage test
 08/12 09:22:59,868 WARNING [0x700008f9f000] (tm-device.cpp:1378) T265 FW message:<PHONE_NUMBER>: [0x/31:546] Can't get stage test
 08/12 09:22:59,868 INFO [0x11d35edc0] (tm-device.cpp:474) Added a fisheye sensor id: 1
 08/12 09:22:59,868 INFO [0x11d35edc0] (tm-device.cpp:506) Added a gyro sensor id: 0 at 200Hz
 08/12 09:22:59,868 INFO [0x11d35edc0] (tm-device.cpp:506) Added a accel sensor id: 0 at 62Hz
 08/12 09:22:59,869 INFO [0x11d35edc0] (tm-device.cpp:509) Skipped a velocimeter stream
 08/12 09:22:59,869 INFO [0x11d35edc0] (tm-device.cpp:509) Skipped a velocimeter stream
 08/12 09:22:59,871 INFO [0x11d35edc0] (tm-device.cpp:599) Request for stream type 8 with stream index 0
 08/12 09:22:59,871 INFO [0x11d35edc0] (tm-device.cpp:644) Activated 1/5 streams
s

At runtime every second this warning appears:
08/12 09:23:00,713 WARNING [0x700008f9f000] (tm-device.cpp:1378) T265 FW message:<PHONE_NUMBER>: [0x/31:546] Can't get stage test
 08/12 09:23:00,713 WARNING [0x700008f9f000] (tm-device.cpp:1378) T265 FW message:<PHONE_NUMBER>: [0x/31:546] Can't get stage test
 08/12 09:23:00,713 WARNING [0x700008f9f000] (tm-device.cpp:1378) T265 FW message:<PHONE_NUMBER>: [0x/31:546] Can't get stage test
 08/12 09:23:00,713 WARNING [0x700008f9f000] (tm-device.cpp:1378) T265 FW message:<PHONE_NUMBER>: [0x/31:546] Can't get stage test
 08/12 09:23:00,713 WARNING [0x700008f9f000] (tm-device.cpp:1378) T265 FW message:<PHONE_NUMBER>: [0x/31:546] Can't get stage test
 08/12 09:23:00,713 WARNING [0x700008f9f000] (tm-device.cpp:1378) T265 FW message:<PHONE_NUMBER>: [0x/31:546] Can't get stage test
 08/12 09:23:00,713 WARNING [0x700008f9f000] (tm-device.cpp:1378) T265 FW message:<PHONE_NUMBER>: [0x/31:546] Can't get stage test
 08/12 09:23:00,713 WARNING [0x700008f9f000] (tm-device.cpp:1378) T265 FW message:<PHONE_NUMBER>: [0x/31:546] Can't get stage test
 08/12 09:23:00,713 WARNING [0x700008f9f000] (tm-device.cpp:1378) T265 FW message:<PHONE_NUMBER>: [0x/31:546] Can't get stage test
 08/12 09:23:00,713 WARNING [0x700008f9f000] (tm-device.cpp:1378) T265 FW message:<PHONE_NUMBER>: [0x/31:546] Can't get stage test

@neilyoung I pushed a few changes to #5213 that apply to this (e.g. 724c7e1) and for convenience I added #5426 to that branch also (which I believe will solve #5401). Let us know if that solves your issue, and feel free to close any you think are solved.

@bfulkers-i Thanks. I have cloned a fresh copy of the repo, switched to development and applied #5213. Then  #5426 .
While doing the latter I got an error:
~/Documents/librealsense $ git pull origin pull/5426/head
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 6 (delta 4), reused 5 (delta 4), pack-reused 0
Unpacking objects: 100% (6/6), done.
From https://github.com/IntelRealSense/librealsense
 * branch                refs/pull/5426/head -> FETCH_HEAD
CONFLICT (modify/delete): third-party/libtm/fw/CMakeLists.txt deleted in HEAD and modified in 610aa744e2fcdde8f68d44ab8c4a8b104482e52b. Version 610aa744e2fcdde8f68d44ab8c4a8b104482e52b of third-party/libtm/fw/CMakeLists.txt left in tree.
Automatic merge failed; fix conflicts and then commit the result.

Would you mind to share, how to recover from this?
TIA

No need to apply #5426, I already did that in 56cf379, you should simply checkout #5213 and build that. I periodically also rebase and force-push #5213 on the development branch so that it will be easy to merge.

@bfulkers-i OK, that looks very promising. First 10-15 runs no problems. I will continue to test.
Thanks

@bfulkers-i Just one thing, which does still not work: You can't successfully save a map w/o making a pause between pipe.stop() and export_localization_map() I'm waiting 5 s, this seems to be ok.

@neilyoung thanks for the reminder, pull and try again, I added 467c621 which I believe fixes that (no wait required).

@bfulkers-i Thanks. Will do later the day and report

@bfulkers-i Doesn't except anymore, but doesn't save either :)
                std::vector<uint8_t> map = pose_sensor.export_localization_map();
                printf("map exported, result: %lu bytes\n", map.size());

Result:
map exported, result: 0 bytes
Result with wait:
stopping pipe, saving map
pipe stopped ... sleeping 5s
map exported, result: 67339 bytes

@bfulkers-i I thought the 0 bytes would be explainable because I didn't move much with my first tests, so I omitted the timeout again and walked a little bit longer (20s). Same result.
W/o making a pause after stop the map is always empty.

@neilyoung so far I'm unable to reproduce this behavior, can you possibly provide more code to show exactly what you are doing? My test is:
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2019 Intel Corporation. All Rights Reserved.
#include <librealsense2/rs.hpp>
#include <iostream>
#include <fstream>
#include <thread>
#include <chrono>

int main(int argc, char * argv[])
{
    rs2::pipeline pipe;
    rs2::config cfg;
    cfg.enable_stream(RS2_STREAM_POSE, RS2_FORMAT_6DOF);
    auto pose_sensor = cfg.resolve(pipe).get_device().first<rs2::pose_sensor>();

    pipe.start(cfg);
    std::cerr << "Move the device...\n";
    std::this_thread::sleep_for(std::chrono::seconds(10));
    std::cerr << "Stop\n";
    pipe.stop();
    auto map = pose_sensor.export_localization_map();
    std::cerr << "Map is " << map.size()  << " bytes\n";
    return EXIT_SUCCESS;
}

@bfulkers-i Let me run your code... One second

I admit your code works fine. I have altered it and added some wireframes of my code and I can stop the entire engine. Mostly if I play a bit with set_static_node. You need to run this at least 3-5 times until the problem comes.
Hit 'n' for setting a static node where you are, hit 's' to stop and save the map.
#include <stdlib.h>
#include <sys/select.h>
#include <termios.h>
#include <unistd.h>
int kbhit() {
    struct timeval tv = {0L, 0L};
    fd_set fds;
    FD_ZERO(&fds);
    FD_SET(0, &fds);
    return select(1, &fds, NULL, NULL, &tv);
}

int getch() {
    int r;
    unsigned char c;
    if ((r = read(0, &c, sizeof(c))) < 0) {
        return r;
    } else {
        return c;
    }
}

int main(int argc, char* argv[]) {
    rs2::pipeline pipe;
    rs2::config cfg;
    cfg.enable_stream(RS2_STREAM_POSE, RS2_FORMAT_6DOF);
    auto pose_sensor = cfg.resolve(pipe).get_device().first<rs2::pose_sensor>();
    pose_sensor.set_option(RS2_OPTION_ENABLE_MAP_PRESERVATION, 1);

    pipe.start(cfg);
    std::cerr << "Move the device...\n";

    bool got_static_node = false;
    while (true) {
        auto frames = pipe.wait_for_frames();
        auto frame = frames.first_or_default(RS2_STREAM_POSE);
        auto pose_data = frame.as<rs2::pose_frame>().get_pose_data();

        rs2_vector translation;
        rs2_quaternion rotation;
        if (!got_static_node && pose_sensor.get_static_node("test", translation, rotation)) {
            printf("get_static_node ok\n");
            got_static_node = true;
        }

        if (kbhit()) {
            int c = getch();

            if (c == 'n') {         // Set static node
                if (pose_data.tracker_confidence == 3) {
                    int result = pose_sensor.set_static_node("test", pose_data.translation, pose_data.rotation);
                    printf("set_static_node result %d\n", result);
                    if (result == true) {
                        got_static_node = false;
                    }
                }
                else {
                    printf("insufficient confidence %d\n", pose_data.mapper_confidence);
                }
            }
            if (c == 's') {         // Stop
                break;
            }
        }

    }
    //std::this_thread::sleep_for(std::chrono::seconds(10));
    std::cerr << "Stop\n";
    pipe.stop();
    auto map = pose_sensor.export_localization_map();
    std::cerr << "Map is " << map.size() << " bytes\n";
    return EXIT_SUCCESS;
}

@bfulkers-i I never got that "0" bytes again. Really strange, but after a couple of attempts this mostly happens:
~/Documents/librealsense/build/examples/pose $ ./rs-pose
Move the device...
get_static_node ok
libc++abi.dylib: terminating with uncaught exception of type rs2::error: Frame didn't arrive within 15000
Abort trap: 6

@bfulkers-i Yepp, now also with "your" code. Note how many attempts it took.
And I added some other options, don't know if it makes a diff, so the whole script looks like so now:

// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2019 Intel Corporation. All Rights Reserved.
#include <chrono>
#include <fstream>
#include <iostream>
#include <librealsense2/rs.hpp>
#include <thread>

#include <stdlib.h>
#include <sys/select.h>
#include <termios.h>
#include <unistd.h>

int kbhit() {
    struct timeval tv = {0L, 0L};
    fd_set fds;
    FD_ZERO(&fds);
    FD_SET(0, &fds);
    return select(1, &fds, NULL, NULL, &tv);
}

int getch() {
    int r;
    unsigned char c;
    if ((r = read(0, &c, sizeof(c))) < 0) {
        return r;
    } else {
        return c;
    }
}

int main(int argc, char* argv[]) {
    rs2::pipeline pipe;
    rs2::config cfg;
    cfg.enable_stream(RS2_STREAM_POSE, RS2_FORMAT_6DOF);
    auto pose_sensor = cfg.resolve(pipe).get_device().first<rs2::pose_sensor>();
    pose_sensor.set_option(RS2_OPTION_ENABLE_MAP_PRESERVATION, 1);
    pose_sensor.set_option(RS2_OPTION_ENABLE_POSE_JUMPING, 1);
    pose_sensor.set_option(RS2_OPTION_ENABLE_MAPPING, 1);
    pose_sensor.set_option(RS2_OPTION_ENABLE_RELOCALIZATION, 1);

    pipe.start(cfg);
    std::cerr << "Move the device...\n";

    bool got_static_node = false;
    while (true) {
        auto frames = pipe.wait_for_frames();
        auto frame = frames.first_or_default(RS2_STREAM_POSE);
        auto pose_data = frame.as<rs2::pose_frame>().get_pose_data();

        rs2_vector translation;
        rs2_quaternion rotation;
        if (!got_static_node && pose_sensor.get_static_node("test", translation, rotation)) {
            printf("get_static_node ok\n");
            got_static_node = true;
        }

        if (kbhit()) {
            int c = getch();

            if (c == 'n') {         // Set static node
                if (pose_data.tracker_confidence == 3) {
                    int result = pose_sensor.set_static_node("test", pose_data.translation, pose_data.rotation);
                    printf("set_static_node result %d\n", result);
                    if (result == true) {
                        got_static_node = false;
                    }
                }
                else {
                    printf("insufficient confidence %d\n", pose_data.mapper_confidence);
                }
            }
            if (c == 's') {         // Stop
                break;
            }
        }

    }
    //std::this_thread::sleep_for(std::chrono::seconds(10));
    std::cerr << "Stop\n";
    pipe.stop();
    auto map = pose_sensor.export_localization_map();
    std::cerr << "Map is " << map.size() << " bytes\n";
    return EXIT_SUCCESS;
}

Steps to the error:

~/Documents/librealsense/build/examples/pose $ ./rs-pose
Move the device...
get_static_node ok
n
set_static_node result 1
get_static_node ok
s
Stop
Map is 631355 bytes
~/Documents/librealsense/build/examples/pose $
~/Documents/librealsense/build/examples/pose $ ./rs-pose
Move the device...
get_static_node ok
s
Stop
Map is 823145 bytes
~/Documents/librealsense/build/examples/pose $
~/Documents/librealsense/build/examples/pose $ ./rs-pose
Move the device...
get_static_node ok
s
Stop
Map is 830209 bytes
~/Documents/librealsense/build/examples/pose $
~/Documents/librealsense/build/examples/pose $ ./rs-pose
Move the device...
get_static_node ok
s
Stop
Map is 652053 bytes
~/Documents/librealsense/build/examples/pose $
~/Documents/librealsense/build/examples/pose $ ./rs-pose
Move the device...
s
Stop
Map is 679467 bytes
~/Documents/librealsense/build/examples/pose $
~/Documents/librealsense/build/examples/pose $ ./rs-pose
Move the device...
get_static_node ok
s
Stop
Map is 0 bytes
^C
~/Documents/librealsense/build/examples/pose $

Thanks for the code @neilyoung, I see weird behavior in your example too. We will take a closer look and reply here.

@bfulkers-i Many thanks. Good luck. Let me know, if you need my assistance

@neilyoung We are in the process of fixing this map saving bug described above, but it looks like it will require a new version of the firmware. We will aim to update that toward the end of this week. I'm changing the title of this to reflect the new scope of this issue.

@bfulkers-i Thanks for letting me know. Take your time.

@bfulkers-i Two attempts with the latest #5213, 64c753b67c5dbc1299dcc4adf037c0213231b7bb.
Script from here https://github.com/IntelRealSense/librealsense/issues/5394#issuecomment-564984281
Result:
~/Documents/librealsense/build/examples/pose $ ./rs-pose
Move the device...
n
set_static_node result 1
get_static_node ok
s
Stop
Map is 60405 bytes
~/Documents/librealsense/build/examples/pose $
~/Documents/librealsense/build/examples/pose $ ./rs-pose
Move the device...
get_static_node ok
s
Stop
Map is 0 bytes

Was the 0 byte issue supposed to be fixed with this commit?

Fixed

I suspect you just got lucky, @neilyoung.  We'll have some fixes soon that should be much more reliable.

OK, cool. I admit, after my euphoric post there have been the same issues again. But not that often as before. Keen to see the final result.


[INLONG-4755][Manager] add  Resolve swagger display LocalDateTime LocalTime

Prepare a Pull Request
(Change the title refer to the following example)

Title Example: [INLONG-XYZ][Component] Title of the pull request

(The following XYZ should be replaced by the actual GitHub Issue number)

Fixes #4755

Motivation
Explain here the context, and why you're making that change. What is the problem you're trying to solve?
Modifications
Describe the modifications you've done.
Verifying this change
(Please pick either of the following options)

[ ] This change is a trivial rework/code cleanup without any test coverage.

[ ] This change is already covered by existing tests, such as:
(please describe tests)

[ ] This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end deployment with large payloads (10MB)
Extended integration test for recovery after broker failure

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
If a feature is not applicable for documentation, explain why?
If a feature is not documented yet in this PR, please create a follow-up issue for adding the documentation

For more info about how to contribute, please refer to https://inlong.apache.org/community/how-to-contribute and https://inlong.apache.org/community/how-to-commit

thanks @showingdata
please update this PR according to the template. like "Title Example: [INLONG-XYZ][Component] Title of the pull request"

If the interface back end returns LocalDate or LocalDateTime or LocalTime, use Swagger to display it on the page. Add code .directModelsubstitute (Localdate.class, String.class), or. DirectModelSubstitute (LocalTime.Class,String.class) is ok
I was just trying to get Swagger on board

If the interface back end returns LocalDate or LocalDateTime or LocalTime, use Swagger to display it on the page. Add code .directModelsubstitute (Localdate.class, String.class), or. DirectModelSubstitute (LocalTime.Class,String.class) is ok
I was just trying to get Swagger on board

If the interface back end returns LocalDate or LocalDateTime or LocalTime, use Swagger to display it on the page. Add code .directModelsubstitute (Localdate.class, String.class), or. DirectModelSubstitute (LocalTime.Class,String.class) is ok
I was just trying to get Swagger on board
At 2022-06-23 19:21:36, "healzhou" @.***> wrote:
@healchow commented on this pull request.
In inlong-manager/manager-web/src/main/java/org/apache/inlong/manager/web/config/Swagger2Config.java:

@@ -38,6 +42,9 @@ public class Swagger2Config {
public Docket createRestApi() {
return new Docket(DocumentationType.SWAGGER_2)
.apiInfo(apiInfo())

           .directModelSubstitute(LocalDate.class, String.class)

Thanks for your contribution.
Firstly, please create an issue here: https://github.com/apache/inlong/issues/new/choose,
Secondly, could you please explain why add those configs?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

@showingdata there are some conflicts, please rebase firstly.

Conflict resolved

Sorry I haven't seen the code specification issue before I have resubmitted the merge request and added a note to it
At 2022-06-27 16:31:21, "Charles Zhang" @.***> wrote:
@showingdata there are some conflicts, please rebase firstly.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>


No replies are shown

Why? (Not in Unified, nor in Home)
So basically, I only see tweets that don't contain @* in front.

Btw, if the tweets are direct to someone I follow I do get them.


[FormRecognizer] Address design issue for preview.3

Add pageNumber to FieldText
CustomFormSubModel => CustomFormSubmodel
TrainModelOptions => TrainingFileFilter
ContentType => FormContentType
Models createdOn => requestedOn, lastModified => completedOn

/azp run js - formrecognizer - tests

Dihantar daripada telefon Huawei saya-------- Mesej asal --------Daripada: "azure-pipelines[bot]"<EMAIL_ADDRESS>Kha, 28 Mei 2020, 2:36 PTGKepada: Azure/azure-sdk-for-js<EMAIL_ADDRESS>Subscribed<EMAIL_ADDRESS>Re: [Azure/azure-sdk-for-js] [FormRecognizer] Address design issue for preview.3 (#9142)
Azure Pipelines successfully started running 1 pipeline(s).
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.

Dihantar daripada telefon Huawei saya-------- Mesej asal --------Daripada: Jeremy Meng<EMAIL_ADDRESS>Kha, 28 Mei 2020, 2:36 PTGKepada: Azure/azure-sdk-for-js<EMAIL_ADDRESS>Subscribed<EMAIL_ADDRESS>Re: [Azure/azure-sdk-for-js] [FormRecognizer] Address design issue for preview.3 (#9142)
/azp run js - formrecognizer - tests
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.


[PACE-117] Create a service 'data resources managed by pace'

We now have the strange situation that a view, created via a PACE ruleset is considered to be not managed by pace, and the lineage call returns has_no_data_policy.
We should probably keep track of an extra table with all the data resources managed by pace (list of DataResourceRefs).
From SyncLinear.com | PACE-117

Also fixes PACE-113

Also fixes PACE-119


ztracy Always Enabled

Hey there! Even when enable_ztracy is false, tracy is enabled and the application is listening on port 8080.
Take the procedural mesh sample application for instance:

You can see that the application is listening on 8086 and tracy can find it without issue even though enable_ztracy is false.
I think we want to change this line to:
if (options.enable_ztracy) "-DTRACY_ENABLE" else "",

Which appears to solve the issue locally. Let me know what you think!
- Jim

Fixed by https://github.com/zig-gamedev/zig-gamedev/pull/722

Thanks all! :heart:


Fix display LogInComponent turning blank when entering wrong username/password combination

References

Fixes #2515
Related #2414

Description
Fixes bug where the LogInComponent turns blank when submitting invalid username/password combination.
Instructions for Reviewers
Instead of hiding the LogInContainerComponent by checking it's content, now it hides it by checking if the login method has a component with a rendersAuthMethodType decorator.
Guidance for how to test or review this PR:
You can test it locally but I wasn't able to reproduce the bug myself with my local setup
Checklist

[x] My PR is small in size (e.g. less than 1,000 lines of code, not including comments & specs/tests), or I have provided reasons as to why that's not possible.
[x] My PR passes ESLint validation using yarn lint
[x] My PR doesn't introduce circular dependencies (verified via yarn check-circ-deps)
[x] My PR includes TypeDoc comments for all new (or modified) public methods and classes. It also includes TypeDoc for large or complex private methods.
[x] My PR passes all specs/tests and includes new/updated specs or tests based on the Code Testing Guide.
[x] If my PR includes new libraries/dependencies (in package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.
[x] If my PR includes new features or configurations, I've provided basic technical documentation in the PR itself.
[x] If my PR fixes an issue ticket, I've linked them together.

Reviewed by testing on DSpace 7.6.
I haven't managed to pinpoint the circumstances where it occurs, but I get a blank login menu very frequently when running in dev mode. With this patch I have not noticed the blank menu even once, and everything is working as normal as far as I can tell. I'm +1 by testing. Haven't reviewed the code yet.

@vins01-4science, I implemented your feedback, and I also added a small commit to fix an error that I found while making the updates.
When you are running Angular, but your backend is down, the error ERROR TypeError: authorizations.filter is not a function is logged. This error occurs because AuthorizationDataService#isAuthorized returns false when an error is thrown, and oneAuthorizationMatchesFeature tries to iterate over it, which is obviously not possible. To fix this, an empty array needs to be returned, and this will still result in an observableOf(false) being returned by AuthorizationDataService#isAuthorized.

Ported to 7.6.x manually via #2575


The descheduler trivy security scanning is reporting critical CVE-2022-1996

What version of descheduler are you using?
The version v0.24.1
Does this issue reproduce with the latest release?
Yes
Which descheduler CLI options are you using?
Runtime is not needed as we can scan the binary directly without running it
Please provide a copy of your descheduler policy config file
Runtime is not needed as we can scan the binary directly without running it
What k8s version are you using (kubectl version)?
Runtime is not needed as we can scan the binary directly without running it
What did you do?

Installed trivy binary

Run the image scanning

trivy image --ignore-unfixed --severity CRITICAL k8s.gcr.io/descheduler/descheduler:v0.24.1

What did you expect to see?
=====================
Total: 0 (CRITICAL: 0)

What did you see instead?
==========================
Total: 1 (CRITICAL: 1)

+--------------------------------+------------------+----------+---------------------+---------------+--------------------------------------+
|            LIBRARY             | VULNERABILITY ID | SEVERITY |  INSTALLED VERSION  | FIXED VERSION |                TITLE                 |
+--------------------------------+------------------+----------+---------------------+---------------+--------------------------------------+
| github.com/emicklei/go-restful | CVE-2022-1996    | CRITICAL | v2.9.5+incompatible | v3.8.0        | go-restful: Authorization Bypass     |
|                                |                  |          |                     |               | Through User-Controlled Key          |
|                                |                  |          |                     |               | -->avd.aquasec.com/nvd/cve-2022-1996 |
+--------------------------------+------------------+----------+---------------------+---------------+--------------------------------------+

First of all, thanks for this great tool!
I'll be happy to help with this if I can.
Cheers.

Thanks @rsvalerio, this seems like a transitive dependency, probably from one of the k8s libraries if I had to guess. Let's see if bumping those brings in the fixed version and if so we can backport it through the supported descheduler versions. If you'd like to help with that please feel free to self-assign

yes, you are right!
I've bumped versions to the latest, but still using old transitive dependency for go-restful.
	github.com/client9/misspell v0.3.4
	github.com/spf13/cobra v1.5.0
	github.com/spf13/pflag v1.0.5
	k8s.io/api v0.24.3
	k8s.io/apimachinery v0.24.3
	k8s.io/apiserver v0.24.3
	k8s.io/client-go v0.24.3
	k8s.io/code-generator v0.24.3
	k8s.io/component-base v0.24.3
	k8s.io/component-helpers v0.24.3
	k8s.io/klog/v2 v2.70.1
	k8s.io/kubectl v0.24.3
	k8s.io/utils v0.0.0-20220728103510-ee6ede2d64ed
	sigs.k8s.io/mdtoc v1.1.0

And some of these dependencies need a code change.
I already see some movement about it, like here preparing a next release o 0.25 and k8s 1.25

@rsvalerio thanks for confirming that. If they backport this update upstream, then we should be able to pull it in to our versions by just updating the k8s deps and we can put out a patch. Otherwise, it might be tougher to bump just this dependency but we can still try. Either way, if they're working on it for 1.25 then it will get pulled into our next release (v0.25.0)

thanks a lot for bring this ! i will  add gh-action for security scanning~~

add ci pr here: https://github.com/kubernetes-sigs/descheduler/pull/898, will hold until we fix this security issue


Fix build on PPC970 for FreeBSD

PPC970 on FreeBSD needs those macros too.
You could consider testing PPC970 on Linux to simplify this if:
#if defined(POWER3) || defined(POWER6) || defined(PPCG4) || defined(CELL) || defined(POWER8) || defined(POWER9) || ( defined(PPC970) && ( defined(OS_DARWIN) || defined(OS_FREEBSD) ) )

-Thanks.That ifdef does not look any worse than some of the x86_64 ones...