Feature Request: Add API Integration and File Processing with Error Handling

Feature Request: Add API Integration and File Processing with Error Handling
Description
This feature adds API integration for text processing along with robust error handling for file I/O and environment variable management. The primary goal is to read content from a file, make an API call using that content, parse the response, and save the processed result to a new file. Additionally, the feature ensures that the program exits gracefully with appropriate error messages and exit codes when encountering errors.
Feature Details

Environment Variables:

The program requires the following environment variables to be set:

API_KEY: The API key for authentication.
API_URL: The URL of the API endpoint.

Proper error handling is implemented to ensure that the program throws an exception if these environment variables are missing.

File Input and Output:

The program reads content from a user-provided file.
After making the API call, the processed content is saved to a new file with a modified filename.
If the file cannot be opened or saved, the program throws an exception with an appropriate error message.

API Call:

The API call is made using CURL with a JSON payload.
The request includes:

model: Specified in the environment or default model.
messages: Text content extracted from the file, passed as a user prompt to the API.

Response handling:

The response is parsed for the processed text, and errors from the API are handled gracefully.

If the CURL request fails, the program throws an exception, and resources are cleaned up properly.

Error Handling and Exit Codes:

Environment Variable Checks: Ensures both API_KEY and API_URL are provided in the environment. If missing, an exception is thrown.
File Handling Errors: The program throws exceptions if a file cannot be opened, read, or written to.
API Call Failures: In the case of API call errors or an invalid API response format, the program handles the exceptions and prints error messages to stderr.
Graceful Exits: The program exits with appropriate error codes and messages:

0: Success.
1: Failure due to missing environment variables, file handling issues, or API errors.

Example Flow

The program reads content from a file (e.g., input.txt).
It formats the content into a prompt and sends it to the API.
The API processes the text and returns a response.
The processed text is saved to a new file (e.g., input.txt_modified).
If any error occurs (e.g., missing API key, file not found, API error), the program prints an error message and exits with a non-zero exit code.

Acceptance Criteria

[x] The program properly checks and handles missing environment variables.
[x] The program reads content from a file and formats it correctly for the API.
[x] The API call is made successfully, and the response is parsed for the relevant data.
[x] The program saves the processed content to a new file.
[x] All errors are handled appropriately, with descriptive messages and proper exit codes.

Priority

Medium

Estimated Time

3-4 hours

Closed By https://github.com/Fahad-Ali-Khan-ca/DPS909_Release_0.1/commit/ff60d81d6a07d85a1e20cba2c617772272195aac


Raspberry Pi Shutting Off during Boot Up Phase

Hello! I just flashed my SD Card with RaspiBlitz and when I boot up, I always get a last message
i2c /dev entries driver
and then the raspberry pi turns off by itself.
Have not been able to fix it so far.
Can anyone help?

This error is a nasty one .. see this on-going issue:
https://github.com/rootzoll/raspiblitz/issues/1940
I am closing this one as a duplicate.


UnitAnimations uses up common class names

The following reproduces the issue:
package Issue1

public enum Target
    FRIENDLY
    ENEMY
    SELF

package Issue2
import UnitAnimations
import Issue1

public let t = Target.FRIENDLY

This simple example gives the error message:
Reference to variable Target is ambiguous. Alternatives are:
 * class Target defined in line 14242 (C:\Projects\Archflame\_build\dependencies\wurstStdlib2\wurst\_wurst\assets\UnitAnimations.wurst)
 * enum Target defined in line 3 (C:\Projects\Archflame\wurst\Issue1.wurst)

First of all, I think that this should be fixed on the compiler level. That is, a nested class (e.g. UnitAnimations.Target) should not be considered when trying to instantiate a top-level class (e.g. Target).
In lieu of that, I think the UnitAnimations package should avoid using common class names such as Target or Watcher (there are probably more). Maybe prefix all the UnitAnimations classes with something such as UA.
I really like the new UnitAnimations package. It is so nice to do without raw integer animation indices. Thanks again for the quick resolution with the previous issue.

Sounds reasonably
@Cokemonkey11 ?

I agree the compiler should be adjusted.
I think the problem is somewhat mitigated/pushed elsewhere by removing AnimationNames from stdlib
// cc @peq

Linking this issue with #280 (for my own reference).

I don#t think a breaking change makes much sense now.
Now that the package isn't auto imported it also only causes problems when used.
You can make a compiler ticket for the nested name resolution, though it might be intended.


Support --area=planet in shortbread schema

Fix #417 by mapping --area=planet to download it's input from the latest AWS open data registry file.

Cool, thanks @msbarry!


Upgrade black to 24.* and introduce new formatting

📚 Documentation preview 📚: https://scicode-widgets--46.org.readthedocs.build/en/46/

pytest-selenium==4.0.1 is not compatible with pytest>=8.0.0. pytest-selenium==4.1.0 should be compatible according to release info, but is not downloaded. Need to check why. Now the test actually fail because of a logical error that I need to debug locally

tests-notebook-7 fail because of https://github.com/osscar-org/scicode-widgets/issues/49, will continue without it


chore(config): Add 'assets_path' for Filament published assets

[x] Changes have been thoroughly tested to not break existing functionality.
[x] New functionality has been documented or existing documentation has been updated to reflect changes.
[x] Visual changes are explained in the PR description using a screenshot/recording of before and after.

continuing from #8415 #8440

Thanks


UniqueValidator misleading error message for multiple targetAttribute's

When UniqueValidator is setup like this:
 // a1 and a2 need to be unique together, and they both will receive error message
 [['a1', 'a2'], 'unique', 'targetAttribute' => ['a1', 'a2']]

and the pair of fields fails unique check the validator produces two separate error messages that are completely wrong and misleading:
a1 "123" has already been taken.
a2 "456" has already been taken.

The actual error messages should have been along the lines:
The combination ("123", "456") of (a1, a2) has already been taken.
The combination ("123", "456") of (a1, a2) has already been taken.

| Yii version      |  2.0.8-dev
| PHP version      |  7.0.1
| Operating system |  Windows

Thank you for the report. Would you like to submit a PR?

@SilverFire

Would you like to submit a PR?

Here is one: https://github.com/yiisoft/yii2/pull/11323. Code is fixed but since a new error message was introduced it will need translation to many languages which I cannot do.

it bad idea, your code execute 2 equals query, for generate two errors

it bad idea, your code execute 2 equals query, for generate two errors

After the fix you will use the unique validator only on a single field (out of all the fields constituting the combo) - the field you want the error message to show on. For example:
 // a1 and a2 need to be unique together, but only a1 will receive error message
 ['a1', 'unique', 'targetAttribute' => ['a1', 'a2']]

This way you get single query and single error message.

I'm not sure if this has found it's way into the dev branch yet, but I have just rolled back to 2.0.8 due to an introduced bug in 2.0.9-dev.  It seems similar to what you are discussing here.  The issue i had was for this configuration:
 // a1 and a2 need to be unique together, and they both will receive error message
 [['a1', 'a2'], 'unique', 'targetAttribute' => ['a1', 'a2']]

The behavior was the error was only showing under a2, not both a1 and a2.
Likewise, with this configuration
 [['a2'], 'unique', 'targetAttribute' => ['a1', 'a2']]
The error message was still displayed under a1.

@enigmatix
What's discussed here has not been merged into any Yii2 branch yet, the bug you found is different and you should report it separately. Once changes in here are merged, the configuration:
 // a1 and a2 need to be unique together, and they both will receive error message
 [['a1', 'a2'], 'unique', 'targetAttribute' => ['a1', 'a2']]

is still supposed to produce two error messages (for a1 and for a2) as before.

Rolling back to 2.0.8 returned expected behavior.

@enigmatix Uniquevalidator has not been touched since 2.0.8, could you re-verify the issue and report it separately if it still exists?

I also noticed  message attribute will be ignored if you set multiple target attributes:
['a1', 'unique', 'targetAttribute' => ['a1', 'a2'], 'message' => 'Custom message']
The message that appeared was: The combination ... has already been taken. Did anyone experience this issue? Is it related to this one?

I also noticed  message  attribute will be ignored if you set multiple target attributes:
['a1', 'unique', 'targetAttribute' => ['a1', 'a2'], 'message' => 'Custom message']

Since Yii2 2.0.9 when you set multiple target attributes comboNotUnique is used to customize error message instead of message.


Center mode does not work with auto slides

Swiper Version: 6.5.4
Platform/Target and Browser Versions: macOS Catalina 10.15.7, CHROME version 89.

What You Did
I tried to create a center mode slider where the active slide should appear wider than the other slides. but it turns out swiper.js can't maintain centered slides while sliding in auto slides.
View it here at codesandbox: https://l0cmj.csb.app/
Expected Behavior
The expected behavior is that the active slide's centered red line should align with the the centered red line in the bottom:

Actual Behavior
In the above codesandbox example the active slide's centered red line does not align with the centered red line in the bottom

It won't work because you are changing width of the slide on the go, it just can't work like that. Such behavior is unsupported, try using Coverflow effect where you can control slides transforms and scaling instead


Added md file, photo, and updated README link

Good, merged via https://github.com/Cornell-CS5356-Fall2015/cs5356/commit/897391b0dd1b88536cdb36faeb6bb546a3cdd2bc.


Making py chip-device-ctrl discoverable over DNS-SD as a commissioner

Problem
For a Matter Test event, we need to run the python chip-device-ctrl tool on a raspi and test the tv-casting-app against it. For this the tool needs to be discoverable over DNS-SD as a commissioner (It already accepts UDC requests and has the connect command to do onnetwork commissioning)
Change overview
With this change, the python chip-device-ctrl tool will start advertising itself as a commissioner on start-up behind a feature flag: CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONER_DISCOVERY.
TBD: Code to set the flag CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONER_DISCOVERY to 1 for just the python chip-device-ctrl tool will follow separately.
Testing
Tested with the CHIP_DEVICE_CONFIG_ENABLE_COMMISSIONER_DISCOVERY set to 1. Used the minimal-mdns client to ensure the python chip-device-ctrl tool is discoverable as a commissioner device

I know we're trying to get things done for test events.  But it would be really nice if we addressed some other closely related, underlying issues:
https://github.com/project-chip/connectedhomeip/issues/6141
https://github.com/project-chip/connectedhomeip/issues/7911
https://github.com/project-chip/connectedhomeip/issues/8438
https://github.com/project-chip/connectedhomeip/issues/8722
If we're touching this code, can't some of the above issues get some attention too?

https://github.com/project-chip/connectedhomeip/pull/9348 made some significant simplifications to how a commissioner can be advertised. So, the old diff in this PR is moot. Now this PR is just a 4 line change. See https://github.com/project-chip/connectedhomeip/pull/9603/commits/2af778ceed8515c53092c903d5a41fe100c17e57

I know we're trying to get things done for test events. But it would be really nice if we addressed some other closely related, underlying issues:
#6141
#7911
#8438
#8722
If we're touching this code, can't some of the above issues get some attention too?

Some of those issues are duplicates that were never actually assigned. Ex. multiple operational adverts are supported and have been tested. Please see TestAdvertiser.cpp and TestPlatform.cpp.


Error: Could not find or load main class org.goobs.naturalli.Client

On running: ./run Evaluate src/org/goobs/truth/conf/conceptnet.conf
I get the following error:
Error: Could not find or load main class org.goobs.naturalli.Client
I have installed java-8-openjdk, scala  2.11.0 and using the latest CoreNLP project.
Not sure if relevant but on importing naturalli_schema/data/index into postgresql naturalli database, relation edge_type wasn't formed (details marked in previous issue).
Can you please help here.
On running: make java_test
I get the following error:
make -C src naturalli_client.jar
make[1]: Entering directory /code/EMNLP_naturalli/NaturalLI-master/src' Compiling (/usr/lib/jvm/java-8-openjdk-amd64/bin/javac)... ./org/goobs/naturalli/Props.java:3: error: package com.typesafe.config does not exist import com.typesafe.config.Config;                           ^ ./org/goobs/naturalli/Props.java:4: error: package com.typesafe.config does not exist import com.typesafe.config.ConfigFactory;                           ^ ./org/goobs/naturalli/Props.java:5: error: package com.typesafe.config does not exist import com.typesafe.config.ConfigValue;                           ^ ./org/goobs/naturalli/Props.java:6: error: cannot find symbol import edu.stanford.nlp.util.Execution;                             ^   symbol:   class Execution   location: package edu.stanford.nlp.util ./org/goobs/naturalli/Props.java:7: error: package edu.stanford.nlp.util.Execution does not exist import edu.stanford.nlp.util.Execution.Option;                                       ^ ./org/goobs/naturalli/Props.java:38: error: cannot find symbol   @Option(name="psql.host", gloss="The hostname for the PSQL server")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:40: error: cannot find symbol   @Option(name="psql.port", gloss="The port at which postgres is running")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:42: error: cannot find symbol   @Option(name="psql.db", gloss="The database name")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:44: error: cannot find symbol   @Option(name="psql.username", gloss="The username for the postgres session")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:46: error: cannot find symbol   @Option(name="psql.password", gloss="The password for the postgres session")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:49: error: cannot find symbol   @Option(name="natlog.indexer.lazy", gloss="If true, do word indexing lazily rather than reading the indexer at once")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:51: error: cannot find symbol   @Option(name="natlog.indexer.replner", gloss="If true, replace unknown tokens with the NER tag they represent")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:54: error: cannot find symbol   @Option(name="server.main.host", gloss="The hostname for the inference server")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:56: error: cannot find symbol   @Option(name="server.main.port", gloss="The hostname for the inference server")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:58: error: cannot find symbol   @Option(name="server.main.threads", gloss="The number of threads to run training on. This is primarily determined by the server capacity")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:60: error: cannot find symbol   @Option(name="server.backup.do", gloss="The hostname for the inference server")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:62: error: cannot find symbol   @Option(name="server.backup.discount", gloss="The hostname for the inference server")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:64: error: cannot find symbol   @Option(name="server.backup.host", gloss="The hostname for the inference server")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:66: error: cannot find symbol   @Option(name="server.backup.port", gloss="The hostname for the inference server")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:68: error: cannot find symbol   @Option(name="server.backup.threads", gloss="The number of threads to run training on. This is primarily determined by the server capacity")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:71: error: cannot find symbol   @Option(name="search.timeout", gloss="The maximum number of ticks to run for on the server")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:73: error: cannot find symbol   @Option(name="search.allowlookup", gloss="Allow the search to return exact matches")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:76: error: cannot find symbol   @Option(name="natlog.ollie.jar", gloss="The path to the Ollie *.jar file")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:78: error: cannot find symbol   @Option(name="natlog.ollie.port", gloss="The port to start an Ollie server on")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:80: error: cannot find symbol   @Option(name="natlog.ollie.malt.path", gloss="The path to the Malt parser serialized model")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:83: error: cannot find symbol   @Option(name="data.fracas.path", gloss="The path to the FraCaS test suite")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:85: error: cannot find symbol   @Option(name="data.ave.path", gloss="The paths to the AVE answer validation examples by year")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:91: error: cannot find symbol   @Option(name="data.mturk.train", gloss="The path to the MTurk annotated ReVerb training examples")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:93: error: cannot find symbol   @Option(name="data.mturk.test", gloss="The path to the MTurk annotated Reverb test examples")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:95: error: cannot find symbol   @Option(name="data.conceptnet.path", gloss="The path to the ConceptNet positive examples")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:98: error: cannot find symbol   @Option(name="learn.model.dir", gloss="The directory to look for models in")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:100: error: cannot find symbol   @Option(name="learn.model.start", gloss="The start iteration to resume training from. This will be floored to the nearest 1k")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:102: error: cannot find symbol   @Option(name="learn.train", gloss="The corpus to use for training")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:104: error: cannot find symbol   @Option(name="learn.test", gloss="The corpus to use for testing")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:106: error: cannot find symbol   @Option(name="learn.prCurve", gloss="The corpus to use for testing")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:108: error: cannot find symbol   @Option(name="learn.online.iterations", gloss="The number of iterations to run learning for")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:110: error: cannot find symbol   @Option(name="learn.online.sgd.nu", gloss="The regularization $nu$ for SGD")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:112: error: cannot find symbol   @Option(name="learn.offline.passes", gloss="The number of passes through the data to make")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:114: error: cannot find symbol   @Option(name="learn.offline.sigma", gloss="The regularization to apply for the logistic classifier (large is generally good)")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:116: error: cannot find symbol   @Option(name="learn.initialization", gloss="The number of passes through the data to make")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:119: error: cannot find symbol   @Option(name="evaluate.allowunk", gloss="Allow unknown as a state we are evaluating against")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:121: error: cannot find symbol   @Option(name="evaluate.model", gloss="The model to load when evaluating")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:124: error: cannot find symbol   @Option(name="script.wordnet.path", gloss="The path to the saved wordnet ontology (see sim.jar)")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:126: error: cannot find symbol   @Option(name="script.distsim.cos", gloss="The path to the cosine similarity nearest neighbors")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:129: error: cannot find symbol   @Option(name="script.reverb.raw.dir", gloss="The raw directory where Reverb outputs are stored")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:131: error: cannot find symbol   @Option(name="script.reverb.raw.gzip", gloss="If true, the input files are in gzip format")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:133: error: cannot find symbol   @Option(name="script.reverb.head.do", gloss="If true, compute the head word for each fact added")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:136: error: cannot find symbol   @Option(name="script.freebase.raw.path", gloss="The location of the raw Freebase dump")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:138: error: cannot find symbol   @Option(name="script.freebase.path", gloss="The location of the processed Freebase dump")    ^   symbol:   class Option   location: class Props ./org/goobs/naturalli/Props.java:141: error: cannot find symbol   @Option(name="demo.do", gloss="True if we are running from the web demo")    ^   symbol:   class Option   location: class Props /code/EMNLP_naturalli/NaturalLI-master/lib/corenlp-scala.jar(edu/stanford/nlp/Sentence.class): warning: Cannot find annotation method 'bytes()' in type 'ScalaSignature': class file for scala.reflect.ScalaSignature not found ./edu/stanford/nlp/natlog/GaborMono.java:320: error: cannot find symbol         OUTER: for (int start = 0; start < Math.min(2, span.size() - 1); ++start) {                                                            ^   symbol:   method size()   location: variable span of type Span ./edu/stanford/nlp/natlog/GaborMono.java:321: error: cannot find symbol           for (int len = span.size() - start - 1; len > 0; --len) {                              ^   symbol:   method size()   location: variable span of type Span ./edu/stanford/nlp/natlog/GaborMono.java:329: error: for-each not applicable to expression type         for (int index : span) {                          ^   required: array or java.lang.Iterable   found:    Span ./org/goobs/naturalli/Props.java:59: error: cannot find symbol   public static int SERVER_MAIN_THREADS = Execution.threads;                                           ^   symbol:   variable Execution   location: class Props ./org/goobs/naturalli/Props.java:69: error: cannot find symbol   public static int SERVER_BACKUP_THREADS = Execution.threads;                                             ^   symbol:   variable Execution   location: class Props ./org/goobs/naturalli/Props.java:151: error: cannot find symbol     Execution.optionClasses = new Class<?>[stackTrace.length];     ^   symbol:   variable Execution   location: class Props ./org/goobs/naturalli/Props.java:154: error: cannot find symbol         Execution.optionClasses[i] = Class.forName(stackTrace[i].getClassName());         ^   symbol:   variable Execution   location: class Props ./org/goobs/naturalli/Props.java:155: error: cannot find symbol       } catch (ClassNotFoundException e) { logger.fatal(e); }                                                  ^   symbol:   method fatal(ClassNotFoundException)   location: variable logger of type RedwoodChannels ./org/goobs/naturalli/Props.java:160: error: cannot find symbol       if (!new File(args[0]).canRead()) logger.fatal("Cannot read typesafe-config file: " + args[0]);                                               ^   symbol:   method fatal(String)   location: variable logger of type RedwoodChannels ./org/goobs/naturalli/Props.java:161: error: cannot find symbol       Config config = null;       ^   symbol:   class Config   location: class Props ./org/goobs/naturalli/Props.java:163: error: cannot find symbol         config = ConfigFactory.parseFile(new File(args[0]).getCanonicalFile()).resolve();                  ^   symbol:   variable ConfigFactory   location: class Props ./org/goobs/naturalli/Props.java:169: error: cannot find symbol       for (Map.Entry<String, ConfigValue> entry : config.entrySet()) {                              ^   symbol:   class ConfigValue   location: class Props ./org/goobs/naturalli/Props.java:175: error: cannot find symbol       Execution.exec(new Runnable() { @Override public void run() {       ^   symbol:   variable Execution   location: class Props ./org/goobs/naturalli/Props.java:182: error: cannot find symbol       Execution.exec(new Runnable() { @Override public void run() {       ^   symbol:   variable Execution   location: class Props ./org/goobs/naturalli/Quantifier.java:136: error: cannot access Seq     this.surfaceForm = new Sentence(this.literalSurfaceForm).lemma();                        ^   class file for scala.collection.Seq not found 65 errors 1 warning make[1]: *** [naturalli_client.jar] Error 1 make[1]: Leaving directory /code/EMNLP_naturalli/NaturalLI-master/src'
make: *** [src/naturalli_client.jar] Error 2

Did you configure with --with-scala and --with-java? It looks like you're not finding the scala standard library, which is picked up from the --with-scala option (set to SCALA_HOME).

Thanks Gabor!
On fixing the SCALA_HOME I got this error:

BUILD FAILED
/code/EMNLP_naturalli/NaturalLI-master/build.xml:40: /code/EMNLP_naturalli/NaturalLI-master/${env.JAVANLP_HOME}/projects/core/lib does not exist.

I updated buils.xml line number 22 from

to

This fixed the issue. Next I got the following error:
BUILD FAILED
/code/EMNLP_naturalli/NaturalLI-master/build.xml:40: taskdef A class needed by class org.scalatest.tools.ScalaTestAntTask cannot be found: scala/Function1
using the classloader AntClassLoader[/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/lib/corenlp-caseless-models.jar:/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/lib/corenlp-models.jar:/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/lib/corenlp-scala.jar:/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/lib/corenlp.jar:/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/lib/jaws.jar:/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/lib/postgresql.jar:/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/lib/protobuf.jar:/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/lib/test/hamcrest-core-1.3.jar:/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/lib/test/junit-4.11.jar:/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/lib/test/scalatest_2.11-2.1.6.jar:/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/src/naturalli_client.jar:/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/test/src/test_client.jar]
I am not sure how to fix this. Can you please help here.
PS: I found some hardcoded paths in target name "war" in build.xml

Is SCALA_HOME set globally? The error is that the scalatest ant plugin isn't loading properly.
If I recall, you only need this for the test program anyways though. Does the rest of the code build?

Yes SCALA_HOME is set globally.
When I the following command:
./run Evaluate src/org/goobs/truth/conf/conceptnet.conf
I get this error:
valuate src/org/goobs/truth/conf/conceptnet.conf
running org.goobs.naturalli.Evaluate
using(src/org/goobs/naturalli/conf/base.conf)
-- 1 job submitted
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: edu/stanford/nlp/stats/Counter
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: edu.stanford.nlp.stats.Counter
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more
STEPS I followed:

./autogen.sh

./configure --with-protoc=/usr
--enable-debug
--with-postgresql=/usr/bin/pg_config
--with-scala=/usr/share/scala
--with-java=/usr/lib/jvm/java-8-openjdk-amd64
--with-corenlp=/code/EMNLP_naturalli/NaturalLI-master/lib/corenlp.jar
--with-corenlp-models=/code/EMNLP_naturalli/NaturalLI-master/lib/corenlp-models.jar
--with-corenlp-caseless-models=/code/EMNLP_naturalli/NaturalLI-master/lib/corenlp-caseless-models.jar
--prefix=/usr/local/
CXX=g++
PGHOST=<IP_ADDRESS>  PGPORT=5432
DBNAME=naturalli PGUSER=postgres
PGPASSWORD=XXXX
GREEDY_LOAD=1

make
make install
src/naturalli_server
-----Everything works fine till here-----
./run Evaluate src/org/goobs/truth/conf/conceptnet.conf
throws mentioned error

What does JAVANLP_HOME store?
run in main folder has the following lines:
System.getenv("JAVANLP_HOME") + "/projects/more/classes",
System.getenv("JAVANLP_HOME") + "/projects/more/lib/BerkeleyParser.jar",
System.getenv("JAVANLP_HOME") + "/projects/research/classes",
I can't find the folders as well as the jar specified in the project folder.

Ah, yes. JAVANLP_HOME is the root of our internal codebase -- all instances of JAVANLP_HOME/projects/core can be replaced with the path to a checkout of CoreNLP (e.g., cloning https://github.com/stanfordnlp/CoreNLP). Hopefully, there's no need to include more and research -- if it doesn't compile let me know and I can try to migrate files into CoreNLP.

Same error again.

Can you print the value of cp in the run script? The error of not finding the Counter class is caused by java not picking up the CoreNLP classes in the classpath.

Oh! yes CoreNLP classes are not picked up in the class path.
How should I add it?
List(Attributed(/code/EMNLP_naturalli/NaturalLI-master/target/scala-2.9.1/classes), Attributed(/code/EMNLP_naturalli/NaturalLI-master/lib/corenlp-scala.jar), Attributed(/code/EMNLP_naturalli/NaturalLI-master/lib/jaws.jar), Attributed(/code/EMNLP_naturalli/NaturalLI-master/lib/postgresql.jar), Attributed(/code/EMNLP_naturalli/NaturalLI-master/lib/protobuf.jar), Attributed(/code/EMNLP_naturalli/NaturalLI-master/lib/corenlp-models.jar), Attributed(/code/EMNLP_naturalli/NaturalLI-master/lib/corenlp-caseless-models.jar), Attributed(/code/EMNLP_naturalli/NaturalLI-master/lib/corenlp.jar), Attributed(/root/.sbt/boot/scala-2.9.1/lib/scala-library.jar))

So, in the script the value of val cp:String should be the ':' delimited classpath string. You can take all the elements you mentioned and just join them on ':' and it should work?

I added the path to CoreNLP folder and printed cp:
src/naturalli_client.jar:test/src/test_client.jar:/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/CoreNLP-master/li
b/joda-time.jar:/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/CoreNLP-master/lib/jollyday-0.4.7.jar:/analytics/pr
achi/code/EMNLP_naturalli/NaturalLI-master/CoreNLP-master/classes:/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/C
oreNLP-master/lib/BerkeleyParser.jar:/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/lib/reverb.jar:/analytics/prac
hi/code/EMNLP_naturalli/NaturalLI-master/lib/postgresql.jar:/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/lib/cor
enlp-models.jar:/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/lib/corenlp-caseless-models.jar:/analytics/prachi/c
ode/EMNLP_naturalli/NaturalLI-master/CoreNLP-master/classes:/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/CoreNLP
-master:/usr/share/scala/lib/scala-library.jar:/usr/share/scala/lib/config-1.2.0.jar:/usr/share/scala/lib/scala-xml_2.11-1.0.1.jar:lib/corenlp-scala.jar:lib/trove.jar:lib/jaws.jar:lib/scripts/sim-1.0.jar:lib/protobuf.jar
But when I use sbt command prompt to print class path, I get this:
show runtime:full-classpath
[info] List(Attributed(/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/target/scala-2.9.1/classes), Attributed(/ana
lytics/prachi/code/EMNLP_naturalli/NaturalLI-master/lib/corenlp-scala.jar), Attributed(/analytics/prachi/code/EMNLP_natural
li/NaturalLI-master/lib/jaws.jar), Attributed(/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/lib/postgresql.jar),
Attributed(/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/lib/protobuf.jar), Attributed(/analytics/prachi/code/EMN
LP_naturalli/NaturalLI-master/lib/corenlp-models.jar), Attributed(/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/l
ib/corenlp-caseless-models.jar), Attributed(/analytics/prachi/code/EMNLP_naturalli/NaturalLI-master/lib/corenlp.jar), Attributed(/root/.sbt/boot/scala-2.9.1/lib/scala-library.jar))
notice the path to CORENLP is not here.
And I am still getting the same error.
Any idea, how to fix things?

I'm not sure -- I tend to avoid sbt like the plague, for exactly these kinds of reasons. You need to somehow include the CoreNLP libraries in the sbt build.


Peg-in error confusing

Whenever we're displaying txid, it's not immediately clear if it's Bitcoin's of Fedimint's txid, which was rather confusing when I was getting peg-in transaction (since L1 tx is actually being passed).
When logging we should probably be more specific to help the confused user.
Module input or output error in tx ...

I looked at it, and seems not worth it / not easily fixable.


File in use issues in V5

I am using LiteDB in a simple desktop app that uses 2 shared db files on an EMC Isilon (CIFS and NFS) file share.
I upgraded to V5 recently, largely to use LiteDB Studio and for a couple of features like DeleteMany.
Now my users are continually getting transient "file in use" errors trying the read or update the files. Error msgs include.
"The process cannot access the file .. because it is being used by another process"
"Access to the path is denied"
All LiteDB access is done inside Using blocks. I do a db.Commit() after each transaction.
I  open/connected to  the file in LiteDB Studio and queried it using Direct mode. When I disconnect I got the "Access to the path is denied" error. Next time I tried in Shared mode and got the access denied just trying to connect to file.
The locked condition seems to persist for an indeterminant period of time even when no one accesses the file.
Has anyone seen this behavior and/or have a way to work around it?
I am having a hard time determining if is enviornmental or something I am doing wrong.
I never saw this in the same environment in 18 months of using LiteDB V4.

Also, I notice that a file with the same name as the data.db file with "-log.db" appended to it. If I rename or delete the -log file the file lock seems to clear. I understand this to be the temp transaction file and should be cleaned up automatically which apparently is not happening.
Would it be "safe" to check for and delete this file as a mitigation? Or might that cause more problems than it solves?

@chucksullivancvs LiteDB v5.0.x does not support network shares. This is because the Shared mode uses an OS-wide mutex to synchronize file access, which obviously doesn't work over the network. v4 used file locks, which are implemented by network file systems, but it has problems of its own.
I suggest you stay at v4 until we release v5.1, which will use lock files to synchronize file access and, therefore, should work with network shares.

@lbnascimento - thx. i gone ahead and downgraded to 4.1.4. was pretty easy. just had to get rid ofthe Commit() and rewrite the DeleteMany. So far so good on that. new issue though I will post seperately


Missing highlights after moving to lazy.nvim

Hello, I am using your config as a base for mine, so it is likely its a problem I introduced. I am asking here because I am completely lost and I tried more or less everything I could think of. Feel free to just close and ignore this issue if you need.
Switching to lazy.nvim, following the PR you recently merged made some of the highlights disappear for me. I have a user.theme that is practically identical to yours (here) and I call require("user.theme").telescope_theme() in an autocmd (here).
After migrating to lazy.nvim, using the tokyonight theme, bufferline, fidget-spinner and lualine are missing some hightlights:

Any clue of what could I check to solve this?
Thanks for the amazing work you are doing here!

I debugged this a little bit further and it seems like require("user.theme").telescope_theme() does not get applied even if it is part of the autocommands. If I call the function manually while fidget spinner is running, the hightlight gets applied properly.
The while part on bufferline is still white.

Another new, changing the autocmd from Colorscheme to VimEnter fixes the fidget spinner highlight.
Regarding the bufferline issue, I think my call to require("user.theme").tokyonight() is being sort of ignore as I believe the colour should come from NormalNC...

I have done it already, but I had to change the event from "ColorScheme" to "VimEnter"..

You can change the details of your lualine by editing https://github.com/abzcoding/lvim/blob/79ce35a4d9b9c10b8d2ebeb627b1b3c9cb8eb3a5/lua/lualine/themes/tokyonight.lua#L5
and the bufferline color only changes if
https://github.com/abzcoding/lvim/blob/79ce35a4d9b9c10b8d2ebeb627b1b3c9cb8eb3a5/lua/user/bufferline.lua#L9-L16

Found and resolved all the issues. Turns out slant for bufferline does not work well with transparent_window. Thanks for the help, resolving this.


display metadata in explorer for accounts.

For example. http://explorer.testnet.symboldev.network/accounts/TCWWR5PBTSK4AIEMGSYP72D355AI63NJQ7UL5FA
Has a metadata on it. The explorer shows it as 7B0A224964223A20226469643A61706F7374696C6C65322E302E313A6469722354424243513647424951344E4E58445A4B564B4C4451465933575145464332374A523737593251E2809D2C0A22436F6E74726F6C6C6572223A20226469643A61706F7374696C6C65322E302E313A6164642354415A58334F4545324358365A57564F4A3758465351424845523358493245474D504B4B584559222C0A7D0A
But in reality it is supposed to be
{ "Id": "did:apostille2.0.1:dir#TBBCQ6GBIQ4NNXDZKVKLDQFY3WQEFC27JR77Y2Q”, "Controller": "did:apostille2.0.1:add#TAZX3OEE2CX6ZWVOJ7XFSQBHER3XI2EGMPKKXEY", }
Here is a screen shot of the explorer which isn't really that human readable

But here is how it is written in the wallet which makes it a lot easier to decipher.

And

Please update to make more readable like the wallet does.

Along with this it would be nice if the the tx itself http://explorer.testnet.symboldev.network/transactions/84456F129528A2960ADE3447653FBFBB3EA7CF6BDA189AD8DDB737DEC21B0EC1 which is a metadata tx can show what the meta is instead of the value, or maybe even show both too is good.

I think this is because the wallet encodes/decodes metadata on its own. We should define one consistent way to store metadata for our products (and recommended for others).
I've seen that some projects stored it without encoding and in such situation in explorer is presented correctly.

Well that’s interesting. I wasn’t aware the wallet was encoding the metadata.
I agree there should be a standard somehow. It would be really nice if the explorer and wallet followed the same practice.
Generally I’m curious why the wallet was encoding the metadata or maybe it could at least maybe give user a check box to choose encoded or not.
Get Outlook for iOShttps://aka.ms/o0ukef

From: cryptoBeliever @.>
Sent: Wednesday, August 4, 2021 1:18:55 AM
To: symbol/symbol-explorer @.>
Cc: jabo38 @.>; Author @.>
Subject: Re: [symbol/symbol-explorer] display metadata in explorer for accounts. (#925)
I think this is because the wallet encodes/decodes metadata on its own. We should define one consistent way to store metadata for our products (and recommended for others).
I've seen that some projects stored it without encoding and in such situation in explorer is presented correctly.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/symbol/symbol-explorer/issues/925#issuecomment-892371165, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACPKCA5PGUTIAHKNIHH345DT3DET7ANCNFSM5BNHMHPQ.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

I have done some more testing and the symbol-cli does indeed announce metadata on chain in a way that the explorer can and does read, which confuses me a bit because then maybe this isn't an explorer issue?
One has to use the 'symbol-cli converter stringToKey' to take the original text and convert it into a string in the CLI.  Then use that string in the metadata tx and then the explorer can read it. So the explorer can read the CLI but not the wallet, but the wallet can read the wallet, but the explorer can not read the wallet.
Having the CLI do metadata txs one one and the Desktop wallet do them a different way is confusing for people building the applications. They now have to chose if they want their app to be compatible with the Desktop Wallet or the explorer.
Any suggestions for a way forward?  I think it is better to make the issue on the Desktop Wallet page as it is the odd app out.

and

Clearly makes the test transaction on the explorer clearly able to be ready http://explorer.testnet.symboldev.network/transactions/910AE1C05A9ECD500355F806E9789F6C94516DCE1F9CEE6D114E2CE0B66F643B

As I can see this one is fixed in latest wallet version.


CLI Error and Success Messages

Version Observed In
0.1.0
Description
There is no facility of handling error and success messages.
Errors
None.
Expected Behaviour

While the running of the command, there should be proper messages for the exceptions defined, if caught.
Add a success message at the end of the entire conversion.

Hints for Fixes
Except the respective exceptions (all of them) and cast out an informative error message.
Further Comments
None.

Version Fixed In
0.2.0
Fix Implemented

Exceptions tackled are: FileNotFoundError, InvalidDirectoryPathException, InvalidFilePathException, NoSpecifiedParentsException, ParentAsDirectoryException and ParentFilesNotFoundException.
Appropriate success message added.

Drawbacks to Solution
None.
Further Comments
None.


Add link to solid-auth-client

Since this repo is no longer supported and refers to solid-auth-client instead, it's convenient with a link at the top to click further.

Thanks!


Changes for recursive hash handling including test cases

Extension of pull request #609 with test case
Fixes #608

Signed cla with github email.

Signed cla.

Coverage decreased (-0.06%) to 96.076% when pulling 43f88c040a7bb37a83dfe4b38ef932f9c932bd71 on bantini:bugfix-608-recursive-hashes into 1851ded54c752a90348e28caf26deccb8e47fd66 on google:master.

I signed it!

Coverage decreased (-0.06%) to 96.076% when pulling f1336194848c5b45c8c0e0deda29c6801b2e6110 on bantini:bugfix-608-recursive-hashes into 1851ded54c752a90348e28caf26deccb8e47fd66 on google:master.

Coverage decreased (-0.06%) to 96.076% when pulling b099ad77c990cf292434c6cf4343b410fff9a92c on bantini:bugfix-608-recursive-hashes into 1851ded54c752a90348e28caf26deccb8e47fd66 on google:master.

Coverage decreased (-0.06%) to 96.076% when pulling b099ad77c990cf292434c6cf4343b410fff9a92c on bantini:bugfix-608-recursive-hashes into 1851ded54c752a90348e28caf26deccb8e47fd66 on google:master.

Coverage decreased (-0.06%) to 96.076% when pulling b099ad77c990cf292434c6cf4343b410fff9a92c on bantini:bugfix-608-recursive-hashes into 1851ded54c752a90348e28caf26deccb8e47fd66 on google:master.


[#168] Fix draw detection when all remaining players loose in the same round

I'd like to see tests, that show me that the internal shork doesn't just output a Draw for everything. Only the draw-situation is covered by tests rn and non-draw-situations aren't

They weren't in the scope of the story, but I can add them

We can also add them later on, if you'd rather merge this now and do that later

I'd like to see tests, that show me that the internal shork doesn't just output a Draw for everything. Only the draw-situation is covered by tests rn and non-draw-situations aren't

They weren't in the scope of the story, but I can add them

We can also add them later on, if you'd rather merge this now and do that later

I can just quickly add them, shouldn't take long. However, if they fail, fixing would be a separate story

I'd like to see tests, that show me that the internal shork doesn't just output a Draw for everything. Only the draw-situation is covered by tests rn and non-draw-situations aren't

They weren't in the scope of the story, but I can add them

We can also add them later on, if you'd rather merge this now and do that later

I can just quickly add them, shouldn't take long. However, if they fail, fixing would be a separate story

That would lead to the main deployment not being up-to-date until they are fixed.
Not something we should do.

I'd like to see tests, that show me that the internal shork doesn't just output a Draw for everything. Only the draw-situation is covered by tests rn and non-draw-situations aren't

They weren't in the scope of the story, but I can add them

We can also add them later on, if you'd rather merge this now and do that later

I can just quickly add them, shouldn't take long. However, if they fail, fixing would be a separate story

That would lead to the main deployment not being up-to-date until they are fixed. Not something we should do.

Test has been added.


column visibility button on notebook does not show all available columns in the dropdown

Describe the bug
column visibility button on notebook does not show all available columns in the dropdown
Expected behavior
all should be visible
How to Reproduce
origin column is within the default schema however even that is missing from the list
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: Fedora
Browser Firefox
Version 119.0 (64-bit)

Additional context
com.teragrep-ajs_01-<IP_ADDRESS>.g964cce98-1470.noarch

might be related to the fact that there was no update on the table so the actual bug might be somewhere in the data transportation


Fails to generate snapshots

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Issue Description
Fails to generate snapshots.
Updated folder permissions to 777:
drwxrwxrwx  10 user  staff    320 Jul 13 15:04 screenshots
Complete output when running fastlane, including the stack trace and command used

fastlane snapshot
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/fileutils.rb:254:in `mkdir': [!] Permission denied @ dir_s_mkdir - /screenshots (Errno::EACCES)

Environment

✅ fastlane environment ✅
Stack

Key
Value

OS
10.13.6

Ruby
2.3.7

Bundler?
false

Git
git version 2.18.0

Installation Source
/usr/local/bin/fastlane

Host
Mac OS X 10.13.6 (17G65)

Ruby Lib Dir
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib

OpenSSL Version
LibreSSL 2.2.7

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
9.4.1

System Locale

Variable
Value

LANG
en_US.UTF-8
✅

LC_ALL

LANGUAGE

fastlane files:
`./Fastfile`
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
#     https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
#     https://docs.fastlane.tools/plugins/available-plugins
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

default_platform(:ios)

platform :ios do
  desc "Generate new localized screenshots"
  lane :screenshots do
    capture_screenshots(workspace: "MyApp.xcworkspace", scheme: "MyApp")
    upload_to_app_store(skip_binary_upload: true, skip_metadata: true)
  end

  lane :release do
  build_app(scheme: "MyApp")
  end

  lane :uploadscreenshots do
    upload_to_app_store
  end
end

`./Appfile`
app_identifier("com.abc.MyApp") # The bundle identifier of your app
<EMAIL_ADDRESS># Your Apple email address

itc_team_id("MyConnectID") # iTunes Connect Team ID
team_id("MyTeamID") # Developer Portal Team ID

# For more information about the Appfile, see:
#     https://docs.fastlane.tools/advanced/#appfile

fastlane gems

Gem
Version
Update-Status

fastlane
2.101.1
✅ Up-To-Date

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

did_you_mean
1.0.0

slack-notifier
2.3.2

rouge
2.0.7

xcpretty
0.2.8

terminal-notifier
1.8.0

terminal-table
1.8.0

public_suffix
2.0.5

addressable
2.5.2

multipart-post
2.0.0

word_wrap
1.0.0

tty-spinner
0.8.0

babosa
1.0.2

colored
1.2

highline
1.7.10

commander-fastlane
4.4.6

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

gh_inspector
1.1.3

mini_magick
4.5.1

multi_xml
0.6.0

rubyzip
1.2.1

security
0.1.3

xcpretty-travis-formatter
1.0.0

bundler
1.16.0

faraday_middleware
0.12.2

emoji_regex
0.1.1

tty-cursor
0.6.0

tty-screen
0.6.5

faraday
0.15.2

json
2.1.0

io-console
0.4.5

excon
0.62.0

CFPropertyList
3.0.0

libxml-ruby
2.9.0

plist
3.4.0

atomos
0.1.2

claide
1.0.2

colored2
3.1.2

xcodeproj
1.5.9

jwt
2.1.0

memoist
0.16.0

signet
0.8.1

googleauth
0.6.3

uber
0.1.0

declarative
0.0.10

declarative-option
0.1.0

representable
3.0.4

mime-types-data
3.2016.0521

mime-types
3.1

httpclient
2.8.3

google-api-client
0.23.4

unf
0.1.4

domain_name
0.5.20180417

fastimage
2.1.3

unicode-display_width
1.4.0

generated on: 2018-08-04

Was able to resolve this by re-installing fastlane for the affected project.

@seanmcneil Glad you got it solved! Happy fastlaning 🚀


partial with block broken in 4.1.0/4.1.1

index.html.erb
<% partial 'test' do %>
  During
<% end %>

_test.erb
Before
<%= yield %>
After

Expected output (works in 4.0)
Before
During
After

Error
Contract violation for argument 4 of 4:
        Expected: nil,
        Actual: #<Proc:0x007fb6c81dba10 … padrino-helpers-0.13.1/lib/padrino-helpers/render_helpers.rb:53>
        Value guarded in: Middleman::TemplateContext::render
        With Contract: Any, Or, Hash => String
        At: … middleman-core-4.1.1/lib/middleman-core/template_context.rb:101

It looks like the fix might be simple. Changing line 100 of template_context.rb to something like this fixes the problem:
    Contract Any, Or[Symbol, String], Hash => String, Proc => String  # 100
    def render(_, name, options={}, &block)                           # 101

I'm not familiar with contracts.ruby, so there may be a better way to do this. I'll try and get a Cucumber test and PR ready for this.


Request - Lock-SecretStore cmdlet

Hi !
I'm using SecretManagement and SecretStore to store secrets for an application within our systems. I think it would be very beneficial if there was a way to lock a secretstore rather than waiting for the timeout, for obvious security reasons. Of course, one could set a short timeout, but delays in the script/application could then get in the way of retrieving a secret.

We can certainly consider this as an enhancement.  But note, that the password applies only to the current PowerShell session.  So you can lock access to the store for that session by simply closing the session.


Fix/ Automatically deduct fees when swapping with MAX ##2518

What is the purpose of the change
This pull request aims to fix the issue where fees are not automatically deducted when a user selects the 'MAX' option during asset swapping.
Brief Changelog

Modified the calculation of osmoOutAmount in add-liquidity.ts to always deduct the OSMO_MEDIUM_TX_FEE from the balance before comparing it with the out amount.

Testing and Verifying
This change has been tested locally by running the asset swapping functionality and verifying that the fee is correctly deducted when the 'MAX' option is selected.
Documentation and Release Note

This pull request introduces a change in the user-facing behavior. Previously, fees were not deducted when the 'MAX' option was selected during asset swapping. With this change, the fee will be automatically deducted.

fix/ #2518

@HarjobandeepSingh looks like the build is failing here due to a syntax error? Are you able to build this locally?

This appears to be making changes to the add liquidity state, and not swapping?

@jonator check again plz

@MaxMillington sir plz check now

@jonator plz check

@HarjobandeepSingh this is not close. Swap modal changes would likely be in useSwap hook. And would only apply if it's the staking currency


jspdf.min and downloadify don't work together

Including the modules via requireJS, when I have jspdf.js, swfobject.js, and downloadify.min.js included, my button creates/saves the PDF fine (but jspdf doesn't have any content plugins available, so this is slightly useless). When i use the jspdf.min.js file instead, in order to get the use of plugins like fromHTML, the downloadify no longer creates/saves the PDF and does not error either.

Yeah there seems to be some issue with the minified version and RequireJS, just switched mine to debug version and jsPDF object became defined.

Yeah there seems to be some issue with the minified version and RequireJS, just switched mine to debug version and jsPDF object became defined.

v1.0.178 work for you? With my RequireJS/Durandal issue, now have the jsPDF object defined. Guess something regressed somewhere.

v1.0.178 work for you? With my RequireJS/Durandal issue, now have the jsPDF object defined. Guess something regressed somewhere.

Probably solved over time.


Search that respects caps

Hello,
Great work on this plugin!
Is there a way to configure this plugin to respect caps in my search query?

Hi, I am not sure what "respect caps" mean. Could you clarify it?

Poorly formulated by be, i mean case sensitive search.


Fast percentile method in Iris V2.

Replacement for PR #2682 (np.percentile method as an alternative to scipy.mstats).
Now for Iris V2.
Introduction of a numpy.percentile method to the percentile aggregator for the purposes of providing a fast alternative (approx 50 times faster).

Accessed with kwarg percentile_method="numpy_percentile" passed to cube.collapsed method.
Existing unit tests duplicated with call to fast method, where masked data will result in an error.
Ran test cases and found fractional differences of order 1E-16 between two methods.
scipy.stats.mstats.mquantiles method remains important for dealing with masked data.

I have rewritten the unit tests across the section of interest. I have (possibly unwisely) removed the contentious assertCML tests (see comments on #2682). Instead I have added a simple additional coordinate check on the resulting cubes as something approaching a replacement, though obviously not as rigorous and it could be expanded. I have moved the assert statements into functions and separated out the cases where the first and third percentiles were being checked in a single test as requested.

@pp-mo Any chance I can reinvigorate some interest in this PR? I did factor out some stuff in the unit tests as suggested to act as a sweetener :-)

@bayliffe great stuff! Thanks for bearing with the review process and ploughing through all the changes we requested. I think this is good to go now!

:tada:

Thanks for your help Pete.


ImprovementSupport refresh external catalog.

Proposed changes
Issue Number: close #xxx
Problem summary
Support manually refresh external catalog metadata.

refresh catalog external_catalog_name
refresh database catalog.db OR refresh database db (current catalog)
refresh table catalog.db.table OR refresh table db.table (current catalog) OR refresh table table_name (current db)

And the refresh operations above keep the database and table ids unchanged.
Checklist(Required)

Does it affect the original behavior:

[ ] Yes
[ ] No
[ ] I don't know

Has unit tests been added:

[ ] Yes
[ ] No
[ ] No Need

Has document been added or modified:

[ ] Yes
[ ] No
[ ] No Need

Does it need to update dependencies:

[ ] Yes
[ ] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[ ] No

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 38.55 seconds
load time: 601 seconds
storage size:<PHONE_NUMBER>3 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20221018160341_clickbench_pr_30794.html

Please add regress test after #13143 is merged


randomx: 1.1.9 -> 1.1.10

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/tevador/randomX/releases.
meta.description for randomx is: "Proof of work algorithm based on random code execution"
meta.homepage for randomx is: "https://github.com/tevador/RandomX"
meta.changelog for randomx is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.1.10 in filename of file in /nix/store/wz95w8pzmrpyklbg59hdxhb06ygjnx2w-randomX-1.1.10

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

4 package rebuild(s)

First fifty rebuilds by attrpath
haven-cli
monero-cli
monero-gui
randomx

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/wz95w8pzmrpyklbg59hdxhb06ygjnx2w-randomX-1.1.10 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A randomx https://github.com/r-ryantm/nixpkgs/archive/6f66b43cc06b5b41de7ac2748e516079c2313cc1.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/wz95w8pzmrpyklbg59hdxhb06ygjnx2w-randomX-1.1.10
ls -la /nix/store/wz95w8pzmrpyklbg59hdxhb06ygjnx2w-randomX-1.1.10/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

4 packages built:

haven-cli
monero (monero-cli)
monero-gui
randomx

Maintainer pings
cc @rnhmjoj for testing.

Result of nixpkgs-review pr 186502 run on x86_64-darwin 1

4 packages failed to build:

haven-cli
monero-cli
monero-gui
randomx

on darwin intel fails with:
/tmp/nix-build-randomX-1.1.10.drv-0/source/src/virtual_memory.cpp:118:2: error: use of undeclared identifier 'pthread_jit_write_protect_np'
        pthread_jit_write_protect_np(false);
        ^
/tmp/nix-build-randomX-1.1.10.drv-0/source/src/virtual_memory.cpp:138:2: error: use of undeclared identifier 'pthread_jit_write_protect_np'
        pthread_jit_write_protect_np(false);
        ^
/tmp/nix-build-randomX-1.1.10.drv-0/source/src/virtual_memory.cpp:146:2: error: use of undeclared identifier 'pthread_jit_write_protect_np'
        pthread_jit_write_protect_np(true);
        ^
3 errors generated.
make[2]: *** [CMakeFiles/randomx.dir/build.make:188: CMakeFiles/randomx.dir/src/virtual_memory.cpp.o] Error 1


Update virtual-machines-deploy-rmtemplates-azure-cli.md

Voice-ifying your opening para a bit, similar to Joe's article.

lgtm :+1:

@deneha please close and DO NOT MERGE. I'm making the fix in another push.


postmates/PMJSON

PMJSON - Pure Swift JSON encoding/decoding library.
Language - Swift.

https://github.com/vsouza/awesome-ios/pull/2303


Option to use partial with char* or char[]

Hello again.
I wanted to make sure I'm understanding the usage of the library correctly when using partials. For example, I have an API that takes a char* for performance and memory safety reasons in the overrarching app.
void serialize(Data* data, char* buf)
{
  static constexpr field1_partial json_ptrs("/field1")
  glz::write_json<field1_partial>(data, buf)
}

this code doesn't compile, and I believe it's due to this concept in container_concepts.hpp, namely failing       requires !std::same_as<void, decltype(t.begin())>; :
namespace glz
{
   template <class T>
   concept range = requires(T& t) {
      requires !std::same_as<void, decltype(t.begin())>;
      requires !std::same_as<void, decltype(t.end())>;
      requires std::input_iterator<decltype(t.begin())>;
   };
}

/include/glaze/json/write.hpp:1458:36:   required from ‘auto glz::write_json(T&&, Buffer&&) [with auto& Partial = field1_partial; T = Data&; Buffer = char*]’
 required from here /include/glaze/concepts/container_concepts.hpp:210:12:   required for the satisfaction of ‘range<Buffer>’ [with Buffer = char*]
/include/glaze/core/write.hpp:17:12:   required for the satisfaction of ‘output_buffer<Buffer>’ [with Buffer = char*]
/include/glaze/concepts/container_concepts.hpp:210:20:   in requirements with ‘T& t’ [with T = char*]
/include/glaze/concepts/container_concepts.hpp:211:16: note: nested requirement ‘! same_as<void, decltype (t.begin())>’ is not satisfied
  211 |       requires !std::same_as<void, decltype(t.begin())>;
      |       ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/include/glaze/concepts/container_concepts.hpp:212:16: note: nested requirement ‘! same_as<void, decltype (t.end())>’ is not satisfied
  212 |       requires !std::same_as<void, decltype(t.end())>;
      |       ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/include/glaze/concepts/container_concepts.hpp:213:16: note: nested requirement ‘input_iterator<decltype (t.begin())>’ is not satisfied
  213 |       requires std::input_iterator<decltype(t.begin())>;

This makes sense, since char* is not a struct. It also fails the output_buffer concept for similar reasons.
My question is why these concepts block usage for a more primitive type like char * as the output buffer only when using partials, but the following is a perfectly valid use:
glz::write_json(msg, buf);

This was just overlooked for partial writing, so I'll add in a function that supports raw buffers.
I actually need to make some write API changes to better support handling write errors. I'll probably include this support in that merge.
I'm curious, do you know your sizes? Could you be using std::string_view?

As far as knowing sizes:
JSON tags: yes
JSON values: no
so it'll look like this for one partial
{"name": "John Smith"}
and this for another and so on.
{"address": "123 North Str"}
so the size of the JSON needs to be variable, but we're just allocating enough memory up front to hold anything we would ever serialize and using a buffer + an offset to determine the size of the buffer content we care about.
I get a different issue when using std::string_view interestingly:
/include/glaze/json/write.hpp:1326:38: error: could not convert ‘quoted_key’ from ‘const std::basic_string_view<char>’ to ‘long unsigned int’
 1326 |                      dump<quoted_key>(b, ix);
      |                      ~~~~~~~~~~~~~~~~^~~~~~~
      |                                      |
      |                                      const std::basic_string_view<char>

where my call to write_json is as follows
char buf*;
std::string_view svOut{buf};
glz::write_json<partial_1>(msg, svOut);

Thanks for bringing up these issues with raw and std::string_view buffers. I'm about to merge a major change to support errors when writing and then I'll prioritize these issues.

Support is being added in #1074

std::string_view is read only, so I've decided to just support char* and char[] raw buffers for writing. I could add write support for std::span<char>, but this might add some confusion and I don't feel is necessary.

Support has been merged, let me know if you run into any issues.

Awesome, I will definitely check it out soon. Thanks!


Frontend] Missing information on the new Homepage

Discussed in https://github.com/community-scripts/ProxmoxVE/discussions/181

Originally posted by marvin78 November 11, 2024
Some scripts don't show some important information. Examples:
Vaulwarden: Information about the ressource settings for an update are missing.
MariaDB: original has a link to a document for post script processing
There might be more.

I think "Keycloak" had some Infos as well (How to create the temp admin user)


Tests are failing

Can't receive if the tests are failing.

@hotmeteor Any ETA on fixing the tests?


Implement Editor feature for Edit Config File

Editor on Edit Config File doesn't have no text editor feature.
Feature to insert TAB and to select multiple lines, and to color for tags should be more better to editor config file.

Probably we can use CodeMirror with custom syntax file for that.

@toru-takahashi we've releases v0.3.13 that embedded rich editor as #143
If you have more ideas, problems, etc, feel free to open new issue.
thanks!


[SPARK-49688][CONNECT] Fix a data race between interrupt and execute plan

What changes were proposed in this pull request?

Get rid of the complicated "promise"-based completion callback mechanism, and introduce a lock-free state machine. The gist is,

A thread can only be interrupted when it is in a certain state: started.
A successful interruption means the interrupted thread must call the completion callback.
Interruption after completion or before starting is prohibited without relying on a mutex.

Why are the changes needed?

Execution can be interrupted before started, thus causing the "closed" message to be omitted.
Does this PR introduce any user-facing change?

No.
How was this patch tested?

SparkConnectServiceSuite.
Was this patch authored or co-authored using generative AI tooling?

No.

@juliuszsompolski Thanks a lot! @hvanhovell I know you're super busy, but can you please take a brief look at the change?

@vicennial could you also take a detailed look next to @hvanhovell 's brief look? :)

New test failure caused by the updated interrupt method semantics: to be fixed late today.
[info] - interrupt all - background queries, foreground interrupt *** FAILED *** (127 milliseconds)
[info]   ListBuffer("18e26c82-502f-48bb-8028-328963d8e6d3") had length 1 instead of expected length 2 Interrupted operations: ListBuffer(18e26c82-502f-48bb-8028-328963d8e6d3). (SparkSessionE2ESuite.scala:79)
[info]   org.scalatest.exceptions.TestFailedException:

Merged to master.


3.4.5: build warnings

Describe the bug
Looks like build shows some warnings.

Here is build output:
+ /usr/bin/python3 -sBm build -w --no-isolation
* Getting build dependencies for wheel...
running egg_info
creating sphinx_tabs.egg-info
writing sphinx_tabs.egg-info/PKG-INFO
writing dependency_links to sphinx_tabs.egg-info/dependency_links.txt
writing requirements to sphinx_tabs.egg-info/requires.txt
writing top-level names to sphinx_tabs.egg-info/top_level.txt
writing manifest file 'sphinx_tabs.egg-info/SOURCES.txt'
reading manifest file 'sphinx_tabs.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching 'docs'
warning: no previously-included files matching '*' found under directory 'docs'
warning: no previously-included files found matching 'tests'
warning: no previously-included files found matching 'images'
warning: no previously-included files matching '*' found under directory 'images'
warning: no previously-included files found matching '.pre-commit-config.yaml'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'pylint.cfg'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'codecov.yml'
adding license file 'LICENSE'
writing manifest file 'sphinx_tabs.egg-info/SOURCES.txt'
* Building wheel...
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/sphinx_tabs
copying sphinx_tabs/__init__.py -> build/lib/sphinx_tabs
copying sphinx_tabs/tabs.py -> build/lib/sphinx_tabs
running egg_info
writing sphinx_tabs.egg-info/PKG-INFO
writing dependency_links to sphinx_tabs.egg-info/dependency_links.txt
writing requirements to sphinx_tabs.egg-info/requires.txt
writing top-level names to sphinx_tabs.egg-info/top_level.txt
reading manifest file 'sphinx_tabs.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching 'docs'
warning: no previously-included files matching '*' found under directory 'docs'
warning: no previously-included files found matching 'tests'
warning: no previously-included files found matching 'images'
warning: no previously-included files matching '*' found under directory 'images'
warning: no previously-included files found matching '.pre-commit-config.yaml'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'pylint.cfg'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'codecov.yml'
adding license file 'LICENSE'
writing manifest file 'sphinx_tabs.egg-info/SOURCES.txt'
creating build/lib/sphinx_tabs/static
copying sphinx_tabs/static/tabs.css -> build/lib/sphinx_tabs/static
copying sphinx_tabs/static/tabs.js -> build/lib/sphinx_tabs/static
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/sphinx_tabs
copying build/lib/sphinx_tabs/__init__.py -> build/bdist.linux-x86_64/wheel/sphinx_tabs
copying build/lib/sphinx_tabs/tabs.py -> build/bdist.linux-x86_64/wheel/sphinx_tabs
creating build/bdist.linux-x86_64/wheel/sphinx_tabs/static
copying build/lib/sphinx_tabs/static/tabs.css -> build/bdist.linux-x86_64/wheel/sphinx_tabs/static
copying build/lib/sphinx_tabs/static/tabs.js -> build/bdist.linux-x86_64/wheel/sphinx_tabs/static
running install_egg_info
Copying sphinx_tabs.egg-info to build/bdist.linux-x86_64/wheel/sphinx_tabs-3.4.5-py3.8.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/sphinx_tabs-3.4.5.dist-info/WHEEL
creating '/home/tkloczko/rpmbuild/BUILD/sphinx-tabs-3.4.5/dist/.tmp-rn1h7h21/sphinx_tabs-3.4.5-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'sphinx_tabs/__init__.py'
adding 'sphinx_tabs/tabs.py'
adding 'sphinx_tabs/static/tabs.css'
adding 'sphinx_tabs/static/tabs.js'
adding 'sphinx_tabs-3.4.5.dist-info/LICENSE'
adding 'sphinx_tabs-3.4.5.dist-info/METADATA'
adding 'sphinx_tabs-3.4.5.dist-info/WHEEL'
adding 'sphinx_tabs-3.4.5.dist-info/top_level.txt'
adding 'sphinx_tabs-3.4.5.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
/usr/lib/python3.8/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'sphinx_tabs.static' is absent from the `packages` configuration.
!!

        ********************************************************************************
        ############################
        # Package would be ignored #
        ############################
        Python recognizes 'sphinx_tabs.static' as an importable package[^1],
        but it is absent from setuptools' `packages` configuration.

        This leads to an ambiguous overall configuration. If you want to distribute this
        package, please make sure that 'sphinx_tabs.static' is explicitly added
        to the `packages` configuration field.

        Alternatively, you can also rely on setuptools' discovery methods
        (for example by using `find_namespace_packages(...)`/`find_namespace:`
        instead of `find_packages(...)`/`find:`).

        You can read more about "package discovery" on setuptools documentation page:

        - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

        If you don't want 'sphinx_tabs.static' to be distributed and are
        already explicitly excluding 'sphinx_tabs.static' via
        `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
        you can try to use `exclude_package_data`, or `include-package-data=False` in
        combination with a more fine grained `package-data` configuration.

        You can read more about "package data files" on setuptools documentation page:

        - https://setuptools.pypa.io/en/latest/userguide/datafiles.html

        [^1]: For Python, any directory (with suitable naming) can be imported,
              even if it does not contain any `.py` files.
              On the other hand, currently there is no concept of package data
              directory, all directories are treated like packages.
        ********************************************************************************

!!
  check.warn(importable)
Successfully built sphinx_tabs-3.4.5-py3-none-any.whl

Reproduce the bug
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.

python3 -sBm build -w --no-isolation

List your environment

List of installed modules in build env:
Package                       Version
----------------------------- -------
alabaster                     0.7.16
Babel                         2.14.0
beautifulsoup4                4.12.2
build                         1.0.3
charset-normalizer            3.3.2
cppclean                      0.13
distro                        1.9.0
dnf                           4.18.2
docutils                      0.20.1
exceptiongroup                1.1.3
gpg                           1.23.2
idna                          3.6
imagesize                     1.4.1
importlib-metadata            7.0.1
iniconfig                     2.0.0
installer                     0.7.0
Jinja2                        3.1.3
libdnf                        0.72.0
MarkupSafe                    2.1.3
packaging                     23.2
pluggy                        1.3.0
Pygments                      2.17.2
pyproject_hooks               1.0.0
pytest                        7.4.4
pytest-datadir                1.5.0
pytest-regressions            2.5.0
python-dateutil               2.8.2
pytz                          2023.3
PyYAML                        6.0.1
requests                      2.31.0
setuptools                    69.0.3
six                           1.16.0
snowballstemmer               2.2.0
soupsieve                     2.5
Sphinx                        7.1.2
sphinxcontrib-applehelp       1.0.4
sphinxcontrib-devhelp         1.0.5
sphinxcontrib-htmlhelp        2.0.5
sphinxcontrib-jsmath          1.0.1
sphinxcontrib-qthelp          1.0.7
sphinxcontrib-serializinghtml 1.1.10
tomli                         2.0.1
urllib3                       1.26.18
wheel                         0.42.0
zipp                          3.17.0

Please let me know if you need more details or want me to perform some diagnostics.

I think that this ticket can be closed now.


Add Workspace name in JSON from tw runs dump

We are developing a MultiQC module that is able to scrape the output of tw runs dump in order to aggregate metrics into a single report across runs. It would be useful to be able to get the Workspace name directly from the JSON files that we can add to the General Stats table to clarify where the run was executed, especially if collating runs across Workspaces in the Report.
At the moment, only the workspaceId is reported in workflow-launch.json.
See https://github.com/ewels/MultiQC/pull/2151#issuecomment-1788912050

Closed in #364


Using conventional index name format 'index-%Y.%m.%d' in ElasticSearch configuration

Is your feature request related to a problem? Please describe.
Yes. Currently, BotKube is supporting a fixed index for ElasticSearch configuration. For ease of log maintenance and restoring, an index should a tag or timestamp which can be useful for filtering them.
Describe the solution you'd like
Using conventional index name format 'index-%Y.%m.%d' will help to resolve the issue

Working on this


Couldn't generate the documentation (extern_prelude)

Hello,
When I compile the documentation from futures-channel project, this error append:
cargo doc
 Documenting futures-channel v0.2.1 (file:///private/tmp/adjivas/futures-rs/futures-channel)
error[E0658]: access to extern crates through prelude is experimental (see issue #44660)
  |
  = help: add #![feature(extern_prelude)] to the crate attributes to enable

error: Could not document `futures-channel`.

Caused by:
  process didn't exit successfully: `rustdoc --crate-name futures_channel futures-channel/src/lib.rs -o /private/tmp/adjivas/futures-rs/target/doc --cfg feature="default" --cfg feature="futures-core" --cfg feature="std" -L dependency=/private/tmp/adjivas/futures-rs/target/debug/deps --extern futures_core=/private/tmp/adjivas/futures-rs/target/debug/deps/libfutures_core-670bf32b5273b58b.rmeta` (exit code: 101)

Of course if I add doc = false to Cargo.toml manifest from futures-channel or #![feature(extern_prelude)] to lib.rs that solve the compilation.
My versions are:

rustc 1.27.0-nightly (8a37c75a3 2018-05-02)
cargo 1.27.0-nightly (122fd5be5 2018-04-28)

Was fixed as part of #1003

That right, I close my issue, thank you!

There is any regression ? I have this repetition on this log

There hasn't been a new release of futures 0.2 since #1003 was merged, you will either have to wait till that happens, or switch to depending on futures = { git = "https://github.com/rust-lang-nursery/futures-rs" } in the meantime.

Okay! Thank's for the information


fix(stripEndings): constrain number stripping to end of lines

Summary of PR
Lines with "8.4 million" in it would have everything afterwards (including self) stripped away
Tests for unexpected behavior

none_whatsoever

Time spent on PR
one hour
Linked issues
Fix #176
Reviewers
@Harjot1Singh

Pull Request Test Coverage Report for Build 342015052

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

Totals

Change from base Build 336089287:
0.0%

Covered Lines:
153

Relevant Lines:
153

💛  - Coveralls


TOML key case

In order to load my config.toml, I had to change Lipi code to convert TOML keys to lowercase (at least for title, baseURL...)
What is the expected case for TOML configuration? Reading Hugo documentation, it seems to expect lower case.
Is the TOML case insensitive?

I have totally forgotten this.
But
https://gohugo.io/getting-started/configuration/
Seems to have keys in lower key case for toml.
So for now we should assume that TOML is case sensitive.
I will look into this further.
If you have fixed the code please open another PR :)

Merged and fixed thanks to @guyou


🐛(elasticsearch) multiple elasticsearch hosts

Allow to configure multiple elasticsearch hosts.
On sandbox we can try it like:
RICHIE_ES_HOST=elasticsearch_unexistence:9200,elasticsearch:9200

But ! This is a breaking change! We must add instructions in UPGRADE.md at least.

But ! This is a breaking change for people who overrode the value.... like... us: https://github.com/openfun/arnold/search?q=RICHIE_ES_HOST
We must add instructions in UPGRADE.md at least.

It isn't a breaking change, because if you pass the current value of elasticsearch it will continue to run has normal.
If we add the next line on the file env.d/development/dev, it works has expected:
RICHIE_ES_HOST=elasticsearch

This won't work:
RICHIE_ES_HOST=elasticsearch_unexistence

But with this pull request it is possible to use an elastic search high availability cluster, using configuring like:
RICHIE_ES_HOST=elasticsearch_1,elasticsearch_2,elasticsearch_3

or
RICHIE_ES_HOST=elasticsearch_1:9200,elasticsearch_2:9200,elasticsearch_3:9200

@igobranco @mbenadda perfect 💪


Pool number in Pool Search should be searchable [100 OSMO reward!]

:beetle: Bug Bounty: Fix Needed! :hammer_and_wrench:
Reward: :trophy: 100 OSMO :trophy:
We are excited to announce a bug bounty for third-party developers! If you've got the skills and know-how, here's your chance to earn some OSMO and contribute to our project.
Issue Description :page_facing_up:
On the pools page, the user should be able to search pools by number (e.g. 1135, 1136) in addition to the name of the pool
Expected Behavior :bulb:
As a user, I should see the OSMO/ATOM pool show up when searching either 'OSMO' or '1135'. The input should not care about whether or not I enter the '#' sign.
Current Behavior :x:
As a user, typing pool numbers into the current input will not yield the expected result
Requirements for the Bounty :checkered_flag:

[ ] Submit a pull request with a verified fix to the issue.
[ ] The fix should not introduce any new bugs or vulnerabilities.
[ ] Code should follow our project's style and contribution guidelines.
[ ] Your solution will be reviewed by our team, and the bounty will be awarded upon approval.

How to Claim Your Bounty :moneybag:

[ ] Fork our repository.
[ ] Create a new branch for your fix.
[ ] Submit a pull request to our main branch.
[ ] Include detailed information about your fix and how it addresses the issue.
[ ] Once reviewed and merged, the 100 OSMO will be transferred to your wallet.

We look forward to your contributions and thank you for helping improve our project!

Fixed: 2481 pool search

Fixed in https://github.com/osmosis-labs/osmosis-frontend/pull/2505

Fixed in https://github.com/osmosis-labs/osmosis-frontend/pull/2505

@MaxMillington Sir my reward is pending

@HarjobandeepSingh Should be sent now

@HarjobandeepSingh Should be sent now

Ok sir


add MessageQueue class

When using Connection.add_message_callback from python, there's a potential for deadlocks:

if the message receiving thread receives a message:

takes the _message_callback_mtx lock
calls back into python which takes the GIL lock

if the main thread calls Connection.expect (or receive):

GIL lock is held
takes the _message_callback_mtx lock So both threads take the locks in opposite order, which can result in deadlocks.

To prevent this we could make sure libmav does not hold locks when calling back to python, unlock GIL when calling Connection.expect (and others), or ensure the receive thread does not call back into python. This patch implements the last solution by introducing an (async) message queue. It allows python code to receive and handle messages at well-defined points.

Thanks, I rebased to main and added feature to use python iterators and len functions.
queue = libmav.MessageQueue(client_conn)

# wait a bit and do other work

print(f"Have {len(queue)} messages in queue")  # will have some messages in queue when received

for message in queue:
    print(message.name)

print(f"Have {len(queue)} messages in queue") # will be empty after iterating through.


Option to log http headers in one line

Option to log http headers in one line for saving quota of logline/second

This looks like a useful change, but we generally don't release incremental improvements to the logging interceptors.  Instead we encourage people to clone the class and add the functionality you need.  There are lots of little features like this that have been requested, and we don't aim to make everyone happy with a configurable implementation.


Examples

Add more examples and use cases
also fix example tests and write about tests in the readme

add example for using dateRange

add example to load entire folder with *

Fix examples in readme


Revert refactored code

will be done later. for now, new "Model" will have another name instead.

hmmm, I think it is still a few commit ahead.
Alternatively,
can try is to copy "model" to another file, i suppose majority of changes happen there..
then, revert back for a long time and copy back the model....
Another choice is to copy the logic part of code from "old commit" from the organization.. and replace the current model with the old model


UI Doesn't Preserve Multiline Input Strings (nor Render Strings with Newlines)

Bug bankruptcy.

Bug bankruptcy.


[paragon-openedx.netlify.app] Form.Checkbox with the disabled prop is available for selection by the cursor

Bug description
Form.Checkbox with the disabled prop is available for selection by the cursor.
https://github.com/openedx/paragon/assets/93188219/d64a5104-57e5-421c-b2dd-0abf8cbca806
### Tasks
- [ ] Form.Checkbox with a disabled prop that is not selectable by the cursor
- [ ] Check other components with disabled props for correctness behavior

PR: https://github.com/openedx/paragon/pull/2888

We decided not to do this because in other design systems disabled checkbox, radio and etc. they can be highlighted.
Also answer from ChatGPT on this point:

Generally, disabling text selection for labels (or any content) on your website is not recommended for several reasons:
User Experience: Allowing text selection is a standard behavior across most web applications and websites. Disabling it can lead to frustration or confusion for users who might want to copy text for legitimate reasons, such as taking notes, copying configuration details, etc.
Accessibility: Disabling text selection can negatively impact accessibility. Users who rely on assistive technologies or specific interaction methods may find it more difficult to interact with your content. It's important to ensure that your website is usable and accessible to all users, including those with disabilities.
Consistency with Web Standards: The web is built on certain foundational principles, including the ability to select and copy text. Deviating from these standards without a compelling reason can harm the overall user experience and accessibility.


Incorrect statement about the validity period of Cluster CA certificates

The text in the purple frame on this azure-docs page says:
AKS clusters created prior to March 2019 have certificates that expire after two years.
Any cluster created after March 2019 or any cluster that has its certificates rotated have
Cluster CA certificates that expire after 30 years.
[...]
you can check the expiration date of your cluster's certificate. For example, the following
Bash command displays the certificate details for the myAKSCluster cluster.

kubectl config view --raw -o<EMAIL_ADDRESS>== 'myAKSCluster')].cluster.certificate-authority-data}" | base64 -d | openssl x509 -text | grep -A2 Validity

Our company owns an AKS cluster created on May 20, 2019 (which is obviously after March 2019). The output of the above command looks liike this:
[ADMIN]% kubectl config view --raw -o<EMAIL_ADDRESS>== 'ace_cluster')].cluster.certificate-authority-data}" | base64 -d | openssl x509 -text | grep -A2 Validity
        Validity
            Not Before: May 20 08:05:47 2019 GMT
            Not After : May 12 08:15:47 2049 GMT

(Note that the expiration date is not quite 30 calendar years into the future, but rather 30 * 365 days after the creation. For discussions regarding this, see issue https://github.com/MicrosoftDocs/azure-docs/issues/75550 .)
However, on May 19 08:15:47 2021 GMT our AKS cluster certificate stopped working, exactly 2 * 365 days after its creation!
We were forced to recycle the certificate as soon as possible, giving very short notice to our clients.
This caused us major embarassment with our clients and was a big inconvenience for some of them.
Now, here is the output from the command above for the new certificate:
[ADMIN]% kubectl config view --raw -o<EMAIL_ADDRESS>== 'ace_cluster')].cluster.certificate-authority-data}" | base64 -d | openssl x509 -text | grep -A2 Validity
        Validity
            Not Before: May 19 13:20:33 2021 GMT
            Not After : May 19 13:30:33 2051 GMT

At first glance, one might be fooled into thinking that we now finally have a 30-year certificate on our cluster!
But, alas, the certificate's validity is still only two years, as shown by this call to openssl -showcerts:
[ADMIN]% openssl s_client -showcerts -connect maze-prod-9e852cf7.hcp.westeurope.azmk8s.io:443 2>/dev/null | openssl x509 -noout -dates
notBefore=May 19 13:20:33 2021 GMT
notAfter=May 19 13:30:33 2023 GMT

To summarize: It appears that the 30-year convention described in the purple frame on the certificate-rotation documentation page is not actually active, but AKS still asserts that it is, when queried about a specific certificate. So what is going on here?
And is there any way to make a cluster certificate valid for more than two years at a time?

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

ID: 9b78509d-73eb-6c32-aee1-9b34685a64ff
Version Independent ID: 6f87cf70-1f5a-0f9e-862d-ae1436595f3b
Content: Rotate certificates in Azure Kubernetes Service (AKS) - Azure Kubernetes Service
Content Source: articles/aks/certificate-rotation.md
Service: container-service
GitHub Login: @mlearned
Microsoft Alias: mlearned

@ulflunde We are checking this and we will get back to you.

@andyzhangx

@ulflunde As per mentioned in the linked issue with similar problem our PG has confirmed that they are working on it and is their backlog. Since there is not much we can do right now will close the issue for time being. Once we have an update on same will keep this thread posted.
Thanks


[DOC] does "area" scale with image size?

Just looking for clarification on motion_detection: area - is this in square pixels? is it normalized somehow?
e.g. with height: 300, width: 300 and area: 1000 the area is approximately 1.1% of the image.  With height: 640, width: 360 and the same area: 1000, that area is now only 0.43% of the image.
If this is true, would it make better sense to specify area in percent?

Yes it is in square pixels.
Keeping it relative just like how min/max width/height works under labels would make a lot more sense, looking into it.


prometheus: Bump all to newest

Things done

[ ] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] OS X
[ ] Linux

[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Do you want me to split these into individual commits? FWIW, the various Prometheus repositories are co-developed and interdependent, so bumping just one would make little sense.
Note that the statsd_bridge repository has changed name.
I have tested execution of Prometheus, node_exporter and alertmanager. I don't have a functional setup for the others.

The node-exporter won't build for me because the megacli test fails:
=== RUN   TestMegaCliCollectorDoesntCrash
--- FAIL: TestMegaCliCollectorDoesntCrash (0.03s)
	megacli_test.go:93: fork/exec ./fixtures/megacli: no such file or directory
=== RUN   TestMemInfo
--- PASS: TestMemInfo (0.00s)
=== RUN   TestMemInfoNuma
--- PASS: TestMemInfoNuma (0.00s)
=== RUN   TestNetDevStats
--- PASS: TestNetDevStats (0.00s)
=== RUN   TestNetStats
--- PASS: TestNetStats (0.00s)
=== RUN   TestDefaultProcPath
--- PASS: TestDefaultProcPath (0.00s)
=== RUN   TestCustomProcPath
--- PASS: TestCustomProcPath (0.00s)
=== RUN   TestDefaultSysPath
--- PASS: TestDefaultSysPath (0.00s)
=== RUN   TestCustomSysPath
--- PASS: TestCustomSysPath (0.00s)
=== RUN   TestSockStats
--- PASS: TestSockStats (0.00s)
=== RUN   TestSystemdCollectorDoesntCrash
--- PASS: TestSystemdCollectorDoesntCrash (0.00s)
=== RUN   TestTCPStat
--- PASS: TestTCPStat (0.00s)
=== RUN   TestParseTextFiles
--- PASS: TestParseTextFiles (0.00s)
FAIL
exit status 1
FAIL	github.com/prometheus/node_exporter/collector	0.057s
builder for ‘/nix/store/rmcsw3370v30vwasbspydcpfkib1000w-go1.6-node_exporter-0.12.0.drv’ failed with exit code 1
error: build of ‘/nix/store/rmcsw3370v30vwasbspydcpfkib1000w-go1.6-node_exporter-0.12.0.drv’ failed

I investigated a bit, but not sure what's happening here.

Fixed and pushed as 31a8eee841ba85d05ebfdb286cfad6a8de948d6c.
Also updated prometheus to 1.0.0: 328a77f60b3aee558407d08525db34e06fbfafd7


Pr 155 take2

update pr/155 to be up to date with master
i ran the tests and all passed

Merging this now. Sorry to flip-flop but we're going to merge it initially with the configuration flag. We're looking to make this the default behavior in newer versions of statsd

Btw, Thank you very much for your contribution and sorry for the HUGE delay in getting it merged.

thank you !
On Sat, Feb 7, 2015 at 2:23 AM, Patrick Koch<EMAIL_ADDRESS>wrote:

Btw, Thank you very much for your contribution and sorry for the HUGE
delay in getting it merged.
—
Reply to this email directly or view it on GitHub
https://github.com/etsy/statsd/pull/451#issuecomment-73338269.

--
Best Regards,
Lang Shay Co-founder and VP R&D,
M: +972-543005350,
Address : Ha-Kharoshet St 32, Ra'anana,P.O. Box 3006,Israel.map
https://www.google.com/maps/place/Ha-Kharoshet+St+32/@32.1973151,34.8801707,17z/data=!3m1!4b1!4m2!3m1!1s0x151d38619ed7ae5f:0xb5b82e36821d737a
view
https://a83a11f5-a-579c7342-s-sites.googlegroups.com/a/anodot.com/anodot/pictures/Screen Shot 2014-07-01 at 10.02.41 AM.png?attachauth=ANoY7cru0aQaUJ5SrkmTDMu72PCgC4x-V7_gtGBLr5UgfTAfBPR6qpsrXkl2hW6-XmUV06auLyUyGwboY8C1F_BWg0QMCts7cIfcboY7X4soSVSKHz0dzTKbDfJs37LBANZSgO8VpCSDbNMII8N9fejDJbT4GovD21MeZt8aits1GIRhE7IO6Jw2YdjIYqg1Ps8rbV2NgoWAyxTRcpsfxILuk81P5xW0BAYiy32G1OohK-SRjETl3J4SZwvJ3JAZKWhh37dFnpQY&attredirects=0
Anodot Ltd.


Load every api function from c library

Currently you are able to load a subset of api function with dart_api_dl.h and dart_api_dl.c, as I described here: https://github.com/dart-lang/sdk/issues/47356
This is already quite useful. I am using it for async calls to a native library. But I find it quite hard, to convert all these complex data structures to dart code, especially, because with Dart_PostCObject_DL you can only send quite limited data structures.
I would prefer to create Dart Objects directly from C, but the necessary functions are not provided by the dl loader. How can I load all the api functions?

I would prefer to create Dart Objects directly from C, but the necessary functions are not provided by the dl loader.

We don't want to allow this because this implies reflective access to Dart objects - exactly what FFI is designed to avoid.
The appropriate design for the bindings layer is to send C objects to Dart and create Dart objects on the Dart side, not on the C side.
Another approach is to create helper functions in Dart for constructing the objects you need and call these helpers from C.
But the first approach is preferable, for a variety of reasons.


commandlineparser

Fixed issue in commandlineparser library. ElevateOptions.cs
Add enhancement for dash dash in values generation. Program.cs

Resolved with new version of commandlineparser library.
https://github.com/gsscoder/commandline/pull/255


bump gradle version to 4.1.1

Signed-off-by: anupritaisno1<EMAIL_ADDRESS>

Should say Android gradle plugin instead of gradle, and it should be done for Auditor too.

Should say Android gradle plugin instead of gradle, and it should be done for Auditor too.


docs(Readme): Make logos larger

Hi, thanks for submitting a Pull Request! :balloon:
Before submitting, please be sure to check a few things:
Commit names formatting
This repository is automatically published to npm with
semantic-release.