How does Waterline handle update concurrency ?

Apologies if this is just a silly noob question.
I was wondering how Waterline handles concurrent updates to the same record by different users.
like so...

User A executes findone(id=1)
User B executes findone(id=1)
User A and B are both simultaneously making changes to the exact same record albeit different changes.
User A executes save()
User B also executes save()

Depending on which save() is committed to the DB  first, one user will lose their changes because it will be overwritten by the second one.
Is there support for handling this scenario in Waterline ?

Waterline does not have transaction support, though there's an issue for that here: https://github.com/balderdashy/waterline/issues/755 .  This also relates to @rwoverdijk's dirty checking PR https://github.com/balderdashy/waterline/pull/1048, which I pray gets revisited some day.

hmm...
Transaction support would only help concurrency control within a single request/commit cycle. For ones spanning multiple cycles involving "user think time", we would need a some sort of locking mechanism.
This would fall under the "Locking" concurrency bucket.
The most common pattern Ive seen to solve this is Optimistic Locking where a version number is used to check if data has been updated by another request.

Ah yes, I see what you're saying.  If you have an idea how this would be implemented in waterline's cross-adapter environment, I'm sure we'd be open to seeing a spec!

All my models have a beforeUpdate that checks the udpatedAt field on the record to confirm the record has not been updated previously updated. It works the same as a validation test. If the validations fails, the update is not performed and user is notified that the record their viewing is out of date.

@randallmeeker but that would involve another round-trip to the datastore ?
It's fairly straight-fwd to solve this for the relational world where you would have a composite Unique Constraint (PK, VERSION_NUM) on all Tables. All ORM models would read the VERSION_NUM as part of all queries and all models would do a VERSION_NUM +1 on update calls. If the Unique Constraint is violated, the constraint violation error is bubbled up all the way to the user and reads "Sorry, someone else has updated the record since you last retrieved it".
This is a fairly ugly user error but should help preserve data integrity and robustness.
Now, I'm only a fews days old in the Waterline world so am in no position to implement this in a cross-adapter fashion. Hopefully in some time after I get to grips with the code, I can contribute.
In the meantime, do you reckon this stands a chance of being implemented as it is vital for me if I am to select this ORM for enterprise scale implementation ?

It does stand a chance, but it's worth keeping in mind that there's a pretty long roadmap, and currently waterline is in "tighten all existing features" mode.
I could be wrong, but this sounds like something you can implement somewhat easily using lifecycle callbacks and manually creating the unique constraint– especially with the pending PR https://github.com/balderdashy/waterline/pull/1122 which allows you to mutate update criteria.  Non-sequel databases will probably need different strategies.

Yes, you're right @devinivy I should be able to implement this manually as I am still at the POC stage.
I would appreciate it if gets onto the roadmap so I can point to it when questioned.
I think Waterline does a fantastic job of acting as a cross-adapter facade. I guess we'd all be living in a perfect world if it also supports some of these raw services such as transactions, locking etc  :)
Thanks for your help. Much appreciated.

No problem!  I agree– this would be a great feature.  I invite you to make a pull request to the ROADMAP.md file!

yeah... this is a fun problem. we generally avoid .save() in all of our code that has a chance of concurrent access, and instead issue UPDATE statements with a where clause - see https://kev.inburke.com/kevin/faster-correct-database-queries/ for more info.

I thought I would drop this here for visibility.
If you need to use distributed locking in your application, this library is very handy: https://github.com/blockai/advisory-lock


Per-kernel pylance clients don't respect user settings

We're debugging notebooks in Pylance; the Jupyter extension (or the middleware) spawns multiple LSs which print to other output windows than the main one, but it doesn't seem like they respect any user settings, namely:
"python.analysis.logLevel": "Trace",
"python.trace.server": "verbose",

Which makes it hard to start looking at what's being sent over the LSP or how Pylance is reacting to it.
I'm not sure why this is happening, but "python.trace.server" is handled on the client side, so wouldn't be a Pylance bug.

That's because the name of the server is different.
These are the settings you'd use:
    "notebook-intellisense.logLevel": "Trace",
    "notebook-intellisense.trace.server.verbosity": "Verbose",

Hm... That doesn't seem right; then no settings the user applies for any of the Python features will work.
How did you rename these? The latter one can make sense, as that's the name of the language, but I don't know how you would be stripping all of the other relevent settings.

Those settings are searched for by the vscode-languageclient. The other settings shouldn't be affected AFAIK. Is there something else that would be changeable?

"python.analysis.logLevel": "Trace" certainly isn't known to the LSP client... that's a Pylance setting like anything else under python.analysis, including the ones for extraPaths, completion configuration, etc.
python.trace.server is the one that enables LSP tracing and is definitely known to the client library.
The fact that neither work is the suspicious thing, but the latter is likely due to the LS name being different so the client looks for a different <name>.trace.server.

How does python.analysis.* etc get over to pylance? Unless the language client is forwarding the settings, I don't see where they get sent.

They're just a part of the workspace/configuration call with our other settings. didChangeConfiguration tells us that something changed, then we request per-workspace the settings afterward or whenever we need to reload.

Seems like that should just be working then. Maybe the language client handles the config request and I have it using the wrong base.
Here's where that's handled in the middleware:
https://github.com/microsoft/vscode-jupyter-lsp-middleware/blob/ca2acba42a92ca6f329eebbfe25b6aa258344f77/src/notebookMiddlewareAddon.ts#L146

Closing as pylance is now handling completions.


rouge: Add support for resizing raw images

Add new "resize" to the raw_image block, which allows rouge to resize the raw_image to the size set in the block.
This is useful when the image size needs to be changed frequently, or multiple images need to be created from the same source files, as it allows to skip the rootfs rebuild step.
Images are copied to a temporary directory before resizing to preserve the original build artifacts. The temporary directory is created in the current working directory to prevent filling the system's /tmp with large images.

@rshym suggested that we should make resize true by default to make behavior more consistent with the other blocks. Will it be a better approach?

@rshym suggested that we should make resize true by default to make behavior more consistent with the other blocks. Will it be a better approach?

After additional discussion, we agreed that 'resize true by default' is not needed.

Will it be a better approach?

Yes. I believe in "least surprise" principle. So make it True by default.

Also improved the error messaging slightly, I hope it's okay

Reviewed-by: Ruslan Shymkevych<EMAIL_ADDRESS>


Fix spelling in image

https://next.carbondesignsystem.com/patterns/disabled-states#hidden
Tooltip text in image has a typo: should be "explaining"

fixed https://www.carbondesignsystem.com/patterns/disabled-states#additional-warning


rake-compiler v1.1.2 has broken something in Nokogiri's native gem builds

rake-compiler v1.1.2 has broken something in Nokogiri's native gem builds.
An example failure is at https://github.com/sparklemotion/nokogiri/runs/4458677557?check_suite_focus=true, which is running in the larskanis/rake-compiler-dock-mri-x86_64-darwin:1.1.0 image.
You can reproduce this by cloning sparklemotion/nokogiri and running bundle exec rake gem:x86_64-darwin (though please make sure you're using rake-compiler 1.1.2 or 1.1.3, since I'm locking to 1.1.1 in https://github.com/sparklemotion/nokogiri/pull/2383).
...
/usr/local/rvm/rubies/ruby-2.5.9/bin/ruby -I. -r.rake-compiler-siteconf.rb ../../../../ext/nokogiri/extconf.rb  --enable-cross-build
Could not find racc-1.6.0 in any of the sources
Run `bundle install` to install missing gems.
*** ../../../../ext/nokogiri/extconf.rb failed ***

I've bisected the problem to f48d669 but have been unable to understand what the root cause of this, other than noting that removing the siteconf file allows the build to proceed.

I'll also note that only the darwin build seems to be affected, as linux and windows builds seem to be fine. :monocle_face:

Umm... #191 has many problems...
BTW, is https://github.com/sparklemotion/nokogiri/runs/4458677557?check_suite_focus=true#step:5:212 related to this? It seems that it's a Bundler or Racc related problem.
/usr/local/rvm/gems/ruby-2.5.8/gems/bundler-2.2.3/lib/bundler/spec_set.rb:87:in `block in materialize': Could not find racc-1.6.0 in any of the sources (Bundler::GemNotFound)

BTW, is https://github.com/sparklemotion/nokogiri/runs/4458677557?check_suite_focus=true#step:5:212 related to this? It seems that it's a Bundler or Racc related problem.

Yes, this is the problem that I'm reporting here. Something in the siteconf file causes the racc gem to not be found, and I could not figure out what exactly is causing it. Environment variables all look right (GEM_HOME, GEM_PATH) and the gem is in fact installed; and this problem does not happen on linux or windows cross-compilation.

I've reproduced this issue in a much simpler gem, which is the "precompiled" gem in https://github.com/flavorjones/ruby-c-extensions-explained
See https://github.com/flavorjones/ruby-c-extensions-explained/pull/6 for the PR that introduces "racc" as a dependency and demonstrates this exact failure, but only with Darwin (and not Linux or Windows):
https://github.com/flavorjones/ruby-c-extensions-explained/runs/4483674590?check_suite_focus=true
/usr/local/rvm/rubies/ruby-2.5.8/bin/ruby -I. -r.rake-compiler-siteconf.rb ../../../../ext/precompiled/extconf.rb --enable-cross-build
/usr/local/rvm/gems/ruby-2.5.8/gems/bundler-2.2.3/lib/bundler/spec_set.rb:87:in `block in materialize': Could not find racc-1.6.0 in any of the sources (Bundler::GemNotFound)

Note that without "racc" everything passes: https://github.com/flavorjones/ruby-c-extensions-explained/actions/runs/1563475900

Could you try 1.1.4?

In my gem, rake-compiler installs extension (.so) to lib/ instead of lib/gem-name/ (extension source is in ext/gem-name/) during test (which has :compile as dependency).  It works fine with 1.1.1 and 1.1.2 but broken with 1.1.3.  I'm yet to examine this more thoroughly but this might be related.

@kou rake-compiler v1.1.4 does not fix this issue.
An easy way to reproduce this is to use the branch from https://github.com/flavorjones/ruby-c-extensions-explained/pull/6 and update the version of rake-compiler declared in the Gemfile.
The full output from that gem, using v1.1.4:
$ be rake gem:x86_64-darwin
rake-compiler-dock bash -c "gem install bundler --no-document &&\nbundle &&\nbundle exec rake gem:x86_64-darwin:buildit\n"
Fetching bundler-2.2.33.gem
Successfully installed bundler-2.2.33
1 gem installed
Fetching gem metadata from https://rubygems.org/....
Fetching rake 13.0.6
Installing rake 13.0.6
Using bundler 2.2.33
Fetching rake-compiler-dock 1.1.0
Using mini_portile2 2.7.1
Fetching rake-compiler 1.1.4
Fetching minitest 5.14.4
Fetching racc 1.6.0
Installing rake-compiler-dock 1.1.0
Installing rake-compiler 1.1.4
Installing minitest 5.14.4
Installing racc 1.6.0 with native extensions
Using rcee_precompiled 0.3.0 from source at `.`
Bundle complete! 5 Gemfile dependencies, 8 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
no configuration section for specified version of Ruby (rbconfig-x64-mingw32-3.0.0)
no configuration section for specified version of Ruby (rbconfig-x64-mingw32-2.7.0)
no configuration section for specified version of Ruby (rbconfig-x64-mingw32-2.6.0)
no configuration section for specified version of Ruby (rbconfig-x64-mingw32-2.5.0)
no configuration section for specified version of Ruby (rbconfig-x86_64-linux-3.0.0)
no configuration section for specified version of Ruby (rbconfig-x86_64-linux-2.7.0)
no configuration section for specified version of Ruby (rbconfig-x86_64-linux-2.6.0)
no configuration section for specified version of Ruby (rbconfig-x86_64-linux-2.5.0)
no configuration section for specified version of Ruby (rbconfig-arm64-darwin-3.0.0)
no configuration section for specified version of Ruby (rbconfig-arm64-darwin-2.7.0)
no configuration section for specified version of Ruby (rbconfig-arm64-darwin-2.6.0)
no configuration section for specified version of Ruby (rbconfig-arm64-darwin-2.5.0)
cd tmp/x86_64-darwin/precompiled/3.0.0
/usr/local/rvm/rubies/ruby-2.5.9/bin/ruby -I. -r.rake-compiler-siteconf.rb ../../../../ext/precompiled/extconf.rb --enable-cross-build
Could not find racc-1.6.0 in any of the sources
Run `bundle install` to install missing gems.
*** ../../../../ext/precompiled/extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
	--with-opt-dir
	--without-opt-dir
	--with-opt-include
	--without-opt-include=${opt-dir}/include
	--with-opt-lib
	--without-opt-lib=${opt-dir}/lib
	--with-make-prog
	--without-make-prog
	--srcdir=../../../../ext/precompiled
	--curdir
	--ruby=/usr/local/rake-compiler/ruby/x86_64-apple-darwin/ruby-3.0.0/bin/$(RUBY_BASE_NAME)
rake aborted!
Command failed with status (7): [/usr/local/rvm/rubies/ruby-2.5.9/bin/ruby ...]
/usr/local/rvm/gems/ruby-2.5.9/gems/rake-compiler-1.1.4/lib/rake/extensiontask.rb:216:in `block (2 levels) in define_compile_tasks'
/usr/local/rvm/gems/ruby-2.5.9/gems/rake-compiler-1.1.4/lib/rake/extensiontask.rb:213:in `block in define_compile_tasks'
/home/flavorjones/code/oss/ruby-c-extensions-explained/precompiled/Rakefile:50:in `block (4 levels) in <top (required)>'
/usr/local/rvm/gems/ruby-2.5.9/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.5.9/bin/ruby_executable_hooks:22:in `eval'
/usr/local/rvm/gems/ruby-2.5.9/bin/ruby_executable_hooks:22:in `<main>'
Tasks: TOP => native:x86_64-darwin => native:rcee_precompiled:x86_64-darwin => tmp/x86_64-darwin/stage/lib/rcee/precompiled/3.0/precompiled.bundle => copy:precompiled:x86_64-darwin:3.0.0 => tmp/x86_64-darwin/precompiled/3.0.0/precompiled.bundle => tmp/x86_64-darwin/precompiled/3.0.0/Makefile
(See full trace by running task with --trace)
rake aborted!
 After cleaning and clobbering the project directory, I'm able to build successfully with rake-compiler v1.1.4. :clap: :clap: :clap:


ip_restriction_default_action missing in site_config

Hello,
parameter ip_restriction_default_action is missing in site_config, default is Allow, so configuration of allowed_ip_addresses is useless. Can you add it?
Thanks a lot!

Nice, thank you very much!


community: SQLStrStore/SQLDocStore provide an easy SQL alternative to InMemoryStore to persist data remotely in a SQL storage

Description:

Implement SQLStrStore and SQLDocStore classes that inherits from BaseStore to allow to persist data remotely on a SQL server.
SQL is widely used and sometimes we do not want to install a caching solution like Redis.
Multiple issues/comments complain that there is no easy remote and persistent solution that are not in memory (users want to replace InMemoryStore), e.g., https://github.com/langchain-ai/langchain/issues/14267, https://github.com/langchain-ai/langchain/issues/15633, https://github.com/langchain-ai/langchain/issues/14643, https://stackoverflow.com/questions/77385587/persist-parentdocumentretriever-of-langchain
This is particularly painful when wanting to use ParentDocumentRetriever
This implementation is particularly useful when:

it's expensive to construct an InMemoryDocstore/dict
you want to retrieve documents from remote sources
you just want to reuse existing objects

This implementation integrates well with PGVector, indeed, when using PGVector, you already have a SQL instance running. SQLDocStore is a convenient way of using this instance to store documents associated to vectors. An integration example with ParentDocumentRetriever and PGVector is provided in docs/docs/integrations/stores/sql.ipynb or here.
It persists str and Document objects but can be easily extended.

Issue:
Provide an easy SQL alternative to InMemoryStore.

thanks! this looks great. lets not change anything in langchain (even imports) - other than that this looks fantastic!!

Thanks @hwchase17 ! My last commit fixes what you underlined by removing changes in libs/langchain :)

@edmolten
The SQLDocStore was originally implemented to replace InMemoryStore to solve the problem of document persistence that I had with ParentDocumentRetriever. So yes SQLDocStore can definitely be use with ParentDocumentRetriever.
Please find a working example:
import os

from langchain.retrievers import ParentDocumentRetriever
from langchain.text_splitter import RecursiveCharacterTextSplitter
from langchain_community.vectorstores import Chroma
from langchain_community.embeddings import HuggingFaceEmbeddings
from langchain_community.document_loaders import TextLoader

from storage.sql import SQLDocStore

def connection_string_from_db_params() -> str:
    """Return connection string from database parameters."""
    dbdriver = os.environ.get("TEST_SQL_DBDRIVER", "postgresql+psycopg2")
    host = os.environ.get("TEST_SQL_HOST", "localhost")
    port = int(os.environ.get("TEST_SQL_PORT", "5432"))
    database = os.environ.get("TEST_SQL_DATABASE", "postgres")
    user = os.environ.get("TEST_SQL_USER", "postgres")
    password = os.environ.get("TEST_SQL_PASSWORD", "postgres")
    return f"{dbdriver}://{user}:{password}@{host}:{port}/{database}"

CONNECTION_STRING = connection_string_from_db_params()

embeddings = HuggingFaceEmbeddings()

parent_splitter = RecursiveCharacterTextSplitter(chunk_size=1000)
child_splitter = RecursiveCharacterTextSplitter(chunk_size=200)

vectorstore = Chroma(
    collection_name="full_documents", embedding_function=HuggingFaceEmbeddings()
)
store = SQLDocStore(CONNECTION_STRING, "manual")

retriever = ParentDocumentRetriever(
    vectorstore=vectorstore,
    docstore=store,
    child_splitter=child_splitter,
    parent_splitter=parent_splitter,
)

loader = TextLoader("./state_of_the_union.txt")
documents = loader.load()

retriever.add_documents(documents)

query = "What did the president say about Ketanji Brown Jackson"
docs = retriever.get_relevant_documents(query)

print(docs[0])

Output:
page_content='In state after state, new laws have been passed, not only to suppress the vote, but to subvert entire elections. \n\nWe cannot let this happen. \n\nTonight. I call on the Senate to: Pass the Freedom to Vote Act. Pass the John Lewis Voting Rights Act. And while you’re at it, pass the Disclose Act so Americans can know who is funding our elections. \n\nTonight, I’d like to honor someone who has dedicated his life to serve this country: Justice Stephen Breyer—an Army veteran, Constitutional scholar, and retiring Justice of the United States Supreme Court. Justice Breyer, thank you for your service. \n\nOne of the most serious constitutional responsibilities a President has is nominating someone to serve on the United States Supreme Court. \n\nAnd I did that 4 days ago, when I nominated Circuit Court of Appeals Judge Ketanji Brown Jackson.  Works like charm!

Happy to help anytime! :)

Thanks for your work! I am trying to replace InMemoryStore for a multivectorretriever.
i have postgres running. But I am wondering where SQLDocStore is actually located for import. What package is storage.sql from? Are all of the packages listed in your post necessary for SQLDocStore?

from storage.sql import SQLDocStore

@kallebl0mquist storage.sql is not in LangChain lib for now, we are waiting for @hwchase17 @baskaryan to merge this PR :)
But you can take the sql.py file of this PR from here for now until the PR is merged.

@baskaryan @hwchase17 could you please approve again, I fixed the one error that only occurred with python3.8 TypeError: 'type' object is not subscriptable in my last commit.

@baskaryan @hwchase17 I think we are good to go, what do you think?

I would suggest to use Uuid (Generic “CamelCase” Types / https://docs.sqlalchemy.org/en/20/core/type_basics.html) instead of UUID. Therefore sqlite could be used as a backend.

Hello @gcheron,
cc: @cbornet
II proposed a similar approach. Your implementation is better.
But I think it's important to be able to have a global transaction, to use ParentDocumentRetriever, with pgvector for example, in a single transaction!
To do this, I suggest adding a customizable make_session (for sync and async ?).
    @contextlib.contextmanager
    def _make_session(self) -> Generator[Session, None, None]:
        """Create a session and close it after use."""

        if isinstance(self.session_factory, async_sessionmaker):
            raise AssertionError("This method is not supported for async engines.")

        session = scoped_session(self.session_factory)()
        try:
            yield session
        finally:
            session.commit()

I find ParentDocumentRetriever inconsistent (adding documents to a retriever is astonishing). I suggest an alternative, rag-vectorstore, which would allow you to use the index() api with your implementation, to manage all the tables in one transaction! Currently, there's no solution with langchain to guarantee data import in all situations (no two-phase commit with vectorstores).
A PR is proposed, but others need to be validated first.

@gcheron
The usage with langchain is to propose an engine parameter to manipulate SQL.
Is the case for :

langchain_community.cache.SQLAlchemyCache
langchain_community.cache.SQLAlchemyMd5Cache
langchain_community.utilities.SQLDatabase

Perhaps you can add this parameter so that you can share an engine instance.

Hey team - sorry about this! Actually going to revert this PR before too many people rely on this implementation. There are a few issues with it.

breaks imports from langchain.storage for anyone using sqlalchemy v1 (which we support) -> didn't fail linting because lint assumes sqlalchemy v2
doesn't have unit tests
relies on a specific schema without facilities for migrating to/off it in the future

For anyone wanting to continue using this, I would recommend copy-pasting the implementation from this PR into your code and maintaining yourself.
Happy to discuss a future PR that brings this back in some form. Maybe in experimental?

Oh, no. But it works so well.
I had no success using LocalFileStorage.
What would you suggest as the best alternative for docstorage?

Hi @efriis 👋
It has some unit tests, what do you mean by "doesn't have unit tests"?
I did not know about the need for supporting SQL alchemy v1 🤔
Happy to chat for adding modifications (maybe @pprados  as well?)

I have another proposition here, the PR16278

@pprados I do not think it better addresses @efriis concerns.
@efriis how could we discuss in order you tell us what you expect:

which additional unit tests do you expect?
how to address migrations? for example, does PGvector (which is also SQL based) have some migration protocol?

Hi! Is there a plan to address the concerns that resulted in this pr getting reverted? I liked this option as I do indexing and q&a in separate processes that don't share memory (I believe many people do). Hope it gets picked up :)

Oh, no. But it works so well. I had no success using LocalFileStorage. What would you suggest as the best alternative for docstorage?

Hi! Is there a plan to address the concerns that resulted in this pr getting reverted? I liked this option as I do indexing and q&a in separate processes that don't share memory (I believe many people do). Hope it gets picked up :)
...

Users seem to want such solution back to the lib, @efriis @baskaryan @hwchase17 any suggestion for moving forward?
I was asking for this:

@pprados I do not think it better addresses @efriis concerns. @efriis how could we discuss in order you tell us what you expect:

which additional unit tests do you expect?
how to address migrations? for example, does PGvector (which is also SQL based) have some migration protocol?

I was really glad trying to make a from langchain_community.storage import SQLStrStore after I got a in disk docstore to crash irreversibly. This SQL docstore is really important to become available ASAP. Thanks for the effort, @gcheron!

Thanks @gcheron for working on this solution.  It would be extremely helpful if we could persist the document store instead of using InMemoryStore.  I'm currently researching alternative workarounds for this but it would be nice if the ParentDocumentRetriever supported it out of the box.

Hello @adriaanbalt ,
You can find a better implement of ParentDocumentRetriever here. This approach is much better integrated with langchain, because it's not just a Retriever.


Include new API node_log

Now gluu-flask provides a API endpoint /node_logs/ to access the various logs created by the the cluster nodes. Update the UI with access to this endpoint.

This should be tagged version 0.3.2


test: Integration test for db migration

Integration test for db migration:

The workflow script contains the logic of checking out to the main branch, starting the db scripts with the old schema, and build the AUDITOR cargo package. (Since the main branch does not contain the old schema, for the sake of testing I am checking out to the old commit which still has the old schema. we can change it to main branch after merging this PR)
Checkout to the current branch
In the test_db_migration.sh script,  we run AUDITOR, insert 2 records and stop.
Run sqlx migrate to migrate the db to the new schema.
We build the AUDITOR package in the current branch.
Run AUDITOR and insert 2 more records.
Check if 4 records still persists and check the consistency of each record.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 62.39%. Comparing base (6d31086) to head (258b27d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #855      +/-   ##
==========================================
- Coverage   64.25%   62.39%   -1.86%
==========================================
  Files          48       45       -3
  Lines        5959     5425     -534
  Branches      144        0     -144
==========================================
- Hits         3829     3385     -444
+ Misses       2130     2040      -90

Components
Coverage Δ

apel_plugin
∅ <ø> (∅)

auditor
68.73% <ø> (ø)

auditor_client
94.63% <ø> (ø)

slurm_collector
68.45% <ø> (ø)

slurm_epilog_collector
0.00% <ø> (ø)

htcondor_collector
∅ <ø> (∅)

priority_plugin
37.50% <ø> (ø)

what exactly does the "get current commit" step do in the workflow? I don't think you're using COMMIT_SHA later

Yes, it is not used now. I can remove it now. Since I have to anyway refactor after this merge and change the git checkout to main instead of a specific commit.


Can't start daemon on Artix

Information

ratbagd version (ratbagd --version):
ratbagd: error while loading shared libraries: libsystemd.so.0: cannot open shared object file: No such file or directory
Distribution: Artix Linux
Kernel version (ex. uname -srmo): Linux 6.9.7-artix1-1 x86_64 GNU/Linux

Describe the bug
sudo ratbagd

ratbagd: error while loading shared libraries: libsystemd.so.0: cannot open shared object file: No such file or directory

To Reproduce
Steps to reproduce the behavior:

Use Artix or any other distro that doesn't use systemd
sudo ratbagd
See error

ratbagd: error while loading shared libraries: libsystemd.so.0: cannot open shared object file: No such file or directory

How did you compile libratbag?

I installed from extra/piper and extra/libratbag was a dependency.

yay -S swig # was missing build dep
meson setup -Dsystemd=false -Dlogind-provider=elogind build
ninja -C build
sudo ninja -C build install

Now I'm getting permission error:
sudo ratbagd --verbose
Starting ratbagd version 0.17 (API version 2)
Initializing libratbag
ratbagd error: Failed to start ratbagd: Permission denied

On a side note, would it be possible for somebody to add systemd free package to artix repos or aur? Personally I don't know how to publish/maintain aur package, that's why I'm asking.

'Permission denied' is likely a D-Bus error. Try installing with '/usr' prefix.

Yeah, that was it. Thank you! Closing.

I will notify Artix dev team about this. For now I will install piper with yay -Sdd piper to ignore libratbag dependency.

Well that didn't work

Looked at the code and seems like piper 0.7 use api v2 https://github.com/libratbag/piper/blob/master/meson.build#L11 and https://github.com/libratbag/libratbag/blob/master/meson.build#L21, so I'm not sure what happening there.

extra/piper 0.7-3
ratbagd version 0.17

Should I open another issue?


[Enhancement] Cease some audio effects over time

While I greatly appreciate the ambient sound effects, they can grate on your nerves if they repeat endlessly. Point in case: I made a beach base recently and rummaged around in it for a long time. Eventually, the seagull sounds made my ears bleed. I would appreciate a config option to have DynamicSurroundings cease repeating these ambient sounds when they have been played for a while, or simply reduce the frequency of repetitions. The trigger to reset this would be a biome change, i.e. player moving across biome borders. I am not familiar with how you currently determine what to play when, but this would be a good "immersion upgrade" from an end-user point of view.

 In DS there are settings in the mod settings to turn off any sound you don't like or change loudness or culling . I know what your asking and its already there .Go into the Forge Mods Menu and select DS then adjust to your liking .   Please read the Wikki .
This should be closed as invalid

Thanks for your opinion.

The best bet for you is to create an external config file and override the biome sounds for beach.  The next best thing would be what Tsoccerguy3 mentions and that is turning the volume down on the seagull sound.  Sometimes its not the frequency of playing, but the fact it is loud enough that it registers more directly in your senses.

If you don't think it's a good idea, I can live with that. I certainly know how to mute and lower sound volumes. But I was thinking about player immersion - which can and will break if the same sound is repeated over and over again frequently. One solution, the most elegant one in my thinking, is to reduce frequency (probably logarithmically) until a reset event occurs. I mean this for all of those ambient highlight sounds, chiefly the birds, but anything that stands out. I am not complaining about any one particular sound, as I find pretty much all of them well-selected and fitting to their circumstances. It is just the immersion-breaking that I found to be slightly annoying.

Sound fatigue can be a problem and is generally subjective.  I think the idea is an interesting one.  The challenge, though, given the current implementation of DS is making such a system would be like putting a square peg in a round hole. :)  I left it open because I am letting my hind brain chew on it a bit.


may have resolved isConnect type issue

Changed isConnected variable type from string to bool. Change made only in ViewModel.StudentViewModel.cs, as it already returns a boolean value to StudentPage.xaml.cs.
Further testing recommended.

problem appears to be fixed... didnt find any major bugs when trying to establish connection between the instructor and student

You closed the pr without merging. -_-


Skipif fix

This change is

Coverage remained the same at 75.148% when pulling f71c52d63dde3bb8e5a607a6588a5d7724d1a604 on david-puglielli:skipif-fix into bd34cabdd2be2c49c4437e3f09a0d34909b8bb35 on Microsoft:dev.

Codecov Report

Merging #821 into dev will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev     #821   +/-   ##
=======================================
  Coverage   80.06%   80.06%
=======================================
  Files          25       25
  Lines        7325     7325
=======================================
  Hits         5865     5865
  Misses       1460     1460

Continue to review full report at Codecov.

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


(maint) Make loglevel default more efficient

This line is not sane for the setting of the log_level default
loglevel = %x{ #{puppet_path} config --section agent --log_level notice print log_level }.chomp
this sets log_level to notice, and then return the output of the log_level setting
  loglevel = "notice"

is the same thing with fewer steps

 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.

@MartyEwings could you rebase and resolve conflicts?

@MartyEwings checking in, can you rebase?


fix wonky italics newlines

methodology for finding these lines:

line has italics
line is longer than 50 characters (fuzzier than 55)
italics section is longer than 15 characters.

This should be fixed in the latest deepLuna, I was moving spaces into the PUA range which funnily enough breaks splitting the string on spaces


[DONT MERGE] [silgen] When emitting a curry thunk, if the canonical type of the fu…

…nction differs from the actual function type in a non-ABI compatible way, use a canonical function thunk instead of a convert_function.
convert_function can only be used for to convert in between ABI compatible
functions.

This is just to get feedback from @jckarter.

@swift-ci test


Changing the enso_parser library location to match Intel Mac

Adjustments to #3842 are needed. Otherwise the ./run backend build command fails with
java.lang.IllegalArgumentException: requirement failed:
Source file '/enso/target/rust/debug/x86_64-apple-darwin/libenso_parser.dylib' does not exist.

exception. This PR adjusts the location of libenso_parser.dylib library to match the real location on Intel based Mac. However according to Marcin the original location was correct on his Mac M1. Do we need to differentiate between Intel and M1 versions and use different locations?

Marcin, please test this PR. Try to clean things up:
enso$ rm -rf *; git checkout -f .
enso$ ./run backend build

If the new location is wrong, please find a property in System.getProperties() that can help us differentiate between your Mac architecture and Intel Mac. I assume the property will start with os. prefix.


Rotten Oranges using BFS in java

🚀 Feature
(A clear and concise description of what the feature is.)
Have you read the Contributing Guidelines on Pull Requests?
Yes
Motivation
Want to show breadth-first search implementation.
Pitch
I want to add the famous breadth-first search implementation of the question Rotten Oranges.

/assign


Can I use gemini for localhost that has a pre-login step?

Apology for asking this, it's not an issue.. more of a general question if I can use gemini for my front-end style guide. I'd like to take screenshots of each of my component (localhost) on different browsers (FF, Chrome, etc). However, my localhost requires me to login to be able to access the style guide. Can I use gemini in this case?

hi
can you explain what part of your env needs to be logged in?


Works on another block

Hi, why does the animation on the header of the site work in my mobile version, although there should be no animation there? Fixed site header. https://clickdress.ru

You probably have some strayed classes, an invalid media query, or anything else. Please recheck your code and make sure to follow all the instructions. As this is an issue tracker we can't help much when it's something not directly related to the library itself. On stackoverflow you'll get the help you need and much faster.
I'm closing this as it's unrelated to the library.


Change interpolation

how can I do that?
The README has no example for messing with the internal settings of the template engine
Thanks

The options are linked to right in the readme: https://github.com/sindresorhus/gulp-template#options

Sorry, missed that one. I was mostly looking at examples and I was like where is the example where he pass settings.. hmmmmm...
Thank you for answering so quickly!


fix: update to eye v4.10.9

fix: update to eye v4.10.9

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

npm package (@latest dist-tag)
GitHub release
v6.0.1

Your semantic-release bot :package::rocket:


Upgraded dependencies for groupId androidx.appcompat

Dependencies upgrades
androidx.appcompat:appcompat

Version: 1.2.0 -> 1.3.0
Size: 1,03 MB
Release Date: мая 18 2021
Releases notes | Source code | Issue tracker

This pull request was automatically generated by Releases Hub Gradle Plugin v2.0.2

androidx.appcompat:appcompat

Version: 1.2.0 -> 1.3.0
Size: 1,03 MB
Release Date: мая 18 2021
Releases notes | Source code | Issue tracker


Component - Number

Design review: 0.2-Typo

Design review: 0.2-Typo

[ ] Number
Recheck design

Recheck leftColor, rightColor

[ ] @Quangdm-cdm update control for the number


Pass library version to Wizard in docs

🧐 Motivation
Wizard is only compatible with specific versions of this library, and this is shown on Wizard as a semantic version string.
When accessing Wizard from the documentation site, if the selected version of the library is not compatible with Wizard, we should show an appropriate error message.
📝 Details
For each branch where Wizard is available, pass through a version parameter of the current library version when embedding Wizard.  This will cause Wizard to render an error page if that version is not supported.
Related to: https://github.com/OpenZeppelin/contracts-wizard/pull/335

This was addressed in the main and release branches, but the changes for the release branches do not appear in the docs site because the docs site is using version tags due to https://github.com/OpenZeppelin/cairo-contracts/issues/869.
@martriay Would it make sense to migrate the version tags again for these branche, similar to https://github.com/OpenZeppelin/cairo-contracts/issues/869#issuecomment-1935230841 ?

We've learned the hard way it could be problematic to re-tag versions. We need to re-release releases because they're automatically drafted when a tag is deleted. We should probably define a process for re tagging and document it.

Well apparently the releases are only drafted if the tag is deleted, but I just force pushed new tags and it worked perfectly.

Thanks! This is resolved now.


Remove NOASSERTION clause from supplier validation function

I've removed the code that tests whether the package supplier or originator are 'NOASSERTION'. 'NOASSERTION' is a valid use case per the SPDX spec documentation.

Thanks @myartym03 for putting together the pull request.
I would prefer to get @kestewart opinion on this PR before merging - Kate contributed to the NTIA SBOM discussions and should have better context on if NOASSERTION should be allowed.

Closing this PR given that the discussion in https://github.com/spdx/ntia-conformance-checker/issues/125 appears to have converged on the premise that no code changes are potentially needed (only documentation changes, potentially). Please re-open if I am mis-understanding the situation.


Reload Jenkins CasC after setting pod resource limit of Jenkins agent

Special notes for reviewers:
There are two problems left here:

After we change jenkins-casc-config configmap, we have to invoke reload Jenkins CasC configuration api. I suggest to make another pull request for this.
If users upgrade KubeSphere, we don't recognize whether jenkins-casc-config configmap is fresh or not. Similarly, I suggest to make another pull request for this one.

This issue comes from one of problems mentioned in the previous PR: https://github.com/kubesphere-sigs/ks-devops/pull/26.
The main problem is that Jenkins will use old Jenkins CasC instead of new CasC updated by JenkinsConfigController, so that we cannot run Jenkins job correctly. please see the following error complained by Jenkins:
2021-07-24 03:41:57.351+0000 [id=114] WARNING o.c.j.p.k.KubernetesLauncher#launch: Error in provisioning; agent=KubernetesSlave name: base-77hd8, template=PodTemplate{id='4fb4d47b-486f-4797-af13-368e0fa16139', name='base', namespace='kubesphere-devops-worker', label='base', nodeUsageMode=NORMAL, workspaceVolume=EmptyDirWorkspaceVolume [memory=false], volumes=[HostPathVolume [mountPath=/var/run/docker.sock, hostPath=/var/run/docker.sock], HostPathVolume [mountPath=/root/.sonar/cache, hostPath=/var/data/jenkins_sonar_cache]], containers=[ContainerTemplate{name='base', image='kubespheredev/builder-base:v3.1.0', command='cat', args='', ttyEnabled=true, resourceRequestCpu='100m', resourceRequestMemory='100Mi', resourceLimitCpu='4000m', resourceLimitMemory='8192Mi'}, ContainerTemplate{name='jnlp', image='jenkins/jnlp-slave:3.27-1', command='jenkins-slave', args='${computer.jnlpmac} ${computer.name}', resourceRequestCpu='50m', resourceRequestMemory='400Mi', resourceLimitCpu='500m', resourceLimitMemory='1536Mi'}]}

io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://kubernetes.default/api/v1/namespaces/kubesphere-devops-worker/pods. Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked. admission webhook "resourcesquotas.quota.kubesphere.io" denied the request: pods "base-77hd8" is forbidden: exceeded quota: worker-resource-quota, requested: limits.cpu=4500m,limits.memory=9728Mi, used: limits.cpu=0,limits.memory=0, limited: limits.cpu=3,limits.memory=3Gi.

/kind bug
/assign

/priority high


[textanalytics] support for healthcare action + FHIR

Resolves https://github.com/Azure/azure-sdk-for-python/issues/24207 https://github.com/Azure/azure-sdk-for-python/issues/23527
Separate issue tracking samples for the healthcare action/FHIR: https://github.com/Azure/azure-sdk-for-python/issues/24297

API change check for azure-ai-textanalytics
API changes have been detected in azure-ai-textanalytics. You can review API changes here


Compile client failed with container

Describe the bug
When i try to compile client with container,  it failed with link error.
/opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-CentOS-linux/4.8.2/ld: /usr/local/lib/libsnappy.a(snappy.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
In the container, i find the snappy compiled with  CFLAGS="-fPIC -O3" .
Snappy
RUN curl -O -L https://github.com/google/snappy/releases/download/1.1.3/snappy-1.1.3.tar.gz &&
tar xvfz snappy-1.1.3.tar.gz &&
cd snappy-1.1.3 &&
CFLAGS="-fPIC -O3" ./configure &&
make && make install &&
rm -rf /snappy-1.1.3 /snappy-1.1.3.tar.gz
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]

Additional context
Add any other context about the problem here.

Hi, for snappy the flag should be CXXFLAGS="-fPIC -O3"  instead of  CFLAGS="-fPIC -O3".After replacement, the compilation is normal

@wenxuwan so the problem is not a pulsar issue, correct?

@wenxuwan so the problem is not a pulsar issue, correct?

No, the dockerFile is pulsar's file.  So the problem is pulsar issue.

you can refer https://github.com/apache/pulsar/compare/master...wenxuwan:master?diff=unified#diff-7e19b76e860cce6cafee3c3707d04659

@wenxuwan I see. Do you want to submit a pull request for this issue?

Thanks @wenxuwan for the help.

@wenxuwan Would you provide more details of how to reproduce it?
This Dockerfile that you changed in PR #6736 is called by the shell scripts in that dir:
e.g. /pulsar/pulsar-client-cpp/docker/build-wheel-file-within-docker.sh

@wenxuwan Would you provide more details of how to reproduce it?
This Dockerfile that you changed in PR #6736 is called by the shell scripts in that dir:
e.g. /pulsar/pulsar-client-cpp/docker/create-images.sh

cd /pulsar/pulsar-client-cpp/docker/
2.docker build --build-arg PYTHON_VERSION=3.7 --build-arg PYTHON_SPEC=cp37-cp37m .
3.start container and login
4.run build-wheel-file-within-docker.sh
when finish compile and link .so file, you will meet the error:

[ 90%] Built target pulsarStatic
[ 90%] Linking CXX shared library _pulsar.so
/opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-CentOS-linux/4.8.2/ld: /usr/local/lib/libsnappy.a(snappy.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libsnappy.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [python/_pulsar.so] Error 1
make[1]: *** [python/CMakeFiles/_pulsar.dir/all] Error 2

Thanks @wenxuwan for the details.

I think #6741 has fixed this issue.


Is it possible to set the flag to a specific country programatically using phone code ?

Possible duplicate of #3


Implemented API endpoint for StopPoint

Implements API endpoint as supported by TFL
StopPoint

@easyCZ Hey, any chance this will get accepted, is something wrong? :)

Hi @liliankasem,
Terribly sorry for the extremely long delay in my response, the original message got lost in my inbox.
Thanks a lot for taking the time to submit the MR, it's extremely appreciated.


clarify that a column can only have a single time zone

Here's how this looks:

I've checked that the links work
xref https://github.com/pola-rs/polars/issues/8289#issuecomment-1512347320

Live the Tom Scott quote btw. ^^


MAC filtering

HI,
Any plans to add mac filtering to this?
thanks

Hi @crass00,
No, MAC filtering doesn't do much, since the addresses can easily be spoofed.


add curved line worklet

Love this one! So good :) thank you 🎉

Love this one! So good :) thank you 🎉


Normalize the case before comparing compilation database paths (#4207)

This change addresses item #4207
This changes
Before comparing the compilation database path with the contents of cmake.copyCompileCommands make sure to platform-normalize the cases of both values.

@microsoft-github-policy-service agree


Implement Identity.Register SDK Function

@fkim7 This function is what does the DID association for a user. Would you want to call it something else? I called it Register as the user is registering their DID with their account with a specific organization.


Upgrade to Parquet MR 1.14.0

Upgrade to Parquet 1.14.0
No breaking change expected

Upgraded to 0.14.1


Search bar does not work properly

When having multiple pages of items, the search bar does not display anything if we are not positioned on the first page

The patch to correct the issue has side effects


Add fields nm, ma in examples for non-NAAT tests

e.g. https://github.com/ehn-digital-green-development/ehn-dgc-schema/blob/main/examples/test-rat.json

[2021-05-06] checking with SemanticSG on this one -> nm implicit or explicit?


Help: I need to save the keypair somewhere to persist it

Hello,
I'm trying to use MIHCrypto and so far seems good for me.
The only problem I'm having right now is saving the key pair somewhere.
In my app I'm using an encrypted database, so my first thinking was saving there the keys. No problems with the public key, but when I try to save the private key it just does not work.
I'm trying to save the 'privateKey.dataValue' to the DB but for some reasons it doesn't work.
I've tried to save it as [NSKeyedArchiver archivedDataWithRootObject:privateKey] or [NSKeyedArchiver archivedDataWithRootObject:privateKey.dataValue], both with no success.
the DB column type is blob.
Any help would be greatly appreciated.
Thanks.

[MIHRSAPrivateKey dataValue] and [MIHRSAPublicKey dataValue] just return an NSData instance which can be used to rebuild the key via [MIHRSAPrivateKey initWithData:] and [MIHRSAPublicKey initWithData:]. Everything else is up to you and without more details(/code) I can't help you any further.

Never mind, I've finally been able to save it to the Keychain.

No problem. Hope you will find MIHCrypto useful.


Fixes issue with possible XSS

Looks good. I scanned the static directory and did not find more instances.


Remove deprecated namespace admission plug-ins

The plug-ins are being removed from the source tree.
/cc @kubernetes/rh-cluster-infra

This change is

Github thinks this needs a rebase.


Poller picking up false packet loss on ping_only tests

We are using ktranslate agent running as a docker container with NewRelic to do some ping_only checks.  We know the version v2.1.23 from Feb2024 is working as expected and returning the expected results.  However any of the recent versions (even v2.1.26 from May2024) are producing intermittent packet loss metrics.  If I had to make a guess it seems v2.1.25 is where something changed related to ping - https://github.com/kentik/ktranslate/releases/tag/v2.1.25
Based on the NewRelic data collected it appears there were occasionally 6 packets were sent instead of the usual 5. Packets received remains as 5 and its shows as packetLoss.  Let me know if I can provide additional info around this issue.

Almost certainly this one: https://github.com/kentik/ktranslate/pull/679/files
I'll look further.

I think this should be fixed now, feel free to re-open if you don't see improvement.

Great - just to confirm if I pull "quay.io/kentik/ktranslate:v2" - I will get the updated version that includes the fix mentioned?  Just want to make sure I test with the correct release.  Thanks in advance @i3149


Problem when enabling Enable Static Cache and Enable Static Minify

Hi,
I had some problem with the display being a bit misplaced when I first installed on my hosting provider (namecheap).
Afterward I did some debugging and found out that some referenced weren't being properly served by the webserver even if my "htaccess" and rewriting seem working good.
So I first disabled all the caching and everything was solved.
I started back putting the options to "enabled" one by one. And the only two that need to be disabled are "Static Cache" and "Static Minify". Even if the "Enable general cache" is Enabled it works but as long those two are off.

See a screenshot enclosed.
Do you have a clue where that I could continue to look around for solving this ? Maybe if you give me more information on what exactly those two options do (like the way the interact or change the request processing).
Thanks
Polyna-Maude R.-Summerside
B.A., B.Sc, Security system specialist and threat analyst

Hi @polynamaude!
How are things in Montreal?
It might be related to what I said here https://github.com/pH7Software/pH7-Social-Dating-CMS/issues/154#issuecomment-351591753
Finally, files that might be useful for debugging 😃

https://github.com/pH7Software/pH7-Social-Dating-CMS/blob/master/_protected/framework/Layout/Gzip/Gzip.class.php (that file will fetch all static files, will compress them with gzencode and will store them in _protected/data/cache/pH7_static/ folder)

https://github.com/pH7Software/pH7-Social-Dating-CMS/blob/master/_protected/framework/Compress/Compress.class.php (that file will minify those files).

Hope that helps! 🎉

Thanks for those hint, i'll take a deeper look and do some testing. As I'm running of a shared hosting, the problem probably reside in the use of mod_security. The comment #154 gave me a good idea that it's where the problem is..
I get some style sheetlink ( that give me a " Error 401, unauthorized ". That's pretty strange as it should be a 403 for such a error type. I'll do some test with my server at home if I can repeat the problem. But I didn't have that problem at home, the only thing I did get was the usual messed up display when you don't have "mod_rewrite" setup properly.
Thanks for that quick answer, pretty fast...
Took a peek at the source code you linked me, i'll push some test later on but for now I'm only going to say that you must be a well organized person because it's really clean-coded.
Btw, we're getting a snow storm here in Montreal today, hope it's the last one of the year but still the weather is nice around 1 -2 degree over zero.

H again @polynamaude!
Might be from that... I usually don't recommend to have mod_security/mod_security2 enabled since other users already got some issues with it. Most of the shared hosts can disable it on your account if you ask then.
Anyway, speak to them about the issue you encounter and the 401 error.
Yes, for the moment, pH7CMS needs mod_rewrite setup in order to run (there is no way to run it without mod_rewrite).
Hopefully you will find a way to get it running 🤞
Good luck for the storm then! Stay cozy at home as much as possible then! :)

it was running but not exactly as intended and a bit more resource hungry than supposed. But now it work great with both the static cache and static minify enabled. The problem was exactly 'mod_security' that was blocking a request thinking it was some type of XSS.
I asked the hosting provider to disable the mod_security and now it's working as you intended the product to be.

Told them that I already had many protecting rules in my configuration including bot and bad ip list. At first they said it was going to make risky for other user of shared account but when I insisted that it was going to be less resource intensive, they agreed.
Thanks for the help.
I read somewhere that the actual facebook API doesn't work ? Maybe I can do a bit of work to get it back on track. Must be something like you using a direct Graph call for version 2.4 and they're now at a newer level or something alike. I'll take a look this weekend.

Strange, it came back but only for a part.. the static mimify that was enabled now cause me problem ! I'll take a peek if I changed something in the .htaccess file but don't think I did !
If you ever feel like taking a peek, my website is at www.polynamaude.com

Strange strange stange... I changed one line in my .htaccess ... from DirectoryIndex init.php to DirectoryIndex index.php (as I saw a RewriteRule that said index.php).
Now seem refixed !

Strange 🤔 Normally your Apache config should recognize index.php as an index file by default... Anyway.. Really happy it works now 😃
Oh yes, indeed, there is some issues with FB Connect (which is in "connect" module).
A while ago, I updated it to a newer SDK version with their composer package https://github.com/pH7Software/pH7-Social-Dating-CMS/blob/master/composer.json#L29


Generate images with numbers and english symbols (punctuations)

Hi @ankush-me
Great project! How do I generate images with numbers and punctuations? Any direction would be much appreciated.
Best regards,
Vishal

You would need to modify the text source, and make sure that the fonts have the corresponding glyphs (most should).


fix: setting the default for dates in model

how i did it does not work, it actually initialized the default date once on the server start and keeps that. i was quite sure it will recalculate now() on each model initialization, but that was a false assumption.
the fix is to make it a required value, and initalizing it when creating a model

I think you might want to assign now only once and then to use the variable.
e.g.
now = datetime.now(timezone.utc)

payment = Payment(
    ...
    time=now,
    created_at=now,
    updated_at=now
)

otherwise you end up with different values for time, created_at and updated_at

it still a bit annoying, i would love to have them set properly on initializing the model

closing in favor of https://github.com/lnbits/lnbits/pull/2755


feat(client): ts-migrate Settings component

Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Ref #42256

Current Progress:

[x] /client/src/components/settings/About.js
[ ] /client/src/components/settings/Certification.test.js
[x] /client/src/components/settings/DangerZone.js
[x] /client/src/components/settings/DeleteModal.js
[x] /client/src/components/settings/Email.js
[x] /client/src/components/settings/Honesty.js
[ ] /client/src/components/settings/Honesty.test.js
[x] /client/src/components/settings/Internet.js
[x] /client/src/components/settings/Portfolio.js
[x] /client/src/components/settings/Privacy.js
[x] /client/src/components/settings/ResetModal.js
[x] /client/src/components/settings/SectionHeader.js
[x] /client/src/components/settings/Theme.js
[x] /client/src/components/settings/ToggleSetting.js
[x] /client/src/components/settings/Username.js
[ ] Review changes once again
[ ] Changing the filename from PascalCase to kebab-case and ensuring that the imports in code are all still valid.

Yikes I missed out the part with file name format, will change them today and I'll finish this PR over the weekend.

@Nirajn2311 Are you happy converting this from a draft - not completing the list of components (can get to them another time)?

Sure, I'll change it now. I'll push any final changes I have within the next 3 hours.

@Nirajn2311 Sorry about this, but I forgot to retarget this PR to next (done now). Would you mind rebasing one last time? with next

@ShaunSHamilton I've rebased with next branch. Until Spacer and BlockSaveButton(found in "components/helpers/form") are migrated, there will be some errors.

@ShaunSHamilton I've rebased with next branch. Until Spacer and BlockSaveButton(found in "components/helpers/form") are migrated, there will be some errors. If no one has picked those 2 files, I can create a PR for them quickly as I had done some changes to them in my local to get no TS errors.

Thanks, for that. We are prioritising a PR that refactors Spacer to correct the type error, but I see @thecodingaviator is working on BlockSaveButton (ref https://github.com/freeCodeCamp/freeCodeCamp/pull/42476/files#diff-0a8b2e829372f73c50d8a9177a38dd3678c03a525d7d9b4f7026b450dc7ad13a) - did not realise this was an issue...

@ShaunSHamilton I've rebased with next branch. Until Spacer and BlockSaveButton(found in "components/helpers/form") are migrated, there will be some errors. If no one has picked those 2 files, I can create a PR for them quickly as I had done some changes to them in my local to get no TS errors.

Thanks, for that. We are prioritising a PR that refactors Spacer to correct the type error, but I see @thecodingaviator is working on BlockSaveButton (ref https://github.com/freeCodeCamp/freeCodeCamp/pull/42476/files#diff-0a8b2e829372f73c50d8a9177a38dd3678c03a525d7d9b4f7026b450dc7ad13a) - did not realise this was an issue...

@ShaunSHamilton #42476 should be ready to go. A quick review is required


Add support for passing Java code by stdin

Fixes #938

This should wait until we fully migrate scala-cli to Scala 3, leaving it as draft


spacy language backend sometimes produces wrong embeddings

The problem is that the embeddings given by the SpacyLanguage backend may not be correct in all cases. That's because currently a whitespace tokenizer is used for finding the position of tokens, whereas each language model in spaCy has its own tokenizer which might be more sophisticated than just a simple whitespace splitting. To demonstrate this, consider the following examples (note that the BERT model from spacy-transformers have been used here because the first two examples concern contextualized embeddings; however, it does not make a difference to use a built-in spaCy model instead):
import numpy as np
from whatlies.language import SpacyLanguage

lang = SpacyLanguage("en_trf_bertbaseuncased_lg")

# =========================================
# Example 1
query_raw = "let's go [home]"
query_clean = "let's go home"
emb = lang[query_raw]
doc = lang.model(query_clean)
print(list(doc))
# [let, 's, go, home]

assert str(doc[2]) == 'go'
assert str(doc[3]) == 'home'
# In correct case, the following two statements should raise exception
assert np.array_equal(emb.vector, doc[2].vector)
assert not np.array_equal(emb.vector, doc[3].vector)

# =========================================
# Example 2
query_raw = "player #10 [won]"
query_clean = "player #10 won"
emb = lang[query_raw]
doc = lang.model(query_clean)
print(list(doc))
# [player, #, 10, won]

assert str(doc[2]) == '10'
assert str(doc[3]) == 'won'
# In correct case, the following two statements should raise exception
assert np.array_equal(emb.vector, doc[2].vector)
assert not np.array_equal(emb.vector, doc[3].vector)

# =========================================
# Example 3: even when there is no context emb
query_raw = "pre-order this product"
emb = lang[query_raw]
doc = lang.model(query_raw)
print(list(doc))
# [pre, -, order, this, product]

assert str(doc[:-2]) == "pre-order"
# In correct case, the following two statements should raise exception
assert np.array_equal(emb.vector, doc[:-2].vector)
assert not np.array_equal(emb.vector, doc.vector)

Note that we used an English model above, and spaCy supports multiple languages which might have complex tokenization rules beyond whitespace tokenization and we may not be aware of them (although we can look them up in the source code but that's not the point); so, we cannot just blame these non-alphanumeric characters (e.g. ', #, -, ?, !) in English for the cause of this issue and treat these examples as special cases.
Solution: This issue happens because we want to provide contextualized embeddings (which, so far, only makes sense for spacy-transformer models), but we are not using the model's tokenizer (i.e. lang.model.tokenizer) to find the position of requested tokens. This could be solved by first tokenizing the raw query to find the position of [ and ] tokens and their enclosed tokens, and then clean the query string and use the model to find the embeddings of the enclosed tokens (of course, this works with the assumption that the user is formatting the sentence correctly; e.g. how[are] you would be tokenized as ['how[are', ']', 'you'], I guess that's a fair assumption to make).
Another option is to drop the support for spacy-transformers entirely and therefore there would be no need for contextualized embeddings, especially if hugginface would be supported in near(!) future. However, personally I don't like this option especially because spacy-transformers provides alignment of embeddings from wordpieces to tokens (although, I think this is not something so special such that we cannot implement it ourselves in huggingface backend).
Anyways, I would be happy to work on a PR for the fix.

Thanks for the issue, @rctatman will get back to you about it soon!
You may find help in the docs and the forum, too 🤗

There's a bigger discussion around this topic and I should admit that I haven't 100% figured this out yet. I came up with the [bank] of the river syntax a while ago because at the time it seemed like a cool way to do it. This was in a time before I realised how different tokenisers might have all sorts of different standards. Especially the BERT stuff can get really tricky here.
For spaCy models I'd certainly agree that the models tokenizer from spaCy would be a better place to start but a larger discussion might need to happen first ... do we like the [bank] of the river-syntax?
Pros:

it's pretty easy to understand and might work for most cases
we can have the same 'api' for dealing with the selection of specific words

Cons:

there have been texts that contain [-characters and this would totally break
string parsing can be messy
how to deal with all these different tokenizers

there have been texts that contain [-characters and this would totally break

Yeah, that's true.

string parsing can be messy

No, since we would use tokenizer and it would be just a one line call. Although, I think this additional step (i.e. first determining whether brackets have been used and are properly formatted, and then finding their position) decreases the performance especially when large number of samples is provided.

how to deal with all these different tokenizers

At least spaCy models come with their own tokenizers (i.e. could be accessed with .tokenizer attribute). For models which don't have it, we can default to whitespace tokenizer (or if we want to go further, we can provide the ability for the user to set a tokenizer method, using say set_tokenizer(callback)).

different languages might not appreciate this syntax

That's also something to consider.
All in all, personally I am not for this feature especially if we decide to provide the ability to get the embeddings for tokens in a sentence (i.e. #92); and also considering the fact that the user usually cannot automatically annotate a large number of samples for contextual emebddings, so it might be used for one or a few samples (so instead give the user all the token embeddings in a sentence and let them decide whatever they want to do with them; that would be equivalent and also provide more freedom for the user).

I do want to offer an easy way for people to select a subset of an utterance, say "[bank] of the river" vs. "money on the [bank]", and that you still get a single embedding. The moment that you need to manually track tokens it's going to get error prone and also "not fun to use". This feature is meant for people who have a small set of data and would like to demo to stakeholders how this tech works (I've actually gotten feedback that this is why some people like this library).
This is more of a "user-interface" argument than a "functionality" argument, but it is something I find important for this library. I'm fine with adding an interface for getting an embedding for each token but that's a "complicated" usecase from where I am standing.

This is more of a "user-interface" argument than a "functionality" argument, but it is something I find important for this library. I'm fine with adding an interface for getting an embedding for each token but that's a "complicated" usecase from where I am standing.

Fair enough. I don't have access to user feedback, so that's why I miss these viewpoints!
Although, I think it's a good idea to provide a temporary fix for this issue (assuming for the moment that the square bracket syntax is not going to change, until a better alternative would be found).

I think an .embed() method as described in https://github.com/RasaHQ/whatlies/issues/92 could offer a more flexible API towards that use-case.

Can this issue now be closed?


Finalise Find Controller

Coverage decreased (-0.6%) to 61.526% when pulling 980d64f7e4dcc41a34f3a0ca3f587e2a75504555 on Refactor into 9e6a4b207a608c42970991e6393bea03b81eddaf on master.

Coverage decreased (-0.4%) to 61.703% when pulling 3c05a9888ace1febe678da33bd3a35d6bfd1a718 on Refactor into 9e6a4b207a608c42970991e6393bea03b81eddaf on master.

Coverage decreased (-0.6%) to 61.501% when pulling 707f22d02c2928c3a0e41ff37cca12b9d116e4f3 on Refactor into 9e6a4b207a608c42970991e6393bea03b81eddaf on master.

Coverage decreased (-1.8%) to 60.338% when pulling 9a1f8b2195b1a515e7e170482ca9af14d0117aec on Refactor into 9e6a4b207a608c42970991e6393bea03b81eddaf on master.

Coverage decreased (-1.07%) to 61.025% when pulling 9a1f8b2195b1a515e7e170482ca9af14d0117aec on Refactor into 9e6a4b207a608c42970991e6393bea03b81eddaf on master.

Coverage increased (+5.4%) to 67.453% when pulling e85826f6dac27addfe7102bc0abaaa100dde1373 on Refactor into 9e6a4b207a608c42970991e6393bea03b81eddaf on master.

Coverage increased (+5.4%) to 67.453% when pulling e85826f6dac27addfe7102bc0abaaa100dde1373 on Refactor into 9e6a4b207a608c42970991e6393bea03b81eddaf on master.

Coverage increased (+5.8%) to 67.86% when pulling 17d7f30fbbb5e528658a4f96651207cc44aa324e on Refactor into 9e6a4b207a608c42970991e6393bea03b81eddaf on master.

Coverage increased (+5.8%) to 67.86% when pulling 17d7f30fbbb5e528658a4f96651207cc44aa324e on Refactor into 9e6a4b207a608c42970991e6393bea03b81eddaf on master.

Coverage increased (+5.8%) to 67.86% when pulling 3d33354684936796d1f8b608e2501f5ac4b3a0c4 on Refactor into 9e6a4b207a608c42970991e6393bea03b81eddaf on master.

Coverage increased (+5.8%) to 67.86% when pulling 5c9205fd464bb0e39b97996e8950ad9f4bd5be43 on Refactor into 9e6a4b207a608c42970991e6393bea03b81eddaf on master.


[TW#28771] Device does not find access point in WIFI_MODE_APSTA mode

Hi,
I have a problem with esp32.
I have to connect a device (device A) to esp32 and at the same time esp32 has to connect to the network. The problem is that when I set the WIFI_MODE_APSTA mode, device A does not find the esp32 access point, but if I set it to WIFI_MODE_AP if it does.
I need device A to connect to the access point and esp32 to connect to the network.
I don't know if it's an incompatibility problem with device A or esp32.

Hi @AlexVilella what's your IDF commit ID? Does the esp32 AP has the same subnet with the network? Do you have the debug log?
Moreover, please help to do following test:

Set esp32 to WIFI_MODE_APSTA
Connects esp32 station to network
esp32 station successfully gets the IP address, then connect the device A to esp32 AP

Hi again,
Thank you for the fast response and sorry due to forgot include this information.

I'm using ESP IDF v3.1.1 release (3b92e85b308578c24f14f57371498303c198c7cb)

On my tests I did a process similar to what you are describing:

Set the ESP32 to WIFI_MODE_APSTA
Connect ESP32 station to network
Then:
I'm able to see the AP from the smartphone (device B) and connect to the AP without problems and with an stable connection
Device A is not able to see the AP
Device C (Common WiFi USB Dongle) is not able to see the AP.

Thanks you in advance.

@AlexVilella is it possible for your do similar test in latest IDF master branch?

Hi again,
I'm downloaded the version 3.1.3 and get the following:

Case 1: If I connect esp32 to the mode in APSTA mode. Device "Device A" does not connect to the access point.

Case 2: If I create an access point on the smartphone, and esp32 connects it to the smartphone, then device "Device A" does connect to the esp32 access point.

Note: Device A is an electrical consumption analyzer (WiBeee Circutor Analyzer single-phase).
Does anyone know why this is happening?
Thanks you in advance.

It's all solved.
The problem was not of the configuration of the esp32, it was of the channel, above channel 10 the Wibeee was not able to find the network.
Thanks


Help!!!

Can't get guest token tonight. Everything works fine until today. The response cookie doesn't contain "gt" anymore.

Should be fixed by recent contribution from @jperry004 #18


Release v0.2.2

Adding documentation!

@JuliaRegistrator register()

Error while trying to register: "Tag with name v0.2.1 already exists and points to a different commit"

@JuliaRegistrator register()

Registration pull request created: JuliaRegistries/General/44619
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.2.2 -m "<description of version>" ccdf2155c877a642069f44292b645be7cd86a729
git push origin v0.2.2


Loading the model with quantized weights , two times corrupts the model

to reproduce
call  the load weights function two times and run the model . you get NaNs.
Does not happen with normal fp16/32 weights

graph.openStore(sdxl_model_path) {
    $0.read("unet", model: unet , codec: [.q6p, .q8p, .jit, .ezm7] )
  }

graph.openStore(sdxl_model_path) {
    $0.read("unet", model: unet , codec: [.q6p, .q8p, .jit, .ezm7] )
  }

what could be the possible problem and solution?
Thanks

Probably because unlike normal weights we allocated on nnc side and just read the blob in, for jit weights, we allocated them on s4nnc side: https://github.com/liuliu/s4nnc/blob/main/nnc/Store.swift#L2053
Workaround would be to create new model when you need to load the weights, but otherwise need to look into why this behavior (possible memory corruption) happens and how to fix them.

Okay thanks

The limited case fixed in https://github.com/liuliu/s4nnc/commit/53f737c5d9b979b7f1ca9c864444ac882709b553
The reason it is limited because if the weight of the same name quantized differently (for example, once in q6p, another in q8p) it will still nan in the future.

Thanks


Why multi-threading not supported in free version? :(

Does it have any example how to implement queries outside the main thread? I really needed to make my queries outside of the main thread, and I can't afford the nativescript-sqlite enterprise version. :(

+1

At this moment that is one of the features to encourage people to actually pay for all the hard work put into this plugin.
Even if your time is only worth say $20 an hour; do you really think that you can get everything this plugin supports working in less than 20 hours on both iOS and Android and have it fully tested.  :grinning:
In addition since I make my money purely from selling plugins and contract work; if I don't sell plugins (or do contract work) my family doesn't eat.    So features in some of my plugins beyond the basics are paid features...


"no response" - how to debug?

Hi,
my device was working perfectly, until some days ago. I get the "no response" message for all connected devices.
It works for some seconds after reboot, but then stops working.
Weblog doesn't give me any infos, also serial monitor not.
So I set Log Level to 2 in serial console.
It works, when I switch a light I see the debug infos.
But after appr. 1 minute, homekit tells me "no response".
No debug message. I still can execute "i" for information and get a lot. But I do not see any failure.
Any hints, what I could do to dig into the failure?
I really wonder, since it just stops working, without reflash or other changes...
Thank you!

Did anything change on your network (are you using a mesh router).  This can include updating router software, moving the router, moving the HomeSpan device, etc.  Also, any changes or updates to your iPhone, any Home Pods, or Apple TV (are you using a Home Hub?).  Does the web log indicate that WiFi was dropping at any point?

Hi,
thanks for answering so quick. I had the same thoughts, did I change anything? I'm on your side, ESP32 did not changed, so something else must be the reason.

Apple TV and iPhone: only normal SW updates, no Beta, no new devices.
Router: no change, maybe new SW (not under my control, vodafone device. I'll check), not replacement
HomeSpan device: After it stopped working, I moved it, also connected to my laptop. No change

This is the web-log (not more):

I still can access serial console and give commands.

I tried it again, now its working for some minutes. I keep you updated.
I hate these kinds of failures.

Will do, thanks for the tip! Closed for now!


fix calendar not showing events with the same name and start date but different calendar url

I fixed the calendar module, which did not show calendar entries from different calendars that share the same name and start date.
My use case: We have each office days documented in each an own calendar. If both "Office" Calendar entries start at the same date just one was shown
Google Calendar (each Office event in an own calendar)

Before

After

Thx for the PR, unfortunately your test is failing. Can you have a look?

I'm not that deep into the code. The better solution would probably be to compare some event ID. But for this use case the change should fix it

please run npm run lint:prettier and commit the changes to make the tests run again

Codecov Report

Merging #3166 (d924c3b) into develop (156db32) will increase coverage by 0.08%.
Report is 1 commits behind head on develop.
The diff coverage is 0.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@             Coverage Diff             @@
##           develop    #3166      +/-   ##
===========================================
+ Coverage    25.51%   25.60%   +0.08%
===========================================
  Files           53       53
  Lines        11501    11501
===========================================
+ Hits          2935     2945      +10
+ Misses        8566     8556      -10

Files Changed
Coverage Δ

modules/default/calendar/calendar.js
0.00% <0.00%> (ø)

... and 2 files with indirect coverage changes

Sorry for the long delay until I commented more. Now I had the time to look at the code myself and I'd rather add a new config option hideDuplicate (which in your case you would set to true), use that as check before calling listContainsEvent and undo your change with the url comparison.
Reason for this: Checking if the url is the same is not really a check since that would mean you add an event from the same url: so why would you add the same url twice to the calendar anyway? If an event is duplicate it should mean that title, startdate are the same. A bonus to add would to also check for the same enddate (if present) becuase that is relevant over mutliple url calendars. I hope I make sense :-)


Update for REES paper

I've done a tiny refinement of code and added an example of Listing instance for Microprogram type class.
More specific:

Missing Functor and Applicative instances for Simulation and Listing
In Main.hs, program function now has generic type Register -> Register -> Microprogram () instead of specific one tied to Simulation
main function now prints program listing prior to simulation

In extended REES paper, I plan to give an account of program function as a generic DSL code and then point out that concrete instances of Microprogram, i.e. Listing and Simulation, enrich this abstract code with a concrete semantics in two different ways.

Thanks! The plan sounds good.
It may be useful to also think of a semantics that could be useful for doing formal verification.


Can you adapt it to azure openai?

Can you adapt to Microsoft's azure openai?

I have an Azure integration, but not in open source version of the bot. You can text me on Telegram (@karfly) if you're interested.

I have an Azure integration, but not in open source version of the bot. You can text me on Telegram (@karfly) if you're interested.

I'm sorry, but I can't send you messages on Telegram. It's great to see that you have a version that supports Azure OpenAI. I'm wondering if you could guide me on how to use it. I can't use ChatGPT because I'm concerned about being banned, and Azure OpenAI seems more convenient. My account is:
https://t.me/afterwork2023


feat: cli tool to export and print platform information

Cli to print out platform information.
ci-env -export [json|export]

The default is JSON format
Close #11

Thank you for your contribution!
But as I mentioned, I have already developed a similar CLI tool ci-info.
I'm sorry about that.

https://github.com/suzuki-shunsuke/go-ci-env/issues/11#issuecomment-2409138436

So I can't accept this pull request.
ci-info doesn't support some features such as -format, so if you have any request, please create issues or pull requests to ci-info.


add LAUNDER as default behaviour for ogr2pg

http://www.gdal.org/drv_pg.html

Looking more closely at docs - LAUNDER is default behaviour with the pg driver, except for the table name.
ogr2pg provides a new layer name option, so this isn't really required


Repo Status

Is this being maintained?
If PRs are made would they be accepted?

Still maintained and PRs would be much appreciated. I haven't had as much time to add anything new, but I'm hoping to at least address the security CVEs next week.


nixos/networkd: add RoutingPolicyRules-related options

Motivation for this change
Mapping the systemd-networkd RoutingPolicyRules in the NixOS networkd module.
Check the RoutingPolicyRule section in the systemd.network for more informations.
Things done

Added the relevant options in the module

Modified the current networkd NixOS test to test all these options.

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

Built on platform(s)

[x] NixOS

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"

[ ] Tested execution of all binary files (usually in ./result/bin/)

[ ] Determined the impact on package closure size (by running nix path-info -S before and after)

[x] Ensured that relevant documentation is up to date

[x] Fits CONTRIBUTING.md.

cc @flokli @fpletz @andir

@GrahamcOfBorg test systemd-networkd

I'm puzzled by the ARM test error: https://logs.nix.ci/?key=nixos/nixpkgs.81405&attempt_id=adb7ba1f-8fb3-418c-af5a-68f0a2202fad
I do not have access to an interactive session on a aarch64 machine, it makes debugging this rather tricky :(
Looks like it's IPv6 related right?

@GrahamcOfBorg test systemd-networkd

Aha! Found the root cause of the ARM failure: we're missing the CONFIG_IP_MULTIPLE_TABLES kernel config flag.

@GrahamcOfBorg test systemd-networkd

The aarch test fails because of #61602. I think it's safe to ignore it for now.

Rebased on top of the landed aarch64 fix in master.
@GrahamcOfBorg test systemd-networkd

Updated. I also removed some other 64bit integer occurrences in the process.
Naive question: Nix 2.2 was release more than a year ago. Any reason to keep supporting Nix < 2.2?
@GrahamcOfBorg test systemd-networkd

Naive question: Nix 2.2 was released more than a year ago. Any reason to keep supporting Nix < 2.2?

Not sure, what do others think of it?

On 03:22 04.03.20, Maximilian Bosch wrote:

Naive question: Nix 2.2 was released more than a year ago. Any reason to keep supporting Nix < 2.2?

Not sure, what do others think of it?

IIRC we had that topic on IRC a few times. The conclusion was something
like we should be ~2y backwards compat. I am not sure how much of a
policy that is and who said it…


ISPN-6946 Redundand indexing during topology changes in the AffinityI…

…ndexManager
https://issues.jboss.org/browse/ISPN-6946

Looks good.

@anistor updated

Pulling...

Integrated. Thanks @gustavonalle !


Update build.yml

This run was failing due to invalid yaml file https://github.com/werewolves-online/werewolves/actions/runs/2413092429
hoping this change will correct it

seems like it's working, yaaay


Feat 51 name first level of list

addresses #51

@laura-summerauer @ThomasKnecht FYI https://github.com/spectral-cockpit/opusreader2/pull/83/commits/b3b503740339c37911263c864f739d3aade08872 reduces the naming of the "list_opusreader2" elements to the very basic. This means we just use the base file name from the data source name (DSN). Like this we make it easy for any user to filter the read_opus() output simply by file name. If multiple files of the same base name test_file.0, i.e. those OPUS files lay in different subdirectories, are read, then `data["test_file.0"] is the easiest way to select all those files.


Welcome

Summary
A clear and concise description of what the bug is, and what you expected to happen.
How to reproduce

Go to '...'
Click on '...'
Scroll down to '...'
See error

Please include screenshots.
Additional context
Add any other context about the problem here.

#46

Duplicate of #2


cloudformation: first instance should be node1

Currently, the first instance is created as node0.

Can someone explain better what is this task?
(I see it's from 2021 and "Large")

Semantic change only - the first node created by the CF stuck, named Node0 and it should be Node1
(the "Large" is a mistake)
But... for now, we're not going to move on with CF tasks unless we'll have a customer request


[Archlinux] X Error of failed request:  BadMatch

Hi I tried to run example in README on Archlinux with Python 3.5
Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul  2 2016, 17:53:06)
Type "copyright", "credits" or "license" for more information.

IPython 5.1.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import gym
   ...: import universe  # register the universe environments
   ...:
   ...: env = gym.make('flashgames.DuskDrive-v0')
   ...: env.configure(remotes=1)  # automatically creates a local docker container
   ...: observation_n = env.reset()
   ...:
   ...: while True:
   ...:   action_n = [[('KeyEvent', 'ArrowUp', True)] for ob in observation_n]  # your agent here
   ...:   observation_n, reward_n, done_n, info = env.step(action_n)
   ...:   env.render()
   ...:

but it's show below error
universe-veyUFH-0 | [2017-01-05 17:30:57,979] [INFO:universe.rewarder.remote] Client connecting: peer=tcp4:<IP_ADDRESS>:39616 observer=False
universe-veyUFH-0 | [2017-01-05 17:30:57,979] [INFO:universe.rewarder.remote] WebSocket connection established
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  42 (X_SetInputFocus)
  Serial number of failed request:  188
  Current serial number in output stream:  190

Versions
Linux lenbox 4.8.13-1-ARCH #1 SMP PREEMPT Fri Dec 9 07:24:34 CET 2016 x86_64 GNU/Linux
Python 3.5.2 :: Continuum Analytics, Inc.
Name: gym
Version: 0.7.0
Summary: The OpenAI Gym: A toolkit for developing and comparing your reinforcement learning agents.
Home-page: https://github.com/openai/gym
Author: OpenAI
Author-email<EMAIL_ADDRESS>License: UNKNOWN
Location: /home/ox66/.anaconda3/envs/openai/lib/python3.5/site-packages
Requires: numpy, six, pyglet, requests
---
Name: numpy
Version: 1.11.2
Summary: NumPy: array processing for numbers, strings, records, and objects.
Home-page: http://www.numpy.org
Author: NumPy Developers
Author-email<EMAIL_ADDRESS>License: BSD
Location: /home/ox66/.anaconda3/envs/openai/lib/python3.5/site-packages
Requires

Xorg version: xorg-server 1.18.4-1
Any suggestions

Try it under regular (not Iron) Python, with the program in a file instead of typing interactively. Iron Python does something strange with X11 and threads.

@tlbtlbtlb Thanks, I just tried without regular iPython, and also get same error,  (I'm using Xmonad as WM, does that matter?)

Does your system run OpenGL? If you run glxgears, do you see gears spinning on screen? If not, that's the problem.
If you drop the call to env.render(), you can watch the environment run by pointing your browser to http://localhost:15900 instead.

seems it's a issue of Xmonad, I switch to Openbox and it works for me, Thanks @tlbtlbtlb


guile: do not strip on darwin

Description of changes
Same failure as in https://github.com/termux/termux-packages/issues/14806.
Same fix as in https://github.com/termux/termux-packages/pull/14830.
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

@ofborg build gash


Replace the use of std::list with std::vector. This avoids a lof of n…

…ew/delete.
The number of elements that are moved around is small and significantly less than
the gain by more efficient memory management.
@vekterli PR This brought down execution time from 400s to 120s.

@vekterli PTAL

@vekterli PTAL

@vekterli PTAL I found loads of other inefficient code too.

@vekterli PTAL I found loads of other inefficient code too.


How can I use flan-t5-base?

I tried to follow the logic from here but I'm not able to load and use the google/flan-t5-base
I'll appreciate your help with this.
Thanks.

Hi we're working on Flan-T5, there are changes needed in weight loading and model definition to enabled flan-T5's gated activation. We'll ping this thread once it's done

Hi @symphonylyh ,
Any idea on when the flan t5 models would be supported?

Hi @shainisan @nish996 , more general T5 and Flan-T5 support has been done and scheduled for TRT-LLM's 0.6.0 monthly release soon. Please stay tuned.

@shainisan @nish996 , actually it has been released to dev branch (i.e., main) earlier! please check: https://github.com/NVIDIA/TensorRT-LLM/discussions/424.

Amazing! Thank you!

@symphonylyh can you please explain what should be done in order to use the new feature?
Should I change the branch to main and rebuild the docker? Or something else?
Thanks!

@symphonylyh can you please explain what should be done in order to use the new feature? Should I change the branch to main and rebuild the docker? Or something else? Thanks!

Generally speaking, the most stable way to use a new version (i.e., new commits pushed to the dev main branch OR a major release with release/x.x.x) is to redo the steps in the docs/installation.md: (1) rebuild docker images (2) inside new docker container, rebuild TRT-LLM c++ source code and install python wheel.
For major release, it's likely the docker image has to be rebuilt (which doesn't take very long) because we may have updated the base environment and submodules. For most update commits to the dev main branch, you can usually use the same docker you have, but need to re-run the cpp build & wheel install commands. I would recommend you try (2) first; if it doesn't work, do (1) & (2).


first set of patches

Hi,

switch from 'master' to the latest release of OpenDDS
and using the default for ace/tao of the configure script and not longer 'latest'.

All other changes are rather minor.
TODO:

with to latest Ubuntu
Move the deb file from the git repo the the artifacts of Github

PyOpenDDS depends on this being built with master, so it can't be changed by itself.

PyOpenDDS depends on this being built with master, so it can't be changed by itself.

I'm not sure if I follow.  What's the link between (a) attempting to create a Debian package of OpenDDS and (b) a Python package?
As far as I know all deb packages are releases, so with a version.  But I can check if there is a versioned an a 'latest' version possible.


Feature request/question: how to exclude virtual host

Hi,
I have three virtual hosts:

example.com:443
example.com:1443
example.com:2443.

If I set MDomain example.com it will use the MD certificate for all three subdomains.
Is there a way to exclude one of the virtual hosts somehow?

No, there is not. If these hosts use SSL, they will get the certificate from mod_md, if it has one.

I see. Thanks for the clarification.


xLambdaCheckFor2k8 fails to create as Lambda function executes with errors

The ransomware stack is failing deployment due to the custom resource  xLambdaCheckFor2k8 failing to create. Per Lambda, the function is failing. This causes the whole solution to fail to deploy.
xLambdaCheckFor2k8:
Type: AWS::CloudFormation::CustomResource
Properties:
ServiceToken: !GetAtt rLambdaCheckFor2k8.Arn

We are having trouble replicating this issue, if you manually run the Lambda function, LambdaCheckFor2k8, what is the error that you see when you use the sample test event "AWS Cloudformation Create Request" and in what region is the function located in?

I created a function with the contents of check_for_outdated_os.py, below is the console output:
START RequestId: d4288a4e-12b8-4047-9d0e-4cb73f40c075 Version: $LATEST
i-0b2058aaxxxxxxxxxx Ubuntu
i-03d325aaxxxxxxxxxx  Ubuntu
i-09c168aaxxxxxxxxxx  Ubuntu
i-0cf14aaxxxxxxxxxx  Ubuntu
i-0e31b9aaxxxxxxxxxx  Ubuntu
i-0eb3eaaxxxxxxxxxx Ubuntu
i-01d1aaxxxxxxxxxx  Ubuntu
i-048aaaxxxxxxxxxx  Ubuntu
i-04b97aaxxxxxxxxxx Ubuntu
[WARNING]	2020-09-21T17:19:34.405Z	d4288a4e-12b8-4047-aaxxxxxxxxxx 	There are 9 instances that might be running Windows Server 2008.            Consider upgrading them as soon as possible to mitigate Ransomware threats
[WARNING]	2020-09-21T17:19:34.406Z	d4288a4e-12b8-4047-9d0e-aaxxxxxxxxxx 	Instance IDs of the 2008 systems are ['i-0b2058aaxxxxxxxxxx ', 'i-03d325daaxxxxxxxxxx ', 'i-09c1684caaxxxxxxxxxx ', 'i-0cf1aaxxxxxxxxxx ', 'i-0e31b974aaxxxxxxxxxx ', 'i-0eb3eaaaxxxxxxxxxx ', 'i-01d16aaxxxxxxxxxx ', 'i-048aaaaxxxxxxxxxx ', 'i-04aaxxxxxxxxxx ']
[ERROR] TypeError: can only concatenate str (not "int") to str
Traceback (most recent call last):
  File "/var/task/lambda_function.py", line 105, in lambda_handler
    string = "There are " + COUNT_OF_2008_SYSTEMS +" instances that might be running Windows Server 2008.\END RequestId: d4288a4e-12b8-4047-9d0e-aaxxxxxxxxxx
REPORT RequestId: d4288a4e-12b8-4047-9d0e-aaxxxxxxxxxx 	Duration: 13309.29 ms	Billed Duration: 13400 ms	Memory Size: 128 MB	Max Memory Used: 87 MB	Init Duration: 427.91 ms

It's a TypeError, seems the variable with the number of instances is not being cast as a string, but instead an int.
Also, the instances identified as possibly running 2008 are actually Ubuntu instances.
I tested in us-east-1

Thank you for the update, we are taking a look now.

We have removed the check from the template while we work to address the problem in the functions code.

The issue was addressed in a patch to the module, thank you for the issue report!


fix: increase resilience in case of broken repositories

Closes #976
📑 Description
While fixing #976, I also came across some other use cases that wouldn't work as soon as at least one repository is not available:

glasskube describe
glasskube install and installation via UI (because of dependency manager)
package reconciliation

I hope I found all cases.
✅ Checks

[ ] My code requires changes to the documentation
[ ] I have updated the documentation as required

ℹ Additional Information

But wouldn't the caller then always have to first check for the error type and then do something like partialErr.IsCompleteFailure()? I think in some way, the caller will always have to do some logic about handling it.

Hmm, yes and no… the metaclient could use different error types for partial and complete failures. Thus, something like this might be possible:
import repoerror "github.com/........."

if partial := (&repoerror.PartialError{}); errors.As(err, &partial) {
	// ...
} else {
	// assume non-partial
}

Alternatively, we could go the apierrors route with something like this:
import repoerror "github.com/........."

if err := metaClient.GetRepoForPackage("..."); repoerror.IsPartial(err) {
	// ...
}

It is true that the caller still has to do the check but the underlying logic would be more centralized.


[Bug Report]:

Steps to reproduce
I just go into the folder and run: yarn dev, if I run it with yarn star: dev it works without any problem
Reproduce link
https://gitlab.com/blaicer/farmfe-bcrypt.git
What is actually happening?
When I run the project with farmfe it doesn't work and I get the following error:
`[ Farmup ] Build completed in 465ms ⚡FULL EXTREME! Resources emitted to ./dist.
[ Farmup:index ] node:internal/modules/cjs/loader:1145
throw err;
^
Error: Cannot find module 'file:///home/jorge/.vscode/extensions/wallabyjs.console-ninja-1.0.360/out/buildHook/index.js.farm_dynamic_import_virtual_module'
Require stack:

/home/jorge/proyectos/concrefutha/backend/dist/index.js_eb11.js
/home/jorge/proyectos/concrefutha/backend/dist/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1142:15)
at Module._load (node:internal/modules/cjs/loader:983:27)
at Module.require (node:internal/modules/cjs/loader:1230:19)
at require (node:internal/modules/helpers:179:18)
at Object. (/home/jorge/proyectos/concrefutha/backend/dist/index.js_eb11.js:1:158)
at Module._compile (node:internal/modules/cjs/loader:1368:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1426:10)
at Module.load (node:internal/modules/cjs/loader:1205:32)
at Module._load (node:internal/modules/cjs/loader:1021:12)
at Module.require (node:internal/modules/cjs/loader:1230:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/jorge/proyectos/concrefutha/backend/dist/index.js_eb11.js',
'/home/jorge/proyectos/concrefutha/backend/dist/index.js'
]
}

Node.js v21.7.3`
I get an error with an extension called console-ninja, I don't know if it's causing a conflict. This is the extension: https://console-ninja.com/, it works for VSCode
System Info
System:
    OS: Linux 5.15 Linux Mint 21.3 (Virginia)
    CPU: (4) x64 Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz
    Memory: 1.93 GB / 7.71 GB
    Container: Yes
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 21.7.3 - ~/.nvm/versions/node/v21.7.3/bin/node
    Yarn: 4.5.0 - ~/.nvm/versions/node/v21.7.3/bin/yarn
    npm: 10.8.2 - ~/.nvm/versions/node/v21.7.3/bin/npm
    pnpm: 9.5.0 - ~/.local/share/pnpm/pnpm
    bun: 1.0.30 - ~/.bun/bin/bun
  Browsers:
    Brave Browser: <IP_ADDRESS>
    Chrome: 129.0.6668.89

I'll take a look

There are ways to solve it