Metadata Filtering

This is a draft. Comments and suggestions are welcome!
Metadata Filtering API
This PR introduces a metadata filtering feature, supported by many embedding stores, such as Pinecone and Milvus.
Since LangChain4j supports (and abstracts away) many embedding stores, there needs to be an embedding-store-agnostic way for users to define the filtering expression. This PR introduces a MetadataFilter interface, which closely resembles a Predicate<Metadata>. It enables the representation of both simple (e.g., type = "documentation") and more complex (e.g., type in ("documentation", "tutorial") AND year > 2020) filter expressions in an embedding-store-agnostic manner.
MetadataFilter currently supports the following operations:

Comparison operations:

Equal
NotEqual
GreaterThan
GreaterThanOrEqual
LessThan
LessThanOrEqual
In
NotIn

Logical operations:

And
Not
Or

These operations are supported by most embedding stores and serve as a good starting point. However, the list of operations will expand over time to include more specialized operations (e.g., Contains) supported by specific embedding stores.
Currently, the DSL looks like this:
MetadataFilter onlyDocs = key("type").eq("documentation");

MetadataFilter docsAndTutorialsAfter2020 = and(
    key("type").in("documentation", "tutorial"),
    key("year").gt(2020)
);
// or
MetadataFilter docsAndTutorialsAfter2020 = key("type").in("documentation", "tutorial").and(key("year").gt(2020));

MetadataFilter as a String
Users should also be able to specify MetadataFilter as a String. This might be necessary, for example, if the filter expression is generated dynamically by the application or by the LLM (as in self querying).
This PR introduces a MetadataFilterParser interface with a simple MetadataFilter parse(String) API, allowing for future support of multiple syntaxes (if this will be required).
For the out-of-the-box metadata filter syntax, ANSI SQL's WHERE clause is proposed as a suitable candidate for several reasons:

It is well-known among Java developers
There is extensive tooling available for it (e.g., parsers)
LLMs are pretty good at generating valid SQL, as there are tons of SQL queries on the internet, which are included in the LLM training datasets. Especially LLMs that are fine-tuned for text-to-SQL conversion.

The downside is that SQL's WHERE clause might not support all operations and data types that could be supported in the future by various embedding stores. In such case, we could extend it to a superset of SQL WHERE syntax or provide an option to express filters in the native syntax of the store.
An out-of-the-box implementation of the SQL MetadataFilterParser is provided as a separate module: langchain4j-metadata-filter-parser-sql, using JSqlParser under the hood.
Changes to EmbeddingStore API
This PR also introduces changes to the EmbeddingStore API. 2 new classes (EmbeddingSearchRequest and EmbeddingSearchResult) are introduced, containing all fields related to search (including new MetadataFilter). All findRelevant(...) methods are deprecated in favor of search(EmbeddingSearchRequest). All previous settings (e.g., maxResults, minScore) are supported by EmbeddingSearchRequest.
Changes to Metadata
Until now, Metadata supported only String values. This PR expands the list of supported types to Integer, Long, Float and Double. In the future, more types may be added (if needed).
The method String get(String key) is deprecated in favor of:

String getString(String key)
Integer getInteger(String key)
Long getLong(String key)
etc

New overloaded add(key, value) methods are introduced to support more types:

add(String key, int value)
add(String key, long value)
etc

Which embedding store integrations will support metadata filtering?
In the long run, all (provided the embedding store itself supports it).
In the first iteration, I aim to add support to just a few:

InMemoryEmbeddingStore
Elasticsearch
Milvus

Open Questions (please share your ideas in the comments):

Q: Which data types should Metadata support? Some embedding stores do not differentiate between number types (e.g., Integer, Long, Float, Double). Some store metadata as JSON, so type information is lost when persisting Metadata and then retrieving it back. Currently, I see two options: 1. Store an additional "type" field for each Metadata key-value pair and be strict during comparisons (e.g., fail if Integer is compared with Long). 2. Implement auto-casting (similar to Java's) during comparisons. So, if the metadata value was originally a Long, but after persistence, it is retrieved as an Integer, ensure it automatically casts to a Long filter value and also automatically casts when the user invokes getLong(key).
A: automatically upcast to a bigger type (e.g. integer -> long), downcast only if information is not lost (e.g. 1.0d -> 1L)
Q: What to do if the key is absent in Metadata? Should MetadataFilter.test(Metadata) return false in this case? Or throw an exception?
A: false
Q: Which SQL dialect should we support for the out-of-the-box parser? It's important to define this now to avoid confusion in the future and/or the need to support multiple dialects.
A: ANSI SQL (1999?)
Q: Should we use and(x, y) or x.and(y)syntax for combining operations? Or both? The first is more explicit and clear in terms of precedence, while the second is more convenient for auto-completion.
A: both
Q: JOOQ/QueryDSL-like (eq, lt, gte, etc) or AssertJ-like (isEqualTo, isLessThan, isGreaterThanOrEqualTo) naming?
A: JOOQ
Q: Should MetadataFilter extend Predicate<Metadata>?
A: Not right now, it can complicate things.

This looks great @langchain4j Thanks for the quick turnaround! I just tested in with my application with a simple equals comparison and it worked like a charm!
Regarding your questions. I cannot comment on all of them, but here are a few thoughts

Which data types should Metadata support? Some embedding stores do not differentiate between number types (e.g., Integer, Long, Float, Double). Some store metadata as JSON, so type information is lost when persisting Metadata and then retrieving it back. Currently, I see two options: 1. Store an additional "type" field for each Metadata key-value pair and be strict during comparisons (e.g., fail if Integer is compared with Long). 2. Implement auto-casting (similar to Java's) during comparisons. So, if the metadata value was originally a Long, but after persistence, it is retrieved as an Integer, ensure it automatically casts to a Long filter value and also automatically casts when the user invokes getLong(key).

I would say types like:

Strings
Wrapped Primitives, (Integer, Long, Double, Boolean, etc.)
Dates (LocalDate, LocalTime, etc).
Enums
BigDecimal & BigInteger

I would strict comparisons.

Should we use and(x, y) or x.and(y)syntax for combining operations? Or both? The first is more explicit and clear in terms of precedence, while the second is more convenient for auto-completion.

Personally I would prefer x.and(y) but both are fine

JOOQ/QueryDSL-like (eq, lt, gte, etc) or AssertJ-like (isEqualTo, isLessThan, isGreaterThanOrEqualTo) naming?

Personally I would prefer eq, lt, gte, etc.

Should MetadataFilter extend Predicate<Metadata>?

that sounds reasonable to me!

@andyflury thanks for the feedback!
Another random thought: instead of having DSL just for metadata filtering, we could have a DSL for the whole search/retrieval, something like this:
SearchRequest.forQueryEmbedding(queryEmbedding)
                .where(metadata -> metadata.field("author").eq("Stephen King").and(metadata.field("year").gt(2020)))
                .minScore(0.77)
                .maxResults(5)
                .build();

@langchain4j great idea, that would make things even more convenient. I'm all for it!

This feature is awesome!
@jmartisk @karesti  you will probably interested in this  as well

@langchain4j would it potentially make sense to give the EmbeddingStore an optional filter constructor argument? That would be helpful for the new Advanced RAG when using a QueryRouter with EmbeddingStores and all of these stores are based on the same vector database index.
Let's say we have two types of information in the same vector database index:

information about cars (sourceType = 'CAR')
information about bikes (sourceType = 'BIKE')

Then you could construct one EmbeddingStore with filter sourceType = 'CAR' and one EmbeddingStore with filter sourceType = 'BIKE' plus then have the QueryRouter choose the appropriate EmbeddingStore for each query.

@andyflury that totally makes sense! However, it would probably be easier to define it on the EmbeddingStoreContentRetriever level, otherwise we will need to add this to constructor of every EmbeddingStore implementation (15+).
Also I plan to add a self-query retriever similar to the one in python version, where LLM will be able to construct metadata filter dynamically, potentially including multiple fields. This will help to narrow down the search.
Another thing that will probably be useful is to automatically construct filter by user (If @MemoryId) is present.
Then same store/index can be used for multiple users and their data will be separated.

@langchain4j Yes, you are right doing it inside EmbeddingStoreContentRetriever is probably better!
A self-query retriever  sound extremely interesting.
This could potentially solve another challenge we are facing currently. We have started indexing all out customer support tickets. This works well when asking questions like "what is the best solution to solve problem xyz". But it does not work well for questions like "please summarize all tickets from the last month for customer xyz". I assume that with the self-query retriever, the system would automatically be able to set filters for customerName and ticketDate.
so far I was using Tools for this, but having a self-query retriever (in combination with the QueryRouter would definitely be the better approach).
Would you also consider having something like an SQLEmbeddingStore combined with a self-query retriever, which would automatically set appropriate WHERE clauses?

@andyflury

Would you also consider having something like an SQLEmbeddingStore combined with a self-query retriever, which would automatically set appropriate WHERE clauses?

Do you mean a ContentRetriever backed by an SQL DB?

@andyflury yes, exactly. To summarise:

RAG is useful when you want to automatically provide LLM the external content which it does not have access to (by nature).
Tools are useful to provide LLM access to external actions which it does not have access to (by nature). LLM is the one who decides to call the tool or not.

However, ContentRetriever can be wrapped into a @Tool and be called by LLM on demand.

@andyflury naming question: am I the only one who thinks that "self-querying retriever" is a confusing naming?

@langchain4j  what about LLMContentRetriever or LanguageModelContentRetriever

@langchain4j , Thanks a lot for this new feature, it is exactly what we need. May I know if I can use the metadata filter function for AWS OpenSearch embedding store? If not now, may I know when it will be available? Thanks.

@ansonma I do not plan to add this feature to all embedding store integrations as I do not have enough time. I hope that someone from community could contribute this, considering that foundation is there, examples (elasticsearch, milvus) are there, it should be pretty easy.

Hello,
thank you for the new feature. Can i use the  metadata filter with PgVectorEmbeddingStore ? or it will be available for futur release ? Thanks

Hi, this will be released next week.

Hello, my company is investigating Langchain4J as our long term AI framework for our Java stack apps, can someone help to add the OpenSearch metadata filtering function? This is the only piece missing for our requirements for now. Thanks in advance.


Retries do not work when using cypress-paralllel

Cypress retry functionality does not seem to work when using cypress-parallel. We have retries configured in cypress.config.ts:
 retries: {       runMode: 2,       openMode: 0,     }.
When using cypress run the retries work as configured, but when running via cypress-parallel no failed tests are retried.
This has been reproduced at least with Cypress versions 12.17.3 and 13.1.0. cypress-parallel version has been 0.12.0.

Same Problem ++

I can confirm that 'retries' are not working correctly. Any fix for that?


Actor sheet re-renders cause any expanded item descriptions to collapse

Originally reported by Mark#7040 https://discord.com/channels/170995199584108546/956306859491471420/1065273052516065392
ALL MODULES DISABLED?: True
OS, Hosting, Browser (if applicable): Windows 10, Electron self-host (release 291, D&D5e V10 compatible versions), chrome (player side)
Short Description of bug: Item/feature/spell/etc. that is selected to view detail text collapses when the combat tracker is advanced if the actor is in the encounter and any effect is present on their sheet.
Simple steps to reproduce the bug: Create an actor with any effect in the effects tab (temp/active/inactive), add/create item with detail text such that clicking the item expands the line to show text, drag token to map/add to combat encounter/begin combat, select new round/next turn while actor sheet is open and the item is expanded to view text.
Screenshots and/or console errors: no console errors or messages.

Related: https://github.com/foundryvtt/dnd5e/issues/244

Closing this as it is a duplicate of #244


Getting error while using speech_recognition module in python.Error: TypeError: function takes exactly 2 arguments (3 given)

I want to convert speech to text in real time using the module SpeechRecognition 3.4.6 I've installed everything and now I am trying a simple code from example, here's the code:
import speech_recognition as sr

r = sr.Recognizer()
with sr.Microphone() as source:
    print("Say something!")
    audio = r.listen(source)

try:
    print("Sphinx thinks you said " + r.recognize_sphinx(audio))
except sr.UnknownValueError:
     print("Sphinx could not understand audio")
except sr.RequestError as e:
     print("Sphinx error; {0}".format(e)) `

I am getting error on line `audio=r.listen(sourc
  `import speech_recognition as sr
      r = sr.Recognizer()
      with sr.Microphone() as source:
          print("Say something!")
          audio = r.listen(source)
try:
    print("Sphinx thinks you said " + r.recognize_sphinx(audio))
except sr.UnknownValueError:
     print("Sphinx could not understand audio")
except sr.RequestError as e:
     print("Sphinx error; {0}".format(e))

I am getting error on line audio=r.listen(source)
Traceback (most recent call last):
File "sr.py", line 4, in <module>
audio = r.listen(source)                   # listen for the first    phrase and extract it into audio data
 File "/usr/local/lib/python2.7/dist-  packages/speech_recognition/__init__.py", line 493, in listen
 buffer = source.stream.read(source.CHUNK)
 File "/usr/local/lib/python2.7/dist-packages/speech_recognition/__init__.py", line 139, in read
  return self.pyaudio_stream.read(size, exception_on_overflow = False)
  File "/usr/local/lib/python2.7/dist-packages/pyaudio.py", line 608, in read
 return pa.read_stream(self._stream, num_frames, exception_on_overflow)
 TypeError: function takes exactly 2 arguments (3 given)

How to fix this problem.

Hi @aquibjaved,

You don't seem to be using version 3.4.6 - the source code and line numbers are definitely off. Make sure the version is correct by running import speech_recognition as sr;print(sr.__version__) as a Python script. How was the library installed?
What is your PyAudio version? It seems to be out of date - you must have version 0.2.9 or later. Try checking this by running import pyaudio as p;print(p.__version__) as a Python script.

Hi, thank you for the reply.
I've checked everything and actually there were few packages like libportaudio-dev was not installed.
It's working fine now.
thanks

could you please help me to resolve the below error
/usr/bin/python3.5 /home/swapnil/PycharmProjects/speech/google_api.py
Traceback (most recent call last):
File "/home/swapnil/PycharmProjects/speech/google_api.py", line 6, in
with sr.Microphone() as source:
File "/usr/local/lib/python3.5/dist-packages/speech_recognition/init.py", line 79, in init
self.pyaudio_module = self.get_pyaudio()
File "/usr/local/lib/python3.5/dist-packages/speech_recognition/init.py", line 113, in get_pyaudio
raise AttributeError("PyAudio 0.2.11 or later is required (found version {})".format(pyaudio.version))
AttributeError: PyAudio 0.2.11 or later is required (found version 0.2.8)

There is discussion here
https://stackoverflow.com/questions/42038991/error-while-upgrading-pyaudio-to-latest-version

Hi @swapnilkumar25,
You need PyAudio 0.2.11 or later. You have PyAudio 0.2.8. To fix this issue, upgrade your PyAudio installation to version 0.2.11 or later.
If you installed PyAudio using Pip, this should be doable with one command: pip install --upgrade pyaudio. If issues persist, please open a new issue.

help to resolve this issue.
I am using PyAudio 0.2.11
Code: https://pastebin.com/raw/i73CR64n
Error log :https://pastebin.com/raw/YE18QWz9

please i have upgrade pyaudio on 0.2.11 but still facing error SyntaxError: unexpected EOF while parsing
how can i fix it

i have upgrade pyAudio on 0.2.11 but still facing an error how can i remove it

please any one help me????

@786adnan  can you please check this https://stackoverflow.com/questions/47419836/unexpected-end-of-file-wavfile-read-python

@aquibjaved sir i have check it i have also scipy; version 0.19.0 but i didn't understand what can i do next??

plz guide me what should i do??

Hi @786adnan,
You haven't copied all of the code into your Jupyter notebook - it's missing everything after the with statement. Be sure to copy all of the code.
Also, please don't post on other people's issues - feel free to open a new one here!

How to solve the problem Please Help:
Note: Version of speech_recognition is 3.8.1
Version of PyAudio is 0.2.11
CODE
import speech_recognition as sr
r = sr.Recognizer()
with sr.Microphone() as source:
print("Say something!")
audio = r.listen(source)
try:
print("Sphinx thinks you said " + r.recognize_sphinx(audio))
except sr.UnknownValueError:
print("Sphinx could not understand audio")
except sr.RequestError as e:
print("Sphinx error; {0}".format(e))
Error

TypeError                                 Traceback (most recent call last)
 in ()
6 with sr.Microphone() as source:
7     print("Say something!")
----> 8     audio = r.listen(source)
9
10 # Speech recognition using Google Speech Recognition
/Users/atanudey/anaconda2/lib/python2.7/site-packages/speech_recognition/init.pyc in listen(self, source, timeout, phrase_time_limit, snowboy_configuration)
618                         raise WaitTimeoutError("listening timed out while waiting for phrase to start")
619
--> 620                     buffer = source.stream.read(source.CHUNK)
621                     if len(buffer) == 0: break  # reached end of the stream
622                     frames.append(buffer)
/Users/atanudey/anaconda2/lib/python2.7/site-packages/speech_recognition/init.pyc in read(self, size)
159
160         def read(self, size):
--> 161             return self.pyaudio_stream.read(size, exception_on_overflow=False)
162
163         def close(self):
/Users/atanudey/anaconda2/lib/python2.7/site-packages/PyAudio-0.2.11-py2.7-macosx-10.6-x86_64.egg/pyaudio.pyc in read(self, num_frames, exception_on_overflow)
606                           paCanNotReadFromAnOutputOnlyStream)
607
--> 608         return pa.read_stream(self._stream, num_frames, exception_on_overflow)
609
610     def get_read_available(self):
TypeError: function takes exactly 2 arguments (3 given)

Hi @atanudeyiitkgp ,
It seems like you didn't have libportaudio-dev not installed, I was also facing the same issue but installing the library helps me.

Hi @aquibjaved
Thanks for your reply, but when I tried to install the package using "libportaudio-dev" then also I am getting error. Its not yet installed.
While I am using "pip install libportaudio-dev" then error is
" Could not find a version that satisfies the requirement libportaudio-dev (from versions: )
No matching distribution found for libportaudio-dev"
While I am using "sudo apt-get install libportaudio-dev" then error is "sudo: apt-get: command not found"
Before that, I have also installed "portaudio" using "brew install portaudio". It is installed properly.
Please give me a solution.

Command "c:\python37\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Robotics\AppData\Local\Temp\pip-install-l_aug1fz\pyaudio\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\Robotics\AppData\Local\Temp\pip-record-0bc3_y_3\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Robotics\AppData\Local\Temp\pip-install-l_aug1fz\pyaudio\
I am getting this error while installing pyaudio

Traceback (most recent call last):
File "C:/Users/Axar/Desktop/Akshar Patel/Python Project/Small Python Projects/Charly.py", line 65, in
take_command()
File "C:/Users/Axar/Desktop/Akshar Patel/Python Project/Small Python Projects/Charly.py", line 46, in take_command
with sr.Microphone as source:
AttributeError: enter
Process finished with exit code 1
plz help me to solve this error

Getting This Error Can Anyone Help me

find your Python version by python --version mine is 3.7.3 for example

the easiest way to check either you have 64 or 32 Python just open it
in the terminal:

find the appropriate .whl file from here
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio, for example mine
is PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl, for 64 bit and for 32 bit
use 32 bit .whl file and download it.

go to the folder where it is downloaded for example cd
C:\Users\foobar\Downloads

install the .whl file with pip for example in my case:

pip install PyAudio-0.2.11-cp37-cp37m-win_amd64.whl
On Sat, Aug 10, 2019, 11:21 AM Abdulfurkan<EMAIL_ADDRESS>wrote:

[image: Fullscreen capture 10-08-2019 111936]
https://user-images.githubusercontent.com/44740421/62818158-dff2da00-bb60-11e9-8e53-f3bb524afa91.jpg
Getting This Error Can Anyone Help me
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Uberi/speech_recognition/issues/148?email_source=notifications&email_token=AH32BCRNZR2X2JMXSQRTIJLQDZJOHA5CNFSM4CLVTO32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4AGUJI#issuecomment-520120869,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AH32BCVTKHWHBUUFJ5W2Q2TQDZJOHANCNFSM4CLVTO3Q
.

@Akshar-S-Patel

Traceback (most recent call last):
File "C:/Users/Axar/Desktop/Akshar Patel/Python Project/Small Python Projects/Charly.py", line 65, in
take_command()
File "C:/Users/Axar/Desktop/Akshar Patel/Python Project/Small Python Projects/Charly.py", line 46, in take_command
with sr.Microphone as source:
AttributeError: enter
Process finished with exit code 1
plz help me to solve this error

@Akshar-S-Patel
Hey! I am facing the same error and i could not find the solution. Can you pls help me if you sorted this error. I am working on a project and struct in between due to this....PLS REPLY

@Akshar-S-Patel
Hey! I am facing the same error and I could not find the solution. Can you pls help me if you sorted this error. I am working on a project and struct in between due to this...PLS REPLY

find your Python version by python --version mine is 3.7.3 for example

the easiest way to check either you have 64 or 32 Python just open python in the terminal and on the first line it shows 64 or 32 bit.

find the appropriate .whl file from here
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio, for example, mine is PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl, for 64 bit and 32-bit
use 32-bit .whl file and download it.

go to the folder where it is downloaded for example cd
C:\Users\foobar\Downloads

install the .whl file with pip for example in my case:

pip install PyAudio-0.2.11-cp37-cp37m-win_amd64.whl

@manas0301

Hey! I am facing the same error and i could not find the solution. Can you pls help me if you sorted this error. I am working on a project and struct in between due to this....PLS REPLY

Find your Python version by python --version mine is 3.7.3 for example
the easiest way to check either you have 64 or 32 Python just open python in the terminal and on the first line it shows 64 or 32 bit.

Find the appropriate .whl file from here
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio, for example, mine is PyAudio‑0.2.11‑cp37‑cp37m‑win_amd64.whl, for 64 bit and 32-bit
use 32-bit .whl file and download it.

Go to the folder where it is downloaded for example cd
C:\Users\foobar\Downloads

install the .whl file with pip for example in my case:
pip install PyAudio-0.2.11-cp37-cp37m-win_amd64.whl

Hi Akshar,
Please follow the below steps.
Step 1: pip install SpeechRecognition
Step 2: Code:
import speech_recognition as sr
r = sr.Recognizer()
with sr.Microphone() as source:
# read the audio data from the default microphone
audio_data = r.record(source, duration=5)
print("Recognizing...")
# convert speech to text
text = r.recognize_google(audio_data)
print(text)
print("text : ", text)
Later I only did the above things and it works for me. You can try it, I hope it will work for you too.
Thanks,
Atanu

module 'pyaudio' has no attribute 'verssion'
please help me solving this

module 'pyaudio' has no attribute 'verssion'
please help me solving this

version not verssion I guess

@Abdulfurkan
Its quite late but you can try -
pip install pipwin
pipwin install pyaudio
this helped me, hope so it will help you.
For more refer - https://stackoverflow.com/questions/51992375/python-package-installation-issues-pyaudio-portaudio

PS D:\python_exes> python .\speech.py
Traceback (most recent call last):
File "D:\python_exes\speech.py", line 8, in
with speech_recognition.Microphone() as source:
File "C:\python\python 392\lib\site-packages\speech_recognition_init_.py", line 138, in enter
self.audio.open(
File "C:\python\python 392\lib\site-packages\pyaudio.py", line 750, in open
stream = Stream(self, *args, **kwargs)
File "C:\python\python 392\lib\site-packages\pyaudio.py", line 441, in init
self._stream = pa.open(**arguments)
OSError: [Errno -9999] Unanticipated host error

I'm facing that kind of error... don't know what to do... can anyone help me pls

PS D:\python_exes> python .\speech.py
Traceback (most recent call last):
File "D:\python_exes\speech.py", line 8, in
with speech_recognition.Microphone() as source:
File "C:\python\python 392\lib\site-packages\speech_recognition__init__.py", line 138, in enter
self.audio.open(
File "C:\python\python 392\lib\site-packages\pyaudio.py", line 750, in open
stream = Stream(self, *args, **kwargs)
File "C:\python\python 392\lib\site-packages\pyaudio.py", line 441, in init
self._stream = pa.open(**arguments)
OSError: [Errno -9999] Unanticipated host error
I'm facing that kind of error... don't know what to do... can anyone help me pls

I have the same issue..Can someone help me please??

Hey guys,
can you look into following:
https://github.com/Uberi/speech_recognition/issues/20
https://github.com/Uberi/speech_recognition/issues/71

for me, r.recode(source, duration = 5)
works well but when i do
r.listen(source)    it just hangs here
i have installed portaudio but still not working


Disallow equal names in MetadataServiceSpec.

Fixes #2107.

@alissapajer The test failure here is in quasar.ViewReadQueryRegressionSpec, which seems unrelated?

@djspiewak yeah, that error is unrelated. But I've been waiting for that sort of CB error to pop up again so I could open a ticket. So I'll restart that job after I get the ticket open.

@djspiewak this should be good to go!


[enhancement] proposed pre-compiled packages in release

Hello,
Would you consider uploading pre-compiled packages in GitHub releases ?
It would be convenient to be able to download them rather than rebuilding.
That's quite easy to do with https://github.com/tcnksm/ghr. Something like the following:
# Cross build you project for various arch + generate tar.gz packages
# ... <choose your poison for that> ...
# upload packages to release
go get github.com/tcnksm/ghr
VERSION=....<whatever you do to inject it in your build>...
ghr -t ${GITHUB_TOKEN} -u ${USERNAME} -r ${PROJECT_REPONAME} -c ${SHA1} -delete ${VERSION} ./path/to/dist/packages/

And you can then add a stat shield on you readme:
 [![GitHub All Releases](https://img.shields.io/github/downloads/alxrem/prometheus-logstash-exporter/total)][releases]

 [releases]: https://github.com/alxrem/prometheus-logstash-exporter/releases

Builds for fresh ubuntu? 18.04?

The usual flavors are OS=darwin/linux/windows with ARCH=amd64.
You can cross-compile with
@GOOS=linux GOARCH=amd64 go build -ldflags "$(LDFLAGS)" -o logstash-exporter-linux-amd64/logstash-exporter ./...

Builds for fresh ubuntu? 18.04?

Package of version 0.6.1 for Bionic is uploaded to Packagecloud.

Would you consider uploading pre-compiled packages in GitHub releases ?

I uploaded binaries, but to the Gitlab releases page. In fact I work at Gitlab. Repository on Github is only the mirror.

Published binaries of release 0.6.2


stricter about cleanup/leaks

We should likely provide a good path for automatic destroy of objects:

managed by the test helpers themselves
managed by lazy properties themselves

https://github.com/rpflorence/ember-qunit/blob/master/lib/test.js#L3-L6
https://github.com/rpflorence/ember-qunit/blob/master/lib/module-for-component.js#L21

closing due to inactivity


Myriad 136 wip

Work in progress, but thought it was time to get comments.  If you'd like to try it out the documentation in docker/myriad-etc should suffice.

Went through and cleaned up some digressions on a different branch.  Closing this PR in favor of a new branch.


reason for $cql evaluation failure should be returned to the end user

Running with 4.11.0-SNAPSHOT in local docker container.
Attempting inline $cql where the "subject" does not exist:
GET .../$cql?expression=[Patient] p where p.gender = 'male' &subject=Patient/bogus
Received 500 Internal Server Error:
{
"resourceType": "OperationOutcome",
"id": "ac-11-0-2-61e18333-1ed9-4cf1-9fc2-e8da1ada0661",
"issue": [
{
"severity": "fatal",
"code": "exception",
"details": {
"text": "FHIROperationException: Evaluation failed"
}
}
]
}
From the log, you can see that the reason for the failure is known (see attached "tracePatientBogus.txt"):
java.lang.RuntimeException: com.ibm.fhir.persistence.exception.FHIRPersistenceResourceNotFoundException: Resource 'Patient/bogus' not found.
Suggest a better explanation to the end user about the failure.

tracePatientBogus.txt

Confirmed new messaging:
{
"resourceType": "OperationOutcome",
"id": "ac-11-0-2-c10186e2-9662-4559-8986-40be09bf8f3e",
"issue": [
{
"severity": "fatal",
"code": "exception",
"details": {
"text": "Unexpected exception caught during execution: java.lang.RuntimeException: com.ibm.fhir.persistence.exception.FHIRPersistenceResourceNotFoundException: Resource 'Patient/Patient-Bones' not found.  [probeId=ac-11-0-2-af0debf9-0a23-481f-82fe-7243e15482e9]"
}
}
]
}


minor multipage layout issue in chrome

Before saving - add a page icons lie within box

After saving - the add a page icons lay outside of the box

@aidanfeay is this already deployed in staging?  If so, it doesn't look fixed

@nanseay The build broke after commit, so I'm going to leave this open until that's resolved. I'll post back here when it's ready for verification.

duplicate of https://github.com/voxmedia/autotune/issues/273


Fix syntax error in comment code

While reading through this file I noticed that the closing parentheses is missing in the example code.

@swift-ci please smoke test and merge


Number to roman

Number to Roman conversion range of if ($num < 1 OR $num > 3999)
output conversion here

ok sir, I will fix this when I open my laptop.

I can't run this ./phpunit tests/system/Helpers/NumberHelperTest.

It looks like you can't run those tests because you don't have the intl extension installed in your version of PHP. That's becoming a requirement for CI4.
You can always run just a single test, though:
./vendor/bin/phpunit tests/system/Helpers/NumberHelperTest.php --filter=test_roman_number

ok sir., I will do this, thanks. in info.. I will resubmit the propos later.

I can explain fluent but maybe they understand what it mean

not to be too picky, but we expect commits to be GPG-signed :)

@jim-parry im not familiar with the term GPG-signed .

Here's what he's talking about:
https://bcit-ci.github.io/CodeIgniter4/contributing/signing.html

That doc works for now. thanks! We can always expand on it later if need be.

Thanks for new idea @lonnieezell.


[spark-23382][WEB-UI]Spark Streaming ui about the contents of the for need to have hidden and show features, when the table records very much.

What changes were proposed in this pull request?
Spark Streaming ui about the contents of the for need to have hidden and show features, when the table records very much.
please refer to https://github.com/apache/spark/pull/20216
fix after:

How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)
Please review http://spark.apache.org/contributing.html before opening a pull request.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Okay, I check the other pages again today.

Test build #4095 has started for PR 20570 at commit c6ffe30.

Test build #4095 has finished for PR 20570 at commit c6ffe30.

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

Merged to master


1.11: Fixed coveralls not found on MacOS with py39-311

Rolls back PR #650 into 1.11.1.

coverage: 36.845%. remained the same
when pulling 429f95888314a2ba673a958ac4863f374126267f on 1.11/andy/fix-coveralls-macos
into b83d7012b85bdfa5d715e5444cf4a2c237cdd3b6 on stable_1.11.


Warning that gists are public by default

Heyho,
by now, atom features a lot of different api-plugins (e.g. slack-chat), often using access-tokens, which are also synced by sync-settings. If gist is not explicitly set to "secure" the tokens can be found and eventually abused by anyone searching for "atomsync".
I found at least one person with an exposed token on github.
I am proposing to add something along the lines of "Create a secure gist, if your sync-settings should not be publicly indexed." to the fourth step in the usage instructions.

Can you please create a pull request with you suggested improvements to the readme.

No Problem: https://github.com/Hackafe/atom-sync-settings/pull/191

Thanks.


Result in json file

When I output the test result in json file, the result in results.segm.json will looks like it:
{"image_id": 202, "bbox": [723.2297973632812,<PHONE_NUMBER>6279297, 82.4393310546875, 31.844032287597656], "score": 0.1710083931684494, "category_id": 4, "segmentation": {"size": [720, 1280], "counts": "fWT`02\f03L4N1O2O0O1O1N2O1O1O100O00100O10000O1O10000000O10000000000O1000001N10000O2O000O100O2N101M3L300KgYO4Xf0LhYO4Zf0OWmk:"}}
So what is the mean of segmentation" part? How can I calculate the measure（Number of pixels occupied by the result） by this result?

It is a RLE encoded mask. You can use cocoapi to decode it.

See example here https://github.com/open-mmlab/mmdetection/blob/master/mmdet/datasets/pipelines/loading.py#L329

i met the same problem , have you sovled it?


Python - Playwright.  Firefox browser seems not to be working with python playwright integration

What did I do?
Launched  Python + SDK example from link below with browserType set to playwright.firefox
https://github.com/Visual-Regression-Tracker/examples-python/tree/master/playwright
What did I expect?
The process is completed without problems and result appears in VRT server.
What happend?
Process finished with exit code 1, with "playwright._impl._api_types.Error: Not implemented" Error

@killroy333 seems to be playwright issues
FF is not able to take screenshot with omit_background option
        page.screenshot(omit_background=True)


fix: openai and http log level

Lately, more INFO messages have appeared in the chat, so let's set the log level to ERROR only on the openai and http clients.
Without this change:
$ ilab chat
INFO 2024-04-16 11:49:33,283 _base_client.py:1040 Retrying request to /models in 0.911925 seconds
INFO 2024-04-16 11:49:34,197 _base_client.py:1040 Retrying request to /models in 1.571945 seconds

A more granular control over the log levels for various libraries will be implemented in a follow-up PR. That enhancement is tracked in https://github.com/instructlab/instructlab/issues/905.
Resolves: https://github.com/instructlab/instructlab/issues/909
Signed-off-by: Sébastien Han<EMAIL_ADDRESS>

Preivous reviews can be found at https://github.com/instructlab/instructlab/pull/872


How to call chain animation without using jqurey

Velocity(document.body, { opacity: 0.5 }).Velocity(document.body, { opacity: 0.8 }) .?

Sadly the documentation hasn't caught up yet - chaining is always lower case (by convention with pretty much everything) - bearing in mind this is for version 2 beta (the develop branch):
Velocity(document.body, { opacity: 0.5 }).velocity({ opacity: 0.8 });

document.body.velocity({ opacity: 0.5 }).velocity({ opacity: 0.8 });

document.querySelector("body").velocity({ opacity: 0.5 }).velocity({ opacity: 0.8 });

document.querySelectorAll("body").velocity({ opacity: 0.5 }).velocity({ opacity: 0.8 });

It will automatically extend the built in Elements etc, to make things as useful and simple as possible.
Going to leave this open until the documentation catches up :-)

Velocity(document.body, { opacity: 0.5 }).velocity({ opacity: 0.8 })  error
Velocity(...).velocity is not a function

document.querySelector(...).velocity is not a function

bearing in mind this is for version 2 beta (the develop branch):
Version 1 is no longer developed and never supported chaining.


Fix full screen testing-container

Bug found by amk11 on discord - thanks!

Closed in favour of #792 with rebase for cleanliness

Hi, @BryanCrotaz. A few weeks ago, I had trouble with upgrading ember-qunit to v5 in an addon that I maintain: https://github.com/ijlee2/ember-container-query/pull/71. At the time, I wasn't sure what exactly caused the test container's width and height to be different than in ember-qunit v4.3.
I think #786 would affect the width and height, but I wondered if there was something else that had also affected the values. I wondered the latter because I couldn't get my custom tests to pass with ember-qunit v5.0 (i.e. prior to v5.1 release, which includes #786).
To the maintainers of ember-qunit, could we check what .full-screen should do and whether this patch PR improves the situation based on the custom tests that I have for ember-container-query?

Landed https://github.com/emberjs/ember-qunit/pull/804 instead (AFAICT it fixes the same underlying issue).


Building angstrom-v2015.12-yocto2.0 is getting failed

I followed the steps written in the below link,
https://github.com/Angstrom-distribution/angstrom-manifest/tree/angstrom-v2015.12-yocto2.0
I landed up with the following issues
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'gnome-keyring' (but /home/gibson/sources/meta-angstrom/recipes-angstrom/packagegroups/packagegroup-gnome.bb RDEPENDS on or otherwise requires it)
ERROR: gnome-keyring was skipped: Recipe is blacklisted: This version conflicts with gcr from oe-core
NOTE: Runtime target 'gnome-keyring' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['gnome-keyring']
NOTE: Runtime target 'packagegroup-gnome' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['packagegroup-gnome', 'gnome-keyring']
ERROR: Required build target 'systemd-gnome-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['systemd-gnome-image', 'packagegroup-gnome', 'gnome-keyring']
Host Distro : Debian 7.x.x and Debian 8.xx 64 bit OS
Machine : Beaglebone Black
Regards,
Gibson

I am facing the same issue. Can anyone help on it, please?

remove meta-gnome from bblayers.conf as a stop gap

If I do that, I come up with the following error:
ERROR: Layer 'xfce-layer' depends on layer 'gnome-layer', but this layer is not enabled in your configuration
I would like to build systemd-qt5-image or systemd-gnome-image, but even if I try to build just systemd-image, this error appears.

if you are not building xfce image then punt meta-xfce as well

It seems that there is a compile error at the qtbase.bb recipe:
qtbase/5.5.1+gitAUTOINC+5afc431323-r0/git/src/widgets/styles/qgtkstyle.cpp: In member function 'virtual QRect QGtkStyle::subControlRect(QStyle::ComplexControl, const QStyleOptionComplex*, QStyle::SubControl, const QWidget*) const':
| /home/mauricio/git/angstrom/build/tmp-angstrom_v2015_12-glibc/work/armv7at2hf-vfp-neon-mx6qdl-angstrom-linux-gnueabi/qtbase/5.5.1+gitAUTOINC+5afc431323-r0/git/src/widgets/styles/qgtkstyle.cpp:3636:24: error: 'isInstanceOf' is not a member of 'QStyleHelper'
|              } else if (QStyleHelper::isInstanceOf(groupBox->styleObject, QAccessible::Grouping)) {
|                         ^
| /home/mauricio/git/angstrom/build/tmp-angstrom_v2015_12-glibc/work/armv7at2hf-vfp-neon-mx6qdl-angstrom-linux-gnueabi/qtbase/5.5.1+gitAUTOINC+5afc431323-r0/git/src/widgets/styles/qgtkstyle.cpp:3636:74: error: 'QAccessible' has not been declared
|              } else if (QStyleHelper::isInstanceOf(groupBox->styleObject, QAccessible::Grouping)) {
|                                                                           ^
ERROR: Task 1184 (sources/meta-qt5/recipes-qt/qt5/qtbase_git.bb, do_compile) failed with exit code '1'
I will try the systemd-gnome-image. Anyways, is there any fix for this build error?

I did even try to build the systemd-qt5-image or systemd-gnome-image yesterday and I am still failing miserably. Anyone please help how to build the images  successfully. I am using Debian 8.0 with Debian in VMware.
@mauriciocirelli Mauricio : What is the environment you are using to build the angstrom??
@Khem / Koen: Are we going wrong anywhere?
My another question is what distribution of linux are you using it to build angstrom successfully..
I used CentOS and Debian and still unable to move further..
Any help is appreciated !!!!

Can you try adding
PACKAGECONFIG_append = " accessibility"
in qtbase_*.bbappend in your layer ?

Hi Khem,
I tried compiling building from the scratch but getting the below build error,
ERROR: Nothing RPROVIDES 'gnome-keyring' (but /home/gibson/layers/meta-angstrom/recipes-angstrom/packagegroups/packagegroup-gnome.bb RDEPENDS on or otherwise requires it)
ERROR: gnome-keyring was skipped: Recipe is blacklisted: This version conflicts with gcr from oe-core
NOTE: Runtime target 'gnome-keyring' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['gnome-keyring']
NOTE: Runtime target 'packagegroup-gnome' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['packagegroup-gnome', 'gnome-keyring']
ERROR: Required build target 'systemd-gnome-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['systemd-gnome-image', 'packagegroup-gnome', 'gnome-keyring']
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

On Sun, May 15, 2016 at 8:51 AM, Gibson<EMAIL_ADDRESS>wrote:

Hi Khem,
I tried compiling building from the scratch but getting the below build
error,
ERROR: Nothing RPROVIDES 'gnome-keyring' (but
/home/gibson/layers/meta-angstrom/recipes-angstrom/packagegroups/
packagegroup-gnome.bb RDEPENDS on or otherwise requires it)
ERROR: gnome-keyring was skipped: Recipe is blacklisted: This version
conflicts with gcr from oe-core
NOTE: Runtime target 'gnome-keyring' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['gnome-keyring']
NOTE: Runtime target 'packagegroup-gnome' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['packagegroup-gnome',
'gnome-keyring']
ERROR: Required build target 'systemd-gnome-image' has no buildable
providers.
Missing or unbuildable dependency chain was: ['systemd-gnome-image',
'packagegroup-gnome', 'gnome-keyring']
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

remove it from packagegroup-gnome.bb for now

—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/Angstrom-distribution/angstrom-manifest/issues/26#issuecomment-219293619

ok i'll do that and try

I did try that also Khem, but eventually landing up in a lot more errors

I did try as you said and i  encountered with a set of errors,
ERROR: Nothing RPROVIDES 'gnome-power-manager' (but /home/gibson/layers/meta-angstrom/recipes-angstrom/packagegroups/packagegroup-gnome.bb RDEPENDS on or otherwise requires it)
ERROR: gnome-power-manager was skipped: Recipe is blacklisted: BROKEN: not compatible with current libnotify
NOTE: Runtime target 'gnome-power-manager' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['gnome-power-manager']
NOTE: Runtime target 'packagegroup-gnome' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['packagegroup-gnome', 'gnome-power-manager']
ERROR: Required build target 'systemd-gnome-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['systemd-gnome-image', 'packagegroup-gnome', 'gnome-power-manager'

On Sun, May 15, 2016 at 10:35 AM, Gibson<EMAIL_ADDRESS>wrote:

I did try that also Khem, but eventually landing up in a lot more errors

Yes, gir changes has broken few recipes. Do you need gnome ?
can you start with something small like systemd-image

—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/Angstrom-distribution/angstrom-manifest/issues/26#issuecomment-219299302

sure i am able to compile the systemd-image--- found to be successful. I was looking for qt5 image that again ran into some issues. then again systemd-gnome-image==> again issues..
Kind of confused and bewildered how people successfully build the angstrom...

On Sun, May 15, 2016 at 10:47 AM, Gibson<EMAIL_ADDRESS>wrote:

sure i am able to compile the systemd-image--- found to be successful. I
was looking for qt5 image that again ran into some issues. then again
systemd-gnome-image==> again issues..
Kind of confused and bewildered how people successfully build the
angstrom...

you should be able to use release branch e.g. 2015.12 branch for not
running into these issues.
for qt5 image what errors do you get.

—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/Angstrom-distribution/angstrom-manifest/issues/26#issuecomment-219300004

I will give a try on this new branch. I had that same issues and had given up.

Let me know Mauricio :)

Mauricio I did try to build from the master, but still I am facing the same issue. Just wondering what to do!!!

I did a systemd-qt5-image build and it built ok. you will need this patch
https://github.com/linux4sam/meta-atmel/pull/67

Thanks Khem and appreciate your quick response!!!!
I will try today and let you know how it progresses. I am going to try out by checking out from the master with the latest updates and not from any specific branch.
I will update you soon on this..
Regards,
Gibson

Hi Khem,
I did try today buy checking out from the master and did a build for systemd-qt5-image and got the below output,
OTE: /home/gibson/layers/openembedded-core/meta/recipes-sato/images/core-image-sato-sdk-ptest.bb: base_contains is deprecated, please use bb.utils.contains instead.
NOTE: /home/gibson/layers/openembedded-core/meta/recipes-sato/images/core-image-sato-sdk-ptest.bb: base_contains is deprecated, please use bb.utils.contains instead.
Parsing recipes: 100% |#######################################################################################################################| Time: 00:08:25
Parsing of 3465 .bb files complete (0 cached, 3465 parsed). 4212 targets, 433 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
/home/gibson/layers/meta-fsl-arm/browser-layer/recipes-browser/chromium/chromium_40.0.2214.91.bbappend
WARNING: No bb files matched BBFILE_PATTERN_aarch64 '^/home/gibson/layers/meta-linaro/meta-aarch64/'
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'virtual/egl' (but /home/gibson/layers/openembedded-core/meta/recipes-graphics/wayland/weston_1.10.0.bb DEPENDS on or otherwise requires it)
ERROR: mesa PROVIDES virtual/egl but was skipped: PREFERRED_PROVIDER_virtual/libgl set to mesa-gl, not mesa
ERROR: mesa PROVIDES virtual/egl but was skipped: PREFERRED_PROVIDER_virtual/libgl set to mesa-gl, not mesa
ERROR: sunxi-mali PROVIDES virtual/egl but was skipped: incompatible with machine beaglebone (not in COMPATIBLE_MACHINE)
ERROR: imx-gpu-viv PROVIDES virtual/egl but was skipped: incompatible with machine beaglebone (not in COMPATIBLE_MACHINE)
ERROR: mesa PROVIDES virtual/egl but was skipped: PREFERRED_PROVIDER_virtual/libgl set to mesa-gl, not mesa
ERROR: vc-graphics PROVIDES virtual/egl but was skipped: incompatible with machine beaglebone (not in COMPATIBLE_MACHINE)
ERROR: mesa PROVIDES virtual/egl but was skipped: PREFERRED_PROVIDER_virtual/libgl set to mesa-gl, not mesa
ERROR: userland PROVIDES virtual/egl but was skipped: incompatible with machine beaglebone (not in COMPATIBLE_MACHINE)
ERROR: ti-sgx-ddk-um PROVIDES virtual/egl but was skipped: PREFERRED_PROVIDER_virtual/egl set to libgles-omap3, not ti-sgx-ddk-um
ERROR: vc-graphics-hardfp PROVIDES virtual/egl but was skipped: incompatible with machine beaglebone (not in COMPATIBLE_MACHINE)
NOTE: Runtime target 'weston' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['weston', 'virtual/egl']
ERROR: Required build target 'systemd-qt5-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['systemd-qt5-image', 'weston', 'virtual/egl']
Summary: There were 4 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
Now where am I going wrong??
Regards,
Gibson

can you repo sync and build again ?

Dear Khem,
I checked out from the master and did a build for systemd-qt5-image and got the below errors,
NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: qtquick1-5.6.99+5.7.0-beta+gitAUTOINC+87f2415adf-r0 do_fetch: Failed to fetch URL git://github.com/qtproject/qtquick1.git;name=qtquick1;branch=5.7;protocol=git, attempting MIRRORS if available
ERROR: qtquick1-5.6.99+5.7.0-beta+gitAUTOINC+87f2415adf-r0 do_fetch: Fetcher failure: Unable to find revision 87f2415adf34da08e6cd58f5da6f6a7d0d9cf141 in branch 5.7 even from upstream
ERROR: qtquick1-5.6.99+5.7.0-beta+gitAUTOINC+87f2415adf-r0 do_fetch: Function failed: Fetcher failure for URL: 'git://github.com/qtproject/qtquick1.git;name=qtquick1;branch=5.7;protocol=git'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/gibson/build/tmp-angstrom-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/qtquick1/5.6.99+5.7.0-beta+gitAUTOINC+87f2415adf-r0/temp/log.do_fetch.98000
ERROR: Task 1813 (/home/gibson/layers/meta-atmel/qt5-layer/recipes-qt/qt5/qtquick1_git.bb, do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2349 tasks of which 1616 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
Summary: 1 task failed:
/home/gibson/layers/meta-atmel/qt5-layer/recipes-qt/qt5/qtquick1_git.bb, do_fetch
Summary: There were 3 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
gibson@debian:~$
Regards,
Gibson

On May 21, 2016, at 12:05 AM, Gibson<EMAIL_ADDRESS>wrote:
Dear Khem,
I checked out from the master and did a build for systemd-qt5-image and got the below errors,
NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: qtquick1-5.6.99+5.7.0-beta+gitAUTOINC+87f2415adf-r0 do_fetch: Failed to fetch URL git://github.com/qtproject/qtquick1.git;name=qtquick1;branch=5.7;protocol=git, attempting MIRRORS if available
ERROR: qtquick1-5.6.99+5.7.0-beta+gitAUTOINC+87f2415adf-r0 do_fetch: Fetcher failure: Unable to find revision 87f2415adf34da08e6cd58f5da6f6a7d0d9cf141 in branch 5.7 even from upstream
ERROR: qtquick1-5.6.99+5.7.0-beta+gitAUTOINC+87f2415adf-r0 do_fetch: Function failed: Fetcher failure for URL: 'git://github.com/qtproject/qtquick1.git;name=qtquick1;branch=5.7;protocol=git'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/gibson/build/tmp-angstrom-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/qtquick1/5.6.99+5.7.0-beta+gitAUTOINC+87f2415adf-r0/temp/log.do_fetch.98000
ERROR: Task 1813 (/home/gibson/layers/meta-atmel/qt5-layer/recipes-qt/qt5/qtquick1_git.bb, do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2349 tasks of which 1616 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
Summary: 1 task failed:
/home/gibson/layers/meta-atmel/qt5-layer/recipes-qt/qt5/qtquick1_git.bb, do_fetch

Delete that bb file.

Summary: There were 3 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
gibson@debian:~$
Regards,
Gibson
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub https://github.com/Angstrom-distribution/angstrom-manifest/issues/26#issuecomment-220762980

Thanks Khem,
I was able to build  systemd-qt5-image  sucessfully by deleting the qtquick1_git.bb!!!!!
Regards,
Gibson

Hi Khem ,
I did a repo sync and did bitbake systemd-qt5-image and I am screwed up again.
I got the output as below,
gibson@debian:~$ bitbake systemd-qt5-image
NOTE: Started PRServer with DBfile: /home/gibson/cache/prserv.sqlite3, IP: <IP_ADDRESS>, PORT: 50183, PID: 11906
Loading cache: 100% |#########################################################################################################################| ETA:  00:00:00
Loaded 4191 entries from dependency cache.
NOTE: /home/gibson/layers/meta-atmel/recipes-bsp/u-boot/u-boot-at91_git.bb: base_contains is deprecated, please use bb.utils.contains instead.| ETA:  --:--:--
NOTE: /home/gibson/layers/meta-atmel/recipes-bsp/at91bootstrap/at91bootstrap_git.bb: base_contains is deprecated, please use bb.utils.contains instead.
NOTE: /home/gibson/layers/meta-mono/recipes-mono/mono/mono_git.bb: base_contains is deprecated, please use bb.utils.contains instead.         | ETA:  00:00:04
NOTE: /home/gibson/layers/meta-mono/recipes-mono/mono/mono_git.bb: base_contains is deprecated, please use bb.utils.contains instead.
NOTE: /home/gibson/layers/meta-mono/recipes-mono/mono/mono-native_git.bb: base_contains is deprecated, please use bb.utils.contains instead.  | ETA:  00:00:03
NOTE: /home/gibson/layers/meta-mono/recipes-mono/mono/mono-native_git.bb: base_contains is deprecated, please use bb.utils.contains instead.
Parsing recipes: 100% |#######################################################################################################################| Time: 00:00:10
Parsing of 3451 .bb files complete (3436 cached, 15 parsed). 4202 targets, 433 skipped, 0 masked, 0 errors.
WARNING: No bb files matched BBFILE_PATTERN_aarch64 '^/home/gibson/layers/meta-linaro/meta-aarch64/'
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'packagegroup-qt5' (but /home/gibson/layers/meta-angstrom/recipes-images/angstrom/systemd-qt5-image.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'packagegroup-qt5' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['packagegroup-qt5']
ERROR: Required build target 'systemd-qt5-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['systemd-qt5-image', 'packagegroup-qt5']
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
Where am I going wrong???
Regards,
Gibson


Added an import of React to two files that were missing it

Was causing some errors with flow in my project, adding the import to resolve it

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add deep cloning feature

It will be nice to add a deep cloning of the same object. Something like this:
User user1 = modelMapper.map(user, User.class);

In this , the LocalDate field from one is getting null in the copy
        this.modelMapper = new org.modelmapper.ModelMapper();
        this.modelMapper.getConfiguration().setMatchingStrategy(MatchingStrategies.STRICT);
        this.modelMapper.getConfiguration().setDeepCopyEnabled(true);

I have the same issue with dates as @optimm
@chhsiao90 is there a way to overcome it?


BUGFIX: LiteralCertificateSubject webhook logic

See comments.
This PR breaks the situation in which you set both a SerialNumber and a LiteralSubject. This is OK however, since this is still an Alpha feature.
Kind
/kind cleanup
Release Note
Fix handling of serial numbers in literal certificate subjects. Previously a serial number could be specified in subject.serialNumber while using a literal certificate subject. This was a mistake and has been fixed.

Good spot on this, BTW! Thank you!


Introduce .build_ignore file

Relates to https://github.com/newrelic/newrelic-ruby-agent/issues/1150
The requirement was to reduce the number of files that were added to the release build.
Introducing a new simple text file .build_ignore which containst the list of files to be rejected. In the gemspec file we update the reject method definition to reject files listed in this file. It involes nested loops at the moment so not the best of efficiency, although we are dealing with very less amount of data hence should not take up too much time. We can always look into optimisations. We can treat this as a starting point.
Changes are only currently added to newrelic_rpm.gemspec to get feedback.
This is one of my first contribution here, so aplogies in advance if I have broken any contribution guidelines uknowingly. Please call it out so that I can correct them.

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

Thanks for contributing! It looks like bundler ran into an issue parsing this change. This is the output:
>Run bundle

[!] There was an error parsing `Gemfile`:
[!] There was an error while loading `newrelic_rpm.gemspec`: undefined local variable or method `rf' for main:Object. Bundler cannot continue.

 #  from /home/runner/work/newrelic-ruby-agent/newrelic-ruby-agent/newrelic_rpm.gemspec:[4](https://github.com/newrelic/newrelic-ruby-agent/actions/runs/5319812254/jobs/9643514662?pr=2089#step:5:5)2
 #  -------------------------------------------
 #    reject_list = File.read("./.build_ignore").split("\n")
 >    file_list = `git ls-files -z`.split("\x0").reject { |f| reject_list.any? |rf| f.start_with?(rf)  }
 #    build_file_path = 'lib/new_relic/build.rb'
 #  -------------------------------------------
. Bundler cannot continue.

 #  from /home/runner/work/newrelic-ruby-agent/newrelic-ruby-agent/Gemfile:[6](https://github.com/newrelic/newrelic-ruby-agent/actions/runs/5319812254/jobs/9643514662?pr=2089#step:5:7)
 #  -------------------------------------------
 #  source 'https://rubygems.org/'
 >  gemspec name: 'newrelic_rpm'
 #  -------------------------------------------

Once this is addressed, I'll take a look again and make sure everything is good!

@tannalynn My bad! I missed out a bracket, since there were no tests for this I just added the snippet and pushed for feedback. I have made changes and tried building the gem as well.

@tannalynn I had force pushed the changes to keep the commit history clean of minor changes - I forgot to confirm if that was a habit followed here. You might want to delete and pull this branch again to avoid conflicts. Sorry about that, will restrict to normal push.


Option to blacklist enchantments from hyper enchanting

Not sure if you want this, related to #80 and maybe interesting for Modpack developers
Create datapack which has this path
<namespace>\data\create_enchantment_industry\tags\enchantment
and add the json hyper_enchantable_blacklist.json - example:
{
  "replace": false,
  "values": [
    "minecraft:fortune",
    "maenchants:soft_fall"
  ]
}

Tested it:

If the enchantment is larger or equal to the maximum level, you cannot apply an item to the Blaze Enchanter
If the enchantment is at least one level lower than the maximum level you can apply the item
Works with modded enchants
Works with Apotheosis cap increase

You can still apply an enchantment guide with said enchantment to the blaze - it will just not enchant items with it
So this could be seen as a workaround, because ideally you'd stop the application of the guide I guess
The goggles do notify you though:

That's wonderful! I'll merge it in next release. Thank you for PR!

Ooh thank you so much! I will get this to work!

Ooh thank you so much! I will get this to work!

Just to make sure you understand but this functionality is currently not in the mod

oh okay, I thought it was a datapack I could apply, thanks for letting me know

@MarbleGateKeeper
Was wondering
https://github.com/DragonsPlusMinecraft/CreateEnchantmentIndustry/blob/298505c2050a0014de2b41cce0c3bc1691f7140b/src/main/java/plus/dragons/createenchantmentindustry/content/contraptions/enchanting/enchanter/EnchantmentEntry.java#L59
Should this part follow the server config or not?
Currently you can bypass the config if you add an entry there but it would only apply to enchants with a maximum level of 1
(and you could enchant them up to an unlimited level too)

@MarbleGateKeeper Was wondering
Should this part follow the server config or not? Currently you can bypass the config if you add an entry there but it would only apply to enchants with a maximum level of 1 (and you could enchant them up to an unlimited level too)

I will rewrite this part so it also follows the server config. the Tag itself is designed for enchantments that have a maximum level of 1, but still work at higher levels.

Thanks for PR!


AmazonLambdaClient.Invoke() throws AmazonLambdaException due to Expired Signature

We have a lambda function developed in C# (dotnetcore) that invokes another lambda function. Intermittently, we are getting this Amazon.Lambda.AmazonLambdaException from AmazonLambdaClient.Invoke() due to expired signature (internally thrown via Amazon.Runtime.Internal.HttpErrorResponseException).
Expected Behavior
AmazonLambdaClient.Invoke() does not encounter this exception intermittently. Not sure if clock-skew correction is also in place for Lambda functions, but internal retry mechanism would be great.
Current Behavior
Intermittently, invocation of lambda function from a lambda function results to exception. Stack trace below:
Error: Amazon.Lambda.AmazonLambdaException: Signature expired: 20171127T214626Z is now earlier than 20171127T215544Z (20171127T220044Z - 5 min.) ---> Amazon.Runtime.Internal.HttpErrorResponseException: Exception of type 'Amazon.Runtime.Internal.HttpErrorResponseException' was thrown.
at Amazon.Runtime.HttpWebRequestMessage.<GetResponseAsync>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.Runtime.Internal.HttpHandler`1.<InvokeAsync>d__9`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.Runtime.Internal.Unmarshaller.<InvokeAsync>d__3`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.Runtime.Internal.ErrorHandler.<InvokeAsync>d__5`1.MoveNext()
--- End of inner exception stack trace ---
at Amazon.Runtime.Internal.HttpErrorResponseExceptionHandler.HandleException(IExecutionContext executionContext, HttpErrorResponseException exception)
at Amazon.Runtime.Internal.ErrorHandler.ProcessException(IExecutionContext executionContext, Exception exception)
at Amazon.Runtime.Internal.ErrorHandler.<InvokeAsync>d__5`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.Runtime.Internal.CallbackHandler.<InvokeAsync>d__9`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.Runtime.Internal.CredentialsRetriever.<InvokeAsync>d__7`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.Runtime.Internal.RetryHandler.<InvokeAsync>d__10`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Amazon.Runtime.Internal.RetryHandler.<InvokeAsync>d__10`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.Runtime.Internal.CallbackHandler.<InvokeAsync>d__9`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.Runtime.Internal.CallbackHandler.<InvokeAsync>d__9`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.Runtime.Internal.ErrorCallbackHandler.<InvokeAsync>d__5`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.Runtime.Internal.MetricsHandler.<InvokeAsync>d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at xxx.xxx.xxx.xxx.xxx.<Method3>d__2.MoveNext() in /.../.../.../.../.../.../.../.../CodeC.cs:line xx
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at xxx.xxx.xxx.xxx.<Method2>d__4.MoveNext() in /.../.../.../.../.../.../.../CodeB.cs:line xx
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at xxx.xxx.xxx.xxx.<Method1>d__7.MoveNext() in /.../.../.../.../.../.../.../CodeA.cs:line xxx

Steps to Reproduce (for bugs)
Happens intermittently, so can't really provide steps to ensure it happens. On the other hand, the below code snippet is used:
using (var client = new AmazonLambdaClient())
{
	var request = new InvokeRequest
	{
		FunctionName = subscriber.LambdaArn,
		Payload = JsonConvert.SerializeObject(@event)
	};

        // This below throws the exception
	var response  = await client.InvokeAsync(request);
}

Possible Solution
Manually implement retry for Lambda invocation whenever this exception occurs.
Your Environment

AWSSDK.Core version used: <IP_ADDRESS>
Service assembly and version used: AWSSDK.Lambda 3.3.8
Operating System and version: Windows 10 (64-bit)
Visual Studio version: 2017
Targeted .NET platform: .NETCoreApp 1.0

.NET SDK already does clockskew correction by default.  Could you provide request ids for the requests that results in expired signature eception?

Out of curiosity how long does your Lambda function run and what is the timeout set on your Lambda function?

Hello @sstevenkang,
Below are sample request ids:

4e7292cc-d9bc-11e7-bb93-43bcee7d169c (5 Dec 2017 13:00 UTC)
54b9a1d2-d8a3-11e7-8cac-53e627ca912b (4 Dec 2017 3:29 UTC)
4bbeff75-d622-11e7-b93c-0767bce9b1e8 (30 Nov 2017 23:00 UTC)

To answer @normj, we have currently set timeout to 5 minutes.


Add infracost

what

Add infracost

why

Infracost is a tool that we can integrate directly with spacelift

references

Closes https://github.com/cloudposse/packages/issues/2420
https://github.com/infracost/infracost
Fails on make -C vendor/infracost apk
Tried download_tarball and it only had an alpine failure
Tried download_tar_gz but this had many failures

https://github.com/cloudposse/packages/blob/59be72280d759019cbc9cc8b638c68ec46f5f07b/tasks/Makefile.downloads#L59

commands
export PACKAGE=infracost
make init
make readme
make -C vendor/$PACKAGE install
make -C vendor/$PACKAGE test

Unsure why alpine is failing. It works locally for me.
docker run -it --user root alpine

Then in the container
/ # apk add wget
/ # wget https://github.com/infracost/infracost/releases/download/v0.9.24/infracost-linux-amd64.tar.gz
/ # ./infracost-linux-amd64 --version
Infracost v0.9.24

Thank you @Nuru!


), or review the [existing ones](https://github.com/heartexlabs/label-studio/issues

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Hello MohammadRezaHosseinian,
I'm closed this issue as there isn't enough description about anything in there. Please reopen issues with some context and description of the problem


Fix the AutoEnable issues we've been seeing recently

Modify the post-install script so that it:
1- removes the old problematic addition to the script
2- only adds AutoEnable=true if that's not already in the file
3- adds a space between the AutoEnable=true and the comment indicating it was added by this package
Post-removal script is also modified to check for the space when cleaning up.

"Add spaces before the #ds4drv# marker to hopefully fix the issues encountered on Dingo" can this verified prior to merging?

Yes, it should be tested to verify.  The easiest machine to test this on is probably the dingo you encountered the problem on previously, assuming it's going to be available soon?

After testing on the QSI deskbot (which also exhibits this behaviour) it appears that having anything on the same line as AutoEnable=true causes the Bluetooth to not turn on properly, as does having multiple AutoEnable=____ lines in the config file.
I've further modified the postinst script to work-around these problems, at the expense of not cleaning up the file after we uninstall.  For practical purposes, I don't think leaving "AutoEnable=true" in the file after we uninstall is a big deal, as that appears to be the default on Ubuntu anyway.


[FLINK-35317][cli] Supports submitting multiple pipeline jobs at once

This closes FLINK-35317.
Currently, Flink CDC CLI only allows submitting one YAML pipeline job each time. This PR allows submitting multiple .yml files at once like this:
./bin/flink-cdc.sh job1.yml job2.yml job3.yml --flink-home /opt/flink ...
prints the following output:
Pipeline has been submitted to cluster.
Job ID: 60f6e58bd3c0f54ee51b703d7e59b9ca
Job Description: Dummy Pipeline 1
Pipeline has been submitted to cluster.
Job ID: e4403683aaacf185f87db4a769a1db74
Job Description: Dummy Pipeline 2
Pipeline has been submitted to cluster.
Job ID: 350737f6e5e3d7cfaa0b17f77e5a5035
Job Description: Dummy Pipeline 3

I don't know whether we need to do it? Foe example, what happened if fist job is submitted success but the later is fail. Will we cancel the first one?

Hi @loserwang1024, the original idea is pipeline definition does not allow defining source & sink with different connectors for now, and user must write separated YAML files to define hetero-source / hetero-sink pipelines. For now CLI just submits all of them as individual jobs without caring if they run successfully or fail, just like a convenient alternative to executing ./flink-cdc.sh for each YAML file.
In the future, CDC Composer might be able to do some optimization by reusing sources / sinks and compose merged operator topologies without changing the CLI frontend interface.


Interface update

probably should update the python and Java files as well since they will all be affected before merging

@kdheepak are you planning on adding any more to this PR?

No, we can merge this. I'm not sure why the tests on the Mac failed. I'm restarting them on Travis. Locally on my machine, they seem to work fine.

@kdheepak You can go ahead and merge at your convenience.  Do you think we should get out an update to the Beta before friday as well?


Remove TOC from docs

A long time ago, we added a way to automatically generate a Table of Contents (TOC) for /docs/*.md
But that was a mistake and I ended up commenting out all the TOC.  But the cruft from this decision is still stuck in all the docs and there's more cruft in /bin etc.  For example, if you look at the end of  docs/Coeffects.md you'll see it all commented out like this ...
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
<!-- ## Table Of Contents -->

<!-- - [What Are They?](#what-are-they) -->
<!-- - [An Example](#an-example) -->
<!-- - [How We Want It](#how-we-want-it) -->
<!-- - [Abracadabra](#abracadabra) -->
<!-- - [Which Interceptors?](#which-interceptors) -->

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

So let's clean up this mistake.  Let's just rip it out of /docs/*.md.  And then remove the stuff in /bin etc.  Anything else?
To provide information about what has to be undone, here is the original commit:
https://github.com/day8/re-frame/commit/d9cdb53c07c5b43d9cd3ef6a6a6a6229970eeeec

Removed.


Support disabling node version check with environment variable

Describe the feature
When running untested versions of node, I get a large warning message, e.g.
$ cdk version
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!                                                                                !!
!!  This software has not been tested with node v19.0.0.                            !!
!!  You may to encounter runtime issues, and should switch to a supported release.  !!
!!                                                                                !!
!!  This software is currently running on node v19.0.0.                             !!
!!

While I understand the reason for the warning, I would like a way to tell JSII that I know what I'm doing and not display a warning every single time.
Use Case
Running aws-cdk on the default version that ships with ArchLinux.
Proposed Solution
e.g. by setting an environment variable:
export JSII_DISABLE_NODE_VERSION_CHECK=1

Other Information
No response
Acknowledgements

[X] I may be able to implement this feature request
[ ] This feature might incur a breaking change

CDK version used
2.48.0
Environment details (OS name and version, etc.)
Linux 6.0.6-arch1-1

Related to https://github.com/aws/jsii/issues/3171


Why not fill all webrouter ips into tinydns

In our scene, we always use internal http service with lain.local domain, but networkd support one ip only. In fact webrouter is not stateful. We just fill all ips into tinydns is fine i think.

What all webrouter ips means? In our scene, we use webrouter with standby, so networkd need manage only one ip(vip or local node ip(running webrotuer) with lock).

@supermeng This can make webrouter scale out. So far we can use a SLB for load balance of webrouters. But for some internal systems,  i think if we can access them with webrouter only is better, so we use xxx.lain.local pattern for some internal systems, but there is only one ip exists in tinydns, so is there some reason for the design of webrouter with standby or we can fill all ips into tinydns?

#21  Added NS a.ns.lain and a.ns.$domain and A Record *.lain && *.$domain in tinydns for the feature.

@supermeng Thanks a lot~


word_to_ix on the wrong input?

Hi,
I'm confused with the way you build word_to_ix here: https://github.com/rguthrie3/DeepLearningForNLPInPytorch/blame/master/Deep Learning for Natural Language Processing with Pytorch.ipynb#L1448
Is there any reason of why you don't use the vocab or set(raw_text) instead, like you do here: https://github.com/rguthrie3/DeepLearningForNLPInPytorch/blame/master/Deep Learning for Natural Language Processing with Pytorch.ipynb#L1298 ??

You're right.  It should have been set(raw_text).  THis doesn't affect correctness, it just makes the size of the embedding table be the number of tokens, not the number of types (with a lot of unused embeddings in the table).  Obviously this is bad for any real data set.  I've fixed it.


When locking for portrait while in landscape mode, orientation doesn't change to portrait.

Thank you very much for you plugin!! It works great!!
But I have following issue on iOS :

App is locked to portrait mode.
Image is displayed on a view along with content. When image is tapped, it opens in full view. While opening image, I unlock the mode so that image can be rotated properly.
When image is again tapped, image is closed. While closing I lock the orientation to Portrait.
This all looks fine
When image is in LANDSCAPE mode and closed, app is locked to portrait mode but orientation still remains LANDSCAPE. When user change to Portrait mode. Then it gets locked.

When we lock orientation, app should have same orientation forcefully.
Could you please have a look at this issue? If you can, then that will be great help.

We need this fix to go ahead with launch. Could you please let me know cost and timeline for the fix?
If you can provide fix, then that will be great help!!

hi @dpatil-gmcs I'm sorry but I'm not sure what you're actually saying the issue is.
If you would like me to look further please provide a test html file (inline js is fine) that demonstrates the issue.  With that I may be able to find a solution.

Hi @gbenvenuti ,
Thank you very much for your reply!!
We are developing app using KENDO UI. We have following plugins installed:
com.phonegap.plugins.PushPlugin 2.4.0 "PushPlugin"
com.phonegap.plugins.mapkit 0.9.2 "MapKit"
de.appplant.cordova.plugin.badge 0.6.1 "Badge"
net.yoik.cordova.plugins.screenorientation 1.3.2 "Screen Orientation"
org.apache.cordova.camera 0.3.6 "Camera"
org.apache.cordova.device 0.2.10 "Device"
org.apache.cordova.dialogs 0.2.7 "Notification"
org.apache.cordova.file 1.1.0 "File"
org.apache.cordova.file-transfer 0.4.3 "File Transfer"
org.apache.cordova.geolocation 0.3.10 "Geolocation"
org.apache.cordova.inappbrowser 0.4.0 "InAppBrowser"
org.apache.cordova.media 0.2.11 "Media"
org.apache.cordova.splashscreen 0.3.0 "Splashscreen":
App gets locked into PORTRAIT-PRIMARY. After first unlock, we see following error in the output of the XCODE :
2015-03-31 17:40:50.408 LakeWire[718:173528] CDVPlugin class YoikScreenOrientation (pluginName: YoikScreenOrientation) does not exist.
2015-03-31 17:40:50.409 LakeWire[718:173528] ERROR: Plugin 'YoikScreenOrientation' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2015-03-31 17:40:50.410 LakeWire[718:173528] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [
"YoikScreenOrientation1469035447",
"YoikScreenOrientation",
"screenOrientation",
[
"set",
"portrait-primary"
]
]
Following are steps to reproduce the issue:

App is locked to portrait mode.
Image is displayed on a view along with content. When image is tapped, it opens in full view. While opening image, I unlock the mode so that image can be rotated properly.
When image is again tapped, image is closed. While closing I lock the orientation to Portrait.
This all looks fine
When image is in LANDSCAPE mode and closed, app is locked to portrait mode but orientation still remains LANDSCAPE. When user change to Portrait mode. Then it gets locked.

We deleted all plugins and just installed your plugin, but still we see same issue.
Please let me know if you need anything else.
Thank you in advance.

Hi @dpatil-gmcs, sorry if I wasn't clear last time, but you will need to provide a test case where the problem is demonstrated.  I don't have time to piece together your points and "try" and replicate the issue.
If you can provide a working html/js file(s) I can load this into a cordova project and investigate for you.

@gbenvenuti
Thank you very much for you help!!
We were able to resolve the issue using comment by "@almarin" on the link https://github.com/yoik/cordova-yoik-screenorientation/issues/25#issuecomment-58029527
We just had to add the YoikScreenOrientation.m in Build phases -> Compile Sources.
Thank you very much for your replies and plugin!!!

No problem @dpatil-gmcs.  I had that happen on one project I was working on, I'm not sure why it happens sometimes...


 We should look into making these more type-safe, perhaps by introducing an enum for keys. This may require changes in iceberg-rust as we import most of the offending types from there (Table|ViewMetadata).

Another option would be to write wrappers around the iceberg-rust types, either as traits or as some class wrapper, that would ensure only writing valid data, reading would remain fallible but that would be handled uniformly on the respective type instead of at every location of usage.

We have some leftovers such as "write.metadata.compression-codec" and "write.data.path" that we should migrate to the iceberg-ext crate


How to define the status of a swarm mode service?

Swarm mode continuously recreates new containers when a task fails to run.
But in some cases, it's necessarily to decide whether the service is ready or failed , for example when a service depends on another.
Ready: running containers == replicas is fine, but how about global service?
Failed: hard to tell. The latest containers may not in failed or rejected state.  If by examing previous containers, what if there is service updating?
Maybe it's necessary for docker  to return the "service status", because it knows more information.

But in some cases, it's necessarily to decide whether the service is ready or failed , for example when a service depends on another.

You can specify healthchecks, which are considered when checking the status of individual tasks.
However, when designing your services, make sure to design them such, that they are resilient against failures. Services that a service depends on can become unavailable at any time, not just when first started. For example, if your application depends on a database server to be available, for example, by implementing a retry-loop
Please keep in mind that the GitHub issue tracker is not intended as a general support forum,
but for reporting bugs and feature requests. For other type of questions, consider using one of;

https://forums.docker.com
the Docker community Slack channel
StackOverflow

I'm going to close this issue because this is not a bug, but feel free to continue the conversation 👍

Imagine i'm writing some code to deploy two services: db and web, and web should be deployed after db is ready.
But with the current apis, it's hard to determine whether db service is ready or not.
For example, if i specified a wrong image tag when creating db service, what i can get from docker apis is a series of tasks: there is a task in Preparing state and a bunch of tasks in Shutdown state.
It's hard to tell the service status by these tasks.

Correct, the order in which the services are deployed cannot be guaranteed; so your web application should take that into account; not just when deploying but for its entire lifecycle. See the example i linked from the official WordPress image; that image checks if it's able to connect to the database, and keeps retrying until it's able to connect.


Package not avalilable for R 4.2.2

Hello.
I'm using Ubuntu 22.04, I have installed R 4.2.2 and I'm following the Week 3 from the Course 1.
Trying to install the Package I got this error:
package ‘StatsWithR/statsr’ is not available for this version of R

Is there another way for install the package, or will be supportes this version of R?

Could you let us know how you were installing it, i.e. the code you ran to install?

Finally I achieve to install from this repository. I figure that I had to install some dependencies that are not listed:

libxml2-dev
libssl-dev
libcurl4-openssl-dev
libclang-dev
dirmngr
gfortran

That allowed me to install the devtools package.
However, the StatsWithR/statsrcannot be installed following the instruction shown at the course (install.packages('StatsWithR/statsr')) but was possible following the direction listed at the README of this repo.
Nontheless, there no cue at the cours that a functional way is avaliable at this repo.
But now I'm ready following the lectures.
Thanks.


States of Root Orchestration Stacks shows status of all nested stacks in the Openstack infra provider

States of Root Orchestration Stacks shows the status of all nested stacks in the Openstack Infra provider summary. I'd expect it to show only the status of the main stack. Attaching screenshot.

@mcornea Do you still have your testing environment that I can access to? Is the openstack provider of juno or higher?
Looking into the code itself I could not find problems. We also have a spec test for this and it passes.

@bzwei It was Kilo. Unfortunately I don't have the testing environment anymore and I wasn't able to reproduce it with the latest master and a fresh Openstack environment so I'm going to close this. Thanks


Mapping colony metadata to isolate data

Hi there,
There doesn't seem to be any information/readme describing the relationship between isolate information and colony metadata information. Could you provide a description on how I map plate barcodes (plate_barcode) and colony identifiers (colony_index) to isolate identifiers (isolateID)?
Example:
plate_barcode: H2M1
colony_index: 1

Maps to what isolateID (which is in the form [plate_barcode]w[some other identifier])?

The reason I ask is because I'm trying to connect colony-level contours to the 16S RNA data.
Thanks

@hym0405

Hi Tom,
Thanks for your question!  For the colonies information on CAMII website (http://microbial-culturomics.com/). you could  find the isolate metadata (including source plate info) in CAMII_isolates_metadata.tsv file and isolate coordinate info in CAMII_isolates_morphological_features.tsv. Since only part of the colonies are isolated and re-arrayed in 384-well plates, the colony contour files will have info for all colonies and the best way to map them together is use the combination of plate barcodes, X-coordinate and Y-coordinate.
You could firstly find the isolates of interest in  "CAMII_isolates_metadata.tsv" and "CAMII_isolates_morphological_features.tsv", and then extract their plate barcodes, X-coordinate and Y-coordinate and find the exact mapping of colonies in colony_all.metadata and then find the ones in contours files.
Please let me know if you have any questions.
Best,
Yiming


OutputFixingParser: call chat with messages instead of prompt parameter when original parser raises an exception

Most LLM classes don't support the prompt parameter in the chat method. (In fact, only GooglePalm does.) This will allow more LLMs to use an OutputFixingParser (including Azure, Ollama, OpenAI, and ... GooglePalm)
I believe this should be a backwards compatible change for anyone using this as is with GooglePalm, but it does change the behavior.
Unclear why the existing specs didn't catch this.
Fixes #481

@viamin Thank you for the PR! If you use OpenAI, I'd probably just use the JSON mode they've got.


Extract load raw image from HtmlRemoteImageGetter in a new one (HtmlRawImageGetter)

Today HtmlRemoteImageGetter is loading image from the internet and also from the res/raw, I think it will be a good ideia divide that to be more specific, one for load from the web and another one to load from res/raw

Can you please point me to the exact line in  HtmlRemoteImageGetter where it loads images from res/raw? I don't see it.

Nevermind. Wrong issue!


Modification in the Id System

I modified the Id system by replacing the int type by Enum. With this you can avoid to generate Identifiers on the fly.

Far Better solution. Thank you :)


Add NuGet config

I've been doing some benchmarks for all the releases of JustEat.StatsD since we added .NET Core support to get some comparisons, and that required using a custom NuGet.config to restore packages from the AppVeyor CI feed.
This PR adds the vanilla NuGet.config file to the repo so that's easier to do in future without having to create one from scratch.
I've also extended the BenchmarkDotNet artifact wildcard in .gitignore to ignore the slightly different naming convention I'm using locally to generate a folder per StatsD-version/TFM combination.

Another option is to use RestoreAdditionalProjectSources in your csproj or Directory.Build.props, then you could put it behind a condition and hit it by passing a command line argument.
<RestoreAdditionalProjectSources>
    https://yourown.myget.org/...
</RestoreAdditionalProjectSources>

It's a bit odd to add a NuGet.config that just restates the default value, but if it's going to be used in future,  then we can do that.


Json parsing error

Hi,
I am trying to use the library to frontend a http4s server via lambda. I am testing my application using sam local. When I am trying to invoke the application. I am get the following parsing exception. I do not know if the issue is mainly due to sam local.
java.lang.RuntimeException: An error occurred during JSON parsing
Caused by: java.io.UncheckedIOException: com.fasterxml.jackson.databind.JsonMappingException: No suitable constructor found for type [simple type, class io.github.howardjohn.lambda.ProxyEncoding$ProxyRequest]: can not instantiate from JSON object (missing default constructor or creator, or perhaps need to add/enable type information?)
at [Source: lambdainternal.util.NativeMemoryAsInputStream@df27fae; line: 1, column: 2]
Caused by: com.fasterxml.jackson.databind.JsonMappingException: No suitable constructor found for type [simple type, class io.github.howardjohn.lambda.ProxyEncoding$ProxyRequest]: can not instantiate from JSON object (missing default constructor or creator, or perhaps need to add/enable type information?)
at [Source: lambdainternal.util.NativeMemoryAsInputStream@df27fae; line: 1, column: 2]
at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:148)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1106)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:296)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:133)
at com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:1511)
at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:1102)

The Lambda function will accept a ProxyRequest which is the format that API Gateway will send requests with proxy integration enabled. If requests aren't sent through API Gateway, they would need to manually be formatted to include httpMethod, headers, etc which is likely the error you are experiencing.
This is a pretty common issue so I think I'll update the error message to explain this.

Thanks. Using sam local it does create a APIGatewayProxyRequestEvent and APIGatewayProxyResponseEvent, it does create the required httpMethod and headers. I do not know if I am missing out something, I have not tried servless for local testing so do not know if it is different.

Ok, I don't think SAM Local is the issue then.
Looking at the error again, it is coming from Jackson, which lambda uses internally to process json inputs. So it is trying to marshall it into a ProxyRequest. What should be happening is it turns it into an InputStream then this library uses Circe to turn it into a ProxyRequest. I think this is happening due to setting the wrong handler in Lambda. It should be this function not this function, so it should look something like <PACKAGE_NAME>.Route$EntryPoint::handle. What handler are you using?

Thanks a lot for you help. It did work with  function, I was using handleRequest. But now I am running into a fs2 library issue,it  has nothing to do with this library but if you do not mind can you tell me what version of fs2 library you are using. For me it is downloading fs2-core_2.12_1.0.0.jar
java.lang.NoSuchMethodError: fs2.Stream$InvariantOps$.through$extension(Lfs2/internal/FreeC;Lscala/Function1;)Lfs2/internal/FreeC;
at io.github.howardjohn.lambda.http4s.Http4sLambdaHandler$.encodeBody(Http4sLambdaHandler.scala:63)
at io.github.howardjohn.lambda.http4s.Http4sLambdaHandler$.$anonfun$parseRequest$5(Http4sLambdaHandler.scala:53)
at io.github.howardjohn.lambda.http4s.Http4sLambdaHandler$.$anonfun$parseRequest$5$adapted(Http4sLambdaHandler.scala:53)
at scala.Option.map(Option.scala:146)
at io.github.howardjohn.lambda.http4s.Http4sLambdaHandler$.$anonfun$parseRequest$2(Http4sLambdaHandler.scala:53)
at scala.util.Either.map(Either.scala:350)
at io.github.howardjohn.lambda.http4s.Http4sLambdaHandler$.$anonfun$parseRequest$1(Http4sLambdaHandler.scala:47)
at scala.util.Either.flatMap(Either.scala:338)
at io.github.howardjohn.lambda.http4s.Http4sLambdaHandler$.io$github$howardjohn$lambda$http4s$Http4sLambdaHandler$$parseRequest(Http4sLambdaHandler.scala:46)
at io.github.howardjohn.lambda.http4s.Http4sLambdaHandler.handleRequest(Http4sLambdaHandler.scala:15)
at com.test.EntryPoint.handleRequest(Test.scala:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)

fs2 is pulled in from http4s. The fs2 version they use can be found at https://http4s.org/versions/.
If you use 0.3.1 of this library it uses http4s 18, which uses an older fs2. 0.4-SNAPSHOT uses the newer http4s 20.

Thank you very much for all your help. And thanks for creating this fantastic library.


Slg dev

Description
Minor documentation update
GitHub Issues
Closes #1302

@javulticat this looks good to me. Shall I approve?


🔥 Remove the , discard operator.

After a bit of discussion on the discord server, I think the inclusion of a discard operator might encourage an imperative style of programming a bit more than I might like. It also opens the floor up for confusion and mismatched expectations:
ret a;
    b;
    c

The above snippet is likely going be confusing in two ways:

In JavaScript, return is a statement that exits a function. We wouldn't expect b or c to be evaluated, let alone c being returned in this snippet.
In JavaScript, the semicolon is (mostly) optional, and it's reasonable to think an incoming programmer might insert a dangling semicolon after c. In Ren that would be an error, as ; is a  binary operator.

Instead, let's remove the , operator and let this problem be solved in user land. Folding over an array of effectful functions, discarding their result, achieves the same result, and could be part of an Effect module:
fun foo = x => {
    ret Effect.performMany
        [ fun _ => console.log "hello"
        , fun _ => console.log "world"
        ]
        |> Basics.always x
}

It's worth nothing that this particular example could just be:
ret [ console.log "hello"
    , console.log "world"
    ]
    |> Basics.always x

or even:
ret console.log "hello"
    |> Basics.always (console.log "world")
    |> Basics.always x

Although having an Effect.performMany would be nice to be able to pass around arrays of effects to be performed later, the broader point is that we can already solve this problem in user land code today, without the need of an operator, so let's nuke it.

Closed by 9281c142c02d0cffbeb4bce2a8c4ed930d3875df.