feat: added signin & singout with Azure AD

closes #958
Description
I added SSO feature with Azure Active Directory to enable sign in by UNDP account.
The following references are useful to develop SSO in sveltekit.

Auth.js for sveltekit

https://authjs.dev/reference/sveltekit/modules/main

Azure AD provider

https://github.com/nextauthjs/next-auth/blob/main/packages/core/src/providers/azure-ad.ts

auth.js x sveltekit example code

https://github.com/nextauthjs/next-auth/tree/main/apps/examples/sveltekit

Currently, this PR is still not able to be merged because apps for dev.undpgeohub.org is not yet registered to Azure AD.
Type of Pull Request

[x] Adding a feature
[ ] Fixing a bug
[ ] Maintaining documents
[ ] Others ()

Verify the followings

[x] Code is up-to-date with the develop branch
[x] No build errors after pnpm build
[x] No lint errors after pnpm lint
[x] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check
[x] Make sure all the existing features working well

Changesets

[ ] If your PR makes a change under packages folder that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

Refer to CONTRIBUTING.MD for more information.

In order to access session data in API,
export const GET: RequestHandler = async ({ url, locals }) => {
  console.dir(await locals.getSession())

if users do not login, getSession() returns null

From frontend, session can be accessed as follows
<script>
import { page } from '$app/stores'
</script>

{#if $page.data.session}
{$page.data.session.user.name}
{/if}


fixed conversion

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 98.996%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
15683

Relevant Lines:
15842

💛  - Coveralls


Simulator is not Working Properly in Mobile Website

Describe the bug
Simulator is not Working properly in Mobile Website Page. We cannot change the positions of Timing Diagram, Circuit Elements and Properties.
To Reproduce
Steps to reproduce the behavior:

Go to 'https://circuitverse.org/ in Mobile'
Click on 'Launch Simulator'
Try to Change the positions of Timing Diagram, Circuit Elements , Properties etc.
See error

Expected behavior
Properly should have worked as in Desktop or Laptop.
Screenshots
If applicable, add screenshots to help explain your problem.

Device Information [optional]:

OS:  iOS
Browser : safari
Version : M1

Are you working on this issue? (Yes/No)
Yes

Hi @Subhraneel77,
A lot of work has already been done for UI and working of Simulator in mobile in the PR # 2362


FR: Change TensorBoard image interpolation method

Right now tensorboard uses bilinear interpolation, according to @poolio this is unusuable for small resolution photos and nearest neighbor is preferred

Fixed.


Event is missing location parameter

Is there a reason why the String parameter location is excluded from Event in this package?

/// The location of this event
String location;
Event(this.calendarId,
{this.eventId,
this.title,
this.start,
this.end,
this.description,
this.attendees,
this.recurrenceRule,
this.allDay = false});

Location is there, it is just missing in constructor. You can manually set it after constructing the event.

Can you consider adding it to the constructor as well as the other properties mentioned in the To/FromJson methods? Thanks


Corrected awesome-fontconfig lock icon

Simple correction (see comment)

Yup! Thanks for the catch and the fix, @simonvpe!
Welcome to P9k, by the way =)


/mv tp not working

I've installed multiverse core successfully, imported my default worlds, created a new world, and set the properties, but for some reason /mv tp won't work.
I have multiverse.* set in my permissions, I've also tried to manually set multiverse.access.* and multiverse.teleport.* no luck.
When ever I try to teleport myself, I get no error message of any sort, neither in the console or ingame. It looks like I get lifted a tiny bit above the ground, like I get teleported to my own location every time I try to teleport, even though I'm not even in the correct world.
Multiverse-Core: Multiverse-Core Version: 2.2-b354
Multiverse-Core: Bukkit Version: git-Bukkit-1.8.1-R4-80-g7b5dd8a-b1554jnks (MC: 1.0.1)
(Copied from console)
Any idea if there's maybe some setting I've overlooked or something?

It's
/mvtp worldnamehere
no spaces and the world name is case sensitive if I'm not mistaken.

It's both /mvtp and /mv tp according to the command page. Tried /mvtp creative /mv tp creative /mvtp Creative /mv tp Creative /mvtp world_nether /mv tp world_nether (You get the idea), all with the same result.

Get the newest CB build, TP bug is fixed in that

I was absolutely sure I had the newest version, but updating did indeed fix it. Thank you.

For the record you can use:
/mv tp
OR
/mvtp


License?

@boomb0om  @AlexWortega  guys is this code usable for commercial applications? What is the license?

Hi!
We have an Apache-2.0 license. So you can use this code for commercial applications but need to include reference to this repository.


Update sbt-sonatype to 3.9.7

Updates org.xerial.sbt:sbt-sonatype from 3.8 to 3.9.7.
GitHub Release Notes - Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.xerial.sbt", artifactId = "sbt-sonatype" } ]

labels: sbt-plugin-update

Superseded by #202.


Bug: need to explicitly reset "bsp" before applying split_ratio a second time.

version
 yabai-v3.3.10
note
maybe this has been fixed in HEAD. I do not know.
Also, I need to verify with you guys that this isn't the appropriate behavior.
description
It seems that if I have already set config split_ratio once, then resetting it again to another value does not work
for me. I have tested this with separate commands in on the command line and also tested with my function
below. I found this "bug" whilst trying to write a script function that sets up an automatic custom layout and therefore
I needed to update the split_ratio value between each terminal instantiation.
Eg.

set split ratio to 0.3
add new window -> opens with 0.3 ratio
change split ratio to 0.4
add new window -> still opens with 0.3 ratio
reset layout bsp
add new window  -> opens with correct ratio 0.4

my function
hopefully this is readable..
# @param  number of terminals to create
# @param window_placement
# @param split_ratio
terms_add() {

   # get existing terminals info
    local aid=($(jq_w_ids_by_app_name "Alacritty"))
    local aid_ct=${#aid[@]}
    local aid_ct_new=$(($aid_ct + 1))
    local new_name="Alacritty"

    local new_num=$1
    cfg_wp $2 # call function that sets windowplacement

    wmc y bsp # NEED TO EXPLICITLY SET layout here to make split_ratio (*) take effect
    # if I don't set layout bsp above split ratio won't take effect even though
   # the layout already is set to bsp

    local ratio
    if test $2 = "1"; then # window placement before / after -> reverse split ratio...
        ratio=$3
    elif test $2 = "2"; then
        ratio=$(bc <<< "scale=2; 1-${3}")
    fi

    wmc sr "${ratio:-.5}" # (*) here I set the split_ratio.

    inst_ceiling=$(( $aid_ct + $new_num))
    term_new $aid_ct_new $inst_ceiling
}

I am experiencing this bug too.
The first time I run yabai -m config split_ratio X it applies to all windows (not including the time its called in the yabairc). The second time I run yabai -m config split_ratio Y it only applies to  nodes created after the call, i.e. the new ratio is only applied after creating two new windows.

Cool! I shall follow you instructions Åsmund and I'll close this for now.


MODINREACH-9 Create initial central server schema to store key/secret…

Purpose
Create initial database schema, JPA entities and CrudRepository to central server store key/secret pairs

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

Please remove code smells in your code.


Add more comparisons to website

Is your feature request related to a problem? Please describe.
Right now, the website has comparisons between Perseus and only two other frameworks: Gatsby and NextJS. This is very much sub-optimal, and as many comparisons as possible should be included.
Describe the solution you'd like
More comparisons should be added, here are some (this list will be extended):

[x] Yew
[x] Seed
[ ] CRA (create-react-app)
[x] Eleventy
[ ] Hugo
[ ] Jekyll
[ ] Zola
[ ] MoonZoon

Anyone should feel free to contribute to add comparisons for any framework!

Do you mean something like this?

I haven't seen that before, that's a great resource, thanks! I meant on the comparisons page on the website though.

I'm moving plabayo.tech from zola to this framework in the weeks to come, so I'll add the comparison for it. I probably will also write a blog post on how to migrate from zola, is that something that can be linked on the comparison page as well?

Fantastic, let me know if you have any problems!
I want to add support for little paragraphs on details for each, which should be ready by the end of the week or thereabouts (they've got to be compatible with i18n). If you'll be ready before then, you could fill out the comparison if you want, and then post a little paragraph here with the link to your post for me to include once that system is ready. Or, you could do the whole thing after that feature is ready, up to you.

If with the feature you mean the first thing you said, to be ready around end of the week, then you'll probably have it before i got the chance to get to it. Either way I'll communicate it all here :)

That feature (i.e. comparison text) is now available on the new-website branch, which should be merged to main fairly soon, once I've sorted out some issues with the layout of the docs pages.


Port 'Database' demo to Python

The demo works the same as the Javascript version, I think.
However in the original Database demo #200 by @BharatAtbrat the search by id worked and it does not currently (neither in Javascript nor in Python). This may be due to the "further simplifications" https://github.com/workbenchdev/demos/pull/200/commits/909c833172af65496f068fff6dbaf152fbd3b497 where findById got nuked.

Please tell me if that should be made working again.

@theCapypara With the removal of the id search entry by @sonnyp everything should work as expected.

Thanks! I'll have a look on the weekend!


Enhance: add encryption to LLM keys

Description:
Implemented encryption on the LLM keys to enhance the security of the app. The implementation ensures that the keys are stored and transmitted securely, reducing the risk of unauthorized access and potential breaches.
Changes:

Installed crypto-js library for encryption decryption.
Implemented AES-256 encryption algorithm.
Created a new function named getAllDecryptedProviderLlmKeys to get decrypted LLM keys.
Created a new env variable to encrypt and decrypt the LLM keys.

Notes:

Add NEXT_PUBLIC_LLM_ENCRYPTION_KEY variable to your .env.local file with a random unique key.

Issue
Closes #1879

@mmabrouk @aakrem
This PR has been reviewed and approved


Cannot find module 'setupDevtools' from 'setup.js'

Issue :
I'm developing a react-native SDK. Whenever I attempt to run my tests using npx jest, I see the following error:
 FAIL  src/__tests__/onesignal.test.ts
  ● Test suite failed to run

    Cannot find module 'setupDevtools' from 'setup.js'

      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:221:17)
      at Object.<anonymous> (node_modules/react-native/jest/setup.js:12:6)

Expected behavior :
I'm not a JS developer (I'm an iOS dev) so forgive my complete ignorance. I am not sure if this is an issue with ts-jest or not.
Debug log:
I set the environmental variable, but ts-jest.log is no where to be found?
Minimal repo:
Here is our SDK: https://github.com/geektimecoil/react-native-onesignal/tree/typescript_conversion
I am working in the typescript_conversion branch, that is where the issue is.

I see a similar issue reported in react-native github. I think it might not be related to ts-jest

I think you are right - I'll be closing this issue since it probably is an issue with jest and not this repo.

Same here @Nightsd01  do you solved it?

Several bugfixes were needed, and I managed to get the tests running:

Eliminates unknown "export" token: "Unexpected token export, when import not compiled libraries"

"transformIgnorePatterns": [
    "node_modules/?!(react-router)"
],

Removed jsdom - no longer emulating browser environment for react native. "TypeError: Cannot set property '_eventListeners' of undefined” with jest"
Updated: testPathIgnorePatterns to ignore all folders except "src" so we can remove roots: ["src"] which causes: "Cannot find module 'setupDevtools' from 'setup.js'"


pestudio checksum mismatch

There's a PEStudio checksum/version mismatch. Version 8.80 gets downloaded as 8.79 and checked against SHA256 of 8.79 zip file.

I believe the hash needs to be updated again:

The actual hash matches the one I see at https://www.winitor.com/download


Modify generator and discriminator to match official repo

See my comments in #17.

Thank you so much for your meticulous contribution!
There were so many differences that I didn't even notice.


API truncates parentheses before stop token

What is the issue?
The generate API is truncating closing parentheses when they appear before a stop token at seemingly random occasions. This issue is reproducible across all models I've tested (Phi3, All llama3 versions, WizardLM2) so it looks like it's an API limitation?
sample text
Everyone uses `:)` at the end of their messages
|User|Message|
|-|-|
|User|Hello there! :)|
|UserB|

curl http://localhost:11434/api/generate -d '{"model": "llama3:instruct", "prompt": "Everyone uses `:)` at the end of their messages\\n|User|Message|\\n|-|-|\\n|User|Hello there! :)|\\n|UserB|", "raw": true, "stream": false, "options": {"stop": ["|"]}}'

P.S. If you don't see it the first time, run the command a couple times more and it might happen
Expected: The response should include the closing parentheses in the generated text, like so: ... :)
Actual: The response truncates the closing parentheses, resulting in ... :
This doesn't happen if the token that follows the ) isn't a stop token, but if it is, then it might take the ) with it.
It also happens with quotes and <>
Linux/Nvidia/Intel
Ollama 0.1.32

@IgorAlexey Sorry for the slow reply. Your issue ended up getting buried in other issues :-D
In your examples you're using raw mode, but you're not creating the correct template around your prompt, so you're going to get some random results. You can get the template for any model by running ollama show --template <model>. In your example you would need to do something like:
<|start_header_id|>system<|end_header_id|>

Fill out the table with a :) at the end of every entry<|eot_id|><|start_header_id|>user<|end_header_id|>

|User|Message|\\n|-|-|\\n|User|Hello there! :)|\\n|UserB|<|eot_id|><|start_header_id|>assistant<|end_header_id|>

Watch out for the stop parameter that you set as well. I'm going to go ahead and close the issue since it seems to be working as expected.


🚀 Feature: Use parameters as conditional for fields of a different parameter list item

🔖 Feature description
I would like to be able to use parameters from the first page in the following parameters as input / dependency.
Having this dependency resolution only within one parameter page limits the possibility of splitting the parameters into groups on several pages.
🎤 Context
The following example shows schematically how I would like to set further conditions etc. from parameters already entered by the user on the page.
parameters:
  - title: Fill in some steps
    properties:
      env:
         title: name
         type: string
         enum:
           - iat
           -  prod

 - title: Fill in some further steps
    properties:
      hosts:
        title: select hosts
        type: string
        if:
          parameters:
            env:
              const: iat
        then:
          enum:
            - host-iat
            - host-iat-2

✌ Possible Implementation
No response
👀 Have you spent some time to check if this feature request has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
None

@benjdlambert

I think it might be related to https://github.com/backstage/backstage/issues/16275

I think it might be related to #16275 Also BEP is in progress: https://github.com/backstage/backstage/pull/23893/files

I don't think this is what the OP had in mind, unless I'm interpreting it incorrectly. I believe they're looking for the ability to use something like https://backstage.io/docs/features/software-templates/input-examples#use-parameters-as-conditional-for-fields across template pages. I'd be interested in this too, not just for cross-page dependencies, but so the dependent field's position in the form isn't tied to the parent.
I think the only way to currently achieve this is with a custom field extension?


Retention policy should be respected when there is no traffic

Add a new feature:
Retention policy should be respected when there is no traffic #6655

/pulsarbot run-failure-checks


Workload clusters now available in Google Cloud

What type of suggestions?
Wrong Information
What page is concerned?
https://kubefirst.konstruct.io/docs/gcp/overview/#google-cloud-specific
What version of the docs?
2.6+
What is the issue?
Workload clusters are now available in Google Cloud so we need to remove the known limitation about this.
Code of Conduct

[X] I agree to follow this project's Code of Conduct

@fharper  Does this update require anything other than deleting the line here: https://kubefirst.konstruct.io/docs/gcp/overview/#google-cloud-specific ?

No, just that for this issue.


FAQ: How to add Cere Token to metamask?

See => https://portal.cere.network/How-to-view-CERE-tokens-on-in-Metamask-ed7bc9aae69143fba0efda87e330b518


Force hibernate to keep zone offset infomation

HIbernate will automatically convert ZoneOffset to system without this converter.

Being researched in https://stackoverflow.com/questions/50028241/jpa-storing-offsetdatetime-with-zoneoffset

JPA converters cannot go to 2 different columns, but the hibernate specific stuff can, as shown here:
https://github.com/kiegroup/optaplanner/blob/master/optaplanner-persistence/optaplanner-persistence-jpa/src/main/java/org/optaplanner/persistence/jpa/impl/score/AbstractScoreHibernateType.java#L39
https://github.com/kiegroup/optaplanner/blob/master/optaplanner-persistence/optaplanner-persistence-jpa/src/main/java/org/optaplanner/persistence/jpa/impl/score/buildin/hardsoft/HardSoftScoreHibernateType.java

Being worked on in https://github.com/kiegroup/optashift-employee-rostering/pull/128


Possibly bug in rc45

Hi :wave:
So, recently i try the rc45 and i found that the message that i receive on messageCreate cames with the content empty. I don't know if is something that u are already know or is an actual bug. Simple script to reproduce this:
mod.ts
import { createBot, startBot, Intents } from "./deps.ts";

async function main() {
  const token = Deno.env.get('DS_TOKEN');
  if(!token)
    return;

  const botId = BigInt(atob(token?.split('.')[0]));

  const baseBot = createBot({
    token,
    botId,
    intents: Intents.Guilds | Intents.GuildMessages,
    events: {
      ready() {
        console.log("Successfully connected to gateway");
      },
      messageCreate(_, msg) {
        console.log(msg);
      }
    }
  });

  await startBot(baseBot);
}

await main();

dep.ts
export * from<EMAIL_ADDRESS>import<EMAIL_ADDRESS>
Expected behavior
The content of the message were logged in the console.
Version details:

Discordeno version: v13.0.0-rc45
Deno version: 1.22.2

Greetings :wave:

@latest uses v10 api & gateway. Therefore you have to connect with the message content intent and have it toggled on the dev portal
intents: Intents.Guilds | Intents.GuildMessages | Intents.MessageContent,

Hello.
Cool. That solves my problem. Thanks for the clarification. Sorry for the inconvenience
Cheers :wave:


react-router shouldn't preserve scroll position

Bug Report
react-router shouldn't preserve scroll position on opening a new route.
It's ok if you go back in history,  but looks weird when you click on the internal link somewhere in the middle of the page and navigates to the same scroll position of another doc.
Expected behavior
On opening a new route, scroll position resets to top.

Fixed, will be released in the next version 👍


Prep work for external collaboration

The tasks necessary to prepare our environment so that we can work with an external team to build out the new DMP upload form and Dashboards.

Closing this since we're doing Epics directly on the new project board


Spring caching the token

I have sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)  in my code.
I make a REST call to the API with a valid token and then I modify the token yet spring treats it as a valid token and does not give an error  "message": "Signed JWT rejected: Invalid signature". But when I restart the server and use an invalid token it then gives me the error.

@ateeqsayed
Thanks for issue this, could you please help to provide more information about this, like version, spring boot version, or minimal reproduce code ?

@Incarnation-p-lee,
I was able to fix it by adding server.servlet.session.cookie.max-age=0

@ateeqsayed
Good to know that, thanks for you information.


Ft Add materialization for Snowflake materialized view object type

Resolves #1162
This is an issue opened for dbt-core repository, but because the code I have written is specific to (and only tested on Snowflake), I feel that it fits in this repository. This PR (or parts of it) can be adapted and moved to live in dbt-core if desired.

Description

Adding materialization for Snowflake materialized views

including support for cluster_by config entry
Adding SnowflakeRelationType with materialized view type (including space)
add methods to SnowflakeRelation to determine if relation is MV
add get relation type method that includes new MV addition

Update snowflake__list_relations_without_caching macro to include materialized views

MVs do not return from show terse objects so it now has to be two calls (one for tables & one for views)

Also added macro for create or replace-ing materialized view similar to how the base view macro was built out in dbt-core

Handling switching between view types

Add handling in view materialization to drop the object if a materialized view exists with the desired view name (similar to how tables are handled in the create_or_replace_view macro in dbt-core)
Add onto incremental materialization to drop the MV if one exists with the desired incremental table name

Added MVs in the switching relation type tests as well as their own test file

Checklist

[x] I have signed the CLA
[x] I have run this code in development and it appears to resolve the stated issue
[x] This PR includes tests, or tests are not required/relevant for this PR
[x] I have updated the CHANGELOG.md and added information about my change to the "dbt-snowflake next" section.

Hi @dbt-labs/oss-maintainers, hoping to get a review here. I would like feedback on whether any of these changes should go to dbt-core instead and making sure that my tests are sufficient.
Getting this change merged in would allow my organization to have all of our snowflake objects managed in one place. Currently, our materialized views are managed in a way that is disjoint and prone to failure. It would also address issue https://github.com/dbt-labs/dbt-core/issues/1162 and add the feature that has been desired since 2018.
Thanks!

@leahtessem Thanks for the PR, and sorry for the delay!
I owe you a response here. To make a long story short, I think we're unlikely to merge this into dbt-core / adapters for native support — at least for now. For the last few years, we've kept "experimental" implementations of materialized views in this repo: https://github.com/dbt-labs/dbt-labs-experimental-features/tree/main/materialized-views
I'd like to say more about that, though. It's always worth reexamining our long-standing assumptions. I'll plan to swing back in the next few days with a fuller explanation.

Closing as my current thinking is that we won't support Snowflake's Materialized Views, but Dynamic Tables instead.
Thanks a lot for your contribution, it will inspire our work going forward on that topic.


Credit Transfer | Add 'Rescinded' Status |5|

https://trello.com/c/0s7CpQlS/594-credit-transfer-add-rescinded-status-5
This card adds the Rescinded status
Story:
As a Fuel Supplier user, I want to know when a Credit Transfer Proposal has been Rescinded so that I am aware that the Proposal will not be processed and approved.
Scenario 1:
GIVEN that I am a Fuel Supplier
AND I have Accepted a Credit Transfer Proposal submitted to my Organization from another Fuel Supplier (i.e. 'Sign 2/2')
AND I am viewing the Accepted Credit Transfer Proposal
WHEN I click on Rescind
AND accept the confirmation alert confirming that I want to Rescind the Proposal
THEN the Proposal is visible in the Credit Transactions History table (visible to both Fuel Suppliers & Government)
AND the status changes to Refused
Scenario 2:
GIVEN that I am a Fuel Supplier
AND I have submitted a Credit Transfer Proposal to another Fuel Supplier
AND they have not accepted that Credit Transfer Proposal (e.g. 'Sign 2/2')
AND I am viewing the Credit Transfer Proposal screen
WHEN I click on Rescind
AND accept the confirmation alert confirming that I want to Rescind the Proposal
THEN the Proposal is visible in the Credit Transactions History table (visible to both Fuel Suppliers)
AND the status changes to Refused
Scenario 3:
GIVEN that I am a Fuel Supplier
AND I have submitted a Credit Transfer Proposal to another Fuel Supplier
AND the other fuel supplier has accepted the Credit Transfer Proposal (i.e. 'Sign 2/2')
AND the Director has not approved the Credit Transfer Proposal
AND I am viewing the Credit Transfer Proposal screen
WHEN I click on Rescind
AND accept the confirmation alert confirming that I want to Rescind the Proposal
THEN the Proposal is visible in the Credit Transactions History table (visible to both Fuel Suppliers & Government)
AND the status changes to Refused
Demo:
Show the status change when Rescinding a Credit Transfer Proposal under Scenario 1, 2, 3 (show the status change to both fuel suppliers, and Government where applicable; show that the entry is visible in the Credit Transactions table for the different organizations)

 Credit Transfer | Add 'Rescinded' Status |5|


Destinations to Adobe Systems

Issue in help/rtcdp/destinations/adobe-destinations.md
We should add AAM, Target, Ad Cloud as possible destinations in the destination documentation.
I believe this could just mostly follow the content provided in the segment sharing documentation. But customers are expecting to see it as a destination.
https://docs.adobe.com/help/en/audience-manager/user-guide/implementation-integration-guides/integration-experience-platform/aam-aep-audience-sharing.html

Thanks @nhecht , this is good feedback. @vgiurgiu tagging you so that you can create a ticket to work on this.

Thanks both. I created https://jira.corp.adobe.com/browse/PLAT-71550 to track the work.
We'll need to discuss with the destinations product team how best to surface this information in the destinations catalog.
I will reply on this thread after I make the updates.

@nhecht - we made the following updates following to address this issue:

Adobe destinations page - we divided the destinations by type and added a new section for the segment sharing destinations you mentioned (Adobe Target, Ad Cloud, Audience Manager).

We added a link in the left navigation, under Adobe destinations, to the Experience Platform segment sharing page which describes the integration with the aforementioned destinations.

Experience Platform segment sharing to Audience Manager and other solutions - we added an important note to clarify that an Audience Manager license is not necessary in order to share Experience Platform segments to the Experience Cloud solutions you mentioned.

Closing this issue as completed. @nhecht , If there are further updates needed please open a new issue or log a Jira ticket.


Look up model numbers for models in BCN who need models printed

For obvious reasons, do not put the results here, but send them in an email with only the initials of the person and their model number.

send as PM.


Hackathon DAO | ZK architect referral

Refer a solid ZK professional to build our ZK knowledge repo structure on Hackathon Playbook.
Bounty: 100 USDT + 1 $HAC
Instructions

Join our Discord
Go to #💰bounties channel
Send “ZK architecture referral” and our staff will follow up with you bounty details and reviewing.
The bonus will be released after the first PR of the referee merged.

Related bounty: https://hackerlink.io/bounty/60

Please add a PR to edit this file https://dorahacksglobal.github.io/Hackathon-Playbook/playground/2021/11/10/bounties.html for this bounty

#24

#52


How to use files inside bazel-apollo outside the docker

Hi Guys,
I am trying to access the protobuf generated files (.h and .cc) files which are inside the bazel-apollo/modules/common/proto from outside the docker.
Could you please let me know is this feasible ? If yes, how would I access and use those files in a C++ code outside the docker ?
Thank you,
KK

@kk2491 it is best practice not to try and access those files from outside the container. Is there any reason behind you trying to accomplish it?

@natashadsouza I am trying write a code which uses the generated protobuf .h and .cc and communicate with the apollo through ROS.


Godot 3.2.1 does not completely support OpenGL 2.1

Godot version:

Godot 3.2.1
OS/device including version:

Backend is GLES2. The graphics card is an Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller which supports OpenGL 2.1. I have a dual boot OS of Lubuntu 19.10 and 32 bit Windows 7.
Issue description:

Godot 3.2.1 loads and runs fine under Linux. When I hit the "run" key a popup Window says this:
"Your video card driver does not support any of the supported OpenGL versions.
Please update your drivers or if you have a very old or integrated GPU upgrade it."
I can emulate OpenGL by forcing software rendering using this command:
export LIBGL_ALWAYS_SOFTWARE=1
And if I run Godot after that it runs much more slowly, and there is a long wait time before the run window appears. It works but it is so slow this is not a viable workaround.
I switched to 32 bit Windows 7 on the same machine and Godot 3.2.1 does not even start, complaining about the unsupported graphic card.
Steps to reproduce:
Minimal reproduction project:

As I replied in https://github.com/godotengine/godot/issues/24723#issuecomment-636481782, these integrated graphics are too old to run anything that makes full use of OpenGL 2.x. It supports OpenGL 2.1 in theory, but in practice, it doesn't :slightly_smiling_face:

To clarify: This is a driver issue with Intel's Windows drivers. This hardware does support OpenGL 2.1 on Linux, and only Linux.


Add Document button does not work

I have used a virtual environment using virtualenv and Python 3.9.18
I just reproduced the steps from the readme, to reproduce:
python3 -m virtual verba
source verba/bin/activate
pip install goldenverba

Then I visit localhost:8000 and try to add a document:
On terminal this is the error I get:
Exception in ASGI application
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/httptools_impl.py", line 426, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
    return await self.app(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 292, in __call__
    await super().__call__(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 122, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 184, in __call__
    raise exc
  File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 83, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
    raise exc
  File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "/usr/local/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
    raise e
  File "/usr/local/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 718, in __call__
    await route.handle(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 66, in app
    response = await func(request)
  File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 273, in app
    raw_response = await run_endpoint_function(
  File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 190, in run_endpoint_function
    return await dependant.call(**values)
  File "/usr/local/lib/python3.9/site-packages/goldenverba/server/api.py", line 297, in get_components
    config_manager.get_chunker(), chunker[config_manager.get_chunker()]
KeyError: ''

This is the UI I see:

I have also tried to install torch but nothing changed.
I will also try other python version but wanted to let you guys know!

Did someone solve the problem? I am always getting this error, no matter which python version I use

In my case, when I added the ip addess at origins in Verba/goldenverba/server/api.py, it worked
origins = [
"http://localhost:3000",
"https://verba-golden-ragtriever.onrender.com",
"http://localhost:8000",
"http://{myip}:8000",
]

Interesting! Thanks for the issue
We look into that 🚀

I solved the problem by making sure I had all the required libraries installed in the virtual environment, running:
pip install -r requirements.txt
In my case, I was missing torch. transformers, and accelerate.

The newest release should fix this issue! Let me know if it persists


Schema no longer supports rules

As of last week/version 0.28.0 the Schema object no longer supports rules as it did previously - more info here https://github.com/ianstormtaylor/slate/blob/master/packages/slate/Changelog.md#0280--october-25-2017
The line that seems to be causing this issue is - https://github.com/GitbookIO/slate-edit-table/blob/2bc336801673daec7819504847652f66abd13876/lib/makeSchema.js#L12

Closed by #47


Remove globals from typescript interface definition

Description
This pull request addresses the issue described here: #4223
This is as straightforward as can be: the globals definitions prevent proper automatic imports by IDE to happen correctly, and imports must be explicit anyway to avoid runtime bugs. Removing those definitions fixes the problem.

@ggilles, I believe this issue isn't that straightforward to resolve. To start, Detox does inject global variables (albeit by default), and the type definitions primarily mirror this characteristic.
The solution I prefer involves moving the global definitions to the detox/runners/jest package and redefining Detox's expect interface on top of Jest's Matchers API. This approach would eliminate any ongoing conflicts.
By "redefining Detox's expect interface on top of Jest's Matchers API" I mean this:
import { Matchers } from '@jest/types';

declare global {
  namespace jest {
    interface Matchers<R, T> {
      // Define your custom matcher functions here
      toBeVisible(): Promise<R>;
      toHaveText(text: string | RegExp): Promise<R>;
    }
  }
}

whereas the Jest implementation would be like a wrapper over Detox's own expect:
import { expect as detoxExpect } from 'detox';

expect.extend({
  async toBeVisible(received) {
    try {
      await detoxExpect(received).toBeVisible();
      return {
        message: () => `expected ${received} not to be visible`,
        pass: true
      };
    } catch (error) {
      return {
        message: () => `expected ${received} to be visible`,
        pass: false
      };
    }
  },

  async toHaveText(received, argument) {
    try {
      await detoxExpect(received).toHaveText(argument);
      return {
        message: () => `expected ${received} not to have text ${argument}`,
        pass: true
      };
    } catch (error) {
      return {
        message: () => `expected ${received} to have text ${argument}`,
        pass: false
      };
    }
  }
});

As I mentioned in your original issue, it more looks like a TypeScript issue in your project.
I tested manually two times this guide: https://wix.github.io/Detox/docs/guide/typescript
I know what I am talking about. Please try to examine your TS config - there must be something else interfering.
Since this global typing IS working in many projects, we can't change it without bumping a major version, first and foremost, so this PR the way it is composed now, it cannot be merged, sorry.


Missing contributor for KeyHacks in CONTRIBUTORS.md

Hey @g0tmi1k,
It looks like you're missing a contributor in here: https://github.com/danielmiessler/SecLists/blob/master/CONTRIBUTORS.md
This Keyhacks API markdown in your project was taking directly from here: https://github.com/streaak/keyhacks however there's no thanks or contribution added to the CONTRIBUTORS.md as far as I can see(?). If you could check that'd likely be nice to do, thanks!

Please open up a PR

Hey @g0tmi1k,
Is this format in the PR alright?

Yes it is :) Thank you again

Awesome, thanks for your work on SecLists @g0tmi1k!


rv32im/riscv_swint.c: Correct a macro brought from MIPS.

Summary
Replace MIPS32_SAVE_GP by RISCV_SAVE_GP
Impact
N/A, the macro is not defined, in RISC-V, GP is saved unconditionally.
This is only used to print some debug info.  But I think the condition should be removed.
Testing
N/A

Should we just take care of all of this mess at once?
https://github.com/apache/incubator-nuttx/issues/1274

Should we just take care of all of this mess at once?
https://github.com/apache/incubator-nuttx/issues/1274

Should we just take care of all of this mess at once?
#1274

Most of them come from vfork which has an #error to indicate that that part isn't done yet.
I can fix them to remove the references to MIPS but that still will be a NOP macros.

Should we just take care of all of this mess at once?
#1274

Most of them come from vfork which has an #error to indicate that that part isn't done yet.
I can fix them to remove the references to MIPS but that still will be a NOP macros.

I replaced all of them.
One more thing I noticed that was brought from MIPS is stack alignment.   In RISC-V 16-bytes alignment is required (always?  I found that some says this is required only for F extension).

I replaced all of them.
One more thing I noticed that was brought from MIPS is stack alignment.   In RISC-V 16-bytes alignment is required (always?  I found that some says this is required only for F extension).

@Ouss4 please squash the commits brefore we merge it

@Ouss4 please squash the commits brefore we merge it

I replaced all of them.
One more thing I noticed that was brought from MIPS is stack alignment. In RISC-V 16-bytes alignment is required (always? I found that some says this is required only for F extension).

Yeah there are a few places we need to clean up some related stuff.  I think we can punt this until we do the unifying work for riscv.  We also are not really supporting FP right now and the alignment requirements around that.

I replaced all of them.
One more thing I noticed that was brought from MIPS is stack alignment. In RISC-V 16-bytes alignment is required (always? I found that some says this is required only for F extension).

Yeah there are a few places we need to clean up some related stuff.  I think we can punt this until we do the unifying work for riscv.  We also are not really supporting FP right now and the alignment requirements around that.


Enabling unit tests

This enables various passing unit tests

Can one of the admins verify this patch?

@ekuznetsov139 Mind upstream this change? Discovered it when resolving upstream merge conflicts.
/cc @deven-amd


Air Wales VA liveries

BB_AirWales_VA.zip
It would be great to have this added in the next update for airwalesv.org

Actually we need to make an update to the pack so don't add this one posted yet. Thanks


Analyzer: can_be_null_after_null_aware does not catch operators

E.g. the following code is not reported by analyzer's CAN_BE_NULL_AFTER_NULL_AWARE:
a?.b[c];
a?.b[c] = d;
a?.b + 7;

One can see in analyzer/lib/src/generated/resolver.dart that only MethodInvocation, PropertyAccess, and CascadeExpression can currently generate a CAN_BE_NULL_AFTER_NULL_AWARE Hint.

Update: now the last line with operator+ works. Here's a full repro:
void f(A? a, int c, int d) {
  a?.b[c];
  a?.b[c] = d;
  a?.b + 7;
}

class A {
  B b;
  A(this.b);
}

class B {
  int operator+(int x) => 1;
  int operator[](int y) => 7;
  void operator[]=(int y, int z) {}
}


Move spark config to a visible cell

Seeing the docs build fail on the copy-schema PR, so hoping to recreate that here and find a fix.
The fix involves making the spark config visible, and this isn't ideal, but it seems like it's not getting executed in a raw rst cell in the same way it does in a regular cell.

Do you think we should add a comment somewhere to let readers know that this spark config cell is likely not something they will need to execute? I'm not sure how to best convey that, but I think it would be nice to somehow let them know this isn't something that is required for them to use if they already have spark configured properly.

Maybe a comment above indicating that and also provide a link to some sort of resource that explains what it is so that if they did happen to need to run it they can figure that out for themselves.


Fix import of classnames

@pawlowskim Great work! Do you have plan to merge it to original repo?

@qhuyduong Marked ready for review. Let's owner make the decision

@qhuyduong merged to forked version. Also PR created https://github.com/andrerpena/react-mde/pull/166


feat: :alembic: Clone ansible playbooks with a container

Create dedicated branch with code removed from there.

Fixed in #105


Mandatory fields for VAT declaration (CZ)

Hello,
I am currently defining VAT declaration for CZ and even though some mandatory fields are part of the configuration (e.g. zast_kod, zast_typ etc.), they are disabled and I don't know why and how to potentially bring them out.
These fields are not even specified in this documentation.
E.g. when the taxpayer type is Organization, we must define also type of the signatory person details zast_typ etc.
Could you please advise and potentially add this to the page I am referring to?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 2825361e-b3da-9b9d-16f2-90974b964d36
Version Independent ID: d80229a2-8acc-ef01-4155-4f50b6bfe9dc
Content: VAT declaration (Czech Republic) - Finance | Dynamics 365
Content Source: articles/finance/localizations/emea-cze-vat-declaration-tax-declaration-model.md
Service: dynamics-365-finance
Product: ****
Technology: ****
GitHub Login: @Anasyash
Microsoft Alias: anasyash

Hi,
could you please direct me to the page where I can raise the service request? Thank you.

I think you should open it in LCS https://lcs.dynamics.com/v2

@lukasnimberger , thank you for sending your feedback. It looks like this is actually a service request, so I am closing this as a documentation issue. Please let us know if there is still a documentation issue here that you would like to have addressed. Thanks.


raise RuntimeError(message) from e RuntimeError: Error compiling objects for extension

Please replace the code in /site-packages/torch/utils/cpp_extension.py.
replace ['ninja','-v'] to ['ninja','--v'] or ['ninja','--version']
I tried this method, and then I succeeded in passing this step.


Created runner script that runs all the project tests

Created runner.py that imports all of the functions from each test and runs them at the same time. The script appropriately prints which task it is currently running and moves on to the next task after user input. Fixes issue #16

Looks good, maybe we can include an evaluation file with resulting csv in future


Add validation logs retrieval. Validation release 1.2.0

Pending because waiting on deployment repo to be merged in nuvlaedge repo


fix protoc install link

The upstream change https://github.com/protocolbuffers/protobuf/commit/3c3dfe0efa859563e1fdbe51badd0ebf74760ff9 broke the anchor link
This corrects the link

CI failure seems unrelated:
error: package `indexmap v2.0.0` cannot be built because it requires rustc 1.64 or newer, while the currently active rustc version is 1.63.0


Fix drag connection and right clicking

When dragging a connection and right clicking on the SVG, the connection stays visible but not connected to any point

It happens only on chrome, when you right click and open the chrome dev console

The dragend callback is not fired on chrome/safari
Correct behavior on firefox


new feature for Image resizer-- Make the option to resize the image to a specific file size

Description of the new feature / enhancement
It is very often to adjust picture to a specific file size for certain purpose.
Scenario when this would be used?
For example, the original size of the image is 3.5M, but its size has to be reduced to 500kb in order to meet the requirement to upload to a website.
Supporting information
This feature is provided by a online image resize tool https://www.simpleimageresizer.com

/dup https://github.com/microsoft/PowerToys/issues/8790


Document available shapes, add some repr and tests

This PR:

[x] Adds a 'shapes' section to the docs with an example how to create each available shape
[x] Implements repr for every shape in a consistent way
[x] Adds a test file for every shape and checks object creation and repr at the very least
[x] A few minor misc improvements in other places.

I'll merge if travis-ci passes, this should be uncontroversial.
If someone wants to do a quick review, it's welcome of course.

@mwcraig - Any idea why this cannot pick up wcsaxes from openastronomy? https://travis-ci.org/astropy/regions/jobs/147281656#L522
Previously there were no problems, and it got picked up from the astropy channel.

Yeah, that is what happens when the package is messed up on a conda channel. Give me a few minutes to cook up a script to nuke and recopy.

@bsipocz -- the channel should be working again...

Ha, ha, just kidding...I'm still getting failures with reproject.

A little more information...it is working for some packages, I was hitting a failure on reproject/numpy 1.9, but the original build on the astropy channel seems to be broken. 😕

Looks like wcsaxes is working now, so that is progress...

@bsipocz @mwcraig - Thanks for fixing the conda install issues while I was sleeping. :-)
I restarted the build and everything worked now.
Merging.


scipy stats fit behaves questionably for distributions with bounded support

I think it could be possible to find initial location and scale guesses automatically so that the initial support includes all of the data.  Given the initial shape parameters (default 1.0), I think you can already get the lower and upper bounds of the support (called a and b) for the default location and scale parameters 0 and 1.  Given a and b, you could pick initial location and scale parameter values such that the initial support covers all of the data points.  This would be an alternative to the current strategy of picking the initial location and scale parameters so that the mean and variance of the distribution match the mean and variance of the data.
There have been a few discussions about this problem in the past, but just as a concrete example here's a data array that causes problems for several distributions that have bounded support.
>>> import numpy as np
>>> from scipy.stats import uniform
>>> data = [1.01, 1.78, 1.78, 1.78, 1.88, 1.88, 1.88, 2.00]
>>> uniform.fit_loc_scale(data)
(1.249943612210108, 0.99761277557978356)
>>> uniform.fit(data)
(1.7799948270442498, 0.2200056439937767)
>>>

IIRC, the test suite has some code that has a better choice of starting values for fit, depending on the support of the distribution, open, half open or closed.
(GEV (genextreme ?) is messy because it depends on the parameters whether the support is half open on the left or on the right, AFAIR)
The distributions have an internal _fitstart that could be used to fix this on a distribution specific basis. For example uniform could just specify the estimate for loc= data.min() and scale = np.ptp(data), or something like that (which is also the MLE in that case IIRC).

@argriffing  BTW: You have the permission to set and change labels, which you should do when you open an issue.

The distributions have an internal _fitstart that could be used to fix this on a distribution specific basis. For example uniform could just specify the estimate for loc= data.min() and scale = np.ptp(data), or something like that (which is also the MLE in that case IIRC).

Today or this weekend I might try adding this generically (as opposed to fixing on a distribution specific basis).  I think that enough information is programmatically available.  But I may need help with broadcastability issues or with navigating the object oriented stats framework.
Thanks for the hint about genextreme.  I guess you mean its support depends on its shape parameters?  Also I'll try to avoid the temptation to add distribution-specific MLE formulas until the generic fitting is improved a bit.

BTW: You have the permission to set and change labels, which you should do when you open an issue.

Sorry I've been adding scipy issues without setting these labels... I'll try to remember in the future!

@josef-pkt This might be a dumb question, but what is the best way to compute the lower and upper bounds of the support given the shape parameters?  I'm looking for something like the line
mu, mu2 = self.stats(*args, **{'moments': 'mv'})
in fit_loc_scale, except which returns a lower and upper bound instead of the first and second moment.  In that line args consists of the shape parameters, and I think the location and scale are taken as 0 and 1 for the purpose of computing mean and variance.

@argriffing self.a and self.b? a call to _argcheck(self, *args) fixes them for distributions with parameter-dependent support

@ev-br so like
self._argcheck(*args)
a, b = self.a, self.b

in analogy to
mu, mu2 = self.stats(*args, **{'moments': 'mv'})

?

@ev-br Thanks, that seems to work. I've opened a PR that uses this to initialize the location and scale guesses.


Bump dependency

PR builder [7.x.x] started
Link: https://github.com/wso2/product-is/actions/runs/5470734097

PR builder [7.x.x] completed
Link: https://github.com/wso2/product-is/actions/runs/5470734097
Status: success


Bugs related to sign up

Depth questions accepts an empty answer
Edit interests doesn't pre-populate with the selected interests

fixed depth questions


 I'm not sure what the playbacks are supposed to look like since I can't test them. Any help is appreciated!
Traceback (most recent call last):
  File "C:\Users\Angel\Desktop\puterbot\puterbot\replay.py", line 43, in <module>
    fire.Fire(replay)
  File "C:\Users\Angel\Desktop\puterbot\venv\lib\site-packages\fire\core.py", line 141, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "C:\Users\Angel\Desktop\puterbot\venv\lib\site-packages\fire\core.py", line 466, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
  File "C:\Users\Angel\Desktop\puterbot\venv\lib\site-packages\fire\core.py", line 681, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
  File "C:\Users\Angel\Desktop\puterbot\puterbot\replay.py", line 21, in replay
    strategy_class_by_name = get_strategy_class_by_name()
  File "C:\Users\Angel\Desktop\puterbot\puterbot\utils.py", line 375, in get_strategy_class_by_name
    from strategies import BaseReplayStrategy
  File "C:\Users\Angel\Desktop\puterbot\puterbot\strategies\__init__.py", line 1, in <module>
    from strategies.base import BaseReplayStrategy
  File "C:\Users\Angel\Desktop\puterbot\puterbot\strategies\base.py", line 15, in <module>
    from puterbot.models import InputEvent, Recording, Screenshot
  File "C:\Users\Angel\Desktop\puterbot\../puterbot\puterbot\models.py", line 13, in <module>
    class Recording(Base):
  File "C:\Users\Angel\Desktop\puterbot\venv\lib\site-packages\sqlalchemy\orm\decl_api.py", line 76, in __init__
    _as_declarative(reg, cls, dict_)
  File "C:\Users\Angel\Desktop\puterbot\venv\lib\site-packages\sqlalchemy\orm\decl_base.py", line 126, in _as_declarative
    return _MapperConfig.setup_mapping(registry, cls, dict_, None, {})
  File "C:\Users\Angel\Desktop\puterbot\venv\lib\site-packages\sqlalchemy\orm\decl_base.py", line 183, in setup_mapping
    return cfg_cls(registry, cls_, dict_, table, mapper_kw)
  File "C:\Users\Angel\Desktop\puterbot\venv\lib\site-packages\sqlalchemy\orm\decl_base.py", line 331, in __init__
    self._setup_table(table)
  File "C:\Users\Angel\Desktop\puterbot\venv\lib\site-packages\sqlalchemy\orm\decl_base.py", line 854, in _setup_table
    table_cls(
  File "<string>", line 2, in __new__
  File "C:\Users\Angel\Desktop\puterbot\venv\lib\site-packages\sqlalchemy\util\deprecations.py", line 309, in warned
    return fn(*args, **kwargs)
  File "C:\Users\Angel\Desktop\puterbot\venv\lib\site-packages\sqlalchemy\sql\schema.py", line 594, in __new__
    raise exc.InvalidRequestError(
sqlalchemy.exc.InvalidRequestError: Table 'recording' is already defined for this MetaData instance.  Specify 'extend_existing=True' to redefine options and columns on an existing Table object.

I was able to resolve the above error by adding  __table_args__ = {'extend_existing': True} under every __tablename__ line. Now, I'm getting this error:
bot\strategies\naive.py)```

I can't find the issue though as there doesn't seem to be a circular import between base.py and naive.py.

Thanks @angelala3252 ! Can you please provide the output of the following commands?

python --version
python -c "import sqlalchemy; print(sqlalchemy.__version__)"
git status

Thank you!

Here's the output:

 Python 3.10.1
 1.4.43

Your branch is up to date with 'origin/main'.
Changes to be committed:
(use "git restore --staged ..." to unstage)
new file:   puterbot/strategies/minigpt4.py
Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git restore ..." to discard changes in working directory)
modified:   puterbot/config.py
modified:   puterbot/crud.py
modified:   puterbot/db.py
modified:   puterbot/events.py
modified:   puterbot/models.py
modified:   puterbot/record.py
modified:   puterbot/replay.py
modified:   puterbot/strategies/init.py
modified:   puterbot/strategies/base.py
modified:   puterbot/strategies/minigpt4.py
modified:   puterbot/strategies/naive.py
modified:   puterbot/utils.py
modified:   puterbot/visualize.py
Untracked files:
(use "git add ..." to include in what will be committed)
.idea/
MiniGPT-4/```

Thanks @angelala3252! Please try this:

Create a new branch:

git checkout -b feat/my-feature

Commit all your changes:

git commit -am "work in progress"

Check out the main branch:

git checkout main

Pull the latest changes:

git pull

Try playing back again:

python -m puterbot.replay NaiveReplayStrategy

If that doesn't work:

Re-create your environment and create a new recording:

deactivate
python3.10 -m venv .venv
source .venv/bin/activate
pip install wheel
pip install -r requirements.txt
pip install -e .
alembic upgrade head
pytest
python -m puterbot.record "testing out puterbot"

And try again:

python -m puterbot.replay NaiveReplayStrategy

The bug was an issue on my end that I was able to resolve by only keeping my relevant changes. Thanks for the help!


[Ionic V4.0.0-beta.12] [ios] [ion-searchbar] showCancelButton has style issue in RTL

Bug Report
Ionic Info
Ionic:
ionic (Ionic CLI) : 4.1.2 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.0.0-beta.12
@angular-devkit/core : 0.8.4
@angular-devkit/schematics : 0.8.4
@angular/cli : 6.2.4
@ionic/ng-toolkit : 1.0.8
@ionic/schematics-angular : 1.0.6
System
NodeJS : v10.1.0 (/usr/local/bin/node)
npm : 6.4.1
OS : macOS High Sierra
Describe the Bug
on [ios] RTL cancel button on searchbar dosent have padding-right

Additional Context
Searchbar has this styling
.searchbar-cancel-button.sc-ion-searchbar-ios {        padding: 0 0 0 8px; }
Expected Behavior
When switching to  RTL it should be
.searchbar-cancel-button.sc-ion-searchbar-ios {        padding: 0 8px 0 0; }

The searchbar, as other components, has several issues in RTL. In your screenshot shows the wrong position of the search icon as well: it should be on the right side.


libreoffice-fresh: <IP_ADDRESS> -> <IP_ADDRESS>

Motivation for this change
Things done
Tested on top of NixOS cd5da0d166d9b5c02d2be70a60a88dc167286798.

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

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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-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)
[ ] Assured whether relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Thank you.


worker-loader 3.x

The 3.x update is breaking the tests.
I already identified inline and name options changed (and it has a new option that would let me specify the worker chunk filenames too, which would be great for consistency).
However I'm still searching why it's not compiling properly anymore.

More testing confirms it's not the polyfills loader interfering either.

I also tried inline mode (instead of generating a file for the worker): still no luck so far.

It's not the ts-loader, polyfills loader, or source maps loader either interfering either.

I strongly suspect it's the new esModule: true default value: ironically, typescript has to use require("./example.webworker") to import example.webworker.ts with a typecast, otherwise it would use the structure of the code before transformation by the Webpack loader, which would be inaccurate.
Sadly you can't override the type definition of *.webworker.ts files the same way you can with *.jpg or *.scss.
So if the theory is correct, esModules:false (along with the inline and name options change) should fix at least the Basic Webworker fixture.

Indeed, all tests pass now 🎉


docs: Remove duplicate Azure Identity SDK content

Addresses https://github.com/Azure/azure-sdk-for-cpp/pull/4894#issuecomment-1684195033

Codecov Report

Merging #1082 (1333bce) into main (eb7cef3) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1082   +/-   ##
=======================================
  Coverage   53.71%   53.71%
=======================================
  Files          36       36
  Lines        2290     2290
=======================================
  Hits         1230     1230
  Misses       1014     1014
  Partials       46       46

/azp run


BTP Price Oracle (for weighted pools)

There should be a test to prove the _checkRatio is working as intended and throwing an error when the pool is unbalanced

There should be a test to prove the _checkRatio is working as intended and throwing an error when the pool is unbalanced

okay


[Caching] Support pluginCAS in swiftDriver

Add support for pluginCAS by adopting the new SwiftScan CAS creation APIs. The old CAS creation API is deprecated, and will be removed once all users are updated.

Depending on https://github.com/apple/swift/pull/67942
Split out from old https://github.com/apple/swift-driver/pull/1415 for the pluginCAS part.

We should update SWIFTSCAN_VERSION here and in https://github.com/apple/swift/pull/67942.

@swift-ci please test

@swift-ci please test


Demo pyjanitor walkthrough notebook

#73
@ericmjl
Here is a first draft of the notebook for discussion.
You can see the effects of #79 in the cells where I break down the data cleaning pipeline step-by-step progressively across cells, where some are just df.thing() and others are df = df.thing() because of the in place inconsistency.

@zbarry totally in-line with what I was thinking! Nice stuff. Anything you think needs discussing? From my reading of it, LGTM!

👍 gtg then

What's your Twitter account?


Full Webpage screenshot support

Is there any capability to take full webpage screenshot. Currently screenshot is take only of the visible viewport.

@abathur you are right. I will close this issue.


Add a games command

Feature Request or Issue?
New command
Overview
List all games being played and who is playing them

#96 adds the command


chromium PMID:30148840

increased number of Rad52 foci during cellular response to chromium
normal growth on chromium

increased number of Rad52 foci during cellular response to chromium FYPO:0006678
normal growth on chromium FYPO:0006679
edit file: 9d0ba8f64502212e143e97742ca9bfcfd171b866
release: 5d0908432606c9998efa8d4332cd6b097ec891b6


[dotnet wrapper] Add Wallet.IsOpen status

Convenience flag, useful in several instances in particular when dealing with longer lived multi-context access to a wallet.

Added the IsOpen() flag to the wallet object, indicating if the wallet is open
Modified tests cases accordingly.
Fixed unrelated broken anoncreds tests, due to a function signature change.

@tplooker Thanks for contribution! This PR has a problem with our DCO checker. Commits to be accepted should have information about author name and email in signature section.
More information about our DCO policy is here: https://github.com/apps/dco
Here is an information on how to fix this https://github.com/hyperledger/indy-sdk/blob/master/doc/signing-commits.md

@jovfer thanks, I originally signed it with another account and then updated the signature to include my github linked account, is that sufficient or should I resubmit the PR?


Settings schema

Issues
Closes #245

@jwildfire Not sure how to test this one?

The form section of the page in CAT should appear if the schema is working correctly. Unfortunately, it's not working now. It looks like there is a bug that @samussiah or I will need to figure out.

Looks like my attempt at a quick fix failed ... @samussiah Any idea what's going on here?

Bug was because the form maker in CAT didn’t like a schema setting with type=array with no items associated. Merging to v1.4-dev now.


dipole solutions - coordinate free mathematical statement

Right now, the solutions for dipoles in homogeneous media are stated as in Ward and Hohmann, with the coordinates laid out and a specific orientation selected. This is valuable, but personally, I find the more compact solution in which the dipole moment is treated as a vector perhaps more enlightening in some cases. This might be worth including - thoughts @dccowan, @sgkang, @dougoldenburg
Or at least spherical coordinates

That would be nice but the derivation is so much easier to understand as it is written now. We would however make a statement that a change in coordinate system can be used to solve the problem for any orientation.


Platforms: Finish Scala.js. Be able to link a project

This can be already closed, right?

I think it mostly works, but I havent really had time to you know, test it :D
I'll keep this open a while longer to

ensure it works
ensure it's documented
(stretch goal) see if there is time to experiment with finding an awesome way to work with scala.js, bundling and all


Use monotonic time

See https://github.com/ruby-concurrency/concurrent-ruby/issues/256 for reasons why.
I got bitten by this because our app uses timecop to mock with time. Namely it uses scale to make time 1000 times faster.
If you'd be interested, I could make a patch to fix it in https://github.com/cucumber/cucumber-ruby-core/blob/0807c9ca6be06777be75d13a1b769f97ef993399/lib/cucumber/core/test/timer.rb

Thanks, a patch would be great.
On Thu, 31 Dec 2015 at 14:34, Michal Cichra<EMAIL_ADDRESS>wrote:

See ruby-concurrency/concurrent-ruby#256
https://github.com/ruby-concurrency/concurrent-ruby/issues/256 for
reasons why.
I got bitten by this because our app uses timecop to mock with time.
Namely it uses scale to make time 1000 times faster.
If you'd be interested, I could make a patch to fix it in
https://github.com/cucumber/cucumber-ruby-core/blob/0807c9ca6be06777be75d13a1b769f97ef993399/lib/cucumber/core/test/timer.rb
—
Reply to this email directly or view it on GitHub
https://github.com/cucumber/cucumber-ruby-core/issues/101.

@mattwynne great! done cce8a1d. what do you think?

Looks good, thanks!

I'm confused where that commit lives! Could you put into a PR for me please and help this scatterbrained over-busy project maintainer? :pray:

@mattwynne done! See #103

Thanks @mikz!


OneDrive JS FilePicker in Electron error 'Cannot create property 'href' on string

First off, the JS FilePicker is not listed in this repository. Any way it can get added?
When importing the OneDrive.js filepicker and following the guide, everything works as expected (except one JS error which i'll describe later). But, when opening in our Electron app, the window loads and closes throwing a js error, Cannot create property 'href' on string. This happens because electron's popup window sets window.location = 'onedriveUrl'. Then the script tries to update window.location.href and crashes out. I was able to fix this by dropping .href on the call in the minified script but would like to actually PR my changes.
There was also another issue of e.data.indexOf is not a function. That was fixed via adding an additional e.data.indexOf null check.
Would also like to get an unminified version I could fully test and propose changes to.

@ificator this one kills us on redirects for other platforms. Wondering if this is something that is sensible to move on?

I'm facing the same issue with onedrive file picker in electron.
The problem is on this line -
e.getCurrentPopup().getPopupWindow().location.href = s;

In a browser instance e.getCurrentPopup().getPopupWindow().location returns a URL object but in electron it returns a string.
I tried fixing this to e.getCurrentPopup().getPopupWindow().location = s but then it breaks on another error.
The next error I get is related to the use RequireJS. RequireJS tries to replace NodeJS' require but it cannot do so under electron. This fails with its face on the floor. I have spent an entire day monkey patching this script but it just leads to more and more errors.

@aditima hey there! Is there any update on this one?

Hey @harshilsharma63 was busy getting #891 fix out the door. Looking into this 🕐

Awesome news, thanks for addressing this one @KevinTCoughlin
We're happy to help however possible (testing, debugging, etc) just let me know.

@etyp if you have a sample repo that shows as far as you can get before the above errors are thrown by the lib that would save me some time. If not no worries, trying to do that myself now.

@harshilsharma63 are you using an http/s endpoint for your redirectUri? If so how? Electron serves from file:// breaking the OAuth flow for me, unless you're using a local web server as a proxy for auth.

@KevinTCoughlin I think you'd need to open a popup window for authenticating? That's what we did for another project for the oAuth flow.

Here is issue on Electon-side about location.href: https://github.com/electron/electron/issues/15017

@KevinTCoughlin any way we can get this added to this repo unminified? I would be willing to open a PR with the fixes but we need the original source.

@nab911 If you are still looking for a fix to this, you can try to make changes to the more readable debug version of JS FilePicker: http://js.live.net/v7.2/OneDrive.debug.js
Interestingly, Slack is able to run the file picker in their electron app with the OneDrive-for-Slack app. They seem to be using a modified version of the JS file picker.  But their version does not work in other electron apps and requires some other changes I was not able to figure out.
The React Component (NPM Package) does seem to work with Electron. But it only has a preview release yet and the License is not as open as the JS FilePicker.

As part of a repository clean up effort we are closing older issues. If this issue remains, please: open a new issue, reference this issue, and provide any additional details that may help in resolution. Thank you for your understanding as we work to improve our responsiveness.


Enable build of Swift Swift parser even when bootstrapping is OFF.

The Swift Swift parser doesn't require any bootstrapping, so allow it to be built even when bootstrapping is off.

@swift-ci please smoke test


Persist Open Tabs

Persist the content and order of tabs by user upon the closing and reopening of both browser and analytics applications per user.

Applied this to analytics along with other state management.


Project: HTTPArchive

Participate in the HTTPArchive project

[ ] Review Performance 2022 https://github.com/HTTPArchive/almanac.httparchive.org/issues/2890
[ ] Review Accessibility 2022 https://github.com/HTTPArchive/almanac.httparchive.org/issues/2889
[ ] Review Privacy 2022 https://github.com/HTTPArchive/almanac.httparchive.org/issues/2891
[ ] Review CSS 2022 https://github.com/HTTPArchive/almanac.httparchive.org/issues/2879

Any other ones? Privacy? JS? APIS? Fonts? Markup? See https://github.com/HTTPArchive/almanac.httparchive.org/issues?q=is%3Aissue+is%3Aopen+2022+label%3A"2022+chapter"

Thanks for filing this OWD project proposal!
I'm not familiar with the HTTPArchive project but the linked issues all have a publication date of September 26 ...
Can you elaborate a bit what our involvement should be (or has been) until then?
If there hasn't been any involvement from our side, I guess we should reconsider this project in the next year and close here for now.

Closing this. Deadline is too soon.


vesktop: 1.5.2 -> 1.5.3

Description of changes
https://github.com/Vencord/Vesktop/releases/tag/v1.5.3

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 325104 run on x86_64-linux 1

1 package built:

vesktop


EF Core 2.0 migration issue using Identity

I'm taking a ASP.NET Core 1.1 project and upgrading to Core 2.0. It went well enough with an existing DB, but when I deleted the DB and tried to re-create it using the "dotnet ef" tooling, things went pear shaped.
Firstly: running 'dotnet ef migrations add initial' popped up an error:

No parameterless constructor was found on 'ApplicationContext'. Either add a parameterless
constructor to 'ApplicationContext' or add an implementation of 'IDesignTimeDbContextFactory' in the > same assembly as 'ApplicationContext'

Fair enough - so after a bit of searching, I added an implementation of IDTDBCF to my project and it got further, creating the migration class and snapshot, but with a error (in yellow) on the console:

Error Number:208,State:1,Class:16
An error occurred while calling method 'BuildWebHost' on class 'Program'. Continuing without the
application service provider. Error: Invalid object name 'AspNetUsers'.

Then running "dotnet ef database update" (for the sake of completeness) results in.... a working database.
So, the first issue is really one of updating the documentation for migration to say how to get a working migration, the parameterless constructor option given in the error message seems like it would be easier, but it then requires an OnConfiguring implementation with roughly the same code - and I'm not sure what to put in there as it didn't work for me.
The yellow error message is worrying too, I wouldn't expect to see a huge stack trace and error message for something that works.
 Did you update your Program.cs file? Ref: https://docs.microsoft.com/en-us/aspnet/core/migration/1x-to-2x/

Why close?

@Murf - The issue has been closed because of no response from OP. We don't have enough information to investigate the cause of issue.

Sorry - been away from github and code for a bit.,
Yes, I followed the migration page religiously (as I knew I would have to before submitting this bug and feeling stupid when an obvious answer was pointed out, as always happens).
I have updated the Program.cs file.
But I don't know what you're referring to by calling Migrate() - this is not mentioned in that document, searching for that word results in no hits on the page, or on the linked page to migrate ASP.NET identity./

Error Number:208,State:1,Class:16
An error occurred while calling method 'BuildWebHost' on class 'Program'. Continuing without the
application service provider. Error: Invalid object name 'AspNetUsers'

@gbjbaanb - Share your BuildWebHost method and all relevant paths that code can take. You are querying database while before creating it. That is the reason it fails only for fresh db.
Are you having code in your startup to seed database? Especially a check like this db.Users.Any()

This is my BuildWebHost:
public class Program
{
	public static void Main(string[] args)
	{
		BuildWebHost(args).Run();
	}

	public static IWebHost BuildWebHost(string[] args) =>
		WebHost.CreateDefaultBuilder(args)
		.UseStartup<Startup>()
		.Build();
}

Now that's an idea about reading the DB before creation (not that all I did was update to .netcore 2, the code to insert into the DB has not changed).
This is the new method I had to create to get the new migration to work, as explained in the original question:
// workaround for new Core 2.0 migrations tooling
public class ConfiguringDbContextFactory : IDesignTimeDbContextFactory<MyContext>
{
	public MyContextCreateDbContext(string[] args)
	{
		var configuration = new ConfigurationBuilder()
			.SetBasePath(Directory.GetCurrentDirectory())
			.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
			.Build();

		var builder = new DbContextOptionsBuilder<MyContext>();

		var connectionString = configuration.GetConnectionString("MyContext");

		builder.UseSqlServer(connectionString);

		return new MyContext(builder.Options);
	}
}

it calls no custom DB insertion code. My Startup class constructor doesn't call any DB code either.
I do have coded that queries the DB to decide whether to insert default data, it calls UserManager.FindByEmailAsync, there are no other calls to the DB. This call is in the Configure() routine on Startup, and I thought the whole point of the changes were to remove the dependency on this method.
I think I may have gotten the IDesignTimeDbContextFactory class wrong, but there is precious little documentation on what this should be. Is it that the ConfigurationBuilder is calling into my Startup.Configure() method?

I do have coded that queries the DB to decide whether to insert default data, it calls UserManager.FindByEmailAsync, there are no other calls to the DB. This call is in the Configure() routine on Startup,

That is the cause of error. In 2.0 Startup.Configure method is to configure the application (e.g. add services, configure their behavior, configure http endpoints etc). Configure is not the place to put the logic which should be run when application is started.
https://docs.microsoft.com/en-us/aspnet/core/migration/1x-to-2x/#move-database-initialization-code contains detailed information about what changed between versions & what users need to do when upgrading around database initialization. If you follow the update guide then you can remove ConfigureDbContextFactory

please help me out .i'm using asp.net 2.0 "An error occurred while calling method 'BuildWebHost' on class 'Program'. Continuing without the application service provider"

@Srinivasvasantavada - Please file a new issue, with the code of your Program.cs, Startup.cs classes & full stacktrace.

I know this is a closed issue, but I just want to come here to SCREAM AT WHATEVER INEPT HUMAN BEGIN DECIDED ANY OF THIS WAS A REASONABLE IDEA AND CURSE THEM TO THE DEPTHS OF GEHENNA WHERE THEY WILL BE FOREVER CURSED TO USE THEIR OWN AWFUL IMPLEMENTATIONS.
Thank you.


doc comments for immutable metadata API

Starting with just the core immutable API since there will be a lot of copy paste into the mutable one and the extensions methods... so we'll get this right before I copy paste mistakes everywhere :smile:

:shipit:

Merged https://github.com/aspnet/EntityFramework/commit/be0d4028d24c5911c2a829c5fa84d06bec43702e


Lexer matches incomplete tokens.

I am building select parser.
The code looks like below but it doesn't work as I expected.
const FROM = createToken({
  name: "FROM",
  pattern: /from/i
})
const Identifier = createToken({
  name: "Identifier",
  pattern: /[0-9a-zA-Z]+/
})
const WhiteSpace = createToken({
  name: "WhiteSpace",
  pattern: /[ \u000B\t\n\r]+/,
  group: Lexer.SKIPPED
})
const allTokens = [ FROM, Identifier, WhiteSpace ]
const lexer = new Lexer(allTokens)
// This generate a FROM token and a Identifier token of 'M'.
lexer.tokenize('fromM')

I want to get one 'fromM' Identifier token.
How can I do it?

Great!
Thank you

Cheers!


Add feature for image-rs with defaults except cosign

Add a feature that can be specificed by crates that include the image-rs crate to build image-rs with all default features except cosign.
Fixes confidential-containers#88
Signed-off-by: Matthew Arnold<EMAIL_ADDRESS>

@Xynnn007 - I hope that you have logged off for the day, but when you are next in, if you could have a quick look at this it would be appreciated. Thanks!

@arronwy, or @jialez0 (for after the weekend) - if you are happy with this are you able to review and merge this please? Thank you!


adler32 unit test does not test all optimized functions

adler32_test makes calls to adler32, which actually maps to an specific implementation through the functable.
The consequence is that only one implementation is tested. This can be (and probably is) mitigated in the CI by creating different targets disabling some features that control which implementation will be used at runtime.
But ideally, the code should test all adler32 implementations the host is capable of running.

I agree it is mitigated by CI. Some of these implementations are hardware specific so it is not possible to test every implementation obviously.
I reviewed the code coverage reports and it seems that arch/power/adler32_vmx.c is not tested at all.

Hah, I have a quad powermac G5 with a modernish installation of gentoo I could test this with :).  Doesn't help with the CI issues, though.


Use malloc to avoid alignment problems.

Thanks to Norm Green for reporting this issue.
This PR is based on code @vdukhovni wrote and posted.

I wonder which platform has got the problem and how come it went unnoticed so far. On some level I rather wonder if it's outcome of some recent compiler change that misaligns stack, and in such case how far would it go. [Do note that I'm not saying that suggested fix is not appropriate, only wonder how come it worked so far. Because customarily objects on stack would be aligned at pointer size, even if their declaration doesn't imply corresponding guarantee.]

@dot-asm, it's Solaris on SPARC (maybe Solaris64).  See this thread on openssl-users.

Merged to master, thanks!


MaterializedPathSegment

A Proposal for a materialized Path Segment (MaterializedPathSegment), that holds its ASNs as a vec, so it can be passed around independently and can be modified in place.
Modification methods on AS_PATH (related to MaterializedPathSegment).
Remove old stuff

shouldn't probably not be merged like this (Martin wants to convert the whole AsPath & AsPAthBuilder to hold Octs always, instead of a intermediate &[Asn]).

I indeed propose to change the type to be AsPath<Octs> and hold the wire-format of an AS path. The AsPathBuilder<_> would then hold an octets builder and would provide methods to manipulate that builder.
The only (?) problem is that prepending a single ASN – the most commonly performed path manipulation – is really quite expensive. As a workaround, we could have AsPath<Octs> keep an extra Option<Asn> which can hold one ASN to prepend when composing.

The plot thickens, I've added two traits (ScalarValue and VectorValue), as well as the AttrChangeSet, that I think should be the primitives to modify BGP Update messages.

I’m still not entirely convince this is general purpose enough to live in routecore rather than Rotonda.

There should be a way to modify and create new BGP Updates in routecore in any case, no? This is a proposal to do that.
It's in nobody's interest if Rotonda has a method that completely diverges from the one offered in routecore.
So this is just a proposal, the final way of doing this can be different, and I'll adapt Rotonda to that.


Getting Error When Running Trained MobileNet Model Keras File In SAS Viya 4

Hi Team,
Greetings for the day, I hope you are doing well.
I am trying to run my custom model .keras file in SAS Viya 4 but I am getting error - TypeError: load_weights() missing 1 required positional argument: 'path'
Even though I have specified the proper path of the model that I have uploaded to a directory where there is not restriction to read or access.
This is few part of my python code, that I am to load the model-:
import os
import time
import tensorflow as tf
from tensorflow.keras.preprocessing import image
from tensorflow.keras.applications.mobilenet_v2 import MobileNetV2, preprocess_input, decode_predictions
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
import dlpy
from dlpy import Model

# Directory containing test images
test_images_directory =<EMAIL_ADDRESS># Replace with the path to your test images directory

# Get a list of all image files in the directory
image_files = [os.path.join(test_images_directory, fname) for fname in os.listdir(test_images_directory) if fname.endswith(('.png', '.jpg', '.jpeg'))]

# Load the pre-trained model
model_path =<EMAIL_ADDRESS>#model = tf.keras.models.load_model(model_path)

model=Model.load_weights(model_path, labels=False, data_spec=None, label_file_name=None, label_length=None, use_gpu=False, embedding_dim=None)

I figured out the issue, No need for Dlpy to run python in SAS Viya 4, you can directly run it.
Thanks and Regards


Don't duplicate documentation for re-used options

Is it possible to dedup args that are listed multiple times in different commands? Here's an example:
bool val1, val2, val3;
auto arg1 = required("--arg1").set(val1) % "doc for arg1";
auto arg2 = required("--arg2").set(val2) % "doc for arg2";
auto arg3 = required("--arg3").set(val3) % "doc for arg3";

auto cli = (command("cmd1"), arg1, arg2) | (command("cmd2"), arg2, arg3) | (command("cmd3"), arg1, arg3);

SYNOPSIS
        prog cmd1 --arg1 --arg2
        prog cmd2 --arg2 --arg3
        prog cmd3 --arg1 --arg3

OPTIONS
        --arg1      doc for arg1
        --arg2      doc for arg2
        --arg2      doc for arg2
        --arg3      doc for arg3
        --arg1      doc for arg1
        --arg3      doc for arg3

Do I understand it correctly that you want to avoid that the documentation is listed multiple times?
Since all parameters are copied, arg1 behind cmd1 really is a different object from arg1 behind cmd3.
Currently I don't check for redundancy while generating the option documentation but it is already on my todo list.
The only quick solution I can think of is to add the documentation only once.
So either:
bool val1, val2, val3;
auto arg1 = required("--arg1").set(val1) % "doc for arg1";
auto arg2 = required("--arg2").set(val2) % "doc for arg2";
auto arg3 = required("--arg3").set(val3) % "doc for arg3";

auto cli = (command("cmd1"), arg1, arg2) | (command("cmd2"), arg2 % "", arg3) | (command("cmd3"), arg1 % "", arg3 % "");

or
bool val1, val2, val3;
auto arg1 = required("--arg1").set(val1);
auto arg2 = required("--arg2").set(val2);
auto arg3 = required("--arg3").set(val3);
auto cli =
    (command("cmd1"), arg1  % "doc for arg1", arg2 % "doc for arg2") |
    (command("cmd2"), arg2, arg3) |
    (command("cmd3"), arg1, arg3 % "doc for arg3");

Yes you understand correctly. Thanks for looking into this.
One alternative could be allowing a param_filter to be constructed from a lambda which takes the arg_string as an argument, and I could store my own set<string> that's captured by the lambda and returns false if I've already seen that arg string and stored it in my set.

Or perhaps make operator() virtual and derive uniq_param_filter from param_filter, adding unordered_set<string> to check on flags().


chore(deps): update terraform github.com/terraform-ibm-modules/terraform-ibm-resource-group to v1.0.2

This PR contains the following updates:

Package
Type
Update
Change

github.com/terraform-ibm-modules/terraform-ibm-resource-group
module
patch
v1.0.1 -> v1.0.2

Release Notes

terraform-ibm-modules/terraform-ibm-resource-group
v1.0.2
Compare Source
Bug Fixes

only return RG name output after group has been created (#32) (a135b27)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Renovate Bot.

:tada: This PR is included in version 2.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Can you provide us with yolov7 and yolov7-w models?

First of all, thank you so much for this code and project, it is very helpful.
In the repo, you provide us with yolov7-tiny.bin and yolov7-tiny.param.
Are you able to also provide us with the converted normal model yolov7.pt and more accurate model yolov7-w6.pt which can be obtained from this official repo.
I would convert myself, but I'm not sure how I convert in such a way that allows dynamic input shape like your model does.

I'm afraid I can't help you in the short term due to the busyness with other projects.
You may find this useful: https://github.com/Baiyuetribe/ncnn-models/tree/main/object_dection/yolov7

Nice thank you @Qengineering
Is that the tool you used to convert the yolov7-tiny.param model?

Didn't have to convert the model. nihui has it in its model zoo.

Ok makes sense. Thank you for the info.


refactor: Gumbo.parse and .fragment now use keyword arguments

What problem is this PR intended to solve?
Refactor Gumbo.parse and Gumbo.fragment to use keyword arguments for parse options (instead of positional arguments).
These methods are internal and not part of the public API, so this isn't considered a breaking change. We're changing them to be more extensible going forward.
See comments at #3178 for context
Have you included adequate test coverage?
It's a refactor, existing test coverage should be sufficient.
Does this change affect the behavior of either the C or the Java implementations?
No behavior changes, but the HTML5 parser is only available in CRuby.

Hi @flavorjones,
This looks pretty much exactly like what I had in mind. A few questions:

The names rb_gumbo_s_parse and rb_gumbo_s_fragment seem like they're from the Ruby extension API due to the leading rb_. How do you feel about just dropping the rb_?

Should rb_scan_args_kw() be used instead of rb_scan_args()? I'm not entirely sure I understand from the documentation when the former should be used but it seems like it could be more specific about what it is looking for in terms of keyword arguments.

How do you feel about something like this to ensure that the required keyword arguments are being passed.
diff --git a/ext/nokogiri/gumbo.c b/ext/nokogiri/gumbo.c
index dd333f7b..a9bfe6cf 100644
--- a/ext/nokogiri/gumbo.c
+++ b/ext/nokogiri/gumbo.c
@@ -316,6 +316,32 @@ parse_cleanup(VALUE parse_args)
   return Qnil;
 }

+// Scan the keyword arguments for options common to the document and fragment
+// parse.
+static GumboOptions
+common_options(VALUE kwargs) {
+  // The order of the keywords determines the order of the values below.
+  // If this order is changed, then setting the options below must change as
+  // well.
+  ID keywords[] = {
+    rb_intern_const("max_attributes"),
+    rb_intern_const("max_errors"),
+    rb_intern_const("max_tree_depth"),
+  };
+  VALUE values[sizeof keywords / sizeof keywords[0]];
+
+  // Extract the values coresponding to the required keywords. Raise an error
+  // if required arguments are missing.
+  rb_get_kwargs(kwargs, keywords, 3, -1, values);
+
+  GumboOptions options = kGumboDefaultOptions;
+  options.max_attributes = NUM2INT(values[0]);
+  options.max_errors = NUM2INT(values[1]);
+  options.max_tree_depth = NUM2INT(values[2]);
+
+  return options;
+}
+
 static VALUE parse_continue(VALUE parse_args);

 /*
@@ -331,10 +357,7 @@ rb_gumbo_s_parse(int argc, VALUE *argv, VALUE _self)
     kwargs = rb_hash_new();
   }

-  GumboOptions options = kGumboDefaultOptions;
-  options.max_attributes = NUM2INT(rb_hash_aref(kwargs, ID2SYM(rb_intern_const("max_attributes"))));
-  options.max_errors = NUM2INT(rb_hash_aref(kwargs, ID2SYM(rb_intern_const("max_errors"))));
-  options.max_tree_depth = NUM2INT(rb_hash_aref(kwargs, ID2SYM(rb_intern_const("max_tree_depth"))));
+  GumboOptions options = common_options(kwargs);

   GumboOutput *output = perform_parse(&options, input);
   ParseArgs args = {
@@ -440,6 +463,8 @@ rb_gumbo_s_fragment(int argc, VALUE *argv, VALUE _self)
     kwargs = rb_hash_new();
   }

+  GumboOptions options = common_options(kwargs);
+
   if (NIL_P(ctx)) {
     ctx_tag = "body";
     ctx_ns = GUMBO_NAMESPACE_HTML;
@@ -543,14 +568,8 @@ error:
   }

   // Perform a fragment parse.
-  GumboOptions options = kGumboDefaultOptions;
-  options.max_attributes = NUM2INT(rb_hash_aref(kwargs, ID2SYM(rb_intern_const("max_attributes"))));
-  options.max_errors = NUM2INT(rb_hash_aref(kwargs, ID2SYM(rb_intern_const("max_errors"))));
-
-  // Add one to account for the HTML element.
-  int depth = NUM2INT(rb_hash_aref(kwargs, ID2SYM(rb_intern_const("max_tree_depth"))));
-  options.max_tree_depth = depth < 0 ? -1 : (depth + 1);
-
+  // Add one to the max tree depth to account for the HTML element.
+  options.max_tree_depth = options.max_tree_depth < 0 ? -1 : (options.max_tree_depth + 1);
   options.fragment_context = ctx_tag;
   options.fragment_namespace = ctx_ns;
   options.fragment_encoding = encoding;

I initially made it an error to pass additional keyword arguments (by changing the -1 argument to 0), but then several tests fail because of unexpected keyword arguments encoding and max_parse_errors. It looks like the former is making it into the keyword args due to a bug in our tests where we're passing the encoding as an (ignored) keyword argument rather than as a positional argument (#3201). The latter is apparently a deprecated name for max_errors.
I do like the idea of getting an error if the wrong keyword arguments are passed (although maybe that would be a breaking change?). We could remove max_parse_errors from the options prior to calling the C function.

Here's a branch which incorporates #3201 as well as removes the max_parse_errors from the options and then causes errors for unexpected keyword arguments. https://github.com/sparklemotion/nokogiri/compare/flavorjones-use-kwargs-html5-methods...stevecheckoway:nokogiri:common-options

The names rb_gumbo_s_parse and rb_gumbo_s_fragment seem like they're from the Ruby extension API due to the leading rb_. How do you feel about just dropping the rb_?

I've been trying to gradually improve the naming on our C functions, in particular the ones that are ruby methods, so that stack traces are a bit more meaningful. I don't feel strongly about this convention, but I'm already using it in a lot of places (try grep "^rb_" ext/nokogiri). An alternative I've also used in places is noko_ which is probably better. I'll change it to that.

Should rb_scan_args_kw() be used instead of rb_scan_args()?

Maybe? I'll take another look. The intention of that function was to ease the migration to first-class keyword arguments in Ruby 2.7/3.0, so it's probably worth a second look here.

How do you feel about something like this to ensure that the required keyword arguments are being passed?

Yeah, I like that a lot. I'll pull your branch into this PR.


How to Upload Multiple file

I want to upload and Image File and PDF File. How to upload multi file?
Help me please.
`

Upload on form submit
      Username:
  Profile Picture: <input type="file" ngf-select="" ng-model="picFile" name="file" ngf-accept="'image/*'">

  Resume(.pdf): <input type="file" ngf-select="" ng-model="resumeFile" name="fileResume">

  <button ng-disabled="!myForm.$valid" ng-click="uploadPic(picFile)">Submit</button>

    $scope.uploadPic = function (file) {
        file.upload = Upload.upload({
            url: 'save_form.php',
            data: {
                file: file,
                username: $scope.username
            },
        });

        file.upload.then(function (response) {
            $timeout(function () {
                file.result = response.data;
            });
        }, function (response) {
            if (response.status > 0) $scope.errorMsg = response.status + ': ' + response.data;
        }, function (evt) {
            // Math.min is to fix IE which reports 200% sometimes
            file.progress = Math.min(100, parseInt(100.0 * evt.loaded / evt.total));
        });
    };

`

Upload.upload({
            url: 'save_form.php',
            data: {
                file1: imageFile,
                file2: pdfFile,
                username: $scope.username
            },
        });

Thank you.
It's work.