⚠ ClamAV has degraded performance

In f324727, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 77 ms

Resolved: ClamAV performance has improved in e94ac90 after 6 minutes.


feat(api): better annotations

Adds vector_content ids to metadata returned by runs endpoints
Adds an endpoint for querying vector_content to leapfrogai namespace - which contains chunk text

The annotations were not quite working with a simplistic test file that just said "Testing", so I had to augment it a little with some text data, and added a correlated question to the test file.
Perhaps there's better data we can use for this purpose.

I created a conformance test method that will evaluate the same feature in a separate call to OpenAI and LeapfrogAI:
test_conf_chat_files.py > test_file_annotations
This method tries to evaluate Annotations returned from an Assistant query, but will inherently also evaluate the features that build the Assistant in the process:

Create VectorStore
Create Thread
Create and Poll Runs
Create Assistant

We should set these up as separate tests on their own to isolate errors.
Presently, the OpenAI call succeeds and returns the proper type structure.
LeapfrogAI call fails with a number of issues related to the structure of the message object in the parameter:

id, missing
content, must be list
created_at, missing
object, missing
status, missing
thread_id, missing

This fails on call to client.beta.threads.create

I have moved conformance testing for individual components to another PR and removed the code from here.
What's left should be a more minimal test focusing on conformance of file annotations.
Some issues that were identified via testing:

threads.runs.create_and_poll - This should only attach messages to the run that were generated by the run itself, not any previous messages.
OpenAI annotations format is very simplistic and looks like this: 【4:0†source】
LeapfrogAI annotations format is this: [file-uuid]

TODO:
Reformat annotations:
src/leapfrogai_api/backend/converters.py:57

Closing in favor of:
https://github.com/defenseunicorns/leapfrogai/pull/1165
https://github.com/defenseunicorns/leapfrogai/pull/1164


feat(tutorial): complete step 1

Closes #
{{short description}}
Changelog
New

{{new thing}}

Changed

{{change thing}}

Removed

{{removed thing}}

@mergify refresh

@mergify refresh

Not sure what's going on with Mergify, verified manually 👍 t

Not sure what's going on with Mergify, verified manually 👍 t


Simple install with helmfile

What this PR does / why we need it:
Install cert manager it is difficult to automate. With this pr you can install cert-manager with only one command.
Special notes for your reviewer:
Let me know if i should include mantainers/owners and so on in the new helm chart crd-cert-manager
Also let me know if I should remove myself from maintainers.  Anw its a static very simple chart, dont think it will need extra work.

/assign @joshvanl

/release-note-non

Hi @zakkg3! Thanks for the PR :smile:
We haven't yet decided yet the future of a canonical deployment of certmnager using Helm - especially CRDs - or indeed whether this is something we want to be 'officially' supporting. Had a chat with @munnerz and thought perhaps this could live out of tree and link to it via the docs?
What do you think?

What do you think?

Yes, as you like guys, its just that it took me a few hs to found the way to install it in a way we can reproduce easy and with automating tools. running commands before install a chart its not decent enought so i ve found this way the better to install cert-manager.
If this pr or something like its merged, maybe a link to an external doc.. it will save lots of time for too many people :)
Cheers!

Yeah that does make sense, we are keen to improve this story but don't want to rush into anything. If you are happy to make that external doc and create a PR linking in the `“Alternative installation” section, we can get that merged in.

OK Here is : https://github.com/zakkg3/cert-manager-installer
Steps:
1- Clone repo
2- helmfile sync
its tested in bare matal and in minikube.
Helm list >
cert-manager    	1       	Tue Jul 30 15:04:09 2019	DEPLOYED	cert-manager-v0.8.1     	v0.8.1     	cert-manager
crd-cert-manager	1       	Tue Jul 30 15:03:44 2019	DEPLOYED	crds-cert-manager-v0.1.0	           	cert-manager

kubectl get pods -n cert-manager >
cert-manager-54dffbdd8b-fkw52              1/1     Running   0          15s
cert-manager-cainjector-7688bf9689-fnckd   1/1     Running   0          15s
cert-manager-webhook-dfcbcc64b-45w5j       1/1     Running   0          15s

Feedback its welcome :)

This looks good 😄 my only bit of advice for you, is it include details on what version people will be installing and potentially also some scripts in your repo that automate 'bumping' the version over time (i.e. grabbing the newest CRDs to go into your chart, and changing the version field in your Helmfile)
I'll leave 'lgtm'ing to @JoshVanL!
/ok-to-test
/approve

This looks good 😄 my only bit of advice for you, is it include details on what version people will be installing and potentially also some scripts in your repo that automate 'bumping' the version over time (i.e. grabbing the newest CRDs to go into your chart, and changing the version field in your Helmfile)
I'll leave 'lgtm'ing to @JoshVanL!
/ok-to-test
/approve

@munnerz Thanks for the feedback.
bumping versions automated:
https://github.com/zakkg3/cert-manager-installer#bumping-version
\o/


Does n_search_trees do anything?

Looking at the rp trees code it seems that n_search_trees may no longer do anything: only the best-scoring tree is used in search.
I used the F-MNIST notebook to generate some extra data (warning: you will have to wait around ten minutes to use the sklearn kd-tree implementation to get at the ground truth if you run it this way):
index = pynndescent.NNDescent(fmnist_train, random_state=42, verbose=True, n_iters=1)
neighbors = index.query(fmnist_test, epsilon=0)
np.mean(accuracy_per_query_point(neighbors, tree_neighbors))

# eventually gives
0.8878799999999999

I have purposely made the nearest neighbor descent and search routines not perform well so they don't swamp the effect of the tree initialization. Repeating with n_search_trees=10:
index_st10 = pynndescent.NNDescent(fmnist_train, verbose=True, random_state=42, n_iters=1,
n_search_trees=10)
neighbors_st10 = index_st10.query(fmnist_test, epsilon=0)
np.mean(accuracy_per_query_point(neighbors_st10, tree_neighbors))

# also gives
0.8878799999999999

There seems to be no effect whatsoever. The _search_forest field goes through various transformations at different points in the code so I had trouble fully confirming what's going on, but looking at _init_search_function: https://github.com/lmcinnes/pynndescent/blob/ee915d2599c1fd36e13ae4ac15ba91ecee503c86/pynndescent/pynndescent_.py#L1131-L1139
It does seem that only the first search tree data is used (_search_forest is not read from again in that method or the internally-defined functions).

I think it may be dead code. I would have to go through and check in detail, but for a while using less trees in search seemed like a good idea, but I wasn't sure how many were needed, so I made it a parameter. I certainly found that ultimately the first tree is really all that is needed, and so some of the code may now assume that. I obviously didn't propagate that all the way through apparently. For search one tree is enough though.

Is the idea of scoring the forest against the NND-optimized neighbor graph to find the single best tree a McInnes innovation? That's a much better and simpler idea than what I was grasping at in my question in #110 about refining the trees from the NND result.
Anyway, for some practical actions from this, I could probably come up with a PR to remove n_search_trees at least from the public-facing code if that's helpful (although that would be breaking backwards compatibility, so might not be worth it -- could just document the parameter is deprecated in the docstring?)

A PR to change the docstring would certainly be most welcome.
The idea of scoring the trees against the graph to pick the best one was mine, but it seems the most obvious thing to do once you have to pick a tree. It's also worth noting that I actually reshuffle the data to match the best tree as well, since that's a cheap approximation of a good order to keep the data for the graph as well. I did play around with spectral decompositions of the graph for ordering, but the gains were minimal (if there were any over the tree based ordering) and it was non-trivial so I just dropped it. Perhaps with a little more thought a better plan could be arrived at however, based on expected traversals.


(doc) Clarify the usage of parameterized logging in Log4j 2 API page

The Log4j 2 API documentation page could be improved to state that:

parameterized logging and string concatenation should not be mixed, e.g.:// This is discouraged, but fine:
logger.info("Hello " + name + "!");
// This is recommended:
logger.info("My name is {}.", myName);
// Mixing the two approaches: a recipe for pattern specifier injection:
// E.g. if name contains '{}'.
logger.info("Hello " + name + "! My name is {}.", myName);

we could replace the usage of LogManager.getFormatterLogger(Class) with LogManager.getLogger(Class, MessageFormatter), which is more generic.

@jvz, I assigned this to you since it is related to #2100.

Not only @jvz but also general documentation - assigned myself too

// Mixing the two approaches: a recipe for pattern specifier injection:
// E.g. if name contains '{}'.
logger.info("Hello " + name + "! My name is {}.", myName);

It would be good to expand on this a bit more, perhaps something like:

Mixing the two approaches can lead to undesired results.  For example, let's say that we prompt the user for their name, and they tell us their name is {}.  If our log statement looks like the following:
logger.info("Hello " + name + "! My name is {}.", myName);

That results in a log message of "Hello myName!  My name is {}".

An MCVE would probably be appropriate here to show the (likely unintended) behavior.

* parameterized logging and string concatenation should **not** be mixed, e.g.:
  // This is discouraged, but fine:
  logger.info("Hello " + name + "!");
  // This is recommended:
  logger.info("My name is {}.", myName);
[...]

If this refers to void info(String message, Object p0), then the JavaDoc is misleading. In fact, if message is actually a message template, then the JavaDoc for lots of methods really needs to be fixed.

That's more of a problem if you mix parameterized logging and concatenated strings. If there are no parameters given, then no parameterized placeholders will be replaced.

As far as I can see this fully persists, but I assume @vy meant that a fix is underway in the staging area. The new Don’t use string concatenation section does improve, but is far from being as clear as @ppkarwasz's suggestion.
Note that "using message parameters" is called interpolation: https://en.wikipedia.org/wiki/String_interpolation


Team Chat Messages

We have a problem with Teams chat messages showing as "create item: email" in cloud app security. Is there a way to have team messages show as what they are?

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

ID: c18085b0-ca97-5623-fc42-5395acf55f1f
Version Independent ID: 942d682c-a471-a8c9-e12f-cc7d4aafbad3
Content: Support and troubleshooting information for Cloud App Security
Content Source: CloudAppSecurityDocs/support-and-ts.md
Service: cloud-app-security
Product: ****
Technology: ****
GitHub Login: @shsagir
Microsoft Alias: shsagir

@HarrisburgUSysAdmin Thanks for contacting Microsoft about your issue. As we understand it, you're describing a problem with the product itself and not with the product documentation.
To get assistance or support for your product issue, please open a support ticket.


Add gyro link

Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
Need to add gyro sentor to get more accurate IMU topic.
Describe alternatives you've considered
Additional context
Expected link name is like ${prefix}mgs1600gy_gyro_link

#26


feat(manifest)!: force local linking in node-workspaces w/ config to disable

[x] Make sure to open an issue as a bug/issue before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
[x] Ensure the tests and linter pass
[x] Code coverage does not decrease (if any source code was changed)
[x] Appropriate docs were updated (if necessary)

Fixes #1035 🦕

cc @joeldodge79 - This is the PR that I was talking about in that inline thread. It allows you to force the local linking to avoid the semver range issue. I personally think this should be the default, but understand that it might be too heavy handed.

@joeldodge79 I've updated this with the breaking changes. Can you take a look to make sure you agree with the new assumptions if we default this to true? 🙏

Thanks @joeldodge79! I'll get this updated and rebased.


Worker hit on static assets

Describe the bug
Pre-rendered static pages (e.g., /helloWorld) are being incorrectly served from /cdn-cgi/_cf_seed_data instead of the /assets folder. This causes unnecessary worker invocations and CPU spikes of 200-300ms per page visit.
Fix would require moving the content inside of "/cdn-cgi/_cf_seed_data" to the root of the "/assets" folder. I manually moved a test "test.html" into my assets folder and can confirm that visiting "/test" on my deployed website doesn't hit my worker which is the expectation.

Steps to reproduce

Create default nextjs project for workers.
Deploy
Run tail worker
Expectation is that visiting the static home page should not be hitting your tail worker

Expected behavior
Pages pre-rendered as static should not hit your worker
Static content should be served directly from /assets
@opennextjs/cloudflare version
0.2.1
Node.js version
22.1
Wrangler version
3.88
next info output
Operating System:
  Platform: darwin
  Arch: arm64
Binaries:
  Node: 22.1.0
  npm: 10.7.0
  Yarn: 1.22.19
  pnpm: 8.4.0
Relevant Packages:
  next: 14.2.5 // An outdated version detected (latest is 15.0.3), upgrade is highly recommended!
  eslint-config-next: 14.2.5
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.6.3
Next.js Config:
  output: N/A

Additional context
No response

Played around with opennext, and I was able to fix this on main.
I made a modification to the incremental-cache.ts file and made export const SEED_DATA_DIR = "" and pre-rendered pages no longer hit my worker.
This only works on the main branch, i've noticed that on the experimental middleware branch, it'll still hit my worker (I assume because the middleware is being called).

Played around with opennext, and I was able to fix this on main.

I would not say "fix" here because:

while the page content is static, I believe you should still apply the middleware and the rewrites/headers in the next config
Setting SEED_DATA_DIR to "" will expose the cache content on public URLs - it's ok for static content but that's probably not something you want for i.e. fetch cache that might include private info/secrets.

Also as you noted the experimental branch is different for now. Cache is now ready there yet.
Once the experimental branch becomes the main branch we can revisit that. It might be possible to determine that a static page would not be affected by the routing (middleware + headers/rewrites) at build time. In such a case we could serve the page without hitting the worker. In other cases we will still need to run the middleware/routing layer.
Note: what OpenNext refers to as "middleware" is actually Next routing + middleware.


Update Open Source Proyects

As a visitor to the site I should be able to see updated screenshots of the open source projects so that I am not presented with old information
https://guide.eoscostarica.io/docs/open-source-projects

Add lastest Local environments (Entornos de Desarrollo Local)
Add my vote eos dao website
add municipalidad de orotina


Display genres on release pages

Releases should show genres, which are inherited from the parent Game. Releases don't have genres themselves.

This isn't relevant anymore since releases have been scrapped.


Facet search fix

Now check facets and search text. If no changes, no calls are made

this was meant to be to alan-w/main


Tried all the tips to fix "Entry Error, Invalid Username or Password"

I'm sure this is due to user error on my part, but I've been trying for the last 2 hours to just get past the login screen in the setup. I enter the email address for my Apple ID, and my app-specific password (I assume I use this and not my main account password), and get "Entry Error, Invalid Username or Password"
I saw the post on Apple's Secure Remote Password verification protocol, and have tried different steps I've seen here, including:

changing my Apple ID password, which revokes all the app-specific passwords, and getting a new password
trying a new app-specific password with and without the dashes
deleting and reinstalling iCloud3
deleting iCloud3, deleting the .storage folders (iCloud, icloud3, and the icloud3 accounts one) and reinstalling
other things I can't remember because I've been at this for a while now

Any other suggestions? There is nothing in the Event Log, other than "The following issues were detected when starting iCloud3.
Scroll through the Startup Log for more information: 1. iCloud Configuration not set up"
When I use the Gear icon to select the Startup Log, all I see different is a green box with "Start up log, alerts and èrrors are displayed → Refresh to close."
Thank you for this integration, and for any help.

So, I just kept trying and trying, and finally was able to log in. This is very slick!

Apple does not support App Specific Passwords with web based programs like iCloud3. You have to use your actual password.

Yes, I meant to come back and say that I switched to using the regular password, and went through the process of trying to get it working, with no luck for quite a while.  The only thing I did differently was try it on a different device the time it worked, but I can’t imagine how that would matter.
Anyway, this is quite amazing. I’m still just dipping my toes in the water this morning.


Provide a configuration to control the length of the peer field

Please answer these questions before submitting pull request

Why submit this pull request?

[x] Bug fix

[ ] New feature provided

[ ] Improve performance

Related issues

Bug fix

Bug description.
https://github.com/apache/skywalking/issues/3096

How to fix?
Add  Peer max length configuration, Used it in the interception of Jedis, Redission, and Lettuce cluster configuration.

if agent.peer_max_length=5
topo like this

trace like this

Is this PR ready? If so, change the title, and don't use issue number as the title, which is hard to read from PR list view.

OK, The PR is ready.

@zhaoyuguang Follow the review, please.

I fix the review issue, Please review code again @wu-sheng


Unable to supply PDF files to VertexAI object despite feature available for native Vertex AI library

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.
[X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code
Taken from the following discussion
Description
I am trying to pass a PDF document to a gemini-1.5-pro in multimodal mode, following a process similar to the one explained here. The documentation illustrates how to pass an image and query Gemini Pro Vision, but I want to pass a PDF directly instead.
Here is my attempt:
from langchain_core.messages import HumanMessage
from langchain_google_vertexai import ChatVertexAI
import base64

file_location = "/path/to/my/document.pdf"

# Initialize the LangChain LLM
llm = ChatVertexAI(model_name="gemini-1.5-pro-preview-0409")

# Open and read the PDF file
with open(file_location, "rb") as pdf_file:
    pdf_bytes = pdf_file.read()

# Create a message containing the Base64-encoded PDF
pdf_message = {
    "type": "image_url",  # Assuming the LLM accepts PDF under this key, you might need to verify this
    "image_url": {
        "url": f"data:application/pdf;base64,{base64.b64encode(pdf_bytes).decode('utf-8')}"
    },
}

# Create a text message asking what the PDF contains
text_message = {
    "type": "text",
    "text": "What does this PDF contain?",
}

# Combine the messages into a HumanMessage object
message = HumanMessage(content=[text_message, pdf_message])

# Send the message to the LLM and print the response
output = llm.invoke([message])
print(output.content)

Unfortunately this code fails.
However, if I use the official Vertex AI library, I am able to do it. Here is part of my code:

from vertexai.generative_models import GenerativeModel, Part

model = GenerativeModel("gemini-1.5-pro-preview-0409")

prompt = "please summarise the provided pdf document"

pdf_file_uri = "gs://my_bucket/my_document.pdf"
pdf_file = Part.from_uri(pdf_file_uri, mime_type="application/pdf")
contents = [pdf_file, prompt]

response = model.generate_content(contents)
print(response.text)

This approach works, but I was hoping to make the LangChain method function similarly.
System Info
System Information
OS: Darwin
OS Version: Darwin Kernel Version 23.4.0: Fri Mar 15 00:11:05 PDT 2024; root:xnu-10063.101.17~1/RELEASE_X86_64
Python Version: 3.11.5 (main, Sep 11 2023, 08:19:27) [Clang 14.0.6 ]

Package Information
langchain_core: 0.1.40
langchain: 0.1.14
langchain_community: 0.0.31
langsmith: 0.1.40
langchain_google_genai: 0.0.5
langchain_google_vertexai: 0.1.2
langchain_openai: 0.1.1
langchain_text_splitters: 0.0.1

Packages not installed (Not Necessarily a Problem)
The following packages were not found:
langgraph
langserve
111

### Error Message and Stack Trace (if applicable)

_No response_

### Description

I am trying to pass a PDF document to a gemini-1.5-pro in multimodal mode, following a process similar to the one explained [here](https://python.langchain.com/docs/integrations/llms/google_vertex_ai_palm/#multimodality). The documentation illustrates how to pass an image and query Gemini Pro Vision, but I want to pass a PDF directly instead.

This native Vertex AI library feature is not implemented within LangChain. I am happy to contribute and implement; would appreciate some pointers on where to start as a new contributer.

### System Info

System Info
System Information
OS: Darwin
OS Version: Darwin Kernel Version 23.4.0: Fri Mar 15 00:11:05 PDT 2024; root:xnu-10063.101.17~1/RELEASE_X86_64
Python Version: 3.11.5 (main, Sep 11 2023, 08:19:27) [Clang 14.0.6 ]

@aaronepinto-bell You can just pass a GCS uri with LangChain, it works well for me.
just construct it as:
pdf_message = {
    "type": "image_url",  # Assuming the LLM accepts PDF under this key, you might need to verify this
    "image_url": {
        "url": "gs://my_bucket/my_document.pdf"
    },
}

@Adi8885 please, add it to our LC documentation

@lkuligin I've tried that using the recent langchain-core version == 0.1.52 but it doesn't work
from langchain_google_vertexai import VertexAI
from langchain_google_vertexai import HarmBlockThreshold, HarmCategory
from langchain_core.messages import HumanMessage

safety_settings = {
    HarmCategory.HARM_CATEGORY_UNSPECIFIED: HarmBlockThreshold.BLOCK_NONE,
    HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT: HarmBlockThreshold.BLOCK_NONE,
    HarmCategory.HARM_CATEGORY_HATE_SPEECH: HarmBlockThreshold.BLOCK_NONE,
    HarmCategory.HARM_CATEGORY_HARASSMENT: HarmBlockThreshold.BLOCK_NONE,
    HarmCategory.HARM_CATEGORY_SEXUALLY_EXPLICIT: HarmBlockThreshold.BLOCK_NONE,
}

model = VertexAI(model_name="gemini-1.5-pro-preview-0514", project="project_id")

pdf_message = {
    "type": "image_url",
    "image_url": {
        "url": "gs://....pdf"
    },
}
text_message = {
    "type": "text",
    "text": "Summarize the provided document.",
}
message = HumanMessage(content=[text_message, pdf_message])

output = model.invoke([message])

Answer
Please provide me with the content of the PDF file located at the URL you provided: 'gs:...pdf'. I need the text content of the document to summarize it for you.

Once I have the content, I can analyze it and provide you with a concise and informative summary.

@lkuligin @Adi8885 Hey folks, confirming the same as above, it is unable to register the document

Any updates on this?

please, update the version of langchain-google-vertexai

@lkuligin the version is still 1.0.4 in pypi. I've seen the fix, it is the addition of the option "media" but that change is not available yet. I've seen the commit from @wafle in langchain-google-genai  release . Please correct me if I'm wrong
new way to use
with open("file.pdf", "rb") as f:
    pdf = base64.b64encode(f.read()).decode("utf-8")

content = [{
    "type": "text",
    "text": "prompt here",
},
{
    "type": "media",
    "mime_type": "application/pdf",
    "data": pdf
}]
message = [HumanMessage(content=content)]

If it's updated in the python version, will it also work in the js version as well? I am using the JS version of langchain and wanted to make sure that pdf inputs would work here as well

@Kashi-Datum I'm sure you can use js. The solution for python comes from js

python and js integrations are different.

Can anyone suggest a change in the example below to replace pdf_file_uri with a local .pdf file?
with open("/Users/matheustorquato/Desktop/Q15-1016.pdf", "rb") as f:
    pdf = base64.b64encode(f.read()).decode("utf-8")

content = [{
    "type": "text",
    "text": prompt,
},
{
    "type": "media",
    "mime_type": "application/pdf",
    "data": pdf
}]

response = model.generate_content(content)

When trying the code above I get:
ValueError: Unknown field for Content: type

Reference code from Google's Process a PDF file with Gemini 1.5 Pro
import vertexai

from vertexai.generative_models import GenerativeModel, Part

# TODO(developer): Update and un-comment below lines
# project_id = "PROJECT_ID"

vertexai.init(project=project_id, location="us-central1")

model = GenerativeModel(model_name="gemini-1.5-flash-001")

prompt = """
You are a very professional document summarization specialist.
Please summarize the given document.
"""

pdf_file_uri = "gs://cloud-samples-data/generative-ai/pdf/2403.05530.pdf"
pdf_file = Part.from_uri(pdf_file_uri, mime_type="application/pdf")
contents = [pdf_file, prompt]

response = model.generate_content(contents)
print(response.text)

Confirmed PDF reading working with Gemini 1.5 pro using langchain JS v0.2.

const input = [
  new HumanMessage({
    content: [
      {
        type: "text",
        text: "Describe the following PDF.",
      },
      {
        type: "image_url",
        image_url: `data:application/pdf;base64,${pdfFileInBase64}`,
      },
    ],
  }),
];

const pdfModel = new ChatVertexAI({ model: 'gemini-1.5-pro'});
const response = await pdfModel.invoke(input);
console.log(response);

Python version is not working with "ValueError: Image string must be one of: Google Cloud Storage URI, b64 encoded image string (data:image/...), valid image url, or existing local image file. Instead got 'data:application/pdf;base64,'."

@matheusft , could you find a solution for your query. I am facing the same issue. Need to replace uri with local pdf path.

if I'm not mistaken, you can submit pdfs only as GCS uris (but you can always copy it to a temporary GCS location under the hood)
but we actually support multimodal input in the same way as LangChain does (https://python.langchain.com/docs/how_to/multimodal_inputs/) - to the extent that Gemini supports it too. please, feel free and try to construct your bytes input in that manner.

@matheusft , could you find a solution for your query. I am facing the same issue. Need to replace uri with local pdf path.

This code works. Transforming the .pdf file to bytes before sending to the model.
import vertexai
from vertexai.generative_models import GenerativeModel, Part
import base64

# Initialize Vertex AI with your project ID and location
vertexai.init(project="your_project_id", location="us-central1")

# Load the model you want to use
model = GenerativeModel(model_name="gemini-1.5-flash-001")

# Define your prompt for the model
prompt = "You are a professional document summarization specialist. Please summarize the given document."

# Open and read the PDF file content as bytes
with open("/path/to/your/local/file.pdf", "rb") as f:
    pdf_bytes = f.read()

# Encode the PDF content to base64
pdf_base64 = base64.b64encode(pdf_bytes).decode('utf-8')

# Create a Part object using the base64 encoded PDF data
pdf_part = Part.from_data(
    mime_type="application/pdf",
    data=pdf_base64
)

# Create the contents to send to the model
contents = [pdf_part, prompt]

# Generate content from the model
response = model.generate_content(contents)

# Print the response
print(response.text)

For those who want the langchain invoke version.
import os
from langchain_core.messages import HumanMessage, SystemMessage
from langchain_google_vertexai import ChatVertexAI
import base64

system_prompt = """
You are a PDF expert.
""".strip()

llm = ChatVertexAI(model_name="gemini-1.5-flash-002")

# Open and read the PDF file content as bytes
with open("your.pdf", "rb") as f:
    pdf_bytes = f.read()

# Encode the PDF content to base64
pdf_base64 = base64.b64encode(pdf_bytes).decode("utf-8")

r = llm.invoke(
    [
        SystemMessage(content=system_prompt),
        HumanMessage(
            [
                {
                    "type": "media",
                    "data": "pdf_base64",
                    "mime_type": "application/pdf",
                },
                "What's the first page of the pdf?",
            ]
        ),
    ]
)

print(r)


Slashes are accepted when parsing with a format that requires dashes

I want to make sure that a given string is a date in YYYY-MM-DD format. For that, I use the moment parse and give that format I want as a second parameter. However, if I use slashes instead of dashes in my value, the value is still parsed correctly:
moment("1995-12-25", "YYYY-MM-DD").isValid(); // true
moment("1995/12/25", "YYYY-MM-DD").isValid(); // true, but should be false

Is this behaviour intended?

Just found that strict parameter. Thanks anyway :)


Node Exporter Add-On

Describe the feature
Create an add-on that installs Node Exporter on selected nodes.
Use Case
Node metrics are valued both by cluster maintainers and developers.
Proposed Solution
No response
Other Information
No response
Acknowledgements

[X] I may be able to implement this feature request

CDK version used

EKS Blueprints Version
No response
Node.js Version

Environment details (OS name and version, etc.)

We have implemented Node Exporter Addon. Closing this issue. Please create a new one for any issues on the same.


Error after executing testsuite with directConnect in protractor 2.0.0 on Windows 8

When executing a testsuite in protractor 2.0.0 on Windows 8, all tests are run successfully but I do get an error from the webdriver:
....
Finished in 7.936 seconds
241 tests, 3 assertions, 0 failures
C:\git\psavingstab\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\webdriver.js:640
return flow.execute(function() {
^

Warning: Tests failed, protractor exited with code: 1 Use --force to continue.
Aborted due to warnings.
Process finished with exit code 1
I am using the following config options:
directConnect: true,
capabilities: {
    browserName: 'firefox'
},

When testing against a selenium grid, everything works fine.

Closing as stale.


Example source on main page of docs is incorrect

the example source in the main page of the docs is incorrect ...
it's missing the [videoindex] in the :sources, post, and tracks
It's NOT
      :sources="video.sources"
      :poster="video.poster"

It SHOULD BE
      :sources="video[videoIndex].sources"
      :poster="video[videoIndex].poster"

and  videoIndex is missing from he example data section
      videoIndex: 0,

Works fine then

Perhaps an extra simple example might be useful ...
Just a poster and a video ... both online resources ... would be useful
Then folks can just copy, paste, and have a working example as a starting point ...
No need to worry about missing resources, incorrect setup ... just a straight confidence boost ...

Agree, I need better examples. However, the code on the docs should be correct. There is onlly one video.sources, the video is not an array.
However, it is in the demo example, so it can switch between videos.

I take it back. video IS an array. Thanks for findiung this.

Fixed and live in docs.


Add optional schema argument to Storage.read/write?

This will provide a possibility to cast data from table without any schema associated:
storage.read('table', schema)
# will return cast data

The same rationale for Storage.write about writing data.

More radical approach will be replace Storage.create/write/read with atomic Storage.push/pull. It could simplify many things and based on this - https://github.com/frictionlessdata/datapackage-py/issues/69#issuecomment-215685065 - it fits better with main use cases. But it will be breaking.

Related to https://github.com/frictionlessdata/jsontableschema-py/issues/70 (like two options trying to sort the same problem).

MERGED to https://github.com/frictionlessdata/jsontableschema-py/issues/70


Gradle support: init and wrapper

Similar to what was done for Maven

@pascalgrimaud Started to look into it recently. Some question popup. Right now the BuildToolService interface contains e.g. addParent(...) or addPluginManagement(...) while the second one has a quite similar thing in gradle imho, there is no such thing as parent pom. How would you handle such cases where two options are not supporting the same things? Would it be okay to throw something like a "MethodNotSupported" exception? Or do you prefer to extract the maven/gradle specific things into own subinterfaces?

@atomfrede : thanks for looking into this. I'm not a Gradle user at all, so your ideas are really welcome here.
After playing a little bit with Spring Initializr, indeed there is no parent with Gradle
So I think:

in build tool at https://github.com/jhipster/jhipster-lite/blob/main/src/main/java/tech/jhipster/lite/generator/buildtool/generic/domain/BuildToolDomainService.java#L25 we can remove the exception and ignore it for Gradle
same thing for plugin management

I should open a new ticket for:

init project with gradle (minimal libs and config files)

This ticket can be used for adding utils methods but it can be done in several PRs

So the scope of this ticket has changed, it would be only for adding:

properties files
gradle wrapper

Nothing more, so the user can use:

init
gradle
then code a new lib in Java, for example

Guess this can be closed now.

Yes it's done !


Revamp Implementation to Use Proper Pointer

TL;DR
This issue proposes to revamp the current implementation to use proper pointer whever possible instead of value to address possible issues caused by side effect and memory consumption.
Background
The current implementations mostly use values as one way to pass information from one place to another rather than pointers. Using value provides its own advantages, one of which is the less worry of unnecessary side effects. However, in the context of the current implementations, there could be at least two possible issues arising, side effects and memory consumption.
Side Effect
Using value as a way to pass information from one place to another could reduce the possibility of unnecessary side effects. However, that only works if all the values we pass are indeed a "value" and indeed is treated as value. The story will be different if we didn't realize that a member of our variable is not a value, but a pointer instead.
Simple Example
Let's say we have a code like the following:
...
type Job struct {
	ID          string
	Name        string
	Description string
}

func doSideEffectOnJob(job Job) {
	job.Description = "Updated description by side effect"
}

func main() {
	job := Job{
		ID:          "e3",
		Name:        "user_job",
		Description: "A job that queries to fill table user",
	}
	fmt.Println(job)
	doSideEffectOnJob(job)
	fmt.Println(job)
}

If we run the above example, we can have results like the following:
{e3 user_job A job that queries to fill table user}
{e3 user_job A job that queries to fill table user}

Now, if we add a pointer member to the Job type and pass it as value and do some side effect to that member, we can get a result with side effect.
For Job type:
type Job struct {
	...
        Labels      map[string]string
}

For side effect function:
func doSideEffectOnJob(job Job) {
        ...
	job.Labels["side_effect"] = "affected"
}

For main function:
...
func main() {
	job := Job{
                 ...
		Labels: map[string]string{
			"orchestrator": "optimus",
		},
	}
	fmt.Println(job)
	doSideEffectOnJob(job)
	fmt.Println(job)
}

If we run it, we will get a side effect even if we pass it as value.
{e3 user_job A job that queries to fill table user map[orchestrator:optimus]}
{e3 user_job A job that queries to fill table user map[orchestrator:optimus side_effect:affected]}

Real Example
If we look at the current implementation (this commit), we can see that we have a method for Resolve:
func (*dependencyResolver) Resolve(..., jobSpec models.JobSpec, ...) (models.JobSpec, error) {
    ...
}

One point to note on this method is models.JobSpec, whic is used as parameter and return. If we read Resolve method that accepts a models.JobSpec and returns also a models.JobSpec, we might assume that the models.JobSpec returned is the resolved spec withouth having to worry models.JobSpec that we sent as parameter, as it is being sent as value.
However, the tricky part here is, we have to worry about models.JobSpec that we sent as well even though we sent it as value. The reason is, Resolve method, in fact, also do some side effects to the models.JobSpec in the parameter, as illustrated by the example above. This is quite dangerous, as the caller might miss it and ignore.
Memory Consumption
In the context of memory consumption, sending variable as value can be problematic if it happens in large number of frequency and volume. In Optimus, we have a lot of asynchronous operations. If we have a lot of jobs and/or resources to be processed at the same time, memory consumption needs to be taken care of. To illustrate, the below is examples on this.
Single Job
Let's say we have the following code:
...
func main() {
    job := Job{
		ID: "e3",
	}
	fmt.Printf("from main: %p\n", &job)
	checkSinglekMemory(job)
	fmt.Printf("from main: %p\n", &job)
}

func checkSinglekMemory(job Job) {
	fmt.Printf("inside call: %p\n", &job)
}

If we run the above code, we can ge results similar to the following:
from main: 0xc000126040
inside call: 0xc000126080
from main: 0xc000126040

From here, when we call the checkSinglekMemory, the job we have in main is still there and inside checkSinglekMemory is a new copy of that job. The job in main is still there, even though we are currently inside checkSinglekMemory. Here, the data is duplicated and if there's asynchronous operation where we sent each job from a slice to a function, those data will also be duplicated. Data duplication means more memory consumption.
Multi Job
Let's say we have a code like the following:
...
func main() {
    jobs := []Job{
		{
			ID: "job1",
		},
		{
			ID: "job2",
		},
	}
	fmt.Printf("from main: %p\n\n", &jobs)
	checkMultiFlatMemory(jobs)
	fmt.Println()
	checkMultiNestedMemory(jobs)
}

func checkMultiFlatMemory(jobs []Job) {
	fmt.Printf("from flat: %p\n", &jobs)
	for i, job := range jobs {
		fmt.Printf("inside loop i-%d: %p\n", i, &job)
	}
}

func checkMultiNestedMemory(jobs []Job) {
	fmt.Printf("from nested: %p\n", &jobs)
	for i := 0; i < 2; i++ {
		for j, job := range jobs {
			fmt.Printf("inside i-%d loop j-%d: %p\n", i, j, &job)
		}
	}
}

If we run the code above, we might get similar result as the following:
from main: 0xc0000a4030

from flat: 0xc0000a4048
inside loop i-0: 0xc0000b0040
inside loop i-1: 0xc0000b0040

from nested: 0xc0000a4060
inside i-0 loop j-0: 0xc0000b0080
inside i-0 loop j-1: 0xc0000b0080
inside i-1 loop j-0: 0xc0000b00c0
inside i-1 loop j-1: 0xc0000b00c0

Such data duplication also arise even inside a loop and/or nested loop.
Proposal
To address the possible concerns mentioned above, this issue proposes to use proper pointer whenever possible instead of value. In order to apply this, we need to keep in mind considerations about the concerns previously mentioned.
Considertion: Side Effect
Using pointer has more probability to side effect. However, if the code is clean enough, such probability could be minimal to none.
For example, if we have a function:
func validateJob(*models.JobSpec) error {}

the caller can be at ease that this function won't do anything to cause side effect. But, there might be a question, what if that function indeed cause side effect? Then, the problem is in the function itself. Why would the function cause side effect? Does it reflect the name of the function? If the name of the function doesn't imply any side effect, then why would it need be?
It will be different if the function name is:
func enrichJob(*models.JobSpec) error {}

In the second function, we can be sure that there will be a modification to the job and the caller should be prepared for it.
In relation to the current implementation, rather than:
func (*dependencyResolver) Resolve(..., jobSpec models.JobSpec, ...) (models.JobSpec, error) {
    ...
}

it would be clearer and cleaner if we can change it to:
func (*dependencyResolver) Resolve(..., jobSpec *models.JobSpec, ...)  error {
    ...
    // do some side effect
}

or
func (*dependencyResolver) GetResolvedJob(..., jobSpec *models.JobSpec, ...) (*models.JobSpec, error) {
    ...
    // making sure no side effect exist, while returning a new job spec
}

Consideration: Memory Consumption
When we use pointer to pass around data, we can be sure that what we pass is not a copy of what we sent, but instead an address to that data. So, even if there are a lot of asynchronous operations, what we actually sent around is the memory address, not a copy. With this, we can minimize the memory consumption.

As part of this issue we can focus on using JobSpec by pointer.


Primary Project Goals and Things to Avoid

#11

Moved to: https://github.com/DreamWeave-MP/.github


feat: import bommer

Iirc we will have a component named 'spog' soon (from looking at miro), so maybe that crate could be renamed to something else to avoid confusion? No objections otherwise

This idea was that this would be the SPOG.

Renamed spog to bommer-ui


Migrate step triggered upon installation: sails can not be started

Let me preface by telling you that I'm just getting started with NodeJS and Sails; there may be something very stupid I'm doing wrong.
I've generated a new Sail app and have installed waterlock and when I'm trying to start sails, I get the
Excuse my interruption, but it looks like this app  does not have a project-wide "migrate" setting configured yet.  (perhaps this is the first time you're lifting it with models?)
dialog. When I chose any option (1, 2 or 3) I get the following error:
usr/local/lib/node_modules/sails/node_modules/waterline/node_modules/waterline-schema/lib/waterline-schema/foreignKeys.js:82
    throw new Error('Trying to access a collection ' + collection + ' that is
          ^
Error: Trying to access a collection resettoken that is not defined.
    at ForeignKeys.findPrimaryKey (/usr/local/lib/node_modules/sails/node_modules/waterline/node_modules/waterline-schema/lib/waterline-schema/foreignKeys.js:82:11)
    at ForeignKeys.replaceKeys (/usr/local/lib/node_modules/sails/node_modules/waterline/node_modules/waterline-schema/lib/waterline-schema/foreignKeys.js:53:27)
    at new ForeignKeys (/usr/local/lib/node_modules/sails/node_modules/waterline/node_modules/waterline-schema/lib/waterline-schema/foreignKeys.js:30:10)
    at new module.exports (/usr/local/lib/node_modules/sails/node_modules/waterline/node_modules/waterline-schema/lib/waterline-schema.js:30:17)
    at Waterline.initialize (/usr/local/lib/node_modules/sails/node_modules/waterline/lib/waterline.js:106:17)
    at buildORM (/usr/local/lib/node_modules/sails/lib/hooks/orm/build-orm.js:48:15)
    at Array.async.auto.instantiatedCollections [as 1] (/usr/local/lib/node_modules/sails/lib/hooks/orm/index.js:191:11)
    at listener (/usr/local/lib/node_modules/sails/node_modules/async/lib/async.js:465:46)
    at /usr/local/lib/node_modules/sails/node_modules/async/lib/async.js:419:17

Like I said above, I have no idea if this is a bug or something stupid I'm doing but at this point I'm stuck. I'd appreciate any hints you have as to how to resolve this.

Hello!
For some reason, I'm having same issue when deploying SailsJS app in heroku.
Here's log details: https://gist.github.com/tenzan/0682f0c34cc7e5d8eebc
And here's my repo https://github.com/tenzan/sails-api-server/tree/heroku
Thanks.


Tamao cannot log in

Tamao tried the swansway.com and gmail.com email addresses. Does she have an account?

I had a typo in her account. She should be able to log in w/<EMAIL_ADDRESS>now.

tomao or tamao?

Fixed (for real this time).


Impurities and (n)elements (a.k.a. Shyam's wrench)

I'll throw a wrench into the discussion.
nelements should equal len(elements), this is fine.
In an experiment with known impurities, a DB might want to list those impurities but not include them in the element_ratios, so then the list length would not match between elements and element_ratios
Originally posted by @shyamd in https://github.com/Materials-Consortia/OPTIMADE/issues/349#issuecomment-855955706

... The statistical aspects of compositions are handled by species and species_at_sites, but there is currently no linkage from species_at_sites to elements, e.g. we do not require that set(symbol for species in entry.attributes.species for symbol in species.chemical_symbols) == entry.attributes.elements. Of course, impurity could mean 10% or it could mean 0.00001%...
I would suggest that given the existing interpretation (or lack thereof) of the specification, we should still merge this pending further discussion. This requirement has been implicit (and is coded up in the python-tools models, for example); if we decide to relax it based on this impurity use-case then that will not be a breaking change.
Originally posted by @ml-evs in https://github.com/Materials-Consortia/OPTIMADE/issues/349#issuecomment-855967360


CSS remains within style tags

I process files that have inline <style> tags (minified) but after process the <style> tag remains even though I set preserveStyles: false and the CSS is now unminified.

Hi the problem seems related to premailer itself.
Maybe this issue (https://github.com/premailer/premailer/issues/210) refers to the same bug


Make mouseEnterAnnotation and mouseLeaveAnnotation public.

Can the events mouseEnterAnnotation(annotation, e) and mouseLeaveAnnotation(annotation, e) be make public.

Yes, this is also on the list.

Send me message when min.js is updated! Great work, the other mods work great!

Hi, I just updated the build on the demo page.

Brilliant! Thank you, will check out new functionality!
Jason
Sent from my iPhone
On 17 May 2020, at 19:07, Rainer Simon<EMAIL_ADDRESS>wrote:

Hi, I just updated the build on the demo page.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/recogito/annotorious-openseadragon/issues/7#issuecomment-629837740, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC7ETS7JN5HCVWP7GBTJGJTRSARVLANCNFSM4M5ESUMQ.

Hi Rainer
Not sure if I’m doing this wrong, but I can’t get any of the following to work?
selectAnnotation, panTo, fitbounds or mouseEnter/Leve events??
Example :
anno.on('mouseEnterAnnotation', function (annotation, e) {
console.log('mouseEnterAnnotation', annotation);
});
From: Rainer Simon<EMAIL_ADDRESS>Sent: 17 May 2020 19:07
To: recogito/annotorious-openseadragon<EMAIL_ADDRESS>Cc: Jason Podwojski<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [recogito/annotorious-openseadragon] Make mouseEnterAnnotation and mouseLeaveAnnotation public. (#7)
Hi, I just updated the build on the demo page.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/recogito/annotorious-openseadragon/issues/7#issuecomment-629837740, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC7ETS7JN5HCVWP7GBTJGJTRSARVLANCNFSM4M5ESUMQ.

Weird - either the GitHub page didn't update properly, or I managed to deploy the wrong thing yesterday night. I redeployed & things should work now.

It happens!! Thanks, I’ll have a play today!
From: Rainer Simon<EMAIL_ADDRESS>Sent: 18 May 2020 12:02
To: recogito/annotorious-openseadragon<EMAIL_ADDRESS>Cc: Jason Podwojski<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [recogito/annotorious-openseadragon] Make mouseEnterAnnotation and mouseLeaveAnnotation public. (#7)
Weird - either the GitHub page didn't update properly, or I managed to deploy the wrong thing yesterday night. I redeployed & things should work now.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/recogito/annotorious-openseadragon/issues/7#issuecomment-630108048, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC7ETS32LWKY2GGY7UJLRALRSEISRANCNFSM4M5ESUMQ.


Overwatch Profile Not Starting

What are you experiencing an issue with?

[ ] Aurora
[x] Aurora supported game, (Overwatch)
[ ] Aurora Wrapper
[ ] Aurora Profile
[ ] Aurora supported device, (Fill in problematic devices)
[ ] Aurora Scripts
[ ] Aurora Updater
[ ] Aurora Lighting issue
[ ] Other, (Fill in another issue here)

What kind of an issue is it?

[ ] Crash
[ ] Performance problems
[ ] Visual bug
[ ] Localization issue
[ ] Enhancement suggestion
[ ] Device issue
[x] Other, (Doesn't Load Profile)

Expected behavior:
Profile Should load after I launch into the game.
Actual behavior:
Keyboard goes dark and nothing shows up on it.
How often does this problem occur?

This problem occurs... (Happens almost every time, only worked correctly for one day, then didnt work after i turned on my PC)
Please describe the steps to reproduce this issue:
The issue can be reproduced by doing following steps:

Aurora Loads
Check Overwatch Profile
Open Overwatch

What is the version of Aurora you are experiencing this issue with?

My version is... (Beta v0.6.1)
Does the previous version of Aurora have this issue?
I didn't have Aurora then
Please include any logs, screenshots, or files that are related to this issue:

For logs, you can use: http://pastebin.com/
For screenshots, you can use: http://imgur.com/
For files, you can use: http://www.tinyupload.com/ , https://www.dropbox.com/ , or attach them to the issue. No Logs Folder :-z

Also Just to clarify i have Patched, I have  Visual C++ Redistributable Packages for Visual Studio 2015 and Microsoft .NET Framework 4.5 downloaded and installed

I'm losing hope, i feel like I've tried everything :(

It only lights up if you are actually playing a hero. Go into training range and check. If it still doesn't work and did before try deleting the dll and applying again, that has worked for me before.

@MightyWalrusss Please try what @diogotr7 said and get back to us.

@diogotr7 It worked for about a day or two, now the latest patch hit and it doesn't start when I load it up again, i have patched both Razer and Overwatch again and even tried reinstalling the program, but to no avail.

@simon-wh
I have tried re patching and reinstalling again and it still isn't working

Me too, same issue on G910. Before the patch it was working fine. I've already re-patched OW.

Overwatch stable and PTR are both working on my system.

Overwatch stable and PTR are both working on my system.

Do you start Aurora, OW or both as administrator? I can't get it to work sadly

Aurora starts as admin by default. You don't need to start ow as admin. can you use process explorer to see if the game loaded the dll?

Aurora starts as admin by default. You don't need to start ow as admin. can you use process explorer to see if the game loaded the dll?

From Process Explorer it looks like the RzChromaSDK64.dll is correctly loaded by OW.

On a side note, it seems that it stopped working in Dota 2 as well. Working fine on Battlefield 1.

If it loads the dll i don't see why it wouldn't work. Are you sure you got into a game and not just the main menu?

Yes, both on Training and in quick plays. It's not working
Il mer 26 set 2018, 21:40 diogotr7<EMAIL_ADDRESS>ha scritto:

If it loads the dll i don't see why it wouldn't work. Are you sure you got
into a game and not just the main menu?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/antonpup/Aurora/issues/1120#issuecomment-424843940,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARQINXZHYOQ4OL_TCOhctPrXT131rAfZks5ue9gjgaJpZM4UX__h
.

If it loads the dll i don't see why it wouldn't work. Are you sure you got into a game and not just the main menu?

I just noticed that in Aurora's Device Manager page, Logitech stays on Not initialized; if I click Start, it changes to Connected for one second then it goes back to Not initialized, not mattter how many times I try. Could it be related?

Logitech Gaming Software is running in bg.

@diogotr7 Ok, I reinstalled Aurora 0.6.3 and now everything is working fine. I'd suggest to add an hint in the next versions of Aurora advicing you to reinstall if something is not working properly. Thanks for your time :)


Copy optimization

Optimize away unnecessary copies.

If stuff should be fast, it should likely use another language...


NameError: name '_C' is not defined

Traceback (most recent call last):
  File "/data10/cyb/SAM/SAM1/recognize-anything/test.py", line 261, in <module>
    ram_tags, ram_chinese_tags, ram_out_image = inference_with_ram(in_img, do_det_seg=True)
  File "/data10/cyb/SAM/SAM1/recognize-anything/test.py", line 253, in inference_with_ram
    return inference(img, None, do_det_seg, "RAM", ram_model, grounding_dino_model, sam_model)
  File "/data5/shitao/anaconda/envs/ab/lib/python3.9/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/data10/cyb/SAM/SAM1/recognize-anything/test.py", line 165, in inference
    boxes_filt, scores, pred_phrases = get_grounding_output(
  File "/data10/cyb/SAM/SAM1/recognize-anything/test.py", line 56, in get_grounding_output
    outputs = model(image[None], captions=[caption])
  File "/data5/shitao/anaconda/envs/ab/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/data5/shitao/anaconda/envs/ab/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/data10/cyb/SAM/SAM1/recognize-anything/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/groundingdino.py", line 313, in forward
    hs, reference, hs_enc, ref_enc, init_box_proposal = self.transformer(
  File "/data5/shitao/anaconda/envs/ab/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/data5/shitao/anaconda/envs/ab/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/data10/cyb/SAM/SAM1/recognize-anything/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/transformer.py", line 258, in forward
    memory, memory_text = self.encoder(
  File "/data5/shitao/anaconda/envs/ab/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/data5/shitao/anaconda/envs/ab/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/data10/cyb/SAM/SAM1/recognize-anything/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/transformer.py", line 577, in forward
    output = checkpoint.checkpoint(
  File "/data5/shitao/anaconda/envs/ab/lib/python3.9/site-packages/torch/_compile.py", line 24, in inner
    return torch._dynamo.disable(fn, recursive)(*args, **kwargs)
  File "/data5/shitao/anaconda/envs/ab/lib/python3.9/site-packages/torch/_dynamo/eval_frame.py", line 328, in _fn
    return fn(*args, **kwargs)
  File "/data5/shitao/anaconda/envs/ab/lib/python3.9/site-packages/torch/_dynamo/external_utils.py", line 17, in inner
    return fn(*args, **kwargs)
  File "/data5/shitao/anaconda/envs/ab/lib/python3.9/site-packages/torch/utils/checkpoint.py", line 451, in checkpoint
    return CheckpointFunction.apply(function, preserve, *args)
  File "/data5/shitao/anaconda/envs/ab/lib/python3.9/site-packages/torch/autograd/function.py", line 539, in apply
    return super().apply(*args, **kwargs)  # type: ignore[misc]
  File "/data5/shitao/anaconda/envs/ab/lib/python3.9/site-packages/torch/utils/checkpoint.py", line 230, in forward
    outputs = run_function(*args)
  File "/data5/shitao/anaconda/envs/ab/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/data5/shitao/anaconda/envs/ab/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/data10/cyb/SAM/SAM1/recognize-anything/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/transformer.py", line 786, in forward
    src2 = self.self_attn(
  File "/data5/shitao/anaconda/envs/ab/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/data5/shitao/anaconda/envs/ab/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/data10/cyb/SAM/SAM1/recognize-anything/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/ms_deform_attn.py", line 338, in forward
    output = MultiScaleDeformableAttnFunction.apply(
  File "/data5/shitao/anaconda/envs/ab/lib/python3.9/site-packages/torch/autograd/function.py", line 539, in apply
    return super().apply(*args, **kwargs)  # type: ignore[misc]
  File "/data10/cyb/SAM/SAM1/recognize-anything/Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/ms_deform_attn.py", line 53, in forward
    output = _C.ms_deform_attn_forward(
NameError: name '_C' is not defined

This seems like an issue not related to RAM, but rather to GroundingDINO/Grounding SAM. There is a version of the Multi-Scale Deformable Attention Function that this library attempts to build using CUDA tools during the installation process. If this fails due to a CUDA environment variable not being set, the code inside ms_deform_attn.py will still try to look for this function. You can either restart the installation process (I would recommend following the procedure outlined for GroundingDINO in their repo), or you could try to fix it as I proposed here: https://github.com/IDEA-Research/Grounded-Segment-Anything/issues/469#issuecomment-2123389938.


Linkify issue references

Issue Type: Feature Request
If a PR has a title lile fix issue #46816 then we should linkify the issue reference in the title.
Extension version: 0.1.7
VS Code version: Code - Insiders 1.29.0-insider (5bd6ebe2dbc4dee510699020a25f70a69784ce8c, 2018-10-09T09:31:07.090Z)
OS version: Windows_NT x64 10.0.17763

It looks like nice enhancement but I have one thought here: how we can recognise if this is a PR or an issue id?

From https://github.com/Microsoft/vscode-pull-request-github/pull/831, content on the description page should now use HTML from GitHub


[Bug]  schedule CQ offset invalid. offset=77, cqMinOffset=0, cqMaxOffset=74, queueId=1

Before Creating the Bug Report

[X] I found a bug, not just asking a question, which should be created in GitHub Discussions.

[X] I have searched the GitHub Issues and GitHub Discussions  of this repository and believe that this is not a duplicate.

[X] I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.

Runtime platform environment
mac os(linux)
RocketMQ version
5.1.0
JDK Version
jdk8
Describe the Bug
2023-07-25 10:33:49 ERROR BrokerControllerScheduledThread1 - schedule CQ offset invalid. offset=77, cqMinOffset=0, cqMaxOffset=74, queueId=1
2023-07-25 10:33:50 ERROR BrokerControllerScheduledThread1 - correct delay offset [ delayLevel 2 ] from 77 to 74
in reality

Offset corrections were made here

But it doesn't refresh to delayOffset.json
Then re-added in the delayOffset.json file for a corrective override

Steps to Reproduce

star broker slave
delete store file

What Did You Expect to See?
no error
What Did You See Instead?
error
2023-07-25 10:33:49 ERROR BrokerControllerScheduledThread1 - schedule CQ offset invalid. offset=77, cqMinOffset=0, cqMaxOffset=74, queueId=1
2023-07-25 10:33:50 ERROR BrokerControllerScheduledThread1 - correct delay offset [ delayLevel 2 ] from 77 to 74
Additional Context
No response

why delayOffset.json will reload? It seems that the two images are duplicated

This is because SlaveSynchronize calls syncDelayOffset to synchronise delayed messages.

@weihubeats Good catch! I don't think the slave broker should fix the delayOffset, which also leads to many error logs being printed.

@weihubeats Are you interested in fixing it?

Sure, I'll try to fix a version of it and ask for your help then!

catch it


Bug: Website not working

https://sql.bobby.sh/

Hi @Wulfheart,
This should be fixed now! Thanks for opening an issue for this.
I'm still working on the interactive Katacoda training though.


focus-out not firing

I am a little mystified and maybe it is something I am doing wrong by recently (an update?) the focus-out function is not firing at all.  I have been running on 0.3.1 and in my debugging have updated to 0.3.3.   Here is what I have, pulling directly from the DOM.
<angucomplete-alt id="ex1" input-class="nMatType" placeholder="Fertilizers" pause="100" selected-object="CF.materialAuto" local-data="fertilizers" search-fields="name" title-field="name" minlength="1" focus-out="focusOut()" class="ng-isolate-scope">
Besides the focus-out not working everything else appears to be working just fine.  Have I done something wrong?  I have gone so far as to try editing the hideResults function in the module to see if a console.log will fire but nothing of the sort is happening.  Any help appreciated.

@nbunney Is it still happening? Just released v0.0.34 now. Could you take a look?

Hi, I will be back on that project later today.  Will keep you posted.
Nathan Bunney
209-765-1262
On Sat, Jan 10, 2015 at 1:38 AM, Hidenari Nozaki<EMAIL_ADDRESS>wrote:

@nbunney https://github.com/nbunney Is it still happening? Just
released v0.0.34 now. Could you take a look?
—
Reply to this email directly or view it on GitHub
https://github.com/ghiden/angucomplete-alt/issues/104#issuecomment-69449968
.

Hi,
I had bower pull the latest version and I am still having this issue.  This
worked before then just stopped working.
Nathan Bunney
209-765-1262
On Mon, Jan 12, 2015 at 9:01 AM, Nathan Bunney<EMAIL_ADDRESS>wrote:

Hi, I will be back on that project later today.  Will keep you posted.
Nathan Bunney
209-765-1262
On Sat, Jan 10, 2015 at 1:38 AM, Hidenari Nozaki<EMAIL_ADDRESS>
wrote:

@nbunney https://github.com/nbunney Is it still happening? Just
released v0.0.34 now. Could you take a look?
—
Reply to this email directly or view it on GitHub
https://github.com/ghiden/angucomplete-alt/issues/104#issuecomment-69449968
.

What about the example 12 http://ghiden.github.io/angucomplete-alt/#example12
Is this working? If so, it's not this directive. Probably something wrong with your setting.

Yah, that works fine for me...
Anything obvioiusly wrong with this?
angucomplete-alt(id="ex1", input-class="nMatType", focus-out="setFert()",
selected-object="CF.materialAuto", local-data="fertilizers",
search-fields="name", title-field="name", minlength="1")
I have defined $scope.setFert = function in the route for the page in
question but I never see it fire.  Are there anythings internal that I can
check to see where the problem is?
Nathan Bunney
209-765-1262
On Mon, Jan 12, 2015 at 11:50 AM, Hidenari Nozaki<EMAIL_ADDRESS>wrote:

What about the example 12
http://ghiden.github.io/angucomplete-alt/#example12
Is this working? If so, it's not this directive. Probably something wrong
with your setting.
—
Reply to this email directly or view it on GitHub
https://github.com/ghiden/angucomplete-alt/issues/104#issuecomment-69633317
.

Im actually having the same issue... I cannot see the difference between my code and the example code, but the event never fires... I have been looking through the event handlers on your example page and my own and the blur event on the actual rendered input fields are different.
It seems that on my site, the blur event is hooked up with Jquery, but on your example page I can see that the blur event is angual bound.
But I dont know how to control this... thought it might be of help to resolve??
-- Mark

If you guys can create a plnkr or jsbin or whatever example, I can take a look at it.

One difference is that your code is <div angucomplete-alt and mine is <angulcomplete-alt not sure what would cause that difference.

Im finding it hard to isolate why, but I have also noticed that in my usage, the ng-focus event is firing twice!

Do you guys have Angular Batarang installed? I was having a similar issue, and it was being caused by Batarang.

Can confirm @wcmiller. I had the selected-object function firing twice. turning off Batarang fixed it.


Meaning of overlapping rings

Trying to come up with a reasonable interpretation of what overlapping rings should mean. I think probably the areas that should be included in the final polygon are the ones where the net coverage >= 1. So if you have two outer rings like the blue ones here and two holes like the yellow ones:

the final polygon should look like the solid black shape here:

One hole can cancel out one outer ring, but where there are two overlapping outer rings, it takes two overlapping holes to cancel them both out. A hole outside of any outer ring has negative coverage and has no effect.
cc @flippmoke

At least I finally realized how to think about clipping in these terms: the clip region is just a regular polygon, but the area outside of it has a depth of -1, so it takes being inside the clip and inside the polygon being clipped to get to a depth of 1.

http://www.angusj.com/delphi/clipper/documentation/Docs/Units/ClipperLib/Types/PolyFillType.htm
In my general opinion we should generally be using EvenOdd or Positive Filling. I think that NonZero isn't really ideal in most situations. EvenOdd in the situations where we are not confident that winding order is correct and Positive in the situation where we assume that winding order is generally correct.

@flippmoke I thought you said you didn't want EvenOdd, since it doesn't respect winding order?
Positive is what I was trying to talk about above, I think. NonZero would mean that there are no holes.

@ericfischer we currently use positive when creating vector tiles, the reason is that for most formats we expect there to be some sort of reasonable winding order that is used by mapnik prior to being sent to mapnik-vector-tile encoder. However, when we updating v1 tiles to v2 tiles we are using EvenOdd because we are not certain that previous versions of vector tiles were using any sort of winding order. In this case we have no idea if it is a ring or hole as winding order may not be correct for any of the rings.

Makes sense @flippmoke. Thanks for the clarification.


Feature Request: "help "

Provide contextual help about a particular command, simply the information of what parameter is expected (type, where to find it, etc...) even if it seems obvious ;)

I think this issue can be closed now that this pull request was merged.
https://github.com/jugyo/earthquake/pull/78


[New Port Request]

Library name
TinyChatEngine
Library description
TinyChatEngine: On-Device LLM Inference Library
Source repository URL
https://github.com/mit-han-lab/TinyChatEngine
Project homepage (if different from the source repository)
https://mit-han-lab.github.io/TinyChatEngine/
Anything else that is useful to know when adding (such as optional features the library may have that should be included)
Running large language models (LLMs) on the edge is useful: running copilot services (coding, office, smart reply) on laptops, in-car entertainment systems, vision-language assistants in robots or spaceships. Users can get instant responses without transmitting any local data to the internet, addressing privacy concerns, as sensitive data remains localized and reduces the risk of potential breaches.
TinyChat project consists of LLM model compression algorithms and TinyChatEngine, the inference engine that implements the compressed LLM targeting edge devices.

Hope it can be added

Hope it can be added

Hope it can be added

Comment to keep it open

Comment to keep it open


Clicking on file in scm viewlet automatically focuses that file

Refs: #20440

SCM viewlet, have some changes
Click on any file in the scm viewlet
Focus is immediatly transfered to the editor
I would expect the SCM viewlet to behave like all out other viewlets (explorer, debug) - ony click preserves the focus in the viewlet. Only double click transfers focus. This way it is imposible to focus an item in the tree and then use keyboard for further navigation

https://github.com/Microsoft/vscode/issues/20909


/missing-playwright-await > silent rule when using it in Promises

Having the following block produce a missing-playwright-await error

		await Promise.all([
			expect(previewLessonPage.relatedContent.title).toBeHidden(),
			expect(previewLessonPage.relatedContent.items).toHaveCount(0),
		]);

Those cases should not produce errors considering that we're handling them into a Promise already and that promise it's being awaited.

What's the use case?  Your example could just as easily be written like so:
await expect(previewLessonPage.relatedContent.title).toBeHidden()
await expect(previewLessonPage.relatedContent.items).toHaveCount(0)

Interesting, that seems like a really niche use case, but adding support for promise.all shouldn't be to difficult.


Run migrate script as postinstall task in 6 if the user needs to update their project

Desired behavior
user runs npm install @angular/cli (for v6)
Detect if they need to run ng update @angular/cli --migrate-only --from=1.7.3 and if they do, run it for them! :)

Instead of actually running it, show a message to the user that they need to run it.


Fix the build of the OpenCV C++ library

@bergmark this hopefully fixes https://github.com/fpco/stackage/pull/2597#issuecomment-310930926. Could you give it a try?

Thanks! I'll merge this while keeping opencv disabled until I see that the docker build works.

Were you able to test this locally? You can simply run docker build . on your branch, c++ is not happy: c++: internal compiler error: Killed (program cc1plus) Please submit a full bug report :(

I did run the curl, cmake and make commands locally and they completed successfully. I will try your suggested docker command this evening.

@bergmark docker build . works for me.
Could it be that you hit some kind of resource limit? It seems like that because your c++ process was killed.

Seems like it, I forgot to post the log on dockerhub, sorry! https://hub.docker.com/r/snoyberg/stackage/builds/bey9jt59dqlkquzek9xezvn/
It happens both on dockerhub and for me locally, so I'm not sure how we should proceed here...

It seems the error occurs when building the Google Protocolbuffers library. Support for that is not needed by our Haskell opencv package. I'll try disabling it and all other things I don't need. That should also make the build quicker.

@cdornan I don't think this is ready to merge since the dockerhub build failed when i tried it.

It turns out that Google Protocolbuffers is an indirect dependency of the Haskell opencv library so unfortunately I can't just disable it. It might be possible to teach the OpenCV build process to use an already installed Protocolbuffers library so that we can install one from a PPA.
However it might be simpler to just increase the resource limits of docker a bit. Would that be possible to try out?

I can going to revert the opencv-dev stuff for now, since unfortunately it is still broken...

@juhp that's fine. Apart from trying to give docker more resources I don't now how to fix this unfortunately.


🐞 [Bug]: Mnemonics not autofilled after account creation in profile manager if there is browser autofill

Is there an existing issue for this?

[X] I have searched the existing issues

which package/s did you face the problem with?
Dashboard
What happened?
In the profile manager, when I empty the mnemonics field and click on create account then accept terms and conditions. I am then redirected again to the profile manager but due to browser autofill it has text that overrides the insertion of the mnemonics of the newly created account.
Steps To Reproduce

save autofill in profile manager mnemonics field
empty autofilled mnemonics field
click create account
accept terms and conditions
watch the autofilled text return and the mnemonics of the newly created account get lost

which network/s did you face the problem on?
Dev
version
2.4
Twin ID/s
No response
Node ID/s
No response
Farm ID/s
No response
Contract ID/s
No response
Relevant screenshots/screen records
https://www.loom.com/share/622b414edf3d49929c5be4b0554882b0?sid=d7239941-da56-41e7-be7e-d147a90977dc
Relevant log output
n/a

we can disable the Auto Fill for that field.

Work Completed:
Fix profile manager inputs autocomplete

verified on devnet
version : db2daf4
the issue is not more producible tried it with different scenarios.
https://github.com/threefoldtech/tfgrid-sdk-ts/assets/110984055/395404b3-00ec-4a48-a822-23e80a191e1d

Issue still reproducible on :

Devnet
version: d44ca11

can we search if we can disable auto fill for the fields

Work in Progress (WIP):
I can't reproduce it, still investigating...

Work in progress:
I tried several solutions, but it's still not working .. investigating...

Work Completed:
chrome behavior prevented by adding readonly attribute.

Verified on devnet

Version : ac03039

The Issue has been fixed.

https://github.com/user-attachments/assets/6a76735c-5bae-4813-8a6c-3d58eec609cf

issue fixed and verified also in #3131


Consider getting DOSs for the packages

Consider submitting the packages to JOSS, or creating releases on Zenodo.

We have agreed that we will use GitHub's Zenodo link to create a DOI for future releases. See https://docs.github.com/en/repositories/archiving-a-github-repository/referencing-and-citing-content for details on how to do this.


fix(deps): update terraform-module

This PR contains the following updates:

Package
Type
Update
Change

github.com/terraform-ibm-modules/terraform-ibm-watsonx-saas-da
module
patch
v1.0.6 -> v1.0.8

terraform-ibm-modules/cos/ibm (source)
module
patch
8.3.0 -> 8.3.1

Release Notes

terraform-ibm-modules/terraform-ibm-watsonx-saas-da (github.com/terraform-ibm-modules/terraform-ibm-watsonx-saas-da)
v1.0.8
Compare Source
Bug Fixes

deps: update terraform terraform-ibm-modules/cos/ibm to v8.3.1 (#82) (feb496a)

v1.0.7
Compare Source
Bug Fixes

deps: update terraform terraform-ibm-modules/cos/ibm to v8.3.0 (#81) (d243f4d)

terraform-ibm-modules/terraform-ibm-cos (terraform-ibm-modules/cos/ibm)
v8.3.1
Compare Source
Bug Fixes

fixed bug in validation of resource_keys roles. It was incorrectly checking for None an now it correctly checks for NONE (#632) (5473ee2)

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

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

:tada: This PR is included in version 1.9.9 :tada:
The release is available on:

GitHub release
v1.9.9

Your semantic-release bot :package::rocket:


Nullspace on join

Joining the game has a chance to throw you into nullspace

Not an issue that I can repro anymore, so I'm closing. If this comes up again please notify me through discord


SFTTrainer.create_model_card() got an unexpected keyword argument 'finetuned_from'

Dear HuggingFace,
By using transformers 4.46.1 and trl 0.12.0,  the key word "finetuned_from" seems to be removed? I double checked the TRL document, and also found there is no "finetuned_from" in the API.
However, trainer in transformers support "finetuned_from" parameters. Doc
Please check.
Best regards,
Eli Chen

maybe you can call super(SFTTrainer, trainer).create_model_card(**kwargs) to call create_model_card method from transformers trainer directly


[Feature] Surprise

Data -> here

@tathagata-raha @susiejojo Please look into surprise integration after uploading the data.


added shortcode

fixes  #42348

/retest

@deepak4566 You have to understand how the code is used and where the snippets are supposed to be placed to be able to make such a PR.

/close
This PR doesn't make sense: incorrect use of code snippet, incorrect placement of the sample YAML etc. It provides no value.


New IMU data check is faulty

@superjax Okay I could be wrong here, but this looks like it could be a problem.
On line 37 of sensors.c, we check the mpuDataReady flag to see if we have new IMU data available. However, as I was looking through drv_mpu6050.c, I realized that mpuDataReady never gets set to false, so after the first time that check will always return true. Is that correct, or did I miss something?
Two possible fixes:

in sensors.c, set mpuDataReady = false like you do in your accelgyro example. Simple, but it seems a little weird to be modifying a flag inside a library from outside the library. Might be okay though.
store a copy of mpuMeasurementTime and do an equality comparison. When a different value from your local copy is detected, you have a new measurement.

Thoughts? Also I wonder what this might have been doing to our timing.

That's right.
I just actually pulled a change to breezy where we register our own ISR - simondlevy/BreezySTM32#9.  That way, we have complete control of how the ISR works.  I got rid of the mpuDataReady flag entirely, and left it up to ROSflight to decide how to handle it.  It will be a lot cleaner, and it works better for camera triggering.

testing

Sweet! That'll be really nice.

Closed by #36


Feature: filter branches based on a prefix when using GitHub storage mode

Issue: working on a project where there are lots of branches (and there are expected to be many more) - currently it is hard for content people to differentiate between their branches and general development stuff.
Suggestion: provide a GitHubConfig option which is a handler to filter branches based on a prefix
Examples:
feature/content...  if wanting to isolate development/content PRs
feature/[project-prefix] when working in a monorepo

oops... moved to discussion https://github.com/Thinkmill/keystatic/discussions/455


PS4 Integration doesn't work

Home Assistant release with the issue:
0.103.6

Last working Home Assistant release (if known):
0.102
Operating environment (Hass.io/Docker/Windows/etc.):
docker

Integration:
https://www.home-assistant.io/integrations/ps4/

Description of problem:
After update ps4 integration doesn't work
Traceback (if applicable):
pi@raspberrypi:~ $ cat home-assistant/home-assistant.log
2020-01-07 19:14:29 ERROR (MainThread) [homeassistant.setup] Error during setup of component ps4
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 172, in _async_setup_component
    hass, processed_config
  File "/usr/src/homeassistant/homeassistant/components/ps4/__init__.py", line 56, in async_setup
    transport, protocol = await async_create_ddp_endpoint()
  File "/usr/local/lib/python3.7/site-packages/pyps4_2ndscreen/ddp.py", line 130, in async_create_ddp_endpoint
    transport, protocol = await loop.create_task(connect)
  File "/usr/local/lib/python3.7/asyncio/base_events.py", line 1211, in create_datagram_endpoint
    raise ValueError("Passing `reuse_address=True` is no "
ValueError: Passing `reuse_address=True` is no longer supported, as the usage of SO_REUSEPORT in UDP poses a significant security concern.

See #30537 and fixed in #30327


Configure Azure Pipelines

This pipeline configuration builds the application and produces a build for the Release configuration.

Comment


Found a compatibility table here  from

Found a compatibility table here http://kangax.github.io/compat-table/es7/#Object.observe from http://stackoverflow.com/questions/21073082/which-browsers-support-object-observe

This issue was imported from Google Moderator
Moderator votes: +7
Issue added by Lamuertepeluda on 2014-09-17
To vote this issue up or down, simply include +1 or -1 in your comment.

Already added at http://caniuse.com/#feat=object-observe


Added ignore-daemonsets-utilization flag  and verbosity to CA

How to categorize this PR?

/area auto-scaling
/kind enhancement
What this PR does / why we need it:
This PR adds two  new flags ignore-daemonsets-utilization and verbosity in the shoot spec for autoscaler
Which issue(s) this PR fixes:
Fixes https://github.com/gardener/autoscaler/issues/266
Special notes for your reviewer:
Release note:

NONE

/test pull-gardener-e2e-kind-upgrade

Can you please adapt https://github.com/gardener/gardener/blob/aaa0c60fbc3ff3355addb3a9c3deffea65ec7e84/example/90-shoot.yaml#L283-L297 with the new fields?

Thanks!
/lgtm

/test pull-gardener-e2e-kind-ha-single-zone-upgrade

/approve
/retest

/retest

/test pull-gardener-e2e-kind-migration-ha-single-zone

/test pull-gardener-e2e-kind-migration-ha-single-zone


refactor: replace less with scss

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


Update README.md with raw downloadable install url

I tried to download the jquery.matchHeight.js download link by using "save link as...", and I got a .js file with html content. Realized it links to the repo with the file, so I propose to link to the raw file instead. This will make it directly downloadable.

Good idea, cheers!

Thanks! Happy to help.


Compile install MXNet using MKL

For bugs or installation issues, please provide the following information.
The more information you provide, the more likely people will be able to help you.
MXNet commit hash (git rev-parse HEAD):
d35fc765f9526bd836ba4a431729d130a862db3f
If you are using python package, please provide
Python version and distribution:
python3.5
#Error message
src/operator/./mkl/mkl_pooling-inl.h: In member function ‘virtual void mxnet::op::MKLPoolingOp<xpu, DType>::Forward(const mxnet::OpContext&, const std::vectormxnet::TBlob&, const std::vectormxnet::OpReqType&, const std::vectormxnet::TBlob&, const std::vectormxnet::TBlob&)’:
src/operator/./mkl/mkl_pooling-inl.h:185:11: error: ‘dnnAlgorithmPoolingAvgIncludePadding’ was not declared in this scope
dnnAlgorithmPoolingAvgIncludePadding : dnnAlgorithmPoolingAvg;
What have you tried to solve it?

modify root of MKL directory

@glingyan @zhenlinluo

Young jin will support for me
Customer is use an old mkl version, please download latest
From: Eric Junyuan Xie<EMAIL_ADDRESS>Sent: Monday, May 22, 2017 11:48 PM
To: dmlc/mxnet<EMAIL_ADDRESS>Cc: Guo, Lingyan<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [dmlc/mxnet] Compile install MXNet using MKL (#6386)
@glingyanhttps://github.com/glingyan @zhenlinluohttps://github.com/zhenlinluo
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/dmlc/mxnet/issues/6386#issuecomment-303139958, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVcrhbM3dhsSF_IkvVdDbmNr9dDqJhqTks5r8a5LgaJpZM4Niism.

latest in https://software.intel.com/en-us/performance-libraries
you could check mkl_version.h #define __INTEL_MKL_BUILD_DATE 20170127

I have checked my MKL installation. with MKL_BUILD_DATE. But I haven’t found any libmklml_intel.so or other related library. Any advices?

On 25 May 2017, at 10:07, glingyan<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:
latest in https://software.intel.com/en-us/performance-libraries https://software.intel.com/en-us/performance-libraries
you could check mkl_version.h #define __INTEL_MKL_BUILD_DATE 20170127
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/dmlc/mxnet/issues/6386#issuecomment-303902434, or mute the thread https://github.com/notifications/unsubscribe-auth/AEts398ssw7MxjboSI1n8ljoz0l3zoKgks5r9OJLgaJpZM4Niism.

Or can you give me the location of dnnAlgorithmPoolingAvgIncludePadding definition?

On 25 May 2017, at 10:07, glingyan<EMAIL_ADDRESS>wrote:
latest in https://software.intel.com/en-us/performance-libraries https://software.intel.com/en-us/performance-libraries
you could check mkl_version.h #define __INTEL_MKL_BUILD_DATE 20170127
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/dmlc/mxnet/issues/6386#issuecomment-303902434, or mute the thread https://github.com/notifications/unsubscribe-auth/AEts398ssw7MxjboSI1n8ljoz0l3zoKgks5r9OJLgaJpZM4Niism.

Current mxnet is enable for mklml small package, please check mkl_readme.md for details
From: yancz1989<EMAIL_ADDRESS>Sent: Thursday, May 25, 2017 10:31 AM
To: dmlc/mxnet<EMAIL_ADDRESS>Cc: Guo, Lingyan<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [dmlc/mxnet] Compile install MXNet using MKL (#6386)
Or can you give me the location of dnnAlgorithmPoolingAvgIncludePadding definition?

On 25 May 2017, at 10:07, glingyan <notifications<EMAIL_ADDRESS>wrote:
latest in https://software.intel.com/en-us/performance-libraries https://software.intel.com/en-us/performance-libraries
you could check mkl_version.h #define __INTEL_MKL_BUILD_DATE 20170127
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/dmlc/mxnet/issues/6386#issuecomment-303902434, or mute the thread https://github.com/notifications/unsubscribe-auth/AEts398ssw7MxjboSI1n8ljoz0l3zoKgks5r9OJLgaJpZM4Niism.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/dmlc/mxnet/issues/6386#issuecomment-303905602, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVcrheKOLnKdt0N2O8B-uVSjOsf6Q2MGks5r9Of0gaJpZM4Niism.

I know it, and follow your advice download mklml from https://github.com/dmlc/web-data/blob/master/mxnet/mklml-release/mklml_lnx_2<IP_ADDRESS>70209.tgz https://github.com/dmlc/web-data/blob/master/mxnet/mklml-release/mklml_lnx_2<IP_ADDRESS>70209.tgz. The error still exists. I wonder if there is any update version of this software?

On 25 May 2017, at 10:34, glingyan<EMAIL_ADDRESS>wrote:
Current mxnet is enable for mklml small package, please check mkl_readme.md for details
From: yancz1989<EMAIL_ADDRESS>Sent: Thursday, May 25, 2017 10:31 AM
To: dmlc/mxnet<EMAIL_ADDRESS>Cc: Guo, Lingyan<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [dmlc/mxnet] Compile install MXNet using MKL (#6386)
Or can you give me the location of dnnAlgorithmPoolingAvgIncludePadding definition?

On 25 May 2017, at 10:07, glingyan <notifications<EMAIL_ADDRESS>wrote:
latest in https://software.intel.com/en-us/performance-libraries https://software.intel.com/en-us/performance-libraries
you could check mkl_version.h #define __INTEL_MKL_BUILD_DATE 20170127
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/dmlc/mxnet/issues/6386#issuecomment-303902434, or mute the thread https://github.com/notifications/unsubscribe-auth/AEts398ssw7MxjboSI1n8ljoz0l3zoKgks5r9OJLgaJpZM4Niism.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/dmlc/mxnet/issues/6386#issuecomment-303905602, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVcrheKOLnKdt0N2O8B-uVSjOsf6Q2MGks5r9Of0gaJpZM4Niism.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/dmlc/mxnet/issues/6386#issuecomment-303905898, or mute the thread https://github.com/notifications/unsubscribe-auth/AEts3_kTV-xVHtQvhXDTT0f77uiL2AEvks5r9OiYgaJpZM4Niism.

Please provide the whole crash stack
Yonng jin may help you on that
From: yancz1989<EMAIL_ADDRESS>Sent: Thursday, May 25, 2017 10:41 AM
To: dmlc/mxnet<EMAIL_ADDRESS>Cc: Guo, Lingyan<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [dmlc/mxnet] Compile install MXNet using MKL (#6386)
I know it, and follow your advice download mklml from https://github.com/dmlc/web-data/blob/master/mxnet/mklml-release/mklml_lnx_2<IP_ADDRESS>70209.tgz https://github.com/dmlc/web-data/blob/master/mxnet/mklml-release/mklml_lnx_2<IP_ADDRESS>70209.tgz. The error still exists. I wonder if there is any update version of this software?

On 25 May 2017, at 10:34, glingyan <notifications<EMAIL_ADDRESS>wrote:
Current mxnet is enable for mklml small package, please check mkl_readme.md for details
From: yancz1989<EMAIL_ADDRESS>Sent: Thursday, May 25, 2017 10:31 AM
To: dmlc/mxnet <mxnet<EMAIL_ADDRESS>Cc: Guo, Lingyan <lingyan.guo<EMAIL_ADDRESS>Mention <mention<EMAIL_ADDRESS>Subject: Re: [dmlc/mxnet] Compile install MXNet using MKL (#6386)
Or can you give me the location of dnnAlgorithmPoolingAvgIncludePadding definition?

On 25 May 2017, at 10:07, glingyan <notifications@github.com<mailto:notifications@github.commailto:notifications<EMAIL_ADDRESS>wrote:
latest in https://software.intel.com/en-us/performance-libraries https://software.intel.com/en-us/performance-libraries
you could check mkl_version.h #define __INTEL_MKL_BUILD_DATE 20170127
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/dmlc/mxnet/issues/6386#issuecomment-303902434, or mute the thread https://github.com/notifications/unsubscribe-auth/AEts398ssw7MxjboSI1n8ljoz0l3zoKgks5r9OJLgaJpZM4Niism.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/dmlc/mxnet/issues/6386#issuecomment-303905602, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVcrheKOLnKdt0N2O8B-uVSjOsf6Q2MGks5r9Of0gaJpZM4Niism.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/dmlc/mxnet/issues/6386#issuecomment-303905898, or mute the thread https://github.com/notifications/unsubscribe-auth/AEts3_kTV-xVHtQvhXDTT0f77uiL2AEvks5r9OiYgaJpZM4Niism.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/dmlc/mxnet/issues/6386#issuecomment-303906725, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVcrhbQeFqY7S5JJ7jZUmNt7Kduix1Snks5r9OorgaJpZM4Niism.

I upload my config.mk file
[Uploading config.mk.txt…](config.mk file)
during compilation, the output and the error showed are uploaded
out.log.txt
Uploading out.log.txt…
MKL info
#define __INTEL_MKL_BUILD_DATE 20170127
#define INTEL_MKL 2017
#define INTEL_MKL_MINOR 0
#define INTEL_MKL_UPDATE 2
#define INTEL_MKL_VERSION 20170002

config.mk.txt

@glingyan

Hi @yancz1989
Could you do this?

Download mklml into any of your directory. (wget https://github.com/dmlc/web-data/raw/master/mxnet/mklml-release/mklml_lnx_2<IP_ADDRESS>70209.tgz)
Extract the file, then you will have a directory named ./mklml_lnx_2<IP_ADDRESS>70209
export USE_MKLML=1;export MKLROOT={the directory you extracted the mklml)
Copy 'libmklml_gnu.so' and 'libmklml_intel.so' into /usr/local/ from the mklml_lnx_2<IP_ADDRESS>70209/lib directory
Please use the default ./make/config.mk file. and just change USE_MKL2017 and USE_MKL2017_EXPERIMENTAL to 1.
compile again.

Please let me know if this doesn't work.
Thanks.

Hi @ykim362
I finished the compilation. One more variable should be set in config.mk is the USE_BLAS = mkl.
But, when I run fcn_xs example, I get the following error from gdb.
Thread 76 "python" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff1a3fb300 (LWP 30958)]
0x00007fff7a953c29 in mkl_vsl_sub_kernel_l9_sBRngMCG31M1 ()
from /usr/local/lib/python2.7/dist-packages/mxnet/libmklml_intel.so
Have you ever seen this problem?

How could you run it?
When I downloaded experiment data, its directory steucture was different from one the script expected. So, I got an error that there is no train.lst file.

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!


Fix MSVC build break in VS 2019

Summary
Updating react-native-windows to build with Visual Studio 2019 and the v142 toolset.
Changelog
[Internal] [Fixed] - Fix MSVC build break in VS 2019
Test Plan
No real change, only adding a missing include for stdexcept.

This is a resubmit of #28023, which was approved weeks ago, but I didn't realize hadn't been merged when I deleted the branch.


loadPgn doesn't work on a pgn without any moves yet

What
chess.loadPgn doesn't work on a pgn that has no moves yet.
const { Chess } = require('chess.js')

const game = new Chess();
game.header('White', 'id0');
game.header('Black', 'id1');
// game.move('e4'); // uncomment this for loadPgn to work

console.log(game.pgn())
/** output:
[White "id0"]
[Black "id1"]

*/

console.log('trying to load into another game instance')

const gameCpy = new Chess();
const result = gameCpy.loadPgn(game.pgn())
console.log('result:', result) // output: false

Why
It would be nice to rely solely on the pgn to describe the game, especially when saving the string in a database to track the game to be loaded for future play/moves.

Hi @kevo1ution. I just confirmed this. I agree, this is something that should be supported.

@jhlywa awesome! I can take a stab at it if that is okay


Cannot mock function with generic type

Hello,
I am trying to mock a function with generic type but I'm not certain if that is possible or how to do it exactly.
Here is the function signature from the interface I'm trying to mock :
suspend fun <T> getObject(input: GetObjectRequest, block: suspend (GetObjectResponse) -> T): T

In my implementation, getObject<File> is being called.
My failed attempt to mock it :
given(s3Client).suspendFunction(S3Client::getObject, fun2<GetObjectRequest, suspend (GetObjectResponse) -> File>())
		.whenInvokedWith(any(), any())
		.then {
			File("Dummy")
		}

Error :

None of the following functions can be called with the arguments supplied.

Hi @AlexandreBrown
I'll have a look at what could be done to improve this specific use case. For now, you may be able to use the string-based mocking function using something like this:
given(s3Client).suspendFunction("getObject")
    .whenInvokedWith(any(), any())
    .then { ... }

@Nillerr For me the untyped callable references suspendFunction(String) is not defined (using Mockative 1.2.3).
Any idea?

You're right 😅 I referenced a function that's no longer there. I must have removed it at some point, or perhaps just never gotten around to implementing it.
Tomorrow I'll have a look as to whether or not I can reintroduce the stringly-typed variant, as well as whether I can better support the type of function you're trying to mock.

Hi again @AlexandreBrown
I have implemented a test for your example and it turns out the issue is you're statically referencing the getObject function of S3Client like so: S3Client::getObject, where Mockative is designed such that you should be referencing the instance-scoped function s3Client::getObject (notice the lowercase s, referencing the property).
Let me know if this addresses your issue 🙂

@Nillerr Sorry about that, it was a typo in the issue description, I use Mockative by using the instance-scoped function s3Client::getObject.
Updated the issue description.

I published v1.2.5 earlier today. Let me know if this resolves your issue 🙂

@Nillerr Thanks for the update, this fixed my issue and it works now! :)


Add NDI 6 Runtime (incl. publisher nema change)

Checklist for Pull Requests

[x] Have you signed the Contributor License Agreement?
[ ] Is there a linked Issue?
no but a discussion linked to this : https://github.com/microsoft/winget-pkgs/discussions/130027

Manifests

[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.6 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.
Extra notes :

Getting rid of the version specificities in the Package hierarchy. (used to be NDI5Runtime now just NDIRuntime)
Keeping version in the Package Name only.
Using the new publisher name as well. (use to be Newtek,now is NDI (see discussion link above for justification)

Microsoft Reviewers: Open in CodeFlow

@wingetbot waivers Add Validation-No-Executables