Error when indexing a table with BIGINT

What went wrong?
When creating a table using BIGINT on a date column and inserting a set of 10 rows, a ScalaMatch error appears.
We would need to investigate the flow for the BIGINT type. Is weird, because when using CREATE TABLE(id LONG) it maps the type to BIGINT in the SHOW CREATE TABLE statement. But the indexing works ok 🤔
How to reproduce?
Different steps about how to reproduce the problem.
1. Code that triggered the bug, or steps to reproduce:
spark.sql("CREATE TABLE table(date BIGINT) USING qbeast OPTIONS('columnsToIndex'='date')")
spark.sql("INSERT INTO table SELECT temp_date FROM temp_view")

2. Branch and commit id:
main
3. Spark version:
On the spark shell run spark.version.
3.5.0
4. Hadoop version:
On the spark shell run org.apache.hadoop.util.VersionInfo.getVersion().
3.3.4
5. How are you running Spark?
Are you running Spark inside a container? Are you launching the app on a remote K8s cluster? Or are you just running the tests in a local computer?
Local
6. Stack trace:
Trace of the log/error messages.

java.lang.illegalargumentexception: requirement failed
        at scala.Predef$.require(Predef.scala:268)
        at io.qbeast.core.model.CubeId$.containers(CubeId.scala:88)
        at io.qbeast.core.model.CubeDomainsBuilder.computeWeightsAndSizes(CubeDomainsBuilder.scala:132)
        at io.qbeast.core.model.CubeDomainsBuilder.resultInternal(CubeDomainsBuilder.scala:118)
        at io.qbeast.core.model.CubeDomainsBuilder.result(CubeDomainsBuilder.scala:114)
        at io.qbeast.spark.index.DoublePassOTreeDataAnalyzer$.$anonfun$computePartitionCubeDomains$6(OTreeDataAnalyzer.scala:177)
        at org.apache.spark.sql.execution.MapPartitionsExec.$anonfun$doExecute$3(objects.scala:198)

I am not able to reproduce the error using a synthetic dataset in main.
I either need:

The original data that was written.
Test with previous version (0.7.0). Will try this before asking for the data.

Cannot reproduce with version 0.7.0 :/
Will try with a subset of the original data.

@cdelfosse needs to provide a way to reproduce.

I can reproduce this bug in the qbeast demo data studio (https://qbeast-demo.cloud.qbeast.io/), but not locally:
$ spark-sql
> use qbeast_demo;

> CREATE TABLE test (
    date BIGINT
)
USING qbeast
OPTIONS (columnsToIndex "date", cubeSize "100000")
LOCATION 's3://qbeast-demo/test/';

-- Transform the date which is a string as a bigint, and insert into test
> INSERT INTO TABLE test SELECT CAST((unix_timestamp(to_timestamp(date, "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")) * 1000 + SUBSTRING(date, 21, 3)) AS BIGINT) AS timestamp_bigint FROM datadog_logs_qbeast limit 10;

24/10/31 09:02:52 WARN TaskSetManager: Lost task 0.0 in stage 48.0 (TID 8514) (<IP_ADDRESS> executor 1): java.lang.IllegalArgumentException: requirement failed
        at scala.Predef$.require(Predef.scala:268)
        at io.qbeast.core.model.CubeId$.containers(CubeId.scala:88)
        at io.qbeast.core.model.CubeDomainsBuilder.computeWeightsAndSizes(CubeDomainsBuilder.scala:132)
        at io.qbeast.core.model.CubeDomainsBuilder.resultInternal(CubeDomainsBuilder.scala:118)
        at io.qbeast.core.model.CubeDomainsBuilder.result(CubeDomainsBuilder.scala:114)
        at io.qbeast.spark.index.DoublePassOTreeDataAnalyzer$.$anonfun$computePartitionCubeDomains$6(OTreeDataAnalyzer.scala:177)
        at org.apache.spark.sql.execution.MapPartitionsExec.$anonfun$doExecute$3(objects.scala:198)
...

I made a video of how to reproduce the bug: https://drive.google.com/file/d/1G9bUKJqV-b6O8IykHl6tFwzvNk1cGU3Z/view
Here is the backtrace at the end:
24/11/04 11:34:48 WARN TaskSetManager: Lost task 0.0 in stage 54.0 (TID 11322) (<IP_ADDRESS> executor 1): org.apache.spark.SparkException: [FAILED_EXECUTE_UDF] Failed to execute user defined function (`SparkPointWeightIndexer$$Lambda$5782/0x00007f2b45836d18`: (struct<date:bigint>, int) => array<binary>).
        at org.apache.spark.sql.errors.QueryExecutionErrors$.failedExecuteUserDefinedFunctionError(QueryExecutionErrors.scala:198)
        at org.apache.spark.sql.errors.QueryExecutionErrors.failedExecuteUserDefinedFunctionError(QueryExecutionErrors.scala)
        at org.apache.spark.sql.catalyst.expressions.GeneratedClass$GeneratedIteratorForCodegenStage2.generate_doConsume_0$(Unknown Source)
        at org.apache.spark.sql.catalyst.expressions.GeneratedClass$GeneratedIteratorForCodegenStage2.processNext(Unknown Source)
        at org.apache.spark.sql.execution.BufferedRowIterator.hasNext(BufferedRowIterator.java:43)
        at org.apache.spark.sql.execution.WholeStageCodegenEvaluatorFactory$WholeStageCodegenPartitionEvaluator$$anon$1.hasNext(WholeStageCodegenEvaluatorFactory.scala:43)
        at scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:460)
        at org.apache.spark.shuffle.sort.BypassMergeSortShuffleWriter.write(BypassMergeSortShuffleWriter.java:140)
        at org.apache.spark.shuffle.ShuffleWriteProcessor.write(ShuffleWriteProcessor.scala:59)
        at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:104)
        at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:54)
        at org.apache.spark.TaskContext.runTaskWithListeners(TaskContext.scala:161)
        at org.apache.spark.scheduler.Task.run(Task.scala:141)
        at org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$4(Executor.scala:620)
        at org.apache.spark.util.SparkErrorUtils.tryWithSafeFinally(SparkErrorUtils.scala:64)
        at org.apache.spark.util.SparkErrorUtils.tryWithSafeFinally$(SparkErrorUtils.scala:61)
        at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:94)
        at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:623)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: requirement failed
        at scala.Predef$.require(Predef.scala:268)
        at io.qbeast.core.model.CubeId$.containers(CubeId.scala:88)
        at io.qbeast.core.model.PointWeightIndexer.findTargetCubeIds(PointWeightIndexer.scala:44)
        at io.qbeast.spark.index.SparkPointWeightIndexer.$anonfun$findTargetCubeIdsUDF$1(SparkPointWeightIndexer.scala:38)
        at io.qbeast.spark.index.SparkPointWeightIndexer.$anonfun$findTargetCubeIdsUDF$1$adapted(SparkPointWeightIndexer.scala:35)
        ... 19 more

Okei, this issue seems to be turning out far more complex than we initially thought. I'm still trying to reproduce the behavior locally with a small amount of data, but here are my findings:

For context: when indexing a DataFrame, we load it twice. One for analyzing the min/max and count values of the columns, and other to actually index each row.
I've experienced the same error with different configurations of maxNumberOfExecutors. But using just 1 give no problems.
Using the LIMIT clause gives non-deterministic results when analyzing and indexing the DataFrame. This makes the initial min/max of the DataFrame different that the final inserted data. And we need the min/max for normalizing the values to the [0.0, 1.0) space. That is why CubeId fails: it detects a value outside this range and does not know how to create the particular cube.
Appending new data to the source table while indexing can give the same inconsistency, because min/max is affected after being computed. Example:

Insert Data (1, 2, 3)
Analyze (1, 2, 3) = min:1, max:3
Insert Data (4, 5, 6)
Finish inserting (4, 5, 6)
Index (1, 2, 3, 4, 5, 6) -> (4, 5, 6) falls out of min:1, max:3 -> error

This behavior is not experienced in smaller scales, because the time window between Analyzing the data frame and Indexing is not big enough. But if we are talking about large amounts of data, I think it can cause inconsistencies.

A solution:

Use columnStats to hardcode the Revision parameters. If we are indexing timestamps, we can create a Revision that goes from the first date + one year forward.

CREATE TABLE test (date BIGINT)
USING qbeast
OPTIONS (
    columnsToIndex = "date",
    cubeSize = "100000",
    columnStats = "{\"date_min\":<PHONE_NUMBER>250, \"date_max\":<PHONE_NUMBER>741}"
);

I've tested the solution proposed (columnStats), and the error does not show anymore. It fails due to a task killed when arriving at the DataWriter stage, but that is another issue.
Another worrying problem might be the usage of dynamicAllocation.
As far as I understand, dynamicAllocation asks for resources if needed. Are we sure that these resources have access to the cached data (which I don't think so)? If that is the case, it can be possible to face inconsistencies when doing the double pass through the DataFrame. That would explain why experiments with a single core are deterministic.

What I am sure right now is that this issue should be close, and I would open another one with a better explanation.

The error can be reproduced locally with this code:
    // Define the test data
    val df1 = spark.range(1, 10000).toDF("id") // bigger append

    // Specify the path where data will be written
    // val tmpWarehouse = "/tmp/qbeast_concurrency_test"
    val destinationTable = "append_test_table_destination"
    val sourceTable = "append_test_table_source"
    val destinationPath = s"$tmpWarehouse/$destinationTable"
    val sourcePath = s"$tmpWarehouse/$sourceTable"

    spark.sql(s"""CREATE TABLE $sourceTable (id LONG)
         | USING qbeast LOCATION '$sourcePath'
         | OPTIONS (columnsToIndex 'id', cubeSize '100')""".stripMargin)
    spark.sql(s"""CREATE TABLE $destinationTable (id LONG)
         | USING qbeast LOCATION '$destinationPath'
         | OPTIONS (columnsToIndex 'id', cubeSize '100')""".stripMargin)

    // Define the append function
    def appendDataSource(df: org.apache.spark.sql.DataFrame): Unit = {
      df.write.format("qbeast").mode("append").save(sourcePath)
    }

    def appendDataDestinationQbeast(): Unit = {
      spark.sql(s"INSERT INTO $destinationTable SELECT id FROM $sourceTable")
    }

    // First append
    appendDataSource(df1)

    // Define thread for append1
    val thread1 = new Thread(new Runnable {
      def run(): Unit = {
        try {
          println("Starting append in DESTINATION...")
          appendDataDestinationQbeast() // Perform append2
          println("append in DESTINATION completed.")
        } catch {
          case e: Exception =>
            println(s"Error: $e")
        }
      }
    })

    // Define thread for append2

    val thread2 = new Thread(new Runnable {
      def run(): Unit = {
        println("Starting append in SOURCE...")
        val numberOfSmallAppends = 10
        var count = 0
        var lastRange = 100000
        while (count < numberOfSmallAppends) {
          println(s"Appending $count")
          val df = spark.range(lastRange, lastRange + 10).toDF("id")
          try {
            appendDataSource(df) // Perform append1
            count += 1
            lastRange += 10
            println(s"Appended $count finished")
          } catch {
            case e: Exception =>
              println(s"Error: $e")
              return
          }
        }
        println("append in SOURCE completed")
      }
    })

    // Start both threads
    thread1.start()
    thread2.start()

    // Wait for both threads to complete
    thread1.join()
    thread2.join()

    // Verify the results
    val resultSourceDF = spark.read.format("qbeast").load(sourcePath)
    val resultDestinationDF = spark.read.format("qbeast").load(destinationPath)

    // Check row count to verify both DataFrames were appended
    val expectedRowCount = resultSourceDF.count()
    val actualRowCount = resultDestinationDF.count()

    assert(
      actualRowCount == expectedRowCount,
      s"Test failed! Expected $expectedRowCount rows but found $actualRowCount.")


Bring back Schema Registry to type complete

And enable verifytype at the same time, so regression won't happen again

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-schemaregistry


Fly deployment failed

https://github.com/GiteaBot/gitea-backporter/actions/runs/4584934309/jobs/8096741750

From fly.io "These kinds of tokens are an entirely new concept! We're still working out the kinks. We'll do our best, but we may have reset these tokens periodically while we get things right."
Our token was probably reset. I've generated a new one and added it.


feat: allow user local commands

The Issue
Developers love to create local shorthand command to run a more sophisticate commands or a sequence of commands that they run often but still don't qualify to merged int the project .ddev/commands because they are not generic enough
How This PR Solves The Issue

User/developers local commands are stored inside .ddev/local_commands directory
The .ddev/local_commands directory is not under VCS control.
The .ddev/local_commands directory follows the .ddev/commands directory structure and logic.
In case of collision, user local commands take precedence over project and global commands
As scope, user local commands are project commands. They are not available globally

Manual Testing Instructions
Create a command inside .ddev/local_commands/host and test the command
Automated Testing Overview
Follows the global & project commands logic
Related Issue Link(s)
None
Release/Deployment Notes
Still needs documentation

I see tests are failing but now idea how to debug & fix. Not a Go guy

Hi @claudiu-cristea - I can see two ways to do this just fine without any changes to DDEV:

Global commands. They work fine and are under control of the person who is using the machine (unless the team checks in ~/.ddev/commands, I don't know teams that do that, but maybe they're out there.
Just gitignore certain things in project .ddev/commands directory using the top-level project gitignore. A team that wanted to follow this practice could just gitignore .ddev/commands/*/local or something like that.

Of course we can do tricks to accomplish that, but...

Global commands. They work fine and are under control of the person who is using the machine (unless the team checks in ~/.ddev/commands, I don't know teams that do that, but maybe they're out there.

The problem is they are global. I was thinking that devs might have project specific commands (I do). Maybe they are used with the same local comand name and scope but with different implementation depending on the project

Just gitignore certain things in project .ddev/commands directory using the top-level project gitignore. A team that wanted to follow this practice could just gitignore .ddev/commands/*/local or something like that.

Not sure I get this. Does DDEV gather commands from subdirs (e.g.  .ddev/commands/host/local)? I didn't test this but still it still need a "team rule". Not saying it's a big deal but having an out-of-the-box DDEV feature seems better for me

Just gitignore certain things in project .ddev/commands directory using the top-level project gitignore. A team that wanted to follow this practice could just gitignore .ddev/commands/*/local or something like that.

If I understand you correctly, you want custom commands that are not under source control, but are specific to a project.
You can already do this by adding those commands to the project's .gitignore.
But I'm afraid this PR can't succeed as it is, because it hasn't had enough conversation, and it seems to be aimed at meeting a need only of your team and doesn't seem to be fully visualized yet.
Could you please open an issue that explains exactly what problem you're trying to solve and why you can't do it with current facilities?
I'm going to close this for now, because the conversation has to take place before the implementation. Thanks for the contribution though, and I hope that it works out for everybody and that this got all the thinking going more clearly.


How edit asp.net role data

I have several roles in system. I want rename one of this but its return me error {"Database operation expected to affect 1 row(s) but actually affected 0 row(s). Data may have been modified or deleted since entities were loaded. See http://go.microsoft.com/fwlink/?LinkId=527962 for information on understanding and handling optimistic concurrency exceptions."}
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()

AspNetRole

        @Html.ValidationSummary(true, "", new { @class = "text-danger" })
        @Html.HiddenFor(model => model.Id)

            @Html.LabelFor(model => model.Name, htmlAttributes: new { @class = "control-label col-md-2" })

                @Html.EditorFor(model => model.Name, new { htmlAttributes = new { @class = "form-control" } })
                @Html.ValidationMessageFor(model => model.Name, "", new { @class = "text-danger" })

                <input type="submit" value="Save" class="btn btn-default" />

}

  public ActionResult Edit([Bind("Id,Name")] IdentityRole aspNetRole)
        {
            if (ModelState.IsValid)
            {

                context.Entry(aspNetRole).State = EntityState.Modified;
                context.SaveChanges();
                return RedirectToAction("Index");
            }
            return View(aspNetRole);
        }

Please show us the code where context is coming from.

Triage: we are closing this issue because we haven't heard back in a long time. Feel free to reactivate if you are still experiencing problems with it.


[Master] Fix goto definition feature on nested types

Purpose
$subject
Fixes #40154
https://github.com/ballerina-platform/ballerina-lang/assets/46857198/903292bc-85b9-4f5a-ae7b-a5cee4b52d70
Check List

[x] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[x] Added necessary tests

[x] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[x] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

@LakshanWeerasinghe Was the .references() also not working in the nested type defs?
If so, need to add a couple of tests in the Semantic API as well.


Bump undici to 5.28.3 to fix CVE-2024-24758

Fixes https://github.com/advisories/GHSA-3787-6prv-h9w3

@mrbbot Could you please merge this fix?


Allow paste to upload in Firefox, safari, and possibly IE

Currently, this is only supported in browsers that fully support the clipboard API, which means Chrome.  Support for upload via paste will be a bit more complicated and potentially limited (depending on the approach) for browsers that do not fully implement the clipboard API.  See case #487 for details regarding support for upload via paste already added for browsers that support the clipboard API.

Hello, any news on the subject? 2 years passed and was wondering if browser now fully support it. I have no experience of other browsers, but services like Slack or Trello do provide it regardless of the browser, or not?

was wondering if browser now fully support it

Good question. Further investigation with backing evidence is the next step before going forward.

Good question. Further investigation with backing evidence is the next step before going forward.

I don't have enough knowledge to understand if Trello's or Slack's or the example I posted on JSFiddle solve the problem in the same way or not. By looking the code in JSFiddle are you able to determine if the solution put in practice will work because indeed the browsers are now fully supporting the feature, or if a workaround is put in place?

That fiddle is a bit noisy and I don't have the time to read through it. The best approach would be to see how far we can get with the implementation in Fine Uploader that already works for Chrome. Perhaps it is as simple as making a few trivial adjustments to make use of support for the clipboard API in other browsers.

I checked caniuse and the situation seems to not have changed in regards to the need of having a content editable div. And that jsfiddle uses that. The question is: how on hell Trello/Slack/Jira and the myriads of other services do?

They must use a contenteditable div


Validate resource sets argument of the put_version endpoint (#4334)

Pull request opened by the merge tool on behalf of #4334

Merged into branches iso5 in f36ba6f4a6fc838dc15317b73ad838902959894c


Scenery - Is it maintained?

Hi. This scenery module is really good and helpful. It no longer works. Is it still  maintained? Shame to lose it

https://github.com/VanceCole/scenery/issues/4#issuecomment-1073975846


Add trainsystem monitor

Added the trainsimulation/monitoring parts of the demo

Can be closed. This is merged with PR #19.


Question: Custom validation

Hi!
I have a login form (2 textfields and a button). If the button is clicked I send the username and pw to the server for validation. What I'd like is to show the validation result in the login form eg. add a red outline and an error text to the textfields.
Is there a way to achive this? I did not find an IsValid (or similar) attribute on MatTextField.
Thanks.

Maybe this can help you a bit?
<MatTextField Label="username" @bind-Value="@username" />
<ValidationMessage For="@(() => username)" />

What might help you as well, is something like this:
<EditForm<EMAIL_ADDRESS>Model="LoginState">
   @if (this.ValidatingLogin)
   {
      "Validating"
      <MatProgressBar Indeterminate="true"></MatProgressBar>
   }

   <DataAnnotationsValidator />
   <ValidationSummary />
   <MatStringField @bind-Value="this.LoginState.UserName" Label="UserName" Icon="person" IconTrailing="true"
   FullWidth="true" Required="true"<EMAIL_ADDRESS>/>
   <MatStringField @bind-Value="this.LoginState.Password" Label="Password" Icon="lock_outline" IconTrailing="true"
   FullWidth="true" Required="true" Type="password"<EMAIL_ADDRESS>/>
   <MatButton Type="submit" Raised="true"<EMAIL_ADDRESS></EditForm>

SubmitLogin handles the call to the server.
LoginState is just a state variable with username and password that implements IValidatableObject and the method public IEnumerable<ValidationResult> Validate(ValidationContext validationContext).
ValidatingLogin is a variable indicating whether the server is currently validating the login or not.


Installed from Webstore, extension is not working

Hi there, I was really excited with the direction of your extension as I am constantly looking for a better way to manage tabs, sessions, and bookmarks. I installed via the webstore but the extension did not work. I reloaded it and also went to the chrome-extension://afkknkdbgondbbfjehipnjmojndnjhjg/ page where it said:
Your file couldn’t be accessed
It may have been moved, edited, or deleted.
ERR_FILE_NOT_FOUND
I am on Mac if it matters. I hope its ok to post here and I hope to hear from you, as I said, I love the direction you've been taking it. I might try to download the crx and load as a developer.

Hi there, and thanks a lot for reaching out!
I assume you were using a recent version of chrome? When you say "did not work", so you mean that nothing happened, i.e. no new tab with the extension opened? But the extension was listed in the "manage extension" page (as you were able to reload it), right?
Did you start with a blank new window (no other tabs than the 'new tab' one)? It seems like I can reproduce this behaviour in that case...
As a workaround for now, could you try this link instead (with the extension being already installed):
chrome-extension://afkknkdbgondbbfjehipnjmojndnjhjg/www/index.html
(that's your original link with "/www/index.html" added).
Please let me know about your findings and if the link above actually did work.
Cheers
Carsten

Expecting fix in next version (0.3.1). Tab for extension is now explicitly opened by the extension, not by browser default.

the new version (0.3.1) is released now and this bug should be fixed.


change handling of embedded version information

while building the znc-push module I realized at one point that push.cpp was
showing changes, even though I had not actually made any explicit changes to
the sources.  This was due to the editing of this file that happens as part of
the build process.
rather than modifying push.cpp as part of the build process, this
generates version.h and includes it in push.cpp.  This is cleaner
(does not lead to false changes in push.cpp) and makes it easier for a
packager to provide explicit version information.

In theory, I like this idea, but unfortunately, this breaks a large use-case for znc-push users who download only the raw push.cpp and then run znc-buildmod directly.  This will break that sort of use case, and I'd like to avoid that if at all possible.
jreese@jreese-mbp ~ » znc-buildmod push.cpp
Building "push.so" for ZNC 1.7.x... push.cpp:11:10: fatal error: 'version.h' file not found
#include "version.h"
         ^
1 error generated.
[ !! ] Error while building "push.so"

How about this?

Other than my comment above, I like this method much better than using sed.  :+1:

There:
# znc-buildmod push.cpp
Building "push.so" for ZNC 1.6.1... [ ok ]

And with make:
# make
CXXFLAGS=" -DPUSHVERSION=\"v1.0.0-112-g4087133\" " LIBS=" " \
   znc-buildmod push.cpp
Building "push.so" for ZNC 1.6.1... [ ok ]

And even without git installed:
# make
/bin/sh: git: command not found
CXXFLAGS=" -DPUSHVERSION=\"dev\" " LIBS=" " \
   znc-buildmod push.cpp
Building "push.so" for ZNC 1.6.1... [ ok ]

And with an explicit version:
# make version=larstest
CXXFLAGS=" -DPUSHVERSION=\"larstest\" " LIBS=" " \
   znc-buildmod push.cpp
Building "push.so" for ZNC 1.6.1... [ ok ]

Love it, thank you!  :beers:


Task/scse 149

[SCSE-149] Added blogs.json and python script to import blogs onto payload.

@keykey117 can rename this PR?


Websocket error thrown from react-devtools

Hi,
I'm seeing an error thrown by React Devtools in the Chrome console on both the master and next-WIP branches when running npm run dev:
WebSocket connection to 'ws://localhost:8097/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
I've confirmed this isn't occurring in other React projects I'm working on, just this one that I cloned from the mobx-starter repo. My version of Chrome was updated today, and my version of react-devtools was reinstalled today as well. Any ideas why this may be happening?

Thanks for the work you've done here!

@bllfrnch Removing react-devtools package seems to have fixed it. The devtools still work with the browser extension.

Fixed indeed. Thanks very much!


[WIP] Adds 01ai Client to Distillabel

[WIP] Adds 01ai Client to Distillabel
01ai recently released their 01ai API and it's serving Yi-large which is a great model for distillabel purposes.
Open Tasks

[ ] Use Openai Async Client
[ ] create tests
[ ] Create a Compatible Client (reach goal)
[ ] produce documentation
[ ] make examples
[ ] (reach goal) make a fun blog post

✨✨ Here's an AI-assisted sketch of how you might approach this issue saved by @Josephrp using Copilot Workspace v0.22
Topic

Use Openai Async Client

Before

src/distilabel/llms/openai.py uses the OpenAI async client for generating responses.
OpenAILLM class in src/distilabel/llms/openai.py implements the agenerate method for asynchronous generation.
OpenAILLM class supports structured output using the instructor library.
OpenAILLM class uses the AsyncOpenAI client for making API requests.
OpenAILLM class handles various parameters like max_new_tokens, temperature, top_p, and stop for generation.
OpenAILLM class can generate responses in both text and JSON formats.
OpenAILLM class supports runtime parameters for base_url, api_key, max_retries, and timeout.

After

src/distilabel/llms/oneai.py now uses the OpenAI async client for generating responses.
OneAI class in src/distilabel/llms/oneai.py implements the agenerate method for asynchronous generation.
OneAI class supports structured output using the instructor library.
OneAI class uses the AsyncOpenAI client for making API requests.
OneAI class handles various parameters like max_new_tokens, temperature, top_p, and stop for generation.
OneAI class can generate responses in both text and JSON formats.
OneAI class supports runtime parameters for base_url, api_key, max_retries, and timeout.

Plan

src/distilabel/llms/oneai.py (CHANGE)

Implement the OneAI class using the OpenAI async client
Implement the agenerate method for asynchronous generation
Support structured output using the instructor library
Handle parameters like max_new_tokens, temperature, top_p, and stop for generation
Support runtime parameters for base_url, api_key, max_retries, and timeout

src/distilabel/llms/__init__.py (CHANGE)

Import the OneAI class from src/distilabel/llms/oneai.py
Add OneAI to the __all__ list

tests/unit/llms/test_openai.py (CHANGE)

Add test cases for the OneAI class
Test the agenerate method for asynchronous generation
Test structured output using the instructor library
Test handling of parameters like max_new_tokens, temperature, top_p, and stop for generation
Test runtime parameters for base_url, api_key, max_retries, and timeout

Sketch of implementation

View the changes
Details

Code analyzed at ba6f71f75ad58a7aa2ef306813c7d1cd73e14002

big thanks to the maintainers for this cool new thing i discovered here called Github Workspace , it's amazing and very cool ! 👍🏻 🥇

Thanks for the PR @Josephrp! If the 01.AI relies on the OpenAI client then maybe we can do like in the AnyscaleLLM or TogetherLLM in which we create a new class inheriting from OpenAILLM: https://github.com/argilla-io/distilabel/blob/main/src/distilabel/llms/anyscale.py
Did GitHub Copilot helped you with this PR? I haven't had the change to test it yet, looks cool :)

Thanks for the PR @Josephrp! If the 01.AI relies on the OpenAI client then maybe we can do like in the AnyscaleLLM or TogetherLLM in which we create a new class inheriting from OpenAILLM: https://github.com/argilla-io/distilabel/blob/main/src/distilabel/llms/anyscale.py
Did GitHub Copilot helped you with this PR? I haven't had the change to test it yet, looks cool :)

yes ! thank you for the references , it's much appreciated and this method is obviously prefered , i'll do it like that to keep it simple :-)
just making a small NER model this weekend so i can make a little bit of docs and tuts using this one 💪🏻

i'll use it today and tomorrow to make NER and Embeddings training pipelines like what you have in tutorials, didnt really find a nice place to make a unique examples so i'll do the write ups separately.

🙋🏻♂are there many breaking changes in the last two months i should be aware of ? @gabrielmbmb  :-)

01 ai YI api closed


Run selected text in interactive console get error after an indent code block

From<EMAIL_ADDRESS>on 2010-03-24T00:07:37Z
What steps will reproduce the problem?

select following code in editor:

s = 0
for i in xrange(10):
s += i
print s

Press Ctrl+F9 to run selected text in interactive console What is the expected output? What do you see instead? "print s" does't run, because for block is not finished. What version of the product are you using? On what operating system? Spyder 1.1.0alpha2

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=180

From pierre.raybaut on 2010-04-03T07:52:34Z
Actually the expected behavior is a syntax error, unless there is an empty line just
after the for loop. Now, Spyder was not behaving as expected when this empty line was
there because empty lines were ignored when sending lines to the interactive/external
consoles (now it's fixed: https://code.google.com/p/spyderlib/source/detail r= 3b34760818c155c6d1249c0445193712658343cd ).
To check what is the expected behavior, try to do the same thing in a standard Python
interpreter. Spyder's behavior is intended to be the same (if not, it's a bug).
Thanks for reporting this!
Status: Fixed


[Docs] Replace old Meshery logos

Current State
Many of the Meshery design specs have a deprecated version of the Meshery logo (with multi-mesh manager tagline). Here's an example.
Desired State

Check each Meshery design spec and remove / replace old logos with a tagline-less version:

https://github.com/meshery/meshery/blob/master/.github/assets/images/meshery/meshery-logo-dark-text.png
https://github.com/meshery/meshery/blob/master/.github/assets/images/meshery/meshery-logo-dark-text-side.png

Check each repository's readme.md and replace across all repos in github.com/meshery

Check for all reference to these files and replace across all repos in github.com/meshery

https://github.com/meshery/meshery/blob/master/.github/assets/images/meshery/meshery-logo-tag-dark-text-side.png
https://github.com/meshery/meshery/blob/master/.github/assets/images/meshery/meshery-logo-tag-light-text-side.png

Contributor Guides and Handbook

📚 Instructions for contributing to documentation

Meshery documentation site and source

🛠 Meshery Build & Release Strategy
🎨 Wireframes and designs for Meshery UI in Figma
🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack

@goldfishdolphin is this an item that you would like to undertake?

@leecalcote , don’t you think we need light logos for task 1?

I had originally written this issue with the Google Docs update  in mind. All Google Docs have a white background. I had later expanded the issue to include, readmes and other references in repos, though. So, there are two updates needed to this issue's description:

use of SVGs is preferred over PNGs in almost every case. Neither Google Slides nor Google Docs supports SVGs, though.
Other logo versions:

Horizontal:

meshery-logo-dark-text-side.png
meshery-logo-dark-text-side.svg
meshery-logo-light-text-side.png
meshery-logo-light-text-side.svg

Stacked:

meshery-logo-light-text.png
meshery-logo-light-text.svg
meshery-logo-dark-text.png
meshery-logo-dark-text.svg

I have edited the logos on following pages:
https://docs.google.com/document/d/1f7mGHtjHiywbN9UzwuldOX8x_Lpv2Ss8i4b045Np9OM/edit#heading=h.e9czs1wom8wl
https://docs.google.com/document/d/1QHBb3TRhlYDTvcwodnY-KX2v73RYNclL8UPlGE5U2Y8/edit#
Documentation
https://docs.google.com/document/d/1rIGxrT4rjpJ2sOi6yswkbUd-ryn0Le8iu-tKMBX9z9k/edit?usp=share_link
https://docs.google.com/document/d/1Ou__vQlnWm7MYmI_vw7hQLLtFo2l8OzDKe-FhsjBDJs/edit#
https://docs.google.com/document/d/1hlTwD139De4yvhJDPabY0pu2r8X5nnPmN3DUj7m7_n8/edit#heading=h.blih70a9hxp
https://docs.google.com/document/d/1l-JoBWm6jzT3DuffmZAMPHwOUuyhXw0aMC_RLB7F8bM/edit?usp=share_link
https://docs.google.com/document/d/1YnpJs6D_arzuE5ieqMyuJs3A3UYSVp9YZYhbc966sWg/edit#
https://docs.google.com/document/d/17guuaxb0xsfutBCzyj2CT6OZiFnMu9w4PzoILXhRXSo/edit#heading=h.q8ttkf83b5ru
https://docs.google.com/document/d/1t8Ilb72gpvkLXjywSAkaUOxN6arObC_xOLih66ggCUk/edit#heading=h.blih70a9hxp
Functional and Architecture
https://docs.google.com/document/d/1GFnh6R1W3HoqYGbtkO692wNhRv3eXuQZ8iI1MP9tgsA/edit#
https://docs.google.com/document/d/1v_wQgNmLa0riibd5Gq4A7TSF4-h-DkEueXiqjK870yY/edit#
https://docs.google.com/document/d/1b8JAMzr3Rntu7CudRaYv6r6ccACJONAB5t7ISCaPNuA/edit#
https://docs.google.com/document/d/1nBCrPg967euGyjSIfaAnfKXByhbTNUpBKQBzdamdJUU/edit#
https://docs.google.com/document/d/13Z5QTbKkViKUweGXhCqhttq54wHmwjQoQtOodi7NT7s/edit#heading=h.xi6m9msq5hfn
Env
https://drive.google.com/drive/folders/1mJKTq97ZmH13xRb_3CL_P8RAD6Pxeo2F?usp=sharing
Extensibility
https://drive.google.com/drive/folders/1rLfNAyIVO0rlPysE787jLAxzOE1yT98u

This is a healthy list. These are looking good. Not a crucial concern, but I wonder if the version of the Meshery PNG that we're embedding doesn't need to be a higher resolution version as they have the faintest appearance of fuzziness on the letter edges. I find this a bit Odd, since the meshery-logo-dark-text-side.png should be large enough that the effects of its rasterization shouldn't be noticeable. Hmpf. Go figure.

I have used the image given in task list

I ll replace them with
meshery-logo-dark-text-side.png

No more fuzziness around the edges of the logo. Perfecto. 👌

I have opened a pr https://github.com/meshery/meshery-cpx/pull/105 to change meshery-cpx repo logo.

@leecalcote I have updated logos in meshery-nginx-sm and meshery-cpx and created pull requests meshery-cpx/pull/105 , meshery-nginx-sm/pull/224


Full-screen and non-full-screen, login form relative position is different

In GitLab by @luotian-github on Aug 21, 2017, 16:31

In GitLab by @yhua123 on Nov 8, 2019, 07:35
by design now, will enhancement this in future.

In GitLab by @sokril on Nov 8, 2019, 08:08
closed

In GitLab by @sokril on Nov 8, 2019, 08:08
assigned to @yhua123


Error in connecting  to my node by trying some different node

I  have created my own node ,as shown below:
root@admin:~$ lncli getnodeinfo 03371209cf3513eed05c103973276676ae0602370077dbd1c79bd101198eb828f6{    "node": {        "last_update":<PHONE_NUMBER>,        "pub_key": "03371209cf3513eed05c103973276676ae0602370077dbd1c79bd101198eb828f6",
"alias": "03371209cf3513eed05c",
"addresses": [            {                "network": "tcp",                "addr": "<IP_ADDRESS>:9735"            }        ],        "color": "#3399ff"    },    "num_channels": 9,    "total_capacity": "8100000"}
Now when I try to connect this node by   any other node , I am getting following error:
"Connection Timeout . Cannot Find Peer id".

How are you trying to connect to the peer? There's no such thing as "peer id" in the current code.

The command i am using is:
"lncli connect 03371209cf3513eed05c103973276676ae0602370077dbd1c79bd101198eb828f6@<IP_ADDRESS>:9735"
"openchannel --node_key=03371209cf3513eed05c103973276676ae0602370077dbd1c79bd101198eb828f6 --local_amt=1000000"
and i am getting this error:
"Open New Channel Create a new channel with others.
Dashboard Open New Channel
Error
connection attempt to 03371209cf3513eed05c103973276676ae0602370077dbd1c79bd101198eb828f6@<IP_ADDRESS>:9735 is pending"
"Open New Channel Create a new channel with others.
Dashboard Open New Channel
Error
unable to find peer nodeID(03371209cf3513eed05c103973276676ae0602370077dbd1c79bd101198eb828f6), peerID(0)"
Does anyone have idea about that?

connection attempt to 03371209cf3513eed05c103973276676ae0602370077dbd1c79bd101198eb828f6@<IP_ADDRESS>:9735 is pending"

That means that the connection attempt you have to 03371209cf3513eed05c103973276676ae0602370077dbd1c79bd101198eb828f6 is pending. You can't open a channel with the peer until you actually connect to them.

There's also a --connect=host:port flag that can be passed to openchannel.

Do you have any idea why i am not able to connect to peer. My peer have public ip and visible on acinq explorer, but still can't open a channel via other peer.
How to set external ip for my node so that other nodes can open channels with me?
Thanks in advance

You must make sure you're not behind a firewall blocking the port (default 9735).

This is the status of my firewall . Still its not working. @halseth

Please Google "forwarding ports" and then use something like this to check that you port is open: https://www.yougetsignal.com/tools/open-ports/

Thanks for quick reply

how to open port for this ip address as shown in figure @halseth
Can u help me with this issue as i am begineer?
Thanks

Just goole something like "how to forward ports", there are plenty of guides out there :)
If you know what router you have, you can also refer to its manual.

I am providing --externalip=x.x.x.x randomly like this <IP_ADDRESS>
so will it work or we have to provide particular ip only
Thanks

You'll have to provide your real, non-random IP.
Closing, as this is not an issue with lnd.


Clean up and fix communication error in spec

Choose a PR Template
Switch to "Preview" on this description then select one of the choices below.
Click here to open a PR for a Data Plane API.
Click here to open a PR for a Control Plane (ARM) API.

CommunicationErrorResponse now looks correct


[CT-254] dbt-core - Snapshot - macro dbt_macro__create_schema takes not more than 1 argument(s)

https://github.com/dbt-labs/dbt-core/blob/3ad61d5d810aab8bf7bf7bc38f62d02348839c80/core/dbt/include/global_project/macros/materializations/snapshots/snapshot.sql#L9-L11
Hi I've raise this same issue in dbt-sqlserver, but the issue might actually lie here after further investigation. I'm running into the issue, "macro 'dbt_macro__create_schema' takes not more than 1 argument(s)", when attempting to do a simple snapshot. When I delete lines 9-11 in the above all goes well.
Please see additional details on dbt-sqlserver issue at https://github.com/dbt-msft/dbt-sqlserver/issues/208

@rlshuhart Thanks for opening, you're totally right! We need to make that create_schema call take a single Relation argument, rather than database + schema. This was a breaking change a long time ago... all the way back in v0.17 (https://github.com/dbt-labs/dbt-core/pull/2411).
It's worth checking to see if we actually need this create_schema call at all. I have a sneaking suspicion that the snapshot may already be properly accounted for by this logic:
https://github.com/dbt-labs/dbt-core/blob/5e0a7659174a9277e2013390f8615acc97464d40/core/dbt/task/run.py#L437-L439

I've concluded these lines are totally unneeded. After a bit of digging through the git blame, I see that the origin of the create_schema in the snapshot (then archive) materialization was in: https://github.com/dbt-labs/dbt-core/pull/625
At the time, Drew noted that:

There might be a smarter way to do this -- we could set the node schema to the value of target_schema, then this will happen automatically through the node_runner before_run flow.

This is in fact what we do:
https://github.com/dbt-labs/dbt-core/blob/204d53516a08a619ebea69b68aa8138dd1814f54/core/dbt/parser/snapshots.py#L38-L40
And have been doing since https://github.com/dbt-labs/dbt-core/pull/1478 (here specifically). This is picked up accordingly by the before_run method in the snapshot task (inherited from the method in the run task shown above).
Worth noting that this piece still isn't perfect, if you're defining target_schema in a .yml file instead of snapshots/*.sql: https://github.com/dbt-labs/dbt-core/issues/4000


NullPointerException on PubnativeConfigManager.java

Hi, I found on Crashlitics that sometimes the PubnativeConfigManager crash on an equals on a null String object.
The crash appens on line 268 (for the version I currently use, the 1.2.4), inside the method configNeedsUpdate(PubnativeConfigManager.java:268), but the code is the same as in the last version of the mediation sdk.

Hey @andreaboi83 thank you for reporting this problem:
Can you please paste also the crashlytics stacktrace or something to dive deeper here? It looks like the problem is with a null request item or a null storedAppToken one.
The stacktrace suggests that the problem is with a null storedAppToken:
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference        at net.pubnative.mediation.config.PubnativeConfigManager.configNeedsUpdate(PubnativeConfigManager.java:268)        at net.pubnative.mediation.config.PubnativeConfigManager.getNextConfig(PubnativeConfigManager.java:151)        at net.pubnative.mediation.config.PubnativeConfigManager.doNextConfigRequest(PubnativeConfigManager.java:144)        at net.pubnative.mediation.config.PubnativeConfigManager.getConfig(PubnativeConfigManager.java:117)        at net.pubnative.mediation.config.PubnativePlacement.load(PubnativePlacement.java:102)        at net.pubnative.mediation.request.PubnativeNetworkWaterfall.initialize(PubnativeNetworkWaterfall.java:100)        at net.pubnative.mediation.request.PubnativeNetworkRequest.start(PubnativeNetworkRequest.java:108) ...

so yeah, as stated by the error, storedAppToken is null at this point. I'll add a check before to ensure to download the config if this case is given.
Upcoming version 1.2.9 will be released soon @andreaboi83  👍

Ok, thanks!

@andreaboi83 version issued, and available on bintray, thanks


setup.py now imports setuptools

Why is setuptools now required inside setup.py?  Using setuptools make packages much harder to build.  I would much rather prefer setuptools not being used.  Thanks.

This was used so that people can do setup.py develop. What does setuptools make more difficult?

When you use setuptools, all the install requirements need to installed at build time, because otherwise setuptools will try to fetch them on the fly, which is not what we want (at least not when building conda packages).  Also setuptools always tried to create .egg directories in site-packages, which are problematic because their path needs to be added to easy-install.pth.  From my perspective setuptools is the source of almost all packaging problems Python is suffering from.
Having conda-build installed, you can say:
$ conda develop

I don't think there have been any issues with the conda builds for blaze, datashape or odo. Also, not everyone uses conda.

But everyone should be using conda :-)  Anyway, if you want to use setuptools, that ok (I guess).  I personally avoid it like the plague.


Renamed solution folders

Description of Change
Renamed all the solution folders to correspond with the new name (from XamarinCommunityToolkit to Microsoft.Toolkit.Xamarin.Forms). I was thinking about renaming the solution file(s) as well, but I wasn't sure if that is something you'd want.
Since this is housekeeping I omitted the PR checklist, but I did build everything and ran the unit tests to see that everything worked after the renaming.
Bugs Fixed

Related to issue #170

API Changes
None.
Behavioral Changes
None.

Definitely something we can do, but there are some internal discussions going on about our new naming within Microsoft. I think it's wise to wait for the outcome of that for now 👍

Closing this one since the big rename happened (again). I think the folder names for now are fine.


Add functions for exporting data

Description
Just like there's data loading functions (a generic one as well as some special formats like CSV and JSON), there should be functions to save data to the disk and not just rendering it to the PDF.
The most basic option would be to simply save a String as is to a file, more advanced versions could serialize Typst dictionaries and arrays to JSON etc.
Use Case

provides two-way "communication" with external tools
ability to save intermediate results
functional completeness
debuging

Hi! I'm currently working to implement this! check out my fork if you want, but beware! it's not quite done yet

This is indeed not something that we plan to support. With typst query there is a good tool for most tasks now. For debugging, I do plan to add a simple logging facility (https://github.com/typst/typst/issues/1669). Just the file writing part itself not because of its security and UX implications (as written in the responses on the other issues).


Namespace incorrect

The namespace should be "lightman210567.Encipher" rather than "Encipher"

This issue is being worked on for the next release


remove package-lock.json files from lerna packages

@arttarawork @TCourtneyOwen I've been making pull requests to experiment with the fact that lerna bootstrap on Windows when it is a clean git repo will fail to build because the local packages are not properly linked together.


Item chance and item quality are not updated

Reported by player:

it seems like item find and quality is not working right, cant get more than 100% . also did try the builder with +item find it no tower gets it
in "Misc" item find, quality and exp dont change

Looks like other values in Misc category are not updated as well.


nested dictionaries

None of the docs include nested dictionaries. The docs are using the variable type as the name of the key so it is impossible to tell what is meant and how to use it in once glance.
Never, ever use names of things that look like types of things a DOC. Use 'My" or "foo" or something to disambiguated and show which parts of the strings are arbitrary and not reserved.

@cottrell Can you point me to a place in the docs where you find that it is missing? Also can you provide some example of what exactly you mean with nested dictionaries? Do you mean how to validate several levels of deep dict data? Or do you mean dicts within dicts within dicts on the Schema side?
Can you provide a example where i use "a DOC" wrong in the docs?

Here: https://pykwalify.readthedocs.io/en/master/
type: seq
sequence:

type: str

The names seq vs sequence is a bit confusing to first time reader.
For nested dictionaries (maps) I mean yamls like
top:
sub:
a: 1
b: 2
I eventually figured it out, but just saying that it wasn't just a case of read the doc and understand that it has to be:
map:
top:
map:
sub:
map:
a:
type: int
(not sure if I got that right in typing here).
Obviously not a big deal, but just trying to give some test/type feedback on the docs. Docs take a lot of work and they often go unappreciated.

The first page and the example in there is not intended to be a full documentation of all features and all things you should be able to do with all rules that exists. That is why it is labeled as a Basic usage.
The aliases map vs mapping is described in the details of the rule here https://pykwalify.readthedocs.io/en/master/validation-rules.html#mapping
The docs recommend that you read through the examples and test/validation files to get a better understanding of how schemas can be built and data to be validated. It is described here https://pykwalify.readthedocs.io/en/master/#examples
The case for more complex and nested examples is one that is missing yes and a few examples should be added to the rules to better describe how more complex data can be validated.


Protect application editing routes with decorator

For this trello ticket.
When applications for a framework close some views are no longer
available. This decorator is applied to those routes to provide users
with meaningful feedback and some extra logging for us.
The apiclient that's passed to the outer wrapper of the decorator is a
callable. This is because the decorator is evaluated at module import
time, which makes mocking the apiclient difficult. By providing it as a
callable it's evaluated at runtime and a mock can be patched in.
The custom error template includes content that is in the frameworks
repo. Its content that describes the expected following framework. If
that hasn't been defined, we show a reduced error message.
Screenshot!

@Wynndow what's the advantage of using a blueprint instead of a decorator?

@lfdebrux that is what I was attempt to find out!

Personally I prefer the decorator route rather than the blueprint route. It seems a lot cleaner to me.
I think it would be better if the two blueprints were separate areas of the app, but there's a lot of crossover between them during normal user flow. This leads to a lot of confusion and mess when using  url_for as you have to know which blueprint the template/view using it is registered to.
Also the preprocessing stuff seems clunky.
What do people thing?

Yeah... looking at all the url_for changes I think any advantage (e.g. simplification of the data_api_client use) is outweighed by the confusion over why some views are in one and not the other. Thanks for indulging my curiosity!

No problem! It was interesting. I'd never used 'g' before. Why did they give it such a silly name though.

Yeah I concur about decorators vs blueprints - the main disadvantage of blueprints seems to be that, of course, they're not composable.

 Whereas decorators more or less are composable.
It's a bit like the difference between standard inheritance and mixins.


why  Location Services needs

Hello . I don't understend why  Location Services needs to be turned on for device scaning ? How nFR Connect can scan without enabled Location Services ?

Hello @ardmn
Feel free to search the old issues. https://github.com/Polidea/RxAndroidBle/issues/203
Best Regards


Enqueue message timeToLive

Hi,
according to https://docs.microsoft.com/en-us/rest/api/storageservices/put-message
timeToLive could be set to -1
Lib have following code:
func (m MessagesURL) Enqueue(ctx context.Context, messageText string, visibilityTimeout time.Duration, timeToLive time.Duration) (*EnqueueMessageResponse, error) {
vt := int32(visibilityTimeout.Seconds())
ttl := int32(timeToLive.Seconds())
which replace -1 with 0. And I've got from Azure:
Reason: Value must be greater than or equal to 1, or -1 to indicate an infinite TTL.
Also lib eats real error message - I've got:
"runtime error: invalid memory address or nil pointer dereference" with no details

Actually lib doesn't eats error
err is not checked and then item is accessed so code will panic in any error case.
@zezha-msft  this is kind of serious bug. Library should not panic in any cases.

func (m MessagesURL) Enqueue(ctx context.Context, messageText string, visibilityTimeout time.Duration, timeToLive time.Duration) (*EnqueueMessageResponse, error) {
	vt := int32(visibilityTimeout.Seconds())
	ttl := int32(timeToLive.Seconds())
	er, err := m.client.Enqueue(ctx, QueueMessage{MessageText: messageText}, &vt, &ttl, nil, nil)
	item := er.Items[0]
	return &EnqueueMessageResponse{

Hi @pavelsmejkal, it's indeed not ideal. I'm working on this, and will release the fix as soon as possible. Thanks!

Hi @WorldIsM and @pavelsmejkal, I just took a closer look at this issue, and realized that there is actually no bug in this case. Here is a clarification:
The receiver Enqueue takes in a time.Duration for timeToLive, which represents a duration in nanoseconds. Passing in -1 means -1 nanosecond, instead of -1 second. Thus, -time.Second should be passed instead; I've verified that this indeed works.
I'll make sure to improve the documentation to better the user experience.
#5 is fixed and will be released soon.


docs: Anime search application using Appsmith

Anime search application tutorial
Closes #260

@cokoghenun, can you review this?


[os-caddy] Incorporate Caddy certs into System -> Trust -> Certificates

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

[✔ ] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
[✔ ] I have searched the existing issues, open and closed, and I'm convinced that mine is new.
[ ✔] When the request is meant for an existing plugin, I've added its name to the title.

Is your feature request related to a problem? Please describe.
Currently, I am running OPNsense and would like to enable CARP for HA by proceeding with option 1 of the HA section in the docs ("Using custom certificates from the OPNsense Trust store for all Domains"); however, from what I could find snooping around, the certs obtained from Let's Encrypt or ZeroSSL are only available on the /var/db/caddy/data/caddy/certificates/ directory. There seems to be no mechanism in place to copy the certs over to the System Trust store at /var/etc/acme-client (if you have the ACME client plugin installed), rendering this option a little clunky since manual intervention is needed to copy the certs. Sure, it's no big deal to do it for a few, and a simple 2 line script would automate the whole process; but at that point, why not just implement it into the plugin?
Describe the solution you'd like
I would like to have the ability to view Caddy-obtained certs from the System Store, centralizing certificate management. Since only Caddy is allowed to renew the certs requested by itself, this won't give us control to renew or delete Caddy-obtained certs the System -> Trust -> Certificates pane. We can't get around this, but we can write a copy routine to at least have the certs available for view in the system store. Happy to open a PR.
Describe alternatives you've considered
Bash scripts.
Additional context
Maybe in the future we could point Caddy to the ACME Client plugin to offload certificate management and have full control of all our certs from a single UI. There might be some downsides to outsourcing the certs, but I can't think of any, especially since both apps are running on the same OS.

Duplicate of: https://github.com/opnsense/plugins/issues/3908
There is the ACME Client plugin for that, it can run at the same time as caddy with no issues and do its thing with the trust store.

Thank you for pointing out your original Issue. It seems that implementing this integration might be more pain than it's worth. I'll stick with scripts.

Well theoretically it is possible, but there is no real reason to do it. HA is possible just fine when using DNS-01 challenge or ACME challenge redirection or custom certificates from trust store or the ACME client plugin that creates custom certificates in the trust store.
So 4 ways to do it. :)


[DO NOT MERGE] DSpace metadata  testing for Hanh

Has deposit services with the following pull request applied:
https://github.com/OA-PASS/deposit-services/pull/170
You should be able to just docker-compose pull, up, and go

Thank you, will try.


Crypto cleanup

This patch gets rid of crypto warnings for deprecated calls
to crypto:md5/1 and crypto:sha_mac/2 and updates them with calls
to crypto:hash/2 and crypto:hmac/3 respectively.

This was ultimately fixed in df013c24


The latest build broke my code

This code tycks in beca413 but not in the latest build 5b7bfe3:
prim I
prim left
prim right
prim arcoe
struct Path (A : I -> Type) (a : A left) (b : A right) : Type
 | at (i : I) : A i {
   | left => a
   | right => b
 }
def path {A : I -> Type} (p : Pi (i : I) -> A i)
  => new Path A (p left) (p right) { | at i => p i }
def `=` Eq {A : Type} (a b : A) : Type => Path (\ i => A) a b
def idp {A : Type} (a : A) : a = a => path (\ i => a)

bind application tighter =

open data Unit : Set | unit

struct Struct : Set
  | value : Unit

def getValue (t : Struct) : Unit => t.value
def setValue (x : Unit) (t : Struct) : Struct
  => new Struct { | value => x }

def value-inv : Pi {t : Struct} {u : Unit} -> u = getValue (setValue u t)
  => \{t} {u} => idp u

def foo {A : Set}
  (get : Struct -> A)
  (set : A -> Struct -> Struct)
  (inv : Pi {t : Struct} {u : A} -> u = get (set u t))
  => unit

def bar : Unit => foo getValue setValue value-inv

(Want a better title for this issue)

It is probably fixed (worked on my computer, but you should check it yourself).


OWD BCD project: 2020+ accuracy for HTML and SVG

Problem statement
BCD data is not guaranteed to be accurate for HTML and SVG features. The collector has found data that is likely incorrect in BCD right now.
Proposed solutions
The collector now has support for HTML and SVG elements and attributes, and MathML testing is planned to be added soon.  Following #85, we should work to resolve all conflicts between the collector's results and BCD and update BCD or the collector's test code as needed
Task list

[ ] Resolve the discrepancies as listed in https://github.com/mdn/browser-compat-data/pull/19585

Priority assessment

Effort: 4-6 weeks?
Dependencies: none
Community enablement:
Momentum:
Enabling learners:
Enabling professionals:
Underrepresented topics / Ethical web:
Operational necessities:
Addressing needs of the web industry:

More information
Open Web Docs (OWD) is a non-profit collective funded by corporate and individual donations.
In order for this project to happen, please consider donating to OWD on https://opencollective.com/open-web-docs.
For more information on sponsorship and membership tiers, see https://openwebdocs.org/membership/
More information is available at https://openwebdocs.org/.
For questions, please reach out to<EMAIL_ADDRESS>

Here's what the collector v10.6.4 proposes against BCD v5.5.0. Once these are sorted, we can call this project done.
 html/elements/a.json                  |  41 ++++++++++++----------
 html/elements/area.json               |  15 +++------
 html/elements/body.json               |  92 ++++++++++++++++++++++++++++++++++----------------
 html/elements/button.json             |   6 ++--
 html/elements/col.json                |  54 +++++++++++++++++++----------
 html/elements/colgroup.json           |  54 +++++++++++++++++++----------
 html/elements/dd.json                 |  22 ++++++++----
 html/elements/fencedframe.json        |   6 ++--
 html/elements/form.json               |  22 ++++++++----
 html/elements/head.json               |  20 +++++++----
 html/elements/html.json               |  36 ++++++++++++++------
 html/elements/iframe.json             |   4 ++-
 html/elements/image.json              |  23 +++++++++----
 html/elements/link.json               |  10 ++++--
 html/elements/meta.json               |  22 ++++++++----
 html/elements/meter.json              |  32 +++++++++++-------
 html/elements/object.json             |  22 ++++++++----
 html/elements/pre.json                |  20 +++++++----
 html/elements/script.json             |  22 ++++++++----
 html/elements/select.json             |  10 ++++--
 html/elements/tbody.json              |  38 ++++++++++++++-------
 html/elements/td.json                 |  16 ++++++---
 html/elements/template.json           |   2 +-
 html/elements/tfoot.json              |  38 ++++++++++++++-------
 html/elements/th.json                 |  16 ++++++---
 html/elements/thead.json              |  38 ++++++++++++++-------
 html/elements/tr.json                 |  48 +++++++++++++++++---------
 html/elements/video.json              |  12 +++++--
 svg/elements/a.json                   | 101 ++++++++++++++++++++++++++++++++++---------------------
 svg/elements/animate.json             | 110 +++++++++++++++++++++++++++++++++++++++++-------------------
 svg/elements/animateMotion.json       | 110 +++++++++++++++++++++++++++++++++++++++++-------------------
 svg/elements/animateTransform.json    |  88 ++++++++++++++++++++++++++++++++----------------
 svg/elements/cursor.json              |  82 ++++++++++++++++++++++++++++++--------------
 svg/elements/feBlend.json             |  22 ++++++++----
 svg/elements/feColorMatrix.json       |  22 ++++++++----
 svg/elements/feComponentTransfer.json |  22 ++++++++----
 svg/elements/feComposite.json         |  20 +++++++----
 svg/elements/feConvolveMatrix.json    |  66 ++++++++++++++++++++++++------------
 svg/elements/feDiffuseLighting.json   |  44 ++++++++++++++++--------
 svg/elements/feDisplacementMap.json   |  22 ++++++++----
 svg/elements/feDropShadow.json        |  44 ++++++++++++++++--------
 svg/elements/feFlood.json             |  44 ++++++++++++++++--------
 svg/elements/feGaussianBlur.json      |  44 ++++++++++++++++--------
 svg/elements/feImage.json             |  29 +++++++++++-----
 svg/elements/feMergeNode.json         |  22 ++++++++----
 svg/elements/feMorphology.json        |  44 ++++++++++++++++--------
 svg/elements/feOffset.json            |  22 ++++++++----
 svg/elements/feSpecularLighting.json  |  42 ++++++++++++++++-------
 svg/elements/feTile.json              |  22 ++++++++----
 svg/elements/feTurbulence.json        |  22 ++++++++----
 svg/elements/filter.json              |  46 ++++++++++++++++---------
 svg/elements/image.json               |  30 +++++++++++------
 svg/elements/linearGradient.json      |  22 ++++++++----
 svg/elements/marker.json              |  20 +++++++----
 svg/elements/mpath.json               |  22 ++++++++----
 svg/elements/path.json                |  20 +++++++----
 svg/elements/pattern.json             |  22 ++++++++----
 svg/elements/radialGradient.json      |  22 ++++++++----
 svg/elements/script.json              |  22 ++++++++----
 svg/elements/set.json                 |  22 ++++++++----
 svg/elements/stop.json                |  40 ++++++++++++++--------
 svg/elements/svg.json                 |  44 ++++++++++++++++--------
 svg/elements/textPath.json            |  34 +++++++++++++------
 svg/elements/use.json                 |  22 ++++++++----
 64 files changed, 1467 insertions(+), 706 deletions(-)

I'm looking into the SVG part. Some tests need to be updated in the collector, for example those for xlink attributes (https://github.com/openwebdocs/mdn-bcd-collector/pull/990), but there are also real issues in the compat data to fix. I've sent some PRs to BCD already.

A report for the progress of this project:

Most of the changes to the HTML folder have pending pull requests or the tests have been removed from the collector (due to difficulty/impossibility with testing the attributes)
The SVG folder will probably take more time to tackle, as the SVG attribute testing doesn't seem to be accurate.

I believe that we should split this project into two parts (HTML and SVG) and defer the SVG updates to a later time.

I was able to make a lot of progress on this project. From 64 files down to 35 files in need of updates.
See git diff --stat with BCD v5.5.6 and the OWD BCD Collector v10.7.0:
 html/elements/body.json            |  8 ++++----
 html/elements/button.json          |  2 +-
 html/elements/col.json             |  6 +++---
 html/elements/colgroup.json        |  6 +++---
 html/elements/dd.json              |  2 +-
 html/elements/fencedframe.json     |  2 +-
 html/elements/head.json            |  4 ++--
 html/elements/html.json            |  3 ++-
 html/elements/image.json           |  2 +-
 html/elements/meta.json            |  2 +-
 html/elements/meter.json           |  2 +-
 html/elements/object.json          |  2 +-
 html/elements/script.json          |  2 +-
 html/elements/tbody.json           |  4 ++--
 html/elements/td.json              |  2 +-
 html/elements/tfoot.json           |  4 ++--
 html/elements/th.json              |  2 +-
 html/elements/thead.json           |  4 ++--
 html/elements/tr.json              |  4 ++--
 svg/elements/animate.json          | 30 +++++++++++++++---------------
 svg/elements/animateMotion.json    | 30 +++++++++++++++---------------
 svg/elements/animateTransform.json | 24 ++++++++++++------------
 svg/elements/cursor.json           |  2 +-
 svg/elements/feFlood.json          | 12 ++++++------
 svg/elements/feMergeNode.json      |  4 ++--
 svg/elements/font-face-uri.json    |  2 +-
 svg/elements/glyphRef.json         |  2 +-
 svg/elements/image.json            |  7 ++++---
 svg/elements/marker.json           |  4 ++--
 svg/elements/path.json             |  6 +++---
 svg/elements/set.json              |  6 +++---
 svg/elements/stop.json             | 12 ++++++------
 svg/elements/svg.json              | 12 ++++++------
 svg/elements/textPath.json         |  4 ++--
 svg/elements/tref.json             |  4 ++--
 35 files changed, 113 insertions(+), 111 deletions(-)

Most of the changes to the HTML folder have pending pull requests

I will take a look at your PRs.

The baseline project has benefitted enormously from all of Open Web Docs' work to provide accurate compat data for all BCD features going back to 2020. I talked to Daniel Beck last week and only 283 out 14,366 features are marked as unresolved (i.e. Baseline cannot be calculated). This is already very fantastic, but I think we should attempt and fully complete this project by getting the last few missing HTML and SVG feature versions in.
See https://docs.google.com/spreadsheets/d/1RVgaq4ruHYeJvLCky-h2VAreRP5j_CKifaBvwYEhsL0/edit#gid=1279455993&fvid=1437656086 for a list. (There is also missing data for HTTP within the 283 features, but we can look at these in a separate project)

https://github.com/openwebdocs/mdn-bcd-collector/pull/1474 is probably relevant here, too.

We updated all the remaining compat data to have a (range) version number prior to 2020.
https://github.com/mdn/browser-compat-data/issues/23991 is about enforcing the 2020 cutoff in the BCD linter.


added touch support

To partial address #487 that I opened this morning, I've added touch support for tapping and holding. (this does not address the double tap to zoom issue on the iOS 10. I can't seem to find a way to turn that off).

@davidworkman9 Any chance you could do another commit with the fix? :)

Unfortunately I'm no longer with the company that this PR was made under. @chrislink14 should be able to though!

After running the snapshot update test, those test pass fine but I am getting this failed test now.
` PASS  test/snapshots.spec.js
FAIL  test/tests.spec.js
● Datetime › persistent valid months going monthView->yearView->monthView
expect(received).toEqual(expected)

Expected value to equal:
  true
Received:
  false

  at Object.<anonymous> (test/tests.spec.js:81:107)
  at handle (node_modules/worker-farm/lib/child/index.js:44:8)
  at process.<anonymous> (node_modules/worker-farm/lib/child/index.js:51:3)
  at emitTwo (events.js:126:13)
  at process.emit (events.js:214:7)
  at emit (internal/child_process.js:772:12)
  at _combinedTickCallback (internal/process/next_tick.js:141:11)
  at process._tickCallback (internal/process/next_tick.js:180:9)`

@chrislink14 Have you rebased on top of master? I think that will fix the failing test.

Hmm. Seems like the snapshots are written for a specific timezone (mine). That's not good.
You know what? I'll "hijack" this PR and make Travis happy, you shouldn't have to do all this stuff to make the CI green. Thanks a lot for this, both of you!

See #506. Will close this PR now. Again, thank you both for this.


Context multi-round session problem

Search before asking

[X] I had searched in the issues and found no similar feature requirement.

Description
Is multiple rounds of contextual conversations not supported? I set the parameter need_historical_messages=True, but it didn't work，model is qwen72b
Documentation Links
dbgpt/app/scene/base.py

Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

In what scene do you want to enable multi-turn dialogue configuration?
It is currently not recommended to enable multi-turn dialogue in other scene. If you really need it, here are some possible methods:
Currently, chat data is used as an example to illustrate how to start multiple rounds of conversations:

sed -i 's/need_historical_messages=False/need_historical_messages=True/' dbgpt/app/scene/chat_db/auto_execute/prompt.py, if you use macos: sed -i '' 's/need_historical_messages=False/need_historical_messages=True/' dbgpt/app/scene/chat_db/auto_execute/prompt.py
Add keep_end_rounds: int = 5 to dbgpt/app/scene/chat_db/auto_execute/chat.py

do DB-GPT support multi-turn dialogue in some scenes?I see a multi-turn dialogue awel in  https://docs.dbgpt.site/docs/latest/application/awel_flow_usage,but it's useless,you can see it in issue 1317


os/user: fix signedness of UIDs before stringifying

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
at least 1.6 and 1.9 (haven't checked elsewhere)
Does this issue reproduce with the latest release?
that's 1.9, right?
What operating system and processor architecture are you using (go env)?
issue is with 32 bit Linux,  only (so GOARCH of 386 and arm, and ppc)
What did you do?
given
package main

import (
	"fmt"
	"os/user"
	"syscall"
)

func main() {
	fmt.Printf("%x\n", syscall.Getuid())
	u, e := user.Current()
	fmt.Printf("%v %#v\n", e, u)
}

and
sudo useradd -u $(((1<<32)-2)) test123

and
CGO_ENABLED=1 GOARCH=386 go build userhi.go

What did you expect to see?
fffffffe
<nil> &user.User{Uid:"4294967294", Gid:"1001", Username:"test123", Name:"", HomeDir:"/home/test123"}

What did you see instead?
-1
user: unknown userid -1 (*user.User)(nil)

We can fix os/user's User.Uid, but the Go 1 compatibility promise prevents us from changing the syscall.Getuid signature. You'll have to convert there. But it's the syscall package anyway, so people are expected to roll up their sleeves a bit.

note the same applies to gid

also, in case you're wondering, uids and gids of 0xffffffff aren't allowed because -1 is used as a flag to mean 'no change' for chown(2)

I handled gid in https://go-review.googlesource.com/#/c/go/+/77930 too.


Add python3 support

There are differencies between python3 and python2 as regard two things I have spotted while trying to compile the QML book:

The urlencode function from the urllib module is now present in a submodule urllib.parse in Python 3
The iteritems() dict method is irrelevant in Python3 since the items() dict method returns a generator instead of building an in-memory list as it does in Python 2. It could be some kind of caveat if the script is runing in Python 2, but I do not think one could get some memory issue for now.

What do you guys think?

Very nice. Thx! Merging.


Add alarm on/off information to status

Sponsored by: Rubicon Communications (Netgate)

I sent several questions about your use case via email. I would appreciate answers as this will help guide how I handle this.
Regarding the whitespace change, the lack of a space in the format is intentional, and indented to keep parsing simple for people who are not using identifiers. There is a trailing space in the identifier that handles the case when identifiers are in use.
There are several issues surrounding the alarm change. The change for alarm output was made only in the usocket output. The output of the status file and usocket should be identical. They are different IO and timing mechanisms, but should represent the same data.
The addition of alarm to the output represents a couple of issues. First, many use cases do not need the alarm functionality. It seems a little non intuitive to people that there is an alarm indication when they haven't enabled alarms. I really don't want users to have to parse conditional output, so if I am to force a tolerance indication into the output, then at least one trigger will be enabled by default.
Second, if the alert command is also in use, this change introduces a thread timing problem which creates a data validity issue. The alert thread waits for the return of the alert command, and during the time of command execution, all alarm processing is suspended. When an alarm clears and the alert command is invoked, the alarm value will remain zero until the alert command returns--even if latency/loss have again gone out of tolerance. This is fine for alerting because you want these calls serialized, however, it creates a data validity problem with report/usocket.
The alert command is an unbounded call, and I really don't like the idea of reporting incorrect data during this interval. To avoid this problem, either the value given in the report/usocket interface must be something like "out of tolerance," which differs from alarm in that it does not have a decay, or the entire mechanism of alarm trigger and decay must be rethought. Another alternative would be to introduce locks, but I have gone to a lot of effort to avoid their use and do not want to introduce them now.
It might be easier for you to set a flag when the alert command is invoked and work off of that. Or, your use case might prevent this. It's something we need to explore. Either way, let's discuss your use case and see how to balance it against the needs of others before making changes to the code.

Details sent by email, this is not necessary anymore


Fix support for dynamic matchers

See https://github.com/rspec/rspec-collection_matchers/pull/48
If a matcher supports dynamic arbitrary methods called on it, e.g.  have_at_least(100).bucks, it would also consider a supports_value_expectations? call as a dynamic part.
Instead of calling supports_*? methods on a matcher, explicitly check if it responds to it.

@JonRowe Can I consider your approval for https://github.com/rspec/rspec-expectations/pull/1295 as an approval for this PR as well? I believe fixing main for those who use rspec-collection_matchers on Rails 6.1, rspec-rails 4.1.0.pre was the primary objective.


feat: use OSS licence

We should use an OSS licence to enable users to easily use these examples without having to go through corporate approval processes to approve a proprietary licence.

Closing this as legal approved the apache licence pr which has been merged


Update invalid example location in solutions/sandbox-gke/artifact-registry/registry.yaml

Describe the bug
I noticed that the example location used in solutions/sandbox-gke/artifact-registry/registry.yaml specifies an invalid location of us-northamerica-northeast1.

I realize that you may want/need to keep the default region/location for us, but I found three different region resources throughout this package: us-central1, us-northamerica-northeast1, and northamerica-northeast1.

Probably just a typo from a copy replace gone wrong. I can clean that up.


fix: Setup Crowdin integration for Casnode-website

Signed-off-by: ErikQQY<EMAIL_ADDRESS>

@hsluoyz Plz review


Live MD - No top margin for only emojis inside the expanded compose box

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.63-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Action Performed:

Navigate to staging.new.expensify.com
Open any chat
Add an emoji only
Enter a new line
Expand the compose box

Expected Result:
There is a margin between the emoji inside the compose box and the top border of the compose box
Actual Result:
There is space between the emoji inside the compose box and the top border of the compose box
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[x] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/30544018-b232-4e64-8e97-b58ef480ad7c
View all open jobs on GitHub

@roryabraham  FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

This will be fixed with this Proposal

Result

calling this NAB and putting it on HOLD for https://github.com/Expensify/App/issues/40412 as it appears to share the same root cause.

Still on HOLD - making this a weekly while we wait for https://github.com/Expensify/App/issues/40412 to land

Still on HOLD

Still on HOLD

still on HOLD

Verified that this is fixed


Incompatibility with CITResewn

As stated in https://github.com/SHsuperCM/CITResewn/issues/17 , CITResewn is incompatible with VanitySlots and other cosmetic armor mods, would it be at all possible for you to use its API to add support for CIT in vanity slots?

I'll look into it once a 1.19.3 version is published.

According to a curseforge comment, it seems to be fixed in the latest version.


error in model.save_weights after upgrading to 1.0.0

After upgrading to 1.0.0, model.save_weights is failing with the following trace (worked with the last version) -
ValueError                                Traceback (most recent call last)
<ipython-input-65-16f4937d2aed> in <module>()
----> 1 model_binary.save_weights("test_weights.h5")

/usr/local/lib/python2.7/site-packages/keras/engine/topology.pyc in save_weights(self, filepath, overwrite)
   2244                     name = 'param_' + str(i)
   2245                 weight_names.append(name.encode('utf8'))
-> 2246             g.attrs['weight_names'] = weight_names
   2247             for name, val in zip(weight_names, weight_values):
   2248                 param_dset = g.create_dataset(name, val.shape,

h5py/_objects.pyx in h5py._objects.with_phil.wrapper (/tmp/pip-build-bnlpcl/h5py/h5py/_objects.c:2574)()

h5py/_objects.pyx in h5py._objects.with_phil.wrapper (/tmp/pip-build-bnlpcl/h5py/h5py/_objects.c:2533)()

/usr/local/lib/python2.7/site-packages/h5py/_hl/attrs.pyc in __setitem__(self, name, value)
     85         use the methods create() and modify().
     86         """
---> 87         self.create(name, data=value, dtype=base.guess_dtype(value))
     88
     89     @with_phil

/usr/local/lib/python2.7/site-packages/h5py/_hl/attrs.pyc in create(self, name, data, shape, dtype)
    167                 htype2 = None
    168
--> 169             space = h5s.create_simple(shape)
    170
    171             # This mess exists because you can't overwrite attributes in HDF5.

h5py/_objects.pyx in h5py._objects.with_phil.wrapper (/tmp/pip-build-bnlpcl/h5py/h5py/_objects.c:2574)()

h5py/_objects.pyx in h5py._objects.with_phil.wrapper (/tmp/pip-build-bnlpcl/h5py/h5py/_objects.c:2533)()

h5py/h5s.pyx in h5py.h5s.create_simple (/tmp/pip-build-bnlpcl/h5py/h5py/h5s.c:1432)()

ValueError: Zero sized dimension for non-unlimited dimension (Zero sized dimension for non-unlimited dimension)

I create a pyramidal architecture using the following snippet -
def deep_net(max_features, num_classes, num_layers=2, layer_shrinkage=0.1, dropout=0.5):
    """
    Returns a compiled deep net model based on hyperparameters passed to the function.
    """

    model = Sequential()
    prev_layer_size = max_features
    for i in range(num_layers):
        curr_layer_size = int(layer_shrinkage*prev_layer_size)
        model.add(Dense(curr_layer_size, input_shape=(prev_layer_size,), init='glorot_normal'))
        model.add(Activation('relu'))
        model.add(Dropout(dropout))
        prev_layer_size = curr_layer_size

    model.add(Dense(num_classes))
    model.add(Activation('softmax'))

    print("Compiling model")
    # model.compile(loss='categorical_crossentropy', optimizer='adam')
    # Version 1.0 compatible
    model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy'])

    return model

and fit is called as history_binary = model_binary.fit(X_train_binary_pca, y_train_binary_one_hot, nb_epoch=nb_epoch, batch_size=batch_size,                                           verbose=1)
Thanks!

Do you have a standalone runnable script to reproduce this issue?

Wrote this script -
import numpy as np
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation

def one_hot_encoding(Y):
    """
    Create one hot encoded vector from a binary class vector.
    """

    Y_one_hot = np.ones(len(Y))
    Y_one_hot[Y == 1] = 0
    Y = Y.reshape([len(Y), 1])
    Y_one_hot = Y_one_hot.reshape([len(Y_one_hot),1])
    Y = np.concatenate((Y_one_hot, Y), axis=1)
    return Y

def deep_net(max_features, num_classes, num_layers=2, layer_shrinkage=0.1, dropout=0.5):
    """
    Returns a compiled deep net model based on hyperparameters passed to the function.
    """

    model = Sequential()
    prev_layer_size = max_features
    for i in range(num_layers):
        curr_layer_size = int(layer_shrinkage*prev_layer_size)
        model.add(Dense(curr_layer_size, input_shape=(prev_layer_size,), init='glorot_normal'))
        model.add(Activation('relu'))
        model.add(Dropout(dropout))
        prev_layer_size = curr_layer_size

    model.add(Dense(num_classes))
    model.add(Activation('softmax'))

    print("Compiling model")
    # model.compile(loss='categorical_crossentropy', optimizer='adam')
    # Version 1.0 compatible
    model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy'])
    return model

X = np.random.randint(2, size=(100, 1000))
y = np.random.randint(2, size=100)
model = deep_net(1000, 2)
history = model.fit(X, one_hot_encoding(y), nb_epoch=5, batch_size=1, verbose=1)

model.save_weights("test_weights.h5")

Your script works fine for me. As far as I can tell it appears to be an issue with your version of h5py. Just update HDF5 and h5py and you will be fine. Any version from late 2013 and later should work.

Upgrading to hdf5 1.8.12 has solved the issue (the error was raised while using hdf 1.8.4) !
Seems like the problem was fixed in hdf5 1.8.7 - https://github.com/biocore/biom-format/issues/581 .


lab 4

Hello
In task 1 step 10
whe have to modify the eventscontext.cs file
static EventsContext(Database.SetInitializer(new EventsContextInitializer());
VS says that SetInitializer dont exist in database ....
tks

Hi @chrzanowskiItta . It's in Entity Framework 5 and 6:
https://msdn.microsoft.com/en-us/library/gg679461(v=vs.113).aspx
You might need to do a rebuild to download the NuGet package.


Allow to ignore files with rsync strategy

Hi,
thanks for this awesome roles. May i suggest an improvement? When under ansistrano_deploy_via: "rsync", i have understood from sample application that one can delete some paths after they are synched.
Could we add some variable to modify rysnc filter at sync time? So those paths are not copied only to be deleted later on?
Thanks in advance and cheers,
David

In order to do that you can add a .rsync-filter file to your repo so no extra variables are needed

Hi @ricardclau,
thanks for your message. In that case could we please document, at least minimal, how this should look like, for dummies like me.
For example, given my scenario, some questions arise for me now. I have a symfony project and all ansistrano related files are placed under an ansible directory in the root of the project.

Shall i place the .rsync-filter file in the project root or one level down where i have my playbooks=

Thanks in advance for your help and ime,
David

It's documented in Ansible https://docs.ansible.com/ansible/latest/collections/ansible/posix/synchronize_module.html

Hi, thanks for your answer. I will check that.
I definitely think the #293 should be addressed in the near future. I can contribute some Pull Request to it if necessary. I am starting to use this repo, this mean I still have that point of view, of dummy, which can be useful for document somethings useful for starting.
These kind of things are trivial, but for someone coming without being too much into the topic it is not so easy to get on track, then having such small details written somewhere, saves everybody's time.
Cheers,
David


At most UPP is sufficient

Prove that if a $k^2\times k^2$ $\lbrace 0,1\rbrace$-matrix $A$ with $k^3$ 1's is at most UPP (i.e. $A^2\preccurlyeq1$ entrywise) then $A$ is UPP exactly (i.e. $A^2=J$).

Suppose that $A$ is a $k^2\times k^2$ $\lbrace0,1\rbrace$-matrix with $k$ 1's in each row and column. Then $$\sum_{i,j}A_{i,j}^2=\sum_i\sum_j\sum_p a_{ip}a_{pj}=\sum_p\sum_i\sum_j a_{ip}a_{pj}=k^4.$$
Thus if at most UPP then every element of $A^2$ is 1.


feature: allow monitoring multiple RDS instances

original author: @rebelthor
resolves #5 #10 using null-label
adds instance prefix to sns alarms. otherwise multiple instances overwrite each other

This pull request is now in conflict. Could you fix it @rfvermut? 🙏

Dunno. Feels like nobody cared about it for year.


Add function to fetch all collaborators from a component

Changing reviewer and assignment as @romeovs just built this.


[Bug]: path cannot be a file, when it is not a file

What happened?
What happened:
When user tries to export into the directory with dots in a name.
The plugin shows an error telling the user that the path specified is a file [unless you add additional slash to it].
bug_reproduction.webm
What should have happened?
Nothing. Plugin should have correctly identified that the path specified is a path to the folder.
Reproduction
Create folder with a name like repo for github pages. Click browse in a plugin, navigate and you get it.
See the video above.
Last Working Version
No response
Version
1.8.01
Operating System
Linux Mint 21.3 Cinnamon 6.0.4
Obsidian Version
1.6.5
Which browsers can you reproduce this in?
No response
Relevant log output
N/A

Additional Info
No response

ok, seems like it is done
https://github.com/KosmosisDire/obsidian-webpage-export/issues/149


image-builder-maintenance: fix typo in variable name

The main table to delete data from, is actually "composes".
Data in the "clones" table is deleted implicitly.

/retest


Cherry pick "Use 17 for toolchain tests" onto release

@reinsch82 can you have a peek to verify that this is the intended change of yours?

@bot-gradle test and merge please

No milestone for this PR. Please set a milestone and retry.

@bot-gradle test and merge

I've triggered a build for you.


PowerShell details fro invoking reevaluation of poilicy is more complex than needed

Azure PowerShell has a Invoke-AzResourceAction command which can be used like so
# Login first with Connect-AzAccount if not using Cloud Shell

# Invoke the REST API
$response = Invoke-AzResourceAction -ResourceType Microsoft.PolicyInsights/policyStates -Action summarize -ResourceName latest -ApiVersion 2018-04-04 -Verbose -Force
$response

which is simpler than the current code used in the docs
I will submit a PR to fix this in the docs to use the simplified powershell code

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

ID: 7a6a5887-ea7a-5cae-b0a0-62ebc5a140ae
Version Independent ID: 84476c7d-ab41-1f02-44c9-25ce1eaa1315
Content: Get policy compliance data - Azure Policy
Content Source: articles/governance/policy/how-to/get-compliance-data.md
Service: azure-policy
GitHub Login: @DCtheGeek
Microsoft Alias: dacoulte

@kilasuit Thanks for the PR. I am assigning the issue to the doc author for reviewing and approving the PR.

@DCtheGeek Can you please review the PR.

Will review the request with the team this morning. Thanks @kilasuit for pointing out an opportunity to simplify and providing the PR. 😃
@MicrosoftDocs/azure-cxp-triage #in-progress

@kilasuit I responded on your PR, but putting the response here as well for discoverability:

We reviewed the PR. The intent of this section is to show how to do the steps with the REST API and not to show an alternative way with PowerShell. The preferred path for PowerShell is the existing module, which is shown below. This section should actually be updated to show use of ARMClient instead. If you'd like to make that update, I'd be happy to accept it. Otherwise, I'll close this PR and resolve your issue when I make that update to the doc.

I'll aim to make the change on Monday of next week if I haven't heard back that you want to update your PR. At that point in time, I'll close both this issue and the PR.  Thanks again for pointing out the gap and willingness to contribute changes!


question about the paper

Thanks for your great work.
I have some questions about your paper.
You apply your loss on the single stage detector
However, it also can be applied to two stage detector.
Why are you applying in only on single stage ???
What if you apply on two stage detector such as PV-RCNN or Voxel RCNN??
I am just  curious about that/ Maybe the effect of loss would be marginal compared to single stage??

Hi, thanks for ur attention. Pls refer to the Supplementary Materials.

Hi, thanks for ur attention. Pls refer to the Supplementary Materials.

Thanks  I checked it


add remaining documentation on wiki

ability to use the dev site (create a test file to generate the website on the dev site)
add new possibilies for people-link, including website (site=) and twitter (twitter=)

It's up to date for now. let's close this.


Commands not recognized

I installed the module, imported the module and your commands are available through auto discover in the session however parameter tab completion fails and cmdlets are not recognized.
PS S:> Import-Module kppwpush
PS S:> New-Pwpush -payload "yo"
New-Pwpush : The term 'New-Pwpush' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

New-Pwpush -payload "yo"

  + CategoryInfo          : ObjectNotFound: (New-Pwpush:String) [], CommandNotFoundException
  + FullyQualifiedErrorId : CommandNotFoundException

PS S:> Get-Command new-pwpush
Get-Command : The term 'new-pwpush' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

Get-Command new-pwpush

  + CategoryInfo          : ObjectNotFound: (new-pwpush:String) [Get-Command], CommandNotFoundException
  + FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.GetCommandCommand

PS S:> Get-Module kppwpush
ModuleType Version    Name                                ExportedCommands

Script     1.3.1      kppwpush                            {Connect-KpPwpush, Get-KpPwpush, Get-KpPwpushActive, Get-K...
PS S:> Get-Module kppwpush | select -ExpandProperty exportedcommands
Key                    Value

Connect-KpPwpush       Connect-KpPwpush
Get-KpPwpush           Get-KpPwpush
Get-KpPwpushActive     Get-KpPwpushActive
Get-KpPwpushExpired    Get-KpPwpushExpired
Get-KpPwpushPreview    Get-KpPwpushPreview
Get-KpPwpushUrl        Get-KpPwpushUrl
Get-KpPwpushUrlActive  Get-KpPwpushUrlActive
Get-KpPwpushUrlExpired Get-KpPwpushUrlExpired
Get-KpPwpushUrlPreview Get-KpPwpushUrlPreview
Invoke-KpPwpushRequest Invoke-KpPwpushRequest
New-KpPwpush           New-KpPwpush
New-KpPwpushUrl        New-KpPwpushUrl
Remove-KpPwpush        Remove-KpPwpush
Remove-KpPwpushUrl     Remove-KpPwpushUrl

Hi @CharEmMech all commands have a prefix of Kp hence in your example you'd like to run New-KpPwpush


[WIP] Upgrade Android SkyService to 4.3.0

struggling with build errors now

struggling with build errors now

@kndoshn what version of Android Studio are you trying to open the project in? I can't even get the project to resolve in the latest Canary release of Hedgehog from the main branch. The Gradle plugin should be updated to the latest version, Kotlin, etc etc. most likely to be able to build in newer versions of AS.

@abunur This is the version I was trying to open with.
Android Studio Flamingo | 2022.2.1 Patch 2

@abunur This is the version I was trying to open with.
Android Studio Flamingo | 2022.2.1 Patch 2

Hi @kndoshn any progress with trying to get SkyService to build? I would start with Main branch without any changes and just see if it builds for you or not. As I mentioned I couldn't even get that to build (I'm running Hedgehog), so it seems likely that things have changed with newer versions of AS that will require changes to the project.
If you are stuck do you think we should get @phatblat involved?


Threads get pushed below sidebar on Safari

Invalid feedback https://mod.reddit.com/mail/perma/jfhl/wfgf


Stop asynchronous ROS updates with synchronous ones

VisualizationManager uses [start|stop]Update() to pause ROS updates during dialog box interaction (#631).
However, asynchronous updates via threaded_queue_ were still performed, leading to a memory leak (#1621),
because messages were partially processed by the thread (i.e. kept in memory), but not finally processed
(and cleaned up) by the synchronous Display::update() call.
Pausing threaded processing too resolves that issue.
Fixes #1606. Fixes #868.
@simonschmeisser: Do you see any issue pausing asynchronous message processing too while displaying dialogs?

Disclaimer first: I'm writing this from my mobile at Lake Garda ... Will be back in one week for more detailed review
You could use Qt's object tree for cleanup:
timer_ = new QTimer(this);
Will be automatically deleted in the destructor of this (calling delete manually as well is fine as it can deregister itself at the parent)
Use 'new' stile connect (Qt5 or newer):
connect(timer_, &QTimer::timeout, this, &VisManager::onUpdate);
Now to the actual issue: does receiving a PointCloud actually trigger an Ogre rendering? I don't fully understand why it was disabled in 2013 and if we still need this at all?
If we do still need this, your PR looks fine and I cannot think of obvious issues. Haven't tested anything though ...
#868 does not sound like a memory leak but just an unbounded queue. Doesn't the PointCloudDisplay already have a queue size that could be used to discard old messages like suggested in the comment?
Am Donnerstag, 17. Juni 2021 schrieb Robert Haschke:

VisualizationManager uses [start|stop]Update() to pause ROS updates during dialog box interaction (#631).
However, asynchronous updates via threaded_queue_ were still performed, leading to a memory leak (#1621),
because messages were partially processed by the thread (i.e. kept in memory), but not finally processed
(and cleaned up) by the synchronous Display::update() call.
Pausing threaded processing too resolves that issue.
Fixes #1606. Fixes #868.
@simonschmeisser: Do you see any issue pausing asynchronous message processing too while displaying dialogs?
You can view, comment on, or merge this pull request online at:
https://github.com/ros-visualization/rviz/pull/1635
-- Commit Summary --

Stop asynchronous ROS updates with synchronous ones

-- File Changes --
M src/rviz/visualization_manager.cpp (17)

-- Patch Links --
https://github.com/ros-visualization/rviz/pull/1635.patch
https://github.com/ros-visualization/rviz/pull/1635.diff
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/ros-visualization/rviz/pull/1635

--
Gesendet von meinem Sailfish Gerät

First, I didn't modernize any code (e.g. switching to Qt's object tree instead of manual new/delete or using Qt5-style signal+slots) and I don't think it is worth the effort.

I don't fully understand why it was disabled in 2013 and if we still need this at all?

Me neither. There was an issue back than: #629, which was solved by disabling message processing while showing dialogues.
I thought it would be safer to stick with the current behaviour. But, we could try to revert that.

#868 does not sound like a memory leak but just an unbounded queue. Doesn't the PointCloudDisplay already have a queue size that could be used to discard old messages like suggested in the comment?

You are right. It's an unbounded queue "only". However, the queue grows rather fast and thus "feels" like a mem leak at first sight. There are several queues involved: First, there is the subscriber message queue, which size is controlled by the display. Second, there is an internal queue to pass partially processed clouds from the processing thread to the main rendering thread. Its size isn't controlled (and grew without bounds).
My solution - in contrast to limiting the queue (https://github.com/ros-visualization/rviz/issues/868#issuecomment-89044085) - fixes the issue even deeper: The messages shouldn't be processed at all - not only in PointCloudCommon, but in general by all displays employing threaded_nh_.