Validate author field length on template generator

I think a lot of the blank screen/500 ERROR messages that people in the forums have encountered with the template generator might be related to missing field length validations on the author fields -- When users enter a name that's too long, the database insert fails, which gives an ugly 500 error.
This PR doesn't solve the underlying problem, which is that the database fields are quite short, but it does at least highlight the issue for users so that they have a better idea of what's wrong. Ideally, it'd be good to bump the limits in the database at the same time so that people don't hit them so often. (Especially the author link length limit, 55 chars is nothing in terms of URL length.)
Unfortunately, this seems to reset most of the form state, so they have to enter it again, but that's no worse than what happens with the error message anyway as far as I understand it.
(For your reviewing convenience, here's a SHOW COLUMNS for the two author tables.)
MariaDB [librivox_catalog]> SHOW COLUMNS FROM form_generators_authors;
+-----------------+-------------+------+-----+---------+----------------+
| Field           | Type        | Null | Key | Default | Extra          |
+-----------------+-------------+------+-----+---------+----------------+
| auth_id         | int(11)     | NO   | PRI | NULL    | auto_increment |
| auth_first_name | varchar(55) | YES  |     | NULL    |                |
| auth_last_name  | varchar(55) | YES  |     | NULL    |                |
| auth_yob        | varchar(10) | YES  |     | NULL    |                |
| auth_yod        | varchar(10) | YES  |     | NULL    |                |
| link_to_auth    | varchar(55) | YES  |     | NULL    |                |
+-----------------+-------------+------+-----+---------+----------------+

MariaDB [librivox_catalog]> SHOW COLUMNS FROM authors;
+-------------------+-------------+------+-----+---------+----------------+
| Field             | Type        | Null | Key | Default | Extra          |
+-------------------+-------------+------+-----+---------+----------------+
| id                | int(11)     | NO   | PRI | NULL    | auto_increment |
| first_name        | varchar(55) | YES  |     | NULL    |                |
| last_name         | varchar(55) | NO   |     | NULL    |                |
| psuedo_first_name | varchar(55) | YES  |     | NULL    |                |
| psuedo_last_name  | varchar(55) | YES  |     | NULL    |                |
| author_url        | text        | YES  |     | NULL    |                |
| other_url         | text        | YES  |     | NULL    |                |
| image_url         | text        | YES  |     | NULL    |                |
| dob               | varchar(10) | YES  |     | NULL    |                |
| dod               | varchar(10) | YES  |     | NULL    |                |
| name_hash         | varchar(32) | YES  |     | NULL    |                |
| confirmed         | int(1)      | NO   |     | 0       |                |
| linked_to         | int(11)     | NO   |     | 0       |                |
| blurb             | text        | YES  |     | NULL    |                |
| meta_complete     | int(4)      | NO   |     | 0       |                |
| meta_in_progress  | int(4)      | NO   |     | 0       |                |
+-------------------+-------------+------+-----+---------+----------------+

Changing the DB schema to increase the length of those fields is totally something we can do. So if we want to make it 128 chars or something, we can effect the schema change, and still merge something like this PR to align the validations with the underlying database.

Cool, sounds good. Let me know what you adjust it to and I'll update the PR 👍

New lenghts:
MariaDB [librivox_catalog]> SHOW COLUMNS FROM form_generators_authors;
+-----------------+--------------+------+-----+---------+----------------+
| Field           | Type         | Null | Key | Default | Extra          |
+-----------------+--------------+------+-----+---------+----------------+
| auth_id         | int(11)      | NO   | PRI | NULL    | auto_increment |
| auth_first_name | varchar(255) | YES  |     | NULL    |                |
| auth_last_name  | varchar(255) | YES  |     | NULL    |                |
| auth_yob        | varchar(255) | YES  |     | NULL    |                |
| auth_yod        | varchar(255) | YES  |     | NULL    |                |
| link_to_auth    | varchar(255) | YES  |     | NULL    |                |
+-----------------+--------------+------+-----+---------+----------------+

MariaDB [librivox_catalog]> SHOW COLUMNS FROM authors;
+-------------------+--------------+------+-----+---------+----------------+
| Field             | Type         | Null | Key | Default | Extra          |
+-------------------+--------------+------+-----+---------+----------------+
| id                | int(11)      | NO   | PRI | NULL    | auto_increment |
| first_name        | varchar(255) | YES  |     | NULL    |                |
| last_name         | varchar(255) | YES  |     | NULL    |                |
| psuedo_first_name | varchar(255) | YES  |     | NULL    |                |
| psuedo_last_name  | varchar(255) | YES  |     | NULL    |                |
| author_url        | text         | YES  |     | NULL    |                |
| other_url         | text         | YES  |     | NULL    |                |
| image_url         | text         | YES  |     | NULL    |                |
| dob               | varchar(255) | YES  |     | NULL    |                |
| dod               | varchar(255) | YES  |     | NULL    |                |
| name_hash         | varchar(32)  | YES  |     | NULL    |                |
| confirmed         | int(1)       | NO   |     | 0       |                |
| linked_to         | int(11)      | NO   |     | 0       |                |
| blurb             | text         | YES  |     | NULL    |                |
| meta_complete     | int(4)       | NO   |     | 0       |                |
| meta_in_progress  | int(4)       | NO   |     | 0       |                |
+-------------------+--------------+------+-----+---------+----------------+


vitepress demo示例使用element-plus 报错

Version
3.0.11
Reproduction link
https://github.com/zhaowenlin/demo
Steps to reproduce

yarn install
2.npm run dev
3.访问http://localhost:3000/
4.点击快速上手

What is expected?
正常展示element组件
What is actually happening?
[Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/vue-next

https://vitepress.vuejs.org/guide/using-vue.html#using-components
官方使用组件文档

Please submit the issue in the correct repo (vitepress). Writing in English will allow more people to help you. Also, you can ask questions on the forum, the Discord server or StackOverflow first.


sgurary: added labs/sawtooth-secure-transaction-families.md for pull …

…request
Hi, Creating the new pull request as discussed with
Tracy Kuhrt
@tkuhrt
Thanks, Shefy
Signed-off-by: Shefy Gur-Ary<EMAIL_ADDRESS>

LGTM

@trbs @tkuhrt
Thanks, so what's the next step?

@hyperledger-labs/lab-stewards : This is a continuation of #13 that had some DCO issues. It looks like those are now resolved. Any other comments on this lab proposal?

LGTM +1

With 2 +1's, we will create a lab and then merge this PR.

Created https://github.com/hyperledger-labs/sawtooth-secure-transaction-families

@tkuhrt
Hi,
We got a request to change the name from legal. We are still waiting for final approval on the name.
Please note that Dan Middleton (Intel sponsor) took the action to discuss and clear the name with Hyperledger labs (which is approved by Intel legal).
In addition, we noticed that the details in the readme file (https://github.com/hyperledger-labs/sawtooth-secure-transaction-families) are not the details from our request.
We would also provide a new readme file with all the updated details. (Ronen Shem-Tov is currently working on it.)
Thanks, Shefy


Switch to async fs methods

Since Node.js is single-threaded, switching to async fs methods should make everything as fast as possible. The only exception AFAICT is fs.existsSync. While at it, it would definitely be worth switching to glob (async).

Closing as 'won't fix' as clean-css-cli is going into maintenance mode. If anyone wants to bring it back up, please submit a PR.


Feat: add new preventTextSelectionOverflow prop

closes https://github.com/melt-ui/melt-ui/issues/1168
Currently, when initiating text selection from within a floating element and dragging the pointer outside, the text outside the floating element gets selected.
This PR introduces a new prop preventTextSelectionOverflow that controls whether text-selection overflow is allowed. By default preventTextSelectionOverflow will be true.
The affected builders are:

listbox (combobox, select)
menu (context menu, dropdown menu, menubar)
popover

Link preview already implemented preventing text-selection overflow, so now the link preview builder gets this behavior from usePopper like the other builders mentioned above.
Tooltip, however, is not added in this PR because the tooltip closes when the pointer leaves the grace zone. The link preview has logic to prevent closing when text selection occurred. In a later PR, I will merge a lot of the behaviors of the tooltip and link preview, at which point tooltip will inherit the prevention of text-selection overflow and not close itself after the pointer leaves after text selection.
Also, the dialog is not added in this PR because the overlay already takes care of not allowing user selection because the overlay spans the entire viewport.
I haven't added tests yet because I am not sure how you would test this behavior without bending backwards
Here are videos showing all the affected builders before and after.
Context menu
https://github.com/melt-ui/melt-ui/assets/53095479/60c62f3d-550f-4c96-9015-5d34a0bfa775
Dropdown menu
https://github.com/melt-ui/melt-ui/assets/53095479/fb1c0930-6069-4a1e-9f09-6dba1060ad1b
Link preview - same behavior as before
https://github.com/melt-ui/melt-ui/assets/53095479/48f201d1-c345-46ed-a1e3-dabbc9e3a4d6
Combobox
https://github.com/melt-ui/melt-ui/assets/53095479/950f9d22-df83-4f4e-9312-072d6a6a3a7e
Select
https://github.com/melt-ui/melt-ui/assets/53095479/12984228-2ba3-4cf1-b266-9ac7cb972ff2
Menubar
https://github.com/melt-ui/melt-ui/assets/53095479/2b913d67-b5ea-4c7e-beb5-11017dc0a27a
Popover
https://github.com/melt-ui/melt-ui/assets/53095479/7120e666-aa09-4c16-9c5d-5e53e32ec392

Part of me wonders when this would be desired if you're using the floating element in a "modal" fashion (close on outside click, etc.). I suppose since we don't have a source of truth of whether the box is acting as a modal or not having another prop makes sense.
I do feel like the default for this should align with the default of the other "close on escape" / "close on outside click" where if we default the builder to act as a modal, this should default to true

Part of me wonders when this would be desired if you're using the floating element in a "modal" fashion (close on outside click, etc.). I suppose since we don't have a source of truth of whether the box is acting as a modal or not having another prop makes sense.
I do feel like the default for this should align with the default of the other "close on escape" / "close on outside click" where if we default the builder to act as a modal, this should default to true

For anyone reading, Hunter thought that I was proposing setting preventTextSelectionOverflow  as false by default, which is not the case. So disregard his comment :)


Feat: Add Terraform Azure Storage Account

Description of your changes
Added support for Terraform Azure Storage Account
I have:

[ ] Read and followed KubeVela's contribution process.
[ ] Related Docs updated properly. In a new feature or configuration option, an update to the documentation is necessary.
[ ] Run make reviewable to ensure this PR is ready for review.
[ ] Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Special notes for your reviewer

Great job!

Thanks, that's exactly what I was missing in KubeVela. Great job with this project, guys! :)
In GH workflows there are just issues with

toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit
I hope this will be solved soon, so PR could be merged.
This code is already tested with my own Azure Subscription and works fine.

@maciejgwizdala I will merge this great PR after one code owner approved it.
BTW, would you like to add docs for this cloud resource?
You can create a similar PR like Azure Mariadb Server https://github.com/oam-dev/kubevela.io/pull/334/files.
The docs will show in https://kubevela.io/docs/next/end-user/components/cloud-services/terraform/azure-database-mariadb.
You can use go run hack/references/generate.go to generate the Markdown file.

@maciejgwizdala I will merge this great PR after one code owner approved it.
BTW, would you like to add docs for this cloud resource?
You can create a similar PR like Azure Mariadb Server https://github.com/oam-dev/kubevela.io/pull/334/files. The docs will show in https://kubevela.io/docs/next/end-user/components/cloud-services/terraform/azure-database-mariadb.
You can use go run hack/references/generate.go to generate the Markdown file.

PR for docs created: https://github.com/oam-dev/kubevela.io/pull/363
Sorry, I don't know Chinese, so I left English as placeholder.

I'm merging this, feel free to send a new PR later .


Fix search results ranking and grouping

Overview
Shout out @markerikson for flagging the search issue and @shortcuts for the help fixing it!
Makes a few improvements to searching, some of which are applied to the search index already outside of this PR:

Fixes ranking so that React APIs and Learn are ranked at the top again. I think this regressed at some point. The fix was to move the pageRank attribute above exact in the sorting and ranking settings.
Split up the "React APIs" into different groups:

React APIs
React DOM APIs
React Server Components
Rules of React
Legacy React APIs (downranked)

The changes included here are:

Display the groups again (previously it was just a flat list with no grouping headings like React APIs)
Display more results (previously there were a very small number of results)

To do that I updated DocSearch depts, and added/updated the searchParameters.
Before

After

Looks great!


[Solution Design] Rancher-driven etcd snapshot for RKE2

Currently, RKE2 clusters' etcd snapshots are driven by RKE2 native support and are then backpopulated to Rancher. This presents issues with backing up and restoring cluster configuration.
This task is to come up with a new design that moves snapshot management closer to Rancher to allow backing up cluster configuration. There may be other benefits of this solution, such as better snapshot/restore failures handling.
The outcome of this task is the solution design. Following completion of the design, implementation issues will be created.

Design completed by @Oats87. Closing in favor of https://github.com/rancher/rancher/issues/35344 for the actual implementation.


Linkerd tap wss:// not working with traefik v2.1.4

Do you want to request a feature or report a bug?
Bug
What did you do?
Tried to use linkerd dashboard with traefik v2
As linkerd uses wss:// for linkerd tap i'm not able to get websocket working with traefik v2. I understand that v2 is pretty new, so i'm unable to find much documentation on setting up websockets. Hope to get some help here.
What did you expect to see?
linkerd tap to work without errors in browser console.
What did you see instead?
WebSocket connection to 'wss://example.com/api/tap' failed: Error during WebSocket handshake: Unexpected response code: 400
Output of traefik version:  (What version of Traefik are you using?)

2.1.4

What is your environment & configuration (arguments, toml, provider, platform, ...)?
Running on EKS 1.14
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: linkerd
  namespace: linkerd
  annotations:
    ingress.kubernetes.io/custom-request-headers: l5d-dst-override:linkerd-web.linkerd.svc.cluster.local:8084
spec:
  entryPoints:
    - websecure
  routes:
    - match: Host(`linkerd.example.com`)
      middlewares:
        - name: x-forwarded-proto-allow
          namespace: traefik
      kind: Rule
      services:
        - name: linkerd-web
          port: 8084
      tls: {}
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
  name: x-forwarded-proto-allow
spec:
  headers:
    customRequestHeaders:
      X-Forwarded-Proto: "https"
---
apiVersion: v1
kind: Service
metadata:
  labels:
    linkerd.io/control-plane-component: web
    linkerd.io/control-plane-ns: linkerd
  name: linkerd-web
  namespace: linkerd
spec:
  ports:
  - name: http
    port: 8084
    protocol: TCP
    targetPort: 8084
  - name: admin-http
    port: 9994
    protocol: TCP
    targetPort: 9994
  selector:
    linkerd.io/control-plane-component: web

aws-clb.yaml
apiVersion: v1
kind: Service
metadata:
  annotations:
    service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http
    service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: "true"
    service.beta.kubernetes.io/aws-load-balancer-internal: "true"
    service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: '*'
    service.beta.kubernetes.io/aws-load-balancer-ssl-negotiation-policy: "ELBSecurityPolicy-TLS-1-2-2017-01"
    service.beta.kubernetes.io/aws-load-balancer-ssl-cert: {REDACTED}
    service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443"
  labels:
    app: traefik
  name: traefik-internal
  namespace: traefik
spec:
  externalTrafficPolicy: Cluster
  type: LoadBalancer
  ports:
  - port: 443
    targetPort: 4443
    protocol: TCP
    name: https
  - port: 80
    targetPort: 8000
    protocol: TCP
    name: http
  selector:
    app: traefik
---

If applicable, please paste the log output in DEBUG level (--log.level=DEBUG switch)
(paste your output here)

Hi! I'm Træfiker :robot: the bot in charge of communication regulation.
Thanks for your interest in Traefik!
We dedicate the issue tracker to bug reports and feature requests only. My advanced AI has spotted that your issue might be a configuration problem or relates to something that doesn't look like a bug.
To confirm this, please join our Community Forum and reach out to us on the Traefik section.
In case I'm wrong (well, that would be embarrassing :sweat_smile:), my developers will re-open the issue and fix me!
In the meantime, you can double check Traefik's documentation.


🚀 Feature: Add an "explainer" page for what open source is for software developers

Bug Report Checklist

[X] I have tried restarting my IDE and the issue persists.
[X] I have pulled the latest main branch of the repository.
[X] I have searched for related issues and found none that matched my issue.

Overview
Many software developers learned to code without really learning what "open source" is. They might know that it exists, or even what it technically means for a project to be hosted on GitHub - but not much more.
We'll want a page that explains for these developers in the context of the Open Contributions Project:

What open source technically means
Why projects choose to be open source
How projects tend to be maintained

Additional Info
Per #20, we'll eventually have a full design for the site & menus. But for now this page can live on its own.
This site is built on Next.js. You can create a new page by adding a .md file under src/pages. See https://nextjs.org/docs/basic-features/pages.

.take


UI: List Items responsiveness

List items ahould, when the screen is small enough, change the number of items they show (until they show only the '...' buttons.
The WebComponent list-item-layout already has information about the current screen size. Use that to add logic to list elements so they change the displayCount variable they pass to the pdm-item-organizer WebComponent accordingly and ensure that even on a small screen, list items dont overlap.
Changes to the list-item-layout might be required, but should be discussed beforehand.
Also, while at it, correct some minor UI bugs that you find. Ex: In the mah wallet, the managed-shipment-line-list-item cuts the label that identifies the sender/receiver (and the labels positions are swapped)

the bugs reported by @VNogueira91 was out of scope of this issue, however was fixed by three commits above, because were minor fixes.
On 2nd commit "add disabled property to product input when...", on the future, probably will needed add some validation on select product (from both sides, MAH and WHS), or a dropdown that search a pre-defined list of products, according comment on commit: "using the event listener "onChange", can spawn more issues, because to approve an order on the MAH, more validations would be needed."


Rename "regular" replay type or category

Currently, both replay type and category have an option called "Regular", which is insanely confusing. We should rename one of them.
Actually, I don't like "regular" for either name, now that I think about it, so I'd be down to rename both.
The "Regular" replay type is in contrast to stage practice, spell practice, and so on. For this one, we should pick a name that makes it obvious what it is. Maybe "Full Run" or "Full Game"?
The category is in contrast to "Tool-Assisted". For this one, maybe "Standard"? As in, "played according to standards".

Was thinking standard or normal, but default might be a good one
Or we can rename it to Special Category and then the default would be None which would make more sense to most people I think


A2 - Account sign in  (2 pts)

As an administrator, I want to be able to sign into my account in order to edit the details of the map

73ca4a7


Support quoted arguments

The current argument parser uses a simple algorithm of splitting on the space character. However, there are many instances where supporting an argument that contained the space character would be ideal. To support these cases quoted strings within a command should be treated as a single argument.

Hi @tantalic I've implemented it but it dropped the test coverage, so I'll fix it up later today then I'll merge the fix.


Show selected month in text

Hi is it possible to show the selected month in text format rather than showing 08/18 in the input field?

@nimesha95 at this moment it is not possible and it will require a certain amount of work to implement it because it will be challenging to parse text input and convert it to date + keep in mind multiple locales. I don't think I will have time to work on this feature in near future


remote connection

Describe the bug
per https://docs.marimo.io/faq.html#faq-remote , I am trying to remotely connect to a server (<IP_ADDRESS>)
the command is "marimo --headless --host <IP_ADDRESS> --port 7999"
however, I can't access to the remote marimo server by entering following command within my local browser:

http://<IP_ADDRESS>:7999

Environment
remote server: ubuntu 22.04 LTS
local machine: win11 + edge browser
Code to reproduce
No response

update
when using port different from common used like 8080,  one shall remember to allow the ufw. Say,
$ sudo ufw allow 7999/tcp
$ sudo ufw reload

the command needs to be marimo edit --headless ...


committee, key dates

committe
key dates
updated

this is the web template, please do not edit this, and work on the recomb2025 repository instead.

ok i'll try that


Meditation Webpage

Feature Request:
A Meditation webpage which will ask the user what type of problem they have and based on that it will give them the yoga forms and asanas as feedback that they can practice to get over that particular problem.
It will be made on HTML CSS JS .
I would like to work on this new feature.
Kindly assign it to me.
GSSoC'22 Contributor.

@Kunal0220?? Do this issue asap otherwise we will close this issue

Bhaiya I have started working on this , Actually my exams are going on thats why its taking long , I will try to finish it and make a PR asap, thank you for your time and patience 🙌🏻

Can I also contribute on this issue with @Kunal0220 . Please assign this issue #374 to me as well.

I will make a PR today bro , Thanks for your help.
Happy Contributing 🙌🏻.

No issues. will look for the other
Happy Contributing


Issue 811: PypiArtifactController implementation

Fixes #811 .

It is still IN PROGRESS

@Firstmol : Any updates on this? :)


Android mobile web site reacts on „back“ swipe events

I am using the Zulip web app on Android on Facebook, and a major annoyance is the following:
I often start on a view like “recent conversations”, navigate to a thread and read that. When I then want to go back, I use the “back swipe guesture” (my phone has no button) from the right edge. Often the swipe gesture ends naturally on one of the conversations, is somehow picked up by zulip, which then opens the message composition dialogue, which opens the keyboard, and the suddenly everything jumps around and I can’t see the list of conversations well.
If I move back using the browser’s menu, or carefuly swipe in the bottom, so that the guesture doesn’t cross “sensitive elements”, everything is fine.
https://github.com/zulip/zulip/assets/148037/f4b6889f-a848-4db3-9892-5227fe78ba80
A bit of googling suggests that when performing a guesture like this, the app receives touchbegin, and touchmove events, but crucially no touchend end, but a touchcancel event. Maybe Zulip is overly eager to react on the former, when it should only react if there is actually a touchend event?
Zulip Server and web app version:

[x] Zulip Cloud (*.zulipchat.com)

Can I please pickup this issue?

@zulipbot claim

@zulipbot  claim

Hey @nomeata,
What device are you using?
Because I also use swipe gestures but this doesn't happen on my device?

Google Pixel 7a with Firefox

I tried to reproduce it on my device using Firefox but it's working fine. Maybe it's specific to your device.
I will still try to find the code similar to what you described.

A bit of googling suggests that when performing a guesture like this, the app receives touchbegin, and touchmove events, but crucially no touchend end, but a touchcancel event. Maybe Zulip is overly eager to react on the former, when it should only react if there is actually a touchend event?


span.form-error will not get is-visble class with input type="submit"

Here is the codepen example with two forms.
Form with button works great, but form with input.type=submit works partialy.
Form is validated, but form-error span is not shown because is-visible class was not applyed to that span.
http://codepen.io/anon/pen/BLLdGV

Upon further testing, it turned out that you need to wrap the <input class="button" type="submit" value="Submit"> with the <fieldset> group element tag. Hmmmmm.

@denisahac thanks for the solution. I just encountered the same problem and can confirm that wrapping in <fieldset> solves it for <input> button. Furthermore, it looks like all form fields must be in field sets to enable the form-error to be revealed, but the <input> doesn’t actually need to be contained within the same <fieldset> as the field being validated.

Furthermore, it looks like all form fields must be in fieldsets to enable the form-error to be revealed

@ncoden according to the docs this isn't true for all form fields, like text inputs, right?

@Lazerproof @denisahac @kobrix See the documentation:

Abide automatically detects Form Errors of an input by their class (.form-error by default, see the formErrorSelector option) when they are siblings of the input or inside the same parent.
When the Form Errors cannot be placed next to its field, like in an Input Group, the relation can be declared with [data-form-error-for] attribute.
-- https://foundation.zurb.com/sites/docs/abide.html#form-errors

This is true for all validated input. Abide will look for form-errors next to them and explicitly defined errors [data-form-error-for].

hmmm, actually that's a bug, I did not read the issue correctly at first.

Here are the result of my research. Abide does display the input error correctly, but then consider input[type=submit] as a field - without errors - and hide all related errors (even if already "used" by others fields). So a fix could be to:

Ignore submit[type=text] in validation
Only consider direct childs as related errors and prevent an error to be related to several fields.


Update structlog instrumentation.

This is a followup PR to #685. This PR adds necessary modifications to make the structlog instrumentation release ready without support for context data/ the attributes argument added to the record_log_event API (to be merged later in #682).

Codecov Report

Merging #865 (cb5d99e) into main (ee92363) will decrease coverage by 0.04%.
The diff coverage is 74.46%.

@@            Coverage Diff             @@
##             main     #865      +/-   ##
==========================================
- Coverage   81.13%   81.10%   -0.04%
==========================================
  Files         183      184       +1
  Lines       18251    18298      +47
  Branches     3160     3168       +8
==========================================
+ Hits        14808    14840      +32
- Misses       2585     2595      +10
- Partials      858      863       +5

Impacted Files
Coverage Δ

newrelic/hooks/logger_structlog.py
73.91% <73.91%> (ø)

newrelic/config.py
70.95% <100.00%> (+0.02%)
:arrow_up:

... and 1 file with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Update google.ts

It seems to stop working on general web results because it can't find the URL

Thank you for your PR.
Would you please update all of .r > a in the file?
This problem does not affect all users now (actually I has not seen it). For now, you can probably avoid the problem by removing cookies from google.com and reloading.

As you say the problem has just gone by clearing cookies.
Thank you!

Anyway I updated the file (though everything seems to be right)

@mehee8 I appreciate your help. It will be published as v3.8.2.


Add CollectIntoScope trait

Added the CollectIntoScope::collect_into_scope method, analogous to Iterator::collect. Allows postfix iterator chaining, which may make code more readable.
If it gets merged upstream (see https://github.com/zakarumych/scoped-arena/pull/2), can remove the implementation later

Neat, seems like it was accepted!
Yeah have wondered about making allocating terms nicer. I wonder, for example, if we could:

consider breaking the allocator out of the context, instead passing it as an argument to things that need it (this might help with lifetime juggling or might not, I dunno)
investigate a specific struct or trait for building nodes: Chalk has an Intern trait for allocating terms as well which seems interesting

Not sure though - but yeah I get a bit sick of self.scope.to_scope and not being able to nest calls to certain functions due to having a mutable reference to the context.

Neat, seems like it was accepted!

Should we update our dependency to the latest commit, or wait for another crates.io release?

I guess I think it‘s a bit of a bummer that things flow onto multiple lines… not sure if that is an improvement to readability or not. It’s a pretty common struggle with Iterator::collect too, alas.

I guess I think it‘s a bit of a bummer that things flow onto multiple lines… not sure if that is an improvement to readability or not. It’s a pretty common struggle with Iterator::collect too, alas.

Might be possible to alter the layout with some rustfmt configuration option?

Not 100% sure this is an improvement due to the line reflows… so just gonna close this for now. Thanks for the experiment though!


Instructions to upgrade Bash for shell autocompletion

I found some Macs are using an older Bash (3.2). And it seems Homebrew does not change the login shell of your Mac, you will quite likely still use the old version even after installing the new one from Homebrew. In this PR, I add instructions on installing/upgrading Bash and how to verify the desired version is used. To avoid confusion, I did not mention the possible issue mentioned above.

/lgtm
/approve


Improve merge_rasters

Add new optional features to xdem.spatial_tools.merge_rasters:

include_ref: set to False will not include reference in the merging
use_ref_bounds: set to True will use ref's bounds rather than max bounds

Fix bug:

merge_bounding_boxes was checking that bounds were a multiple of resolution, whereas only the extent should be a multiple. @erikmannerfelt you might want to check that

Update the tests accordingly.

@erikmannerfelt, I realized that in my current case I actually would like to merge the dh rates ((ref - dem)/ddate) rather than the DEMs themselves.
Right now, doing that would require doing the reprojection and loop outside of merge_rasters, making the latter a bit useless.
Would this feature be interesting in xdem? If so, could that be an option in merge_rasters, or should it rather be a separate function?
It would be easy to add an option to calculate the difference with the ref. However, calculating the time difference would require passing the dates. This could possibly be a ddem or tdem function.
In all cases, I wonder if there should not be a subfunction of merge_rasters that would only do the reprojecting and looping, and pass the 3D array for additional processing. What are your thoughts on that?

@erikmannerfelt, I realized that in my current case I actually would like to merge the dh rates ((ref - dem)/ddate) rather than the DEMs themselves.
Right now, doing that would require doing the reprojection and loop outside of merge_rasters, making the latter a bit useless.
Would this feature be interesting in xdem? If so, could that be an option in merge_rasters, or should it rather be a separate function?
It would be easy to add an option to calculate the difference with the ref. However, calculating the time difference would require passing the dates. This could possibly be a ddem or tdem function.
In all cases, I wonder if there should not be a subfunction of merge_rasters that would only do the reprojecting and looping, and pass the 3D array for additional processing. What are your thoughts on that?

I would love that function in the terrA project! I feel like that is a separate (and super useful) function, however.

In all cases, I wonder if there should not be a subfunction of merge_rasters that would only do the reprojecting and looping, and pass the 3D array for additional processing. What are your thoughts on that?

I would love that function in the terrA project! I feel like that is a separate (and super useful) function, however.

So I'm working on a stack_rasters function that will just do the looping and reprojecting and returns the stacked array and output bounds.
I can probably add a simple option to return the difference rather than DEM as well.
On the longer term, this could be modified, or duplicated, to save the output in a file that could be easily opened by xarray.


DNN-7603 Poor layout for HTML and Markdown layouts with autogenerated template

added content templates for editing for markdown and html.
Adjusted css to use more of available space

I have tweaked this PR to remove the change in css, as this has wider impact.

Manually merged with tweak to css

thanks


Can we use this library in terminal.. Does is support pure dart?

Yes, You can

How to get particular youtube video link from searching query

You can get video id then get youtube link
String query = "Query";
YoutubeDataApi youtubeDataApi = YoutubeDataApi();
List videoResult = await youtubeDataApi.fetchSearchVideo(query);
videoResult.forEach((element){
if(element is Video){
Video video = element;
String? id = video.videoId;
String link = "https://www.youtube.com/watch?v=$id";
}
});

Cool.. i like it that package is simple and straightforward...but still this section might not be the proper place to ask my doubt
Are you reachable via twitter of email


Creeper, platform etc. support?

Would it be possible to add support for stuff like the Zerk creeper that covers landarea with a different type of texture/mesh cover??
Dune also used a sort of platform system to mark the parts you can build on.
Energy zones like done for the Protos in Starcraft are also kind of related.
I think the simplest would be a change in  ground texture and the option to automatically place random trinkets specific to that ground texture. Maybe interesting could be also various types of non-random placement of these, for example outer perimeter only, or grid based etc.

Roads and constructing zones are mainly decals, a textured quad that follow the relief. It's a tricky thing to implement and it is not in the code road map for now.
The sc2's creep is a particular thing, since it produces a covering texture, plus some decals or else at the limits. Very tricky ☺
For things like mask, like for energy of the protoss' pylones, we just have to add a cover above the existing one.

After checking, its seems that Dune put ground assets to get constructible plateforms, which disable any ground relief. It will be possible to do the same with the future ground trinkets, because they certainely won't support any ground deformation anyway.

Sound cool. Dune actually had two systems (and so does the model set we could get into OpenRTS), one layer of elevated rock on top of the sand and than platforms to build on top.
I think something not too unlike the Zerk creeper could also be implemented as models/trinkets on top of the existing terrain?


Building Simulation Example(s) to Get Started...

Describe the bug A clear and concise description of what the bug is.
When I build the required packaged for simulation from this site, https://openthread.io/codelabs/openthread-simulation-posix/index.html?index=..%2F..index#1 , I then receive some warnings as errors.
To Reproduce Information to reproduce the behavior, including:

main
BBGG and cc1352R
Build steps
a. git clone https://github.com/openthread/openthread
b. cd openthread
c. git checkout origin/master
d. make -f examples/Makefile-simulation // This works!
e. make -f src/posix/Makefile-posix DAEMON=1 // This does not work and this is where I end w/ warnings as errors.
Network topology : Home Router w/ Extender but w/ the board, WiFi 2.4 Ghz, wpan, 6lowpan, Zigbee, and Sub 1-Ghz.

Expected behavior A clear and concise description of what you expected to happen. I figured the commands listed would work without the correct installation of the simulation example (for whatever reason).
I am incorrect and could not use each command as stated.
Console/log output If applicable, add console/log output to help explain your problem.

Making all in posix
Making all in platform
  CXX      libopenthread_posix_a-netif.o
/home/debian/src/openthread/src/posix/../../src/posix/platform/netif.cpp: In function ‘void AddRtAttr(nlmsghdr*, uint32_t, uint8_t, const void*, uint8_t)’:
/home/debian/src/openthread/src/posix/../../src/posix/platform/netif.cpp:527:21: error: cast from ‘char*’ to ‘rtattr*’ increases required alignment of target type [-Werror=cast-align]
  527 |     rta           = (struct rtattr *)((char *)(aHeader) + NLMSG_ALIGN((aHeader)->nlmsg_len));
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[5]: *** [Makefile:1051: libopenthread_posix_a-netif.o] Error 1
make[4]: *** [Makefile:821: all-recursive] Error 1
make[3]: *** [Makefile:434: all-recursive] Error 1
make[2]: *** [Makefile:589: all-recursive] Error 1
make[1]: *** [Makefile:515: all] Error 2
make: *** [src/posix/Makefile-posix:326: do-build-posix] Error 2

Additional context Add any other context about the problem here.

armhf board w/ 2.4Ghz and BLE.
add-on board w/ cc1352R multi-band and M4F chip.
It seems I may be running out of onboard memory for openthread but I cannot be sure as of now.
Testing will ensue. Please try to read through the example and give or take. Thank you.

Seth
P.S. If you need additional info. from me, please ask or let me know exactly what you need.

Looks it's similar to https://github.com/openthread/openthread/issues/5647. And there was a fix https://github.com/openthread/openthread/pull/7237, not merged yet, unfortunately.
You can also try adding the compile option  -Wcast-align.

Hello,
Thank you.
Seth


Create an api to get issue of a github repo

This api should get open issues from the connected github repo, github_repos table contain connected github repo to a group (project/team/office). entity_id in the table represents one of these (project, team, office), so the api will check if there is any repo connected to that entity and then fetch all open issues for that repo from github via graphql api. github_repo_id is the id of the repo returned from github graphQl api. check GithubTrait.php file for graphQL query example.

I'd like to work it

Sure, go ahead.

can I work on this ?

Sure, go ahead. But if you decide not to do this later on please mention on the issue so that other can pick it up.

Sure thing 😊

is it still on?


⚠ Bofrost.at has degraded performance

In 4b576a5, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1352 ms

Resolved: Bofrost.at performance has improved in 9ff6bc9.


PG17: powa.c:701:9: error: implicit declaration of function ‘tuplestore_donestoring’; did you mean ‘tuplestore_rescan’? [-Wimplicit-function-declaration]

powa-archivist needs patches for PG17, on master 4.2.2:
### PostgreSQL 17 loop ###
# 17: make
make[1]: Verzeichnis „/home/myon/projects/postgresql/powa-archivist/powa-archivist“ wird betreten
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-omit-frame-pointer -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/myon/projects/postgresql/powa-archivist/powa-archivist=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -fvisibility=hidden -I. -I./ -I/usr/include/postgresql/17/server -I/usr/include/postgresql/internal  -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2   -c -o powa.o powa.c
powa.c: In function ‘powa_stat_common’:
powa.c:701:9: error: implicit declaration of function ‘tuplestore_donestoring’; did you mean ‘tuplestore_rescan’? [-Wimplicit-function-declaration]
  701 |         tuplestore_donestoring(tupstore);
      |         ^~~~~~~~~~~~~~~~~~~~~~
      |         tuplestore_rescan
make[1]: *** [<eingebaut>: powa.o] Fehler 1

That was fixed some time ago as of 1a72a7a5eabc9e3a657f8104b96cf3e8caf2cb26.
Unfortunately this wasn't released and I since merged all the work for the upcoming v5, which involves a lot of changes and a hard compatibility break.  So it's not really possible to release a new v4.2.x at this point, at least not easily (new branch and everything).  v5 should be released hopefully soon (the main blocker is that the documentation needs a lot of modifications and this is taking a lot of time).

Ok I see. There's a few more changes that would have to be backported (pg_stat_checkpointer etc), but the commits don't apply. I'll just wait for v5. Thanks!

Hi, is v5 making progress? There's only a few packages left to complete the PG17 transition in Debian, powa-archivist being one.

Hi,
I just released powa-archivist and powa-web version 5.0.0, which adds the pg17 compatibility.  Sorry the for delay,

Thanks!


RSA_set0_key(rsa, n, e, NULL) no longer creates a usable private key, d must also be provided.

Given the n and e from a private key, our code was able to generate a new private key with RSA_set0_key(rsa, n, e, NULL) when we were using openssl 1.0.2.
Using openssl 3.0 (I've tested 3.0.5, 3.0.7 and the latest code from the openssl-3.0 branch) that function still returns 1, but the key it generates does not work for decryption.
A call to EVP_PKEY_decrypt() returns a failure and if I dump the errors I see:
4027ADF6917F0000:error:020000B3:rsa routines:rsa_ossl_private_decrypt:missing private key:crypto/rsa/rsa_ossl.c:451:

I'm not sure if this is related, or a separate issue, but PEM_write_RSAPrivateKey() also returns 0 and prints nothing for the key.
I can get a key that works for decryption if I also pass the d instead of the final NULL, like RSA_set0_key(rsa, n, e, d).
(PEM_write_RSAPrivateKey() also returns 0 and prints nothing for the key I create with that method, however)
I have added the code below as a test to test/rsa_test.c in order to reproduce. In its current state it will fail. If you change the RSA_set0_key() call to the one below it that passes the d, it will work.
(It assumes cert and key files in a data/ subdirectory)
#define PRINT_RSA(label, key) \
    do { \
        printf("PRINT_RSA(%s):\nPrivate Key:\n", label); \
        int rc = PEM_write_RSAPrivateKey(stdout, key, NULL, NULL, 0, NULL, NULL); \
        printf("rc=%d\n", rc); \
        printf("Public Key:\n"); \
        PEM_write_RSAPublicKey(stdout, key); \
        printf("\n"); \
    } while (0)

static int
pem_callback(char *buf, int num, int w, void *key)
{
    return -1;
}

static int test_rsa_set(int idx)
{
    int rc = 0;
    FILE *fp;
    X509 *cert;
    EVP_PKEY *public_key;
    EVP_PKEY *private_key;

    fp = fopen("./test/data/tulxbp_e_pem.cer", "r");
    if (fp) {
        cert = PEM_read_X509(fp, NULL, NULL, NULL);
        fclose(fp);

        if (cert) {
            public_key = X509_get_pubkey(cert);

            if (public_key) {
                fp = fopen("./test/data/tulxbp_e.pem", "r");
                if (fp) {
                    private_key = PEM_read_PrivateKey(fp, NULL, pem_callback, NULL);
                    fclose(fp);

                    if (private_key) {
                        unsigned char *from;
                        unsigned char *crypto;
                        from = (unsigned char*)strdup("This is encrypted test data!");
                        int flen = strlen((char*)from);

                        RSA *rsa_pub = (RSA *)EVP_PKEY_get0_RSA(public_key);

                        int keysize = RSA_size(rsa_pub);
                        crypto = malloc(keysize);

                        int clen = RSA_public_encrypt(flen, from, crypto, rsa_pub, RSA_PKCS1_PADDING);

                        BIGNUM *rsa_n = NULL, *rsa_e = NULL, *rsa_d = NULL;
                        RSA *rsa_key = (RSA *)EVP_PKEY_get0_RSA(private_key);
                        PRINT_RSA("RSA key from EVP_PKEY", rsa_key);

                        rsa_n = (BIGNUM *)RSA_get0_n(rsa_key);
                        rsa_e = (BIGNUM *)RSA_get0_e(rsa_key);
                        rsa_d = (BIGNUM *)RSA_get0_d(rsa_key);

                        RSA *rsa = RSA_new();
                        if (RSA_set0_key(rsa, rsa_n, rsa_e, NULL) > 0) {
                        //if (RSA_set0_key(rsa, rsa_n, rsa_e, rsa_d) > 0) {

                            PRINT_RSA("rsa key from attributes", rsa);

                            EVP_PKEY *pkey = EVP_PKEY_new();
                            EVP_PKEY_set1_RSA(pkey, rsa);

                            EVP_PKEY_CTX *ctx = EVP_PKEY_CTX_new(pkey,NULL);
                            if (ctx) {
                                if (EVP_PKEY_decrypt_init(ctx) > 0) {
                                    if (EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_PKCS1_PADDING) > 0) {
                                        unsigned char to[1024];
                                        size_t tlen;
                                        if (EVP_PKEY_decrypt(ctx, NULL, &tlen, crypto, clen) > 0) {
                                            int rc;
                                            if ((rc = EVP_PKEY_decrypt(ctx, to, &tlen, crypto, clen)) <= 0) {
                                                printf("Error decrypting output buffer, rc=%d\n", rc);
                                                ERR_print_errors_fp(stdout);
                                            } else {
                                                printf("Decrypt appeared to work, tlen=%zu\n", tlen);
                                                if(tlen != flen || memcmp(to, from, tlen)) {
                                                    printf("Decrypted data does not match original data\n");
                                                } else {
                                                    printf("Decrypted data matches original\n");
                                                    rc = 1;
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }

   return rc;
}

Is this related to PR 20133 "Document that the RSA e value is mandatory when importing"?

Sorry, but when you only have n and e, that is called a public key, and it can only be used for public encrypt.
To decrypt that again, you either need d, or p, or q, or p and q together, or be able to factorize n.

As Bernd wrote above. This couldn't ever work.

The person answering my questions to libp11, where this call is made, says he believes some calls like RSA_set_ex_data(rsa, rsa_ex_index, key) may have contributed to this working before but are no longer supported in openssl 3.x
I'm not sure that explains why it worked in our build of 1.1.1q but fails (as expected) when I test with vanilla 1.1.1q on my laptop.
Are there any configure or compile flags related to the ex methods that I might need to adjust?
I'm definitely headed toward change where we do not expect this to work, I'm just trying to better understand.

I think I'm understanding enough to close this.

Closing.


Option to set TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES

Use "ceph_tcmalloc_max_total_thread_cache" to set the
TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES value inside /etc/default/ceph for
Debian installs, or /etc/sysconfig/ceph for Red Hat/CentOS installs.
By default this is not set, so the default package value will be used,
if specified this value will be changed to match the variable, and ceph
services will be restarted.

Fixed those up.
1 note, I used a default of 0 (which will basically mean it gets skipped) - I'm trying to avoid a situation where existing clusters (on upgrades) run this and have their osds restarted for no reason, or worse they have tuned that value to a different setting and it gets force changed, and osds restarted - happy to change that but I'd rather not cause impact to running/existing clusters without the deployer/operator making a distinct choice (e.g. setting the var to non-default value).

one of these days ;)


Make sessions optional

This PR should make the client self-contained.
aiohttp fetches the running event loop ( https://github.com/aio-libs/aiohttp/blob/master/aiohttp/client.py#L206 ), so I don't see why passing in the loop or session is necessary
Possibly a breaking change for anyone using args instead of kwargs

Thank you for the PR!


404's on files within sub directory

Gitea version (or commit ref):1.7.1
Git version:2.20.0
Operating system: Windows Server 2016 Standard
Database (use [x]):

[ ] PostgreSQL
[ x ] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[ ] Yes (provide example URL)
[ x ] No
[ ] Not relevant

Log gist:

Description
when i try to accsess a file within this sub folder it just 404s i can get into the folder inside that folder but if i try to open the file it just 404's how can i fix this
urlto offendign subdirectory: https://git.thetofushop.net/Nubston/MyFirstApp/src/branch/master/My First App
Screenshots

Migrate your repo to https://gitea.com/lunny/MyFirstApp/src/branch/master/My First App/Program.cs and it seems it worked. Maybe your reverse proxy server misconfigured.

figured it otu for anyone who has this issue in the future
add this to your web.config on the sub domain you are using for reverse proxy if you are using IIS

i dont no how to make that code layout properly hopefuly you understand

@Nubston you life saver! I was going crazy thinking it had something to do with document browsing.
Cleaner format:
    <system.webServer>
        ...
        <security>
            <requestFiltering>
                <denyUrlSequences>
                    <clear />
                </denyUrlSequences>
                <fileExtensions allowUnlisted="true">
                    <clear />
                </fileExtensions>
            </requestFiltering>
        </security>
        ...
    </system.webServer>


Support Haml (I need some help!)

I'm using this config as a starter for syntax checking my Haml, which I've copied from syntastic.
let g:neomake_haml_haml_maker = {
    \ 'args': ['-c'],
    \ 'errorformat': 'Haml error on line %l: %m,' .
        \ 'Syntax error on line %l: %m,' .
        \ '%-G%.%#'
    \ }
let g:neomake_haml_enabled_makers = ['haml']

It mostly works, but I don't get any markers in the file gutter. I think it's because Haml doesn't output the file name, so my location window after running :Neomake looks like:
|5| Illegal nesting: nesting within plain text is illegal.

Am I on the right lines as to why I'm not getting markers? Any suggestions? I couldn't find a similar syntax checker in the currently supported checkers (e.g. one that doesn't mention the file name in the output).

Yeah, neomake doesn't currently handle the case where the filename isn't output by the maker. This should be treated as a bug.

@jalada
There are ways to support this by now.
Do you still want to work on this?
Then please re-open the issue, and I'd be glad to help.


Harvesting before planting

Just had a collaborator alert me that there are instances where the harvest date comes before the planting date in at least Madagascar, Malawi, Mauritania, and South Africa. I think this is where the harvest spans the calendar years and we need to amend the external crop calendar to fix this but let me know what you think.
I'll look into the problem a bit more and get some more details

We fixed it.


output_dir is hard coded

In start_config.py > initialization_configure(), at the end when it's trying to update args.output_dir, it hard coded 'output' as the first part of the address. I think it should be changed to args.output_dir itself:
args.output_dir = os.path.join(args.output_dir, args.FL_platform, args.dataset, args.name)

Thanks for this. Modified as suggestion


Update to reflect new constrained cores Sizes

Updated to reflect the Constrained Cores implemented in July

Learn Build status updates of commit a1d7d16:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

articles/virtual-machines/hbv2-series.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

@cynthn

Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#reassign:@iamwilliew - can you take a look at this pull request? Ping me if you need help :)

#reassign: @padmalathas - Self-assigning this PR. It will be reviewed and closed tomorrow.

#sign-off

#sign-off


Expose full guru interface API

The current plan_* API does not expose the full functionality that the C FFTW API has, namely the ability to specify a custom stride pattern and the number of transforms to perform.
In my use case I have dense arrays of a custom number type VarNum{T}, wrapping two Ts, and need to perform transforms on the x and y components separately. For instance, consider:
struct VarNum{T<:Number} <: Number
    x::T
    y::T
end

# arrays
u = Matrix{VarNum{Float64}}(10, 10)
U = Matrix{VarNum{Complex{Float64}}}(10, 6)

# create and apply plan
p = plan_rftt(u, [2, 1])
A_mul_B!(U, p, U)

I have somehow hacked into FFTW.jl code as much as needed to achieve what I want. This required doubling the strides of VarNum arrays, doubling the howmany parameter, and defining appropriate methods for VarNum arrays. I feel, though, that such functionality might be useful to many other people and it would be good to have it in the package.

In the Hadamard.jl package I also had to ccall the low-level guru interface.  It's not too hard, but it is worth thinking about a higher-level way to expose this.

I would be happy to prepare a pull request, because I need this quite badly at the moment. I need guidance, though, since I know the guru API up to a certain point.
The design space allows some flexibility here, depending on how much functionality we want to expose. For my use case,  a julian trait-based dispatch mechanisms with trait functions acting on the number type (i.e. strides and howmany) would be sufficient, but the guru API is vastly more flexible, e.g. split arrays, and a one-to-one map to the C API might be a better start.

Yeah. As you know, guru interface is already in FFTW.jl but for internal use.  You can reuse it. https://github.com/JuliaMath/FFTW.jl/blob/master/src/fft.jl#L491

@appleparan Thanks. I was wondering what kind of API and functionality we want to have on the Julia side.


Support logged batches in GraphQL

Resolves #133 .
It should be rebased once #271 and #279 are merged.

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 2

Complexity increasing per file
==============================
- graphqlapi/src/main/java/io/stargate/graphql/schema/fetchers/dml/MutationFetcher.java  5
- testing/src/test/java/io/stargate/it/http/queries/GraphQLAtomicMutations.java  1
- graphqlapi/src/test/java/io/stargate/graphql/schema/fetchers/dml/MutationFetcherTest.java  1
- graphqlapi/src/main/java/io/stargate/graphql/schema/fetchers/CassandraFetcher.java  2

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 4

Complexity increasing per file
==============================
- graphqlapi/src/main/java/io/stargate/graphql/schema/fetchers/dml/MutationFetcher.java  5
- graphqlapi/src/main/java/io/stargate/graphql/schema/fetchers/CassandraFetcher.java  2
- graphqlapi/src/test/java/io/stargate/graphql/schema/fetchers/dml/MutationFetcherTest.java  1

See the complete overview on Codacy

Rebased against master and using the mutation options for the batch execution.
I'll add a couple of more tests related to the options.

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 3

Complexity increasing per file
==============================
- graphqlapi/src/main/java/io/stargate/graphql/schema/fetchers/dml/MutationFetcher.java  4
- graphqlapi/src/test/java/io/stargate/graphql/schema/fetchers/dml/MutationFetcherTest.java  1

See the complete overview on Codacy

... and that's it, it should be ready for review.

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 3

Complexity increasing per file
==============================
- graphqlapi/src/main/java/io/stargate/graphql/schema/fetchers/dml/MutationFetcher.java  4
- graphqlapi/src/test/java/io/stargate/graphql/schema/fetchers/dml/MutationFetcherTest.java  1

See the complete overview on Codacy

Thanks @tomekl007 for the good feedback, I think I'll addressed the issues.

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 3

Complexity increasing per file
==============================
- graphqlapi/src/test/java/io/stargate/graphql/schema/fetchers/dml/MutationFetcherTest.java  1
- graphqlapi/src/main/java/io/stargate/graphql/schema/fetchers/dml/MutationFetcher.java  4

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 3

Complexity increasing per file
==============================
- graphqlapi/src/test/java/io/stargate/graphql/schema/fetchers/dml/MutationFetcherTest.java  1
- graphqlapi/src/main/java/io/stargate/graphql/schema/fetchers/dml/MutationFetcher.java  4

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 3

Complexity increasing per file
==============================
- graphqlapi/src/test/java/io/stargate/graphql/schema/fetchers/dml/MutationFetcherTest.java  1
- graphqlapi/src/main/java/io/stargate/graphql/schema/fetchers/dml/MutationFetcher.java  4

See the complete overview on Codacy


add removeScriptElement plugin

addresses https://github.com/svg/svgo/issues/395

Thanks!

@GreLI any chance you could cut a release for us now that this has been merged?

thanks for the quick response, we'll lock to the sha for the time being.

Any ideas when this will get pushed in a release to npm?

As soon as it be ready. Unfortunately, there a lot of things needs to be managed, but things must get easier after that.

OK, thanks for the super quick response!  This functionality would be very useful.  It also seems to work OK, from my initial tests.
Although, at present I am manually setting the exports.active = false to exports.active = true in the plugin file.  This is the first time I've used svgo... how might I otherwise set a plugin to active?

npm install --save svg/svgo
svgo --enable=removeScriptElement -i file -o -

Thanks, @pklingem :)  ...  the version that I'm getting through npm doesn't have the plugin.  I've manually downloaded the plugin and I can get it to work in a node script, but only by manually setting the exports.active to true.
That cli command you've given me is useful, but if possible, I'd like to know how it to do the same within a node app.

SVGO v1.0.0 with this plugin has been released now.


Add Map Object and Card Interface

Issue that this pull request solves
Closes:
Proposed changes
Adding Card Interface with Map object
Brief description of what is fixed or changed
Types of changes
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update (Documentation content changed)
[ ] Other (please describe):

Checklist
Put an x in the boxes that apply

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] My changes does not break the current system and it passes all the current test cases.

Screenshots
Please attach the screenshots of the changes made in case of change in user interface
Other information
Any other information that is important to this pull request

@kingavatar Please address the comments and it would be great if you could please add the GIF of the feature you added in this PR.

As of now as this PR is removing existing code and adding extra variables to handle data a GIF is not provided. Will do so for now on.


Use Mutex#owned? to correctly check if the Mutex is owned by the current Thread or Fiber

In Ruby >= 3, Mutex are held per Fiber, not per Thread.
Fixes #501
This is a backport of #503 for RSpec 3

Green on the first try!

Thanks, Jon!

Has this been released yet?

Oh, was this released 3 days ago? I still seem to experience some hangs in some cases, so maybe I need to investigate.


[React Fabric] Updating Build Configuration (CocoaPods, .xcodeproj, gradle)

For Discussion
Various parts of React Fabric code are available in github, but we need to upgrade a bunch of build configuration to make it build properly on iOS and Android. This will involve reflecting the BUCK targets for various parts of Fabric into the 3 areas:

React.podspec (iOS) -- note that we had partial configs already, but very outdated.
React.xcodeproj (iOS)
build.gradle (Android)

An initial version of the update could just be manually sync'ed configs for .podspec, .xcodeproj, and .gradle.
But for the future, some ideas include:

Have BUCK generate the relevant .podspec, .xcworkspace, or .gradle -- this may require a bunch of work via buck project
etc

Requirements

Have RNTester built with Fabric symbols correctly (iOS/Android to start)
Upgraded version of Folly - see https://github.com/facebook/react-native/issues/20302

Note that we're on v2018.10.22 already (https://github.com/facebook/react-native/pull/21976, https://github.com/facebook/react-native/pull/21977)

cc @mdvacca, @shergin

Hey React.podspec is up for grabs again, I'm sorry,  I didn't have enough time to finish it up.

I switched gears to updating the podspec (xcodeprojs are a pain). Here is what I have so far: https://github.com/mgriepentrog/react-native/commit/44c56493085e3a204b31d27f51c8c068369e988b. To find a lot of the low-hanging fruit, I'm running pod install inside of RNTester and trying to build the app with the RCTFabric subspec included. Currently encountering react-native/RNTester/Pods/Headers/Private/React/react/graphics/Geometry.h:55:3: Unknown type name 'Float'; did you mean 'float'?, but haven't had much time to investigate.

I switched gears to updating the podspec (xcodeprojs are a pain). Here is what I have so far: mgriepentrog@44c5649. To find a lot of the low-hanging fruit, I'm running pod install inside of RNTester and trying to build the app with the RCTFabric subspec included. Currently encountering react-native/RNTester/Pods/Headers/Private/React/react/graphics/Geometry.h:55:3: Unknown type name 'Float'; did you mean 'float'?, but haven't had much time to investigate.

I got stuck on the same problem, and couldn't get pass it I added same frameworks, changed some files and then same problem again. 😟

It looks like this header file wasn't included in your setup?
https://github.com/facebook/react-native/blob/3ad5c9e0169d90bce351794ffdca196ffbdd9013/ReactCommon/fabric/graphics/platform/ios/Float.h#L18

I made progress on getting the cocoapods to build and ran in to a few problems:

CGFloat in Float.h, same problems as above, it seems that the interop isn't working, I stubbed this with a double to continue.
RCTSwitchComponentView makes references to react/components/rncore/, which I could not find, nor could I find something similar.
Symbol Error: facebook::react::getDefaultComponentRegistryFactory()", referenced from:
-[RCTScheduler initWithContextContainer:]

I am still working on getting it to build a little further, and and still trying to figure out what is going on with Float.h. But the podfile seems mostly complete: https://github.com/ericlewis/react-native/commit/a6510d9652beab949d944dae923d7881678abcb2

One thing I noticed, if you look at the Pods project under the Frameworks folder, the CoreGraphics framework is pointing to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/CoreGraphics.framework, which doesn't exist (the latest sdk version is 12.1). I'm not sure where that path is getting derived from.

I updated those frameworks manually to point to 12.1 & was no dice.

Here is my WIP: https://github.com/ericlewis/react-native/commits/fabric

pod files seem “done”
issues with CGFloat persist still, unsure why.
Symbol error from being unable to find the a method on uimanager

I tried everything I knew to do with the exception of renaming all the cpp to mm. It appears to me that BUCK doesn’t care about filenames as much as Xcode (as I get different behavior when I do rename files to .mm)

Another issue too is I get a “functional file not found” in relation to what looks like libc++ headers in LayoutPrimitives.h, it also happens in SurfacePresenter with memory, tho that is fixed by a rename to memory.h.
I have not been able to figure out why this is happening, tho it is not happening in older versions of fabric using this same technique.

Another issue too is I get a “functional file not found” in relation to what looks like libc++ headers in LayoutPrimitives.h, it also happens in SurfacePresenter with memory, tho that is fixed by a rename to memory.h.

cc @shergin, @JoshuaGross -- thoughts?

@fkgozali I figured out what the issue was.. I am not sure I am using the library correctly, it happened when importing RCTSurfacePresenter.h, I believe the issue is due to AppDelegate.m not being an Objective-C++ file. It does link and build and run when I use RCTSurfaceHostingProxyRootView, but it is blank due to not having a presenter.

My current progress, open issues, and questions: #23550

I believe the issue is due to AppDelegate.m not being an Objective-C++ file

Ah, yeah a bunch of files need to become .mm instead. I think that's an ok requirement though, given the increasing number of C++ we're adding. That said, if AppDelegate.m needs to be AppDelegate.mm, let's switch it over.

Working podspecs: https://github.com/facebook/react-native/pull/23802

RNTester now works with Fabric, and we have a separate issue dealing with folly so I'm gonna go ahead and close this issue.
@fkgozali feel free to reopen or create a new issue depending on whether you wanted to keep this issue as a meta issue for all Fabric work or just scoped to making things work in RNTester.

Hold on, this is the umbrella ask for fabric build, including android, so let's keep this open. What was done  was just for CocoaPods.

Also what's not yet done:

component registration, integrated with build system (this doesn't exist in OSS yet)

@fkgozali should we close this off? :D

yes this is an old issue
On Jun 18, 2021, at 4:16 AM, Lorenzo Sciandra @.***> wrote:

@fkgozalihttps://github.com/fkgozali should we close this off? :D
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/facebook/react-native/issues/22989#issuecomment-863963241, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAILROXV2YIAUZ4FJCHRSC3TTMTJJANCNFSM4GQAKN6A.


Add compact density for Toolbar

[ ] React

[ ] Design

[ ] Documentation

As discussed in meeting with the team, all US on epic compact is closed if they do not have any additional information.

As discussed in meeting with the team, all US on epic compact is closed if they do not have any additional information.


Floating Label error on production mode

Issue Description
Hi,
I'm using floating label with a simple input. However when I set the value of the input, the floating label fails to float as it supposed to be, however if I focus on it the label will going up normally.
this is only happening on Production mode.

node, npm, react-native, react and native-base version, expo version if used, xcode version
node : 11.11.0
expo : 2.13.0
native-base : 2.12.1
react-native: 0.57.1
react: 16.5.0
Expected behaviour
the same behaviour whether it is in production mode or debug mode
Steps to reproduce
here's the code : https://github.com/blankonn/floating-error
Is the bug present in both iOS and Android or in any one of them?
only test on android

same error

https://github.com/GeekyAnts/NativeBase/issues/1977#issuecomment-396146716

Unfortunately, it didn't work...
While the issue that you mention is happened when the user is typing the input,
my issue is happened when I set the value of the input directly on start up of the screen
Sorry if I can't explain this better.. maybe you should check my provided repo and I will gladly provided required information if you need it. Thanks

I have mentioned the issue number along with the comment, which does not state issue

To me, this is happening when I load the value from asyncstorage.
for entry it is working fine but "In release mode only" it overlaps the label. It is a very old issue and keeps happening, and unfortunately, I saw many tickets closed with no solution.

I have the same issue when I get data from API request

Im having the same issue, I've tried several of the solutions posted related to this issue and still the same.

I have the same issue

I have the same issue

I have the same issue with Native-base 2.12.1

Same issue with 2.13.8, if i open a Label with value the placeholder is over the text.
Tested on  Android Galaxy Tab (new device fully up to date)

Same issue with 2.13.8. It only happens in production mode and in real devices, even if you debug in real devices it doesn't happen.

Hey there this issue is still happening.
But you can force to render after a while:
`
const [timestamp, setTimestamp] = useState(Date.now())
useEffect(()=>{
setTimeout(()=>{
setTimestamp(Date.now())
},300);
},[]);
`
It is not the best/cleanest solution but it works.

bug is still exist.

still having this floating label issue but only on production. locally it is all fine


Add support for paramters in function function

In QueryDSL we can use parameters like {0}, {1} to parse parameters.
But JDSL only supports varargs style functions.
Example (QueryDSL)
Simple example using QueryDSL
Expressions.dateTemplate(Date::class.java, "CAST({0} AS date)", QEntity.entity.createdAt).eq(date)

JSDL
I expected this would work like QueryDSL but it didn't.
function("CAST({0} AS date)", Date::class.java, col(Entity::createdAt)).equal(date)

Hi, asomethings.
I checked how QueryDSL provides the above form of code. It converts the template to JPQL String and creates javax.persistence.Query through JPQL String.
When I checked the Criteria API, it seems that there is no way to put string directly in the javax.persistence.criteria.Expression.
It would have been possible if Kotlin-JDSL had been written based on JPQL, but it is impossible because it is based on the Criteria API.
Kotlin-JDSL, like QueryDSL, will consider how to create queries based on JPQL strings. However, even if internal decisions are made by making Kotlin-JDSL based on JPQL strings, the work will take a lot of time.
Unfortunately, if you have to use a query such as the above, you have to use JPQL directly or QueryDSL now. I'm sorry for the bad news.

Hi @asomethings
Kotlin JDSL 3.0.0-SNAPSHOT has been released in snapshot repository. With 3.0.0, custom expression is now possible.  If you are still using Kotlin JDSL, please test it.
We apologize for the long wait and thank you for your patience.
If the snapshot version doesn't allow you to write the code you need, please reopen this issue.

I think the following docs will help you get started with Kotlin JDSL 3.0.0.
https://kotlin-jdsl.gitbook.io/docs/


[BUG] Posting/patching seems to break AsyncSession sessions in a weird way

EDIT: Changed the code a bit and found a potential fix (not really sure if its proper though, see the bottom for this)
Noticing some very strange behavior, I'll try my best to describe it.
Essentially, it seems that posting or patching data to a site will make certain following requests fail with a "400 malformed request" response from whatever URL you try to get. It's strange because it only breaks certain sites and sometimes only certain paths for a site. For example, "discord.com" will return 200 but "https://discord.com/api/v9/invites/python" will return 400.
I think this is best described by example, so here's some reproducable code that shows discord.com/api/v9/invites/python first returning with a 200 status code, then after the post to httpbin, it breaks the same request to discord.com/api/v9/invites/python and starts returning 400.
from curl_cffi import requests
import json, asyncio

async def test():
	async def do_req(sess):
		r = await sess.get("https://discord.com/api/v9/invites/python", impersonate="chrome110")
		print("1st https://discord.com/api/v9/invites/python status: " + str(r.status_code))
		r = await sess.post("https://httpbin.org/post", json={"testData": True},impersonate="chrome110")
		print("https://httpbin.org/post status: " + str(r.status_code))
		r = await sess.get("https://discord.com/", impersonate="chrome110")
		print("https://discord.com status: " + str(r.status_code))
		r = await sess.get("https://discord.com/api/v9/invites/python", impersonate="chrome110")
		print("2nd https://discord.com/api/v9/invites/python status: " + str(r.status_code))
		return r.status_code

	tasks = []
	async with requests.AsyncSession() as s:
		for i in range(1):
			tasks.append(do_req(s))
		results = await asyncio.gather(*tasks)

policy = asyncio.WindowsSelectorEventLoopPolicy() # needed to run on windows
asyncio.set_event_loop_policy(policy) # needed to run on windows
asyncio.get_event_loop().run_until_complete(test())

Expected Result:
1st https://discord.com/api/v9/invites/python status: 200
https://httpbin.org/post status: 200
https://discord.com status: 200
2nd https://discord.com/api/v9/invites/python status: 400

After running the code, if you print the response text it'll look something like (this was for google):
<!DOCTYPE html>

  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
  <title>Error 400 (Bad Request)!!1</title>

400. That’s an error.

Your client has issued a malformed or illegal request.  That’s all we know.

I tried debugging the code to see where something is getting changed behind-the-scenes when doing post/patch requests, but I couldn't figure it out. Anyone know what might be happening here?
Python version: 3.9.6
curl_cffi version: 0.5.2
cffi version: 1.15.1
Let me know if you need any other information! Thanks in advance.
EDIT: Found a potential fix - it seems that calling reset() on the session object after the POST request fixes it, is it intended to have to call this function after every post/patch request?

I think I've found the cause: the post body is not cleared after a POST request. I'll fix this issue soon. Sorry for the inconvenience.

I think I've found the cause: the post body is not cleared after a POST request. I'll fix this issue soon. Sorry for the inconvenience.

Thanks for the quick reply, you're the man!

Please check out v0.5.3, which should fix your issue.

Please check out v0.5.3, which should fix your issue.

Hey, unfortunately it seems 0.5.3 introduced a new bug, using the same example code above now returns a "curl_cffi.requests.errors.RequestsError: Failed to perform, ErrCode: 60, Reason: '' message on the post request :( any idea why that might be happening?

See here

CURLE_PEER_FAILED_VERIFICATION (60)
The remote server's SSL certificate or SSH fingerprint was deemed not OK.

I checked the responses from discord using your script, it was working correctly.
1st https://discord.com/api/v9/invites/python status: 200
https://httpbin.org/post status: 200
https://discord.com status: 200
2nd https://discord.com/api/v9/invites/python status: 200

Is there any chance that your connection with the target is interrupted?

Sorry, my bad, the cert option is also reset when resetting the post body.

The reason I can not reproduce this is that curl can find a valid and up to date cert on macOS, which is /etc/ssl/certs.pem. However, if I remove some certs from this file, I can reproduce your issue.
Under the hood, the latest certs extracted by curl authors is bundled within curl_cffi. However, in v0.5.3, the default cert option is reset when resetting postfields, so curl will fallback to system certs, if the file is missing or not up to date, which may be your case, certs errors will be reported.
Besides, the error buffer option is also reset, so the reason is also empty.

Please see if v0.5.4 solved this issue, thanks.


ModuleNotFoundError: No module named 'tensorboard'

Hi;
after running training command.. I got belw error:
from torch.utils import tensorboard
File "/.conda/envs/semiseg/lib/python3.6/site-packages/torch/utils/tensorboard/init.py", line 1, in
import tensorboard
ModuleNotFoundError: No module named 'tensorboard'

Hi @alqurri77
Maybe try updating the pytorch version you are using, this should be fixed with versions >= 1.2.0


Support custom resource tags in provisioner spec

Tell us about your request
A common need in cloud infrastructure ownership, cost and security management is to be able to tag cloud resources with some custom tags. While karpenter adds some specific tags to EC2 resources it does not yet support adding custom tags to those resources.
What do you want us to build?
Add the ability to add custom tags to the provisioner spec and apply them to all AWS resources created by karpenter.
Are you currently working around this issue?
The only work-around is to use a custom launch template, but I don't like that approach as it requires me to maintain half of the solution in AWS (e.g. using Pulumi or Terraform) and the other half in Kubernetes (e.g. using FluxCD). I would prefer a solution which is completely self-contained within the provisioner spec.

Ideas
This feature request might again trigger the discussion on how to encode provider specific (unstructured) configuration in the provisioner spec. As proposed before by @ellistarn, something like a field:
Provider map[string]interface{}

This would enable cloud providers to require arbitrary configuration parameters. You could imagine one provider using public certs, and not needing CABundle. You could also imagine some introspection mechanism (akin to IMDS) that could be used to discover fields like cluster endpoint or name.

This map could still be validated by cloud providers, but would require strong documentation (outside of godocs)
I like this approach because it creates an additional hook for cloud provider flexibility
I don't like that it could eventually degrade to an unusable stringly-typed configuration bag

Alternatively, we could also assume that tagging is a common capability among many cloud or infrastructure providers and just add a tags field to the ProvisionerSpec.

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

I'm more convinced over time that we're going to need something like "cloud provider options". Thoughts on renaming this issue to that and brainstorming in this thread? I want to come up with a set of features that are aws specific and difficult to communicate via labels. Like:

Cluster Name, Endpoint, CABundle
EC2 Instance Tags
Security Groups, Subnets, etc
Fully Specified Launch Template (Maybe a bridge too far?)

Musing, so apologies if it's not fully formed:
I'm a bit wary that it's not clear whether or not any given cloud provider parameter would be a Well Known Label or communicated through Spec.CloudProvider.Foo. For the latter, we'd lose the ability for pods to control this functionality via well known labels. We could implement the cloud provider to both recognize pods using a well known labels and default those values in the Provisioner.Spec.Cloudprovider. If we went this route, it might be cleanest to recommend that cloudproviders put all values of this type in the CloudProvider Spec and only use Well Known Labels at the pod level.

@rustrial, I'm also curious about the Tags feature request. Is it sufficient to simply tag resources with karpenter.sh/provisioner-name/foo and keep track of things that way?

Also -- a quick note that our codegenerator is going to have some issues pkg/apis/provisioning/v1alpha3/provisioner.go:25:31: map values must be a named type, not *ast.InterfaceType. Potentially we can work around this.

@ellistarn Usually, the tagging needs of our customers are complex and out-of-our-control, they just want to have a certain set of tags in place. Thus karpenter.sh/provisioner-name/foo will definitively not get the job done.
Regarding codegenerator, I guess this is what runtime.RawExtension is there for, but I might be wrong.
In the use-case that I have in mind, I don't want the Pods to choose the tags, instead the tags should be defined by the infrastructure operator (using the provisioner spec). There might be other use-cases in which it makes sense that tags can be specified by Pods, but I have not yet come-up with one.

Related: https://github.com/awslabs/karpenter/issues/632

Hey @rustrial. I have a proof of concept that implements this: https://github.com/awslabs/karpenter/pull/648

Should be straightforward on v1alpha4 api

Proposed: Backwards compatible API change for AWS Provider.
provisioner.Spec.Provider.Tags = map[string]string{}
These tags will be applied to instances and launch templates created by karpenter.


Remove author tags

Author tags don't provide much use. Multiple authors will work on a file over time, just adding more names as authors seem counter-productive. Additionally, any version control system has the capability to track who contributed what.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Files with Coverage Reduction
New Missed Lines
%

libraries/search/lib/operators/crossover/Crossover.ts
2
60.0%

libraries/search/lib/objective/managers/UncoveredObjectiveManager.ts
3
66.67%

libraries/search/lib/objective/ExceptionObjectiveFunction.ts
4
42.86%

libraries/search/lib/algorithms/evolutionary/MOSAFamily.ts
5
88.64%

libraries/search/lib/SearchSubject.ts
5
50.0%

libraries/search/lib/objective/ObjectiveFunction.ts
6
45.45%

libraries/search/lib/Archive.ts
18
18.18%

libraries/search/lib/objective/managers/ObjectiveManager.ts
25
27.69%

libraries/search/lib/objective/BranchObjectiveFunction.ts
34
6.31%

libraries/search/lib/algorithms/SearchAlgorithm.ts
39
6.82%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
758

Relevant Lines:
1552

💛  - Coveralls


Must have both GET and POST routes for retrieving and adding new data.

Standard Mongoose CRUD code in Express, along with ORM interfaces in src/utils/API.js if needed.

From looking at the API code in the boilerplate - it appears that we can detail how this fits the criteria, and close the issue.

We have GET routes for finding recent plants, and searching plants by name. These routes act as a proxy for requests to Trefle's authenticated API endpoints.
We have a POST route to save a favorite plant from the search results, to our local database


Function won't Show after Pressing Enter if IME is Open in Graphing Mode

Describe the bug

Function won't show after pressing Enter if IME is open in Graphing Mode.
Also, some strange expressions may be filled in next editbox.
Steps To Reproduce
Steps to reproduce the behavior:

Go to Graphing Mode
Enable the IME (I'm using Chinese IME)
Input an expression and press Enter
Nothing will show on graph
Input more expressions, and sometimes strange expressions are auto filled in next editbox after pressing Enter
Still not works if go back to previous editbox and hit Enter again even with IME disabled.

Expected behavior

Function should be shown after pressing Enter with IME open.
No strange expressions should appear.

Screenshots
I never input the 4th function x+3 and 5th function x but they're filled in next editbox automatically.

Device and Application Information

OS Build: 10.0.19042.0
Architecture: x64
Application Version: 10.2009.4.0
Region: zh-CN
Dev Version Installed: True

Requested Assignment
I'm just reporting this problem.  I don't want to fix it for now.

This is your friendly Microsoft Issue Bot. I've seen this issue come in and have gone to tell a human about it.

It looks like ITextDocument4::GetMath() method fetched a null result when user types letters with IME.
String ^ MathRichEditBox::GetMathTextProperty()
{
	// TODO when Windows 10 version 2004 SDK is adopted, replace with:
	// String ^ text;
	// this->TextDocument->GetMath(&text);
	// return text;

	ComPtr<Windows_2004_Prerelease::ITextDocument4> textDocument4;
	reinterpret_cast<IInspectable*>(this->TextDocument)->QueryInterface(IID_PPV_ARGS(&textDocument4));
	HSTRING math;
	auto hr = textDocument4->GetMath(&math);  <------------- Line 89 in file MathRichEditBox.cpp
	if (FAILED(hr))
	{
		throw Exception::CreateException(hr);
	}
	return reinterpret_cast<String ^>(math);
}

An interesting thing is if you try to type numbers before letters while enabling IME, the RichEditBox control can handle it properly.

Hi, I would like to investigate and work on this issue. Can I get this issue assigned and a bit of help on where to start, thanks


Basic frontend for new search page

Progress so far. The structure for the new search page is mimicking the structure of the old search page to a great extent.
The column containing the search filters is not correctly positioned compared to the navigation menu on the old search page.
Some things are hardcoded and refactoring is required in many places eventually.
New files:

SearchFilters.tsx (Behaves in a similar way to components-shared/MainMenu.jsx)

SearchPageWrapper.tsx (Needed to create a new wrapper to handle a search filter column instead of a navigation menu)

SearchPageLayout.tsx

NewSearchPage.tsx (main content on page)

newSearchPageCtrl.js

Also found that I get a lot of errors in JS-files when testing this branch out. I created a new Jira for looking into to that https://kth-se.atlassian.net/browse/KP-346

I liked the idea to not try to use the standard ElementWrapper and PageLayout since a built for a certain layout with menudata that will not be used in this new page.
But I think we could at least skip on layer in the setup for the new page. Ie use SearchPageWrapper for setup of mobx store etc, but the skip SearchPageLayot and integrate the layout in the page (NewSearchPage).

I liked the idea and removed the layout for the new search.

Another endpoint has been added for results.


Add compatibility with public managed db and improve chart

Hey,
I add a logic to detect if the MDB is deployed in public or private mode and based on that the operator is able to select public or private ip of node. If the Kubernetes cluster is configured to use a GW as egress instead using public ip of each node, the operator detect the public ip address used by this GW with https://ifconfig.io.
I also made some change on the chart:

use helm release ns instead of ns specified in values (helm install ovh-db-operator -n ovh-db-operator --create-namespace .)
remove unnecessary roles
add ability to use an existing secret

Could someone from OVH take a look at this? I'm in the process of sorting this for us in a different way, but having an upstream solution from OVH would be a good idea. Ping @BellionBastien

Hello @apinter,
I've already started taking a look at it. I wil try to finish my review this week :)

Hello @apinter, I've already started taking a look at it. I wil try to finish my review this week :)

Not to sounds pushy, but happened to make any progress on this? If its going to be dropped or if it takes longer I will need to go back to our in-house solution, but that is currently in the backlog since we're waiting for an upstream solution.

Hello @apinter, no worries, it's understandable :)
You can expect a new release with this included today or tomorrow ;)

@apinter the new release is now available: https://hub.docker.com/r/ovhcom/public-cloud-databases-operator/tags
Helm chat version 0.1.3 and docker image v1.0.3

@apinter the new release is now available: https://hub.docker.com/r/ovhcom/public-cloud-databases-operator/tags
Helm chat version 0.1.3 and docker image v1.0.3

Big thanks @BellionBastien, testing it in a bit ;)

Works great, thank you @ccleouf66 @BellionBastien


Support Foodcritic 6

All tests pass, but I had to update the local Ruby version to >= 2 or Foodcritic would give an error on $ bundle.

@razor-x thanks for your contribution. I'd like to postpone merging this until ChefDK comes with foodcritic 6.x.

/|\  Soon

I'll be releasing guard-foodcritic 3.0 with support for foodcritic 6.0 soon


debug handler: add /debug/request http handlers

This adds /debug/request handling for the server and client side.
Fixes issues with empty transport of DefaultTransport.
Also fixes error propagation with opentracing by adding a test.

Addressed @yifanzz comments.


Improve file:line regex

As implemented in #198, we can jump to
<path>:<line>:<char>.
However this has two corner cases where it does not work.
One is:
/path/to/file.ext:1:1:
...

which is caused by emacs strange interpretation of ^.
The other is (for Non-exhaustive patterns)
/path/to/file.ext:(1,1)-(2,2): Non-exhaustive patterns in function suffix

which is a somewhat different pattern to match.

/path/to/file.ext:1:1-2: Irrefutable pattern failed for pattern Function

is also not properly parsed.

@chrisdone can we control when the subprocess is sending data to comint?
It seems like intero receives "output", which does not necessarily end at line boundaries, but at 110 char or so. This however means, that if your path + position is past that boundary, matching fails.
Changing the output buffering to something else might make intero though behave much less interactive. Maybe a custom marker, that waits for a newline before trying to parse the output is better...


Nonblock load + update nb_postfix.py with description

Documentation for functional coverage, spike, load store dccm test, jumps branches and loop test, and non-block load issue.

Have made the changes


Tracking does not start even though AprilTags are visible

Hello,
I am trying to use the Spectacular AI SDK's AprilTag functionality in order to get pose estimates by viewing multiple AprilTags with known poses. Here is an example picture from the camera:

The tracking doesn't start until I move the camera around. Although, it should be able to get its pose given that there are 3 AprilTags in sight. How can I get the pose of the camera without needing to move the camera, given there is an AprilTag in view and config.aprilTagPath has been configured?
Also, does the SDK treat AprilTags as landmarks with known pose, or does it combine the corners/edges of the AprilTag with the other features being tracked?

Hey,

The tracking doesn't start until I move the camera around...

Thanks for spotting this issue with the AprilTag mode; there should be a fix included in the next release (most likely later this week).

Also, does the SDK treat AprilTags as landmarks with known pose, or does it combine the corners/edges of the AprilTag with the other features being tracked?

AprilTags are used as landmarks for (re-)localization, but internally we do use the AprilTag corner points.

Would it be possible for the SDK to output the positions of the AprilTags it finds as part of the hooks API?

Release 1.27 is now public & the initialization while stationary should hopefully be better now. (Also spotted another related AprilTag issue, but didn't have time to include the fix in this release, so if this version doesn't work yet, then hopefully the next release will).

Would it be possible for the SDK to output the positions of the AprilTags it finds as part of the hooks API?
We would like to output detected AprilTags through our Mapping API at some point, but currently it is not very high priority so cannot promise when this feature will be added.

I see. It would be extremely helpful at the very least to know if an AprilTag is currently being detected and its current ID, but having access to the poses of the AprilTags relative to the camera would be amazing.

I totally undestand, and all of those features should eventually be accessible through the mapping API. However, unless a commercial project requires those features in near future, then I cannot promise when they will be added.
As a temporary solution, could you consider detecting the AprilTags yourself on the OAK-D? I know it's not ideal to detect the AprilTags twice, but this is probably the fastest solution for your use case. DepthAI seem to have their own AprilTag example (did not test): https://github.com/luxonis/depthai-python/blob/main/examples/AprilTag/apriltag.py

Thank you. I'm still getting some instances where the Tracking Status remains INIT even when there are AprilTags in the frame. This is with a more complex set of AprilTags, the JSON for which I am using is here: https://github.com/mgagvani/apriltag-localization-frc/blob/main/apriltag_configs/crescendo/crescendo_apriltags.json
Visualizing the tags in 3d, it looks like this:

I believe that the way I've set up the JSON file, the VIO output should start wherever the camera is relative to the AprilTag. However, what ends up happening is that if/when the tracking does start, it starts at the origin rather than the correct position. Here is an example image of the AprilTags I'm trying to detect:

Very cool setup!

I'm still getting some instances where the Tracking Status remains INIT even when there are AprilTags in the frame.

We are aware that this wasn't entirely fixed with version SDK 1.27 and will try to improve it. I will let you know when fix is available.

I believe that the way I've set up the JSON file, the VIO output should start wherever the camera is relative to the AprilTag. However, what ends up happening is that if/when the tracking does start, it starts at the origin rather than the correct position.

I couldn't reproduce this issue; My tags.json looks like this
[
    {
        "id": 0,
        "size": 0.139,
        "family": "tagStandard41h12",
        "tagToWorld": [
            [    1,    0,    0,    10.0],
            [    0,    0,    1,    0],
            [    0,    -1,    0,    10.0],
            [    0,    0,    0,    1]
    ]
    }
],

i.e. tag with origin at [10, 0, 10] and mapping_visu.py example looks like this

Hey,

We finally fixed the initialization issue with release 1.33.0.
In addition, April Tag observations are also available through mapping API.
See https://github.com/SpectacularAI/sdk-examples/blob/main/python/oak/april_tag.py

To update the SDK to latest version, run pip install spectacularai[full] --force