Revive the rust-libp2p Open Maintainers Call

The rust-libp2p open maintainers call has been happening since January. The next one is here: https://lu.ma/2024-04-09-rust-libp2p
The notes are taken here: https://docs.google.com/document/d/1bMfzeOPGwEGAet-y_uy2DL_Yxgceu7PhkPuTrpMA2oc/edit?usp=sharing


Align GEDI_L4A to VEDA notebook guidelines

EPIC
#240
Description
The GEDI L4A Subsetting Example notebook should be reviewed using the this guidance and includes the following components:

Style
Rendering Information
Notebook Sections

Acceptance Criteria (Tasks):

[x] Style should be consistent with guidance provided
[x] Rendering information should be complete and accurate. If there is no author/date information available, consult MAAP leads @wildintellect @abarciauskas-bgse for guidance
[x] Ensure notebooks include the recommended standard sections

PR: https://github.com/MAAP-Project/maap-documentation/pull/270

Approved and merged


Question about adding songs

Describe your problem here.
Is there a song based difficulty feature. Like this: Inst-difficulty
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No response

if there is, it doesnt work

didnt add the path in there

hey there! no, this engine doesn't have a Difficulty-based song feature.

if ima be honest, thought there was

would be a good idea if ima be honest

ok

inactive for 1 month, someone close this


Having Trouble Getting Match All Query to Work

I am having trouble getting the match all query to return all results when being run from code. If I run the standard match all query on the same index from my Kibana console then the match all runs correctly. I can also run a MGet query from code using the package by passing in the specific ids and the results are all returning correctly. See example code at the end where this issue is present.
Which version of Elastic are you using?
[x] elastic.v7 (for Elasticsearch 7.x)
[ ] elastic.v6 (for Elasticsearch 6.x)
[ ] elastic.v5 (for Elasticsearch 5.x)
[ ] elastic.v3 (for Elasticsearch 2.x)
[ ] elastic.v2 (for Elasticsearch 1.x)
Please describe the expected behavior
The match all query would return all of the results for the index it is being run on.
Please describe the actual behavior
The match all query is returning 0 results when using the query from the v7 package.
Any steps to reproduce the behavior?
I have filled in about 10 documents into my index, and am passing around a variable with the index name stored in it to ensure that the index name is always consistent.
My import at the top of the file is like so elastic "github.com/olivere/elastic/v7"
The variable name c you see in the code is an initialized *elastic.Client
Here is the code I have using the match all query:
	q := elastic.NewMatchAllQuery()
	if noLimit {
		return c.Search(idx).Query(q).Do(ctx)
	}
	return c.Search(idx).Size(limit).Query(q).Do(ctx)

For me using both a limit and no limit the number of results returned when running this code is 0. If I run the standard match all query from the kibana console on the same index I see all results.
I can also use the Mget from the package to see all results when giving it all of the ids like so:
	mgetsvc := c.MultiGet()
	for _, id := range ids {
		item := elastic.NewMultiGetItem().Type("doc").Index(idx).Id(id)
		mgetsvc.Add(item)
	}
	resp, err := mgetsvc.Do(ctx)

I am struggling to figure out why when I run these queries back to back the first returns no results but the second does return results. Any assistance would be appreciated!

Hmm... more often than not these issues are due to the mapping. E.g. if you do a simple query with a string type, ES does a fulltext query, not an exact query. What you typically have to use is name.keyword for exact matches instead of name.
Can you double-check that this isn't the problem? Can you post your mapping and a small set of documents and a query for me to reproduce?

Here is a small example mapping and a few documents:
PUT /testing
PUT /testing/_mapping
{
  "properties": {
    "id": {
      "type": "text",
      "fields": {
        "keyword": {
          "type": "keyword",
          "ignore_above": 256
        }
      }
    },
    "value": {
      "type": "text",
      "fields": {
        "keyword": {
          "type": "keyword",
          "ignore_above": 256
        }
      }
    }
  }
}

{
    "id": "id-1",
    "value": "value 1"
}
{
    "id": "id-2",
    "value": "value 2"
}
{
    "id": "id-3",
    "value": "value 3"
}
{
    "id": "id-4",
    "value": "value 4"
}

It presents an interesting case where when creating the index and mapping from code, or from kibana, the match all query in code does not work at first, but the MGets and single Gets always seem to be successful. However, if the match all is run from kibana I get all of the results returned. The minute I go and create a doc in kibana and not a doc from code then I can run a successful match all from code.

That's as expected. I hope this recipe does illustrate the point.


Consider switching to new x86_64-unknown-none target

Rust recently added a Tier-3 x86_64-unknown-none target: https://github.com/rust-lang/rust/pull/89062
I believe it should be possible to use this target instead of the custom x86_64-blog_os.json target. It's designed to support bare-metal x86_64 code (like operating systems), and the target definition looks almost identical to x86_64-blog_os.json. It should be possible to address any differences via -C flags.

Stablised today in 1.58

Awesome! I'll try to switch the blog to it when I have some time. I think we are still having some problems with loading PIC code in the bootloader crate (https://github.com/rust-osdev/bootloader/pull/206#issuecomment-1008446687), but this might be avoidable using -C flags as @Aaron1011 mentioned.

I should note that I have tried using -C relocation-model=pie with no success, and -C relocation-model=static is a bit of a ridiculous idea IMO.

Why is -Crelocation-model=static rediculous? That is the relocation model currently used by blog os.

@bjorn3 Really? I didn't know that. I assumed that it used PIE. No wonder my change to have it use PIE didn't work. As for it being ridiculous, I guess I look at it from a security standpoint: if the relocation model is static it means that once you know where the kernel has been loaded into memory, you instantly can determine where all the variables are and all that trivially. I didn't know that static was the relocation model that blog_os used though. PIC will be pretty nice to have, and same for ASLR once its added.

Quick update: This will be part of the upcoming third edition. It is now even a Tier 2 target, which means that it's installable through rustup, so -Zbuild-std is no longer necessary.


[Enhancement] Integration test testEstimateLag can not pass

Before Creating the Enhancement Request

[X] I have confirmed that this should be classified as an enhancement rather than a bug/feature.

Summary
Integration test testEstimateLag can not pass
Motivation
Integration test testEstimateLag can not pass
Describe the Solution You'd Like
Fix the test or related code
Describe Alternatives You've Considered
No
Additional Context
No response

can I fix it?

can I fix it?
Of course

Has it been completed? I would also like to give it a try.

This issue is related to the 'develop' branch, right? I couldn't reproduce the test failure in the 5.1.4 branch.

Has it been completed? I would also like to give it a try.

This issue is related to the 'develop' branch, right? I couldn't reproduce the test failure in the 5.1.4 branch.

This issue is related to the 'develop' branch, right? I couldn't reproduce the test failure in the 5.1.4 branch.

Has it been completed? I would also like to give it a try.

This issue is related to the 'develop' branch, right? I couldn't reproduce the test failure in the 5.1.4 branch.

Yes, in develop branch. You can submit a PR to fix it.

I cannot reproduce testEstimateLag's test failure unless it fails when my disk space is less than 10% causing the DefaultMessageStore.isSpaceToDelete() function to trigger the file to be deleted. So sir, does your question refer to this?

刘家辉
@.***

------------------ 原始邮件 ------------------
发件人: @.>;
发送时间: 2024年1月27日(星期六) 晚上11:15
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [apache/rocketmq] [Enhancement] Integration test testEstimateLag can not pass (Issue #7765)
This issue is related to the 'develop' branch, right? I couldn't reproduce the test failure in the 5.1.4 branch.
Has it been completed? I would also like to give it a try.
This issue is related to the 'develop' branch, right? I couldn't reproduce the test failure in the 5.1.4 branch.
Yes, in develop branch. You can submit a PR to fix it.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were assigned.Message ID: @.***>

This issue is related to the 'develop' branch, right? I couldn't reproduce the test failure in the 5.1.4 branch.

Has it been completed? I would also like to give it a try.

This issue is related to the 'develop' branch, right? I couldn't reproduce the test failure in the 5.1.4 branch.

Yes, in develop branch. You can submit a PR to fix it.

I cannot reproduce testEstimateLag's test failure unless it fails when my disk space is less than 10% causing the DefaultMessageStore.isSpaceToDelete() function to trigger the file to be deleted. So sir, does your question refer to this?

@UWEPPPP I have reproduced the issue, but my disk is far from full. It's very stable to reproduce.


Fix link to Angular2 observables tutorial

I've updated the link:
https://berndsgn.ch/angular2-and-feathersjs -> https://berndsgn.ch/observables-with-angular-and-feathersjs/

Thank you!


Update istio-deploy-addon.md

the default version changed into 1.19.

@shashankbarsin

Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@shashankbarsin
Can you review this old PR and determine whether it needs to be closed or merged?
@MicrosoftDocs/public-repo-pr-review-team

PR review team emailed author today

PR review team contacted author via Teams today

per author:
Istio revision asm-1-19 is nearing deprecation. Product team will update the revision to the latest revision in the docs instead soon


temporary fix e2e by duping files

@erictune

Seeing if this fixes jenkins.

This broke the build.


[SUGGESTION] Selecting seed of generation

Is your feature request related to a problem? Please describe.
Sometimes you need just to make more or less similar generations with partial editing of preset
Describe the solution you'd like
A toggle button and a place for text in settings that allows you to select seed
Describe alternatives you've considered
None
Additional context
If there is no seeds in territect then f

At the moment, there are no seeds as Territect uses TPT's random number generation. To implement seeds, I would need to implement my own random number generator.
Also, due to how pseudo-random number generation works, changing the preset would likely make anything after the change generate differently even with the same seed. This would require some rather significant changes to Territect, but it might still be a worthwhile addition.


Library build using both script setup and regular script tags resulting in undefined references

Describe the bug
Using Vitejs + Vue, following a standard init :
$> npm init vite@latest
✔ Select a framework: › vue
✔ Select a variant: › vue

Using both <script setup> and <script> tags within an SFC component lead to undefined reference on the data var used in a v-modal (check out HelloWorld.vue in the linked Reproduction repo below)
Upon trying to use the input tag at the runtime, the following error is displayed :
Uncaught ReferenceError: testData is not defined

The reason to that is the following generated function inside the built dist/test-lib.umd.js file :
  function setup(__props) {
    const title = "HelloWorld Title 1";
    return (_ctx, _cache) => {
      return openBlock(), createElementBlock(Fragment, null, [
        createBaseVNode("h1", null, toDisplayString(title)),
        _hoisted_1,
        withDirectives(createBaseVNode("input", {
          type: "text",
          "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(testData) ? testData.value = $event : null)
        }, null, 512), [
          [vModelText, _ctx.testData]
        ])
      ], 64);
    };
  }

=> testData var is not defined anywhere
Removing <script setup> tag (or all its contents) from HelloWorld.vue makes everything work normally
Not sure if it's Vite or Vue bug, but the fact thats it's specific to Vitejs library build mode, I suppose it goes here.
Reproduction
Reproduction repo containing minimal code :
https://github.com/artem-tim/vitejs-vue-bug-demo
System Info
System:
    OS: Linux 5.4 Ubuntu 18.04.5 LTS (Bionic Beaver)
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
    Memory: 19.83 GB / 31.22 GB
    Container: Yes
    Shell: 4.4.20 - /bin/bash
  Binaries:
    Node: 14.15.5 - ~/.nvm/versions/node/v14.15.5/bin/node
    Yarn: 1.22.5 - /usr/bin/yarn
    npm: 6.14.11 - ~/.nvm/versions/node/v14.15.5/bin/npm
  Browsers:
    Chrome: 92.0.4515.107
    Firefox: 94.0
  npmPackages:
    @vitejs/plugin-vue: ^1.9.3 => 1.9.4
    vite: ^2.6.4 => 2.6.13

Used Package Manager
npm
Logs
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

This seems like an issue in the Vue compiler, though does Vue support mixed options and composition API with states declared in two places? Even if it does, it sounds like an odd thing to do. I'm not a Vue expert, so would appreciate another opinion if this is intended behaviour.

I tested this in the Vue playground and got the same issue in runtime too. I don't think Vue supports having states in both options and composition API. Closing as working as intended.

@bluwy Thanks for confirming. If Vue does not support this, then the docs are outright false here, are they not ? https://vuejs.org/api/sfc-script-setup.html#usage-alongside-normal-script

You can use both alongside for the usecases mentioned in the docs, but you can't declare to Vue instances in both scripts. Perhaps the documentation could be clearer about that, you can propose a PR to the docs to improve it though.


Experimenting with Turbo-Flask functionality on Multiple Webpages

0. Note:
Hello,
I'm still relatively inexperienced in Flask, though I've been using for a while now.
Also, the HTML & CSS templates for the webpages can be found here:
TempA.txt
TempB.txt
1. The Premise:
Recently, as part of a project, I needed to update a webpage dynamically when a remote trigger was activated.
Let's say there are two webpages: Webpage A & Webpage B. Both A & B are running at the same time, and have been set some buttons within forms. These buttons are assigned values and, when clicked, these values are sent to the Flask app & stored in some database.

Depending on the selected button, the text on the opposite webpage should dynamically update to display the value of the button. That is, if "Btn 1" on Webpage A was clicked, it should dynamically update the
 element in Webpage B to say "Btn 1".
So far, the webpages were able interact in such a way using a database, by storing the latest button values and feeding them to each webpage. However, the values were not displayed on the opposite webpage unless it was refreshed manually. Quite a few sources suggested using Sockets as a way to update webpages in real-time.
From what I could understanding, however, that may be a bit excessive for tasks like this. Thus, Turbo-Flask was recommended as a solution, as it seemed to sidestep the process of manually setting up a secondary Socket server.
2. The Code:
I don't know a lot about client and server side interactions, or the turbo.js resource. Using the documentation, though, I implemented the following solution:
from flask import Flask, request, render_template
from turbo_flask import Turbo
import os

def create_app():
   app = Flask(__name__)
   app.config.from_mapping(
       SECRET_KEY=os.urandom(16),
   )
   turbo = Turbo(app)

   @app.route("/A", methods=["GET", "POST"])
   def A():
       if request.method == "POST":
           value = request.form["option"]

           if turbo.can_stream():
               turbo.stream(
                   turbo.update(value, "bTextB"),
               )
               print("Pushed!")
           else:
               print("Can't stream updates")

       return render_template("TempA.html", bText="Bread Text")

   @app.route("/B", methods=["GET", "POST"])
   def B():
       if request.method == "POST":
           value = request.form["option"]

           if turbo.can_stream():
               turbo.stream(
                   turbo.update(value, "bTextA"),
               )
               print("Pushed!")
           else:
               print("Can't Stream updates!")

       return render_template("TempB.html", bText="Bread Text")

   return app

3. The Error(s):
When running the following code, however, the text elements stayed the same. Instead, the following error popped up:
"GET /turbo-stream HTTP/1.1" 400 -
The console did output a "Pushed!" message, however, meaning the turbo could stream and attempted to do so. When inspecting the Firefox console, the console reported the following errors:

Firefox can’t establish a connection to the server at ws://<IP_ADDRESS>:5000/turbo-stream. (Error in /A)
Error: Form responses must redirect to another location. (Error in turbo.js)

4. The Question(s):
This leads me to the following questions:

Is Turbo-Flask the best Flask extension for tasks like this? Should I be considering other extensions, such as Sockets?
Based on the current implementation, would the code actually work? Is it possible to add such inter-webpage  functionality in future, or would it be too niche?
What could I do to fix my current code?

I apologize in advance if I've missed any details or have added to much.

First of all, the Firefox issue is I think a known problem that has been fixed a while ago in Werkzeug, but hasn't been released yet. You may want to install the main branch of Werkzeug to see if the problem goes away.
Now on to your questions:
I can't really tell you it is the "best" extension. There are really too many ways to do this, and which one is the best depends on your personal preferences and experience. It is an adequate solution, that much I can tell you.
I think your main (maybe only) problem is that you are not returning the streams. When you call turbo.stream() to generate an update stream, you have to return that as the response. You are generating the stream, then discarding it, and then returning the original page template, which invalidates all the work Turbo-Flask is doing.

Progress Update:
Thank you for the quick response, Miguel!
After installing the Werkzeug library via GitHub (as you suggested), the Firefox error seemed to be resolved!
However, returning the streams as is didn't seem to update the other webpage. I'm supposing that the Streams' scopes are restricted to the assigned App Route, so it can't update the second webpage dynamically.
Instead, I've tried using a database to track button presses from each webpage. Using the database values, the application compares the values stored into the
 with the DB value. If the value is different, it changes the
 element to the new value, and the server keeps track of the new element value.
Below are the updates to the previous code, using the same HTML pages but now introduces an SQLite Database.
# Set a global 'dict' variable to track the values of div elements
session = {'bTextA': None,
           'bTextB': None}

def create_app():
    ...

    from .DB import init_app, get_db

    init_app(app)
    turbo = Turbo(app)

    @app.route("/A", methods=["GET", "POST"])
    def A():
        global session
        db = get_db()
        bTextA = db.execute("SELECT OptnVal FROM Options WHERE toTable = 'A' ORDER BY OptionID DESC").fetchone()
        print(bTextA['OptnVal'])

        if session['bTextA'] != bTextA['OptnVal']:
            if turbo.can_stream():
                session['bTextA'] = bTextA['OptnVal']
                print("Pushed!")
                return turbo.stream(
                    turbo.update(bTextA['OptnVal'], "bTextA"),
                )
            else:
                print("Can't stream updates")

        if request.method == "POST":
            value = request.form["option"]
            db.execute("INSERT INTO Options(OptnVal, toTable) VALUES(?, 'B')", (value,))
            db.commit()

        return render_template("TempA.html", bText="Bread Text")

    @app.route("/B", methods=["GET", "POST"])
    def B():
        global session
        db = get_db()
        bTextB = db.execute("SELECT OptnVal FROM Options WHERE toTable = 'B' ORDER BY OptionID DESC").fetchone()
        print(bTextB['OptnVal'])

        if session['bTextB'] != bTextB['OptnVal']:
            session['bTextB'] = bTextB['OptnVal']
            if turbo.can_stream():
                print("Pushed!")
                return turbo.stream(
                    turbo.update(bTextB['OptnVal'], "bTextB"),
                )
            else:
                print("Can't stream updates!")

        if request.method == "POST":
            value = request.form["option"]
            db.execute("INSERT INTO Options (OptnVal, toTable) VALUES(?, 'A')", (value,))
            db.commit()

        return render_template("TempB.html", bText="Bread Text")

    return app

Note: There isn't much to the SQLite Database Schema. There are three fields:

OptionID: The Primary Key that Auto-Increments whenever it receives a new button press.
OptnVal: The value of the button press.
toTable: This field tracks which webpage's element must be updated.

I'm aware this is a quite rushed functionality implementation, based on the number of bugs present:

The
 still don't refresh dynamically, defeating the whole purpose of the implementation.
The
 don't update unless another action occurs on the webpage, causing the webpage to update.
If the webpages were refreshed manually, the database & updating system breaks down for a while.
When setting the original "bText" values to the recorded session button values, the system breaks down significantly.

For anyone wanting to recreate the .DB Blueprint, use the code outlined in the Flask Documentation's Tutorial for Accessing Databases: https://flask.palletsprojects.com/en/2.0.x/tutorial/database/
PS. Is it possible to add some form of multi-webpage modification functionality to Turbo-Flask in some way, so that it works independently of a database? Something along of the lines of: turbo.update( content, target, template [defaults to the scoped route])
I understand if this is a niche subject, or if it's too much of an effort to implement such a functionality.
Also, I know could use a meta refresh HTML tag, but that would refresh the entire page. So...

This may sound bad, but I think you are overcomplicating this. Let's go back to the original question. Unfortunately since there is no code I can run, I can only make suggestions that I think will work. I now realize that I was close on my suggestion to return the turbo.stream() response, but really what you need is slightly different.
There are two operations in the Turbo Stream module, turbo.stream() and turbo.push(). The stream operation sends a streamed response to the originating client only, which I now realize is not what you need. The push operation sends an update to one, a set or all connected clients. So basically what you need is to push an update, which will trigger all connected clients to update. Something like this:
   @app.route("/A", methods=["GET", "POST"])
   def A():
       if request.method == "POST":
           value = request.form["option"]

           if turbo.can_push():
               turbo.push(
                   turbo.update(value, "bTextB"),
               )
               print("Pushed!")
           else:
               print("Can't push updates")

       return render_template("TempA.html", bText="Bread Text")

Once again, I'm writing this by memory, so it may need some polishing to make it into a fully working solution.

Glad to hear this is working. Congrats!
Answers to your questions:

The stream() method is used to return an optimized response to a POST request. Because it is an HTTP response, it goes only to the client that made the originating request. The best use case for this is when a form is submitted, you can return validation errors via stream().
The push() method accepts a second argument that is optional, used to indicate who should receive the update. When this argument is omitted, all connected clients get it. If you have other clients that also use Turbo-Flask and happen to have an element with the same ID you are passing here, then they will also update. If you assign IDs to your users (see documentation) you can then pass the second argument, which can be the ID of a single client to target, or a list with all the IDs you want to get the push.

Hi,
Same uage, i think.
i've got a HTML page with return(render_template(...))
# Standard turbo-flask
def update_load():
    with app.app_context():
        while True:
            turbo.push(turbo.replace(render_template('info.html'), target='load'))
            time.sleep(0.2)
# [...]

@app.before_first_request
def before_first_request():
    threading.Thread(target=update_load).start()

            if turbo.can_push():
                turbo.push(turbo.replace(target='info.html', content={"total": "{:.2f}".format(total),
                                                                        "used": "{:.2f}".format(used),
                                                                        "free": free,
                                                                        "prctused": "{:.2f}".format(percentused),
                                                                        "proccount": proccount,
                                                                        "rytrsf": get_ry_info["progress"]}))
                time.sleep(0.7)
            else:
                print('Turbo pousse pas ! :( ')
            return render_template('info.html',
                                   title=title,
                                   stylecssprogbar='/static/cssprogbar.css',
                                   scriptjs="/static/progbar.js",
                                   total="{:.2f}".format(total),
                                   used="{:.2f}".format(used),
                                   free=free,
                                   prctused="{:.2f}".format(percentused),
                                   proccount=proccount,
                                   rytrsf=str(get_ry_info["progress"]))

<!DOCTYPE html>

  <meta charset="UTF-8">
  <title>{{ title }}</title>
  {{ turbo() }}
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
  <link rel="stylesheet" href="{{ stylecssprogbar }}">

<text>

  {{ used }} Go | {{ total }} Go au total.

  {{ prctused }} % used.
</text>

    {{ prctused }} %

{% if proccount > 0 %}

    {{ rytrsf }} %

{% endif %}

On DEBUG mode  :
print('Turbo pousse pas ! :( ') # Translate = Turbo doesn't push ! :(

What's wrong ?

@SlodeSoft first of all, you seem to have an error in your template. Can you fix that to eliminate that as a possible contributor to the problem?
If turbo.can_push() returns false it means that in that request, the client cannot handle turbo stream updates. I think you may need to familiarize yourself with the turbo client-side documentation to understand why your usage is invalid. Turbo stream updates are accepted only as a response of a form POST, I don't see any POST requests in your log.

For reference / future readers. I got the example to work on Azure App Service Linux (Python 3.9)
Using the following line Under Configuration >> General Settings >> Startup Command:
gunicorn --bind=<IP_ADDRESS> --workers=1 --threads=100 app:app
And the somewhat modified code for  app.py:
from flask import Flask, request, render_template
from turbo_flask import Turbo
import os

app = Flask(__name__)
turbo = Turbo(app)

app.secret_key = os.getenv("APP_SECRET_KEY")

# Execute the following code, whenever the "/A" (Webpage A) route is called from the domain

@app.route("/A", methods=["GET", "POST"])
def A():

    # Store the value of the POSTed button input, whenever any button is pressed
    if request.method == "POST":
        value = request.form["option"]

        # Push an update to all HTML templates,
        # that updates all
 element with an id="bTextB" to received button input
        if turbo.can_push():
            print("Pushed!")
            turbo.push(
                turbo.update(value, "bTextB"),
            )
        # Report if there are any issues with pushing using turbo
        else:
            print("Can't push updates to B!")

     # Return the original webpage template for Webpage A, with some default text
    return render_template("TempA.html", bText="Bread Text")

# Execute the following code, whenever the "/A" (Webpage A) route is called from the domain

@app.route("/B", methods=["GET", "POST"])
def B():

    # Store the value of the POSTed button input, whenever any button is pressed
    if request.method == "POST":
        value = request.form["option"]

        # Push an update to all HTML templates,
        # that updates all
 element with an id="bTextA" to received button input
        if turbo.can_push():
            print("Pushed!")
            turbo.push(
                turbo.update(value, "bTextA"),
            )
        # Report if there are any issues with pushing using turbo
        else:
            print("Can't push updates to A!")

     # Return the original webpage template for Webpage B, with some default text
    return render_template("TempB.html", bText="Butter Text")

if __name__ == "__main__":
    app.run()

The secret key is set in the Portal under Configuration >> Application Settings


Feat/bottom app navigation

Added a navigation bar overlay for the screens, this pull request closes #54 :
https://github.com/Jrod7938/TxTchangeApp/assets/46418742/b2831205-ebee-4c73-b34d-b1edfd5eb72b

Hey, can you include images of the bottom navigation in this pull request?

Hey, can you include images of the bottom navigation in this pull request?

I have also pinned a video to the top comment^

Hey, do you think you can maybe format it to look something like this (just the bottom, but when you do the top it would work the same way)? Also, I don't think there is enough color contrast between clicked and unclicked icons. The colors looks too similar.

Hey, do you think you can maybe format it to look something like this (just the bottom, but when you do the top it would work the same way)? Also, I don't think there is enough color contrast between clicked and unclicked icons. The colors looks too similar.

Updated app icons:
https://github.com/Jrod7938/TxTchangeApp/assets/46418742/bf0095c8-96c8-4eec-92e7-5568dc861f79

Great I think this looks really good. Last few things, I see that there is a line above the navigation bar in light mode. Could you do the same in dark mode? Also, for the dark mode color, it's good that there is more contrast but maybe can we make the unclicked icons (light grey) a bit darker (or closer to white)? We want enough contrast between the icon states, but also easy to see against the background. It's a little challenging to see against the black.  Thanks :)

Great I think this looks really good. Last few things, I see that there is a line above the navigation bar in light mode. Could you do the same in dark mode? Also, for the dark mode color, it's good that there is more contrast but maybe can we make the unclicked icons (light grey) a bit darker (or closer to white)? We want enough contrast between the icon states, but also easy to see against the background. It's a little challenging to see against the black. Thanks :)

Im using the material theme, if you wish to update the colors; open a pull request and update the material theme. Below is the icons with the provided material them colors:
https://github.com/Jrod7938/TxTchangeApp/assets/46418742/e4ee96a1-09d8-47d4-8ca9-75f6c0ba3528

Okay, the blue looks good. And if this is the theme of the UI we can work with this. Good to go


feat: upgrade to node 22

#24  👈 (View in Graphite)
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Merge activity

Dec 10, 5:21 PM GMT+1: A user started a stack merge that includes this pull request via Graphite.


Fix spacing on inline lists for footers

What is the context of this PR?
Fixes issue with inline lists on footers

How to review
Check footers with inline lists now look good

 Fix footer inline list spacing issue


addCloudwatchTimestamp blocks zero metrics

I had a problem where I was not getting zero metrics published despite having nilToZero: true. I discovered that having addCloudwatchTimestamp: true stops it publishing zero metrics. As it's explicitly coded to work like that I expect there is a reason for this that is not clear to me. I couldn't find an explanation in the documentation, perhaps this could be clarified ?

i also experienced exactly the same issue which has made the addCloudwatchTimestamp function unusable as this creates multiple metrics with zero data.

I also have been bit by this. Current example is aws_alb_httpcode_elb_5_xx_count_sum - my application has produced no 5xx, but instead of YACE returning 0, it's not reporting the metric at all.
Version: v0.38.0-alpha
My config looks like:
apiVersion: v1alpha1
discovery:
  jobs:
  - regions:
    - us-east-1
    type: alb
    addCloudwatchTimestamp: true
    metrics:
      - name: ActiveConnectionCount
        statistics:
        - Sum
        period: 300
        length: 3600
      - name: ClientTLSNegotiationErrorCount
        statistics:
        - Sum
        period: 300
        length: 3600
        nilToZero: true
      - name: ConsumedLCUs
        statistics:
        - Sum
        period: 300
        length: 3600
      - name: HTTP_Fixed_Response_Count
        statistics:
        - Sum
        period: 300
        length: 3600
        nilToZero: true
      - name: HTTP_Redirect_Count
        statistics:
        - Sum
        period: 300
        length: 3600
        nilToZero: true
      - name: HTTP_Redirect_Url_Limit_Exceeded_Count
        statistics:
        - Sum
        period: 300
        length: 3600
        nilToZero: true
      - name: HTTPCode_ELB_3XX_Count
        statistics:
        - Sum
        period: 300
        length: 3600
        nilToZero: true
      - name: HTTPCode_ELB_4XX_Count
        statistics:
        - Sum
        period: 300
        length: 3600
        nilToZero: true
      - name: HTTPCode_ELB_5XX_Count
        statistics:
        - Sum
        period: 300
        length: 3600
        nilToZero: true
      - name: HTTPCode_ELB_500_Count
        statistics:
        - Sum
        period: 300
        length: 3600
        nilToZero: true
      - name: HTTPCode_ELB_502_Count
        statistics:
        - Sum
        period: 300
        length: 3600
        nilToZero: true
      - name: HTTPCode_ELB_503_Count
        statistics:
        - Sum
        period: 300
        length: 3600
        nilToZero: true
      - name: HTTPCode_ELB_504_Count
        statistics:
        - Sum
        period: 300
        length: 3600
        nilToZero: true
      - name: IPv6ProcessedBytes
        statistics:
        - Sum
        period: 300
        length: 3600
      - name: IPv6RequestCount
        statistics:
        - Sum
        period: 300
        length: 3600
      - name: NewConnectionCount
        statistics:
        - Sum
        period: 300
        length: 3600
      - name: ProcessedBytes
        statistics:
        - Sum
        period: 300
        length: 3600
      - name: RejectedConnectionCount
        statistics:
        - Sum
        period: 300
        length: 3600
        nilToZero: true
      - name: RequestCount
        statistics:
        - Sum
        period: 300
        length: 3600
      - name: RuleEvaluations
        statistics:
        - Sum
        period: 300
        length: 3600
      - name: ELBAuthError
        statistics:
        - Sum
        period: 300
        length: 3600
        nilToZero: true
      - name: ELBAuthFailure
        statistics:
        - Sum
        period: 300
        length: 3600
        nilToZero: true
      - name: ELBAuthLatency
        statistics:
        - Average
        period: 300
        length: 3600
      - name: ELBAuthRefreshTokenSuccess
        statistics:
        - Sum
        period: 300
        length: 3600
        nilToZero: true
      - name: ELBAuthSuccess
        statistics:
        - Sum
        period: 300
        length: 3600
        nilToZero: true
      - name: ELBAuthUserClaimsSizeExceeded
        statistics:
        - Sum
        period: 300
        length: 3600
        nilToZero: true
  - regions:
    - us-east-1
    type: alb
    addCloudwatchTimestamp: true
    awsDimensions:
      - AvailabilityZone
    metrics:
      - name: DroppedInvalidHeaderRequestCount
        statistics:
        - Sum
        period: 300
        length: 3600
      - name: ForwardedInvalidHeaderRequestCount
        statistics:
        - Sum
        period: 300
        length: 3600
  - regions:
    - us-east-1
    type: alb
    addCloudwatchTimestamp: true
    awsDimensions:
      - TargetGroup
    metrics:
      - name: HealthyHostCount
        statistics:
        - Average
        period: 300
        length: 3600
      - name: HTTPCode_Target_2XX_Count
        statistics:
        - Sum
        period: 300
        length: 3600
        nilToZero: true
      - name: HTTPCode_Target_3XX_Count
        statistics:
        - Sum
        period: 300
        length: 3600
        nilToZero: true
      - name: HTTPCode_Target_4XX_Count
        statistics:
        - Sum
        period: 300
        length: 3600
        nilToZero: true
      - name: HTTPCode_Target_5XX_Count
        statistics:
        - Sum
        period: 300
        length: 3600
        nilToZero: true
      - name: NonStickyRequestCount
        statistics:
        - Sum
        period: 300
        length: 3600
      - name: RequestCountPerTarget
        statistics:
        - Sum
        period: 300
        length: 3600
      - name: TargetConnectionErrorCount
        statistics:
        - Sum
        period: 300
        length: 3600
        nilToZero: true
      - name: TargetResponseTime
        statistics:
        - p95
        period: 300
        length: 3600
      - name: TargetTLSNegotiationErrorCount
        statistics:
        - Sum
        period: 300
        length: 3600
        nilToZero: true
      - name: UnHealthyHostCount
        statistics:
        - Average
        period: 300
        length: 3600

I've been getting around this in my Grafana dashboards by using or:
sum(aws_alb_httpcode_elb_5_xx_count_sum) or vector(0)


Minor: Stripped warnings from test results.

This is minor
I have been crawling over the code a lot recently, might as well clear
lint warnings while I read.

bad idea.


Newtonsoft.json has a high vulnerability

Describe the bug
A couple of the libraries are using Newtonsoft 11 which has
Steps to reproduce
Steps to reproduce the behavior:

Open project in visual studio
Observe packages in Package Manager including Newtonsoft has a high vulnerability

Expected behavior
Package updated to 13 or replaced with system.text.json
Environment (please complete the following information):

Steeltoe 3.2.6

Additional context or links

https://github.com/advisories/GHSA-5crp-9r3c-p9vr

We don't believe this change can happen in the v3 line of Steeltoe. Steeltoe v4 removes this dependency entirely, and end users of Steeltoe v3 should be able to choose to upgrade or ignore this issue at their discretion.


Make javascript-state-machine amd compliant

This patch wraps StateMachine in a self-executing function and either 'define's it, or attaches it to the passed window object. This way, StateMachine can more easily be used with loaders like require.js or curl.js.

done in latest master branch v 2.1.0
Thanks!

Great, thanks!


Linting loop about sorting and eslint.

Hi,
I'm not good at English, so I hope this .gif could descript the issue.

Prettier run first. Then sorting. But the result of sorting would violate my eslint's rule. So, prettier will run again at the next time I save, and the result will again, violate the rule.
It causes a loop, between headwind and eslint.
I know changing my eslint's rule will solve the problem. And I know this might not a issue for headwind. So I'm not really sure if this is an real issue. But it would be nice if there is another way to solve this.
If you need other informations like my .prettierrc.js or settings.json, please let me know.
Thank you.

#127


[zopengl]  error: unable to resolve comptime value

Zig version: 0.14.0-dev.1472+3929cac15
I just copied the minimal glfw and gl in samples and it gives a compiler error
libs\zopengl\src\zopengl.zig:1241:21: error: unable to resolve comptime value
    @export(bindings.cullFace, .{ .name = "glCullFace", .linkage = linkage });
            ~~~~~~~~^~~~~~~~~
libs\zopengl\src\zopengl.zig:1241:21: note: export target must be comptime-known

I'll look into this. In the meantime, try just deleting the exports. They are not required unless you want to use the bindings over C ABI.

https://github.com/ziglang/zig/pull/19630 related ?

Replacing @export(bindings... with @export(&bindings... in every occurrence starting with
https://github.com/zig-gamedev/zig-gamedev/blob/b46101a543fe21a63c0c045751292cc034aecd96/libs/zopengl/src/zopengl.zig#L1241-L1244
up to line 1808 seems to fix this. After changing that all tests/benchmarks work and minimal_glfw_gl as well as minimal_zgui_glfw_gl, although minimal_sdl_gl segfaults for me in sdl.init but I think that is unrelated.
Tested with 0.14.0-dev.1509+fb81522e0

Relacing @export(bindings... with @export(&bindings...
Thanks, i can confirm that this works for me also. We should apply this change on the zig-0.14.0 branfch

although minimal_sdl_gl segfaults for me in sdl.init
Yeah there seems to have been a regression running that sample app in linux. This is present on main branch too. I think it is my fault, I will look into it.

Fixed on zig-0.14.0 branch here https://github.com/zig-gamedev/zig-gamedev/commit/975483f990c2150dea57c1d9c8e6489283e13270
Thanks @CoffeeImpliesCode


New Feature Request: Connect two newly created shapes

I am trying to connect 2 shape objects , but I did not find any way to connect two shapes with a dynamic connector object.
Can you please introduce this feature soon.

Hello - been a while since you raised this - but there is now a Connect object with a create method which will create a new connection between two existing shapes.
page = vis.pages[0]  # type: VisioFile.Page
from_shape = page.find_shape_by_text(shape_a_text)
to_shape = page.find_shape_by_text(shape_b_text)
c = VisioFile.Connect.create(page=page, from_shape=from_shape, to_shape=to_shape)
vis.save_vsdx(your_out_file_path)
This creates the new connector shape, and relationships, masters etc. behind the scenes.
Refer to test test_add_connect_between_shapes() for an example
Note: it does not place the connector in the right place as yet, but if you move one the shapes in Visio it will update the locations.

when I try and use VisioFile.connect.create I get a file not found error on ...\site-packages\media\media.vsdx tracing back to init.py line 1509 media=Media() - do you want a separate issue raised for this?

Hello @z3ndrag0n  - thanks for raising, no need for separate issue. I'll look into this.

Hello again - v0.4.14 pushed which has that missing media file included in the package. I was able to recreate your issue, and upgrade resolved for me so hopefully will for you also.
Kind regards
Dave

Hi @z3ndrag0n  - v0.4.19 should improve the positioning of connector shapes.  Please have a go with new version and let me know either way. Not a simple change - hence the delay - but I hope it works for you,
Dave


Migration to organization

@bcgit, @cwgit, @mwcw, @peterdettman: It is possible to migrate the personal account to organization?
https://help.github.com/articles/converting-a-user-into-an-organization/
Like:

http://github.com/gnome
http://github.com/kde
...

It has been done:

https://github.com/bcgit/bc-java/issues/690

@bcgit: Thanks again!


fix missing checkbox in colormap card

The colormap card

contains an check icon which should be visible when a specific colormap is selected/active
chcek here to check the source code

Is it already shown correctly?


Fix tests for openmetrics counter transformer

What does this PR do?

Motivation

Additional Notes

Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] Changelog entries must be created for modifications to shipped code
[ ] Add the qa/skip-qa label if the PR doesn't need to be tested during QA.
[ ] If you need to backport this PR to another branch, you can add the backport/<branch-name> label to the PR and it will automatically open a backport PR once this one is merged

Closing in favor of https://github.com/DataDog/integrations-core/pull/18054


Views can return jQuery objects

Views were previously allowed to return a jQuery object.  This allowed attaching event handlers to the element before it was passed along for filter.js to render. As of 2.0 views were expected to return a string which was then trimmed and turned into a jQuery object.
This just does a quick check to see if a string is being returned from the view before attempting to trim it and jQuery it. Now you can again return a jQuery object from a view - with your handlers pre-attached.

Thanks @dermidgen


uint16 SegmentationMapOnImage

I think it is quite common to encode masks using uint16, therefore I would suggest to enable this format for the SegmentationMapOnImage class.
It seems like this format is not supported yet: https://github.com/aleju/imgaug/blob/69ac72ef4f2b9d5de62c7813dcf3427ca4a604b5/imgaug/imgaug.py#L4814

Thanks for the suggestion, added it to the TODO list.


Optimize component completion list serialization/deserialization

Added new benchmarks to capture component completion list serialization/deserialization. To get a proper count for how good/bad it was I updated the taghelpers.json file to be from a project that utilized component vendors (a lotttt more TagHelpers).
Built a new "OptimizedCompletionList" type that wraps pre-existing completion lists and provides its own JsonConverter.

The new JsonConverter tries to optimize the serialization speeds of our completion lists by reducing redundant data and caching well-known data.

Doesn't duplicate insertText, filterText and sortText if they match the label (functions the same).
Don't serialize other properties if set to their defaults (null, false etc.)
Cache the serialization data for our TagHelper icon serialization.

Refactored RazorCompletionEndpoint to be better benchmarkable.

Baseline:

Method
Mean
Error
StdDev
Op/s
Gen 0
Gen 1
Gen 2
Allocated

'Component Completion List Roundtrip Serialization'
60.53 ms
1.199 ms
2.282 ms
16.52
2555.5556
1111.1111
333.3333
16.49 MB

'Component Completion List Serialization'
21.17 ms
0.416 ms
0.869 ms
47.24
437.5000
312.5000
218.7500
3.34 MB

'Component Completion List Deserialization'
39.00 ms
0.772 ms
0.858 ms
25.64
2384.6154
1076.9231
230.7692
13.12 MB

After

Method
Mean
Error
StdDev
Op/s
Gen 0
Gen 1
Gen 2
Allocated

'Component Completion List Roundtrip Serialization'
32.623 ms
0.6457 ms
1.1139 ms
30.65
2125.0000
1125.0000
187.5000
13.66 MB

'Component Completion List Serialization'
8.734 ms
0.1084 ms
0.1014 ms
114.50
312.5000
234.3750
234.3750
2.42 MB

'Component Completion List Deserialization'
24.501 ms
0.4178 ms
0.3908 ms
40.82
1968.7500
906.2500
125.0000
11.21 MB

Roundtrip op/s improvement: 1.85x faster
Serialization op/s improvement: 2.42x faster
Deserialization op/s improvement: 1.59x faster
Part of dotnet/aspnetcore#29017

Oh and the completion list being serialized in the benchmark had 880 items in it. There's still two more optimizations I plan to make to it but going to do those in follow ups

Oh and the completion list being serialized in the benchmark had 880 items in it. There's still two more optimizations I plan to make to it but going to do those in follow ups

Merged in my other completion list perf PR which had additional improvements. New "after" benchmark is:

Method
Mean
Error
StdDev
Op/s
Gen 0
Gen 1
Gen 2
Allocated

'Component Completion List Roundtrip Serialization'
28.129 ms
0.3938 ms
0.3684 ms
35.55
2156.2500
1187.5000
218.7500
13.6 MB

'Component Completion List Serialization'
6.081 ms
0.0450 ms
0.0399 ms
164.46
312.5000
242.1875
226.5625
2.4 MB

'Component Completion List Deserialization'
24.501 ms
0.4178 ms
0.3908 ms
40.82
1968.7500
906.2500
125.0000
11.21 MB

Which results in the following overall improvements
Roundtrip op/s improvement: 2.15x faster
Serialization op/s improvement: 3.48x faster
Deserialization op/s improvement: 1.59x faster

Merged in my other completion list perf PR which had additional improvements. New "after" benchmark is:

Method
Mean
Error
StdDev
Op/s
Gen 0
Gen 1
Gen 2
Allocated

'Component Completion List Roundtrip Serialization'
28.129 ms
0.3938 ms
0.3684 ms
35.55
2156.2500
1187.5000
218.7500
13.6 MB

'Component Completion List Serialization'
6.081 ms
0.0450 ms
0.0399 ms
164.46
312.5000
242.1875
226.5625
2.4 MB

'Component Completion List Deserialization'
24.501 ms
0.4178 ms
0.3908 ms
40.82
1968.7500
906.2500
125.0000
11.21 MB

Which results in the following overall improvements
Roundtrip op/s improvement: 2.15x faster
Serialization op/s improvement: 3.48x faster
Deserialization op/s improvement: 1.59x faster


Use SVG versions for README badges

This PR updates low res build- and coverage badges to their corresponding SVG versions.

:+1: thanks!


Moco Helm chart not compatible with Kubernetes v1.26

Describe the bug
A clear and concise description of what the bug is.
Environments

Kubernetes v1.26

To Reproduce
Steps to reproduce the behavior:

Execute: helm install --namespace moco-system moco moco/moco
Error: INSTALLATION FAILED: chart requires kubeVersion: >= 1.22.0 which is incompatible with Kubernetes v1.26.7...

@chis0m
Thank you for the report!
Does the version of your k8s cluster include preleases like v1.26.7-foo?
If so, it will be fixed in the next release. ref: https://github.com/cybozu-go/moco/pull/536
We will release the next version when we have completed the in-process features.
Please wait for a while.

@chis0m Thank you for the report! Does the version of your k8s cluster include preleases like v1.26.7-foo? If so, it will be fixed in the next release. ref: #536
We will release the next version when we have completed the in-process features. Please wait for a while.

Ok thanks

@chis0m
Sorry, it took so long.
https://github.com/cybozu-go/moco/pull/536 has been released in Chart v0.7.0. Please try it if you get the chance.


Heat map

Hi Patrick
I see you're checking things... I think the heat map is broken due to upstream .js file missing.
Cheers, Ian

I had issues with it at first but when I disabled my uBlock Origin browser extension and it started working fine. Not sure why uBlock was messing with it.

Solution confirmed, thanks.
Seems to be blocking one thing from you and one from Twitter.


CB-9409 check that localeIdentifier has underscore

@shazron Your comparison makes more sense to me as well. I've updated the commit. Thanks!


Doc/webhook remidiation

How to categorize this PR?

/area documentation
/kind enhancement
What this PR does / why we need it:
Adding documentation on the webhook remediator and how users can to fix it
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:

Adding documentation on the webhook remediator and how users can to fix it

new PR : https://github.com/gardener/gardener/pull/7535


change bindTo to bind, as __callStatic use bind

Use bindTo maybe  a little strange, use bind instead will be more unified.

If there is no bug there is no fix.


[Question] Is the generation of defaults in the scope of the project?

Question
First of all, I would like to say that this tool is great and already removes a lot of manual effort. So thank you for the work and effort that is being put into it!
At the moment you still need to manually update the defaults for a role. So updating the meta/argument_specs.yml is not enough. With bigger roles this can take quite some effort. This makes we wonder, would you see it within the scope of the project to implement a command that takes care of this as well?
With that the workflow would be pretty straight forward:

Create the meta/argument_specs.yml
aar_doc myrole markdown
aar_doc myrole defaults

I'm looking forward to hear your feedback on this topic.
P.S. I would be happy to contribute to this as well.

Hi @moritzrp,
I am not a maintainer, but, I am not sure to understand your question, could you provide an example?

 This role contains the usual meta/main.yml and meta/argument_specs.yml.
Contents of the meta/argument_specs.yml:
---
argument_specs:
  main:
    short_description: Main entry for myrole
    options:
      myrole_foo:
        type: str
        required: false
        default: some_foo
        description: foo
      myrole_bar:
        type: str
        required: true
        description: bar
  alternate:
    short_description: Alternate entry for myrole
    options:
      myrole_baz:
        type: str
        required: false
        default: some_baz
        description: baz
      myrole_qux:
        type: str
        required: true
        description: qux

Since the  meta/argument_specs.yml contains our defaults already, I am after is something like aar_doc myrole defaults.
This could generate the defaults/main.yml:
---
myrole_foo: some_foo

And defaults/alternate.yml:
---
myrole_baz: some_baz

But this is not strictly documentation and has some different behavior than the current file generation.
So the question is from my side: Does this fit into the project from the maintainers perspective? Or is this simply not what the project is intended for?

ok, I see, now. Could be nice, but indeed not sure this is the point of the project.
However, you should be able to achieve what you want with a custom template, maybe.

I like the idea!

And defaults/alternate.yml:

This won't work, as Ansible only reads defaults/main.yml or defaults/main/*.yml (and then all files in this folder).

However, you should be able to achieve what you want with a custom template, maybe.

I just tested this and in general this works, but there are some problems:

<!-- BEGIN_ANSIBLE_DOCS --> and <!-- END_ANSIBLE_DOCS --> are displayed in the defaults.yml - they need to go.
there are some problems with type-conversion, e.g. the umask "0755" is defined as a string but will be output as an integer, tripping up ansible-lint
same goes for strings like "yes" and "no" that get converted to booleans, but that's just python for you..
dictionary-variables are not displayed nicely:

sysctl_config: {"fs.protected_hardlinks": 1, "fs.protected_symlinks": 1, "fs.protected_fifos": 1, "fs.protected_regular": 2, "fs.suid_dumpable": 0, "kernel.core_uses_pid": 1, "kernel.kptr_restrict": 2, "kernel.kexec_load_disabled": 1, "kernel.sysrq": 0, "kernel.randomize_va_space": 2, "kernel.yama.ptrace_scope": 1, "net.ipv4.ip_forward": 0, "net.ipv6.conf.all.forwarding": 0, "net.ipv4.conf.all.rp_filter": 1, "net.ipv4.conf.default.rp_filter": 1, "net.ipv4.icmp_echo_ignore_broadcasts": 1, "net.ipv4.icmp_ignore_bogus_error_responses": 1, "net.ipv4.icmp_ratelimit": 100, "net.ipv4.icmp_ratemask": 88089, "net.ipv4.tcp_timestamps": 0, "net.ipv4.conf.all.arp_ignore": 1, "net.ipv4.conf.all.arp_announce": 2, "net.ipv4.tcp_rfc1337": 1, "net.ipv4.tcp_syncookies": 1, "net.ipv4.conf.all.shared_media": 1, "net.ipv4.conf.default.shared_media": 1, "net.ipv4.conf.all.accept_source_route": 0, "net.ipv4.conf.default.accept_source_route": 0, "net.ipv6.conf.all.accept_source_route": 0, "net.ipv6.conf.default.accept_source_route": 0, "net.ipv4.conf.all.send_redirects": 0, "net.ipv4.conf.default.send_redirects": 0, "net.ipv4.conf.all.log_martians": 1, "net.ipv4.conf.default.log_martians": 1, "net.ipv4.conf.default.accept_redirects": 0, "net.ipv4.conf.all.accept_redirects": 0, "net.ipv4.conf.all.secure_redirects": 0, "net.ipv4.conf.default.secure_redirects": 0, "net.ipv6.conf.default.accept_redirects": 0, "net.ipv6.conf.all.accept_redirects": 0, "net.ipv6.conf.all.accept_ra": 0, "net.ipv6.conf.default.accept_ra": 0, "net.ipv6.conf.default.router_solicitations": 0, "net.ipv6.conf.all.router_solicitations": 0, "net.ipv6.conf.default.accept_ra_rtr_pref": 0, "net.ipv6.conf.default.accept_ra_pinfo": 0, "net.ipv6.conf.default.accept_ra_defrtr": 0, "net.ipv6.conf.default.autoconf": 0, "net.ipv6.conf.all.autoconf": 0, "net.ipv6.conf.default.dad_transmits": 0, "net.ipv6.conf.default.max_addresses": 1, "vm.mmap_min_addr": 65536, "vm.mmap_rnd_bits": 32, "vm.mmap_rnd_compat_bits": 16}

So I guess its easier to achieve this with Python that with Jinja.

P.S. I would be happy to contribute to this as well.

Looking forward to a MVP for this. :) Though we probably then need to rename the project. :)

Great! Then I will start experimenting with this to find a solution :)

Alright the MVP is done. I made sure not to touch the existing structure and just added a new self contained command for now.
So now you have aar-doc ROLE_PATH defaults. By default, this will generate the ROLE_PATH/defaults/main.yml file.
Since --output-file is somewhat specific to docs, I added an option directly to the new command. If you want to write to a different file you can use aar-doc ROLE_PATH defaults --defaults-file /foo/bar/my_defaults.yml.
But this is mainly a placeholder for the test cases. I think in general the commands could be adjusted to have specific options for either generating docs or defaults.
Summary of what it does:

Goes through all entry points in the argument_specs and collects options with default values => If a later entry point configures an option with the same name it will be overwritten!
Writes all collected defaults to ROLE_PATH/defaults/main.yml. If you specify a different file, it simply writes to said file.
If the output file already exists, it will be overwritten!

As for the formatting of the output file:
The styling can be adjusted. For now the options are simply hard coded. What we can do:

default_style: Currently left default. Can be set to literal block, folded block, double-quoted or single-quoted.
allow_unicode: Currently set to True.
sort_keys: Currently set to False. So we have the same order as in the argument_specs.
indent: Currently set to 2.
encoding: Currently set to utf-8

All of these could also be controlled by the configuration or by an option passed along to the command.
If you want to see an example of what it produced, you can take a look at the argument_specs.yml and resulting defaults/main.yml from the added test case.
This is just the starting point. If you have any comments or suggestions for the behavior, I am of course happy to discuss it.

Closing this since this topic was handled in #81.


Avoid checking file metadata in graal tests

Failing in https://github.com/square/okhttp/actions/runs/7313504687/job/19925152167

@swankjesse requesting post review.
Likely I should dig, but we know the code is working, just not this arbitrary test that looks for a resource with Okio FileSystem.RESOURCES.


Allow for azd auth on clouds other than AzureCloud

[x] Make sure you've installed the latest version using instructions in the wiki

Output from azd version
azd version 1.2.0 (commit 99ea7577f0df0df2ba34b677da189fafba18c0f7)
Describe the bug
I am trying to use the azd cli to deploy to the AzureUSGovernment cloud.
To Reproduce
Run the latest installed azd cli with the azd auth login to connect to an AzureUSGovernment subscription. This option is not currently available.
Expected behavior
As a user of azd I can set the cloud I would like to deploy too.

Note: With az cli, this can be set with az set cloud --name AzureUSGovernment  and export ARM_ENVIRONMENT=usgovernment needs to be set when executing terraform in this cloud. Not sure if there are Bicep specific needs.

Environment
Information on your environment:

WSL Ubuntu 20
Win 11 Powershell

Additional context

This will enable usage of azd in clouds other than Azure Commercial, for example AzureUSGovernment.
Possible to set this via the azd auth  command with a new option
The cloud is currently set here:

https://github.com/Azure/azure-dev/blob/main/cli/azd/pkg/azdo/azdo.go#L38

Hey! We're going to spike on this in the next couple months - using this issue to track #2653. Closing in favour of the existing issue.


Build a custom logging Utility

Build a customer logger that logs to
a) console
b) gradle reports
c) allure reports
d) testng reports

completed in https://github.com/ozzyozbourne/CS623-dbms-project/pull/5


Fix s3 put file

Fixes #3262 by disabling reversing when walking the input s3 bucket.
I also changed the Amazon client itself to always yield the non-reversed key to the callback when Walking. From my understanding, this is the correct behavior, but I can revert that if not.

This LGTM.

@jdoliner the changes ton Amazon client make sense too? Just want to double-check because, if there's any functionality that currently relies on walked paths being reversed, they will break with this change.

@ysimonson I think that's correct although I didn't write a lot of the code that uses the new reversed stuff @brycemcanally would be the one to know for sure. Is that change required for fixing this bug? Or was it just a general improvement you wanted to add?

I think that'd be the safest bet. There could be some subtle things that break with that. I don't think we have full coverage of all walk calls in our test suite unfortunately.


Allow pynvml and nvidia-ml-py to be coinstalled for 12.* versions

Beginning with pynvml version 12, the package is a metapackage that depends on nvidia-ml-py for core functionality. So allow pynvml to be coinstalled with nvidia-ml-py.

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.
I do have some suggestions for making it better though...
For recipe/meta.yaml:

ℹ No valid build backend found for Python recipe for package nvidia-ml-py using pip. Python recipes using pip need to explicitly specify a build backend in the host section. If your recipe has built with only pip in the host section in the past, you likely should add setuptools to the host section of your recipe.
ℹ noarch: python recipes should usually follow the syntax in our documentation for specifying the Python version.

For the host section of the recipe, you should usually use python {{ python_min }} for the python entry.
For the run section of the recipe, you should usually use python >={{ python_min }} for the python entry.
For the test.requires section of the recipe, you should usually use python {{ python_min }} for the python entry.
If the package requires a newer Python version than the currently supported minimum version on conda-forge, you can override the python_min variable by adding a Jinja2 set statement at the top of your recipe (or using an equivalent context variable for v1 recipes).

ℹ PyPI default URL is now pypi.org, and not pypi.io. You may want to update the default source url.

This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/12384843139. Examine the logs at this URL for more detail.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.

Thanks Xuehai! 🙏

Adding a repodata patch to extend this to other nvidia-ml-py 12.* versions
xref: https://github.com/conda-forge/conda-forge-repodata-patches-feedstock/pull/932


Prevent TypeLoadException when running under Mono/Linux.

Fixes #49

Hi @david-mitchell, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.
TTYL, DNFBOT;

LGTM

LGTM.


Add attribution matrix to all entities

We need fine grained attribution in the CoL that tell users and the system where the information came from. Pointing to the dataset for each property/column of every entity table seems overkill, but we should be able to identify set of properties that are always coming from the same source. For these sets we need to store a single source datasetKey (int). An efficient way to do that could be a Map<PropSetEnum, Integer> as a JSONB column or even just an array of ints with a fixed size for each entity.
To quickly distinguish between records targeting only the provisional catalogue we should have a boolean provisional flag on all records. Initial ideas for property sets with source being the first source that established the record:
Name

source with scientificName
authorship
rank
status
publishedIn

NameRel

source with type
reference

NameUsage

source with name
status
parent
fossil/recent
lifezones

Reference

source
doi
link
parsed CSL

NameUsageReference

source

VernacularName

source
language
transliteration

Distribution

source

Description

source

Media

source

Should we expose such a Provenance matrix as a separate service for each entity or rather include it with each object? Both seems overkill, but I suppose it's only being used when requested for debugging data and looking into details for a specific object. So it should not be exposed by default.
Also linking to the exact source record (e.g. taxon) is tricky as ids change over time. Having just the datasetKey (or better always a sectorKey?) only allows to retrieve the corresponding source record by linking either via the namesIndexID or by doing a name based search. When you wan to check a specific vernacular name record this might be challenging.
Alternatively we could also store such a matrix as part of the verbatim data of a catalogue. Verbatim records are already linked from all entities and we would just need new terms for the property sets. All 3 main entities (Name, Usage, Reference) already have a sectorKey assigned that allows for quick linking and SQL joining.


title issue in a few early pages - checks for number of center elements and picks different one to find title in

This needs extensive testing across many dates to make sure it doesn't cause more problems than it solves.....  Would appreciate it if anyone could clone this fork, test it, and leave comments here!
This potentially fixes #23

Hi Justin,
I cloned your fork but there was some issues with running it. There seems to be an extra space on line 121 just before the "else;". If I remove that, then things run OK.
After I ran it, I tried several searches in 1995, 1996, 1997, 1999, 2003, 2013, 2015, 2019 and 2020, the titles seemed to display correctly and don't display the "tomorrow's picture" or "Information:"; they seemed to display the right title. For some dates in 1996, there are some existing issues with \r \n popping up with Credit or Credit and Copyright. Not sure if you want to fix those as well in this pr?

@punpunkore can you add that as a separate issue and mention this pull request?
I'll merge this one now and close the previous issue.


add new tcf fields to system model

Closes #172
Description Of Changes
See issue description
Code Changes

[x] update System model
[x] assert fields can be instantiated via automated tests

Steps to Confirm
n/a, automated test coverage should be good enough for us here as this is a pretty straightforward additive change
Pre-Merge Checklist

[ ] All CI Pipelines Succeeded
[ ] Documentation Updated
[ ] Issue Requirements are Met
[ ] Relevant Follow-Up Issues Created
[ ] Update CHANGELOG.md

@pattisdr i think this should be a quick one, mind just sanity checking me that i haven't missed something silly?
@rsilvery i'd like a quick eye check on the descriptions i added for the new fields from a product POV please, thank you!


restartable datasets

Stack from ghstack (oldest at bottom):

#128
#127
-> #126

/land ... I think this is our first time using the bot on a ghstack PR, let's hope it works. cc @afrittoli

actually this /land didn't work... I don't see these changes on main. cc @afrittoli

actually this /land didn't work... I don't see these changes on main. cc @afrittoli

looking into this

actually this /land didn't work... I don't see these changes on main. cc @afrittoli

looking into this

The stack command failed https://github.com/foundation-model-stack/foundation-model-stack/actions/runs/7390641036/job/20105941914#step:8:50.
It looks like the bot user does not have the permission to circumvent the branch protection, I'll check the configuration.
Expected errors (like missing approval, CI not passing) are handled more gracefully - i.e. the land command is not even executed and PR not merged.

actually this /land didn't work... I don't see these changes on main. cc @afrittoli

looking into this

The stack command failed https://github.com/foundation-model-stack/foundation-model-stack/actions/runs/7390641036/job/20105941914#step:8:50.
It looks like the bot user does not have the permission to circumvent the branch protection, I'll check the configuration. Expected errors (like missing approval, CI not passing) are handled more gracefully - i.e. the land command is not even executed and PR not merged.

I checked the configuration, I had enabled the ability for the bot to force push but not its ability to bypass the branch protection rule that requires a pull request - sorry about that, it should be fine now.

I checked the configuration, I had enabled the ability for the bot to force push but not its ability to bypass the branch protection rule that requires a pull request - sorry about that, it should be fine now.

hmm... if the land command fails, the land should fail (and the PR should remain open). Is there a way to ensure the PR doesn't get marked as "merged" when it didn't successfully merge?

I checked the configuration, I had enabled the ability for the bot to force push but not its ability to bypass the branch protection rule that requires a pull request - sorry about that, it should be fine now.

hmm... if the land command fails, the land should fail (and the PR should remain open). Is there a way to ensure the PR doesn't get marked as "merged" when it didn't successfully merge?

All checks executed before ghstack land is started will have the failure reflected on the PR.
In this specific case, it was a misconfiguration that caused the issue; now that it's fixed it won't happen again as it does not depend on the content of the PR. That said, there is still a chance that the ghstand land command might fail for some other unforeseen reasons.
What ghstack does internally is:

merge the base branch onto head, which causes GitHub to mark the PR as merged
take the result and push it to main

When the push to main failed, it was too late and the PR was merged already, but main was not updated.
What we could do is check the exit code of ghstack and report an error via a comment on the PR in case it fails.

What we could do is check the exit code of ghstack and report an error via a comment on the PR in case it fails.

ok let's do that then

What we could do is check the exit code of ghstack and report an error via a comment on the PR in case it fails.

ok let's do that then

This PR https://github.com/foundation-model-stack/foundation-model-stack/pull/146 adds success feedback in the form of the an emoji and failure feedback in the form of a comment with links to logs.


other types of static assets (such as .txt, .csv) import

Describe the bug
I was try to import something file like .txt, but I got some error message from Vetur.

In VSCode (with Vetur v0.28.0)

create a vite-app with npm init vite-app myproj
create a directory /public and create an empty .txt file at /public/a.txt
add lang="ts" property in script tag
add types.d.ts file with content below:

declare module "*.txt" {
  const value: string
  export default value
}

At /components/HelloWorld.vue, import the .txt file with import txt from '/a.txt' inner script tag
Error shows with: Cannot find module '/a.txt' or its corresponding type declarations.Vetur(2307)

Btw I write import txt from '/a.txt' at another .ts file and it feels right.
So, In fact, I am not sure about that this bug is about Vetur or Vite.
If the problem is truely about Vite, I mean, it seems like vite has do many things to let users import common static assets out of box, but how can I do if I wanna do the same thing with other type of file? I didn't find any solution in README, and I wonder that will Vite provide any ways to get this through? Just like loader in Webpack?
Reproduction
I think I have provided enough information for this issue, it's okay with create a reproduction if we really need.
System Info

required vite version: 0.15.6
required Operating System: macOS 10.15.6
required Node version: 13.7.0
Optional:

npm/yarn version
Installed vue version (from yarn.lock or package-lock.json) 3.0.0
Installed @vue/compiler-sfc version 3.0.0

At /components/HelloWorld.vue, import the .txt file with import txt from '/a.txt' inner script tag
Error shows with: Cannot find module '/a.txt' or its corresponding type declarations.Vetur(2307)

Look like it is caused by vetur, you can open a issue with it.

it seems like vite has do many things to let users import common static assets out of box, but how can I do if I wanna do the same thing with other type of file? I didn't find any solution in README, and I wonder that will Vite provide any ways to get this through? Just like loader in Webpack?

The issues  of static asssets config, you can track here https://github.com/vitejs/vite/issues/810.

@underfin Thanks a lot, now I got the right place.


iOS cannot login cofacts.tw

See: https://g0v.hackmd.io/@mrorz/cofacts-meeting-notes/%2F-Mth-vd5RPWqdLOfRJHHcg
This is because

currently the oauth callback (setting API cookie and redirect back) is using cofacts-api.g0v.tw, then redirect back to the original site

for instance, if logging in from cofacts.tw, during the oauth server flow, the user is being directed to:

cofacts-api.g0v.tw, remember current path
Facebook login
cofacts-api.g0v.tw, getting the previously set redirect path
cofacts.tw

API calls to cofacts.g0v.tw from other domains like cofacts.org and cofacts.tw us considered ccross-site
iOS now blocks third party cookie strictly, regardless of samesite: none is present or not.

Proposed change
When redirecting to original site, we fix the domain to cofacts.g0v.tw. In this way, cofacts.g0v.tw and cofacts-api.g0v.tw are considered same-site, then iOS can send login cookie along with it's request to API.
alternative
Use cofacts.tw as main site and redirect target, and connect to api.cofacts.tw for all domains. In this way cofacts.tw and api.cofacts.tw are also considered same-site.

From slack

問題的核心是
rumors-site 戳 API 的時候，無論是造訪 cofacts.org, cofacts.tw 還是 cofacts.g0v.tw，都是往同一個 API_URL。
這三個網域都需要放在 CORS whitelist 上面，不然會直接壞掉
但 login session 只會寫在 redirect back 的那個網域上，也就是 API_URL。
不管 API_URL 設成 api.cofacts.org, api.cofacts.tw 還是 cofacts-api.g0v.tw，都只能與網站三個網域中的一個網域 same-site，另外兩個網域，就會在 disable 3rd party cookie 的瀏覽器中遇到無法登入的狀況。


feat(transformer/decorators): transform getter function

Current dependencies on/for this PR:

#2473  👈
main

This stack of pull requests is managed by Graphite.


[Fix] Vocab.repr if reserved_tokens or unknown_token is None

cc @dmlc/gluon-nlp-team

Job PR-989/1 is complete.
Docs are uploaded to http://gluon-nlp-staging.s3-accelerate.dualstack.amazonaws.com/PR-989/1/index.html

Job PR-989/2 is complete.
Docs are uploaded to http://gluon-nlp-staging.s3-accelerate.dualstack.amazonaws.com/PR-989/2/index.html


Backtracking Section/Problems in CPP

🚀 Backtracking Section/Problems in CPP
I found the CPP repo to be a bit difficult to browse through different topics as they are not segregated. I want to implement a backtracking Section in CPP adding all the necessary problems to that as a part of the DWOC Program.
Have you read the Contributing Guidelines on Pull Requests?
Yes
PROBLEMS
*Word Break Problem using Backtracking
*Combinational Sum
*Find the K-th Permutation Sequence of first N natural numbers
Others to follow up soon
If this does not seem good. I can simply add these new questions to their suitable folders

I want to contribute as a part of DevScript Winter of Code

I want to contribute as a part of DevScript Winter of Code


batch size of more than 1 doesn't work properly.

The images seem to be generated but are not shown nor saved when the bach size is more than 1.

do you have screenshots and console messages?

There is no console messages. The diffusion steps counting, it finishes, but none of the images are shown in the UI and none are saved either.

after the diffusion steps stopped counting, there are additional three steps needed to be performed in the pipeline

vae decode
apply watermark
postprocess the image

On Windows, I found that it may take long time to do those 3 steps.
You should be able to see the GPU is on 100%
And the VRAM is almost full with shared GPU RAM usage
I guess the pipeline is not finished therefore you cannot see the results
You may need to wait for a longer time in order for the pipeline to be finished

Maybe its because I need to run bach count and not bach size? guess its not a feature yet. Then it might be I'm running out of vram (12), or ram (16)

I can add the batch count later

batch count is added, please update


Add  time input when notification should arrive

It will be just more convenient  and helpful if we can add time with note.
and further get the notification on the given time

This isn't really a reminder app and with a feature like this, I'll have to add an activity where you can manage all the notes and this wasn't the goal of this app. I want to make this app minimalistic (= no activities/app in the launcher).


Issues

Example URL(s)

playground: true
export default {
async fetch(request) {
/**
* Replace remote with the host you wish to send requests to
*/
const remote = "https://example.com";
return await fetch(remote, request);

},
};

### Actual Behavior

What is the expected behavior?
Link to the documentation or explain the expected outcome of following the documentation.
What is the actual behavior?
Explain what actually happens when you follow the documentation.
Which part of the documentation requires an update
Provide a link to the page that needs an update and be specific about which section requires the update.

### Expected Behavior

What is the expected behavior?
Link to the documentation or explain the expected outcome of following the documentation.
What is the actual behavior?
Explain what actually happens when you follow the documentation.
Which part of the documentation requires an update?
Provide a link to the page that needs an update and be specific about which section requires the update.

### Additional information

Sorry, you have been blocked
You are unable to access greenchain.app
Why have I been blocked?
This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data

I wish my account issues to be solved

Howdy @Abdulmalikusmannuhu, apologies, but we -- as Cloudflare generally or then as a docs team specifically -- can't do anything to prevent a site owner from setting up their Cloudflare settings and that ending up blocking your website experience.
Your best bet would be to reach out to the site owner to let them know about your experience.


error

Running the server 3000
⚠  Products have already been registered.
Delete them from your Dashboard to run this setup.
⚠  Setup already in progress.
he stays in a loop nmot showing on the page it self

The demo is very tightly coupled to the three products we're creating in the setup script. If you're modifying the amount of products being used, there are two locations you need to change:

Setup script: https://github.com/stripe/stripe-payments-demo/blob/master/server/node/setup.js
Product setup check: https://github.com/stripe/stripe-payments-demo/blob/master/server/node/routes.js#L191-L198

If you want to use the demo as is, simply create a new Stripe account and use those keys. The setup will run successfully then.


Manage Grasshoppers' Slack storage

Our Slack is running out of space (see image below). I'm guessing this is largely because of the many videos we've posted recently. I suggest we come up with an alternative method for storing/sharing large files, e.g. keep in a Google account and link to Slack, or create a Dropbox account and share through that. Get coach buy-in on whatever do, and then transfer files.

Looks like we deleted a bunch of files that reduced the overall storage use from ~5GB (limit) to ~3GB (current) based on this: https://ghoppers.slack.com/admin/stats Hence, I'm going to say this issue is closed, and we can re-open it later, if needed.


Mention install.sh --help flag in the README.md

Fix #33356

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @brson (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see the contribution instructions for more information.

Thanks @winks!


Filter custom post type by custom taxonomy

Hi there,
I created a new route with
site.sectorBriefs = site.registerRoute('wp/v2', 'portfolio/(?P<slug>)')

which works well. Now I want to filter this custom post type by a custom taxonomy, pretty much yielding this WP-API URL: wp/v2/portfolio?filter[portfolio_entries]=sector-brief.
This is the part I am struggling with. I tried using the param (no filtering at all) and filter (claims filter is not a function although I introduced filter in the params field on the registered route) method, but it didn't work.
Can someone help out?

Hello @stephanmax and thanks for opening this issue! You're not missing anything, there's a bug in the currently released version of the library that prevents filters from being used with custom routes. The release candidate is ready and should be up on NPM within a couple of hours, I'll update this issue when it's published and we can see whether that solves your problem!

Hi @kadamwhite, any news on this one. Sorry for my impatience, I am just looking at using this plugin in my current sprint and if you tell me, that the fix probably won't get in today, I am happy to work around it.

@stephanmax Sorry that I missed your comment earlier today. The good news is that we've released v0.11 of the library this evening, so while I'm sorry we didn't get it in earlier to assist in your sprint, you should be able to
site.sectorBriefs = site.registerRoute('wp/v2', 'portfolio/(?P<slug>)', {
  params: [ 'filter ']
});

then site.sectorBriefs().filter( 'portfolio_entries', 'sector-brief' ) to generate your request. I hope this helps; thank you very much for using node-wpapi, and for opening this issue!

As this should be addressed by today's release I've closed the issue, but please comment below if you run into any further trouble and we will continue the conversation.


Long terms are cut off in the indices

And the hover text wraps into the next item:

That's from https://github.com/WebBluetoothCG/web-bluetooth/pull/157.

I did some experimentation, and just pushed a slight styling change that should help with this. The <li>s should now have word-break:break-word, which (at least in Chrome, where I tested it) will do emergency-breaking when a word can't help but overflow.
That keeps the words entirely visible (tho arbitrarily broken across lines), and prevents the hover text from wrapping to the next line.

  Columns always clip.  And we have to abspos, or else the layout jiggles when some items are hovered.  Not a ton I can do about that, unfortunately. :/


dart2js in batch mode is not killed by test.py after compiling deeply nested constants

The new tests of deeply nested constants (constants where memoization is needed to avoid exponential blowup) is causing test.py runs on Windows with dart2js batch mode to fail because the dart2js batch process is left alive or zombie after test.py exits.
This causes swarming tasks to fail because their file system can't be cleaned up.
This is quite reproducible, and happens every time on the Windows bots.  We need to find out what is happening where dart:io Process.kill is not actually terminating its process, in this case.
@rmacnak-google @whesse @vsmenon
I propose adding logging in the batch runners terminate() code, which will track the processes that are created and those that are terminated, and verify that they are really gone, on Windows.
For now, I will skip these new tests on Windows dart2js, because they mean that no windows test results are generated at all, since the runner crashes.
Link to log of this failure:
https://ci.chromium.org/p/dart/builders/ci.sandbox/dart2js-strong-win-x64-chrome/4574
example log:
Enumerating processes:

pid 472; Handles: 108; Exe: C:\b\s\w\ir\out\ReleaseX64\dart-sdk\bin\dart.exe; Cmd: "C:\b\s\w\ir\out\ReleaseX64\dart-sdk\bin\dart"   "C:\b\s\w\ir\out\ReleaseX64\dart-sdk\bin\snapshots\dart2js.dart.snapshot"  "--libraries-spec=C:\b\s\w\ir\out\ReleaseX64\dart-sdk\lib\libraries.json" --batch
Terminating 1 processes:
472 killed
Failed to delete C:\b\s\w\ir. The following files remain:
\?\C:\b\s\w\ir
\?\C:\b\s\w\ir\out
\?\C:\b\s\w\ir\out\ReleaseX64
\?\C:\b\s\w\ir\out\ReleaseX64\dart-sdk
\?\C:\b\s\w\ir\out\ReleaseX64\dart-sdk\bin
\?\C:\b\s\w\ir\out\ReleaseX64\dart-sdk\bin\dart.exe
7200 2019-07-25 09:11:09.806 E: rmtree(u'C:\b\s\w\ir') failed: [Error 5] Access is denied: u'\\?\C:\b\s\w\ir\out\ReleaseX64\dart-sdk\bin\dart.exe'
*** Swarming tried multiple times to delete the run directory and failed ***
*** Hard failing the task ***

fyi @rakudrama
@whesse - can you clarify which tests are timing out?  Not obvious from your link.

The tests that times out are
language_2/canonicalization_hashing_memoize_array_test
language_2/canonicalization_hashing_memoize_instance_test
The problem is not just that they time out, but that they hang dart2js compiler, and prevent it from exiting or being killed when it is in batch mode.  I will check to make sure that, for example, stdin is cancelled in this case. I know we read stdout and stderr to clear them.

Is this still an issue?


General updates to README

Python version bumped to 2.6.  Changed PIL to Pillow.  Added OWSLib as optional dependency.  Added section for optional requirements. Removed lines relating to proj4/pyproj.

Thank you.


Image map disabled

Not sure if I'm doing something wrong or this is intended but using this library disables an image's map, eg. nothing on the image can be clicked.
<TransformWrapper>
                <TransformComponent>
                  <img src={mapImg} alt="Island" useMap="#islandmap"/>
                </TransformComponent>
</TransformWrapper>

@skyheat Honestly it shouldn't be blocked inside the transform components, I will take a look and fix it, thanks!

@prc5 solved! Thanks :)
Issue #135


Fails to configure with "Object of type 'path' has no field "realpath"" (BuildFileContainsErrorsException)

» ./configure
~/tmp/tensorflow ~/tmp/tensorflow
Please specify the location of python. [Default is /usr/bin/python]: /usr/bin/python3
Do you wish to build TensorFlow with Google Cloud Platform support? [y/N]
No Google Cloud Platform support will be enabled for TensorFlow
Do you wish to build TensorFlow with Hadoop File System support? [y/N]
No Hadoop File System support will be enabled for TensorFlow
Found possible Python library paths:
  /usr/lib/python3/dist-packages
  /usr/local/lib/python3.5/dist-packages
  .
Please input the desired Python library path to use.  Default is [/usr/lib/python3/dist-packages]
/home/wojciech/.local/lib/python3.5/site-packages
Do you wish to build TensorFlow with OpenCL support? [y/N]
No OpenCL support will be enabled for TensorFlow
Do you wish to build TensorFlow with GPU support? [y/N] y
GPU support will be enabled for TensorFlow
Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/bin/gcc]:
Please specify the Cuda SDK version you want to use, e.g. 7.0. [Leave empty to use system default]:
Please specify the location where CUDA  toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]:
Please specify the Cudnn version you want to use. [Leave empty to use system default]:
Please specify the location where cuDNN  library is installed. Refer to README.md for more details. [Default is /usr/local/cuda]:
Please specify a list of comma-separated Cuda compute capabilities you want to build with.
You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus.
Please note that each additional compute capability significantly increases your build time and binary size.
[Default is: "3.5,5.2"]: 6.1
.
INFO: Starting clean (this may take a while). Consider using --expunge_async if the clean takes more than several minutes.
.
ERROR: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: error loading package '': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': Traceback (most recent call last):
	File "/home/wojciech/tmp/tensorflow/third_party/gpus/cuda_configure.bzl", line 517
		_create_cuda_repository(repository_ctx)
	File "/home/wojciech/tmp/tensorflow/third_party/gpus/cuda_configure.bzl", line 432, in _create_cuda_repository
		_cuda_toolkit_path(repository_ctx, cuda_version)
	File "/home/wojciech/tmp/tensorflow/third_party/gpus/cuda_configure.bzl", line 148, in _cuda_toolkit_path
		str(repository_ctx.path(cuda_toolkit...)
	File "/home/wojciech/tmp/tensorflow/third_party/gpus/cuda_configure.bzl", line 148, in str
		repository_ctx.path(cuda_toolkit_path).realpath
Object of type 'path' has no field "realpath".

git hash: 7f3d8e1f8736f4c812e4a0a96154af3bd3750180
 » bazel version
Build label: 0.3.1
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Jul 29 09:09:52 2016<PHONE_NUMBER>)
Build timestamp:<PHONE_NUMBER>
Build timestamp as int:<PHONE_NUMBER>

python 3.5.2
Works fine on the r0.11 branch

Duplicate of https://github.com/tensorflow/tensorflow/issues/5319.


Frontend-Project "Youtube_clone" All Section Design Improvement

Title and Issue number
This PR contains the modified code for the frontend project "Youtube_clone All Section" design improvement. This PR is the result of the following issue:
Frontend-Project "Youtube_clone" All Section Design Improvement #2451
Close #2451
Checklist:

[x] I have mentioned the issue number in my Pull Request.
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have created a helpful and easy to understand README.md

@Saurabh-kumar09 @pranjay-poddar Kindly review this PR so that I can publish other issues PR.

Kindly review it

@MohitGupta121

@MohitGupta121 This isn't empty. Check this out.

@MohitGupta121 Checkout these changes in the commit named "Frontend-Project "Youtube_clone" All Section Design Improvement"

Output of the changes that were made in the commit.

@MohitGupta121 Here's the problem. I created 2 PRs together. Although their branches were different but changes of 2nd PR also brought in the 1st branch. You merged my 1st PR few hours ago and this 1st PR contains the 2 issues solutions. So, that's why "No File Change" is showing in 2nd PR because these changes are already merged. I didn't know about this. Now, I will take care of this in future. I request you to reopen it and merged it as this PRs changes are merged. Kindly give me credit of the work that is merged already.

Link of merged PR:
Search Area Design Improvement #836
You can checkout this merged PR's commits as evidences

@MohitGupta121

@MohitGupta121

@MohitGupta121 @Saurabh-kumar09

@MohitGupta121

@iamRabia-N See there is no FIle change, please make a new PR for this issue and TAG me I will look into it. Thanks!


math/big ModInverse doesn't support negative numbers

What version of Go are you using (go version)?
go version go1.7rc3 linux/amd64
What operating system and processor architecture are you using (go env)?
amd64
What did you do?
I tried computing inverse modulo of a negative number using this snippet:
package main

import (
        "fmt"
        "math/big"
)

func main() {
        res := big.NewInt(0).ModInverse(big.NewInt(-10), big.NewInt(13)).Int64()
        fmt.Println(res)
}

What did you expect to see?
9
What did you see instead?
0

@griesemer

z.ModInverse(g, n) immediately calls GCD(z, nil, g, n) but GCD says that the 3rd and 4th parameters must be > 0 so with g = -10, GCD sets the receiver to 0 and returns. z.ModInverse(10, -13) fails for the same reason.
We could set g = g mod n and n = abs(n) before the call to GCD in ModInverse.


Sqlplugin not working?

Hey is this plugin not supported with current ngc release? Because there is msg "new transaction is waiting for open operation"

Please include a sample project that reproduces this issue and we'll be able to take a look more quickly.

its working now the old plugin was changed and i didn't know that.


HttpDownloader / Resource Download 2

extractor.js

added name to parameters of emit 'finished'

http_downloader.js

changed 'finished' and 'progress' emits to use name as second argument

Thank you! Does it close #23 and #22 for you completely @FIr3baL or sill something left there?

Thank you! Does it close #23 and #22 for you completely @FIr3baL or sill something left there?

Yes - since we agreed to return destination as name, all other requests are fulfilled :)


Improve consistency in namespaces

The namespaces used throughout the project are a bit of a mess, sometimes it's RestAssuredNet, sometimes it's RestAssured.Net. I'd like a consistent namespace structure instead.
Note to self: this might break (part of) the API as using directives will change accordingly, not only in the project itself but also in the projects using it. Probably something for a 2.0.0 release.

Fixed in https://github.com/basdijkstra/rest-assured-net/commit/d03d434282d8b46a80a80573affb378e74fd602c.


Increasing specificity to override styled parent container rules

I want to use Tachyons to style hosted content, problem being that the host platform already has its own styles in place.
Is it possible to prepend an arbitrary ID to the generated tachyons definitions?
For example :
...
#mydiv .fw3 { font-weight:300 }
#mydiv .fw4 { font-weight:400 }
...

EDIT
To clarify, the content is embedded within its host platform (online newspaper) by means of a CMS. The embedding is done in such a way that the host's stylesheet is loaded last, hence overriding whatever was defined in the embed and which is not of a higher specificity.


Ego4D Annotation

I've searched for the following files in both xmic code base and Ego4D, and cannot obtain a accurate answer:

mappping_verb.txt
mappping_noun.txt
fho_actions_actionidx_verb_noun.txt

And the script file parse_ego4d_json.py is missing also. Could you give a more detailed guide please if it's possible.
Thanks!

download
https://bit.ly/3XQLHlH
I put the necessary dlls in the archive

To create mappings you can use the script:
ego4d_create_label_mappings.py
change manually "mapping_label" from verb to noun to create both
fho_actions_actionidx_verb_noun - it's a file for actions, you can create it by combining verbs and nouns and assigning a unique id for the pair. It is not necessary to follow any specific order. Moreover, as far as I remember, in the end, I do not use action labels to report any results.
Feel free to just comment out the code that corresponds to action labels.
parse_ego4d_json.py file is just legacy from the original ego4d code that I was using as a reference:
ptv_dataset_helper.py
you do not need this file
I hope it helps!

Hi @Annusha , Do you also have the similar python code for processing the Epic-Kitchens dataset?