The definitive replication and authorization guide

I think we need to hash out and clarify the replication and authorization processes a bit. I have been struggling with this for many days now and based on issues here I'm not alone, so I'm hoping we can use this issue to clear things up.
After reading the documentation, reading the tests, going over the code and issues, I still can't get this right, so I think I'm not far off if I say that the whole replication process is not intuitive to implement. There are so many details to grok so let's go over it one step at a time. The biggest issue seems to be that it's not clear how the hyperdbs need to be set up for replication to work.
Here are two scenarios that I want to figure out, but it seems I can't.
Scenario 1: I have hyperdb 1 that I want to read & write with hyperdb 2
My logic:

Create 2nd hyperdb with 1st hyperdb's local.key
Authorize 2nd hyperdb to write 1st hyperdb
Create replicate() streams from both hyperdbs
Create socket connection between machines and do stream1st.pipe(socket) and socket.pipe(stream_2nd)

That's the structure I got from the docs etc. but it doesn't seem to work. There's the issue with "first hypercore must be the same" which I guess means I have to create 2nd hyperdb with hyperdb(storage, hyperdb_1st.local.key). With that, I can see the connection happening, but nothing gets replicated. What steps are missing here?
Scenario 2: I want to replicate another hyperdb without writing
My logic:

Create own hyperdb with remote hyperdb's local.key?
Create replicate({ live: true }) stream for my hyperdb
Connect to remote hyperdb's socket
Do socket.pipe(my_hyperdb_stream)

With this I don't get any errors, I see data going over the socket, and I can see the data in the remote hyperdb, but nothing shows up in my hyperdb. It's a bit like the replication doesn't start for some reason.

@0fork I wont be able to help on this but I do just want to mention that hyperdb and multiwriter and the networking stack are actively getting worked on, so we do know there are problems and we're working to improve on these flows.

Here's a code that's suppose to create hyperdb1 to be cloned to hyperdb2 via hyperswarm/network. As you can see from running it that sockets are receiving data but no writes are being passed from hyperdb1 to hyperdb2.
What am I missing here?
const hyperdb = require("hyperdb")
const network = require("@hyperswarm/network")
const cr = require("crypto")

// this is meant to "simulate" two separate servers so two networks
const net1 = network()
const net2 = network()

const $key = "194e841187f33843b246a796f8a6aceb0d8d5d22b36661e8500b4d693a31e7e5"
const id = cr.createHash("sha256").update($key).digest()
net1.discovery.holepunchable((err, yes) => {
  if (err || !yes) {
    console.log("no hole")
    process.exit()
  }
})

const db1 = hyperdb(`./_test1`, $key, { valueEncoding: "utf-8" })
let db2
let rep1
let rep2
db1.ready(() => {
  console.log("hyper1 created")
  rep1 = db1.replicate({ live: true })
  net1.join(id, {
    lookup: true,
    announce: true,
  })
  net1.on("connection", (socket) => {
    // this is suppose to "push" so piping from
    // rep1 to socket (rep2) to rep1
    rep1.pipe(socket).pipe(rep1).on("end", function() {
      console.log("socket1 pipe end")
    })
    socket.on("data", (data) => {
      console.log("socket1 got data", data)
    })
  })
  db2 = hyperdb(`./_test2`, $key, { valueEncoding: "utf-8" })
  db2.ready(() => {
    console.log("hyper2 created")
    rep2 = db2.replicate({ live: true })
    net2.join(id, {
      lookup: true,
      announce: true,
    })
    net2.on("connection", (socket) => {
      // this is suppose to replicate so piping from
      // socket (rep1) to rep2 to socket (rep1)
      socket.pipe(rep2).pipe(socket).on("end", function() {
        console.log("socket2 pipe end")
      })
      socket.on("data", (data) => {
        console.log("socket2 got data", data)
      })
    })
    db2.watch("/test", (err, data) => {
      console.log("socket2 /test", data)
    })
  })
})

setInterval(function() {
  db1.put("/test", "test", () => {
    db1.list((err, list) => {
      console.log("1", list)
    })
    db2.list((err, list) => {
      console.log("2", list)
    })
  })
}, 3000)

@0fork Your broader point about needing a guide is on point. I debugged your script and was only able to do so because I know about some gotchas.
I made a few changes but there were only two that mattered:

I changed the use of @hyperswarm/network to only have one side announce and the other side lookup. That's because hyperswarm doesn't yet have connection deduplication builtin, and so you were getting more connections than you need. We're either going to have dedup builtin to the code, or we'll put that pattern in the readme once we've got one written.
You were providing a public key to both hyperdb instances, but that will only work if you already have the private key to match. Not supplying the public key to the first instance solved that -- if the archive already exists it'll load the key from disk, and if it doesnt already exist it'll mint a new keypair.

Here's the fixed snippet:
const pump = require("pump")
const hyperdb = require("hyperdb")
const network = require("@hyperswarm/network")
const cr = require("crypto")

// this is meant to "simulate" two separate servers so two networks
const net1 = network()
const net2 = network()

const db1 = hyperdb(`./_test1`, { valueEncoding: "utf-8" })
let db2
db1.ready(() => {
  console.log("hyper1 created")

  console.log('swarming')
  const $key = db1.key
  const id = cr.createHash("sha256").update($key).digest()
  net1.discovery.holepunchable((err, yes) => {
    if (err || !yes) {
      console.log("no hole")
      process.exit()
    }
  })

  net1.join(id, {
    lookup: false,
    announce: true,
  })
  net1.on("connection", (socket) => {
    console.log('net1 got connection')
    // this is suppose to "push" so piping from
    // rep1 to socket (rep2) to rep1
    var rep = db1.replicate({ live: true })
    pump(rep, socket, rep, function() {
      console.log("socket1 pipe end")
    })
    socket.on("data", (data) => {
      console.log("socket1 got data", data)
    })
  })
  db2 = hyperdb(`./_test2`, $key, { valueEncoding: "utf-8" })
  db2.ready(() => {
    console.log("hyper2 created")
    net2.join(id, {
      lookup: true,
      announce: false,
    })
    net2.on("connection", (socket) => {
      console.log('net2 got connection')
      // this is suppose to replicate so piping from
      // socket (rep1) to rep2 to socket (rep1)
      var rep = db2.replicate({ live: true })
      pump(rep, socket, rep, function() {
        console.log("socket2 pipe end")
      })
      socket.on("data", (data) => {
        console.log("socket2 got data", data)
      })
    })
    db2.watch("/test", (err, data) => {
      console.log("socket2 /test", data)
    })
  })
})

setInterval(function() {
  db1.put("/test", "test", () => {
    db1.list((err, list) => {
      console.log("1", list)
    })
    db2.list((err, list) => {
      console.log("2", list)
    })
  })
}, 3000)

@pfrazee aaah, thank you! I knew it was some small mistake in the configuration instead of a bug in the library code.
Authorization seems to work just by adding db1.authorize(Buffer.from(db2.local.key, "hex"), () => {}) in db2.ready(() => { ... }) so no problems there.
So to summarize: The biggest gotcha seems to supplying the key pair right. The problem for me was that everything seemed to initialize right without errors so I assumed hyperdb had everything it needed. I'm still a bit unclear why hyperdb1 writes worked if only public key was supplied because doesn't hypercore sign each chunk with the secret key to be verified with the public key?

@0fork Yeah I think the reason it doesn't fail if you supply a public key is to meet the usecase of db2, where you're joining a pre-existing hyperdb as a second author. I agree that's a footgun though.

Hey folks, I wrote a pretty detailed guide about authorization & replication in hyperdb. Hope it's useful!

Much appreciated @pfrazee for the snippet connecting hyperdb to a swarm via hyperswarm - and @lachenmayer for the guide on auth and replication.  Both extremely useful...thanks 👏

Polash

Kisuna

Dur

Sjjsjsj

Kaj kor


Docker with Flexible

I'm trying to use Flexible with Krakend v1.2.0 in Docker, but it always exits with code 1 and no output error/message
Here is my Dockerfile:
FROM devopsfaith/krakend:1.2.0 as krakend

ARG ENVIRONMENT

ENV FC_ENABLE=1
ENV FC_SETTINGS="config/settings"
ENV FC_OUT="/tmp/out.json"

COPY config/krakend_$ENVIRONMENT.json krakend.json
COPY config/$ENVIRONMENT config/

COPY entrypoint.sh .
ENTRYPOINT ["bash", "entrypoint.sh" ]

My entrypoint.sh
#!/bin/sh

#DEBUG
krakend check -c /etc/krakend/krakend.json -d

krakend run -c /etc/krakend/krakend.json -d

My krakend.json:
{
  "version": 2,
  "name": "My Krakend Dev",
  "extra_config": {
    "github_com/devopsfaith/krakend-cors": {
      "allow_origins": [
        "*"
      ],
      "allow_methods": [
        "POST",
        "GET"
      ],
      "allow_headers": [
        "*"
      ]
    }
  },
  "timeout": "10s",
  "cache_ttl": "300s",
  "output_encoding": "no-op",
  "port": 8080,
  "read_timeout": "10s",
  "write_timeout": "10s",
  "read_header_timeout": "10s",
  "idle_timeout": "10s",
  "endpoints": [
    {{ range private_endpoints.endpoints }}
    {
      "endpoint": "{{ .endpoint }}",
      "method": "{{ .method }}",
      "backend": [
        {
          "url_pattern": "{{ .backend_url }}",
          "method": "{{ .method }}",
          "encoding": "no-op",
          "sd": "static",
          "disable_host_sanitize": true,
          "host": ["http://myhost.org"],
          "extra_config": {
            "github.com/devopsfaith/krakend-httpsecure": {
              "allowed_hosts": [
                "vpn.host.org"
              ]
            }
          }
        }
      ]
    },
    {{ end }}
  ]
}

config/settings/private_endpoints.json
{
  "endpoints": [
    {
      "endpoint": "/v1/endpoint01",
      "method": "GET",
      "backend_url": "/endpoint01"
    },

    {
      "endpoint": "/v1/endpoint01",
      "method": "POST",
      "backend_url": "/endpoint01"
    },

    {
      "endpoint": "/v1/endpoint02",
      "method": "POST",
      "backend_url": "/endpoint02"
    },
    ...
  ]
}

And finally my docker-compose file
version: '3.4'
services:
  krakend:
    build:
      context: .
      args:
        ENVIRONMENT: dev
    image: krakend
    container_name: krakend-local
    networks:
      mynetwork:
        ipv4_address: <IP_ADDRESS>
    ports:
      - "8080:8080"
networks:
  mynetwork:
    external: true

I'm using "docker-compose up --build" to start my application.
When I delete the range function "private_endpoints.endpoints" of the krakend.json file it works, but when I keep it, I just receive the following output:
Creating krakend-local ... done
Attaching to krakend-local
krakend-local | Parsing configuration file: /etc/krakend/krakend.json
krakend-local exited with code 1

Hi @IsaiasFilho
It looks like you have identified the problem if you see that removing the range solves the issue. My recommendation would be that you enable FC_OUT so you can see what file is actually generated and run it against a JSON validator. I haven't tried your configuration or gone through all the detail you have put (very well done), as the first thing I saw is that your range ends with a comma, which after the last loop will make the endpoint finish with a comma and an invalid JSON.
I am talking about this:
{{ range private_endpoints.endpoints }}
...
 },       <--- this comma
{{ end }}

Use a strategy like this one instead (place the comma at the beginning if not the first item in the loop):
{{ range $idx, $endpoint := private_endpoints.endpoints }}
    {{if $idx}},{{end}}     <--- put the comma here
{
...
 }
{{ end }}

Hi @IsaiasFilho
It looks like you have identified the problem if you see that removing the range solves the issue. My recommendation would be that you enable FC_OUT so you can see what file is actually generated and run it against a JSON validator. I haven't tried your configuration or gone through all the detail you have put (very well done), as the first thing I saw is that your range ends with a comma, which after the last loop will make the endpoint finish with a comma and an invalid JSON.
I am talking about this:
{{ range private_endpoints.endpoints }}
...
 },       <--- this comma
{{ end }}

Use a strategy like this one instead (place the comma at the beginning if not the first item in the loop):
{{ range $idx, $endpoint := private_endpoints.endpoints }}
    {{if $idx}},{{end}}     <--- put the comma here
{
...
 }
{{ end }}

Hi @alombarte
Thanks, that was it! The last loop was adding a comma resulting in an invalid JSON.
I had enabled the FC_OUT, but the file was not being generated for some reason, the application was stopping before the output generation, so i couldn't see what's going on. Now with this condition I can see the "out.json" file and it contents.
The private_endpoints.json file now looks like this:
"endpoints": [
    {{ range $idx, $val := .private_endpoints.endpoints }}
      {{if $idx}},{{end}}
      {
        "endpoint": "{{ $val.endpoint }}",
        "method": "{{ $val.method }}",
        "backend": [
          {
            "url_pattern": "{{ $val.backend_url }}",
            "method": "{{ $val.method }}",
            "encoding": "no-op",
            "sd": "static",
            "disable_host_sanitize": true,
            "host": ["http://myhost.org"],
            "extra_config": {
              "github.com/devopsfaith/krakend-httpsecure": {
                "allowed_hosts": [
                  "vpn.host.org"
                ]
              }
            }
          }
        ]
      }
    {{ end }}

Hi @alombarte
Thanks, that was it! The last loop was adding a comma resulting in an invalid JSON.
I had enabled the FC_OUT, but the file was not being generated for some reason, the application was stopping before the output generation, so i couldn't see what's going on. Now with this condition I can see the "out.json" file and it contents.
The private_endpoints.json file now looks like this:
"endpoints": [
    {{ range $idx, $val := .private_endpoints.endpoints }}
      {{if $idx}},{{end}}
      {
        "endpoint": "{{ $val.endpoint }}",
        "method": "{{ $val.method }}",
        "backend": [
          {
            "url_pattern": "{{ $val.backend_url }}",
            "method": "{{ $val.method }}",
            "encoding": "no-op",
            "sd": "static",
            "disable_host_sanitize": true,
            "host": ["http://myhost.org"],
            "extra_config": {
              "github.com/devopsfaith/krakend-httpsecure": {
                "allowed_hosts": [
                  "vpn.host.org"
                ]
              }
            }
          }
        ]
      }
    {{ end }}


bump version

Is your feature request related to a problem? Please describe.
i'd like to use npm packages and still make use of the fix in #87
Describe the solution you'd like
a version bump to 0.4.7 would help :)

Yes I Work on returned bugs, I hope by the end of this week v0.4.7

thx @mikbry !
if you need any assistance i have a little spare time to help..

v0.4.7 is available

v0.4.7 is available


restoring the --openjdk-source-location after PR#2702

https://github.com/adoptium/temurin-build/issues/4065
I may have limited availability today. If it is ok, feel free to merge as necessary.

All linux builds failef. Seem s unrelated. Seems related to removal of node16

@sxa  @ anybody... may I ask for review if possible?

@sxa @ anybody... may I ask for review if possible?

I'm having a long overdue PR review catch up and have just made it to the temurin-build repo so I'm on it now ;-)

All linux builds failed. Seems unrelated. Seems related to removal of node16

Covered in https://github.com/adoptium/temurin-build/pull/4064 so if you rebase that should fix itself.

Thanx! I had rebased to see the actions.


Bug fixes 2018 january

Latest changes complete.  I think all priority issues are addressed.

Chris,
I’m assuming this is the final drop?
From: cwilliams-ericsson<EMAIL_ADDRESS>Sent: Friday, February 02, 2018 3:08 PM
To: Wireless-Innovation-Forum/Citizens-Broadband-Radio-Service-Device<EMAIL_ADDRESS>Cc: awaizkhan<EMAIL_ADDRESS>Review requested<EMAIL_ADDRESS>Subject: Re: [Wireless-Innovation-Forum/Citizens-Broadband-Radio-Service-Device] Bug fixes 2018 january (#108)
@cwilliams-ericssonhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcwilliams-ericsson&data=01|01|AwaizAhmad.Khan%40arris.com|e9dff3c2383048c65a1008d56a91c95b|f27929ade5544d55837ac561519c3091|1&sdata=ycyN3SY2ZvDLXoHkmnX0DdP6Qea6JQbh%2BonzTxrJP08%3D&reserved=0 requested your review on: Wireless-Innovation-Forum/Citizens-Broadband-Radio-Service-Device#108https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FWireless-Innovation-Forum%2FCitizens-Broadband-Radio-Service-Device%2Fpull%2F108&data=01|01|AwaizAhmad.Khan%40arris.com|e9dff3c2383048c65a1008d56a91c95b|f27929ade5544d55837ac561519c3091|1&sdata=L5aHMXm3sK8jOVFr0ciVc2h%2F7s0%2BumAUjxiHuo7qD1U%3D&reserved=0 Bug fixes 2018 january.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FWireless-Innovation-Forum%2FCitizens-Broadband-Radio-Service-Device%2Fpull%2F108%23event-1456067964&data=01|01|AwaizAhmad.Khan%40arris.com|e9dff3c2383048c65a1008d56a91c95b|f27929ade5544d55837ac561519c3091|1&sdata=fHh53mUQGo3EWmG4wDGocambkCv0wdlFgJsTat7q72c%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAbdJSdtFCuWm6ASGL-c0hYadCWOXsXvGks5tQ5U7gaJpZM4R35gn&data=01|01|AwaizAhmad.Khan%40arris.com|e9dff3c2383048c65a1008d56a91c95b|f27929ade5544d55837ac561519c3091|1&sdata=H03biC7z722Yr2kh9RSOvEvyVRAhAxEhtNLo9Bhdv0k%3D&reserved=0.

Will there be one more drop where we conform the expected json questions to have a similar feel?
Though this would be more cosmetic change.


Prevent recursion in primitive types

Primitive valuetypes are allowed to have recursion in their fields (e.g.
Char type can have a field of the same type). We need to check for that.

Hi @MichalStrehovsky, 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;

@jkotas PTAL

LGTM. Thanks!


⚠ Secret Website 1 has degraded performance

In 817920c, Secret Website 1 ($SECRET_WEBSITE_1) experienced degraded performance:

HTTP code: 200
Response time: 7260 ms

Resolved: Secret Website 1 performance has improved in 4e46c90.


Redesign tx view in queue/history

Overview
Working on https://github.com/gnosis/safe-react/issues/2989 also formed the initiative to redesign the tx view within the queue and history in order to improve the visibility of information.
Requirements

Move 'Send... to' div to top, and the stepper to the right

Update styles of class="tx-summary"

Split the view into 2 columns;
Change column label style (class="tx-hash"): weight:400, #5D6D74

Change labels style in extra details (e.g. send delegate, add delegate)

Is the same text style used in tx history and queue: font-size: 0.76em, weight: 600, letter-spacing: 1px , #5d6d74

Screens

Advanced details expanded
Contract interaction details

Spec
https://docs.google.com/document/d/1MB6flcAQm_BQODsWuqHGHNUIsOC4alGhElblUZGckxE/edit?usp=sharing

A "safe creation" tx example as requested in another ticket.

This issue should be tested in https://github.com/gnosis/safe-react/pull/3373 @francovenica


added build history component

Jira
https://issues.jboss.org/browse/AEROGEAR-7712
Screenshots
The component:

The component around the page

I've opened new https://github.com/aerogear/mobile-client-service/pull/33 with Pawel's changes. It is rebased and fixes styling. Closing this PR.


What about AppStore submission?

Hi @dfmuir
I'm gonna use KINWebBrowser in my app, but one thing is interesting.
Do it uses any private APIs or another 'dirty' tricks that may cause app rejection during AppStore submission?
Best

There are no private APIs used. As far as I know there are no "dirty tricks".
I have multiple apps on the app store that integrate this library. I have never seen a single issue with submission.
Integrate KINWebBrowser into your app with confidence.

Thanks.


Allow targets to be grouped by arbitrary labels in the UI

Since https://github.com/prometheus/prometheus/pull/4898, targets are grouped by their scrape configuration. Before that, they were grouped by job label. It has come up a couple of times that having more flexibility would be useful:

https://github.com/prometheus/prometheus/pull/4898#issuecomment-443229804
https://groups.google.com/d/msg/prometheus-users/ySU-X6KuAHM/h2OVIOwXAAAJ

I can have a look into this

Correct me if I'm wrong but is the proposal to have label based filtering per target so that endpoints within a target get filtered based on labels that users can choose.

Has any progress been made on this?

Can I work on this? New contributor here :)

Hello from the bug scrub: the current target page looks completely different by now. Please open a new issue on the latest target page if this is still an issue to be solved.


FD2: Add support for updating rt args in place

@abhullar-tt I modified add_dispatch_write_packed data_collection to be a vector of pair of ptr + size. This change was for rt args since the length of each data vector was actually different and the padded size passed in is the max size, so we were technically reading from unknown memory for the smaller rt arg vectors. This hopefully shouldn't really affect perf for the other users of add_dispatch_write_packed, I modified them to add the length to the vector pairs, even though for these cases they could just use the passed in padded size.


Make apexcharts pluginable

Is your feature request related to a problem? Please describe.
Apexcharts is huge > 410ko and will continue to grow
Describe the solution you'd like
Separate differents parts of the lib into plugins:

Core
Bar chart
Line chart
...
toolbar
other features

I wanted to keep ApexCharts as simple as possible in the beginning, but with time - codebase grew to > 410kb minified which is huge indeed.
But, with some refactoring, this size can be reduced. As you can see on https://codeclimate.com/github/apexcharts/apexcharts.js, there are a lot of improvements with regard to duplication/complexity which will be addressed soon.
I will try to squeeze the overall size first before trying to split each module into different plugins.

Related to #567

Closed as they are more followers on the newest issue


Changes regarding cinder.conf

parallel configuration of rbd-1 to lvm-1
add iscsi_ip_address to cinder.conf

Thank you for contributing to openstack/kolla-ansible!
openstack/kolla-ansible uses Gerrit for code review.
If you have never contributed to OpenStack before make sure you have read the
getting started documentation:
http://docs.openstack.org/infra/manual/developers.html#getting-started
Otherwise please visit
http://docs.openstack.org/infra/manual/developers.html#development-workflow
and follow the instructions there to upload your change to Gerrit.


🔧 Configure strict pytest options

currently upstream is having to override pytest options to ignore these warnings https://github.com/samuelcolvin/pydantic/pull/2337#discussion_r574145761

@tiangolo Hello thanks for enabling my build!
There's a number of test failures, and I'd like to push fixes to them
I see you're currently working on my branch please can you let be know if you've finished

Hey @graingert! Sure thing, go ahead! I just updated the docs that use that tutorial example to account for the changes, but that's done. And thanks a lot!
BTW, I commented out the pytest ignores to see if they would explode or not.
Also, I think the errors are because some recent tests used Pydantic models with Test in the name that were added in a recent PR. If you wanna fix those, that's awesome, but otherwise, you can just let me know and I can do it. :nerd_face:

Yep that looks like it to me, I'm happy for you to keep pushing to my
branch!
On Mon, 19 Jul 2021, 19:37 Sebastián Ramírez, @.***>
wrote:

Hey @graingert https://github.com/graingert! Sure thing, go ahead! I
just updated the docs that use that tutorial example to account for the
changes, but that's done. And thanks a lot!
BTW, I commented out the pytest ignores to see if they would explode or
not.
Also, I think the errors are because some recent tests used Pydantic
models with Test in the name that were added in a recent PR. If you wanna
fix those, that's awesome, but otherwise, you can just let me know and I
can do it. 🤓
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tiangolo/fastapi/pull/2790#issuecomment-882770675,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADFATFCV2PXBLAUKNDHGG3TYRWHNANCNFSM4XN3E3GA
.


Make login button color configurable

At the moment you can customize the login screen
Brand image, title etc.
But: Color of login button not customizable
If we are serious about this, also the button color should be configurable

added searchguard.basicauth.login.buttonstyle key


vtt parse seems not correctly for some file

Since this file doesn’t seem to be standard, there are some issues with the parsed subtitles. It could be that there’s an issue with the current parsing implementation, or perhaps more fault tolerance is needed.
I tried importing the file into the iOS Files app, and it parsed and worked correctly in the preview. Here’s a screenshot.
https://github.com/user-attachments/assets/021ed628-5761-4bb9-b90e-0372d4787604
and<00:00:18.400><c> we'll</c><00:00:18.560><c> go</c><00:00:18.720><c> to</c><00:00:18.880><c> the</c><00:00:18.960><c> web</c><00:00:19.119><c> page</c><00:00:19.359><c> in</c><00:00:19.520><c> a</c><00:00:19.600><c> minute</c>

These seems should be ignored.
Originally posted by @Josscii in https://github.com/dagronf/SwiftSubtitles/issues/13#issuecomment-2554330014

Strangely enough - this file is a valid VTT file.  I've gone through the spec and it seems like there's nothing untoward in the file.

and<00:00:18.400><c> we'll</c><00:00:18.560><c> go</c><00:00:18.720><c> to</c><00:00:18.880><c> the</c><00:00:18.960><c> web</c><00:00:19.119><c> page</c><00:00:19.359><c> in</c><00:00:19.520><c> a</c><00:00:19.600><c> minute</c>

VTT supports embedding timestamps within a cue, to identify when individual words are spoken within the cue itself.
00:00:28.560 --> 00:00:30.790 align:start position:0%
keith johnson
peter<00:00:28.880><c> ladoffo</c><00:00:28.880><c> lattifogue</c><00:00:30.160><c> was</c><00:00:30.400><c> certainly</c>

00:00:30.790 --> 00:00:30.800 align:start position:0%
peter ladoffo lattifogue was certainly

You can see that the embedded timestamps fit within the time range (it's an error if the embedded timestamps are outside the cue's time range
This library does NOT support word timestamps, so the cue will pass into the Subtitle.Cue directly with no further parsing.
The reason that it 'works' within the files app is that the subtitles are changing quickly between these cues (which are mostly identical in the textual content) so you aren't noticing that the cue has changed, giving the appearance that it's choosing a cue (somehow).
For example :-
00:00:23.840 --> 00:00:24.710 align:start position:0%
have it yet it's called a course in
phonetics

00:00:24.710 --> 00:00:24.720 align:start position:0%
phonetics

The second 'phonetics' will appear onscreen for approximately 10ms, which would mostly be imperceptible.
So, as a result, it is up to the user of the library to determine what they want to do with the content. They can choose to ignore a cue that contains an embedded time.
So, I think the library shouldn't change as it depends entirely what the client requires.

Thanks for your reply. Does it mean, with these parsed timestamp cues, the
client should try parse and decide how to do with it?
Darren Ford @.***>于2024年12月21日 周六13:22写道：

Strangely enough - this file is a valid VTT file. I've gone through the
spec and it seems like there's nothing untoward in the file.
and<00:00:18.400> we'll<00:00:18.560> go<00:00:18.720>
to<00:00:18.880> the<00:00:18.960> web<00:00:19.119>
page<00:00:19.359> in<00:00:19.520> a<00:00:19.600>
minute
VTT supports embedding timestamps within a cue, to identify when
individual words are spoken within the cue itself.
00:00:28.560 --> 00:00:30.790 align:start position:0%
keith johnson
peter<00:00:28.880> ladoffo<00:00:28.880> lattifogue<00:00:30.160> was<00:00:30.400> certainly
00:00:30.790 --> 00:00:30.800 align:start position:0%
peter ladoffo lattifogue was certainly
You can see that the embedded timestamps fit within the time range (it's
an error if the embedded timestamps are outside the cue's time range
This library does NOT support word timestamps, so the cue will pass into
the Subtitle.Cue directly with no further parsing.
The reason that it 'works' within the files app is that the subtitles are
changing quickly between these cues (which are mostly identical in the
textual content) so you aren't noticing that the cue has changed, giving
the appearance that it's choosing a cue (somehow).
For example :-
00:00:23.840 --> 00:00:24.710 align:start position:0%
have it yet it's called a course in
phonetics
00:00:24.710 --> 00:00:24.720 align:start position:0%
phonetics
The second 'phonetics' will appear onscreen for approximately 10ms, which
would mostly be imperceptible.
So, as a result, it is up to the user of the library to determine what
they want to do with the content. They can choose to ignore a cue that
contains an embedded time.
So, I think the library shouldn't change as it depends entirely what the
client requires.
—
Reply to this email directly, view it on GitHub
https://github.com/dagronf/SwiftSubtitles/issues/14#issuecomment-2558004171,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABUUDQ3CV2CMVLT45QTXP3L2GT3JVAVCNFSM6AAAAABT6EFLUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJYGAYDIMJXGE
.
You are receiving this because you authored the thread.Message ID:
@.***>

At this point, yes you'll need to handle these yourself.  SwiftSubtitles currently only parses down to the cue level, not the word level.

Yeah, you are right, I should do it myself, thanks for your patients and great work!


Add event 'drawOnce' for one-time animations

Is there any way to trigger an animation only once on the first draw?

chart.on('draw', function handler(context) {
   chart.off('draw', handler);
   ...
});


ref ignored when add a child via add()

I found that when adding a child using the add() method with an object literal, the ref key seems to be ignored / not updated. When overwriting the childrens array directly, the ref is honoured.
Example to reproduce:
let view = {
   ref: 'Home',
   type: Home,
}
this.tag('Content').add(view)
console.log('get by ref', this.getByRef(view.ref)) // returns undefined
console.log('tag', this.tag(view.ref)) // returns StateMachineRouter

Expected behaviour: this.getByRef(view.ref) to return the StateMachineRouter as well

getByRef will only search through the refs of the affected ObjectList. this.getByRef(view.ref) will result in undefined, while this.tag("Content").getByRef(view.ref) will return the correct component.
Also, this.tag(view.ref) will search through all the tags of the tree and return the component you're looking for.

Yeah, this makes sense now. Thanks for explaining the difference between this.getByRef and this.tag 👍


verdictd: rename eaa to verdictd

rename and reconstruct eaa to verdictd
Fixes: #1514

merge https://github.com/alibaba/inclavare-containers/pull/1518 prior to this pr.
the basic tests show build failure. See "Details".

@liangzhou121 Plz fix the conflict.


Add comments about OSX,Linux, Windows platform options

What does the pull request do?
Just added some documentation. If you are familiar with those properties and have ideas on making descriptions better, feel free to make a review. Also would be prb nice not to duplicate descriptions for the same properties, if you know how can I reference the doc please tell that to me. In that case see cref somewhy doesn't work for me.

@jmacato Thank you for the review and sorry for my English)

@Takoooooo tis alright :) i hope there'll be lots more contributions to our XML docs

@jmacato @kekekeks  feel free to approve unless you have more doubts


Highlight state load on open

The highlight customPredictor is initially run before first open & before my dates coming from vuex are available. So the dates are not highlighted on first open, only after month is changed.

Never mind, ended up using highlight dates array instead. Works better in async date fetch timing than the customPredictor.


Cannot stream audio from applications using wasapi

My current set up is Kodi playing audio with wasapi and hifi cable and having that audio streamed via airplay using a similar software to yours called tuneblade. Unfortunately, airplay is limited to only 41.1khz sample rate and all movies need to be downsampled.
I've gotten your software to function in a similar manner, but only if Kodi is using direct sound and not wasapi. There seems to be a noticeable decrease is quality using direct sound with my stereo set up. The timing for audio/video seems to always be a few milliseconds off and is not a consistent amount delayed every time a video is launched. Is there a way for swyh-rs to be able to stream audio from applications using wasapi? Thanks again for your time and this software!

swyh-rs can only capture audio using wasapi.
The problem is that Kodi insists on opening wasapi in exclusive mode instead of in shared mode, and this prevents swyh-rs opening wasapi for sound capture...
Foobar2000 has the same problem. If you disable exclusive mode in the sound config control panel Foobar2000 refuses to open wasapi.
VLC for instance can stream without problems to HiFi Cable, as do Spotify and many others.
And a delay between video and sound is inevitable if you capture the audio and stream it to another audio device, there is a (minimal) amount of buffering in the application and a device-dependent amount of buffering in the dlna-renderer (often configurable).
VLC can fix this by sending the audio ahead of the video, using the "J" key,  or in the audio preferences (sync compensation).


A way to disable user from editing the Name field in survey builder

Are you requesting a feature, reporting a bug or asking a question?
Asking a question -  I was wondering if there is a way to disable name field and allow the user to edit only the title field in the survey builder.
What is the current behavior?
Able to edit the name field in the builder
What is the expected behavior?
Should not allow user to edit the name field

Here is the code:
// For any question
Survey
    .JsonObject
    .metaData
    .findProperty("question", "name").readOnlyValue = true;
// For pages and panels
Survey
    .JsonObject
    .metaData
    .findProperty("panel", "name").readOnlyValue = true;

Here is the working sample - https://plnkr.co/edit/vj0eRKsIJBhXV5J4oaME?p=preview

@tsv2013 thank you for the super fast response! can this be extended to the value fields in the choices tab for all the questions that have choices? I tried by replacing question with 'selectbase' but it did not work. My aim is to allow the user only to modify the text field of a question of any kind.

Sure:
// For item values
Survey
    .JsonObject
    .metaData
    .findProperty("itemvalue", "value").readOnlyValue = true;

Updated plunk - https://plnkr.co/edit/vj0eRKsIJBhXV5J4oaME?p=preview

Thank you for the quick response. Looks like I missed it in the docs. Closing the ticket now.


chore: update BCR entry maintainers

Aspect folks aren't involved with this ruleset anymore

@bellspice @comius could you merge please?


Print output parameters on any line instead of final line

This PR addresses #51

Hello @gwenchee! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file rollo/evaluation.py:

Line 670:80: E501 line too long (83 > 79 characters)
Line 677:17: E722 do not use bare 'except'
Line 677:24: W291 trailing whitespace
Line 678:25: W291 trailing whitespace

Thanks @nsryan2 !


Static png file appears to be missing

I am getting the following error when running the Appraise server:
Not Found: /service/appraise/static/EvalView/css/images/ui-bg_glass_75_e6e6e6_1x400.png

I did collect static files correctly beforehand, since all other static files are found.
Does anyone know what the problem could be, or if this file is indeed missing?

If you switch to the develop branch, the jQuery UI is then hosted at CDN and all files should be automatically accessible from there.


chore: Transitions for IDE

Description
Uses AnimatedGridLayout component to introduce transitions for the IDE. This is behind a feature flag
Fixes #34538
Fixes #30863
Fixes #34544
Automation
/ok-to-test<EMAIL_ADDRESS>:mag: Cypress test results

[!WARNING]
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/10448012533
Commit: 1866d2f8031c13e8a0d597991ce8b353c0e3f370
Cypress dashboard.
Tags: @tag.All
Spec:
It seems like no tests ran 😔. We are not able to recognize it, please check workflow here.
Mon, 19 Aug 2024 06:08:32 UTC

Communication
Should the DevRel and Marketing teams inform users about this change?

[ ] Yes
[ ] No

Summary by CodeRabbit

New Features

Introduced two new layout components: AnimatedLayout and UnanimatedLayout for improved editor interface structuring.
Added constants for standardized heights (IDE_HEADER_HEIGHT, BOTTOM_BAR_HEIGHT) to enhance layout consistency.

Improvements

Updated various components to utilize new constants for height calculations, promoting maintainability and responsiveness.
Enhanced the header and sidebar components for better adaptability in varying screen sizes.

Bug Fixes

Resolved layout issues by ensuring components dynamically adjust their heights based on the new centralized constants.

Refactor

Simplified the PropertyPaneSidebar component by removing unnecessary props and managing width internally.

/build-deploy-preview

@hetunandu "Transitions for IDE" do we need to run tag.All or multiple tags here?

/build-deploy-preview skip-test=true

/build-deploy-preview skip-test=true


Pull commit Cut release 2.15.2 from release-2.15.2 branch.

Signed-off-by: Bartlomiej Plotka<EMAIL_ADDRESS>

:+1:


Creating a Project Upload form

A project submission form on a website with project uploads is highly beneficial.

Streamlined Submission Process:
It allows users to easily submit their projects directly on the website, ensuring all required information (like project description, files, and details) is collected in one go.
Consistency:
By having predefined fields (e.g., project title, category, and tags), it ensures that all submissions follow a consistent format, making it easier to review and manage.
Improved User Experience:
Visitors can submit projects without needing to contact the admin or use external platforms, making the process quicker and more user-friendly.
Automation:
You can automate tasks like notifications, project approvals, or categorization based on the form inputs, reducing manual work.

Overall, it enhances efficiency, improves project management, and offers a seamless experience for both users and website administrators.

A project submission form on a website with project uploads is highly beneficial.

Streamlined Submission Process:
It allows users to easily submit their projects directly on the website, ensuring all required information (like project description, files, and details) is collected in one go.
Consistency:
By having predefined fields (e.g., project title, category, and tags), it ensures that all submissions follow a consistent format, making it easier to review and manage.
Improved User Experience:
Visitors can submit projects without needing to contact the admin or use external platforms, making the process quicker and more user-friendly.
Automation:
You can automate tasks like notifications, project approvals, or categorization based on the form inputs, reducing manual work.

Overall, it enhances efficiency, improves project management, and offers a seamless experience for both users and website administrators.

Hyy @sejals23, I'm assigning issue to you.


CLI For no GUI

can you add cli version for this?
tried with xvfb and its not help

Hi, Giga Grabber v0.0.1 uses a CLI so you could try that. If you would like to contribute a CLI to the latest version of Giga Grabber I would appreciate it.
The error you are getting when you try to run Giga Grabber with xvfb should be fixable, I would recommend checking the winit repository and see if anyone else has gotten that error before.

[server build 4/4] RUN --mount=type=bind,source=src,target=src     --mount=type=bind,source=Cargo.toml,target=Cargo.toml     --mount=type=bind,source=Cargo.lock,target=Cargo.lock     --mount=type=cache,target=/app/target/     --mount=type=cache,target=/usr/local/cargo/git/db     --mount=type=cache,target=/usr/local/cargo/registry/ cargo build --locked --release && cp ./target/release/giga_grabber /bin/server:
1.288     Updating crates.io index
1.290 error: failed to get mega as a dependency of package giga_grabber v1.1.4 (/app)
1.290
1.290 Caused by:
1.290   failed to load source for dependency mega
1.290
1.290 Caused by:
1.290   Unable to update /app/mega-rs
1.290
1.290 Caused by:
1.290   failed to read /app/mega-rs/Cargo.toml
1.290
1.290 Caused by:
1.290   No such file or directory (os error 2)

failed to solve: process "/bin/sh -c cargo build --locked --release && cp ./target/release/$APP_NAME /bin/server" did not complete successfully: exit code: 101
any fix??

Hi could I get a little bit more information about what version of Giga Grabber you are trying to build?


Home page view

presented with the homepage,
includes

existing blog posts if any have been posted
navigation links

homepage
dashboard
option to log in

Navigation is complete

existing post are displayed


Add safe wrappers for overlapped I/O

I'm not sure entirely what the scope of this crate is (it seems to be mostly limited to unsafe bindings to the Windows API), but would it be a welcome addition to add a safe way of doing overlapped operations?

This crate is pretty dead. I would not depend on any new functionality being added unless a new dedicated maintainer takes over :)

Okay. I'm not willing to take over this crate, so I guess I'll close this issue for now.


Unable to use component helper

As per the README, component helper module should(?) be wired up to the component 'view' right out of the box:
Helpers
If your partial becomes too complex and you want to extract logic from it, you may want to define custom helpers in the ButtonComponent module:
# frontend/components/button/button_component.rb

module ButtonComponent
  property :href, required: true
  property :text, default: "My button"

  def external_link?
    @href.starts_with? "http"
  end
end

However, none of the methods defined on my helpers are accessible from the component 'view':
#frontend/components/direct_attachment_field/direct_attachment_field_component.rb
module DirectAttachmentFieldComponent
  extend ComponentHelper

  def something
    raw('something')
  end
end

#frontend/components/direct_attachment_field/_direct_attachment_field-html.erb

  <%= @attacheable.file_field :document, direct_upload: true,
                              class: 'form-control-file',
                              data: { action: 'report-form#loadFile', target: 'report-form.fileField'} %>
  Seleccionar archivo...
  <%= something %>

Always returns:
undefined local variable or method 'something' for #<#<Class:0x007fab224dbca8>:0x007fab21b09b58>
Is there any extra configuration I might be missing or it is not behaving as expected?
Thanks

Hello @JoseMPena thanks for the bug report.
It's weird, it should work out of the box. Did you try to restart the server after creating the component?
Which version of Komponent / Rails / Ruby do you use?

Hi @Spone, thanks for your answer.
Actually, just found out that (at least in my case) have to restart the Rails server (not even webpack-dev-server) to get the new helper methods working. Looks like an ActionView thing.
My versions:
Rails 5.2.0.rc1
Ruby 2.4.1

Ok, so it's an autoloading problem.
In the latest version of Komponent, when you run the install generator, it will take care of it automatically (you can update Komponent, run rails generate komponent:install again and choose to overwrite just the config/application.rb file).
If you want to do it manually, just add these two lines to config/application.rb:
config.autoload_paths << config.root.join('frontend/components')
config.i18n.load_path += Dir[config.root.join('frontend/components/**/*.yml')]

And that should fix it :)


External class / Next

Voila, sorry for the delay... I dislocated my shoulder while mountain climbing so I have only one hand to code :rofl:
I changed one last thing... I merged class PDF and PDF_ as in my opinion, it's cleaner implementation and use of streams, furthermore, now there is no need to differentiate between browser and node.
We should also merge PDF_ and ExtendedPDF, but we will see...
Before updating how-to-create-a-complete-bill.md and the examples let me know what you think :punch:

I'm also sorry for the delay @danielpanero. I did a quick review and I'm not sure if we should remove the overloads completely and just provide an API with streams. I think streams can be scary for beginners and I want to provide an easy to use solution for those users.
Other than that, I found a few small things that could be improved, but overall I think your changes improve the library quite a bit.
Before we proceed, I'd like to play around with the new API and see how it feels.
It will be another few days before I get to it, but I'll keep you updated.

Hi, I was too very busy with university work, but finally, I have some time for my projects. Did you by any chance had time to review it?

Hi Daniel
I'm really sorry for letting you wait for such a long time and recently not replying.
I have started reviewing your pull request and noticed some issues with the documentation.
The reason it takes me so long is that I am actually working on another project to autogenerate the documentation from the source code. I have started that project a while ago and I thought instead of fixing the documentation manually I could just finish my other project and use the generated documentation instead.
Well, as it turns out, it is much more complex to autogenerate documentation and therefore it took me much longer than I anticipated.
Somewhere I have mentioned initially that I wanted to have the same set of tools across all my projects. That being testing, documentation, code style, automatic releases etc. As some of those things require code changes, I wanted everything in one major release.
I have made some progress on the v4 branch where I have implemented some parts of that, but in hindsight, I should not have "waited" for the documentation part.
That being said, I think I am getting close to the point where it all comes together and I can finally release v4 with your improvements.
I really don't want to be the person who creates a library and then abandons it.
You can expect me to get back to you soon.

Any news?
I as well would like this feature. Because currently I do not have any possibility to pass the Options Object to the PDFKit Constructor.

Hi, did you manage to sort out the problems with the documentation?

?

Hi @danielpanero
Sorry again for the silence. Yes I made progress with my other tasks. SwissQRBill is now my primary focus.
@skch-17 I will try to address your suggestion, as well as all other suggestions, that have come up in the meantime with the next major version.

I have now integrated you changes into the v4 branch and loosened additional rules to make it even more flexible.
The progress can be tracked in issue #414 or in the pull request #415.
Thank you very much for your contribution and patience.


need SSR usage example

I'm rendering my pages on server side and I found a problem that only occurs on first page render.
When I'm trying to access a page with StarRating I get the following error:
Vue warn]: Error in beforeCreate hook: "ReferenceError: document is not defined" found in
---> <StarRating>
          <Component> at ../src/components/Component.vue
             <App> at ../src/App.vue
               <Root>

Call stack gives much more info
ReferenceError: document is not defined
at o (../node_modules/vue-star-rating/dist/webpack:/~/vue-style-loader/lib/addStylesClient.js:116:1)
at r (../node_modules/vue-star-rating/dist/webpack:/~/vue-style-loader/lib/addStylesClient.js:100:1)
at t.exports (../node_modules/vue-star-rating/dist/webpack:/~/vue-style-loader/lib/addStylesClient.js:54:1)
at Object.e (../node_modules/vue-star-rating/dist/webpack:/src/star-rating.vue?3ff3:8:1)
at e (../node_modules/vue-star-rating/dist/webpack:/webpack/bootstrap 1d3fc18262fd606c10d8:19:1)
at VueComponent.r (../node_modules/vue-star-rating/dist/webpack:/src/star-rating.vue:2:1)

Due to vue-style-loader page you need to build server side files with target: 'node' to prevent this from happening.
After a short research I solved this problem by changing import to
import StarRating from 'vue-star-rating/src'

Maybe it's worth adding in README.md to prevent inexperienced users like me from this error

Thanks for this, I'll take a look at updating the docs to include handling SSR when I get the chance.

FYI for people using Nuxt and are ok with only rendering this component client-side, there is the <no-ssr> wrapper component since rc-7:

Add <no-ssr> component (from vue-no-ssr), it allows you to render component only for client-side, see example

https://github.com/nuxt/nuxt.js/issues/1558 template on client side
https://github.com/nuxt/nuxt.js/blob/dev/examples/no-ssr/pages/index.vue

@craigh411 thanks a lot for this component!
It would be anyway great to support SSR for this plugin as client-side rendering of stars after all the other content is served from server looks somewhat ugly to be honest.

@xloading Yes, that's definitely worthwhile! I've opened a separate issue for this request.

let rating = {}
if (process.client) {
rating = require('vue-rate-it')
}
export default {
components: {
StarRating: rating.StarRating,
}
}

Any update on this? no-ssr is not working for me, getting the error from the point when I add StarRating to the components.

I have seen this issue in version 1.7.0. But version 1.6.1 does not have this issue.

I have seen this issue in version 1.7.0. But version 1.6.2 does not have this issue.

Thanks you, But I think this package should be update at this point

const rating = process.client ? require('vue-rate-it') : {}

export default {
  components: {
    StarRating: rating.StarRating,
  }
}

<template>
  <client-only>
    <star-rating />
  </client-only>
</template>

Following this link (https://stackoverflow.com/questions/60735985/cant-add-npm-package-to-nuxt-js-vue-star-rating) and then wrapping component with  seems to work.

For nuxt, this worked for me:

I created a rating.js under the plugins folder with the following content

import Vue from 'vue'
import StarRating from 'vue-star-rating'

Vue.component('star-rating', StarRating)

In the plugins array in the nuxt.config.js file, I added { src: '~/plugins/rating.js', mode: 'client' }
Then in my .vue component files, I called <star-rating> </star-rating>

For nuxt, this worked for me:

I created a rating.js under the plugins folder with the following content

import Vue from 'vue'
import StarRating from 'vue-star-rating'

Vue.component('star-rating', StarRating)

In the plugins array in the nuxt.config.js file, I added { src: '~/plugins/rating.js', mode: 'client' }
Then in my .vue component files, I called <star-rating> </star-rating>

@bunday Doesn't work in nuxt 3 rc

For nuxt, this worked for me:

I created a rating.js under the plugins folder with the following content

import Vue from 'vue'
import StarRating from 'vue-star-rating'

Vue.component('star-rating', StarRating)

In the plugins array in the nuxt.config.js file, I added { src: '~/plugins/rating.js', mode: 'client' }
Then in my .vue component files, I called <star-rating> </star-rating>

@bunday Doesn't work in nuxt 3 rc
update nuxt 3 solution :
// plugins/rating.client.js
import StarRating from 'vue-star-rating'

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.component("star-rating", StarRating);
});

Then directly use <star-rating /> in .vue file

Using this solution, the component seems to work in Nuxt 3, but the console show some warns.
[Vue warn]: Failed to resolve component: star-rating
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
[Vue warn]: Component <Anonymous> is missing template or render function.

Is there a solution for Vite?

CamelCase syntax ('StarRating' instead of 'star-rating') resolves the warning for NuxtJS 3
`import StarRating from 'vue-star-rating'
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.component('StarRating', StarRating)
})`

I suffered with this task for 5 hours, this solution helped me.
const StarRating = process.client ? require('vue-star-rating').default : undefined
It's strange why the developers don't add this information to the documentation?

I suffered with this task for 5 hours, this solution helped me.
const StarRating = process.client ? require('vue-star-rating').default : undefined
It's strange why the developers don't add this information to the documentation?


Docs anchor links don't work on Chrome

The anchor links, for example https://docs.odk-x.org/#key-features, don't work on Chrome. Firefox is unaffected.
It works when you're navigating to an anchor on the same page, but not when using the full URL.
Removing or blocking the Google translate script appears to fix the issue.

Can I work on it?

@linl33 I am not sure this is an easy win/ good first issue since it's an open problem. Thoughts?

@wbrunette I agree. @starboi02 please pick a different issue.


Problem with Floss as a python library

I'm trying to incorporate floss into Cuckoo, and specifically print each type of string floss extracts separately. But, I'm having trouble using floss' API correctly. There is no real documentation on how to use floss as an imported python library, so I perused the source and came up with this:
import floss
import vivisect

MAX_FILESIZE = 16*1024*1024
MIN_STRINGLEN = 4

data = open("~/Documents/Practical_Malware_Anaysis_Labs/BinaryCollection/Chapter_10L/Lab10-01.exe", "r").read(MAX_FILESIZE)

# Extract static strings
acsii_strings = floss.strings.extract_ascii_strings(
    data,
    MIN_STRINGLEN
)
uft16_strings = floss.strings.extract_unicode_strings(
    data,
    MIN_STRINGLEN
)

# Prepare FLOSS for extracting hidden & encoded strings
vw = vivisect.VivWorkspace()
vw.loadFromFile("~/Documents/Practical_Malware_Anaysis_Labs/BinaryCollection/Chapter_10L/Lab10-01.exe")
vw.analyze()

selected_functions = floss.main.select_functions(vw, None)
decoding_functions_candidates = floss.identification_manager.identify_decoding_functions(
    vw,
    floss.main.get_all_plugins(),
    selected_functions
)

# Decode & extract hidden & encoded strings
decoded_strings = floss.main.decode_strings(
    vw,
    decoding_functions_candidates,
    MIN_STRINGLEN
)
stack_strings = floss.stackstrings.extract_stackstrings(
    vw,
    selected_functions,
    MIN_STRINGLEN
)

When I run this I get this error:
  File "~/floss-test.py", line 10, in <module>
    acsii_strings = floss.strings.extract_ascii_strings(
AttributeError: 'module' object has no attribute 'strings'

What is wrong with my code, and how am I supposed to use floss as a library effectively?

Nvm, sorry I'm new to python and didn't realize you had to import the namespaces separately.

Good you figured it out. Let us know if you need additional assistance.


[ZEPPELIN-6157] Download artifacts from CDN if available

What changes were proposed in this pull request?
Current artifacts available in CDN (dlcdn.apache.org) may get removed without notice when new releases appear.  To avoid broken links, build scripts contain permanent addresses from archive.apache.org.  But download from archive.apache.org may be slow:
Thu, 05 Dec 2024 08:39:53 GMT [INFO] --- download:1.6.0:wget (download-sparkr-files) @ r ---
Thu, 05 Dec 2024 08:39:54 GMT Warning:  No signatures were supplied, skipping file validation
Thu, 05 Dec 2024 08:39:54 GMT [INFO] Read Timeout is set to 60000 milliseconds (apprx 1 minutes)
Thu, 05 Dec 2024 08:45:46 GMT [INFO] Expanding: /home/runner/work/zeppelin/zeppelin/rlang/target/spark-3.5.3-bin-without-hadoop.tgz into /home/runner/work/zeppelin/zeppelin/rlang/target

Apache Infra's closer.lua script can redirect to CDN or archive, depending on artifact availability.
This change replaces archive.apache.org URLs, and one instance of dist.apache.org, with their closer.lua equivalent.  Output filename has to be specified for wget unfortunately.
https://issues.apache.org/jira/browse/ZEPPELIN-6157
How was this patch tested?
Tried some of the URLs locally, both from CLI (curl -L --head) and regular build (mvn -DskipTests clean package).
Full CI:

quick: https://github.com/adoroszlai/zeppelin/actions/runs/12319072153
frontend: https://github.com/adoroszlai/zeppelin/actions/runs/12319072142
core: https://github.com/adoroszlai/zeppelin/actions/runs/12319072156

Could not get content org.apache.http.conn.HttpHostConnectException: Connect to archive.apache.org:443 [archive.apache.org/<IP_ADDRESS>, archive.apache.org/2a01:4f9:1a:a084:0:0:0:2] failed: Network is unreachable (connect failed)

https://github.com/apache/zeppelin/actions/runs/12319979560/job/34388256366?pr=4901#step:6:1531

Error seems to be unrelated, happens in other runs:
https://github.com/apache/zeppelin/actions/runs/12080785392/job/34254210876#step:6:572
https://github.com/apache/zeppelin/actions/runs/11996006824/job/33440092834#step:8:565

I have had the experience that download servers which return the lua script were not available. What is important to me is a stable download and a stable CI environment. Speed is of secondary importance.

Merged into master/branch-0.12

Thanks @Reamer for reviewing and merging this.


Define structure for default app tests

Acceptance criteria:

[ ] Define where tests will be located (ats uses test/ats folder for example).
[ ] Define tests structure - does each repo have its own suite? Do they share a templated one and just configure it?
[ ] The framework is responsible for deploying the pipeline provided version of the app to the cluster and deleting it (is it enough to just delete the cluster or do some apps require additional cleanup?)
[ ] Tests ensure app is running successfully
[ ] Flow should easily allow pre- and post-app deploy validation and tests
[ ] Run a smoke test against the deployed app
[ ] There is sufficient documentation about the whole process so that app teams can start using the framework

Taken from Slack...
There's a lot of inconsistency with how our default-apps are handled across the different proviers.
This is our actual list of default apps that are applied to all clusters:
certExporter
certManager
chartOperatorExtensions
etcdKubernetesResourceCountExporter
metricsServer
netExporter
nodeExporter
vpa
observabilityBundle

We also have these which are named differently (or just not installed) depending on the provider:
not-installed (CAPA & CAPZ) / vpaCRD (CAPV & CAPVCD)
externalDns (CAPA) / external-dns (CAPZ) / not-installed )CAPV & CAPVCD)
securityBundle (CAPA & CAPZ & CAPVCD) / not-installed (CAPV)
teleport-kube-agent CAPA & CAPZ & CAPV) / teleportKubeAgent (CAPVCD)

And finally there are 3 apps that are specific to CAPA only:
aws-pod-identity-webhook
capi-node-labeler
cluster-autoscaler

But that's not all, we also install some things using HelmReleases:
We only have two charts that are common to all clusters:
cilium
coredns

We then have some inconsistent charts included:
network-policies (CAPA & CAPV & CAPVCD) / not-installed (CAPZ)
vertical-pod-autoscaler-crd (CAPA & CAPZ)  / not-installed (CAPV & CAPVCD)

And then finally some provider-specific ones (mainly cloud-provider-XXX).

There's a couple issues with this with regards to testing:

We don't really have a nice way of figuring out which way a default app is installed (what name and even if its installed) so upgrading it will be difficult.
Anything deployed as a HelmRelease within the cluster app can't be modified. There's no exposed configuration to set the version of values.

Some thinking out loud...

Could we detect the App / HelmRelease based on labels (the chart name label should be the same across providers, right?)
If we modify the App or HelmRelease on the MC, can we be sure that the default-apps-XXX or cluster-XXX won't overwrite those changes while we're running tests?

Could we detect the App / HelmRelease based on labels (the chart name label should be the same across providers, right?)

Nope 😞  Looks like the Apps actually end up with app.kubernetes.io/name: default-apps-aws. None of the labels actually mention the chart that the app is related to.
I suppose we could instead look at .spec.name but that means we then need to iterate over all Apps instead of doing a label filter on get.


 Best reviewed with ReviewStack.

-> #573
#567

Ah, also noticing just now that if the python server has an exception spinning up (in my case, it can't find the config I'm passing, 'aiconfig/cli/aiconfig-editor/travel.aiconfig') it will still spin up the client server in the same terminal and that python exception is hidden


CORTX-29541: Remove remaining references to openldap from README.md

This PR removes two references to openldap in README.md.  (These should have been removed as part of #141).

View rendered README.md

Note: This changeset shows three remaining instances of "ldap" in README.md.  These are being taken care of in #170.


[chore] remove RUSTSEC-2022-0002 from denylist by updating upstream Move

See https://github.com/MystenLabs/fastnft/pull/339. dashmap 5.0.0 in the upstream Move repo is vulnerable to this. No safe upgrade is available, but once one is, we should upgrade Move + fastX and remove this.

Closed in https://github.com/MystenLabs/sui/commit/37410be1abf2316b86c11b326c2e5eb7c5627c77


View

In this PR I  :

[ ] Implement the design from the sneak peek wireframes.
[ ] Make  sure everything functions first.

Thank you @FrederickMih  I will work on it


Operator Traits

core::ops allows implementing custom logic for operators. Would implementing these for Grammar/Production/Expression/Term enable any cleaner syntax or usage? If so, which of these operators would be included?

ops::Add (+)

Would this add same types (Grammar + Grammar -> Grammar)?
Would this add a component (Grammar + Production -> Grammar)?
Would this add components (Production + Production -> Grammar)?
Would this do all the above?
If this is implemented, what is the behavior or subtraction?

ops::AddAssign (+=)

Same question as Add

ops::BitOr ( | )

If Add is used only for components, could Or be used as a kind of union operator?
Should this only be implemented for Term | Term and Term | Expression to allow expr = Term | Term | Term?

ops::BitXor ( ^ )

If BitOr is used as a union operator, should BitXor be used for set difference?

These were the operators I identified as possible enhancements, but feel free to add more to the discussion that may be useful.
Also, as a possible alternative some of these use cases could be handled by macros to allow for special case syntax:
expression![ term1 | term2 | term3 ] -> Expression::from_parts(vec![ term1, term2, term3 ])
But that would require the user importing BNF's macros.

@CrockAgile I think custom operators represents a huge add. +, +=, and | seem like intuitive targets but I'm glad you brought up - and ^. I hadn't really thought of them but they make sense.

I am gonna close this issue. I think the most intuitive operator has already been added (thank you @DrunkJon!), and the rest require more discussion and demand from users.
I'm happy to re-open this tho, if anyone feels interested in taking it farther

Same page, thanks @CrockAgile!


Added check during input, do not trigger shortcut keys during input

Added check during input, do not trigger shortcut keys during input #4
ref: https://github.com/acrool/acrool-react-hotkey/issues/4

release test to: v3.0.19-alpha.1

Remove dependency on @acrool/react-hotkey, release v3.0.19


Fixed spec errors at master branch

Hi!
I sent my PR (https://github.com/stympy/faker/pull/380), but CI build failed.
Error occured specific versions bellow.

Ruby 1.9.2
Ruby 1.9.3

I checked error, and I fixed specs.
Maybe https://github.com/stympy/faker/pull/367 is related?
So, I try Ruby 1.9.3 and spec is passed.
➜  faker git:(fix-spec) ✗ ruby -v
ruby 1.9.3p547 (2014-05-14 revision 45962) [x86_64-darwin13.4.0]

➜  faker git:(fix-spec) ✗ bundle exec rake test
164 tests, 21922 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

69.17 tests/s, 9246.06 assertions/s

Please review.
Thank you so much.

Yeah!
CI build passed by all versions.

@stympy and other contributors
How about this PR?
I think this PR is necessary, because specs of master branch is fail.
Thank you so much.

+1

+1

Thanks :+1:


Mantra dataset

I belive will need one more update considering new loader

Checklist

[ ] My pull request has a clear and explanatory title.
[ ] My pull request passes the Linting test.
[ ] I added appropriate unit tests and I made sure the code passes all unit tests. (refer to comment below)
[ ] My PR follows PEP8 guidelines. (refer to comment below)
[ ] My code is properly documented, using numpy docs conventions, and I made sure the documentation renders properly.
[ ] I linked to issues and PRs that are relevant to this PR.

Description

Issue

Additional context

There is some error with mantra_orientation dataset


fix(js-config-webpack-plugin): Fix babel internal API call failing fo…

…r newer bable versions
PR Checklist
Please check if your PR fulfills the following requirements:

[X] The commit message follows our guidelines: link tbd.
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[X] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] tooling / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: Resolves #71
What is the new behavior?
Does this PR introduce a breaking change?
[ ] Yes
[X] No

Other information
Haven't added a test as this relies on changes to dependencies.
No relevant change to docs needed as far as I can tell as no functionality has changed.
I have fixed the version number of @babel-core as a minor version update to that is what caused the issue - The usage of findPackageData from @babel/core 7.8.4 (and perhaps earlier) is incompatible with 7.2.2.
I'm not super fluent when it comes to peer dependencies so you may want to confirm the changes there in more detail.
As mentioned in the original ticket, you may want to refer to 282f81bd676d09c1d8c48b08a7254b961eb41bed in @babel-core as part of this PR.
I haven't included package-lock.json in this commit, however it is now picked up by git since its removal from .gitignore - let me know if you want it included.

Thanks a lot!
Looks really good to me - @janbiasi what do you think?

Using a variation of the suggested snippet has worked well, I can get passing tests with both versions of @babel/core 😁
I've been struggling a bit against JSDoc. Having a type parameter of type Generator<T> | T results in a sea of red in VSCode (and the tsc lint step) because of the ambiguity.

I can resolve these by adding some cast comments to the function however prettier is manipulating these comments so that they don't clear the errors - so I have needed to disable prettier running on the function.
The result isn't super pretty, but passes all the linting stages. Let me know if you would prefer it formatted differently - another alternative would be to ts-ignore the lines in question.

@bencoveney Are you still working on this? If not I'm happy to help :)

Hi @anthonkendel  - Thanks, feel free to push to the branch 👍  I've added you as a collaborator to my fork which I think would allow that? but let me know if I should add any other permissions 😄
Hi @jantimon I've made some of the changes you've suggested but there's still a couple of questions above that I'm not sure about. I will need to do one of the following:

Turning off some of the typesafety by using any in the JSDocs.
Keeping typesafety in the the JSDocs - but with ugly cast code.
Converting JsConfigWebpackPlugin.js to TypeScript.

Please let me know whatever is preferred. I've just changed the JSDocs to use any for now.

Sorry I guess my typescript example was to hard to understand here is the same example with jsdoc (without any):
/**
		 * Return the value, unless its an interator, in which case get the last value.
		 * Works around differences in return values of @babel/core functions between versions.
		 * @template T
		 * @param {Generator<T, T> | T} valueOrIterator
		 * @returns {T}
		 */
		function getResult(valueOrIterator) {
			if (!isGenerator(valueOrIterator)) {
				return valueOrIterator;
			}
			let result = valueOrIterator.next();
			while (!result.done) {
				result = valueOrIterator.next();
			}
			return result.value;
		}

		/**
		 * Returns true if the value looks like a generator.
		 * @param {any} val
		 * @returns {val is Generator}
		 */
		function isGenerator(val) {
			return val && typeof val === 'object' && typeof val.next === 'function';
		}

Thanks for clarifying - that makes sense now :+1: I didn't realise how much TypeScript syntax would be available in those JSDocs

Probably a bit late after all the work done here 😄 As I needed to fix it immediately found out that @babel/core uses gensync interface hence I tried to align it with that one and voila. It requires adding gensync package though, but the solution is pretty simple:
const gensync = require('gensync')

//[...]

const packageData = gensync(findPackageData).sync(contextPath)
// needed because babels `findRelativeConfig` search just in parent directories
packageData.directories.push(packageData.filepath);

// From https://github.com/babel/babel/blob/52a569056c6008c453bf26219461655c7d0322c4/packages/babel-core/src/config/files/configuration.js#L26

// babel.config.js
const resolvedRootConfig = gensync(findRootConfig).sync(packageData.filepath, environmentName);
if (resolvedRootConfig && resolvedRootConfig.filepath) {
    return resolvedRootConfig.filepath;
}

// .babelrc.js and .babelrc
const resolvedRelativeConfig = gensync(findRelativeConfig).sync(packageData, environmentName);
if (resolvedRelativeConfig && resolvedRelativeConfig.config) {
    return resolvedRelativeConfig.config.filepath;
}

#71 resolved


Allow date to be overriden in resource library's json

Refer to issue #169 for details.
A new argument --override-utc-date-time which overrides the date used in the resource library e.g.

This is a lot of unexplained rewrite for a relatively simple feature.  This can be done much more surgically.


Rate limits

Resolves https://github.com/datawire/ambassador/issues/352
Provides:

Envoy configuration

virtual_hosts routes config
filter
cluster_manager
grpc_service
Unit and end-to-end tests

Documentation

RateLimitService
rate_limits mapping attribute
Using Envoy's gRPC external rate limit service
Tutorial
Example

Awesome to see this, thanks! Comments inline. :)

OK, I'll pull this down and run the test suite later today, but the changes look good overall -- thanks again!! :)

I'm going to go ahead and merge this. Room for some edits later, perhaps, but let's start working with it. :) Thanks!!


110600 - CompletionContext MSI retrieval

Connected to AB#110600
Updated to fetching CompletionContext from MSI instead of having that information saved locally

Added MSI Access Token Provider
Updated CompletionContext to MSI Access Token and Token Credentials when creating its connection
Ran the following commands on the dev database to allow access via MSI:

CREATE USER [App Name] FROM EXTERNAL PROVIDER;

ALTER ROLE db_datareader ADD MEMBER [App Name];
ALTER ROLE db_datawriter ADD MEMBER [App Name];

Add description of manual steps into #110523

Add description of manual steps into #110523

Added
Let me know if what I wrote is unclear or if there is specific information you think I forgot or left out


Fix for broken PUT methods #414

Pass _method directly to urllib_request to enable PUT requests and also ensure consistency between signature and actual request,.
Pass id parameter into auth.encode_params() for PUT requests, as required by two existing API methods using PUT.

Coverage decreased (-1.9%) to 28.437% when pulling e8bc6af50b773814e46bd596b87f2be3603535c9 on snail-coupe:keep-id-with-PUT into b46ac160456b5cd7804b2cecef02ddfb07043c08 on sixohsix:master.

This looks OK to me.
If I'm correct, the PUT routes require to send data as json, explaining why the id argument needs to be passed a second time, is that right?
Although Travis failed on this PR, but it seems it is for different reasons related to pycov, @hugovk would you mind taking a look?

For one, it's a bit odd the Travis result isn't shown here in the PR. Perhaps the integration needs checking in the repo settings? Sometimes removing it and re-adding helps.
Anyway, the CI did run, here's the link: https://travis-ci.org/github/sixohsix/twitter/builds/703358264
It's also failing on master. Will check.

PR to fix the CI: https://github.com/sixohsix/twitter/pull/416

This looks OK to me.
If I'm correct, the PUT routes require to send data as json, explaining why the id argument needs to be passed a second time, is that right?

As I follow it, there are only two API calls that use PUT (updating DM welcome message, and hide replies currently in labs) - they both take most of the data within a JSON body, but the both also have an id parameter they are referencing in the url path.
If I've followed the existing code assumed if there was a json body then there was no need to pass any parameters in the path (other than OAuth stuff) so ignored them, but that leads to an error about missing id...

@HugoVK Yes indeed this is weird that Travis does not show up in the PRs anymore, but I don't have the rights to touch the repo settings. @sixohsix could you try and reattach Travis?
@snail-coupe yeah I got that, this is why I was asking whether both PUT routes require json data. So It sounds like a yes.
Can I ask that you rebase your branch against master and repush --force on the PR branch so that Travis will try again the tests? Thanks!

@snail-coupe yeah I got that, this is why I was asking whether both PUT routes require json data. So It sounds like a yes.
Can I ask that you rebase your branch against master and repush --force on the PR branch so that Travis will try again the tests? Thanks!

Done (I think) - I should have included references for both PUTs - sorry - first timer
https://developer.twitter.com/en/docs/direct-messages/welcome-messages/api-reference/update-welcome-message
https://developer.twitter.com/en/docs/labs/hide-replies/api-reference/put-hidden

Thanks, yes that did the trick
It looks though that this breaks compatibility with python 2.7 which still worked otherwise, because method is not a valid kwarg for urllib2.Request. I know python 2.7 is deprecated, but I think it's a bit sad to drop it just for this, I'd like if we could find out how to add the argument differently to handle this.
With python3.4 it seems to break as well, although this looks more like a timeout error which might work after retry

I didn't even think about other python versions, sorry!
My code runs on a raspberry pi which I think is 3.7 but does have 2.7 as well.
I'll make sure it works with 2.7, and push again once it does so;  those stack overflow links looked useful.

Sorry for not getting back to this - I've gone with a slightly hacky solution based upon one of those stack overflow answers.  Given "our" code always determines the method it wants, just over-ride the get_method function of whichever version of urllib and Request to just use the method we want.
I recently needed to use an API call that uses DELETE and this appears to work fine for that as well.

Hello,
There was still an issue with python2 as shown by Travis here: https://travis-ci.org/github/sixohsix/twitter/jobs/741753711
I allowed myself to fork your PR and push an extra commit on a branch here: https://github.com/sixohsix/twitter/commits/snail-coupe-keep-id-with-PUT
It works as such with all versions: https://travis-ci.org/github/sixohsix/twitter/builds/743230828
So I will merge the branch and close this PR although it is actually merged, thanks again!

Thank you!
And sorry for missing the other python 2.7 (I did intent to check the Travis output but when I pushed that update it was taking a while to go though and hasn't got back to it)


[Bug] Bug when I want to publish a gif or emoji

Describe the Bug

To Reproduce

Expected Behavior

Screenshots

Discord Version

Additional Context

Duplicate of #1116


Several popovers with different placement simultaneously

Hi guys. Is it possible to show several popover with different placement simultaneously?
Something like that:

And if yes, how can I do this? Thanks.

Hi  @merovinh ,
A tour shows steps one by one, so it's not possible to simultaneously display two steps of the same tour.
But you can still try, to start 2 tours together, if you want.

@merovinh @ousmanedev actually it's possible to show several popovers at the same time. Just use same class for all items that you want to point to. Though I guess your question is more about showing differently positioned arrows of those popovers, which I don't think is currently supported. But I guess you can try to achieve it using css, you can try using general sibling selector for that. Smth like:
.popover[class*=tour-] + .popover[class*=tour-]
That way you will get to the second popover and then it's only a matter of specifying additional styles for the .arrow div


Debug output in release mode

Steps to reproduce

Download and extract 0.9.2 release from https://github.com/downloads/cpp-netlib/cpp-netlib/cpp-netlib-0.9.2.zip
Set up BOOST_ROOT environment variable (+ build boost etc.)
Run: cmake -G "Unix Makefiles"
Run: make
Compile and link the following (no special options). I used GCC 4.6.2 if it matters.

#include
#include <boost/network/protocol/http/client.hpp>
using namespace boost::network;
using namespace boost::network::http;
int main()
{
std::string s = body(client().get(client::request("http://www.boost.org")));
}

Run. The output is:

1333 0
1335 0
1346 0
1348 1
1333 0
1335 0
1346 0
1348 1
1333 0
1335 0
1346 0
1348 1
1333 0
1335 0
1346 0
1348 1
1333 0
1335 0
1346 0
1348 1
1333 0
1335 0
1346 0
1348 1
1333 0
1335 0
1346 0
1348 1

If you downloaded 0.9.2 you should only have the BOOST_NETWORK_DEBUG macro defined if and only if CMAKE_BUILD_TYPE is actually Debug. This means two things:

It's being set to Debug.

Somehow when you're running cmake to set the CMAKE_BUILD_TYPE=Release it doesn't work.

Also, I cannot reproduce this on my MacBook using GCC 4.6.2 as well.
You didn't mention what OS you were using though. Sorry I can't help you much more than telling you that I need more data on how to reproduce this even with 0.9.2.
Cheers

I am using Ubuntu 10.04, 64-bit.
If you tell me which line in the source is doing the output, I can try to investigate what is going on.

I cannot actually see where the code does any printing at all, it doesn't follow the same convention as the BOOST_NETWORK_MESSAGE(...) debugging. Probably a grep through the source code for 'cerr', 'clog', or 'cout' should give you a better idea.
Sorry I can't help much in this regard.

I thought you said this output was intentional... surely you know where it's coming from?

And if you don't, then why do you expect the BOOST_NETWORK_DEBUG macro to have any effect on whether or not it is displayed?

In any case, the output is going to stdout, not stderr, and a grep for cout does not show up any likely candidates.
Do you at least know what the 13xx numbers mean? Are they request codes? Byte counts?

Sorry for the late turnaround, timezones suck.
I distinctly remember having these at one point in the code while I was debugging the implementation of the asynchronous client. This had to do with the body parsing, and these are basically byte counts and "pending" counts as well -- the 0 and 1 determined the length of the queue of chunks to process for the body.
Just to be completely sure about this (and to save you all the trouble with trying to use 0.9.2) please get the latest from the 0.9-devel branch from git. You can download a snapshot by clicking https://github.com/cpp-netlib/cpp-netlib/zipball/0.9-devel -- this is practically the same as 0.9.3 which Glyn is going to be releasing soon.
I'm positive that this version will not have any of these outputs -- if it still does, please update the issue and I can work with you to pin down where these things are coming from.
Cheers

Thanks for following up.
I built 0.9-devel, and I am trying to link my program to it (I noted that libcppnetlib-uri-parsers changed its name to libcppnetlib-uri, and that a new library libcppnetlib-client-connections needed to be linked to), but I am getting linker errors about SSL-related functions, e.g. SSL_CTX_get_ex_data. Is there a way to avoid this dependency?

With regards to the original issue, after linking to libssl and libcrypto as well, and running the program, the debug output is still there :(

It doesn't, and I don't see how it possibly could. How could BOOST_NETWORK_DEBUG possibly get defined in my source file before including a cpp-netlib header, unless I explicitly define it on the compiler command line (which I certainly don't)?
Perhaps you meant for me to add those lines at the top of one of the cpp-netlib source files, and rebuild cpp-netlib?

Sorry again for the late turnaround. Timezones and long weekends this time.
These might show up when you're building the static libs with CMake and you get the debug builds. Doing a grep for either cout or cerr on libs/network/src and boost/ doesn't show where these should be coming from.
Either way I'm at a loss as to why something this simple would cause you trouble in terms of output. I cannot reproduce this on a Mac. Perhaps you want to try adding -DNDEBUG to your command-line flags as well if you're compiling by hand to see if it goes away then.

I've narrowed down the source of the output to the call to this->init_response() inside http_async_connection::start(). Does that help?

Reduced testcase to:
#include
#include <boost/thread/future.hpp>
int main()
{
boost::promisestd::string source_promise;
boost::shared_futurestd::string source_future(source_promise.get_future());
}
Output is:
1333 0
1335 0
1346 0
1348 1
So it is Boost issue, not cpp-netlib.
Thanks for your patience helping me debug this; I've closed the issue and will follow up on boost-users.

Sorry for the wild goose chase -- I totally got confused with the debugging output as I have implemented something similar during my debugging. I would think that these should go away if you build Boost in release mode.
Cheers

Except I do have Boost built in release mode...

And do you have -DNDEBUG when building your example? This shouldn't show up. Unless you're on a system that has weird accounting and/or selinux enabled to log all threads and/or lock debugging. Sorry I can't help you further on this. I hope others in Boost can help you out.


Allow quick development environment with Gitpod

This PR introduces the capability of creating a quick development environment of Winter CMS using Gitpod for testing and further development.
Gitpod is a cloud-based service that creates development environments direct from a Git repository. Each development environment, at its base, contains the VSCode editor direct in the browser, with support for multiple languages. It can then be extended to create a custom environment with Docker and initialisation callbacks.
I have implemented such an environment so that Winter CMS is completely installed, migrated and operational when starting a new instance in Gitpod. It does the following:

Installs the PHP Xdebug extension and Composer 2.
Installs the MailHog service for capturing and reviewing emails.
Creates a MySQL database.
Installs all Composer dependencies.
Rewrites the environment configuration to work within Gitpod.
Runs all database migrations.
Sets admin account to admin / admin for brevity.
Serves the site on port 8000, and the Mailhog interface on port 8025. The site will be publicly accessible.

Gitpod will work for pull requests and other branches, as well as the main develop branch. You simply need to create an account on Gitpod - this is easy as you can simply use your GitHub account to register and login. For PRs, it will provide a link in the comments to open this PR in GitHub immediately. You can also install extensions in Chrome and Firefox to provide a button direct on the GitHub interface to quickly open up a branch or PR in Gitpod.
Note: Gitpod offers 50 hours per month free. Any more will require a paid subscription. This should be enough for most testing and small development purposes, but best to keep it in mind when considering this PR.

Cool! Few questions, is xdebug required and or actually helpful or would it be better to just include the debugbar plugin? Second how / are we able to use this to provide one click demos of a fully functional winter experience? Third, can we also use this on our plugin repositories? Fourth, is mysql fine for this or would sqlite perform better / require less setup and server resources?

@LukeTowers

is xdebug required and or actually helpful or would it be better to just include the debugbar plugin?

Personally, I think it's necessary. If we need to find out why something breaks, it's much easier to use Xdebug. In saying that, DebugBar would probably be good to include too in the default build.

how / are we able to use this to provide one click demos of a fully functional winter experience?

We can provide a button like the one in my initial comment which serves as a "one-click" approach, but everyone who uses it would need a Gitpod account - we can't offer a public one that works without authentication. After registration however, it'd be essentially one-click.
The Workshop theme I demonstrated to you the other day is working towards a full Winter CMS experience. I would imagine we could install it and other common plugins to provide a better base for people to jump start a project.

Third, can we also use this on our plugin repositories?

Yep, we'd just need to change the initialization steps slightly to install Winter CMS itself first, but certainly very doable.

Fourth, is mysql fine for this or would sqlite perform better / require less setup and server resources?

I figured MySQL would be best as its probably our most common setup. I'm not overly concerned on resources - this is using Gitpod's cloud service, so they can worry about the resources :)


Fixed that sizeof(pointer) was used for buf size

In a 32-bit environment, it was fixed to 4 bytes and no writing was performed.

Thank you. I have already fixed this issue in c2c025006386a164478af4776b158b9d3f4d51df and 26340a8818e0d54b6fde7a3a1c5f38c9137065bf


No matching autocommands: filetypedetect BufRead

Introduced by https://github.com/ibhagwan/fzf-lua/commit/5104ac1744b92f888ef9f1d4bb6ff14e700c7a37

Fixed https://github.com/ibhagwan/fzf-lua/issues/1166


MUI5 Support

[x] Still migrating remaining jss to styled-engine.
[x] remove material-ui packages.
[x] remove mui/styles package after makeStyles migration.
[x] girth theme not yet migrated.
[x] work through minor styling nuances

Ready for review. We will need to release component-library out of beta before this is merged. Holding component-library in beta until after this is reviewed, in-case of any updates needed there.

Associated Component Library PR: https://github.com/OlympusDAO/component-library/pull/140

wrap screen has some smol issues
Master

This PR

sOHM gOHM toggles carets are misaligned
wrap button taller than input
avalanche arbitrum button colors

Give issues
Master

This PR

gOHM toggle color
tab styling should match stake tabs (the master branch is off a bit too)

Stake Tab
Master

This PR

Stake tab active state missing and wrong color
Unstake tab notification wrong color (maybe this is in Component Library)
sOHM - gOHM toggle styles
On the Total Stake OHM row I like the caret position on Master more than this PR, but could be convinced this PR is better. wdyt?

Changes addressed


High memory consumption

Repro steps

Open VisualFSharp.sln
Open service.fs file
Wait for semantic colorization to appear
Look at devenv.exe private set size, it's about 2GB

Expected behavior
Never consume more than 2GB, preferably less than that.
Actual behavior
Features like Document Highlight and Inline Rename take up to 20 seconds to complete, even without any changes in files. One of CPU cores is loaded at 100%. Occasional UI freezes (supposedly due to blocking GC).
Known workarounds
Do not open any files in large projects.
Related information

master branch

Lol I like that workaround.
Am 09.12.2016 09:49 schrieb "Vasily Kirichenko"<EMAIL_ADDRESS>
Repro steps

Open VisualFSharp.sln
Open service.fs file
Wait for semantic colorization to appear
Look at devenv.exe private set size, it's about 2GB

[image: image]
https://cloud.githubusercontent.com/assets/873919/21042759/8a5b8f12-be04-11e6-82b6-ea411432e528.png
Expected behavior
Never consume more than 2GB, preferably less than that.
Actual behavior
Features like Document Highlight and Inline Rename take up to 20 seconds
to complete, even without any changes in files. One of CPU cores is loaded
at 100%. Occasional UI freezes (supposedly due to blocking GC).
Known workarounds
Do not open any files in large projects.
Related information

master branch

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/visualfsharp/issues/1974, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AADgNCdBcc52odKf0r_MZN8dAZzN0lJZks5rGRYDgaJpZM4LItFY
.

I've noticed that we have keepAllBackgroundResolutions parameter set to true (default) here https://github.com/Microsoft/visualfsharp/blob/master/vsintegration/src/FSharp.Editor/LanguageService.fs#L51. Is it intentionally?

Yeah, service.fs is really difficult to work in right now.
@dsyme would you know more?

Yes, looking at https://github.com/fsprojects/VisualFSharpPowerTools/issues/848 it seems that keepAlBackgroundResolutions should be false


[Event Request] Table 289 "Payment Method" - OnBeforeCheckGLAcc

Hi team,
In table 289 "Payment Method" function CheckGLAcc we would like to replace standard code, to make it work depending on CurrFieldNo value, adding an event at start of function would be a good solution for this:

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckGLAcc(PaymentMethod: Record "Payment Method"; CurrFieldNo: Integer; AccNo: Code[20]; var IsHandled: Boolean)

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


Permission givin in private mail and on thread:

http://forum.kerbalspaceprogram.com/index.php?/topic/134621-121-anyres-v141-closer-and-closer-to-unity-46-ui/&do=findComment&comment=2893590
to put these back

Good news, everybody!


holc and pycolmap

when i pip pycolmap， I Find the init.py has some errors.

[

Already reported in https://github.com/colmap/pycolmap/issues/72.


Documentation on prefixing commit messages

When starting to commit in git for the first time, ran into some errors:

Is this a set constraint of our repo or project? Is this something we should add to the documentation for folks onboarding to the team or contributing to the code?

Updated documentation can be found here: https://github.com/cds-snc/resources-ressources#committing-to-the-repo


Composer autoloader (and PSR compliance)

You use composer - so use their auto loader!
Also, classes should follow PSR standards as defined here http://www.php-fig.org/

Actually I see you've made it optional and can use either - Don't! Ditch your one!

I personally don't use composer, so there will never be a composer only option.


godot: 3.0.3 -> 3.0.4

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/godot/versions.
These checks were done:

built on NixOS
Warning: no invocation of /nix/store/wavl2nim76s48xwjpq95wsxgsxvrb4sn-godot-3.0.4/bin/godot had a zero exit code or showed the expected version
0 of 1 passed binary check by having a zero exit code.
0 of 1 passed binary check by having the new version present in output.
found 3.0.4 with grep in /nix/store/wavl2nim76s48xwjpq95wsxgsxvrb4sn-godot-3.0.4
directory tree listing: https://gist.github.com/bdbe8596726721b6c715d84c81579c57
du listing: https://gist.github.com/6235762e4766106db266094344e36ae7

meta.description for godot is: '"Free and Open Source 2D and 3D game engine"'.
cc @twey for testing.
Experimental: this build is cached with Cachix. To use the cache follow these experimental instructions:
One time setup in nixpkgs Git checkout:
cachix use r-ryantm
git remote add r-ryantm https://github.com/r-ryantm/nixpkgs.git

Test this build:
git fetch r-ryantm && git checkout 1d707145cd02c24c19acc8404a9f0583eebfd055 && nix-shell --pure -I nixpkgs=. -p godot

No attempt on aarch64-linux (full log)
The following builds were skipped because they don't evaluate on aarch64-linux: godot
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: godot
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Attempted: godot
Partial log (click to expand)
shrinking RPATHs of ELF executables and libraries in /nix/store/k3a1yy777j9842gr5fqbdgc8yjcprkfs-godot-3.0.4-dev
strip is /nix/store/4qvrxzxa535y8304mk195x50b6p9607d-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/k3a1yy777j9842gr5fqbdgc8yjcprkfs-godot-3.0.4-dev
checking for references to /build in /nix/store/k3a1yy777j9842gr5fqbdgc8yjcprkfs-godot-3.0.4-dev...
shrinking RPATHs of ELF executables and libraries in /nix/store/5fa4mxm0q2az394pgmg80ijmnzajksqs-godot-3.0.4-man
gzipping man pages under /nix/store/5fa4mxm0q2az394pgmg80ijmnzajksqs-godot-3.0.4-man/share/man/
strip is /nix/store/4qvrxzxa535y8304mk195x50b6p9607d-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/5fa4mxm0q2az394pgmg80ijmnzajksqs-godot-3.0.4-man
checking for references to /build in /nix/store/5fa4mxm0q2az394pgmg80ijmnzajksqs-godot-3.0.4-man...
/nix/store/wavl2nim76s48xwjpq95wsxgsxvrb4sn-godot-3.0.4


Add fabric on Android

Summary:

Configure gradle files
Implement / extend the generated native interfaces
Ensure backwards compatibility by splitting implementations into two folders.

Test Plan:

Setup fabric example to test the app using RN 0.70 RC

This PR is part of https://github.com/callstack/react-native-slider/issues/380 - linking this to the issue.


Notify resize after drawer transition end

Also change to declarative open-menu event declaration

This change is

Reviewed 2 of 2 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks broke.

Comments from Reviewable


fixed the first column

I'm sorry that if you use row and rows components, you cannot make the first column fixed.


setup for hello project

In this project I:

Added a header to the home page
Added color to the header
Created a test.md file that was ignored by .gitignore .

made  changes


Removing unique constraint does nothing

Removing the unique constraint from a field as below does not create any migration schema changes:
- field.String("country_id").Nillable().Optional().Unique(),
+ field.String("country_id").Nillable().Optional(),

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior 🤔
It should generate a change to drop the unique constraint.
Steps to reproduce:

Create an edge called "country", assigned to a field called "country_id"
Migrate the above change with Atlas configured, along with:

[]schema.MigrateOption{
	schema.WithDropColumn(true),
	schema.WithDropIndex(true),
	schema.WithAtlas(true),
}

Your Environment 🌎

Tech
Version

Go
1.18

Ent
master

Database
Postgres

My bad, I just realized the field was being used on a O2O edge, which also applies the unique constraint.