The instance of entity type 'UnitSkill' cannot be tracked because another instance with the same key value for entity Name is already being tracked.

[My Requirement :
I have 3 tables in My DB

Units
Skills
UnitSkill

Now I Have 2 UI screen from where we add value in DB- First is Skills UI, here the Units are not created. Skills are created as Master list in DB, Which will be used in Multiselect Dropdown to choose Skills to be associated with Unit. vice versa also can happen.
What I follow :
have dataModel of all three etity. and have created Repository of only 2 Entity (Units and Skill) as the other one is the relation entity.
    {
    "name": "Sanskrit Varnamal grade 1",
    "durationInDays": 10,
    "courseId": "b0ffcb3c-d050-4d53-8da8-12c8039f93c3",
     "unitSkills": [
    {
      "id": "bdf5456e-3de4-4269-a09c-4feb5362268c",
    },
    {
      "id": "c99cf918-2a47-4146-8461-7ba5c2efda83",
    }]

Now the action method of API-
    public async Task<IActionResult> Post([FromBody] CreateUnitVM Model)
         {
            var DataModel = _mapper.Map<Unit>(Model);
            DataModel.CreatedAt = DateTime.Now;
            DataModel.UpdatedAt = DateTime.Now;
            foreach (var item in Model.UnitSkills)
            {

                DataModel.UnitSkills.Add(new UnitSkill
                {
                    SkillId = item.Id

                });
            }

            //DataModel.CreatedBy=

            var result = await _UnitRepository.CreateAsync(DataModel);

            return Ok(result);
        }

But the above code throws error,
The instance of entity type 'UnitSkill' cannot be tracked because another instance with the same key value for {'SkillId', 'UnitId'} is already being tracked. When attaching existing entities, ensure that only one  entity instance with a given key value is attached. Consider using
'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting key values.
Now after reading other posts I assume that this is not the right approach, Please guide me.
Thanks
]

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

ID: 0f0fb981-4dec-7ff7-817b-6606f620b875
Version Independent ID: c7517e7d-f011-a24c-53da-913771913998
Content: Saving Related Data - EF Core
Content Source: entity-framework/core/saving/related-data.md
Product: entity-framework
Technology: entity-framework-core
GitHub Login: @rowanmiller
Microsoft Alias: avickers

There isn't enough code shown here to properly understand the interaction with EF. Please attach a small, runnable project or post a small, runnable code listing that reproduces what you are seeing so that we can investigate.

Hi @ajcvickers ,
The code which I have posted is part of a large project, Need send you the running sample project. Mean while its related to Many To Many Relation, I will try to elaborate my Issue and the exception : So that if you would have link or sample we could share.
I have three entity - 1. Unit 2. Skill and 3 UnitSkill this the relation or intermediate table for storing the relation.
Now I have a separate UI for Skill creation, This means Skill is created very first.
When we come to create Unit then the skills are shown in a dropdown list -for multi select.
What I want -when I am creating UNIT that time  only I could be able to create the relation.
If you see the Json which I am posting to the action having multiple Id in SKILLUnit part which is the Skill Id.
On action, am assigning in the related entity, that leads to throw the above exception.
Have tried another approach like fetching the skill from DB and then attaching the same in the Unit Model Navigation part.
Hope I am able to state my problem.

@santosh2812 There isn't enough here to properly understand the interaction with EF. I think we're going to need runnable code to fully investigate.

EF Team Triage: Closing this issue as the requested additional details have not been provided and we have been unable to reproduce it.
BTW this is a canned response and may have info or details that do not directly apply to this particular issue. While we'd like to spend the time to uniquely address every incoming issue, we get a lot traffic on the EF projects and that is not practical. To ensure we maximize the time we have to work on fixing bugs, implementing new features, etc. we use canned responses for common triage decisions.


fix #4692 and typo in comments

fix #4692 and corrected typo in this comment
changed this

NewGhostUser creates and returns a fake user for someone has deleted his/her account.

into this:

NewGhostUser creates and returns a fake user for someone who has deleted his/her account.

and added "explore" and "create" to the reserved user name list #4692

Thanks your PR!


rpc error: code = DeadlineExceeded desc = context deadline exceeded

I am trying to analyze a website and it throws me this error, would you know a possible solution, I am using docker: 8000
rpc error: code = DeadlineExceeded desc = context deadline exceeded

Try using the docker-compose steps from the README, if it still doesn't work please post more details such as steps to reproduce

Hello, thanks for answering,
I have done the indicated steps again, but apparently the problem persists with pages that take a long time to analyze
Request Method: POST
Error: Request failed with status code 500
at createError (createError.js:16:1)
at settle (settle.js:17:1)
at XMLHttpRequest.handleLoad (xhr.js:62:1)
With pages that have less weight, it analyzes without a problem.
will it be timeout? where can i increase your time?

It might be this timeout but it's set to 45 seconds: https://github.com/websu-io/websu/blob/5fdfd31684b640f5f224dfec89c78024d290b83e/pkg/api/app.go#L270
It could be that you're running websu in an environment with very poor internet connectivity. I don't recommend increasing the timeout to more than 45 seconds.

I think that if one of the problems could be the network but I have increased it 5 more seconds and it has already worked for me Thank you

I guess it should be a configurable timeout in that case. Thanks for reporting this and happy to see someone taking Websu being used outside of https://websu.io
I would like to learn more how you plan to use Websu if you're willing to share :)
I'm keeping it open and change to a FR for configurable timeouts.

Supongo que debería ser un tiempo de espera configurable en ese caso. Gracias por informar esto y feliz de ver a alguien tomando Websu y usándolo fuera de https://websu.io
Me gustaría obtener más información sobre cómo planea usar Websu si está dispuesto a compartir :)
Lo mantengo abierto y cambio a un FR para tiempos de espera configurables.

Thank you for the contribution that you are giving, if I am offering it for free to everyone so that they can analyze it faster, it is much more friendly web.dev many common users are unaware of the lighthouse tool and more only reach pagespeed, with your contribution it is a way more accessible and the other is that it allows you to analyze it for desktop or mobile, webdev only analyzes for cell phones I don't know why and the possibility of using several regions I think is very excellent although I haven't been able to configure that part or I don't know why the selector leaves me blank :) so through my agency I offer it for free and well maybe later we can contribute with other tools through it or join others that are here github

Thanks for sharing! You will have to start deploying locations across the world and then add the locations using the location API endpoint. You can take a look at the script I use to make Websu available in all regions that Cloud Run is available in: https://github.com/websu-io/websu/blob/master/scripts/deploy-lighthouse-servers.py
I also want to mention that the current UI of websu.io is not open source because it didn't make sense to add authentication and static pages like privacy policies in the OSS version of the UI. So I currently maintain 2 versions of the UI and majority of my time is now spent on the SaaS UI version while making sure the OSS UI doesn't break.
Please keep the feedback coming on what features would attract more users. My focus for now is to work on monitoring and more dashboards so people can analyze the performance of a specific website over time and get alerted when performance gets degraded.

Thank you very much, I will be reviewing the scripts, something interesting that you can do a site vs site comparative option where you can compare your website with that of your competition or your same website but in comparison January vs. March for example

and the other one, as I was saying, being able to update the lighthouse would be good because you add the accessibility metric


Use lsblk to get the real filesystem types

Use the lsblk -f command on Linux systems to get the real filesystem types in lb_df_fstype()

[x] change code
[x] update documentation with FS types results

Done in commit aac222e59bf7067231ea470a593c90e15bdd5ee3


updating file names in JWST_utils notebooks

I also just edited the wavelength calibration with RASCAL to work with the newest version


go-live

Docs Build status updates of commit b8eb8ca:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/bots/bot-basics.md
:white_check_mark:Succeeded

msteams-platform/bots/how-to/create-a-bot-commands-menu.md
:white_check_mark:Succeeded

msteams-platform/task-modules-and-cards/cards/cards-reference.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Update CONTRIBUTING.md

Typo fix
Pull Request Description
This pull request closes #
Acceptance Test

[x] Building the code with mvn clean install -Dintegration.tests still works.
[x] Running mvn spring-boot:run in the strongbox-web-core still starts up the application correctly.
[x] Building the code and running the strongbox-distribution from a zip or tar.gz still works.
[x] The tests in the strongbox-web-integration-tests still run properly.

Questions

Does this pull request break backward compatibility?

[ ] Yes
[x] No

Does this pull request require other pull requests to be merged first?

[] Yes, please see #...
[x] No

Does this require an update of the documentation?

[ ] Yes, please see strongbox/strongbox-docs#{PR_NUMBER}
[x] No

Thank you for your contribution! :)

Thanks for your contribution @ramazansakin! I'm merging this without an ICLA since this is an obvious typo/wording fix! :)


[TEST] Fix Some Failed Test Cases and Tutorials of The Issue #6453

I found the bug firstly from the recent version of  tutorial "tutorials/optimize/opt_gemm.py", and I have tried my best to find other test cases and tutorials that will fail with the same reason, for each of these python script, I first run it to ensure it have this error behavior, then I add the fix string import tvm.testing, finally I run it again to ensure the error behavior is gone.
Pleae notice some of these test cases still maybe fail but the reason will have nothing to do with the problem described in issue #6453.

@Johnson9009 thanks for the PR - You're correct, this is a side-effect of that change. I wonder why we didn't see this in CI.
cc @tqchen

I think the reason is that the tests are run together, and some previous tests already imports the testing

Thanks @Johnson9009 @leandron !


1Password Solution: App Analytics for Function App defaults to deprecated "classic".

Describe the bug
When deployed using the current manifest, the App Insights resources appears to be created as a "classic" resource type. Since this has now been deprecated, new deployments cannot be made to certain regions (e.g., Sweden Central). The App Insights resource should be a Workbook type resource going forward.
To Reproduce
Steps to reproduce the behavior:

Attempt to deploy the solution to a region where Classic app insights have been deprecated.
Function App fails because App Insights resource cannot be created.

Expected behavior
Deployment should succeed.
Additional context
This is something that I (as a 1Password employee) and @azurekid can work on and resolve.

Thanks @scottisloud, for flagging this issue.
@azurekid, Could you please look into this issue? Thanks!

@azurekid, will link this issue once you raise a PR for this feature request, @scottisloud, As of now closing this from GitHub. Thanks!

We're seeing some reports from customers attempting to deploy the Solution in some relatively common regions (e.g., canada-central) and failing due to Classic resource mode for Application Insights resources being deprecated in that region.
Would the Codeless connector currently in PR resolve this? Is there a relatively straightforward way to update the existing solution to use Workspace-based mode?


Provided nix run command fails

I'm trying to run the CARLA binary with the command provided by the Readme:
nix run github:CTU-IIG/carla-simulator.nix#carla-bin_0_9_14

However this fails with following output:
error: flake 'github:CTU-IIG/carla-simulator.nix' does not provide attribute 'apps.x86_64-linux.carla-bin_0_9_14', 'packages.x86_64-linux.carla-bin_0_9_14', 'legacyPackages.x86_64-linux.carla-bin_0_9_14' or 'carla-bin_0_9_14'

Something similar happens with the other command you provided:
nix profile install github:CTU-IIG/carla-simulator.nix#scenic

error: flake 'github:CTU-IIG/carla-simulator.nix' does not provide attribute 'packages.x86_64-linux.scenic', 'legacyPackages.x86_64-linux.scenic' or 'scenic'

How would you recommend I should run CARLA on Nix? And since I'm still relatively new to Nix/NixOS, could you elaborate how I could install this without nix profile install (I'm using flakes for my own NixOS setup if that's important).
Update: It's running now, since I simply extracted the packaging code in /carla-bin into my own .nix files, but still it would be a good idea to have some up-to date instructions in the Readme.

You're right. I've recently changed the attribute names and forgot to update the README. I'm pushing the correction now.
I've also added an example of flake-based NixOS configuration using this flake.
Let me know, if you need more help. Up to now, I was not aware of any other users except my teammates so I didn't pay that much attention to documenting everything.


Is there a way to limit slider

Discussed in https://github.com/nolimits4web/swiper/discussions/5892

Originally posted by shahjehan-wpbrigade July 19, 2022
Is there a way to limit swiper slides to focus only on visible slides? Check below video
https://www.loom.com/share/9bbeb03d00e54530a026fd731e18d0bd?focus_title=1&muted=1&from_recorder=1
Code Pen

Do you want to ask a question? Are you looking for support? Stack Overflow or Swiper Discussions is the best places for getting support

Please, don't use GitHub issues for questions


rewrite - Dashboard (exclude sideBar) and EditorSettings

Codecov Report

Merging #11 (24c20f7) into main (80fdea0) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main       #11   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            1         1
  Lines            2         2
=========================================
  Hits             2         2

Continue to review full report at Codecov.

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


How do i add new providers to Terraformer

Hi Team
I would like to add support for apache cloudstack
https://cloudstack.apache.org/
https://github.com/apache/cloudstack-terraform-provider
I am able to deploy resources to cloudstack using terraform without any issues
What is the procedure to import the existing resources on my cloudstack, could someone guide me on how  to do that

Some documentation on the process of requesting / adding a new provider would be nice indeed.

Here are high-level steps

Initialize provider details in cmd/root.go and create a provider initialization file  in the terraformer/cmd folder
Create a folder under terraformer/providers/ for your provider
Create two files under this folder

<provide_name>_provider.go
<provide_name>_service.go

Initialize all provider's supported services in <provide_name>_provider.go file


getStaticPathsFromContext() Returns an Empty Array at Build Time

Hello,
For a multilingual site that I'm working on, I have a dynamic route at pages/[...slug].tsx.
I want to run getStaticPaths with the fallback property set to false so that only the pages present at build time are created. The code for my getStaticPaths function looks like this:
export async function getStaticPaths(context: any) {
  const paths = await drupal.getStaticPathsFromContext(
    ["node--page"],
    context,
    }
  );
  return {
    paths,
    fallback: false,
  };
}

The problem is that getStaticPathsFromContext always returns an empty array at build time. This means that the pages pulled in from Drupal aren't being built.
The catch is that if I set fallback to 'blocking', we can access those pages.

I'm closing this issue as it's the result of an issue in Drupal. We found that the path attribute was not being returned in the JSON API response for our pages.

Did you figure out what the problem was? I'm having the same problem after updating Drupal.

Yes @ui-jb please update us when you can with the Drupal issue link if you have it, I'm having the same issue.

Fantastic, I suspected it was that second ticket! Thanks so much for confirming - we'll be applying that patch today.

@iamfredrik @MartinDavi I'm the frontend dev, but the Drupal dev who resolved the issue explained it like this:

It was an issue generated by the Multilingual system, which generates some overrides to base fields. The path is one of those overridden fields (a new setting is attached to the field to indicate whether the path is translatable). Once a field is overridden, it is under the control of the class BaseFieldOverride and that class was inheriting its isInternal() method from FieldConfigBase, so that any computed field becomes internal though initially the field might be non-internal. And, fields marked as internal are not shown in the API.

He also provided these two drupal issues for more context: https://www.drupal.org/project/jsonapi/issues/3012019 https://www.drupal.org/project/drupal/issues/3274419

I have already tried the patch and the proposed solutions, but alas, none of them worked for me.

I had to add path to the requested fields from the json:api to get the path to show up, which was new behaviour I think:
  const params = new DrupalJsonApiParams();

  RESOURCE_TYPES.map((resourceType) =>
    params.addFields(resourceType, ['path'])
  );

Something like that assuming you're using DrupalJsonApiParams - I didn't need to do this prior.


Flower growing animation[gssoc'23]

Title and Issue number

### Flower growing animation
ISSUE #4429
Close #4429

Checklist:

[X] I have mentioned the issue number in my Pull Request.
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have created a helpful and easy to understand README.md

@MohitGupta121 @pranjay-poddar @TusharKesarwani please take a review of my PR & merge it under GSSOC'23.


Convert .pt to onnx

Hello,
Following this tutorial:
https://github.com/open-mmlab/playground/tree/1c6cace3f6378eaab6f183c418b1d4027763fb72/label_anything
Trained a model. Trying to convert the trained .pt to onnx
python3 tools/deploy.py \
    configs/mmseg/segmentation_onnxruntime_dynamic.py \
    data/my_set/mask-rcnn_r50_fpn.py \
    work_dirs/mask-rcnn_r50_fpn/epoch_12.pth \
    /home/yc2/Desktop/seg/rc/1.jpg \
    --work-dir mmdeploy_models/mmseg/ort \
    --device cpu \
    --show \
    --dump-info

raceback (most recent call last):
  File "/home/yc2/Desktop/seg/mmdeploy/tools/deploy.py", line 335, in <module>
    main()
  File "/home/yc2/Desktop/seg/mmdeploy/tools/deploy.py", line 129, in main
    export2SDK(
  File "/home/yc2/.local/lib/python3.10/site-packages/mmdeploy/backend/sdk/export_info.py", line 352, in export2SDK
    deploy_info = get_deploy(deploy_cfg, model_cfg, work_dir, device)
  File "/home/yc2/.local/lib/python3.10/site-packages/mmdeploy/backend/sdk/export_info.py", line 267, in get_deploy
    _, customs = get_model_name_customs(
  File "/home/yc2/.local/lib/python3.10/site-packages/mmdeploy/backend/sdk/export_info.py", line 63, in get_model_name_customs
    name = task_processor.get_model_name()
  File "/home/yc2/.local/lib/python3.10/site-packages/mmdeploy/codebase/mmseg/deploy/segmentation.py", line 318, in get_model_name
    assert 'decode_head' in self.model_cfg.model, 'model config contains'
AssertionError: model config contains

Thank you

@drag0n-flyer Please go to mmdeploy create a issue


Incorrect parameter documentation

The document states to use an HTML colour code for -backgroundcolor, however this doesn't work, it actually wants the colour. For example black. What's even more hilarious is that if you want light blue, it will do that but you have to put lightblue and not 'light blue' as you might expect. There appears to be an undocumented number of colours you could have; for example it likes royalblue but not navyblue.

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

ID: aabcc26e-242d-1342-24af-a419a129e91d
Version Independent ID: 110aa234-6fb0-ff5c-fe5c-10b86147b9ce
Content: Set-OMEConfiguration (exchange)
Content Source: exchange/exchange-ps/exchange/encryption-and-certificates/Set-OMEConfiguration.md
Service: exchange-powershell
GitHub Login: @chrisda
Microsoft Alias: chrisda

@grtaylor806, I've determined after testing that the BackgroundColor parameter does accept hex color code values (in 0x00xxxxxx notation, not #xxxxxx like the topic says), but only from a list of 140 specific values. Or you can specific the corresponding text value (e.g., 0x0000FA9A or mediumspringgreen). Because there are so many values, I wrote a separate topic and linked to it from the parameter description. That topic is here.
Thanks for the feedback.


⚠ Processors has degraded performance

In bcc50a4, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 85 ms

Resolved: Processors performance has improved in fabfaa0.


Can not configure custom authorization at pg_hba.conf because of more global rule

docker-entrypoint.sh sets up host all all all scram-sha-256 into pg_hba.conf file.
https://github.com/docker-library/postgres/blob/8a631b939a0b4197cb6bef49b50b6c40c80ddf5b/15/bookworm/docker-entrypoint.sh#L252
For my database located in trusted network I wan to configure trusted authentication, but can not, because first list matched first:
...
host all all all scram-sha-256
host db user <IP_ADDRESS>/12 trust

My /docker-entrypoint-initdb.d/000-trust.sh script is:
echo "host db user <IP_ADDRESS>/12 trust" >> "${PGDATA}/pg_hba.conf"

It would be nice if this catch-all rule you will add later after processing init files
https://github.com/docker-library/postgres/blob/8a631b939a0b4197cb6bef49b50b6c40c80ddf5b/15/bookworm/docker-entrypoint.sh#L331

I'm not sure what changes we can safely make to that ordering, but you should be able to handle this in your initdb script via sed, something like:
sed -i -e '/^host all all all/d' "$PGDATA/pg_hba.conf"


The python consumer cannot receive the data of topic.

The consumer of python client somtimes cannot receive the data of a persistent topic. The receive is blocked.
Here is my code example.
producer.py
client = pulsar.Client("pulsar://localhost:6650")
producer = client.create_producer("topic1")
producer.send(pickle.dumps(obj))
producer = client.create_producer("topic2")
producer.send(pickle.dumps(obj))
consumer.py
client = pulsar.Client("pulsar://localhost:6650")
consumer = client.subscribe("topic1", "sub1")
msg = consumer.receive()
consumer.acknowledge(msg)
data = msg.data()
consumer = client.subscribe("topic2", "sub2")
msg = consumer.receive()
consumer.acknowledge(msg)
data = msg.data()`
e.g.

The pulsar is standalone mode, and the python pulsar client is 2.4.1. I also try on linux server, the python pulsar client and pulsar are both 2.5.0, but it's still not work.

Do you have the code example you are using for testing? Also, can you provide the sequence on how to re-produce the issue?

Ok, I have updated and add the code example.

Do you have the code example you are using for testing? Also, can you provide the sequence on how to re-produce the issue?

Ok, I have updated and add the code example.

I wasn't able to replicate the issue in the following env:
Environment
macOS-10.15
python pulsar-client==2.4.2
Puslar-2.5.0
Producer Sample:

Consumer Sample:

@xuehuanran how often do you see the issue?

Closed as stale.
The development of the Python client has been permanently moved to https://github.com/apache/pulsar-client-python. If it's still relevant, please open an issue there.


[Doc] remove the catch description mentioned in historical lazy on start

Since PR #10688 is merged. Druid now have the ability to unload damaged segments automatically when lazy on start. The corrupted segment doesn't need manual deletion now.

@clintropolis and @suneet-s Thanks for your review and merge.

@clintropolis and @suneet-s Thanks for your review and merge.


SimpleSmt: distinguish between depth of tree and depth of insertions

I propose we add the ability to instantiate a tree which has depth D, but where all insertions are done at depth d, where d < D.
Background
The "created notes" tree is currently constructed as:

Each batch has a tree of depth 12 of all created notes in all transactions (i.e. up to $2^{12}$ created notes per batch)
A block creates a tree of depth 8, containing all the created note roots from the batches it contains (i.e. up to $2^{20}$ created notes per block)

The natural way to think of the "notes created" tree in a block is a tree of depth 20, which contains the $2^8$ subtrees of depth 12 (one per batch, where the tree is padded with empty trees if there are not enough batches). A tree where no notes were created would have root E20 (i.e. the root of the empty tree of depth 20).
To allow us to create such a tree, we need to be able to create a tree of depth 20, where all leaves are inserted at depth 8 (the leaves are the roots of the batches' created notes trees). Note that the current MASM mtree_set already supports this behavior; this issue is about allowing Rust code to easily build such a tree.
In comparison, the current API forces us to create a tree of depth 8. There are a few drawbacks:

A transaction batch with no created notes (i.e. with root E12) modifies the root of the block created notes tree
Transaction batches with no created notes incur a cost in the block kernel (derives from 1.)
Unintuitive: the root of an empty block's created notes tree is not E20. In fact, it isn't even E8, because each transaction batch modifies its root.

I wonder if we could achieve the same goal by adding set_subtree() method to the current SimpleSmt. This method could look like so:
pub fn set_subtree(&mut self, index: u64, subtree: SimpleSmt) -> Result<Word, MerkleError>

This method would compute the insertion depth based on depth difference between the subtree and the SMT being updated.
Then, we can use this method to manipulate the note tree as follows:

We instantiate an empty SimpleSmt of depth 21.
Then, we set subtrees of depth 13, which will be inserted at depth 8.

Great idea, this results in a much cleaner API.

Closed with #232


🦙exit config on timeout 🦙

when job runs to configure, it should exit on timeout, not continue
increased timeout for initial pull

Looks like check fails for Route object so I'm going to merge it. LGTM :)


ModuleNotFoundError: No module named 'Stemmer'

I am trying to run the .bat file but it just says this:
Traceback (most recent call last):
  File "C:\Users\daste\Desktop\reddit-karma-farming-bot-master\src\init.py", line 4, in <module>
    import bot
  File "C:\Users\daste\Desktop\reddit-karma-farming-bot-master\src\bot.py", line 1, in <module>
    from bots.reddit import RedditBot
  File "C:\Users\daste\Desktop\reddit-karma-farming-bot-master\src\bots\reddit\__init__.py", line 1, in <module>
    from .bot import RedditBot
  File "C:\Users\daste\Desktop\reddit-karma-farming-bot-master\src\bots\reddit\bot.py", line 5, in <module>
    from bots.reddit.actions.comments.comment_actions import Comments
  File "C:\Users\daste\Desktop\reddit-karma-farming-bot-master\src\bots\reddit\actions\comments\comment_actions.py", line 1, in <module>
    from .sources.cobe import Cobe
  File "C:\Users\daste\Desktop\reddit-karma-farming-bot-master\src\bots\reddit\actions\comments\sources\cobe.py", line 1, in <module>
    from cobe.brain import Brain
  File "C:\Users\daste\.virtualenvs\reddit-karma-farming-bot-master-Oa0UVMUL\lib\site-packages\cobe\brain.py", line 16, in <module>
    from . import tokenizers
  File "C:\Users\daste\.virtualenvs\reddit-karma-farming-bot-master-Oa0UVMUL\lib\site-packages\cobe\tokenizers.py", line 4, in <module>
    import Stemmer
ModuleNotFoundError: No module named 'Stemmer'
exiting...

It also says this:
Processing c:\users\daste\desktop\reddit-karma-farming-bot-master\deps\windows\pystemmer-2.0.1-cp39-cp39-win_amd64.whl
PyStemmer is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.
Installing dependencies from Pipfile.lock (2dc5ba)...
  ================================ 1/1 - 00:00:00
An error occurred while installing pystemmer==2.0.1 --hash=sha256:9b81c35302f1d2a5ad9465b85986db246990db93d97d3e8f129269ed7102788e! Will try again.
Installing initially failed dependencies...

How can I fix this?
I did pip install PyStemmer, but it doesn't help.

i got the same error and i fixed it by restarting my computer, i dont know why it does that but restarting or shutting down fixes it for some reason.

I tried restarting a few times and it still happens :/

It looks like you've cloned the bot to a virtualenv? You should just close it to a regular directory and then follow the instructions in the docs. the bot creates and manages its own virtualenv. I think running the steps inside of one can cause issues.


Add sample and utilities for doing Change Data Capture with BigQuery Write API

Document how users can get started with the Change Data Capture - https://cloud.google.com/bigquery/docs/change-data-capture.
Solves issue reported on https://github.com/googleapis/nodejs-bigquery/issues/1386

Naively adding _CHANGE_TYPE to rows in writer.appendRows() in the example silently pushes duplicate rows to the table.
After adding _CHANGE_TYPE column definition to protobuf schema - appendRows() throws an RPC error The given value is not a valid CHANGE_TYPE in insert mode: UPSERT.

@alvarowolfx any hints how to make CDC work?
There're other people out there struggling with this e.g https://github.com/googleapis/googleapis/discussions/891, and SO#78330527

Naively adding _CHANGE_TYPE to rows in writer.appendRows() in the example silently pushes duplicate rows to the table.

After adding _CHANGE_TYPE column definition to protobuf schema - appendRows() throws an RPC error The given value is not a valid CHANGE_TYPE in insert mode: UPSERT.

@alvarowolfx any hints how to make CDC work?
There're other people out there struggling with this e.g googleapis/googleapis#891, and SO#78330527

This is what I've been doing.

Adjust the table schema to "include" _CHANGE_TYPE

const writeStream = await writeClient.getWriteStream({
  streamId: `${destinationTable}/streams/_default`,
  view: protos.google.cloud.bigquery.storage.v1.WriteStreamView.FULL,
});

const protoDescriptor = adapt.convertStorageSchemaToProto2Descriptor(
  {
    fields: [
      ...writeStream.tableSchema!.fields!,
      {
        name: '_CHANGE_TYPE',
        type: protos.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.STRING,
      },
    ]
  },
  'root',
);

Then it is just adding the column upon appending rows

writer.appendRows([{...row, _CHANGE_TYPE: 'UPSERT'}]);

@hieumdd thank you for sharing the snippet.
This is exactly what I've been doing. In my experience The given value is not a valid CHANGE_TYPE in insert mode: UPSERT does not get thrown in JS as error, but instead it's silently available as operation result.
Can you check the return value after .appendRows().getResult() promise resolves?
writer
  .appendRows([{...row, _CHANGE_TYPE: 'UPSERT'}])
  .getResult().then(r => {
      console.log(r.appendResult);
  });

@hieumdd thank you for sharing the snippet.
This is exactly what I've been doing. In my experience The given value is not a valid CHANGE_TYPE in insert mode: UPSERT does not get thrown in JS as error, but instead it's silently available as operation result.
Can you check the return value after .appendRows().getResult() promise resolves?
writer
  .appendRows([{...row, _CHANGE_TYPE: 'UPSERT'}])
  .getResult().then(r => {
      console.log(r.appendResult);
  });

I believe it is how it works, it returns results, regardless of it being successful or not. I use this to check errors (if there are any)
const writeResult = await writer.appendRows([]).getResult();
if (writeResult.error) {
  throw new Error('xyz');
}

For The given value is not a valid CHANGE_TYPE in insert mode: UPSERT, can you validate if your destination table has added Primary Keys as contraints?

@hieumdd yes, I ran
ALTER TABLE project.dataset.mytable ADD PRIMARY KEY(id) not enforced; and I can see PK label in UI as well as Primary key(s): id in Details tab.
Anything else the table needs? It appears a BQ reservation is optional with this feature, and upserts should work without it?

@hieumdd yes, I ran ALTER TABLE project.dataset.mytable ADD PRIMARY KEY(id) not enforced; and I can see PK label in UI as well as Primary key(s): id in Details tab.
Anything else the table needs? It appears a BQ reservation is optional with this feature, and upserts should work without it?

IIRC there is nothing more to be added to the table other than PK. BQ reservation is not needed here.
Here is my full implementation if that can be of your assistance
const projectId = await writeClient.getClient().getProjectId();
const destinationTable = `projects/${projectId}/datasets/${datasetId}/tables/${tableId}`;
const writeStream = await writeClient.getWriteStream({
    streamId: `${destinationTable}/streams/_default`,
    view: protos.google.cloud.bigquery.storage.v1.WriteStreamView.FULL,
});

const protoDescriptor = adapt.convertStorageSchemaToProto2Descriptor(
    {
        fields: [
            ...writeStream.tableSchema!.fields!,
            {
                name: '_CHANGE_TYPE',
                type: protos.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.STRING,
            },
        ],
    },
    'root',
);
const connection = await writeClient.createStreamConnection({
    streamId: managedwriter.DefaultStream,
    destinationTable,
});
const writer = new managedwriter.JSONWriter({ connection, protoDescriptor });

Ok, it seems the error is thrown if you mix non-CDC rows (without _CHANGE_TYPE) and CDC within the same connection.
Here's a working example:
import {adapt, managedwriter, protos} from "@google-cloud/bigquery-storage";

const projectId = 'project';
const datasetId = 'dataset';
const tableId = 'table';

/**
 * CREATE TABLE `project.dataset.table`
 * (
 *   id STRING NOT NULL,
 *   createdAt TIMESTAMP NOT NULL,
 *   updatedAt TIMESTAMP NOT NULL,
 *   PRIMARY KEY (id) NOT ENFORCED
 * );
 */

const writeClient = new managedwriter.WriterClient({projectId});
const destinationTable = `projects/${projectId}/datasets/${datasetId}/tables/${tableId}`;
const writeStream = await writeClient.getWriteStream({
  streamId: `${destinationTable}/streams/_default`,
  view: protos.google.cloud.bigquery.storage.v1.WriteStreamView.FULL,
});

const protoDescriptor = adapt.convertStorageSchemaToProto2Descriptor(
  {
    fields: [
      ...writeStream.tableSchema.fields,
      {
        name: '_CHANGE_TYPE',
        type: protos.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.STRING,
      },
    ],
  },
  'root',
);

const connection = await writeClient.createStreamConnection({
  streamId: managedwriter.DefaultStream,
  destinationTable,
});
const writer = new managedwriter.JSONWriter({ connection, protoDescriptor });

const upsertConnection = await writeClient.createStreamConnection({
  streamId: managedwriter.DefaultStream,
  destinationTable,
});
const upsertWriter = new managedwriter.JSONWriter({ connection: upsertConnection, protoDescriptor });

Promise.resolve().then(async () => {
  const createdAt =  (+new Date)*1000;
  const id = `id${createdAt}`;

  writer
    .appendRows([{id, createdAt, updatedAt: createdAt }])
    .getResult().then(r => console.log(new Date, r))

  await new Promise(r => setTimeout(r, 500));

  upsertWriter
    .appendRows([{id, createdAt, updatedAt: (+new Date)*1000,  _CHANGE_TYPE: 'UPSERT'}])
    .getResult().then(r => console.log(new Date, r))
})


53: server misbehaving

What steps did you take:
kubectl get packagerepository kubeflow-carvel-repo -o=jsonpath={.status.usefulErrorMessage}
What happened:
vendir: Error: Syncing directory '0':
Syncing directory '.' with imgpkgBundle contents:
Fetching image:
Error while preparing a transport to talk with the registry:
Unable to create round tripper:
Get "https://projects.registry.vmware.com/v2/": dial tcp: lookup projects.registry.vmware.com on <IP_ADDRESS>:53: server misbehaving
What did you expect:
[A description of what was expected and the yaml that should have been generated]
Anything else you would like to add:
[Additional information that will assist in solving the issue.]

We have transferred to kapp-controller repo from carvel repo.

@tiansiyuan The url should just be projects.registry.vmware.com/kubeflow/kubeflow-carvel-repo:1.6.1 and not [projects.registry.vmware.com/kubeflow/kubeflow-carvel-repo:1.6.1](http://projects.registry.vmware.com/kubeflow/kubeflow-carvel-repo:1.6.1).
Do you have access to projects.registry.vmware.com? Are you able to pull from the registry from another pod?

I do have access to projects.registry.vmware.com.
"https://" was added by github while editing the comment.

I do have access to projects.registry.vmware.com.

Are you able to pull from the registry from another pod in the same namespace?

Could you tell me the issue number?

We have transferred the issue in the same org (from one repo to another, as the carvel repo is used for docs), the number that you see on the top (1437) is the issue number.

I do have access to projects.registry.vmware.com.

Are you able to pull from the registry from another pod in the same namespace?

I don't quite understand how to try this. Could you provide more info?
Thanks!

Could you tell me the issue number?

We have transferred the issue in the same org (from one repo to another, as the carvel repo is used for docs), the number that you see on the top (1437) is the issue number.

@tiansiyuan You can ssh into some other pod in the same namespace and see if you are able to access the registry there.


component hangs when exiting from GUI via pull-down to Exit

Mostly I see this happen to viewer upon normal exit. Symptoms are variable. Sometimes, all that happens is the shell command prompt from the window in which VisIt was launched never returns. Sometimes, you get some kind of an error message on the terminal from which VisIt was launched indicating an error. Sometimes, there is no indication anything went wrong and you have to examine process table manually using ps to discover a VisIt process is left around. Mostly its the viewer. Sometimes I've seen the mdserver. I tried several times to reproduce using serial visit. After 6 attempts, I tried running a parallel VisIt and after 2-3 attempts, I was able to get a hang. I managed to catch a snapshot of the problem and in this case, the viewer was here in RemoteProcess.C on line 157. It looks like this code was recently changed too and so I suspect it is the culprit.. 133 // ******************************************************************************************************************************************************** 134 // Function: catch_dead_child 135 // 136 // Purpose: 137 // Signal handler for a SIGCHLD even while waiting for remote connections. 138 // Catch a child that died and mark it's success or failure in the 139 // childDied array. 140 // 141 // Programmer: Jeremy Meredith 142 // Creation: July 10, 2002 143 // 144 // Modifications: 145 // Allen Sanderson (via Boulder Labs for TX Corp) Thursday September 4 2014 146 // Changed to check all children rather just one. 147 // 148 // ******************************************************************************************************************************************************** 149 static void 150 catch_dead_child(int sig) 151 { 152 void (**oldAction)(int) = ((volatile struct sigaction **)&old_action)->sa_handler; 153 if (oldAction && oldAction != SIG_IGN) { 154 oldAction(sig); 155 } 156 int status; 157 => for(map<int, bool>::iterator i = childDied.begin(); i != childDied.end(); i){ 159 if (!i>second && i>first != -1) { 160 if( waitpid(i->first, &status, WNOHANG) > 0) { 161 i->second = true; 162 } 163 } 164 } 165 } 166 here is a stack trace too Stack Trace _ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base, FP=7fffffffc350 C std::_Rb_tree_iterator<std::pair<const int,bool> >::operator , FP=7fffffffc370 C catch_dead_child, FP=7fffffffc3b0 killpg, FP=7fffffffc968 pthread_sigmask, FP=7fffffffc980 glXCreateNewContext, FP=7fffffffc990 glXCreateNewContext, FP=7fffffffcbc0 glXCreateNewContext, FP=7fffffffcdd0 glXCreateNewContext, FP=7fffffffce00 glXCreateNewContext, FP=7fffffffce20 glXCreateNewContext, FP=7fffffffced0 _dl_fini, FP=7fffffffd320 exit, FP=7fffffffd340 __libc_start_main, FP=7fffffffd400 _start, FP=7fffffffd410
-----------------------REDMINE MIGRATION-----------------------
This ticket was migrated from Redmine. As such, not all
information was able to be captured in the transition. Below is
a complete record of the original redmine ticket.
Ticket number: 2002
Status: Pending
Project: VisIt
Tracker: Bug
Priority: Normal
Subject: component hangs when exiting from GUI via pull-down to Exit
Assigned to: Allen Sanderson
Category: -
Target version: 3.0
Author: Mark Miller
Start: 09/25/2014
Due date:
% Done: 0%
Estimated time:
Created: 09/25/2014 02:55 pm
Updated: 10/08/2014 03:07 pm
Likelihood: 3 - Occasional
Severity: 4 - Crash / Wrong Results
Found in version: 2.7.3
Impact:
Expected Use:
OS: All
Support Group: Any
Description:
Mostly I see this happen to viewer upon normal exit. Symptoms are variable. Sometimes, all that happens is the shell command prompt from the window in which VisIt was launched never returns. Sometimes, you get some kind of an error message on the terminal from which VisIt was launched indicating an error. Sometimes, there is no indication anything went wrong and you have to examine process table manually using ps to discover a VisIt process is left around. Mostly its the viewer. Sometimes I've seen the mdserver. I tried several times to reproduce using serial visit. After 6 attempts, I tried running a parallel VisIt and after 2-3 attempts, I was able to get a hang. I managed to catch a snapshot of the problem and in this case, the viewer was here in RemoteProcess.C on line 157. It looks like this code was recently changed too and so I suspect it is the culprit.. 133 // ******************************************************************************************************************************************************** 134 // Function: catch_dead_child 135 // 136 // Purpose: 137 // Signal handler for a SIGCHLD even while waiting for remote connections. 138 // Catch a child that died and mark it's success or failure in the 139 // childDied array. 140 // 141 // Programmer: Jeremy Meredith 142 // Creation: July 10, 2002 143 // 144 // Modifications: 145 // Allen Sanderson (via Boulder Labs for TX Corp) Thursday September 4 2014 146 // Changed to check all children rather just one. 147 // 148 // ******************************************************************************************************************************************************** 149 static void 150 catch_dead_child(int sig) 151 { 152 void (**oldAction)(int) = ((volatile struct sigaction **)&old_action)->sa_handler; 153 if (oldAction && oldAction != SIG_IGN) { 154 oldAction(sig); 155 } 156 int status; 157 => for(map<int, bool>::iterator i = childDied.begin(); i != childDied.end(); i){ 159 if (!i>second && i>first != -1) { 160 if( waitpid(i->first, &status, WNOHANG) > 0) { 161 i->second = true; 162 } 163 } 164 } 165 } 166 here is a stack trace too Stack Trace _ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base, FP=7fffffffc350 C std::_Rb_tree_iterator<std::pair<const int,bool> >::operator , FP=7fffffffc370 C catch_dead_child, FP=7fffffffc3b0 killpg, FP=7fffffffc968 pthread_sigmask, FP=7fffffffc980 glXCreateNewContext, FP=7fffffffc990 glXCreateNewContext, FP=7fffffffcbc0 glXCreateNewContext, FP=7fffffffcdd0 glXCreateNewContext, FP=7fffffffce00 glXCreateNewContext, FP=7fffffffce20 glXCreateNewContext, FP=7fffffffced0 _dl_fini, FP=7fffffffd320 exit, FP=7fffffffd340 __libc_start_main, FP=7fffffffd400 _start, FP=7fffffffd410
Comments:
Allen said he backed out the change apparently causing this issue.

Either duplicate or very closely related to #3064


Fix deprecated aggregation and GpuFlatMapGroupsInPandasExec scaladoc

This fixes the following warnings generated during the build:
[WARNING] [Warn] /spark-rapids/sql-plugin/src/main/scala/org/apache/spark/sql/rapids/AggregateFunctions.scala:666: method collect in class Aggregation is deprecated: see corresponding Javadoc for more information.
[...]
/spark-rapids/sql-plugin/src/main/scala/org/apache/spark/sql/rapids/execution/python/GpuFlatMapGroupsInPandasExec.scala:65: warning: Could not find any member to link for "org.apache.spark.sql.catalyst.plans.logical.FlatMapGroupsInPandas".
/**
^

build


Typescript types of REST Shopify Admin Objects

Overview
It would be great to have types of each of the REST Admin API Shopify objects (e.g. Orders, Products, etc...) defined in this library (or maybe in a separate dedicated library of types) so that partners can have a type safe way of handling Shopify REST API responses.
This library doesn't have these types and other community based libraries that have defined types are unreliable and oftentimes out of date.
Type

[x] New feature
[] Changes to existing features

Motivation

What inspired this feature request? What problems were you facing?

I'd like to have types of Shopify REST objects so that I can have reliable types and make more reliable Shopify apps.

Checklist

[x] I have described this feature request in a way that is actionable (if possible)

I have fully extracted the types from the docs page, by parsing each api path & method individually. I've tried upgrading the package to include the types as a non-breaking change or adding the types manually per request. However, due to TS limitations (max 25 union type conditionals) I'm not finding a good solution to implement the types in a user-friendly way.
My current ideas to solve the problem are these two:

Adding the Types per request (we can still have type hints for the path property.)

const data = await ShopifyRestClient.get<GetProduct>({
  path: `product`,
  query: {
    handle: "my-favorite-product",
  },
});

The second approach is to add a full ORM into the RestClient similar how Prisma solves the problem.
Using this approach would be fully Typed by default, making it much more user friendly, while its still possible to be fully
backwards compatible. The only change on the params would be to change the path from string to the actual path input parameters (i.e. product_id, variant_id, etc.)

const data = await ShopifyRestClient.Product.findMany({
  query: {
    handle: "my-favorite-product",
  },
});

const data = await ShopifyRestClient.Product.findOne({
  path: {
    product_id: 123456768
  }
  query: {
    handle: "my-favorite-product",
  },
});

Anybody got any other ideas on how to add the Types to the current Rest params ?

I'm honestly shocked this hasn't been implemented yet?
https://github.com/Shopify/shopify-node-api/tree/main/src/rest-resources/2022-01
The rest resources folder implements classes for every object we are looking for, and could easily be extracted out?
Adding generics to the Rest / Graphql functions would be a matter of a couple hours work... and save every admin developer a ridiculous amount of headaches.

The third and simpler option on Felix's last message is to simply define each path option (Because you know them all) as a wrapper function on .get() and define the return type
restClient.products.get() = restClient.get({ path: '/products' })

I've created a fork with a typed version of the package you can install with npm install shopify-typed-node-api  or yarn add shopify-typed-node-api. I have extracted all types directly from the Documentation pages. Unfortunately, they are some errors here and there on their docs site that have translated into the package. And I haven't gotten around to create any documentations for the update.
Please feel free to try it out. The API works exactly as it is in this package. and you can add typings on a per request basis as below:
import { Product } from "shopify-typed-node-api/dist/clients/rest/dataTypes";

const ShopifyRest = new Shopify.Clients.Rest(shop, accessToken);

ShopifyRest.get<Product.Get>({
      path: "products",
      query: {
        limit: "250",
      },
});

Bumping this! Would be great to have these types exposed externally for library consumers

You can install ‘shopify-typed-node-api’ as an alternative

I know that I'm over a year late but for folks coming across this later, an alternative is to use instance types from the shopify rest client object.
If you have a function that returns a shopify client:
function newShopifyApi() {
  return shopifyApi( {
    ...
    apiVersion: LATEST_API_VERSION,
    ...
  });
}

Then you can extract the types of resources from that functions return type:
type RestResources = ReturnType<typeof newShopifyApi>["rest"];
export type RestResource<RestResourceType extends keyof RestResources> =
  RestResourceType extends keyof RestResources
    ? InstanceType<RestResources[RestResourceType]>
    : never;


Add support for Circle Linux

Please add Circle Linux distro support

Circle Linux is an production-ready linux distribution based on RHEL8/9.
website: https://cclinux.org/

Is Circle Linux a somewhat popular distro in China? Because it is the first time I read this name.
I always test changes and follow updates and releases for every supported distro, so even if it is a RHEL clone, I can only add support for popular distros. If it works for you overriding the compatibility check, good, but it is not officially supported by me.

Is Circle Linux a somewhat popular distro in China? Because it is the first time I read this name.
Yes , Circle Linux like CentOS popular by global users.
I always test changes and follow updates and releases for every supported distro, so even if it is a RHEL clone, I can only add support for popular distros. If it works for you overriding the compatibility check, good, but it is not officially supported by me.

Indeed , if there is some CI pipeline , its not an big problem test release.
And Community users and developer will test it maybe.
Circle Linux had submit more upstream project,  example :
sos,mock, anaconda and so on.


Wrong Instructions on CosmosDB Container ID

The instruction said to use "Container ID	Enter Messages as the name for your new container."
But in the image, it is "transactions"
https://docs.microsoft.com/en-us/azure/blockchain/service/media/data-manager-cosmosdb/add-container.png

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

ID: ae06a4f1-6209-0f7e-ad17-26a57b5a3e30
Version Independent ID: eca6c3d3-127e-e47e-2b7f-6e180a950320
Content: Use Blockchain Data Manager to update Azure Cosmos DB - Azure Blockchain Service - Azure Blockchain
Content Source: articles/blockchain/service/data-manager-cosmosdb.md
Service: azure-blockchain
GitHub Login: @PatAltimore
Microsoft Alias: patricka

@mjtpena Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

Hi @mjtpena,
Thanks for the feedback. I fixed the screenshot. The update should be live soon.
Thanks,
Pat
#please-close


passing additional parameter along with credential

Hi Dominick,
I have a scenario where user will be logged in with UserName, password and DivisionId. I want this division Id to be part of the jwt and this can be known only at the time of login.
How can you pass this division id to Identityserver so that this gets added to the token.
Thanks in advance,
Noufal

The profile service is where you return claims for tokens.

Thanks for your quick reply.
Creating custom implementation of Profile Service will allow me to do my claims transformation from the server end. that's perfect.
but in my case I need to have this division Id which is gathered as part of the log in process. (a user can occasionally login / switch to a different division).
Since the division id is not directly correlated I cannot store the division id along with the user.
is there any other way to pass the division id / or any claim from the client side itself?
Thanks,
Noufal

Maybe @leastprivilege make the ProfileService's methods virtual, to allow inheritance and override.

@noufionline any claims you issue as part of the login process will be made available in the claims on the Subject in the profile service's API (assuming the request for tokens is coming thru the front-channel).

@leastprivilege  is it possible to pass additional claims in extra parameter like this?
    var extra = new Dictionary<string, string> {{"divisionId", "1"}};
    var tokenResponse = await tokenClient.RequestResourceOwnerPasswordAsync("userName" ,"password","api1",extra);

and somehow get access to "extra" dictionary parameter passed in RequestResourceOwnerPasswordAsync
 public class CustomProfileService:IProfileService
    {
        public Task GetProfileDataAsync(ProfileDataRequestContext context)
        {
            //Get Access to extra parameter passed in RequestResourceOwnerPasswordAsync
        }

        public Task IsActiveAsync(IsActiveContext context)
        {

        }
    }

Found the solution. Thanks.
 public Task ValidateAsync(ResourceOwnerPasswordValidationContext context)
 {
         string divisionId = context.Request.Raw["divisionId"];
         //After valdating the credential
         context.Result=new GrantValidationResult(context.UserName,context.Password,new[] {new Claim("divisionId",divisionId) });
 }

@leastprivilege I  pass acr_values=tenant:tenant_name. where do I extract the value of the tenant?


Fortress game

Fortress game

Coverage remained the same at 38.27% when pulling e9037716b43b4414e21b89faadbce242fbf747c6 on Gutnisk:master into 506c00afad2bfc93d8b8820857b1c3756cab7cad on kermitt2:master.


change relase-2.5 version to 2.5.3-snapshot

Signed-off-by: qidi1<EMAIL_ADDRESS>What problem does this PR solve?
change relase-2.5 version to 2.5.3-snapshot

/run-all-tests

/merge


Controller/feedback loop

for feedback control

For a feedback control loop you need
Simulation model (environment)

with fixed step integrator
step method to advanced simulation environment: observation = env.step(controls)
might include some noise

Controller model

might be different to the simulation model (no noise, simplified model for computational speed)

Controller:

calculate feedback from starting state controls = solver.feedback(ig, current_state)
realtime iteration for fast feedback
use fast/special solver (https://github.com/acados/acados, interface to acados is currently in development)


Move domain from DNSimple to Route 53

Moves more of our infrastructure under AWS.

As a potential stretch on another task, creating a Terraform description of our DNS records under management would be a great step in allowing contributors to add infrastructure changes to other features.
Using AWS Route53 hosted zone resources and record resources, we could create an automated job to update DNS from GitHub.

Excellent :+1:

Possible solution:
https://github.com/kubernetes-incubator/external-dns
https://github.com/kubernetes-incubator/external-dns/blob/master/docs/tutorials/aws.md

This looks like it is no longer and issue after adding hosted zones to Route53, but please feel free to re-open if you see further issues related to this.


make inspection baseline more consistent

It's a little hard to notice, but if you look carefully, you can see that the "(select some data)" and other error messages are slightly lower than decoded values. This is happening because the errors are attributed strings, whereas decoded values are normal strings.
This PR ensures that inspection results are always attributed strings, and that they're formatted with with the same style.

That has always bugged me. Thanks!


Add select target platform to new project quickpick

Selecting the target platform for new sql projects was added in #16091. This adds the same option to the new project quickpick in vscode. This step only shows if a template provides target platforms. If a default target platform is specified, then the default target platform is moved to the top of the list and has "Default" next to it like in the screenshot below.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

2 of 14 (14.29%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.01%) to 47.999%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

extensions/data-workspace/src/dialogs/newProjectQuickpick.ts
0
12
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.01%

Covered Lines:
15007

Relevant Lines:
29639

💛  - Coveralls

Should update the text for DW to Synapse?

Gonna keep it DW for now to be consistent with SSDT. @dzsquared do you know if there are plans to update the target platform name in SSDT from DW to Synapse?


gitoxide: 0.3.0 -> 0.4.0

Motivation for this change
To update the package I'm maintaining.
Things done

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

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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Applied and squashed, thanks for the feedback!


*(engine): remove unused planner

What problem does this PR solve?

Issue Number: ref https://github.com/pingcap/tiflow/issues/6849
What is changed and how it works?
Remove unused engine/model/subjob.go and engine/servermaster/planner.
model.Node in engine/model/subjob.go  may be easily confused with DeployNodeID.
Check List
Tests

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

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
None

/run-verify

/merge


Unable to load multiple word docx

System Info
I'm trying to load multiple doc files, it is not loading, below is the code
txt_loader = DirectoryLoader(folder_path, glob="./*.docx", loader_cls=UnstructuredWordDocumentLoader)
txt_documents = txt_loader.load()

I have tried below code too
def get_documents(folder_path):
    documents = []

    file_extensions = [ext.lower() for ext in os.listdir(folder_path)]

    if '.docx' in file_extensions or '.doc' in file_extensions:
        docx_loader = UnstructuredWordDocumentLoader(folder_path, mode="elements")
        docx_documents = docx_loader.load()
        documents += docx_documents

    return documents

folder_path = [
    'Documents\Letter of Invitation.docx',
    'Documents\Data Scientist Questionnaire.docx'
]

it is not working
Who can help?
No response
Information

[ ] The official example notebooks/scripts
[ ] My own modified scripts

Related Components

[ ] LLMs/Chat Models
[ ] Embedding Models
[ ] Prompts / Prompt Templates / Prompt Selectors
[ ] Output Parsers
[X] Document Loaders
[ ] Vector Stores / Retrievers
[ ] Memory
[ ] Agents / Agent Executors
[ ] Tools / Toolkits
[ ] Chains
[ ] Callbacks/Tracing
[ ] Async

Reproduction

Expected behavior
not loading multiple files (docx)

Hey,
both approaches work with slight changes:
Approach 1:
from langchain.document_loaders import DirectoryLoader
from langchain.document_loaders import UnstructuredWordDocumentLoader

folder_path="test resources"
txt_loader = DirectoryLoader(folder_path, glob="*.docx", loader_cls=UnstructuredWordDocumentLoader)
txt_documents = txt_loader.load()

Approach 2:
import os
def get_documents(folder_path):
    documents = []

    files = [ext.lower() for ext in os.listdir(folder_path)]

    for file in files:
        if '.docx' in file or '.doc' in file:
            full_path = os.path.join(folder_path, file)
            docx_loader = UnstructuredWordDocumentLoader(full_path)
            docx_document = docx_loader.load()
            documents += docx_document

    return documents

folder_path="test resources"
get_documents(folder_path)

Hey,
both approaches work with slight changes: (I have 3 docx files in a directory "test resources")
Approach 1:
from langchain.document_loaders import DirectoryLoader
from langchain.document_loaders import UnstructuredWordDocumentLoader

folder_path="test resources"
txt_loader = DirectoryLoader(folder_path, glob="*.docx", loader_cls=UnstructuredWordDocumentLoader)
txt_documents = txt_loader.load()

Approach 2:
import os
def get_documents(folder_path):
    documents = []

    files = [ext.lower() for ext in os.listdir(folder_path)]

    for file in files:
        if '.docx' in file or '.doc' in file:
            full_path = os.path.join(folder_path, file)
            docx_loader = UnstructuredWordDocumentLoader(full_path)
            docx_document = docx_loader.load()
            documents += docx_document

    return documents

folder_path="test resources"
get_documents(folder_path)

Thank you man! It is working.

Can you close this issue then?


Use FusedLocationApi over locationmanager

Its more efficient
https://stackoverflow.com/questions/46481789/android-locationservices-fusedlocationapi-deprecated

https://stackoverflow.com/questions/46481789/android-locationservices-fusedlocationapi-deprecated


file extensions not shown in search results

Describe the bug
When using the search function, file extensions are not visible in the results.
To Reproduce
Steps to reproduce the behavior:

Ensure "show extensions for known file types" is enabled
Click on the search button
Type in a search query
No file extensions are shown in the results list.

Expected behavior
I expected to see the file extensions of the files listed in the results. They are visible when browsing directories normally.
Desktop (please complete the following information):

OS Version: Windows 10 Pro 20H2 19042.804
App version: v<IP_ADDRESS>

Log file
debug.txt
debug_fulltrust.txt

This bug should be fixed in #3639.
taken from v<IP_ADDRESS> (insider):

Awesome! I'm really excited to see this program continue to grow.


Add file for run on the web in example directory

See #200
to run
photo_view ❯❯❯ cd example
photo_view/example ❯❯❯ flutter run -d chrome


Adding attributes to the SDK set up in the Java manual instrumentation

What needs to be changed?
The SDK set up in the Java manual instrumentation page is missing to mention attributes to be set to get it working, like for example the service name which is the main one (as it is mentioned in the corresponding agent documentation https://opentelemetry.io/docs/instrumentation/java/automatic/#configuring-the-agent).
We would need to change the code snippet and the text to mention about attributes.
What is the name + path of the page that needs changed?
The page is at content/en/docs/instrumentation/java/manual.md

@mateuszrzeszutek you could assign this one to me as well :-)

@ppatierno happy to review a PR!

@cartermp here the PR #1584!


Send screen: Add messages to fee if tx has shielded inputs

Add explanation why the fee is high https://zpl.io/VDE60Oq

it's not enough to add this message for isShieldedTx. It also should be shown if we perform a regular transaction, but shielded coins were selected

need to recheck when this task is ready https://github.com/BeamMW/beam-ui/issues/125

checked


Update version switcher for 1.9.1 and pin theme to 0.9

Update the version switcher configuration file to account for 1.9.1.
Also it pins the pydata-sphinx-theme to the current 0.9. 0.10 will be released today and as seen in my preparatory PR #16660, build time increased significantly so we cannot update now.
Putting this in the 1.9.2 milestones in case the new release of the theme is not ready.

Let's get this in to not block the theme. Thanks for the review Chris and Jarrod 😃


There was an error loading photo details

In almost every photo I view I get the error "there was an error loading poto details"
I also have the logs in case they are useful

Same here on Pixel 7 Pro.

Server side related
You need to have rwx permissions for others.on you photos directory in librephotos

I was using an old librephotos image
Updated and indeed the error messaged pops up
I can see the photo details though


Small state fixes

compiler will be less strict about types of functions in defstate
decompiler will insert missing cast for run-function-in-process with less than 6 args when expression prop fails.
flipped diff for ref tests

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

37 of 55 (67.27%)  changed or added relevant lines in 5 files are covered.
16 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.01%) to 58.884%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

goalc/compiler/compilation/State.cpp
12
13
92.31%

test/offline/offline_test_main.cpp
0
1
0.0%

common/type_system/state.cpp
24
27
88.89%

decompiler/main.cpp
0
6
0.0%

decompiler/IR2/FormExpressionAnalysis.cpp
1
8
12.5%

Files with Coverage Reduction
New Missed Lines
%

decompiler/main.cpp
16
0%

Totals

Change from base Build<PHONE_NUMBER>:
0.01%

Covered Lines:
40165

Relevant Lines:
68210

💛  - Coveralls


Support for various ChildPolicy on Cadence server

StartWorkflowExecution allows user to specify the following 3 type of ChildPolicy:
enum ChildPolicy {
  TERMINATE,
  REQUEST_CANCEL,
  ABANDON,
}

Current server implementation only supports ABANDON and does not have support for TERMINATE and REQUEST_CANCEL ChildPolicy for child workflow executions.
This issue is to implement support for all types of ChildPolicy on Cadence server.

@longquanzheng can we close this?

It's already done in latest master(shoudl be released soon).


[v2.1.4] Fix modifying a file that wouldn't exist in production

#14  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @GoodM4ven and the rest of your teammates on  Graphite


Auto Lock Task List Section

Create a subscription endpoint. When acquired, this subscription will automatically lock a task list. Upon disconnection, this subscription will automatically unlock the corresponding task list section.
EASI-2211
Changes and Description

Created subscription: autoTaskListSubscription
Added roles to the locking/unlocking feedback

How to test this change
autoLockTaskListSection Subscription
{
    "payload": {
        "operationName": "autoLockTaskListSection",
        "query": "subscription autoLockTaskListSection($modelPlanID: UUID!, $section: TaskListSection!) { autoLockTaskListSection(modelPlanID: $modelPlanID, section: $section) { changeType lockStatus { modelPlanID section lockedBy refCount } role } }",
        "variables": {
            "modelPlanID": "f11eb129-2c80-4080-9440-439cbe1a286f",
            "section": "MODEL_BASICS"
        }
    },
    "type": "start"
}

Create a subscription to autoLockTaskListSection.
Check that the lock was created by using this endpoint:
query taskListSectionLocks ($modelPlanID: UUID!) {
    taskListSectionLocks (modelPlanID: $modelPlanID) {
        section
        lockedBy
    }
}

{
  "modelPlanID": "f11eb129-2c80-4080-9440-439cbe1a286f"
}

Disconnect the websocket. Verify that the lock was removed by checking taskListSectionLocks.
Create a new autoLockTaskListSection.
Use the unlockAllTaskListSections admin endpoint as such:
mutation unlockAllTaskListSections ($modelPlanID: UUID!) {
    unlockAllTaskListSections (modelPlanID: $modelPlanID) {
        modelPlanID
        section
        lockedBy
        refCount
    }
}

{
  "modelPlanID": "a18d2f8c-e5cb-4c5d-b21c-3554dbec9c4d"
}

Ensure that the admin unlock command returns an admin role in the unlock event, and the base user endpoints return the base user role in [un]lock endpoints.
PR Author Review Checklist

[ ] Met the ticket's acceptance criteria, or will meet them in a subsequent PR.
[ ] Added or updated tests for backend resolvers or other functions as needed.
[ ] Added or updated client tests for new components, parent components, functions, or e2e tests as necessary.
[ ] Tested user-facing changes with voice-over and the rotor menu

PR Reviewer Guidelines

It's best to pull the branch locally and test it, rather than just looking at the code online!
Check that all code is adequately covered by tests - if it isn't feel free to suggest the addition of tests.
Always make comments, even if it's minor, or if you don't understand why something was done.

Tom, previously the subscription with for all sections, only one connection was required.  This seems to now take in a section per subscription.  I thought we just want one subscription connection listening to the entire task list rather than a subscription per section


feat(client): add connect, read, and write timeouts to client

Add a TimeoutConnector implememtation that can be used to wrap any
implemention of Connect.
Add read and write timeout support to Client and client Config.
The internal client implementation now wraps I/O with the
tokio-io-timeout crate. Due to the way tokio-proto works, the user
will see a "broken pipe" error instead of a "timed out" error when
a read or write timeout occurs.

Closes #1234

[x] The commit messages match the guidelines in https://github.com/hyperium/hyper/blob/master/CONTRIBUTING.md#git-commit-guidelines

It looks like this can work entirely out-of-crate? I kind of lean towards keeping it that way. Is there something that having this in crate allows that wouldn't be possible otherwise?
As a side note, looking at the tokio-io-timeout crate, the implementations of AsyncRead and AsyncWrite don't pass forward the read_buf and write_buf methods, which would mean readv and writev are no longer used for TcpStream.

@seanmonstar TimeoutConnector can be out of crate. I don't see how the read and write timeouts would be out of crate. That being said, I was looking at other issues where you were talking about the ClientProto onion. Maybe that is a better way to introduce some of this functionality.

Can't the read and write timeouts be set in any connector by returning a TimeoutStream?

Of course! Not sure why I did not think of that earlier. Ok, I will make a separate crate and add all of the logic there.


[Bug] LlamaIndex embeddings using wrong method

The llamaindex tea embeddings are using a private method
https://github.com/opea-project/GenAIComps/blob/cd83854f93423a2327f07430fbf781e6f879ce41/comps/embeddings/llama_index/embedding_tei.py#L21
It's not clear to me if the embedding service is meant to handle query embeddings or document embeddings. But either way, we should be using embed_model.get_text_embedding(text) or embed_model.get_query_embedding(query)
Likely we should have two endpoints, one for query and one for normal text documents.
We might also want to consider using get_text_embeddings_batch() instead of processing one document at a time, but again, depends on how we want to define our embedding endpoints

the object is used to call the functions, but agree that we might want to consider text_embedding_batch()

I've also noticed that the embeddings API in general only works by sending a single piece of text at a time. This is neither efficient nor openai compatible sadly
Related PR: https://github.com/run-llama/llama_index/pull/16666

Hi, this problem has been fixed in PR https://github.com/opea-project/GenAIComps/pull/892

@logan-markewich Could you please help close the issue if the PR works? Thanks.


How to download answer from server when specify as sample request

Hi, if I request a test vector as sample, I think it shall be available for me to download the correct answer from server. May I know how to do it in libacvp?

Hello,
As far as I can tell, we currently do not have a way of simply of downloading the expected results for vector sets in samples using the app or library. I will make note of this.
However, libacvp does automatically get the expected sample results for failed vector sets. So, you could do offline vector set processing using --vector_req and --vector_rsp, and perform the testing. For any failed vector sets, you can get the correct answers from libacvp output. For any successful ones, you can get the output from the file you specified using --vector_rsp.
The flow would be similar to:
./acvp_app --all_algs --sample --vector_req filename1.json
./acvp_app --all_algs --vector_req filename1.json --vector_rsp filename2.json
./acvp_app --sample --vector_upload filename2.json
With filename2 containing the right results for passing vector sets, and libacvp output from --vector_upload containing the right answers for failing ones.
I hope this makes sense. I will make note that we likely want an easier way of just getting a file/output containing all of the expected results.
Thanks,
Andrew

Hi, @abkarcher
Some modules like RSA, ECDSA, currently not support to --vector_rsp yet. However, I find out a way to get the expected results for these modules from server.
./acvp_app --rsa --vector_req xxx --sample
./acvp_app --rsa --vector_upload xxx --sample
If both request and upload contain --sample, I see the result will print out by server.


Wavefront middleware

-Opentracing wrapper which implements a middleware on top of current wavefront-golang-opentracing-sdk. It makes adding wavefront tracing to any golang project very easy with minimum code injection.
-Custom logger to inject trace info including, traceID, spanID, parentID in logs.
-Span logs are also sent to wavefront.

Hi we will not be able to support Go1.9x since echo itself doesn't support it. We will have to downgrade the echo in our toml which will lock the users consuming the library.

Closing this. Moved to https://github.com/wavefrontHQ/wavefront-go-middleware/pull/1


Further improve php_syntax.sh

Use a complete script with correct error handling and a nice syntax.
This will also print the filename where the php syntax check failed.

@felixkempf I added another commit to take files and folders as arguments
Usage: php_syntax.sh path/to/directory/ path/to/file.php

Well done, explicit whitelisting is always nicer

@m0rth1um please update the use of this script in the composer.json accordingly, then we are ready to merge


This project is unfortunately way too awesome

A project this awesome must be taken down. It can't be shared publicly.
💩

Hahaha you're right, I don't think the internet can handle this much awesome. :P


In-circuit elliptic curve cryptography

Implement BLS12_381 and Ed25519 curve operations in-circuit using finite field operations. See Issue #11.

We can now use range constraints for these.

The efficient implementation is blocked by #223, working on it first


fix: Clean cache and dont run apk upgrade

For several reasons its not adviceable to run upgrade on the runner step. Also the cache was not cleaned.
Both changes will reduce the image size.

Fair enough!
Do you mind if I include this in the PR I just opened?
Clean up Dockerfile #2314

And now it's upstream too! Thanks 🥳


influxdb is slow to import when pandas is present

I noticed that some commands where we're using influxdb.client were getting slow to run.  I used import-profiler to dig into it and found that it was due to importing pandas within influxdb.dataframe_client.  I hacked together an env var to avoid this and compared:
% time env INFLUXDB_NO_DATAFRAME_CLIENT=1 python -c 'import influxdb'

real    0m0.157s
user    0m0.140s
sys     0m0.016s
% time env __INFLUXDB_NO_DATAFRAME_CLIENT=1 python -c 'import influxdb'

real    0m0.480s
user    0m0.756s
sys     0m2.196s
%

Is this something you might consider as a PR?
This is the gist of it: https://github.com/aristanetworks/influxdb-python/pull/2/files
It's just a WIP, but if you're OK with the approach, I can rebase + clean it up and submit a PR here.
Thoughts?

@wwade thank you! yes we would happily review your PR. thank you!


Electrum-ravencoin 1.0.2 does not work on Win10

Version: Electrum Ravencoin 1.0.2 (all versions)
SO: Windows 10 Home or PRO
Virtualbox: 7.0.10 r158379
I have installed a clean version of windows 10 in Virtualbox and Electrum Ravencoin 1.0.2 does not even start. If I run the debug version I get this error:
C:\Program Files (x86)\Electrum Ravencoin>electrum-ravencoin-v1.0.2-debug.exe
x16r, x16rv2 and kawpow modules are required

If I install Microsoft Visual C++ Redistributable packages x86 it works.
https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170
Direct URL:    https://aka.ms/vs/17/release/vc_redist.x86.exe
I have tried both windows 10 Home and PRO version with the same result. If Microsoft Redistributable packages are not installed in the OS, it does not work.

https://github.com/Electrum-RVN-SIG/electrum-ravencoin/commit/b94f7afa43ac7e80e319cb25d9359e3891dbc1c5

Thanks.


[HOLD][AIRFLOW-2973] Use Python 3.6.x everywhere possible

Make sure you have checked all steps below.
Jira

[x] My PR addresses the following Airflow Jira issues and references them in the PR title. For example, "[AIRFLOW-XXX] My Airflow PR"

https://issues.apache.org/jira/browse/AIRFLOW-2973
In case you are fixing a typo in the documentation you can prepend your commit with [AIRFLOW-XXX], code changes always need a Jira issue.

Description

[x] Here are some details about my PR, including screenshots of any UI changes:

This PR is similar in nature / complementary to @kaxil's #3815.

Add Python 3.6 support to PyPI, tox, Travis CI
Update dev docs to recommend 3.6.x
Update MLEngine operator tests to use 3.6
Update Kubernetes ExtractXcomPodRequestFactory pod spec to use 3.6

Tests

[x] My PR adds the following unit tests OR does not need testing for this extremely good reason:

Already covered by existing tests.  I'm currently waiting on the CI to see if this breaks any existing unit tests.
Commits

[x] My commits all reference Jira issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters (not including Jira issue reference)
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Documentation

[x] In case of new functionality, my PR adds documentation that describes how to use it.

When adding new operators/hooks/sensors, the autoclass documentation generation needs to be added.

Code Quality

[x] Passes git diff upstream/master -u -- "*.py" | flake8 --diff

This will add a lot of load to Travis, which we don't really want since Apache infra has to pay for this. My suggestion would be to set the tests to Python 3.6.

@Fokko That makes sense, and I agree with you there.
I reassigned the "upgrade to 3.6" Jira issue to @kaxil yesterday where he merged these changes into #3815, but then they were reverted back.  Maybe we can keep his PR focused on the PyPI and tox setup of multiple subversions of Python 3 and then this one can become just upgrading the other bits that it changes above.
My understanding is that both this and #3815 are on hold until the Docker image is reworked to support having multiple subversions of Python 3.
Once that exists, I believe the changes on this branch should "just work".

Yes sorry for that, I was trying to fix the issue and then debugged that it was related to our Docker CI setup and then just reverted some changes. I think we should change this PR for 3.7 as I mentioned in #3815 . You have already started working on it, which is really great @tedmiston .


Fix code block formatting in Why MXNet doc page

Description
Quick fix in Why MXNet doc.
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[X] Changes are complete (i.e. I finished coding on this PR)

Merged. Thank you!


⚠ Ixtanet SAT has degraded performance

In b560852, Ixtanet SAT ($MEDIA_SAT) experienced degraded performance:

HTTP code: 200
Response time: 20773 ms

Resolved: Ixtanet SAT performance has improved in 72ad130.


Update park data

We haven't updated the park data since Hack For Change.
To update the park data run the download.sh script. The URLs may have changed and this script may break.
Also, we should consider using the non-public parks that @wilsaj has added to the Austin Parks Equity project. https://github.com/open-austin/austin-park-equity/search?utf8=✓&q=osmParksLayer

Maybe this is a crazy pants idea, but what about using OSM as a basis for both projects? If we import park data into OSM, we can curate and normalize things like amenities, ownership (public/private), and hours so we don't have to do that normalization in data processing scripts or app code.
Reasons to do this:

would simplify the data processing steps for both projects
make these projects more forkable; all cities are OSM cities
OSM will have high quality park data that can benefit other projects
OSM mapping is easy to plug people into and makes for a good short-term project for a hackathon or hack night

Reasons not to:

restrictions on source data (not public domain or compatible with OSM's ODBL license)
a significant portion of the required data isn't appropriate for inclusion into OSM (e.g. budgeting info). We can associate OSM data with other data, but if it's not worth it then it's not worth it.

Maybe this should be opened as a separate issue. Also ping @mateoclarke

Importing the park data into OSM seems like a really good idea/the best use of our time (as oppose to creating a very intricate map viewer).
I think we'd need to get PARD involved:

How is the data licensed? Does it also fall under the data portal public domain thing?
How often do they update the data?

Yeah I like that idea Mr. Crazy Pants! I have some contacts at PARD. Can I take these questions to them and then we can open some issues for what to do next?
Having both theses projects, and any other future Austin park project, pull from an open source database seems like a worthwhile project in itself. And it can be a direct example of why the OSM IMPORT is so important.
So much "synergzm"!!!
🌳

City of Austin Open Data Terms of Use Policy
Full list of GIS data on CoA ArcGIS REST Services Directory

Email sent to Matt E asking if ArcGIS data falls under CoA Open Data Terms of Use.

Just sent a reminder email.

Matt Esquibel responded:

Yes, the GIS Committee approved and consider the data open and unrestricted. It should fall under the general Terms of Use.  See: http://cityofaustin.github.io/open-data-manual/portal-terms-of-use/  As Hailey notes, there is still some work to be done to finalize our Terms of Use – let us know if there is something specific needed to address this data in particular.

Sorry, should've pointed you at this a while back:
https://github.com/open-austin/liberate-the-data/issues/3


[BUG]

File window does not pop up to select My Clippings file on Linux Fedora 36. (Online Amazon kindle reader does work). Dev console has the following error: failed to load source map: could not load content for app://obsidian.md/main.js.map system error:: ERR_FILE_NOT_FOUND
Method of syncing

[ ] Amazon Kindle Reader
[x ] My Clippings file (please attach file that can be used to recreate issue)

Metadata

OS: Linux fedora 36
Plugin version 1.7.0
Obsidian version 0.15.9

Can you share some screenshots of what this problem looks like please.


Amazingly unhelpful error message(s)

Error: The OpenSSL library reported an error

That's really helpful.

strace revealed the real issue:
open("/usr/local/ssl/cert.pem", O_RDONLY) = -1 ENOENT (No such file or directory)

https://dev.haiku-os.org/ticket/14371


How to export a custom SentencePiece Model/Tokenizer with pnp.SequentialProcessingModule

As shown below, the README.md shows how to export a HuggingFace BERT Tokenizer with pnp.SequentialProcessingModule
tokenizer = AutoTokenizer.from_pretrained(model_name)
bert_tokenizer = pnp.PreHuggingFaceBert(hf_tok=tokenizer)
bert_model = onnx.load_model(str(model_path))
augmented_model = pnp.SequentialProcessingModule(bert_tokenizer, map_token_output, bert_model, post_process)

How can I do the same for a custom SentencePiece model/tokenizer ?
import sentencepiece as spm
tokenizer = spm.SentencePieceProcessor(model_file=model)

It could be supported, but it needs some work.
I will put it in the backlog.

Thanks, also I tried exporting XLM-RoBERTa tokenizer instead of BERT tokenizer and it failed as show below.
tokenizer = AutoTokenizer.from_pretrained('xlm-roberta-base')
Error
AttributeError: 'XLMRobertaTokenizerFast' object has no attribute 'do_lower_case'
My guess is do_lower_case should default to 0 if not present?

@wenbingl any update on this?

Yes, this is a working PR for Roberta Tokenizer,
https://github.com/microsoft/onnxruntime-extensions/pull/365.
@sayanshaw24  did your test already include the pyyush code above?

I think the pyyush code above is for XLMRobertaTokenizer, not regular RobertaTokenizer (as implemented in the PR). However, I believe we looked into this issue in #311.

@wenbingl and @sayanshaw24 thanks for working on this issue. A few things  -

Looks like support for sentencepiece tokenizer is still missing. Any updates on that?

I tried out the RobertaTokenizer  as follows

from transformers import AutoTokenizer
from onnxruntime_extensions import pnp
tokenizer = AutoTokenizer.from_pretrained("roberta-base")
bert_tokenizer = pnp.PreHuggingFaceBert(hf_tok=tokenizer)
bert_tokenizer(["Hello world!"])

and got the following error -

onnxruntime.capi.onnxruntime_pybind11_state.RuntimeException: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Exception during initialization: [BertTokenizerVocab]: can not find tokens: [UNK]

https://github.com/microsoft/onnxruntime-extensions/blob/main/operators/tokenizer/sentencepiece_tokenizer.hpp, is this what  you are looking for?
@sayanshaw24 , can you add a cvt function here to build the RobertaTokenizer? https://github.com/microsoft/onnxruntime-extensions/blob/main/onnxruntime_extensions/cvt.py

We have added a cvt function to build RobertaTokenizer and tested it, so it should be fine to use as such: https://github.com/microsoft/onnxruntime-extensions/blob/main/test/test_robertatok.py#L94


fix: append-args breaks on ellipsis

When an ellipsis is used on a call that is targeted by an append-args advice, the new arguments were simply added to the list of values, which resulted in invalid code.
To address this, the append-args advice now injects an IIFE that correctly generates a new slice with the additional arguments injected in. The use of an IIFE allows removing problems if the variadic argument is provided as a function call (calling that multiple times could result in duplicated side-effects, etc...).
Fixes #88

I can confirm that this fix #88


No clear documentation about configuring the folder to store har files

In the readme it mentions the following:
Pass an output directory to change the destination folder manually. It allows overriding the value, that is specified in the cypress.json
cy.saveHar({ outDir: './hars' });

But it's not clear how the folder can be specified in the cypress.json. Please make this more clear.

@jdvegmond Sorry for the delay, and thanks for the question. The document has been updated (see #93). Let me know if you have any questions.


It is not a bug, but what is alternative way to access to redis-server run by docker

Hello
I used to access to Redis Server by using the property "host"
const client = createClient({
host: "redis-server",
port: 6380
});
like this.
but I fount out that host property dissapeared in version 4
in my docker-compose.yml
version: "3"
services:
redis-server:
image: "redis"
Can you let me know what is alternative way to access to redis-server ?
Thanks
Environment:

Node.js Version: 10
Node Redis Version: 4.0.1
Platform: Mac OS

https://github.com/redis/node-redis/blob/master/docs/client-configuration.md
const client = createClient({
  socket: {
    host: "redis-server",
    port: 6380
  }
});

@jaewonhimnae We can use any of these approaches to connect, I want to learn the difference from implementation team though.
First :
const client= createClient({
  socket: {
    host: envConfig.REDIS_HOST,
    port: envConfig.REDIS_PORT
  },
  database: envConfig.REDIS_DATABASE
});

client.connect();

Second :
const client = createClient({
  url: `redis://${envConfig.REDIS_HOST}:${envConfig.REDIS_PORT}/${envConfig.REDIS_DATABASE}`
});

client.connect();

I referred to this migration docs from redis 3 to 4

https://github.com/redis/node-redis/blob/master/docs/v3-to-v4.md
https://github.com/redis/node-redis/blob/master/docs/client-configuration.md

Hope this helps ! :)

@jaewonhimnae  We can use any of these approaches to connect, I want to learn the difference from implementation team though.
First :
const client= createClient({
  socket: {
    host: envConfig.REDIS_HOST,
    port: envConfig.REDIS_PORT
  },
  database: envConfig.REDIS_DATABASE
});

client.connect();

Second :
const client = createClient({
  url: `redis://${envConfig.REDIS_HOST}:${envConfig.REDIS_PORT}/${envConfig.REDIS_DATABASE}`
});

client.connect();

I referred to this migration docs from redis 3 to 4

https://github.com/redis/node-redis/blob/master/docs/v3-to-v4.md
https://github.com/redis/node-redis/blob/master/docs/client-configuration.md

Hope this helps ! :)


TypedDict should be imported from typing_extensions rather than typing in Python versions <=3.11

dlt version
1.4.0
Describe the problem
The TColumnType present in the dlt.common.schema module cannot be used as a property within a Pydantic model for Python versions before 3.12. The reason being is that TColumnType inherits from TypedDict, but that comes from the typing module. Python versions prior to 3.12 do not support this. The TypedDict type lives in the typing_extensions module.
As such, Pydantic fails to create a model.
pydantic.errors.PydanticUserError: Please use `typing_extensions.TypedDict` instead of `typing.TypedDict` on Python < 3.12.

Expected behavior
Expected behaviour is to change all imports of TypedDict to something like
import sys

if sys.version_info >= (3, 12):
    from typing import TypedDict
else:
    from typing_extensions import TypedDict

This would allow the usage of the very nice schema types that dlt exposes in custom Pydantic models.
Steps to reproduce
Create a simple type that inherits from pydantic.BaseModel and add a property of TColumnType in a Python interpreter that is running a version older than 3.12. Try to instantiate your model and see that it fails.
Operating system
macOS
Runtime environment
Local
Python version
3.11
dlt data source
No response
dlt destination
No response
Other deployment details
No response
Additional information
No response

I think typeddict was added in 3.11 not 3.12. Apart from that we should fix this, yes.

hmmm TypedDict is in typing from 3.8... most probably Pydantic needs some features that were not implemented before 3.12. We had the same issues with Annotated which is now imported via extensions.
@sh-rp we import all such typings via dlt.common.typing (or at least we should)  so let's import it there and then from there evrywhere else


bump node version, fix #88

Fix #88

@smit1678 we should add a .nvmrc file and the nvm install command to the readme

@danielfdsilva 👍  have an example from another repo we can follow?

The uploader for example https://github.com/hotosm/oam-uploader

Going ahead with the merge. .nvmrc file seems to have fixed the tests as well.


Multiple http requests returning syntax error

Ionic version:  (check one with "x")
[ ] 1.x
[ ] 2.x
[X] 3.x
I'm submitting a ...  (check one with "x")
[X] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:

When I try to make two http get calls to my REST API the app breaks. The first call goes through and returns my json data, but instead I get...
ERROR
SyntaxError
message: "Unexpected token h"
stack: "SyntaxError: Unexpected token h↵    at Object.parse (native)↵    at Response.Body.json (file:///android_asset/www/build/main.js:40717:25)↵    at MapSubscriber.project (file:///android_asset/www/build/main.js:141236:110)↵    at MapSubscriber._next (file:///android_asset/www/build/main.js:51262:35)↵    at MapSubscriber.Subscriber.next (file:///android_asset/www/build/main.js:15799:18)↵    at XMLHttpRequest.onLoad (file:///android_asset/www/build/main.js:41126:38)↵    at t.invokeTask (file:///android_asset/www/build/polyfills.js:3:15213)↵    at Object.inner.inner.fork.onInvokeTask (file:///android_asset/www/build/main.js:4415:37)↵    at t.invokeTask (file:///android_asset/www/build/polyfills.js:3:15134)↵    at n.runTask (file:///android_asset/www/build/polyfills.js:3:10390)↵    at XMLHttpRequest.invoke (file:///android_asset/www/build/polyfills.js:3:16170)"
get stack: function () { [native code] }
set stack: function () { [native code] }
__proto__: Error

Logs taken from chrome://inspect on an Android device.
Expected behavior:

The app should be returning my json data in each subscribe function.
Steps to reproduce:

Build Ionic app and implement an API connection similar to this
Request twice.
Whichever request I put first works.
Related code:
// after importing Http, Headers, RequestOptions, rxjs/add/operator/map, etc
// headerOptions has my API key
this.http.get(`${url}/my-page`, headerOptions).map(res=>res.json()).subscribe(data => {
    // do stuff with data
    console.log(data);
});

// someplace else anywhere in app afterwards
this.http.get(`${url}/my-page-2`, headerOptions).map(res=>res.json()).subscribe(data => {
    // do stuff with data
    console.log(data);
});

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
Your system information:

Cordova CLI: 6.5.0
Ionic Framework Version: 3.0.1
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.3.0
ios-deploy version: 1.9.1
ios-sim version: 5.0.13
OS: macOS Sierra
Node Version: v7.4.0
Xcode version: Xcode 8.3.1 Build version 8E1000a

Instead of blindly calling json(), you could try logging the entire response to see if it gives you any clues. I would suspect the problem lies with the backend service.

Will do. I'll let you know if it seems to be backend or frontend.

First call:
e
_body: "{↵    "specials": [↵         {↵            "id": "8fab1fc0-aad6-4200-8397-378b8a1c02b5",↵            "image":"http://bit.ly/*******",↵            "link_id":"oil-change",↵            "title":"Need a tune up? Check out our Oil and Lube shop."↵        },     {↵            "id": "525ad0a2-8476-424e-917a-0d2151f0619e",↵            "image":"http://bit.ly/*******",↵            "link_id":"full-service-carwash",↵            "title":"Have a look at our featured car wash services!"↵        },     {↵            "id": "f4878ae3-8c52-4f09-b737-b85377b254da",↵            "image":"http://bit.ly/*******",↵            "link_id":"exterior-detail",↵            "title":"Dirty car? Try one of our details!"↵        }        ]↵}"
headers: t
ok: true
status: 200
statusText: "OK"
type: 2
url: "https://**********.execute-api.us-west-1.amazonaws.com/prod/specials"
__proto__: n
constructor: function e(e){var n=t.call(this)||this;return n._body=e.body,n.status=e.status,n.ok=n.status>=200&&n.status<=299,n.statusText=e.statusText,n.headers=e.headers,n.type=e.type,n.url=e.url,n}
toString: function (){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url}
__proto__: t

Second call:
ERROR
SyntaxError
message: "Unexpected token u"
stack: "SyntaxError: Unexpected token u↵    at Object.parse (native)↵    at e._next (file:///android_asset/www/build/main.js:20:15491)↵    at e.__tryOrUnsub (file:///android_asset/www/build/main.js:7:2458)↵    at e.next (file:///android_asset/www/build/main.js:7:1784)↵    at e._next (file:///android_asset/www/build/main.js:7:868)↵    at e.next (file:///android_asset/www/build/main.js:7:539)↵    at e._next (file:///android_asset/www/build/main.js:20:790)↵    at e.next (file:///android_asset/www/build/main.js:7:539)↵    at XMLHttpRequest.l (file:///android_asset/www/build/main.js:13:17584)↵    at t.invokeTask (file:///android_asset/www/build/polyfills.js:3:15213)↵    at Object.inner.inner.fork.onInvokeTask (file:///android_asset/www/build/main.js:3:13426)↵    at t.invokeTask (file:///android_asset/www/build/polyfills.js:3:15134)↵    at n.runTask (file:///android_asset/www/build/polyfills.js:3:10390)↵    at XMLHttpRequest.invoke (file:///android_asset/www/build/polyfills.js:3:16170)"
get stack: function () { [native code] }
set stack: function () { [native code] }
__proto__: Error

curl commands to our API work fine. I can't think of anything with the backend, I've checked it out and it seems to be set up properly.

Hello! Thanks for opening an issue with us! As this seems like more of a support question I will urge that you ask this question on our forum or on our slack channel. Thanks for using Ionic!