Fix RDPipelineColorBlendState.attachments setter

Fixes the error
  Attempted to push_back a variable of type 'Array' into a TypedArray of type 'Object'.
  core/variant/array.cpp:269 - Condition "!_p->typed.validate(value, "push_back")" is true.

var pcbs = RDPipelineColorBlendState.new()
var attachment = RDPipelineColorBlendStateAttachment.new()
attachment.enable_blend = true
attachment.alpha_blend_op = RenderingDevice.BLEND_OP_ADD
attachment.color_blend_op = RenderingDevice.BLEND_OP_ADD
attachment.src_color_blend_factor = RenderingDevice.BLEND_FACTOR_SRC_ALPHA
attachment.dst_color_blend_factor = RenderingDevice.BLEND_FACTOR_ONE
attachment.src_alpha_blend_factor = RenderingDevice.BLEND_FACTOR_SRC_ALPHA
attachment.dst_alpha_blend_factor = RenderingDevice.BLEND_FACTOR_ONE
var attachments : Array[RDPipelineColorBlendStateAttachment] = [ attachment ]
pcbs.attachments = attachments

I'm not sure if it's correct to give access to the internal array, user can update array content without calling the setter, see #80950.

CC @BastiaanOlij

I marked this as a draft because I don't think the current solution is fully correct. Must be one of the following:
void set_attachments(const TypedArray<RDPipelineColorBlendStateAttachment> &p_attachments) {
    attachments.clear();
    attachments.append_array(p_attachments);
}

TypedArray<RDPipelineColorBlendStateAttachment> get_attachments() const {
    return attachments.duplicate();
}

void set_attachments(const TypedArray<RDPipelineColorBlendStateAttachment> &p_attachments) {
    attachments = p_attachments;
}

TypedArray<RDPipelineColorBlendStateAttachment> get_attachments() const {
    return attachments;
}

I checked the setters and getters of other non-Object properties of pass-by-reference types (arrays and dictionaries don't have signals to track external change, unlike resources). This is inconsistent.

@dalexeev the pass by reference is only to prevent a parameter copy (and thus ending up with two copies being made), it still duplicates the content of the array.
I think option #2 is clearer, and as far as I can test works fine.

@BastiaanOlij Option 2 is the current option? Your comment confused me, sorry.

@dalexeev I mean in relation to this:

I checked the setters and getters of other non-Object properties of pass-by-reference types (arrays and dictionaries don't have signals to track external change, unlike resources). This is inconsistent.

We're not storing a reference, we're only passing by reference to prevent an extra copy overhead.
So if you do:
pcbs.attachments = attachments
attachments.push_back(another_attachment)

There is no expectation that that pcbs sees the new attachment. The list of attachments has already been copied. It's not like a resource where a pointer to the original array is kept and changes to the array after assign still effect things.
So:
void set_attachments(const TypedArray<RDPipelineColorBlendStateAttachment> &p_attachments) {
    attachments = p_attachments;
}

TypedArray<RDPipelineColorBlendStateAttachment> get_attachments() const {
    return attachments;
}

Does exactly what we want and keeps the code concise.

So TL;DR, Bastiaan approved without hitting the "Approve" button ;)

Thanks!


Remove r jvm from appveyor

Based on https://github.com/dmlc/xgboost/pull/5917 .

Codecov Report

Merging #5922 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #5922   +/-   ##
=======================================
  Coverage   78.11%   78.11%
=======================================
  Files          12       12
  Lines        2979     2979
=======================================
  Hits         2327     2327
  Misses        652      652

Continue to review full report at Codecov.

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


Updates

Added support for revision of models that has dependencies for other models.
Fixed continuation-local-storage support
Added Mysql support
Package clean up
Updated docs
Added migration example

There is still a lot to do.

See #4

Why did you clear out the source code in the src/index.js and src/helpers.js file? I use those as the files to write the actual code and the files in the lib directory are generated when running the build command.

I basically removed all babel code. At the time i thought the project was not active so I was cleaning out maybe a bit to aggressivly, sorry for that.
I can add it back if you like? Could you explain the benefit of using babel and the whole src and lib approach?
https://github.com/sequelize/sequelize does not use this? I though it would be good practice to copy their approach.

Ah good point :) My idea was to keep it separate and on build just create a compiled / minified version of the code in src, but I don't really feel super strong about it.

Looks very promising. @mhaamann, @nielsgl - when this can be merged into the master?

I'm interested too.

Your call @nielsgl, let me know if i need to change anything to get this merged in.
We are running it in production as of now in my company. We made tests but they are specific to our needs.
I will try to find time to change them so it can be ported to this project.

Merged, thanks @mhaamann !


WIP: Add VM create client

This change:

adds the oVirt VM create client
add list hosts by cluster
changes CPU topology to int64 so we can use it with oVirt API
adds VMInitialization struct
adds errors package

** This is still very much a work in progress

Hey @Gal-Zaidman can this wait until next week or do you need it urgently?

Hey @Gal-Zaidman can this wait until next week or do you need it urgently?

Hi, this is really not urget just posted what I started so it will be available.... get back to your PTO and have fun :D

@janosdebugs after our chat today you are going to continue this effort, so feel free to close take the changes and close the PR

Thanks @Gal-Zaidman I'll take over from here.


Distinguish between forks

Currently, it doesn't distinguish between e.g. Uniswap V2 and Sushiswap. It would need to have an "address -> fork name" mapping across supported chains. Forks outside this mapping may be mapped as "Unknown fork" or excluded completely.

Fixed in 0.4.0.


Run multiple or all missing

In example:
go run 1.go 2.go

go run *.go

That's very useful for multi-file packages.

But do not need to include *_test.go files.

I believe this should be possible with the fix for #23.


Problem with version 3

Hello,
I updated the plugin to version 3, but I met some problems with some social networks, including:
Facebook, Google, Instagram and Tumblr
Facebook releases the following error:

URL blocked: This redirect failed because the redirect URI was not added to the whitelist in the app's client OAuth settings. Make sure that the OAuth client and the web access are active and add all app domains as valid OAuth redirect URIs.

Google:

That's an error.

Error: invalid_request
Missing required parameter: scope
Learn more
Request Details
response_type code =
    client_id =<PHONE_NUMBER>123-lvnhssemg3ljd1el8d8ru8ghipt7gdpu.apps.googleusercontent.com
    redirect_uri = https: //www.sviluppomania.com/wp-content/plugins/wordpress-social-login/hybridauth/? hauth.done = Google
    scope =
    access_type = offline
    state = HA-ZGHQBJ6WXPVO1S9IF4KD8ME7CA2T0LU3RN5Y
That's all we know.

By chance are the callback url changed?
I have these:
ex: wp-content / plugins / wordpress-social-login / hybridauth /? hauth.done = Instagram

Google works now. Facebook is Facebook … ones works, ones not. Instagram and Tumblir I don't check.
For Google type url and enter, otherwise it will not be saved. New version use https://skri.ga/wp-content/plugins/wordpress-social-login/hybridauth/callbacks/google.php

For Windows?

Sorry, I don`t understand.
 On the other hand it may be temporary error in old version. Latest version works … ¾ works.
Step by step :

https://console.developers.google.com/apis/credentials?project=name
Edit login/credencials.
https://www.sviluppomania.com → domain
https://www.sviluppomania.com/wp-content/plugins/wordpress-social-login/hybridauth/callbacks/google.php → redirect.
Check ones again.

Similar on other platforms.


Clarify when Prisma queries are run (PrismaPromise behavior)

@Sytten brought up a good point in Slack that we don't really talk about when queries are executed.
In this example:
import { User } from '@prisma/client'

export default async (app: Application, { id }: DeleteInput): Promise<User> => {
  const operations: Promise<any>[] = []

  // Delete onboarding
  operations.push(app.prisma.onboarding.deleteMany({ where: { userId: id } }))

  // Delete availability application
  const availabilityApp = await app.models.availabilityApp.findOne({ userId: id })

  if (availabilityApp) {
    operations.push(
      app.prisma.availabilityTemplate.deleteMany({
        where: { appId: availabilityApp.id },
      }),
      app.prisma.availabilityApp.delete({ where: { id: availabilityApp.id } })
    )
  }

  // Delete user
  const user = await app.prisma.user.findOne({ where: { id } })
  operations.push(app.prisma.user.delete({ where: { id } }))

  // Execute all operations
  await app.prisma.transaction(operations)
  return user!
}

You might expect the operations to run in the order that they appear, but this is not the case. They run more like this:
await app.models.availabilityApp.findOne({ userId: id })
await app.prisma.user.findOne({ where: { id } })

// batched together at the end
app.prisma.onboarding.deleteMany({ where: { userId: id } })
app.prisma.availabilityTemplate.deleteMany({
  where: { appId: availabilityApp.id },
}),
app.prisma.availabilityApp.delete({ where: { id: availabilityApp.id } })
app.prisma.user.delete({ where: { id } })

This is because Prisma queries are then-ables, meaning they only execute when you call await or .then() or .catch(). This is called lazy evaluation. This is different then a regular promise which starts executing immediately. This would be called eager evaluation or immediate evaluation.
This was an understandable source of confusion for @Sytten because most libraries using promises eagerly evaluate. For example:
const fs = require('fs/promises')
fs.readFile("./test.txt") // starts reading the file immediately!

But in the Prisma client:
const deleteOperation = app.prisma.onboarding.deleteMany({ where: { userId: id } }) // doesn't do anything
// ...
deleteOperation.then() // now it executes
// or..
await deleteOperation // now it executes.

Thanks for the clarification.
What would be the best solution to execute Prisma request but being asynchronous?
// do some stuff
app.prisma.onboarding.deleteMany({ where: { userId: id } }) // DeleteManyAction doesn't do anything

await doOtherStuffsRightNow()

// DeleteManyAction when node is available

Just call then/catch on it and it will start executing if I am not mistaken

Out of curiosity, is there a section in the documentation that explains this design decision? I can imagine enough good reasons to use lazy promises, but it would help a lot if that is explained somewhat. Because at the same time I can imagine reasons to not lazily evaluate. For example when you call delete() and only care about potential errors, but already have a generic catch clause in place in some enclosing scope/context.

I feel that calling .then() or .catch() without providing callbacks is an anti-pattern similar to, for instance, the noop-subscribe pattern with RxJS observables (there's even an ESLint rule for this).
Would it be a good addition to be able to 'toggle' eager evaluation for certain situations? For instance:
// a) Through a dedicated method maybe?
app.prisma.user.deleteNow({ where: { id } })

// b) Through an additional option flag?
app.prisma.user.delete({
    where: { id },
    eager: true,
})

Note we currently have the following documented
https://www.prisma.io/docs/concepts/components/prisma-client#3-use-prisma-client-to-send-queries-to-your-database

Note that queries will only run if used with await or chained with .then(). When using $transaction's this makes it possible for the client to pass all the queries on to the query engine as a transaction.
The client methods are "thenable", they return a PrismaPromise which is implemented like a JavaScript Promise, except for the query to be executed they need to be awaited or chained with .then().

@JJWesterkamp So this lazy promise makes it possible to have transactions like this
const [posts, totalPosts] = await prisma.$transaction([
  prisma.post.findMany({ where: { title: { contains: 'prisma' } } }),
  prisma.post.count(),
])

It can be indeed confusing.

Be nice to see an ORM thats Observable based and ditch promises forever. Sacred nature is calling for it.

Note for Docs team

we need to fix what is currently documented and add or chained with .catch(). as well
decide if where it's currently documented is the right place?
anything else?

An update to the Transaction documentation.
I'm still wrapping my head around this one. It sounds like if I'm running a loop over several items, I can run the standard await syntax on each one in my loop. Or I can keep an array of the 'then-able' promises (without await) and then call an `await prisma.$transaction([promiseArrayItems]) and then each will be executed.
It would seem the latter way is more efficient. Is that correct?

@shadoath Yes that should be faster, though in the transaction queries will be executed sequentially.
Another option would be to use Promise.all() or Promise.allSettled() to run all the queries at the same time, like
const queries = [
    prisma.user.findUnique({ where: { id: 1 } }),
    prisma.user.findUnique({ where: { id: 2 } }),
  ]
const users = await Promise.all(queries)

Maybe I'm misunderstanding the examples in this issue, but how would one do "fire-and-forget" queries?
Example: I have a simple API endpoint where some "post" data is returned. For each request, I also want to increment the view counter of that post. Something like:
async function foo(postId: string) {
  // increment post views
  prisma.post.update({
    where: { id: postId },
    data: { noOfViews: { increment: 1 } },
    select: null,
  });

  // find post data
  return await prisma.post.findUnique({
    where: { id: postId },
    select: defaultPostSelect,
  });
}

I don't care about the result of the update query, so I also don't want to wait for it at all, as otherwise each request for "post" data will have to wait until the "increment view" operation is finished first.
There's a similar discussion for this use case, but it's from 2020, so I'm not sure if it is still relevant.

async function foo(postId: string) {
  // increment post views
  prisma.post.update({
    where: { id: postId },
    data: { noOfViews: { increment: 1 } },
    select: null,
  });

  // find post data
  return await prisma.post.findUnique({
    where: { id: postId },
    select: defaultPostSelect,
  });
}

Do that you could use use .then on it:
async function foo(postId: string) {
  // increment post views
  prisma.post.update({
    where: { id: postId },
    data: { noOfViews: { increment: 1 } },
    select: null,
  }).then(() => {});

  // find post data
  return await prisma.post.findUnique({
    where: { id: postId },
    select: defaultPostSelect,
  });
}


Calls to error in interaction.step end up in JS console instead of message window

Fixed as a side-effect of the stdout/stderr change.


Website broken link in docs

Bug description
on page https://wavesurfer.xyz/docs/ there is a link to the options [options](https://wavesurfer.xyz/docs/#wavesurfer-options) but there is no such fragment on the page.
Can't find any link to the options docs. Will check the source to find/

hmm, no sign of the website src in this repo - not even a branch. And no info I can find on where the repo is.
PS thanks for a fantastic project - using in a tool to manage recording talking newspapers for the blind (charity)

Ahah - site is the readme and built examples. But I can't see a file for the options. Other that the source

OK, after that I found https://wavesurfer.xyz/docs/types/wavesurfer.WaveSurferOptions.

I'll check if I can move it up, it's alphabetical atm.


Fix Danger bot

Cherry Pick https://github.com/facebook/react-native/commit/90f0de99ada68fc0d877f2efe297538e733d9b56#diff-bbe0a01c823e91c3b712b516d840a2c86b13925e5f06bd8335e72b29f74468e8 to fix our danger bot

Summary:
Changelog: [Internal] Remove warning about creating a pull request to a release branch
We want to support this use case as we want pick requesters to land the cherry-picks themselves and rely on CircleCI automation to test
Reviewed By: cortinico
Differential Revision: D32780819
fbshipit-source-id: 882625a016653dbf480da33fd499d3718b2b5524

No longer necessary. Closing.


Request: allow room display name /myroomnick and room avatars override global display name and avatar

I was told that this is the most appropiate repository for this.
I generally wish to be known by my global displayname, but there are a few rooms where I would like to have a different name and then there are a few dozen rooms where I would like to be known by my full name as they are somewhat professional. Currently when I change my display name in Element by /nick, the rooms that I have a separate name in get overwritten and then I have to start going through them by /myroomnick again.
This also affects room specific avatars.

AFAIK synapse changing m.room.member event in all rooms you are in when changing profile is actually behaviour not mentioned in the spec - the spec doesn't say what servers should do if you change your profile information
So, while there is a need to clarify that, it is also a good idea to make local room changes "sticky".

Duplicate of https://github.com/matrix-org/matrix-doc/issues/545

This is a duplicate of #1376, not #545


Remove fromat.js in favor of i18next

i18next is what is used across multiple products within patternfly.  For consistency we should remove fromat.js and use i18next instead.

After discussion with the team it was decided to have the consumer of the extension localize the text.  An interface has been created instead to allow localized texted to be passed in.


[Extraction template] NER

Feature request
Name Entity Recognition is the process of identifying and classifying named entities (like people, organizations, dates, and locations) in text.
Motivation
NER is useful in various areas:

Information Retrieval: Helps in improving the efficiency of search engines. For example, if someone searches for "Apple," understanding whether they mean the fruit or the tech company can be crucial.

Content Recommendation: For news or media agencies, knowing what entities are mentioned in articles can help in recommending related content to users.

Data Mining: For extracting structured information from unstructured datasets.

Question Answering: Helps chatbots and virtual assistants understand and respond to user queries more accurately.

Knowledge Graph Construction: Crucial for building structured databases of information extracted from text.

Your contribution
Add template

Until we get an offical solution, here is the prompt I am using:
Identify and extract all named entities from the following text, including:

Person: Names of people, including full names, titles, and roles (e.g., "Mateo Gomez", "Nickolaus Schulz", "caretaker")
Organization: Names of companies, institutions, and groups (e.g., "Contoso General Hospital", "Contoso Restaurant")
Location: Geographical locations, addresses, and landmarks (e.g., "Hollywood Boulevard", "Los Angeles", "Santa Monica Pier")
Date/Time: Specific dates, times, durations, and expressions of time (e.g., "August 17th, 2022", "7:45 PM", "last Thursday")
Quantity: Numerical values, including numbers, ordinals, and percentages (e.g., "28-year-old", "first", "95 percent")
Product: Names of products, objects, and items (e.g., "Stent", "Chicken parmigiana", "Surf and turf platter")
Event: References to specific events or activities (e.g., "car accident", "trip", "anniversary")
Skill: Mentions of skills or abilities (e.g., "supervision")
Other categories: Consider any other relevant entity types that may appear in the text.
For each entity, provide:

Text: The exact text of the entity as it appears in the text.
Category: The category of the entity (e.g., Person, Location, Date/Time).
Subcategory (optional): A more specific subcategory, if applicable (e.g., GPE for geo-political entities, Date for dates, Time for times).
Offset: The starting character index of the entity within the text.
Length: The number of characters in the entity.
Confidence score: A numerical value indicating the model's confidence in the entity extraction (e.g., 0.0 to 1.0).
Format the results as a JSON object that adheres to the following structure:

JSON
{
    "documents": [
        {
            "id": "id__1234",  // Unique document identifier
            "entities": [
                {
                    "text": "Entity text",
                    "category": "Entity category",
                    "subcategory": "Entity subcategory (optional)",
                    "offset": 0,
                    "length": 10,
                    "confidenceScore": 0.95
                },
                // ... other entities
            ]
        }
    ],
    "errors": []  // List of any errors encountered during extraction
}

And here is an example, implemented in ChatGPT:
"Michelina Metelli was born in Farneto, Papal States, to a wealthy Italian family. She married into the noble Malatesta family at the age of 12 and was widowed by age 20. She led a lifestyle of parties and luxury but, after the death of her only son, she experienced a vision of him in heaven, and decided to become a member of the Third Order of Saint Francis.
She proceeded to give away all her belongings and property, and founded, together with Francis Zanferdini, the Confraternity of the Annunciation to care for the poor, nurse the sick and bury the dead.  Upon her release from confinement, she made a pilgrimage to the Holy Land as penance for her sins. It is believed that she received the stigmata in the course of this journey. Michelina died at her home in Pesaro on 19 June 1356 of natural causes"
Result:
    "documents": [
        {
            "id": "id__1234",
            "entities": [
                {
                    "text": "Michelina Metelli",
                    "category": "Person",
                    "offset": 0,
                    "length": 16,
                    "confidenceScore": 0.98
                },
                {
                    "text": "Farneto, Papal States",
                    "category": "Location",
                    "offset": 26,
                    "length": 20,
                    "confidenceScore": 0.95
                },
                {
                    "text": "Malatesta",
                    "category": "Organization",
                    "offset": 80,
                    "length": 9,
                    "confidenceScore": 0.92
                },
                {
                    "text": "12",
                    "category": "Quantity",
                    "offset": 114,
                    "length": 2,
                    "confidenceScore": 0.99
                },
                {
                    "text": "20",
                    "category": "Quantity",
                    "offset": 142,
                    "length": 2,
                    "confidenceScore": 0.99
                },
                {
                    "text": "Third Order of Saint Francis",
                    "category": "Organization",
                    "offset": 255,
                    "length": 28,
                    "confidenceScore": 0.94
                },
                {
                    "text": "Francis Zanferdini",
                    "category": "Person",
                    "offset": 330,
                    "length": 18,
                    "confidenceScore": 0.97
                },
                {
                    "text": "Confraternity of the Annunciation",
                    "category": "Organization",
                    "offset": 361,
                    "length": 33,
                    "confidenceScore": 0.93
                },
                {
                    "text": "Holy Land",
                    "category": "Location",
                    "offset": 489,
                    "length": 9,
                    "confidenceScore": 0.96
                },
                {
                    "text": "Pesaro",
                    "category": "Location",
                    "offset": 568,
                    "length": 6,
                    "confidenceScore": 0.97
                },
                {
                    "text": "19 June 1356",
                    "category": "Date/Time",
                    "subcategory": "Date",
                    "offset": 587,
                    "length": 12,
                    "confidenceScore": 0.99
                }
            ]
        }
    ],
    "errors": []
}

Please see https://python.langchain.com/docs/use_cases/extraction which can be adapted for more specific NER extraction.
If you need to localize the extraction in the text there are different ways to do it (just don't ask the LLM to count positions since it doesn't do it well.)
One way to do it: Add "evidence" to the schema to request text repeated in verbatim as evidence for the extraction and then approximate algorithms for aligning the extracted text against the original


Broken Shortcuts integration

reproduction screencast

@fzzr- 🤔 Yes, something is broken. I'm trying to fix it.

@fzzr- 🤔 I was able to reproduce the problem in a simulator here, but didn't use it to get useful information. It seems to be an iOS issue. You can try the following operation.
In the Shortcuts app, edit an shortcut, then you can go to settings in the upper right corner and see a "privacy" tab. You can try Reset Privacy and then turn it back on.
https://discussions.apple.com/thread/253161866?answerId=256217910022

This is because of a new added feature in iOS 15 to protect access to data by shortcuts. If you go to Shortcuts, go into editing mode, then open the settings in the upper right, you will see the new Privacy tab. Once you grant access the first time, you should see the app or other data location listed with the slide switch On. You ‘could’ toggle it to Off but then your shortcut most likely would not function correctly. If you select Reset Privacy, it will clear the saved info. The next time you run the shortcut, the privacy prompt will reoccur. On the positive side, it looks like privacy items are automatically added as On when creating new shortcuts within the Shortcut app.

I haven't been used it for a while because of this issue. Well, now I see this is fixed completely. ❤🔥
Thank you so much! It works almost perfectly!
Almost because now I have new issue for you #21.
Every time when I run my simple shortcut it always asks for permissions. Every time.

All is fixed. Thanks! ❤🔥


Add GetSlice; Handle GKVNN lable and annotation; Support sub-node GVKNN

Another approach is accepted by defining a new SubObject in KubeObject


client.Read does not exist and data appears cached

First of all client.Read() doesn't exist, so I used client.Receive(), shown in the code below.
However, I keep getting the first thing read from the server every time, but the server is sending different data on each call.
Is there something I'm doing wrong? Do I need to clear out a buffer or something?
// send to server
client.Stream.ToPipeStream().WriteLine(Newtonsoft.Json.JsonConvert.SerializeObject(value));
client.Stream.Flush();
// Wait for a response
var reader = client.Receive();
var ret = reader.ToPipeStream().ReadLine();
return ret;
BTW, I use a static client, I don't get a new one each time, which worked fine in the Async version.

client.Receive  trigger the socket receive once, if data from socket receive multiple you can
while(true)
{
   var reader = client.Receive();
   if(reader.reader.TryReadLine(out string line))
       return line;
}

You likely had a typo, that didn't work, but this did,
while (true)
{
var reader = client.Receive();
if (reader.ToPipeStream().TryReadLine(out string line))
return line;
}
Thanks for your help.


misc: ignore some unusable block devices

If a block device is read-only, or is a cloud-init datasource, we should
not change the content on it!
This change detects most documented datasources as of 2015/12/10 from
http://cloudinit.readthedocs.org/en/latest/topics/datasources.html
It cannot detect datasources that are only detectable based on files on
volume (eg config-drive v1)
Signed-off-by: Robin H. Johnson<EMAIL_ADDRESS>

@dachary FYI ^^

@zmc will be pleased if you add unit tests in test_misc.py :-)

Got the following error while testing (already sent via email but adding here for the record).

2015-12-14T14:37:36.305 INFO:teuthology.orchestra.run.target167114236178:Running: 'sudo blkid -o export -p /dev/vdc'
2015-12-14T14:37:36.731 ERROR:teuthology.contextutil:Saw exception from nested tasks
Traceback (most recent call last):
  File "/home/ubuntu/teuthology/teuthology/contextutil.py", line 28, in nested
    vars.append(enter())
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/home/ubuntu/src/ceph-qa-suite_master/tasks/ceph.py", line 357, in cluster
    devs = teuthology.get_scratch_devices(remote)
  File "/home/ubuntu/teuthology/teuthology/misc.py", line 860, in get_scratch_devices
    stderr=StringIO(),
  File "/home/ubuntu/teuthology/teuthology/orchestra/remote.py", line 156, in run
    r = self._runner(client=self.ssh, name=self.shortname, **kwargs)
  File "/home/ubuntu/teuthology/teuthology/orchestra/run.py", line 378, in run
    r.wait()
  File "/home/ubuntu/teuthology/teuthology/orchestra/run.py", line 114, in wait
    label=self.label)
CommandFailedError: Command failed on target167114236178 with status 2: 'sudo blkid -o export -p /dev/vdc'

@dachary re-pushed with handling for the errors.


add option to use spec.enablePDB

This adds the ability to pass in the .spec.enablePDB for the Cluster if you run a test/dev cluster. Right now Karpenter is blocked for consolidating nodes due to this

Closed in favor of #431.


[#ISSUE 7222] Bug fix and refactoring of the Indexfile in tiered storage

Which Issue(s) This PR Fixes

Fixes #7222
Brief Description

How Did You Test This Change?

Codecov Report

Merging #7224 (ae76651) into develop (cc16a1b) will increase coverage by 0.13%.
The diff coverage is 21.05%.

@@              Coverage Diff              @@
##             develop    #7224      +/-   ##
=============================================
+ Coverage      42.44%   42.57%   +0.13%
- Complexity      9344     9366      +22
=============================================
  Files           1149     1149
  Lines          82108    82125      +17
  Branches       10702    10706       +4
=============================================
+ Hits           34851    34968     +117
+ Misses         42897    42780     -117
- Partials        4360     4377      +17

Files Changed
Coverage Δ

...che/rocketmq/tieredstore/file/TieredIndexFile.java
66.79% <21.05%> (+36.28%)
:arrow_up:

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


send bulk emails

Hi, I really love the react-email and resend ecosystem and I want to migrate but in most of my projects I find myself using bulk emails to send email to long lists without having issues with the rate limit while being on a serverless runtime without an "easy" way to have a queue implemented. Are you planning on adding this feature in the near future?

Hey @LucasAlda. Yes, sending in Bulk is on the roadmap. It's something that we want to release soon.

Is there any update on this? @bukinoshita


PLT - Allow editing of title and axis label

Just scrutinized the Plotly JS documentation.
I find out that it is possible to enable editing of title and axis labels.
https://github.com/benchopt/benchopt/assets/65614794/7d0db536-b6b7-401d-9324-c52158eb0ddf
Here is a live preview of the feature.
@apmellot your feedback is valuable!
Also related to #600.

That being said, I'm not 100% convinced with the features

It is not super intuitive
The editing is lost when viewing the plot with other params

@tomMoral WDYT?

shouldn't this rather be done through a config file?


[SPARK-47900] Fix check for implicit (UTF8_BINARY) collation

What changes were proposed in this pull request?

Fix method name and logic for cases where we want to check if the string has the UTF8 binary (implicit) collation.
Why are the changes needed?

#45592 introduced session level collation which meant that the concept of default collation is not the same as the implicit collation. Method in SchemaUtils had its name and logic changed to mean that the collation is binary orderable but that was not it's original intent. It should check if the collation is not  implicit/UTF8 binary (id != 0).
Does this PR introduce any user-facing change?

No.
How was this patch tested?

Existing unit tests.
Was this patch authored or co-authored using generative AI tooling?

No

@cloud-fan all checks passing after restarting the failed job

@cloud-fan can we merge this?

thanks, merging to master!


Scale tornado

Task
Scale tornado because the worker nodes are running out of CPU. Either bump the instance type to the next size or add additional nodes.
The following instance types are used by the cluster:

control plane nodes: m5.xlarge;
worker nodes: m5.xlarge.

Resources

Slack thread;
Slack announcement.

Scaled all three machinepools to have a min of 2 replicas (needed anyway for upgrade stability).


Benchmarks in C++

Description
Add benchmarks for datastream latency (between submitting and receiving), datastream submitting itself (including copy) and timestamping. All benchmarks written in C++ to benchmark the internal speed and not the wrapper to Python.

[x] Testing on MacOS.
[x] Testing on Windows.

Fixes https://github.com/spacetelescope/catkit2/issues/241
MacOS benchmarks
Performed on Macbook Pro 16" M2 Max (12 cores, 64GB memory)
Submitting
With copying data:
1x1: 88.4 ns per submit
2x2: 88.5 ns per submit
4x4: 87.5 ns per submit
8x8: 84.5 ns per submit
16x16: 135.3 ns per submit
32x32: 303.7 ns per submit
64x64: 685.5 ns per submit
128x128: 2257 ns per submit
256x256: 8506.1 ns per submit
512x512: 34081.5 ns per submit
1024x1024: 165554 ns per submit
2048x2048: 611174 ns per submit

Without copying data:
1x1: 44.9 ns per submit
2x2: 47 ns per submit
4x4: 48.9 ns per submit
8x8: 48.5 ns per submit
16x16: 48.8 ns per submit
32x32: 52.4 ns per submit
64x64: 50.6 ns per submit
128x128: 51.7 ns per submit
256x256: 49.5 ns per submit
512x512: 50.2 ns per submit
1024x1024: 54.2 ns per submit
2048x2048: 51 ns per submit

Latency

Timestamping
15.1287 ns per timestamp

Windows benchmarks
Performed on hicat-deux:
Submitting
With copying data:
1x1: 93.87 ns per submit
2x2: 95.07 ns per submit
4x4: 95.32 ns per submit
8x8: 104.26 ns per submit
16x16: 122.25 ns per submit
32x32: 214.08 ns per submit
64x64: 1566.98 ns per submit
128x128: 5815.06 ns per submit
256x256: 25002 ns per submit
512x512: 310941 ns per submit
1024x1024: 1.18724e+06 ns per submit
2048x2048: 6.40234e+06 ns per submit
Without copying data:
1x1: 127.61 ns per submit
2x2: 90.66 ns per submit
4x4: 91.51 ns per submit
8x8: 92.12 ns per submit
16x16: 90.98 ns per submit
32x32: 91.34 ns per submit
64x64: 91.23 ns per submit
128x128: 90.88 ns per submit
256x256: 91.25 ns per submit
512x512: 90.91 ns per submit
1024x1024: 122.83 ns per submit
2048x2048: 91.16 ns per submit

Latency

Timestamping
23.8282 ns per timestamp

Since this changes CI from Ubuntu 20.04 to Ubuntu 22.04, we need to change the required checks on Github too. But I'll do that after approval of this PR.

Also, important side note. This PR changes Python to version 3.7.16 from 3.7.6. This is a binary compatible version. But we should be certain about compatibility.

@ivalaginja The benchmarks are compiled alongside the Python library when you run python setup.py develop. You can run them from the build/bin folder.
@RemiSoummer Waiting for you to approve the Python 3.7.6 to Python 3.7.16` change.

@ivalaginja The benchmarks are compiled alongside the Python library when you run python setup.py develop. You can run them from the build/bin folder.

@ehpor Should this be contained in the documentation somewhere or is this common knowledge? I suspect it's the latter, might just not be true for an audience like me 😬

Checked with a full install on HiCAT that this is compatible. I did not install the BMC DMs nor the FLIR camera.


Flutter web with stripe

Is there any plan to support Flutter web with the Stripe integration?

Hi @jamesblasco
Unfortunately, this feature is not included in our immediate plans.
We will update the information if any changes


⚠ Quirk Club Argentina (API endpoint) has degraded performance

In 7103f6f, Quirk Club Argentina (API endpoint) (https://us-central1-quirkclub-dev.cloudfunctions.net/api/check/api) experienced degraded performance:

HTTP code: 200
Response time: 6938 ms

Resolved: Quirk Club Argentina (API endpoint) performance has improved in e186081 after 24 minutes.


App config1.1.4

Description
Fixes same issue as https://github.com/microsoft/spring-cloud-azure/pull/683

Codecov Report

Merging #684 into 1.1.x will increase coverage by 0.43%.
The diff coverage is 68.11%.

@@             Coverage Diff              @@
##              1.1.x     #684      +/-   ##
============================================
+ Coverage     55.74%   56.18%   +0.43%
- Complexity      750      754       +4
============================================
  Files           181      181
  Lines          3157     3186      +29
  Branches        226      233       +7
============================================
+ Hits           1760     1790      +30
+ Misses         1267     1261       -6
- Partials        130      135       +5

Impacted Files
Coverage Δ
Complexity Δ

...oud/config/AppConfigurationProviderProperties.java
80.00% <ø> (ø)
9.00 <0.00> (ø)

...config/AppConfigurationBootstrapConfiguration.java
67.64% <38.46%> (+2.02%)
9.00 <0.00> (ø)

.../azure/spring/cloud/config/stores/ClientStore.java
61.01% <61.53%> (-0.99%)
13.00 <3.00> (+1.00)
:arrow_down:

...g/cloud/config/AppConfigurationPropertySource.java
57.14% <66.66%> (+0.67%)
13.00 <0.00> (ø)

...e/spring/cloud/config/AppConfigurationRefresh.java
88.88% <66.66%> (-4.10%)
17.00 <0.00> (-1.00)

.../azure/spring/cloud/config/stores/ConfigStore.java
79.62% <66.66%> (+15.62%)
22.00 <3.00> (+4.00)

...ure/spring/cloud/config/stores/KeyVaultClient.java
66.66% <71.42%> (-1.34%)
7.00 <2.00> (ø)

.../config/AppConfigurationPropertySourceLocator.java
86.60% <100.00%> (+2.34%)
26.00 <0.00> (ø)

Continue to review full report at Codecov.

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


[PUI] SSO improvments

This addresses various ux issues/bugs in the SSO implementation in PUI.
Fixes https://github.com/inventree/InvenTree/issues/7972

@SchrodingersGat @wolflu05  this now works but is not very beautiful; is this changeset ok or should we (I) search for a different solution?

@matmair can you please provide a simple overview of what the issue was that you are fixing here?

@matmair any comments on the changes in social_auth_urls.py?

The current arrangement of URL definitions leads to errors in the discovery of the OIDC endpoints, the new one fixes that.


Unable to delete silence created for future time

While deleting a silence which got created for future time, I am getting below error
ERRO[0463] api error: bad_data: end time must not be before start time  source=api.go:552
How do I delete a silence which is in pending status?

The below code fixed the issue
if protoBefore(now, sil.StartsAt) { 		sil.StartsAt = now 	}
`func (s *Silences) Expire(id string) error {
s.mtx.Lock()
defer s.mtx.Unlock()
sil, ok := s.getSilence(id)
if !ok {
	return ErrNotFound
}

now, err := s.nowProto()
if err != nil {
	return err
}
if protoBefore(now, sil.StartsAt) {
	sil.StartsAt = now
}
if sil, err = silenceSetTimeRange(sil, now, sil.StartsAt, now); err != nil {
	return err
}
return s.setSilence(sil)

}`

This issue has been taken care with the recent version.

@kamaradclimber can you confirm that the 2.0.0 preview doesn't have this bug ? I think you were able to reproduce it

It got fixed with the latest master branch. https://github.com/prometheus/alertmanager/commit/08be6a4149cb512d9f91ab942eacfdc049c6fc10 Not sure the version you are referring.

You're right, https://github.com/prometheus/alertmanager/commit/08be6a4149cb512d9f91ab942eacfdc049c6fc10 isn't in https://github.com/prometheus/alertmanager/releases/tag/v0.7.0-rc.0. Thanks !

Hey Corentin, By the way, I just noticed V0.7.0  has this fix now.

Hi,
when I delete a silence through the api, it failed as deleted Method Not Allowed
here is the ruby code:
uri = URI('http://localhost:9093/api/v1/silences/9b6bc1e4-b798-4e48-a729-6ab2cf7062f0')
http = Net::HTTP.new(uri.host, uri.port)
req = Net::HTTP::Delete.new(uri.path)
res = http.request(req)
puts "deleted #{res.body}"
Result is : deleted Method Not Allowed

I am not familiar with ruby , but can please try curl -X DELETE http://localhost:9093/api/v1/silences/9b6bc1e4-b798-4e48-a729-6ab2cf7062f0 and see if it is successful.  as I am not familiar with ruby I am confused with http = Net::HTTP.new(uri.host, uri.port) . Your uri already has the host and port included 'http://localhost:9093'. What will happen when you define like this?

Thanks a lot!
I am too careless!


Fixed a few errors in devenv setup doc

I just went through setting up the development environment from the new repo and found some errors in the doc which this fixes.

Signed-off-by: Arnaud J Le Hors<EMAIL_ADDRESS>

@lehors thanks!


Support for GitHub enterprise

Currently this plugin does not work for GitHub enterprise since the base url would be different.

Thanks for flagging this, and for the PR!
I am wondering if we should support using GitHub Enterprise Server and GitHub.com with different configurations. I will have a think about that.

Fixed by #639.


Method Warmup encountered an error.

System Info
(tgi) root@e4f81ee9472d:/workspace# text-generation-launcher --env
2024-01-06T02:41:23.130896Z  INFO text_generation_launcher: Runtime environment:
Target: x86_64-unknown-linux-gnu
Cargo version: 1.70.0
Commit sha: 630800eed37b15c4b0c9eb8e6ab47212026720f7
Docker label: N/A
nvidia-smi:
Sat Jan  6 02:41:22 2024
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.47.03    Driver Version: 510.47.03    CUDA Version: 12.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA A100 80G...  On   | 00000000:81:00.0 Off |                  Off |
| N/A   31C    P0    63W / 300W |      0MiB / 81920MiB |      0%      Default |
|                               |                      |             Disabled |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+
Information

[ ] Docker
[X] The CLI directly

Tasks

[X] An officially supported command
[ ] My own modifications

Reproduction
...
BUILD_EXTENSIONS=True make install
after make install, I can start server normally. But it doesn't support FlashAttension， so I do something as below:
1 cd server
2 make -f Makefile-flash-att install-flash-attention
3 make -f Makefile-flash-att-v2 build-flash-attention-v2-cuda
4 make -f Makefile-vllm install-vllm-cuda
after above operation，it can  support flashattention， but when I start text-generation-launcher like this:
text-generation-launcher --model-id HuggingFaceH4/zephyr-7b-beta
it failed, some error info:
2024-01-06T02:50:38.149362Z  INFO download: text_generation_launcher: Successfully downloaded weights.
2024-01-06T02:50:38.149682Z  INFO shard-manager: text_generation_launcher: Starting shard rank=0
2024-01-06T02:50:48.160966Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2024-01-06T02:50:48.850014Z  INFO text_generation_launcher: Server started at unix:///tmp/text-generation-server-0
2024-01-06T02:50:48.861594Z  INFO shard-manager: text_generation_launcher: Shard ready in 10.710679778s rank=0
2024-01-06T02:50:48.961325Z  INFO text_generation_launcher: Starting Webserver
2024-01-06T02:51:19.005001Z  WARN text_generation_router: router/src/main.rs:166: Could not find a fast tokenizer implementation for HuggingFaceH4/zephyr-7b-beta
2024-01-06T02:51:19.005042Z  WARN text_generation_router: router/src/main.rs:169: Rust input length validation and truncation is disabled
2024-01-06T02:51:19.005051Z  WARN text_generation_router: router/src/main.rs:349: --revision is not set
2024-01-06T02:51:19.005058Z  WARN text_generation_router: router/src/main.rs:350: We strongly advise to set it to a known supported commit.
2024-01-06T02:51:19.359166Z  WARN text_generation_router: router/src/main.rs:182: Could not retrieve model info from the Hugging Face hub.
2024-01-06T02:51:19.359189Z  WARN text_generation_router: router/src/main.rs:194: no pipeline tag found for model HuggingFaceH4/zephyr-7b-beta
2024-01-06T02:51:19.365975Z  INFO text_generation_router: router/src/main.rs:213: Warming up model
2024-01-06T02:51:19.885037Z ERROR text_generation_launcher: Method Warmup encountered an error.
Traceback (most recent call last):
File "/root/anaconda3/envs/tgi/bin/text-generation-server", line 8, in
sys.exit(app())
File "/root/anaconda3/envs/tgi/lib/python3.9/site-packages/typer/main.py", line 311, in call
return get_command(self)(*args, **kwargs)
File "/root/anaconda3/envs/tgi/lib/python3.9/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/root/anaconda3/envs/tgi/lib/python3.9/site-packages/typer/core.py", line 778, in main
return _main(
File "/root/anaconda3/envs/tgi/lib/python3.9/site-packages/typer/core.py", line 216, in _main
rv = self.invoke(ctx)
File "/root/anaconda3/envs/tgi/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/root/anaconda3/envs/tgi/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
Expected behavior
So， if I want to use FlashAttention， How can I do?

If  I only do
make -f Makefile-flash-att install-flash-attention
and
make -f Makefile-vllm install-vllm-cuda, it can work well
But if I do
make -f Makefile-flash-att-v2 build-flash-attention-v2-cuda
it happens error like above.  The problem seems to flash-attention-v2.

The stacktrace you linked is trucated. Can you show the entire stacktrace?

@OlivierDehaene  detail in tgi_error.log.
tgi_error.log


docs: add note that we're in alpha

nit: I think it'd be good to mention what the expectations are around the alpha, e.g. breaking changes frequently?

Done


[CMake] Add zlibstatic target alias when BUILD_SHARED_LIBS is "OFF"

Add zlibstatic alias when BUILD_SHARED_LIBS is "OFF".
IMO, a matter of debate / preference whether this is desirable for inclusion. Figured I'd offer it up for consideration.

This is probably a good idea.

@Dead2 notice that codecov diff is -0.61% (for a change that doesn't affect source code), perhaps threshold setting should be 1%, like the example on codecov settings page shows.

@nmoinvaz Well, in this case ubuntu_gcc did report big changes in coverage, for whatever reason, and ubuntu_gcc_osb seems to have failed to report in its coverage at all. So the report says -432 lines of coverage, and that is too much to ignore if it were to be real.
I wish we could hit an [Ignore] button on that coverage failure though, after manual review.
So, the big question now is whether we want to get this into todays release. It looks safe enough to me.


Not activiating first time

Sticky navbar not activates on first time, only activates after resize events.  But when i calling this.onResizeEvents(element) manually in renderElement function, it seems working.

Hi @tengismn
Could you show me this problem online on Plunkr or maybe your site? Eventually put your html/js here and i will check that.

Plnkr

Fixed in version 1.1.5.
Working Plunker.
If you only want the navbar to be sticky, consider use just this css lines instead of js library:
position: fixed; top: 0; left: 0; width: 100%;
Working Plunker with css only.

Hi,
this is my website, i got the template from themeforest.
http://7982109e.us.ngrok.io/
On Mon, Nov 21, 2016 at 5:29 PM, Rafał Gałus<EMAIL_ADDRESS>wrote:

Hi @tengismn https://github.com/tengismn
Could you show me this problem online on Plunkr or maybe your site?
Eventually put your html/js here and i will check that.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rgalus/sticky-js/issues/5#issuecomment-261887171, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AE08gYr23nCIxlbW3LTugiqzBTeC0BTKks5rAWRggaJpZM4K32Cf
.


With Astro tsconfig.json needs to be updated

With Astro tsconfig.json needs to be updated. Otherwise the imports and components don't behave the right way.
{
  "extends": "astro/tsconfigs/strict",
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": ["src/*"]
    },
    "jsx": "react-jsx"
  }
}

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.


⚠ Bofrost.be has degraded performance

In eedb2ef, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1816 ms

Resolved: Bofrost.be performance has improved in 300fefe after 36 minutes.


Requirements for Hybrid AAD Join

Please add the resources Hybrid AAD join needs to work as well, thanks

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

ID: 1aafc065-6ee6-e3cf-31ba-ab3dd277fb23
Version Independent ID: 35d3102e-4ff7-9408-8dbd-513b7dfff5c0
Content: Windows Autopilot networking requirements
Content Source: windows/deployment/windows-autopilot/windows-autopilot-requirements-network.md
Product: w10
GitHub Login: @greg-lindsay
Microsoft Alias: greg-lindsay

@officedocsbot assign @mypil

@pyoungberg @fergusstrachan - Thank you for submitting feedback.
I will get this issue over to the Win10 ITPro writing team for investigation.
Thank you for reporting and making the docs better. Much appreciated.
I made a note to request the team to update this when the work is complete.

@pyoungberg - From our understanding, the issue has been resolved but it may take a few days for the merged content to appear in the article. If you feel it hasn't been resolved, please re-open this issue.
Thank you for your contribution to make the docs better! Much appreciated!

@officedocsbot close


Defining a function to access record field crashed repl  (going through the tutorial)

I did not try to test anything more than this. The repl said it is likely a bug so I just submitted it.
The offending code:
return = .foo
The RUST_BACKTRACE=1 output:
An internal compiler expectation was broken. This is definitely a compiler bug. Please file an issue here: https://github.com/roc-lang/roc/issues/new/choose thread 'main' panicked at 'no lambda set found for (16.IdentId(1), []): LambdaSet {     set: [         ( 16.2, []),     ],     representation: Interned(         0,         PhantomData,     ), }', crates/compiler/mono/src/layout.rs:1411:17 stack backtrace:    0: rust_begin_unwind              at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/panicking.rs:584:5    1: core::panicking::panic_fmt              at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/core/src/panicking.rs:142:14    2: roc_mono::layout::LambdaSet::find_lambda_name    3: roc_mono::ir::find_lambda_name    4: roc_mono::ir::specialize_symbol    5: roc_mono::ir::with_hole    6: roc_mono::ir::from_can    7: roc_mono::ir::from_can_let    8: roc_mono::ir::from_can    9: roc_mono::ir::specialize_variable   10: roc_mono::ir::specialize_external_help   11: roc_mono::ir::specialize_all   12: roc_load_internal::file::run_task   13: roc_load_internal::file::load_single_threaded   14: roc_load_internal::file::load   15: roc_load::load_and_monomorphize_from_str   16: roc_repl_cli::repl_state::ReplState::eval_and_format   17: roc_repl_cli::repl_state::ReplState::step   18: roc_repl_cli::main   19: roc::main

Fixed by #4819


Deploying skywalking 6.0 GA encountered some problems

first, the webUI pops up with error banner like:
-Validation error of type FieldUndefined: Field 'loadAlarmList' in type 'Query' is undefined @ 'loadAlarmList'
-Validation error of type FieldUndefined: Field 'getClusterBrief' in type 'Query' is undefined @ 'getClusterBrief'
-Validation error of type FieldUndefined: Field 'numOfAlarmRate' in type 'AlarmTrend' is undefined @ 'getAlarmTrend/numOfAlarmRate'
second, agent seems connect to the collectors successfully and the data stores into ES but nothing shows up in the webUI

so is there detailed instructions for version 6.0 quickly startup, we use ES6 as the storage, what could be the highest possible problem we meet

Quick startup is provided in document, only use H2 as storage.

there are many errors in the oap.log:
INFO: Transport failed
io.netty.handler.codec.http2.Http2Exception: Unexpected HTTP/1.x request: GET /agent/gRPC
and
org.apache.skywalking.oap.server.receiver.trace.provider.parser.SegmentParseV2 - 111 [grpc-default-executor-3] ERROR [] - null

Why do you send gRPC to HTTP PORT?

org.apache.skywalking.oap.server.receiver.trace.provider.parser.SegmentParseV2 - 111 [grpc-default-executor-3] ERROR [] - null

This could be caused by you didn't reboot applciation(agent), but delete the ElasticSearch.

for second question, i think you are right,
and for first question,
core:
default:
restHost: ${SW_CORE_REST_HOST:<IP_ADDRESS>}
restPort: ${SW_CORE_REST_PORT:12800}
restContextPath: ${SW_CORE_REST_CONTEXT_PATH:/}
gRPCHost: ${SW_CORE_GRPC_HOST:<IP_ADDRESS>}
gRPCPort: ${SW_CORE_GRPC_PORT:11800}
this is the core configs in v6.0, which port should our agent connect to?

gRPCPort

all right i think our configuration is correct now but webUI still continue pops up error banners, we configure the core.default to our own configs, and point agent to connect gRPC host port..

Check your storage, es maybe? Does it have data already? You need to check your oap log, to see what is happening.

Check your storage, es maybe? Does it have data already? You need to check your oap log, to see what is happening.

it works now! thank you very much for your patience, dude


Allow users to delete categories

Upon creating a category, I realized I didn't want/need it, and yet there is no way to delete... I propose we add a delete function to categories so our user isn't stuck staring at an eyesore they're created and wondering why they can't delete something they themselves created! >__<

apparently one of the files I altered created a merge conflict. It appears I've resolved the conflict but it is still requiring a manual merge? Best to get with Gavin to see how to proceed.


move makeError function to util module

and use in wrapped RTCRtpSender

Codecov Report

Merging #103 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master    #103      +/-   ##
=========================================
- Coverage   98.21%   98.2%   -0.01%
=========================================
  Files           2       3       +1
  Lines         952     949       -3
=========================================
- Hits          935     932       -3
  Misses         17      17

Impacted Files
Coverage Δ

util.js
100% <100%> (ø)

rtcpeerconnection.js
98.06% <100%> (-0.01%)
:arrow_down:

rtcrtpsender.js
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


[Localization] Wrong text encoding in Skype for Business Bot

Any non-English text are wrong encoded.
Week ago the same code worked as expected.
System Information (Required)

SDK Language: C#>
SDK Version: 3.8.1
Development Environment: <AZURE_APP_SERVICE>

Issue Description
any non-English text are wrong encoded.
Standard Bot Application Visual Studio Template.
Steps to Reproduce

Create Bot using standard Bot Application Template
Use Azure App Service to deploy a bot.
Type some non-English text in Skype For Business Client for Windows or OWA

Actual Results

@Mikhail2k15 Thanks for reporting this issue.  We have fixed the International character encoding bug.  Can you please confirm you are now able to receive the text as expected?

I still see invalid characters. For example: I try to send a welcome message, with some russian characters. Here's what I get in the emulator. The same goes for Skype or Telegram, when the bot tries to send some questions in russian.

Hoping that issue has been resolved, closing it. Feel free to reopen if any questions.


API doc error: sap.m.p13n.GroupPanel and sap.m.p13n.SortPanel

Hi,
according to the API documentation (and thus the generated TypeScript type) the setP13nData method of the GroupPanel as well as the SortPanel is static.
//TS2576: Property 'setP13nData' does not exist on type 'SortPanel'. Did you mean to access the static member 'SortPanel.setP13nData' instead?
sortPanel.setP13nData(initialSortData)

That's of course not correct. What is also not correct is the type aP13nData that is described as array of Items (which is correct) but is not an array (is sap.m.p13n.SortItem or sap.m.p13n.GroupItem but should be sap.m.p13n.SortItem[] or sap.m.p13n.GroupItem[]).
The API documentation for the setP13nData of the SelectionPanel in turn is correct and can be used as blueprint for the correction of the others.
Additionally GroupPanel and SortPanel extend the not documented (or no longer existing?) sap.m.p13n.QueryPanel whereas the SelectionPanel extends the sap.m.p13n.BasePanel.
Retrieving a SelectionPanel via const selectionPanel = this.getView().byId("selectionPanel") as SelectionPanel works fine but doing the same for the other two Panels causes a type error because sap.m.p13n.QueryPanel seems not to be of type UI5Element as expected by the byId method of the View.
//TS2352: Conversion of type 'UI5Element | undefined' to type 'GroupPanel' may be a mistake because neither type sufficiently overlaps with the other.
//If this was intentional, convert the expression to unknown first.
//Type 'UI5Element' is missing the following properties from type 'GroupPanel':
//getEnableShowField, getTitle, setEnableShowField, setTitle
const groupPanel = this.getView().byId("groupPanel") as GroupPanel

cheers
Dominik

Hi @heimwege, thanks for opening this issue and helping us making UI5 more robust for TypeScript development. I have created an internal incident<PHONE_NUMBER>. The responsible owners will update the issue as soon as they prepared a fix for that.


[SPARK-21057][ML] Do not use a PascalDistribution in countApprox

What changes were proposed in this pull request?
Use Poisson analysis for approx count in all cases.
How was this patch tested?
Existing tests.

Test build #77931 has started for PR 18276 at commit 8a14713.

Test build #77931 has finished for PR 18276 at commit 8a14713.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/77931/
Test FAILed.

Retest this please.

Test build #77938 has started for PR 18276 at commit 8a14713.

Test build #77938 has finished for PR 18276 at commit 8a14713.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/77938/
Test FAILed.

Merged build finished. Test FAILed.

Test build #77987 has started for PR 18276 at commit f5311f9.

Test build #77987 has finished for PR 18276 at commit f5311f9.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/77987/
Test PASSed.

Merged to master


Add Notebooks section to home page

Description:
Need to add a Notebooks section to the home page.
Suggested Labels:

Suggested Assignees:

Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:

Will be fixed via https://github.com/wso2/docs-ballerina-vscode-extension/pull/141.

Notebooks need not be on the home page as it is not a prominent feature.


Fix dependabot.yml to work with dev deps

As you can see, your dependecies are not updated.
Dependabot expects relative paths, not absolute ones.

@sobolevn: Great! Thanks :)

@sobolevn: dependabot opened 22 pull-requests since this pull-request is merged. Is this wanted behavior?

Yes, because we have a lot of outdated deps 🙂

Fair enough :D
Do you have any recommendations on how to merge the prs, fix those which break the test suite and which order to choose?
For example: can i just merge all prs where the checks are green?


unable to load files in client

[write something useful and descriptive here]
my log id: 742d09038c3f3d4886f9f91c

@nfbarrett hmm your KBFS process isn't running -- it seems like the dokan drivers went missing:
2019-02-06T09:53:52.558828-06:00 - [ERRO kbfs start.go:143] 0d1 Running KBFS without a filesystem mount due to: loadDokanDLL: cannot load Dokan DLL: The specified module could not be found.

Did you try to enable explorer integration and it failed?  Maybe you could uncheck that box in the settings and restart, since it should be able to run without dokan as long as explorer integration is turned off.

Did you try to enable explorer integration and it failed? Maybe you could uncheck that box in the settings and restart, since it should be able to run without dokan as long as explorer integration is turned off.

Yep looks like that did it!


Zend Code fails to parse methods of classes using traits

Zend\Code\Reflection\MethodReflection fails to return the method body of classes which use traits.
Observed behaviour somehow depends on classes being located in separate files or not.
If done the "right" way (https://gist.github.com/Pittiplatsch/acdc82dba9a537462a55#file-test_everything_in_separate_files-php), a warning is thrown, while parsing succeeds if all code is located within one single file (https://gist.github.com/Pittiplatsch/acdc82dba9a537462a55#file-test_all_in_one_file-php).
Mixing (https://gist.github.com/Pittiplatsch/acdc82dba9a537462a55#file-test_trait_in_separate_file-php) doesn't throw a warning, but returns an empty string.
See this gist for working and non-working examples:
https://gist.github.com/Pittiplatsch/acdc82dba9a537462a55

bit me too... ¦-/

Just to point out: While handling of plain vanilla traits now works with ZF2.4, aliased usage of trait methods still produce errors like:
``Fatal error: Uncaught exception 'Zend\Code\Generator\Exception\InvalidArgumentException' with message 'A method by name doSomething already exists in this class.' in [...]/vendor/zendframework/zendframework/library/Zend/Code/Generator/ClassGenerator.php on line 751`

@Pittiplatsch That issue you've referred to in relation to aliased trait methods is causing big issues for me. Do you (or anyone) know if that is still being handled in this ticket, or if there is a new one?

@chasepeeler I don't know of another ticket.

Should we create a new issue for what @Pittiplatsch mentioned in his comment on 4/20, or is that being worked from this ticket?

This issue has been closed as part of the bug migration program as outlined here - http://framework.zend.com/blog/2016-04-11-issue-closures.html


Use Element: replaceChildren() method to remove all child nodes.

This PR replaces innerHTML = '' with replaceChildren() to remove all child nodes.
https://stackoverflow.com/a/65413839
https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren
view.FindSidebar.deactivate is also updated in the hope of resolving the problem reported in #1358. Although the change doesn't solve the problem, closing the sidebar gets faster.
recording
efficientdet-d3.onnx file is used.

replaceChildren is more recent and requires Chrome 86. Is the improvement from calling in deactivate and would iterating on lastChild with removeChild work?

replaceChildren is more recent and requires Chrome 86.

Added a polyfill function for that. https://github.com/lutzroeder/netron/pull/1359/commits/e8b72a52531030cca85d229430a389e62adbb4ef

Is the improvement from calling in deactivate and would iterating on lastChild with removeChild work?

Yes, I've confirmed that doing so still works.
I've found out that since I've added this._content.replaceChildren(); line in view.FindSidebar.deactivate, I need to add view.FindSidebar.activate method and call this._update(); in there. And the code in view.FindSidebar.focus needed to moved to view.FindSidebar.activate. I hope this change is correct. Please examine it.

I've noticed that when I double-click Connections/Weights list item on FIND sidebar or click a connection on the graph view, CONNECTION PROPERTIES/TENSOR PROPERTIES sidebar is opened. After closing the sidebar, FIND sidebar reappers. But this is not the case with Nodes list item. After closing NODE PROPERTIES sidebar, FIND sidebar doesn't reappear. I thought this is a bit incosistent but I'm not sure what is a proper behavior here.


Fix #7043 Do not display crash reporter link when no crash_reporter a…

…ccess

Yes, I was thinking to write "network administrator", but "firewall administrator" is even better.

We have many references throughout pfSense and the book that refer to the same thing multiple ways, such as "firewall", "system", "box", "router", and so on. In the book as I go I've been trying to change them all to "firewall" where it makes more consistent sense. It's not something I've been compelled to change en masse, however (yet).


Cannot scan for advertising peripheral in background

Peripheral : my ios application for swift
Central : Raspberry Pi using noble
I want to scan my ios application as peripheral in background with noble.
But, cannot find it.
Instead of using noble, I use lightBlue as central, works well.
I'm sorry for not good at explaining in English.
How can I solve it?
var noble = require('noble');

var scanUUID = '66995c84a3294112b745c997475cf017';
var scanUUIDs = [scanUUID];

noble.on('stateChange', function(state) {
    console.log('on -> stateChange: ' + state);

    if (state == 'poweredOn') {
        noble.startScanning(scanUUIDs, false);
    } else {
        noble.stopScanning();
    }
});

noble.on('scanStart', function() {
    console.log('on -> scanStart');
});

noble.on('discover', function(peripheral) {
    var name = peripheral.advertisement.localName; // maybe ignored in background
    var uuid = peripheral.advertisement.serviceUuids[0];
    console.log('peripheral serviceUUID = ' + uuid);
    console.log('peripheral name = ' + name);
});

@arusu0629 have you tried it with an Android central as well? What happens if you try to scan for all peripherals instead of a specific UUID?
I'm wondering if there is something special about iOS central and iOS peripheral.

@sandeepmistry Thank you for replying my question.
I figure out my problem reading this
The bluetooth-peripheral Background Execution Mode
All service UUIDs contained in the value of the CBAdvertisementDataServiceUUIDsKey advertisement key are placed in a special “overflow” area; they can be discovered only by an iOS device that is explicitly scanning for them.
So, cannot scan for advertising peripheral in background.
I'm sorry for lacking my wisdom.
By the way, I ask you another question.
How do you decide to peripheral variable "id" ?
peripheral = {
  id: "<id>", <- this one
  address: "<BT address">, // Bluetooth Address of device, or 'unknown' if not known
  addressType: "<BT address type>", // Bluetooth Address type (public, random), or 'unknown' if not known

@arusu0629 no worries.

How do you decide to peripheral variable "id" ?

Linux: it's the Bluetooth Address without the :'s
OS X: id provided by CoreBluetooth.

@sandeepmistry
Thank you for answering my question.


Geolocate IP address and calculate distance

The title of the playbook
Geolocate IP address and calculate distance
Purpose of the playbook
This playbook queries for the geolocation of IP addresses via IPStack and Maxmind and then calculates the distance between two coordinates. The results are stored in the playbook and sent to Mattermost or Slack or as an alert in TheHive or DFIR-IRIS (to be discussed for implementation).
External resources used by this playbook
IPStack, Maxmind, Mattermost (or Slack), TheHive (optional), DFIR-IRIS (optional)
Target audience
CTI
Breefly list the execution steps or workflow
No response

Search ip-src/ip-dst in MISP

Use geolocation database
Pinpoint on a map

Search domains / hostnames in MISP

Use TLD to identify country
Pinpoint on a map


community[patch]: Add unit test to catch bad all definitions

This will catch all dynamic all definitions.

https://github.com/langchain-ai/langchain/pull/21650


body_class causing issues with page layout for specific page slugs

Submit a feature request or bug report

[X] I've read the guidelines for Contributing to Roots Projects
[ ] This is a feature request
[X] This is a bug report
[X] This request isn't a duplicate of an existing issue
[X] I've read the docs and NPM Debugging Guidelines post and followed them (if applicable)
[X] This is not a personal support request that should be posted on the Roots Discourse forums

What is the current behavior?
This is not actually a very important bug, but in some situations can be problematic. The issue occurs when I add a page with a title for example "sidebar" or "container" or "h1" etc. Function body_class() from extras.php file adding page slug as a class to the body and this causing that CSS styles relating to the same class breaking the whole page layout.
What is the expected or desired behavior?
I think this function should return slug with some prefix to prevent this behavior. For example:
post_type-page-slug

Bug report
Please provide steps to reproduce, including full log output:

Create a new page
Add a title, for example: sidebar
Publish the page

Please describe your local environment:
WordPress version: 4.7.4
OS: OSX
Where did the bug happen? Development or remote servers?
Development

More than a bug, this feels to me like a different approach in writing your css. You can just be more specific when targeting these classes, for instance use body.container instead of just .container.

There's not a reliable way to ensure that the body class attribute won't inadvertently contain a class declared in your css absent of element specificity.

More than a bug, this feels to me like a different approach in writing your css. You can just be more specific when targeting these classes, for instance use body.container instead of just .container.
I didn't write any line of mine own css code yet. I just installed a clear theme and playing with it a little bit when I came across this issue.

There's not a reliable way to ensure that the body class attribute won't inadvertently contain a class declared in your css absent of element specificity.
Of course, isn't possible cover all classes declared by a developer in their css code. But for example .container it is a pure Bootstrap class. Even more .sidebar it is your own class declared in _grid.scss. I am sure it is possible to cover all Bootstrap classes or your own classes. Just small modification mentioned body_class() function will solve this issue. Btw. Of course in my own css code, I can be more specific but many developers use pure Bootstrap in their plugins. What then?

I didn't mean you wrote a wrong css, I meant that knowing you might end up having those classes in your body, you have to manually target body.container and reset the properties you get from bootstrap. An example could be
body.container{
  margin: 0;
  padding: 0;
  width: 100%;
}

It still feels to me that it's easier and cleaner to add this exception rule more than adding a prefix to all body classes and having to prefix my whole stylesheet.


Add Makefile or GUI

You can update a Makefile so that can easily compile and install.
Further on, GUI also need to be considered.

good idea


Support raw binary output (and input)

Would it be possible to find a good way to output raw binary data from PostgREST?
It would mean returning data like application/octet-stream
https://www.iana.org/assignments/media-types/application/octet-stream
The main problem is that it cannot be put in a json object which is text.
In PostgreSQL this type of data is stored as bytea.

@nicklasaven What is your use case?

Hi, sorry for late reply
My use case might be rare, so maybe I should solve it in some other way.
But dealing with json is in many cases heavy and not the way to go.
I use PostGIS and are testing solutions with the new twkb export format.
That is a format that compresses the geoemtries by delta-encoding the coordinates and stores them as VarInts, the same way as protobuffer do.
So, what I want to do is getting thetwkb geometries out through the rest api.
But maybe with nginx in front I should get them directly from the db instead. But I like the level of security PostgREST adds by just accepting right formatted requests. It is an easy way to avoid any sql-injection problems.

Can you explain a little more? You're saying, for instance, that one of your tables has a column with big binary values, and you would like to return one of these values directly without it being embedded in JSON?

My use case is pretty simple but I have not been to find a solution. I have a content type of application/pdf (blob) that I would like to write (post) to the database using the postgres bytea binary type.   My attempts at using with text datatype with base64 encoding got me close but eventually became too complex to justify for my skill set.

My use case might be better to solve outside postgrest as discussed above, but it might be nice to ba able to do it inside postgrest too.
I saw in #257 that @begriffs suggests a one row return limitation. For my use case it would be better if the result was just concatenated. The format includes information about each parts length and have a defined ending for each geoemtry. So getting a long binary string scrubbed from the bytea meta-data would be the best.
Then the job is up to the client to rip it apart and render it on a map.
In my case the binary format also includes an ID so the geometry can be linked to attribute data client side.
But I am not sure this type of usage has a generic usage, so probably better to do in other ways.
An alternative could be a possibility to add a delimiter to the call, like the postgresql function string_agg(string, delimiter). In this case it should be an ascii sequence (or hex string or whatever)  so there is no encoding problems when used as binary.

@nicklasaven would encoding the bytea field as base64 and keeping the json be a possible solution?
What is the size of such files in your case?

When testing a write using Post the CSV format was easiest make work. I could not get an object to write with bytea, only text.  My pdf blob's are only around 100k so even with encoding speed was not an issue. I just ran out of gas with encode/decode logic when retrieving from text due to my inexperience with front end (javascript).

@diogob Well, I guess base64 is a way to go. I tested and the encoding is very fast. That should work out of the box by just encoding in a view I guess. Only downside of course is the extra 33 % of size.
About sizes it can be anything. I mean the format really show off when used with large data sets, but then a rest-api isn't the way to go anyway.

I'm looking for a similar feature. My use case is to receive binary image data directly via postgrest.
So i could use something like this
<img src="http://server:3000/image?id=eq.1&select=data">

@jotpe just out of curiosity, what is the value of having image data in the database, why not files and keep url in the database?

The pros and cons are discussed often. In my case, I want ACID binary data and a single point of storage.

what if you tried casting the data like
select=data:: bytea
The idea is if you can somehow in sql cast a (bynary) column to a string, you can get that with postgres.
But you can not use it directly as a url for your image, you have to decode it clientside (pass it through a js function)

Yes, thanks.
But my intention was another use case for this feature request. Trying to avoid the use of a js function to convert the string representation of binary data to real binary data.

Lack of knowledge, how could a prototype in Haskell look like?

@nicklasaven @jotpe you can use the PostgreSQL encode function. It's documented here. So any view exposed through PostgREST can take a bytea column and present it as base64. For small images this is very interesting since it lets you load then directly in the browser using image tags.

Thanks. Of course I am using already img tags with an base64 data url, generated by the encode function in postgresql.
But I meant Haskell, how could a prototype looks like in the postgrest Haskell code to implement a raw binary output? Making this comment before possible?

@jotpe currently there would be a lot of hacking to support that example.
I believe the best way would be to create a new constructor for the type Action and an entirely different case in App.hs

@nicklasaven Would concatenating the binary rows with a '\n' be acceptable for your use case? I'm planning to implement this feature.

@steve-chavez interesting! Yes, I guess I can strip away the \n. Or could it be an option to just concatenating without any delimiter?

I merged @steve-chavez's  pull request implementing this feature!

@steve-chavez Does PostgREST support binary input? I'd like to post raw binary data (not base64) to /rpc/my_func, where my_func is a stored procedure that has one parameter of type bytea.

@W1M0R Not for now, but progress on binary input is being tracked at https://github.com/PostgREST/postgrest/issues/922.


How to make build mvn site by travis ?

I've just tried your project. It runs perfectly fine, i've just created you a PR to update your README. Now, everuthing runs fine, the site is uploaded, and... it's great !... but... now, i would like to make deploy the site by travis or any CI tool. I wonder how is this possible as i don't know where to put my credentials (for now in my .m2)... and as by nature they are confidential, i even wonder how i could do the mvn site deploy ?
Thank you in advance for your help, and congrats for your plugin : it rocks.

Here is the PR : #94

An another approach would to tell travis not to try to upload site, but just to locally build it : is that possible ?

The travis build did pass, you guys did a great job, the mvn site is not played by travis :+1:
https://travis-ci.org/adriens/schemacrawler-plugin-neo4j/builds/70498469
This is really great ;-p


git push to a remote with an ssh password

Issue Type: Feature Request
I have use a remote git server which needs an ssh password.
If I use the menu option to push it says permission denied, via terminal it would simply ask me for a password for my remote.
Please add such an option via the UI
VS Code version: Code 1.31.1 (1b8e8302e405050205e69b59abb3559592bb9e60, 2019-02-12T02:16:38.656Z)
OS version: Darwin x64 18.2.0

/duplicate #13680


Indonesian Translation of Getting Started

Because there's  no Indonesian translation existed, so I want to start one.

Awesome let's start for bahasa :D

Ok, I want to help.

Sound great, i can help 😄

Be sure to join the Bahasa Indonesia Translation chat room in Gitter. We can discuss translation over there.
Check out the Translations Guide as well for more technical info.
.

Sound's great, maybe I can help

awesome, hope can contribute to it.

Berhubung udah lama banget.. saya coba lanjut aja ya.. :)

Saya juga bingung, ini sudah selesai atau tiba-tiba break?

Hey all, any updates on this?
We have moved our translation collaboration to the https://github.com/FreeCodeCamp/TranslationExpansion repo. This issue can continue here, owing to the discussion length it has, but please log any new issues on the above repo.
Thanks, and Happy Translating!

@raisedadead The translation for Getting Started is complete, but it was made by several translators and has some inconsistencies.
Haven't heard much from the original translators. I'm hesitant to fix it up myself since I'm not a native Indonesian speaker. There are campers in my area who are interested in cleaning up the translation and making the PR themselves. Can't make any guarantees, though.

Moved to https://github.com/FreeCodeCamp/TranslationExpansion/issues/87


Verification email not being sent

Describe the bug
Verification emails are not being sent to multiple addresses I've tried on my new account
Expected behavior
I expect to receive an email
To Reproduce
I go to Account Settings > Account Emails > Options > Resend verification email
I see the f"Verification email for {email} resent" message at the top of the window. No email is ever received. I have of course checked spam. All three addresses I have tried are on different hosts.
My Platform
I don't believe it to be relevant, but I did try this both on Chrome and Edge

PyPI's asynchronous job queue saw a backup beginning around 09-17-2019 21:28:00 UTC due to a large influx of messages. The worker pool has been temporarily expanded to process the remaining messages and we'll be investigating what caused the influx. Messages should be up to date within an hour, and all backlogged emails and cache purges should be complete.

The queue has cleared. If you're still experiencing this please reopen this issue.


Error returned when trying on Patreon content

Checklist

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2021.04.17
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[ ] I've searched the bugtracker for similar issues including closed ones

Verbose log

youtube-dl --write-sub -o "S%(season_number)02dE%(episode_number)02d - %(title)s.%(ext)s" -a youtube.txt --verbose
[debug] System config: ['--prefer-free-formats']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--write-sub', '-o', 'S%(season_number)02dE%(episode_number)02d - %(title)s.%(ext)s', '-a', 'youtube.txt', '--verbose']
[debug] Batch file urls: ['https://www.patreon.com/posts/tansjs-sunday-49973145']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.04.17
[debug] Python version 3.9.2 (CPython) - Linux-5.11.11-200.fc33.x86_64-x86_64-with-glibc2.32
[debug] exe versions: ffmpeg 4.3.2, ffprobe 4.3.2
[debug] Proxy map: {}
[Patreon] 49973145: Downloading JSON metadata
ERROR: An extractor error has occurred. (caused by KeyError('post_file')); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/youtube_dl/extractor/common.py", line 534, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/lib/python3.9/site-packages/youtube_dl/extractor/patreon.py", line 148, in _real_extract
    post_file = attributes['post_file']
KeyError: 'post_file'
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/youtube_dl/extractor/common.py", line 534, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/lib/python3.9/site-packages/youtube_dl/extractor/patreon.py", line 148, in _real_extract
    post_file = attributes['post_file']
KeyError: 'post_file'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/youtube_dl/YoutubeDL.py", line 806, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/youtube_dl/YoutubeDL.py", line 827, in __extract_info
    ie_result = ie.extract(url)
  File "/usr/local/lib/python3.9/site-packages/youtube_dl/extractor/common.py", line 547, in extract
    raise ExtractorError('An extractor error has occurred.', cause=e)
youtube_dl.utils.ExtractorError: An extractor error has occurred. (caused by KeyError('post_file')); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description

I was trying to download a video to keep locally for storage on my media server for personal use and got this error that asked me to post here.
youtube-dl-error.txt
and the relevant section of the HTML which I belive is related to the error is attached here. The whole file contains far too much pii to post publicly.
youtubedl-test.txt

I found the issue and preferred template after posting this so unfortunately didn't search for the problem first. There was a issue posted about Patreon but there wasn't enough info in the post to see if it was the same
https://github.com/ytdl-org/youtube-dl/issues/28671
whoops and another - https://github.com/ytdl-org/youtube-dl/issues/26940
Hopefully my bug report shows a bit more detail about the issue at hand. Happy to do some testing or provide a more comprehensive HTML source if requested.

After digging into it and the patreon.py code it looks like the module requires authentication now as this is the relevant section it errors on when not logged in and you can see it doesn't contain the "post_file" value which is visible when logged in.
 "post": {
  "data": {
   "attributes": {
    "change_visibility_at": null,
    "comment_count": 168,
    "created_at": "2021-04-13T08:30:22.000+00:00",
    "current_user_can_comment": false,
    "current_user_can_delete": false,
    "current_user_can_view": false,
    "deleted_at": null,
    "edit_url": "/posts/tansjs-sunday-49973145/edit",
    "edited_at": "2021-04-13T09:03:55.000+00:00",
    "has_ti_violation": false,
    "image": {
     "height": 1080,
     "url": "https://image.mux.com/eczqtdsUBnoy02rXLd8ldxfXmrSFCQWmGcKJiFq0202ruY/thumbnail.jpg?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ik5CY3o3Sk5RcUNmdDdWcmo5MWhra2lEY3Vyc2xtRGNmSU1oSFUzallZMDI0In0.eyJzdWIiOiJlY3pxdGRzVUJub3kwMnJYTGQ4bGR4ZlhtclNGQ1FXbUdjS0ppRnEwMjAycnVZIiwiZXhwIjoxNjIxMzc3NDA3LCJhdWQiOiJ0IiwidGltZSI6MTEyNy40fQ.SBLBfFgRfW8l2oei9F53VzDuXoJDcgV4D_FZtoV7vtTbr_QABtuZyVUGxM0j2eONDA-tfaUqkM4jjUIKbYUaRFZ0rOQj-qm0LN2BtG-tHTVY56iziRWxRz1UewltYXzggUM9eXnuqPCMpMgBguQ5lcHkE7u4zgA5Aa_s3n47-FRQWJTr6o_LbeTJD-IytWh4pPuwnJeUxsFvEs5lLVVX9NlbUPp5xA9Lm94BbDdmFFyuVRDq4yPS5EDtcDlYNxPVNuceDymVC4l6Cfn_KTdvoZ6OqVJJwY2XK2aWb2k49impL8nULTz20ZWVWbHoTKCm2tbIH1qXgHuXOH6pm9Vnaw",
     "width": 1920
    },
    "is_automated_monthly_charge": false,
    "is_paid": false,
    "like_count": 157,
    "meta_image_url": "https://c7.patreon.com/https%3A%2F%2Fwww.patreon.com%2F%2Fpost-teaser-image%2F49973145/selector/%23post-teaser",
    "min_cents_pledged_to_view": 1,
    "patreon_url": "/posts/tansjs-sunday-49973145",
    "pledge_url": "/bePatron?patAmt=0.01\u0026c=1752462",
    "post_metadata": null,
    "post_type": "video_external_file",
    "published_at": "2021-04-13T09:03:55.000+00:00",
    "scheduled_for": null,
    "teaser_text": null,
    "title": "TANSJS: Sunday Magic (BETA TESTING)",
    "upgrade_url": "/join/tellemstevedave/checkout?rid=2706415",
    "url": "https://www.patreon.com/posts/tansjs-sunday-49973145",
    "was_posted_by_campaign_owner": true
   },
   "id": "49973145",
   "relationships": {
    "access_rules": {
     "data": [
      {
       "id": "365871",
       "type": "access-rule"
      }
     ]
    },
    "audio": {
     "data": null
    },
    "campaign": {
     "data": {
      "id": "1752462",
      "type": "campaign"
     },
     "links": {
      "related": "https://www.patreon.com/api/campaigns/1752462"
     }
    },
    "images": {
     "data": []
    },
    "poll": {
     "data": null
    },
    "ti_checks": {
     "data": []
    },
    "user": {
     "data": {
      "id": "11190956",
      "type": "user"
     },
     "links": {
      "related": "https://www.patreon.com/api/user/11190956"
     }
    },
    "user_defined_tags": {
     "data": [
      {
       "id": "user_defined;All New Sunday Jeff Show",
       "type": "post_tag"
      },
      {
       "id": "user_defined;BETA",
       "type": "post_tag"
      },
      {
       "id": "user_defined;video",
       "type": "post_tag"
      }
     ]
    }
   },
   "type": "post"
  },

I tried uncommenting the login section of code in patreon.py but it didn't work. It's likely just a placeholder so I'll have to leave the rest to someone who knows a bit more about making a login module. Digging into the login process the URL is
https://www.patreon.com/api/login
It accepts these POST fields
{"data":{"type":"user","attributes":{"email":"theusername","password":"thepassword"},"relationships":{}}}
There is a form of 2FA where they ask you to approve that PC for login via email. So not sure what "fingerprint" it uses to detect a unique PC. Possibly this cookie in the request header to that login page
cookie: __cfduid=_______redacted_____; patreon_device_id=_______redacted_____; patreon_location_country_code=AU; __cf_bm=_______redacted_____; _ALGOLIA=anonymous-_______redacted_____; _fbp=_______redacted_____; patreon_locale_code=en-US; G_ENABLED_IDPS=google; group_id=_______redacted_____; _swb=_______redacted_____
The response seems to set a cookie which might be used to keep the user logged in????
set-cookie: session_id=_____redacted______; Domain=patreon.com; Expires=Mon, 17-May-2021 22:--:00 GMT; Max-Age=2592000; Secure; HttpOnly; Path=/; SameSite=Lax
That's about all I could find. Hope that helps.

I bypassed the login code by supplying a cookies file, and I got a different error:
[Patreon] 54675251: Downloading JSON metadata
WARNING: "url" field is missing or empty - skipping format, there is an error in extractor
Traceback (most recent call last):
  File "/usr/bin/youtube-dl", line 33, in <module>
    sys.exit(load_entry_point('youtube-dl==2021.6.6', 'console_scripts', 'youtube-dl')())
  File "/usr/lib/python3.9/site-packages/youtube_dl/__init__.py", line 475, in main
    _real_main(argv)
  File "/usr/lib/python3.9/site-packages/youtube_dl/__init__.py", line 465, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/lib/python3.9/site-packages/youtube_dl/YoutubeDL.py", line 2068, in download
    res = self.extract_info(
  File "/usr/lib/python3.9/site-packages/youtube_dl/YoutubeDL.py", line 808, in extract_info
    return self.__extract_info(url, ie, download, extra_info, process)
  File "/usr/lib/python3.9/site-packages/youtube_dl/YoutubeDL.py", line 815, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/lib/python3.9/site-packages/youtube_dl/YoutubeDL.py", line 847, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/lib/python3.9/site-packages/youtube_dl/YoutubeDL.py", line 881, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/usr/lib/python3.9/site-packages/youtube_dl/YoutubeDL.py", line 1637, in process_video_result
    if formats[0] is not info_dict:
IndexError: list index out of range

https://github.com/ytdl-org/youtube-dl/issues/31180

Two problems there, at least:

the extractor should check that a plausible media URL is returned and crash if not
the core processing checks for no formats before removing invalid formats (that's the Warning stage above) and not after: hence the crash.

And then there's the problem of actually extracting valid link.

If someone can share an account for testing, I am willing to work on this

Also, if a page fails with yt-dl, it would be useful to know whether it works with yt-dlp, as that has a newer version of the extractor (but using some core functions not yet back-ported).


License

Hi,
I would like to use your code to try the foam data that is deposited in the TomoBank.
Can you provide a license to your code? Without doing so, formally I cannot use your code.
See also adding a license to a repository and No License.
Best regards, Adriaan

Hello Adriaan,
I have created a BSD-2 license file. Thanks for your message.
Viktor

Thank you for the prompt reply!
Adriaan


Change Message to use byte[] for Payload instead of PreservedBuffer

It's just getting too unwieldy. And we rarely actually take it off a Pipeline any more.

I'm going to use ArraySegment<byte> instead since we often want to use sliced buffers. At some point we need a primitive suitable for possible-pooled memory. Memory<byte> really should be that primitive eventually.

Actually, the only place we slice right now is in the client WebSocketTransport, so I'm not so sure. Also, senders/receivers often don't know when it's safe to release the memory used by a Message because the message is sent down the channel, which is why we are having trouble working out how to pool memory in the first place. Going back to byte[] ;)


Update the way Message Colorization, Text Components, etc. work

Checks

[x] /moducoredump command works without error

If you push a change that breaks the dump command, it is hard to debug issues if people have them.

Todo

[x] Work away from adventure / MF message
[x] Work out how colorization and formatting will work in ChatEvent
[x] Work out how colorization and formatting will work in configurable messages (this can probably just use the adventure formats of Mini Message)

Will use these rules. Configurable messages will use MiniMessage formats, <#...> and &#... for hex, but no Legacy Ampersand (&)
User inputs will use the legacy serializer
Chat will be legacy serializer

[ ] Check that #waitForEvent works with coroutines instead of a task
[ ] Check that the player chat event is working appropriately with plugin#launch
[x] Move HelpCommand stuff to adventure
[x] Make ${version} expand correctly
[ ] https://github.com/commonmark/commonmark-java can this be used with custom "HTML" tags to make minimessages from markdown
[ ] Allow configuration (maybe even per-user) on whether to prefer mini message or legacy

Description
Resolve #87

MiniMessage Addition
This PR adds MiniMessage support (and removes Markdown).

legacy codes will work
new permissions were added, and old markdown permissions were removed (see Permissions file)


Extract data from weather station.

Context
Identify the government API, get an API key, and make a successful request to get data from a local weather station. Specifically, want to fetch daily high temperature data.
Acceptance Criteria

[ ] Will retrieve daily temperature data from a local public weather station.
[ ] Will output high temp data with date in console.

Dev Notes

[ ] Will store API key in secrets file that is not committed to repository.
[ ] Will create adapter or extract class to fetch station data.
[ ] Will make successful request to API.

References

https://chatgpt.com/share/602d87f1-d16f-4d9f-80db-5477e507175d

Tasks

[x] Create new branch daily-weather-api-data off main.
[x] Add requests package to project.
[x] In dev, make successful request to API.
[ ] Stub out a weather API adapter class.
[ ] In interactive action, fetch daily weather data using adapter class.
[ ] Output daily high temp data to console.
[ ] Create PR into main branch.
[ ] Review PR.
[ ] Merge PR.
[ ] Delete branch.
[ ] Close ticket.

Successfully pulled data from NOAA source:
~/projects/dr-george$ python -m dr_george.main interactive

(Pdb) len(data)
364
(Pdb) data[0]
{'date': '2023-01-01T00:00:00', 'datatype': 'TMAX', 'station': 'GHCND:USW00023119', 'attributes': ',,W,', 'value': 55.0}

I just realized that the station ID I was using is not for Santa Ana.
Santa Ana here: https://www.ncei.noaa.gov/cdo-web/datasets/GHCND/locations/ZIP:92706/detail
ID:  GHCND:USC00047888

Station IDs

Orange County: https://www.ncei.noaa.gov/cdo-web/datasets/GHCND/locations/FIPS:06059/detail
Blythe: https://www.ncei.noaa.gov/cdo-web/datasets/GHCND/stations/GHCND:USW00023158/detail
Desert Resorts: https://www.ncei.noaa.gov/cdo-web/datasets/GHCND/stations/GHCND:USW00003104/detail
March AFB: https://www.ncei.noaa.gov/cdo-web/datasets/GHCND/stations/GHCND:USW00023119/detail