accessibility of V2  ... website/issue tracker and so on

Discussed in https://github.com/jscad/OpenJSCAD.org/discussions/814

Originally posted by WolfgangFahl April 30, 2021
Since openjscad.org is still down i gave version 2 a  shot which was very frustrating.
It was hard to find out where it is hosted - there is no redirect and in the README the website is hard to find.
A drag and drop of one of my designs led to:

and didn't even show the source code nor the name of the design. I wasn't offered to open a ticket.
So now I could do a ticket but I think the prerequisites are far more important. If there would be a prominent link and automatic issue offering on errors and a link where to get help e.g. on stackoverflow the experience would not be as frustrating and developers would really learn about problems with the V2 code from real life users.
Also most of the links i followed asked me to register - e.g. the user group. The need to register is awkward. We've go the discussions here now with single sign on - why should users have to go elsewhere?

In the meantime i think this is a bug.
I had a frustrating experience to day. I wanted to work on an existing openjsacd V1 design.
When i tried to open https://www.openjscad.org/ i got:

So i tried searching for openjscad github and found:
https://github.com/jscad/OpenJSCAD.org
which pointed me to https://www.openjscad.xyz/ for an online version.
I dragged and dropped my design (after first not knowing where to drop since the V1 drop area seems to be gone in V2) and got the error message:

which is not userfriendly and not helpful especially since a link to the issue tracker is missing. I clicked on

and again no issue tracker no link to the github repository - no link to these dicussions.
So i can't use V1 and I cant' use V2 online any more. I'll have to start my own copy of V1 to continue which is very awkward and in my opinon not the goal of creating new Versions of software.
This issue is about the links to github / the issue tracker and discussions missing. I'll create another issue for the error message itself.
v1 Design that has a problem
// title      : BikeCaseLock
// author     : Wolfgang Fahl
// license    : Apache License
// revision   : 0.0.3
// tags       : Bike,Lock
// file       : BikeCaseLock/main.jscad
// date       : 2020-04-06

// construct a cylinder at the given position
function cylinderAt(list,h,r,dx,dy,dz,rx,ry,rz) {
  list.push(rotate([rx,ry,rz],cylinder({
      h: h,
      r:r,
      center: true
  })).translate([dx, dy, dz+h/2]));
}

// construct a cube at the given position
function cubeAt(list,w,l,h,dx,dy,dz,rx,ry,rz) {
  list.push(rotate([rx,ry,rz],cube({
      size: [w,l,h],
      center: true
  })).translate([dx, dy, dz+h/2]));
}

function lockholder() {
  h=9.6;
  hr=1.5;
  hd=2*hr;
  w=15.3;
  l=9.6;
  var parts = [];
  var holes = [];
  parts.push(cube({
    size: [w, l, h],
    center: true
  }).translate([0,0,h/2]));
  cylinderAt(holes,l,hr*1.1,-3.5,-2,0,0,0,0);
  cylinderAt(holes,l,hr,5.7,0,0,90,0,0);
  cylinderAt(holes,h,3,8,0,4.4,90,0,0);
  return difference(union(parts),union(holes));
}

// the joint for moving the lock
function lockjoint(height,w,wh,dx,dy) {
  var parts = [];
  var holes = [];
  hr=1.5;
  t=9
  h=t+1
  l=t-1
  ddy=-w/2+dy-5
  dzl=height/2-h/2
  ddx=dx+1
  cubeAt(parts,l,t,h,ddx,ddy,dzl,0,0,0);
  cylinderAt(holes,h,hr*1.1,ddx,ddy,dzl,0,0,0);
  return difference(union(parts),union(holes));
}

// the moving part
function lockmover(height,w,wh,dxw,dy) {
  var parts = [];
  var holes = [];
  r=54;
  rh=15;
  dz=-40
  dx2=5
  cubeAt(holes,r*2-dx2,w,2*r+20,-dx2/2,0,-r,0,0,0)
  for (zf=-1;zf<=1;zf+=2)
    cubeAt(holes,15,w,height,r-5,0,zf*height,0,0,0)
  cylinderAt(parts,w,r,0,0,dz/2,90,0,0)
  cylinderAt(holes,wh,rh,dxw,45.5,1,0,90,0)
  return difference(union(parts),union(holes));
}

// the handle for the lock
function lockhandle(height,w,wh,dx,dy) {
    var parts = [];
    var holes = [];
    lhh=6
    lhl=4
    lhw=22
    lhd=7
    ldx=dx+0.6
    ldz=height/2
    ldy=dy+lhd+1.8
    lockwidth=10
    lockdepth=lhh+3.5
    // 3 cubes for locking
    lhl2=lhl+1
    cubeAt(parts,lhh,lhw,lhl2,ldx,ldy,ldz-lhl2/2,0,0,0);
    cubeAt(parts,lhh,lhw-lhd,lhl2,ldx+lhh-1,ldy-5,ldz-lhl2/2,0,0,0);
    cubeAt(parts,lockdepth,lockwidth,lhl,ldx-lhh,ldy,ldz-lhl/2,0,0,0);
    // one cube for strength
    cl=10
    cubeAt(parts,cl,cl,cl,ldx,ldy-lhw/2-cl/2,ldz-cl/2,0,0,0);
    // cut off a bit
    rs=lhh
    cylinderAt(holes,wh,rs,dx-rs/2,dy+lhw,0,0,0,0)
    return difference(union(parts),union(holes));
}

// the lock itself
function lock() {
  var parts = [];
  var holes = [];
  // the height
  height=26.7
  w=69
  wh=25
  dx=44
  dy=13
  parts.push(lockjoint(height,w,wh,dx,dy));
  slh=6.5
  for (fz=-1;fz<=1;fz+=2)
    cylinderAt(holes,slh,10,dx-2.5,-26,fz*(slh+2.5)+height/2-3.5,0,0,0);
  parts.push(lockhandle(height,w,wh,dx,dy))
  parts.push(lockmover(height,w,wh,dx,dy))
  // spring
  sr=5.2
  sd=4.5
  sdx=dx+sd
  sdy=-w/2+dy+2*sr
  sdz=height/2-sr/2
  cylinderAt(holes,sd,sr  ,sdx,sdy,sdz,0,90,0,0)
  cylinderAt(parts,sd,sr+1,sdx,sdy,sdz,0,90,0,0)
  return difference(union(parts),union(holes));
}

function main() {
  return (rotate([0,90,0],lock()).translate([0,0,54]));
}

Hello, I think your design can be adapted to V2 syntax. Roughly you only need to change lines like
function main() {
return (rotate([0,90,0],lock()).translate([0,0,54]));
}

to
 const main = () => {
  return translate([0,0,54], rotate([0,90,0],lock()));
}

and start your script with requires like
 const jscad = require('@jscad/modeling')
const { curves, maths, extrusions, primitives, transforms, booleans,
	colors, geometries, measurements, utils } = jscad
const { bezier } = curves
const { slice, extrudeLinear } = extrusions
const { cuboid, polygon, polyhedron } = primitives
const { intersect, subtract,union } = booleans
const { center, scale, translateX, translateY, translateZ, translate
		,rotateX, rotateY, rotateZ, rotate } = transforms
const { colorize } = colors
const { geom3, poly3 } = geometries
const { vec3 } = maths
const { measureBoundingBox, measureArea } = measurements
const { degToRad } = utils

@WolfgangFahl I understand your frustration, as switching versions is sometimes scary, and often tedious task.
I have created a discussion page that explains a bit about how to migrate from V1 to V2 https://github.com/jscad/OpenJSCAD.org/discussions/883.
hope you convert more of your scripts to V2, feel free to ask more qustions if you  have issues doing that
also if you have a bit of patience try using your fav text editor, save file. drag drop on openjscad and use "auto reload"
I was doing so by converting your script to V2 and writing down important steps.
here is a version of your script that works in V2
const jscad = require('@jscad/modeling')
const { connectors, geometry, geometries, maths, primitives, text, utils, booleans, expansions, extrusions, hulls, measurements, transforms, colors } = jscad
const { cuboid, sphere, circle, star,cylinderElliptic, polyhedron, roundedRectangle, rectangle } = primitives
const { translate, scale, center } = transforms
const { union, subtract, intersect } = booleans
const { path2, geom2, geom3, poly2, poly3 } = geometries
const { slice, extrudeFromSlices, extrudeLinear, extrudeRectangular, extrudeRotate, project } = extrusions
const { mat4, line2, line3, vec2, vec3, vec4 } = maths

// to make this conversion to V2 easier, some functions are not importd, but implemented as compat layer

// rotate in V2 uses radinas instad of degrees
const rotate = (angles,...parts)=>transforms.rotate(angles.map(utils.degToRad), ...parts)
// in V2 cube is ony for actual cubes with all of the sides same size
const cube = (params)=>cuboid(params)
// change in parameter names for cylinder
const cylinder = ({h,r})=>primitives.cylinder({radius:r, height:h})
// difference is  subtract in V2
const difference = subtract

// title      : BikeCaseLock
// author     : Wolfgang Fahl
// license    : Apache License
// revision   : 0.0.3
// tags       : Bike,Lock
// file       : BikeCaseLock/main.jscad
// date       : 2020-04-06

// construct a cylinder at the given position
function cylinderAt(list,h,r,dx,dy,dz,rx,ry,rz) {
  list.push(translate([dx, dy, dz+h/2], rotate([rx,ry,rz],cylinder({
      h: h,
      r:r,
  }))));
  // console.trace('cylinderAt',list[list.length-1],{h,r,dx,dy,dz,rx,ry,rz})
}

// construct a cube at the given position
function cubeAt(list,w,l,h,dx,dy,dz,rx,ry,rz) {
  list.push(translate([dx, dy, dz+h/2],rotate([rx,ry,rz],cube({
      size: [w,l,h],
  }))));
  // console.trace('cubeAt',list[list.length-1],{w,l,h,dx,dy,dz,rx,ry,rz})
}

function lockholder() {
  h=9.6;
  hr=1.5;
  hd=2*hr;
  w=15.3;
  l=9.6;
  var parts = [];
  var holes = [];
  parts.push(translate([0,0,h/2],cube({
    size: [w, l, h],
  })));
  cylinderAt(holes,l,hr*1.1,-3.5,-2,0,0,0,0);
  cylinderAt(holes,l,hr,5.7,0,0,90,0,0);
  cylinderAt(holes,h,3,8,0,4.4,90,0,0);
  // return [parts,colors.colorize([1,0,0,0.5],holes)]
 return difference(union(parts),union(holes));
}

// the joint for moving the lock
function lockjoint(height,w,wh,dx,dy) {
  var parts = [];
  var holes = [];
  hr=1.5;
  t=9
  h=t+1
  l=t-1
  ddy=-w/2+dy-5
  dzl=height/2-h/2
  ddx=dx+1
  cubeAt(parts,l,t,h,ddx,ddy,dzl,0,0,0);
  cylinderAt(holes,h,hr*1.1,ddx,ddy,dzl,0,0,0);
  // return [parts,colors.colorize([1,0,0,0.5],holes)]
  return difference(union(parts),union(holes));
}

// the moving part
function lockmover(height,w,wh,dxw,dy) {
  var parts = [];
  var holes = [];
  r=54;
  rh=15;
  dz=-40
  dx2=5
  cubeAt(holes,r*2-dx2,w,2*r+20,-dx2/2,0,-r,0,0,0)
  for (zf=-1;zf<=1;zf+=2)
    cubeAt(holes,15,w,height,r-5,0,zf*height,0,0,0)
  cylinderAt(parts,w,r,0,0,dz/2,90,0,0)
  cylinderAt(holes,wh,rh,dxw,45.5,1,0,90,0)
  // return [parts,colors.colorize([1,0,0,0.5],holes)]
  return difference(union(parts),union(holes));
}

// the handle for the lock
function lockhandle(height,w,wh,dx,dy) {
    var parts = [];
    var holes = [];
    lhh=6
    lhl=4
    lhw=22
    lhd=7
    ldx=dx+0.6
    ldz=height/2
    ldy=dy+lhd+1.8
    lockwidth=10
    lockdepth=lhh+3.5
    // 3 cubes for locking
    lhl2=lhl+1
    cubeAt(parts,lhh,lhw,lhl2,ldx,ldy,ldz-lhl2/2,0,0,0);
    cubeAt(parts,lhh,lhw-lhd,lhl2,ldx+lhh-1,ldy-5,ldz-lhl2/2,0,0,0);
    cubeAt(parts,lockdepth,lockwidth,lhl,ldx-lhh,ldy,ldz-lhl/2,0,0,0);
    // one cube for strength
    cl=10
    cubeAt(parts,cl,cl,cl,ldx,ldy-lhw/2-cl/2,ldz-cl/2,0,0,0);
    // cut off a bit
    rs=lhh
    cylinderAt(holes,wh,rs,dx-rs/2,dy+lhw,0,0,0,0)
    // return [parts,colors.colorize([1,0,0,0.5],holes)]
    return difference(union(parts),union(holes));
}

// the lock itself
function lock() {
  var parts = [];
  var holes = [];
  // the height
  height=26.7
  w=69
  wh=25
  dx=44
  dy=13
  parts.push(lockjoint(height,w,wh,dx,dy));
  slh=6.5
  for (fz=-1;fz<=1;fz+=2)
    cylinderAt(holes,slh,10,dx-2.5,-26,fz*(slh+2.5)+height/2-3.5,0,0,0);
  parts.push(lockhandle(height,w,wh,dx,dy))
  parts.push(lockmover(height,w,wh,dx,dy))
  // spring
  sr=5.2
  sd=4.5
  sdx=dx+sd
  sdy=-w/2+dy+2*sr
  sdz=height/2-sr/2
  cylinderAt(holes,sd,sr  ,sdx,sdy,sdz,0,90,0,0)
  cylinderAt(parts,sd,sr+1,sdx,sdy,sdz,0,90,0,0)
  // return [parts,colors.colorize([1,0,0,0.5],holes)]
  return difference(union(parts),union(holes));
}

function main() {
  // let ret = lock()
  // console.log(ret);
  // return ret;
  return translate([0,0,54], rotate([0,90,0],lock()));
}

module.exports = {main}

and again no issue tracker no link to the github repository - no link to these discussions.

Both Discord Community and Open Issue links have been added to the latest version of the WEB UI at openjscad.xyz

Great. I still think github discussion should be more prominent. The legacy forum is IMHO awkward to use.

For me the forum is not that bad, but email notifications are not going through, so I have to repeatedly open the forum to see if there is something new :(

@WolfgangFahl please open this again if there are outstanding issues. It seems that all the documentation issues have been addressed, and a discussion has been added to assist those converting from V1 to V2.

See http://nicescad.bitplan.com/ and https://ochafik.com/openscad2/ for a much simpler approaches that are possible these days.

@WolfgangFahl  those are openscad, not openjscad, I am sure openscad users will be more interested in those.
We are aware that there are much more things that could be done to make jscad better, and our time is limited so we are making changes anytime we can.
I will disagree with your observation that those two pages show anything of: "much simpler approaches".
It is very easy to be a critic, let me show you.

your link does not even stretch with the browser :P
I am petty, and will argue, but I am also open to cooperation if in time in the future there will be overlap and integrations with openscad. you can join discord https://discord.gg/AaqGskur93 there is also an openscad channel on cadhub server

@hrgdavor thx for the feedback. I'll not put the current state of nicescad into the front row (yet). http://www.implicitcad.org/editor is e.g. a project that has already 1.2 k stars - all these project IMHO focus too much on technology and not enough on e.g. interoperability. Having many options on the hand is a benefit. So we have to balance.

@WolfgangFahl That is exactly the same reason I prefer openjscad. I prefer to code in Javascript, regardless how much better is openscad, the special language used there is just too freaky to me.


1.8.4 source tarball has changed over time

See https://github.com/Homebrew/homebrew-core/pull/31767
The sources at https://github.com/bower/bower/archive/v1.8.4.tar.gz have seen their content change: the original SHA-256 checksum of the tarball was ed4719fa1131dae285de3a013332756ec39f28bc38ec778bc777d74e935163c5 (as recorded in Homebrew at the time we merged the new version), but currently it is 62a6f019638e2a1628d2434a3c62cb62f8d88528fee9abaf6199d203e68cffbc.
Can you confirm that the file was willingly replaced? I.e. that it is not a malicious change. Thanks!

No, nothing was willingly replaced. I wonder what are the changes

tbh. I thought npm is preventing any changes to already published artifacts. If anything this can be attack on npm side, not bower side :/ i.e. Even if I wanted to, I can't replace this tarball.

Indeed current version has sha256 62a6f019638e2a1628d2434a3c62cb62f8d88528fee9abaf6199d203e68cffbc does somebody have old version of this tarball?

Oh I get it, this is github artifact, not npm artifact.
Well I couldn't reproduce sha of old tarball, but there were no changes in repository since I've commited it (all git shas are the same on my computer and in github repository), and there are no changes in tarball compared to 1c15deadc035714a8911a81807ec1e25d6e27683 that was published.
Maybe I might have force pushed tag soon after release because it was on wrong commit (I don't remember it was long time ago), but it seems it's good now.
Hope it helps

or maybe homebrew had wrong sha all along

Maybe I might have force pushed tag soon after release because it was on wrong commit

That's possible.

or maybe homebrew had wrong sha all along

Our CI doesn't allow to commit a change without the checksums being automatically verified, so that's more unlikely.


Cannot able to connect to the metamask with WalletConnectSwiftV2

Describe the bug :
I have generated the wallet connect URL using the below function.
func generateQRCode() async {
self.toggleLoader(true)
let url: WalletConnectURI?
url = await generateConnectionURL()
if let connectionUrl = url {
let qrCode = self.generateQRCode(from: connectionUrl.absoluteString)
self.qrCodeImageView.image = qrCode
self.connectUrl = connectionUrl.absoluteString
}
self.toggleLoader(false)
}
func generateConnectionURL() async -> WalletConnectURI {
var connectionURL = try! await Pair.instance.create()
return connectionURL
}
SDK Version
Client: Swift
Swift Verison: 5
iOS Version: 14
To Reproduce:
Add the generateQRCode function to create the new QR code for the wallet connect and scan using the meta mask in the device to connect the wallet
Expected behavior :
But while scanning the QR code generated from the above able to connect with metamask.

@gowtham-calib hey, what are trying to achieve? I see that you're using Sample Dapp that functionality is pretty limited.
Look's like DApp that you're building not supports Metamask's required namespaces.
I would recommend to use our Web3Modal (example SelectChainViewController line 74) or use pure Sign API to setup dapp client.

Hi @flypaper0
I could see Web3Modal is not implemented iOS yet.
We are trying to achieve is connect the wallet with our application like Dapp, any wallet like Metamask, trust wallet, or rainbow wallet.
To make trigger the transaction from our ios application to the wallets and sign the wallet and update the transaction status in our application.
let us know, how to proceed further with the implementation of the above.

Any updates on this issue? I'm getting a very similar issue on my end as well.

Pinging @flypaper0 for more info on this. I am getting a very similar error shown here:
error in connection_block_invoke_2: Connection invalid
[PROPOSER] Connecting to a pairing...
 [SignClient.swift]: Connecting Application - connect(requiredNamespaces:optionalNamespaces:sessionProperties:topic:) - line: 215 - 2023-09-20 19:05:33
 [AppProposeService.swift]: Propose Session on topic: fcae40b9e85880859aef47e36c2966da4464dbf49959515548dffed5b9110da7 - propose(pairingTopic:namespaces:optionalNamespaces:sessionProperties:relay:) - line: 28 - 2023-09-20 19:05:33
RPCRequest
{"id":1695251133538928,"jsonrpc":"2.0","error":{"message":"Unsupported chains.","code":5100}}
RPCResponse
 [ApproveEngine.swift]: Session Proposal has been rejected - handleSessionProposeResponseError(payload:) - line: 264 - 2023-09-20 19:05:39
Reason(code: 5100, message: "Unsupported chains.")

Here's the entire code:
import WalletConnectSign
import WalletConnectModal
import WalletConnectNotify
import SwiftUI
import Combine
import Starscream

struct AccountDetails {
    let chain: String
    let methods: [String]
    let account: String
}

struct Chain {
    let name: String
    let id: String
}

class WalletConnectViewModel: ObservableObject {
    @Published var session: Session? = nil
    @Published var accountDetails: [AccountDetails] = []

    let chains = [
        Chain(name: "Ethereum", id: "eip155:1"),
        Chain(name: "Polygon", id: "eip155:137"),
        Chain(name: "Solana", id: "solana:4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ")
    ]

    private var cancellables = Set<AnyCancellable>()

    init() {
        let metadata = AppMetadata(
            name: "WalletConnectTest",
            description: "Wallet Connect Test App",
            url: "wallet.connect",
            icons: ["https://avatars.githubusercontent.com/u/37784886"]
        )

        Networking.configure(projectId: "INSERT-PROJECT-ID-HERE", socketFactory: DefaultSocketFactory())
        WalletConnectModal.configure(projectId: "INSERT-PROJECT-ID-HERE", metadata: metadata)

        self.addSubscribers()

        if let session = Sign.instance.getSessions().first {
            self.session = session
        }
    }

    public func presentWalletConnectModal() {
        print("[PROPOSER] Connecting to a pairing...")
        let namespaces: [String: ProposalNamespace] = [
            "eip155:1": ProposalNamespace(
                methods: [
                    "eth_sendTransaction",
                    "personal_sign",
                    "eth_signTypedData"
                ],
                events: ["chainChanged", "accountsChanged"]
            )
        ]
        let sessionProperties: [String: String] = [
            "caip154-mandatory": "true"
        ]

        Task {
            WalletConnectModal.set(sessionParams: .init(
                requiredNamespaces: namespaces,
                optionalNamespaces: nil,
                sessionProperties: sessionProperties
            ))
        }

        WalletConnectModal.present()
    }

    private func addSubscribers() {
        Sign.instance.sessionSettlePublisher
            .receive(on: DispatchQueue.main)
            .sink { [weak self] (returnedSession) in
                guard let self = self else { return }
                self.session = returnedSession
            }
            .store(in: &cancellables)
    }
}

extension WebSocket: WebSocketConnecting { }

struct DefaultSocketFactory: WebSocketFactory {
    func create(with url: URL) -> WebSocketConnecting {
        return WebSocket(url: url)
    }
}

Pinging @flypaper0 for more info on this. I am getting a very similar error shown here:
[PROPOSER] Connecting to a pairing...
 [SignClient.swift]: Connecting Application - connect(requiredNamespaces:optionalNamespaces:sessionProperties:topic:) - line: 215 - 2023-09-20 19:10:58
 [AppProposeService.swift]: Propose Session on topic: e243c40db9732f8133c8d71c6627dd678fdede5931414f53fb70d9b542f26927 - propose(pairingTopic:namespaces:optionalNamespaces:sessionProperties:relay:) - line: 28 - 2023-09-20 19:10:58
RPCRequest
{"id":1695251458083152,"jsonrpc":"2.0","error":{"message":"Unsupported namespace key.","code":5104}}
RPCResponse
 [ApproveEngine.swift]: Session Proposal has been rejected - handleSessionProposeResponseError(payload:) - line: 264 - 2023-09-20 19:11:03
Reason(code: 5104, message: "Unsupported namespace key.")
 [SignClient.swift]: Connecting Application - connect(requiredNamespaces:optionalNamespaces:sessionProperties:topic:) - line: 215 - 2023-09-20 19:11:03
 [AppProposeService.swift]: Propose Session on topic: a079e1be9855ec4b403271ca8df77fb6d3b1922bc3545dd85e95fac3099c1eca - propose(pairingTopic:namespaces:optionalNamespaces:sessionProperties:relay:) - line: 28 - 2023-09-20 19:11:03

Here's the entire code:
import WalletConnectSign
import WalletConnectModal
import WalletConnectNotify
import SwiftUI
import Combine
import Starscream

struct AccountDetails {
    let chain: String
    let methods: [String]
    let account: String
}

class WalletConnectViewModel: ObservableObject {
    @Published var session: Session? = nil
    @Published var accountDetails: [AccountDetails] = []

    private var cancellables = Set<AnyCancellable>()

    init() {
        let metadata = AppMetadata(
            name: "WalletConnectTest",
            description: "Wallet Connect Test App",
            url: "wallet.connect",
            icons: ["https://avatars.githubusercontent.com/u/37784886"]
        )

        Networking.configure(projectId: "INSERT-PROJECT-ID-HERE", socketFactory: DefaultSocketFactory())
        WalletConnectModal.configure(projectId: "INSERT-PROJECT-ID-HERE", metadata: metadata)

        self.addSubscribers()

        if let session = Sign.instance.getSessions().first {
            self.session = session
        }
    }

    public func presentWalletConnectModal() {
        print("[PROPOSER] Connecting to a pairing...")
        let namespaces: [String: ProposalNamespace] = [
            "eip155:1": ProposalNamespace(
                methods: [
                    "eth_sendTransaction",
                    "personal_sign",
                    "eth_signTypedData"
                ],
                events: ["chainChanged", "accountsChanged"]
            )
        ]
        let sessionProperties: [String: String] = [
            "caip154-mandatory": "true"
        ]

        Task {
            WalletConnectModal.set(sessionParams: .init(
                requiredNamespaces: namespaces,
                optionalNamespaces: nil,
                sessionProperties: sessionProperties
            ))
        }

        WalletConnectModal.present()
    }

    private func addSubscribers() {
        Sign.instance.sessionSettlePublisher
            .receive(on: DispatchQueue.main)
            .sink { [weak self] (returnedSession) in
                guard let self = self else { return }
                self.session = returnedSession
            }
            .store(in: &cancellables)
    }
}

extension WebSocket: WebSocketConnecting { }

struct DefaultSocketFactory: WebSocketFactory {
    func create(with url: URL) -> WebSocketConnecting {
        return WebSocket(url: url)
    }
}

Please change your code in this way .. Than it will connect
`    let namespaces: [String: ProposalNamespace] = [
"eip155": ProposalNamespace(
chains: [
Blockchain("eip155:1")!
],
methods: [
"eth_sendTransaction",
"personal_sign"
], events: []
)
]
let sessionProperties: [String: String] = [
  "caip154-mandatory": "true"
]

Task {
  WalletConnectModal.set(sessionParams: .init(
    requiredNamespaces: namespaces,
    optionalNamespaces: [:],
    sessionProperties: sessionProperties
  ))
}

WalletConnectModal.present()`

In short:

required namespaces: Namespaces that MUST be provided for correct work. DApp not able to work property without it
optional namespaces: Namespaces that COULD be provided but not required

@gowtham-calib Sorry for long response did you solved issue ?


Do we need to keep 21 instead of 20 frames?

@hannahbaumann I'm writing the data retention policy and I wanted to check something - do we need to keep 20 frames or 21?
Rough thinking: "we need to keep both the first and last frame"
For a 5 ns trajectory that would be:
0, 0.25, 0.5, 0.75, 1 (5 frames)
1.25, 1.5, 1.75, 2 (4 frames)
.. 3 (4 frames)
.. 4 (4 frames)
.. 5 (4 frames)
Totalling 21 frames?
Similarly for a 20 ns trajectory sampling every 1 ns, that should be 21 frames right?

I just realized that dividing by 21 would have it extract every 238th frame. Is that ok or should we extract a frame every 250 ps and then also save the last frame such that it is 21 frames in total?

I just realized that dividing by 21 would have it extract every 238th frame. Is that ok or should we extract a frame every 250 ps and then also save the last frame such that it is 21 frames in total @IAlibay ?

That's a good point, let me have a bit of think over lunch.


Uncaught TypeError: element.addEventListener is not a function

[Enter steps to reproduce below:]

...
...

Atom Version: 1.1.0
System: Mac OS X 10.10.4
Thrown From: jshint package, v1.8.3
Stack Trace
Uncaught TypeError: element.addEventListener is not a function
At /Applications/Atom.app/Contents/Resources/app.asar/src/delegated-listener.js:36

TypeError: element.addEventListener is not a function
  at listen (/Applications/Atom.app/Contents/Resources/app.asar/src/delegated-listener.js:36:11)
  at [object Object].Tooltip.init (/Applications/Atom.app/Contents/Resources/app.asar/src/tooltip.js:83:28)
  at new Tooltip (/Applications/Atom.app/Contents/Resources/app.asar/src/tooltip.js:18:8)
  at TooltipManager.module.exports.TooltipManager.add (/Applications/Atom.app/Contents/Resources/app.asar/src/tooltip-manager.js:50:17)
  at addReasons (/Users/mersocarlin/.atom/packages/jshint/index.js:186:30)
  at displayError (/Users/mersocarlin/.atom/packages/jshint/index.js:206:2)
  at /Users/mersocarlin/.atom/packages/jshint/index.js:214:10
  at arrayEach (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/babel-core/node_modules/lodash/index.js:1289:13)
  at Function.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/babel-core/node_modules/lodash/index.js:3345:13)
  at displayErrors (/Users/mersocarlin/.atom/packages/jshint/index.js:213:4)
  at lint (/Users/mersocarlin/.atom/packages/jshint/index.js:293:2)
  at complete (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/babel-core/node_modules/lodash/index.js:7697:25)
  at delayed (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/babel-core/node_modules/lodash/index.js:7707:11)

Commands
     -1:09.6.0 grammar-selector:show (a.inline-block)
  2x -1:08.8.0 editor:split-selections-into-lines (a.inline-block)
     -1:05.4.0 grammar-selector:show (atom-text-editor.editor.is-focused)
     -1:02.9.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -1:02.4.0 core:save (atom-text-editor.editor.is-focused)
     -0:57.5.0 grammar-selector:show (atom-text-editor.editor.is-focused)
     -0:55.7.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:54.6.0 core:save (atom-text-editor.editor.is-focused)
  4x -0:42.4.0 editor:newline (atom-text-editor.editor.is-focused)
  2x -0:19.6.0 core:move-right (atom-text-editor.editor.is-focused)
     -0:14.6.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:14 core:move-down (atom-text-editor.editor.is-focused)
     -0:12 core:move-up (atom-text-editor.editor.is-focused)
  2x -0:05.1.0 core:move-right (atom-text-editor.editor.is-focused)
     -0:03.9.0 core:move-down (atom-text-editor.editor.is-focused)
  2x -0:02.8.0 editor:newline (atom-text-editor.editor.is-focused)

Config
{
  "core": {
    "themes": [
      "atom-material-ui",
      "one-dark-syntax"
    ]
  }
}

Installed Packages
# User
atom-beautify, v0.28.17
atom-material-ui, v0.8.0
color-picker, v2.0.13
css-snippets, v0.9.0
file-icons, v1.6.11
highlight-line, v0.11.0
javascript-snippets, v1.0.0
jshint, v1.8.3
language-babel, v2.3.1
language-javascript-jsx, v0.3.7
linter-jshint, v1.2.1
pretty-json, v0.4.1
react, v0.12.10
react-snippets, v0.2.0

# Dev
No dev packages

Please disable atom-jshint, restart atom, and re-enable atom-jshint.

Duplicate of #143.

disabling, restarting atom and re-enabling didn't fix the problem for me. However, uninstalling, restarting, then re-installing did the trick.


Improve experience of make verify

Fixes #453
Changes

Submitter Checklist

[ ] Includes tests if functionality changed/was added
[ ] Includes docs if changes are user-facing
[ ] Set a kind label on this PR
[ ] Release notes block has been filled in, or marked NONE

See the contributor guide
for details on coding conventions, github and prow interactions, and the code review process.
Release Notes

/approve

@MayukhSobo Since we get counterfeiter: No such file or directory in the CI. Can you have a look to update the CI config to install counterfeiter so that we can get the verify tests green?

/close
We appreciate the work - it looks like #870 includes this and other fixes to our verify script. Closing this as this PR now conflicts with the main branch.


 This gives us human-intelligible labels. Everyone knows what TP53 is, but almost no one immediately recognizes ENSG00000141510.
The challenge with HGNC is its relaxed approach to versioning and consistency. It appears to use a rolling release model of sorts. So changes can be made whenever, and they’re live immediately. All that gets recorded is the date of the last change.
Also, there are lots of statuses for gene symbols: approved, alias, previous, withdrawn. But there are no clear rules that govern the relationships between them. So one symbol could be an alias for another but also a previous symbol for a third.
Since we want HGNC gene symbols to be in our interface, it would be nice if the same symbols referred to the same genes across different datasets. But we need to let that goal go because it’s obviously impossible. For example, suppose we see the symbol “POP3” in a submission. POP3 is not an “approved symbol”, but it is an alias. Unfortunately, it’s an alias for three different approved symbols: PYCD5, POPDC3, and MLST8. So which one is it? Given that it’s not possible to do a perfect job of this, what can we do that would at least be helpful?
Suppose we’re given a dataset where the names of the features appear to be gene symbols. Also suppose we’ve downloaded a big table of all symbols from the HGNC biomart and use that as our frozen gene symbol database.
Each symbol in the dataset falls into one of five categories:

Category
Description

Approved
The symbol is currently an HGNC “Approved symbol”.

Upgradable
The symbol is not an approved symbol, but it is an alias or previous symbol for exactly one approved symbol.

Withdrawn
The symbol is withdrawn symbol, meaning “the gene has since been shown not to exist”

Ambiguous
The symbol is not an approved symbol, but it is an alias or previous symbol for multiple approved symbols.

Novel
The symbol is not present at all in HGNC.

To give a sense of how frequent these categories are, here’s how it breaks down for one recently submitted dataset with a total of 27072 symbols:

Category
Count

Approved
23774

Upgradable
1008

Withdrawn
36

Ambiguous
13

Novel
2241

So most symbols are fine, but around an eighth are not valid according to our schema.
Upgradable genes seem pretty straightforward: C6orf222 is now BNIP5, KIAA0430 is now MARF1, AARS is now AARS1, etc.
Withdrawn is a lot of microRNAs and uncharacterized loci, but also some genes like SPHAR which was shown to just be the UTR of another gene. Unfortunately, withdrawn and approved are not disjoint, for example EXT2 is approved and also an alias for the withdrawn EXT3.
Ambiguous is a small but difficult category with a bunch of symbols with no clear meaning. For example, NOV is not an approved symbol, but it is the previous symbol for CCN3 and an alias for RPL10 and PLXNA1.
Novel is mostly uncharacterized loci, read-throughs, pseudogenes, and lncRNAs.
Proposal

We should download a copy of all the HGNC symbols today, call it HGNC vMemorialDay2020 or whatever, and use that as our source of consistent gene symbols forever. Someday if it feels out of date, we can migrate forward, but we don't want the set of symbols changing continuously underneath us.
When we get a dataset with human gene symbols, we should relabel everything that is "upgradable" but leave all the other symbols alone. Even though it means Corpora datasets will have symbols that are not HGNC approved symbols, it's really the only thing we can do.

Would it be possible to use the HGNC REST API to write a maintenance utility (like a broken link checker) that was run on occasion to see if a symbol had changed state?

Yeah, they also expose that via form too: https://www.genenames.org/download/custom/
If you set your filter to gd_date_sym_change LIKE '%2020%' for example, you see the 60 or so that have been changed this year.

I was thinking about query by symbol present in our database and flagging its state if there was a change.

@mckinsel Once ready to close, could you add the tickets to the board that will be required to update the database/validation scripts to reflect the change please?


Execute Sounder SIPS L1b PGE as CWL workflow

Use L1b Docker image produced by U-ADS

Draft implementation created that uses a wrapper shell script to invoke papermill.

New implementation does not require a wrapper script, rather it invokes directly the Docker container for L1b built by the U-ADS team.


Can you add to a VSCode language's auto complete?

Apologies for posting a question here, I tried StackOverflow first - but it attracted only tumbleweed: https://stackoverflow.com/questions/46718122/can-you-add-to-a-vscode-languages-auto-complete
Is there a difference place which I can ask questions?
What I was looking for was:
We got a Ruby API for our application and I'm trying to figure out if I can make an extension for VSCode that add that insight to the Intellisense feature of the editor.
With RubyMine I've done this by simply using stubs packaged as a gem. Adding the gem to the RubyMine project is all that I needed to have the editor provide code insight that included our API.
How can this be done for VSCode? I was hoping to build upon the existing vscode-ruby extension for Code. But I'm only finding examples of adding language extensions.

Sorry, but this is not the right place for questions. Please post questions over at StackOverflow: http://stackoverflow.com/questions/tagged/vscode
Thanks for understanding.

Any suggestions to where to ask for help when StackOverflow doesn't yield any response?


I'm getting the error: "The name 'HelloWorld.Contents' doesn't exist in the current context'"

I have downloaded the sample hello world repo from Github, and opened with Visual studio 2019 community. But I get the above warning/error?

Ah. I get it too sometimes, but it doesn't get in the way of the code running. You should be able to still run the code even with this warning / error.
No clue as to why it happens.

It's a long standing issue with the .query.pq file that turned out to be a lot harder to fix than you'd expect. It shouldn't impact query evaluation.


Update documentation version to 2.0.4

As per title
cc @Narsil

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


Unnecessary checks in DataManager?

The DataManager class's methods contain a lot of code that looks like this:
std::vector<PopulationItem>
DataManager::get_population(const Country &country,
                            std::function<bool(unsigned int)> time_filter) const {
    auto results = std::vector<PopulationItem>();

    if (index_.contains("demographic")) {
        // [snip]
        } else {
            notify_warning(
                fmt::format("{} population file: '{}' not found.", country.name, filename));
        }
    } else {
        notify_warning("index has no 'demographic' entry.");
    }

    return results;
}

Now that we're checking the input file with a schema, we know that the index file will contain a demographic property, so this check is unnecessary. The only thing is that the current code would seem to suggest that this property is optional rather than required, though really I think it should be required. And we should def be throwing an error if the file can't be read!
@jamesturner246 Are you ok with me removing all these unnecessary checks?

Purge them. For the emperor!

Cool, I'll do that then.
Unfortunately I've just realised that the schema isn't enforcing the presence of these fields though: #403
I suppose I should fix that first!


Fix high memory consumption for queries with SQL subqueries

Steps to reproduce:

Create function written in sql language that optimizers can’t inline, e. g.:

create function f(a int) returns int
immutable
security definer
language sql as $$
  select case when $1 > 500 then 0 end;
$$;

Execute a query which executes this function multiple times

explain analyze verbose
select f(i) from generate_series(1, 1000000) i;

The query uses much more memory when gp_enable_gpperfmon=true than in the opposite case.

The reason of high memory consumption is memory allocation for two structures in CreateQueryDesc() and release of memory for only one of these structures in FreeQueryDesc(). This pair of functions is run every time when subquery is executed. The more times the subquery is executed, the more memory leaks.
The patch adds deallocation of the second structure after data in it is no longer needed.

may be instead of freeing more powerful is allocate only if needed?

may be instead of freeing more powerful is allocate only if needed?

It will be better, but will require adding a new bool argument to the CreateQueryDesc() function to allocate memory  or not depending on this argument. There will be significantly more code changes. If this is not critical, then I would change the memory allocation condition instead of adding deallocation

I mean allocate at first using if need

I mean allocate at first using if need

@RekGRpth, I'm not sure, that this patch will be easily accepted by the upstream, so let's fix the problem without wider refactoring.


Input refactoring and cleanup

Cleaned up the code a bit to simplify the various #if conditions
Added WM_ACTIVATE to Win32 Keyboard
Added Mouse::SetWindow and Keyboard::ProcessMessage methods for GameInput implementation to simplify integration instructions
Legacy Xbox One XDK support now requires April 2018, May 2018, or June 2018.

Test suite updates in this PR


Cannot deploy with 2 concurents pipeline

Describe the bug
the first pipeline cannot get serviceaccount on the target namespace on the deploy step
To Reproduce
push 2 times a repository with deploy step activated
Expected behavior
the first pipeline should be able to get the serviceaccount

we should add pipeline service account into role binding instead of replace


Issues with Metal and cuBLAS installation of llama cpp

The enforcer was successfully running on the CPU version of Llama cpp python. Upon installing the cuBLAS version for acceleration, it stopped producing outputs. I tested it with the Metal installation as well. The LLM responds to prompts without any issues when the format enforcer is not being used, it produces blank output when the format enforcer is enabled.
I ran the samples from this repo and the issue persists.

Update:
I tested the CPU and Metal versions of LLama-cpp-python on Mac M2 Max with same prompt.
When the LLM is generating tokens second time, This line returns True on the CPU version and returns False on the Metal version which forces it to stop prematurely

Problem is in llama not in this repo


error trying to use datatables on a collection of models BadMethodCallException with message 'Method Illuminate\Database\Query\Builder::getLogTextAttribute does not exist.'

Summary of problem or feature request
Hello everyone, i am trying to make a datatable of a model but went i try i got this error, i am using laravel 5.6.
Code snippet of problem
Psy Shell v0.8.18 (PHP 7.2.5-1+ubuntu16.04.1+deb.sury.org+1 — cli) by Justin Hileman

use DataTables
$resp= Datatables::collection(User::all())->make(true);
[!] Aliasing 'User' to 'App\User' for this Tinker session.
BadMethodCallException with message 'Method Illuminate\Database\Query\Builder::getLogTextAttribute does not exist.'

System details

Operating System ubuntu 16.04 64 bit
PHP Version 7.2
Laravel Version 5.5
Laravel-Datatables Version 8.0

You may have some mutators / appends on your user model that does not have a proper value. Try disabling the mutators first and check again?

Tried the same code on my local machine with output:
Psy Shell v0.9.6 (PHP 7.1.8 — cli) by Justin Hileman
>>> datatables(App\User::all())->toJson()
=> Illuminate\Http\JsonResponse {#4299
     +headers: Symfony\Component\HttpFoundation\ResponseHeaderBag {#4301},
     +original: [
       "draw" => 0,
       "recordsTotal" => 6,
       "recordsFiltered" => 6,
       "data" => [
         [
           "id" => "1",
           "email" =><EMAIL_ADDRESS>...

thanks for you repply the problem is that i need some like this
SELECT U.id,
last_log.created_at
FROM users AS U
LEFT JOIN
(
SELECT id,
MAX(created_at) AS created_at
FROM login_logs
GROUP BY id
) AS last_log
ON  last_log.id = U.id;
but i cant get the query

it worked i modify my user model and now work. Thanks


Added initial_hook and renamed finalize_hook to final_hook

This PR implements the suggestion made in #396 to add an initial_hook and rename finalize_hook to final_hook.

Looks good to me!
Not much here to review and I assume this will be ready for an immediate merge...

Fixing some docstrings, ready once those are pushed. Hopefully the Options Tutorial won't complain.

You can't just do self.finalize_hooks = self.final_hooks?

Could do but shouldn't we warn users that they should switch to self.final_hooks?

The original suggestion from Jean-Luc was "having an alias and eventually deprecating finalize_hooks", which I think is the right way to go about it.  I.e., immediately support the new way while making the old way continue to work, and then later deprecate the old way, in the following release.  Otherwise users have no time to update their code before they start seeing warnings, and thus they have to choose only a single HoloViews version for their code to support cleanly, which I think is unduly restrictive.

I just removed the deprecation warning, now only warning when finalize_hooks are being overridden by final_hooks.

Ok, tests are passing and looks ready to me. Merging.


[FEATURE] Display detailed info in volumes page

Is your feature request related to a problem? Please describe.

Users need to access Longhorn GUI to see volumes' state.
Describe the solution you'd like

It would be nice to expose volumes' state in Harvester GUI.
We can't tell if a volume is degraded in Harvester GUI:

There is more helpful info in Longhorn GUI. The GUI contains state, size, and actual size.

Describe alternatives you've considered

Additional context

Verified this feature has been implemented.
Test Information

Environment: Baremetal DL360 3 nodes
Harvester Version: v1.2.0-rc1
ui-source Option: External

Verify Steps

Install Harvester with any nodes
Follow https://github.com/harvester/dashboard/pull/735#issue-1721635040


How do I configure flyway with official GCP SQL connectors?

Which version and edition of Flyway are you using?
The latest enterprise version
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Command line
Which database are you using? (Type & version)
Cloud SQL postgres and mysql
Which operating system are you using?
Linux
What did you do? (Please include the content causing the issue, any relevant configuration settings, the SQL statement(s) that failed (if any), and the command you ran)
GCP officially supports connecting directly with Java which flyway is written in: https://cloud.google.com/sql/docs/postgres/connect-connectors#java
This would mean I don't need to provide private network access or run the proxy in a separate process.
Is this supported?

This should work, however you'll need to add some dependencies to the Flyway CLI since we don't ship them for Cloud SQL support. You can add these JARs to the drivers directory
You'll need to get com.google.cloud.sql:postgres-socket-factory and any of its transitive dependencies. You can get them from mvnrepository
You should then be able to follow the documentation on how to configure your URL
Closing till further activity


[move-prover] Add a check that opaque functions specs use modifies correctly.

Since the introduction of modifies a while ago we did not check whether an opaque function specification declares modifies for all the memory it updates. This is crucial because otherwise it can create unsoundness at caller sites where the post-condition is assumed and may postulate memory changes, which on the other hand without a modifies is assumed to be unchanged. Example:
module Bug {
 struct S has key { x: u64 }
 public fun update_S(addr: address) acquires S {
     borrow_global_mut<S>(addr).x = borrow_global_mut<S>(addr).x + 1;
 }
 spec fun update_S {
     pragma opaque = true;
     ensures global<S>(addr).x == old(global<S>(addr).x) + 1;
    // missing: modifies global<S>(addr);
 }
}

Now wherever we call update_S, we introduce unsoundness.
This PR adds a compile time check to detect the above situation. Around a dozen specifications in the framework started to fail with indeed missing modifies. Those have been added, but the specs might not be complete leading to multiple new timeouts in DiemAccount. Verification for those has been turned off but requires followup.
Motivation
Bug fix.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Existing tests
Related PRs
NA
If targeting a release branch, please fill the below out as well
NA

/land

:boom: Tests timed-out

/land


how to handle child-src in CSP?

frame-src is deprecated in favor of child-src
see:  https://developer.mozilla.org/en-US/docs/Web/Security/CSP/CSP_policy_directives
How do you think we should handle this? child-src is only implemented in CSP Level 2 and also covers web workers, so we can't simply replace frame-src.
Should we just allow both to operate independently?

For BC I guess we should allow both independently but disallow having both set? And if child-src is set I guess we should set frame-src to the same value for now until browsers caught up.

but webworkers are handled in child-src, but not frame-src, so you can't set them to the same value.

As far as I understand child-src covers frame-src+some stuff, so if we set both supporting browsers should only read child-src and the others will read frame-src no? Aren't they both just a list of allowed sources?

it's the + some stuff that i'm worried about, we can't set that in frame-src

Well I don't really see what could go wrong as both child-src and frame-src are just configured with a list of allowed sources. It just means that CSP1 browsers would allow your webworker urls to be used as iframes but this would happen in CSP2 browsers as well anyway as child-src encompasses both frames and webworkers.

Fixed by #84, to be released in version 2.0.0


Preserve the original source-level formatting when possible after exploding imports

This PR fixes issue https://github.com/liancheng/scalafix-organize-imports/issues/279.

Thanks for reporting and fixing this issue! Merging it 😃


🐛 Restrict range on Python version for _make_forward_ref

Reviewer, do you want to suggest a way to test this on the CI, or are we fine here?
Check https://github.com/pydantic/pydantic/discussions/6244#discussioncomment-6275458 for more information.

please review

Please add a comment linking to the issue comment you linked to above. Otherwise LGTM, I don't think we need to test this in CI.


cargo-watch: fix build on darwin

Description of changes
Fixes #269660
Borrowed fix from #195604

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Priorities
Add a :+1: reaction to pull requests you find important.

Please tag for 23.11 backport if approved.

@ofborg build cargo-watch


Add security on opentelemetry for vscode extension

@iffat-pullflow can you please assign the PR here.


regeneratorRuntime is not defined

I have found a similar topic here.
Refer : https://github.com/adi518/vue-facebook-login-component/pull/15
is regenerator-runtime actually needed for this componenent?

same problem here

It's using async/await syntax and apparently some consumers have issues with it. I need to try and look at this again, but for the time being it looks like there's a solution. I'm contemplating adding regenerator-runtime  as a peer dependency, but unless everyone has this issue, it might be redundant. Since I can't tell how many users experience this, we'll skip it for now.
As far as syntax goes, I'd probably try this, at the top of my main.js:
import "regenerator-runtime";


💡 [FEATURE] - <Add RainbowKit library in web 3>

Idea Contribution

[X] I have read all the feature request issues.
[X] I'm interested in working on this issue
[X] I'm part of GSSOC organization

Explain feature request
i want to Add RainbowKit library in web 3
Explain your solution
RainbowKit is a React library that makes it easy to add wallet connection to your dapp. It's intuitive, responsive and customizable.
Any alternative approaches/features
No response
Additional Context
No response

@jfmartinz   plz  review this hope its helpfull !!
https://github.com/jfmartinz/ResourceHub/pull/711


Consider Gitlab,BitBucket accounts  for Hacktoberfest2020  pull requests of openebs and  Litmus chaos Repos

Provide the authentication details of Gitlab ,BitBucket accounts of openebs mayadata for Hacktoberfest2020

@drraghavendra 14 @kmova please add relevant labels to this issue.

Signed-off-by  @drraghavendra<EMAIL_ADDRESS>

Signed-off by @drraghavendra<EMAIL_ADDRESS>

@drraghavendra - OpenEBS currently only supports GitHub. The process for contributoring can be found in https://github.com/openebs/openebs/blob/master/CONTRIBUTING.md
While we appreciate the feedback, the right channel to provide this feedback is via issue or slack message. So closing this PR.


Anonymous class obfuscation removes all the properties

Hello
I used the obfuscator with "HidePrivateApi" set to true.
In my code there are some anonymous classes that were obfuscated but the obfuscator removes all the property of the internal call and this create an exception in the compiled program.
There is a way to exclude anonymous classes from being obfuscated?
Thanks
D

Duplicate to #130

this worked for me:
<SkipType name="*AnonymousType*" skipProperties="true" skipMethods="true" skipFields="true" skipEvents="true" skipStringHiding="true" />


Add Alpine support

Please have a look at our extension that make the resulting jar files also work in an Alpine Linux container.
Changes:

Changed to name of the compile SQLite binary when compiling for Alpine (as not to conflict with normal x86_64 linux)
Added a small function in OSInfo.java that determines whether the code is running in an Alpine environment and uses the corresponding SQLite binary if this is the case.

Looking forward to your comments!

It looks great. Thanks for the contribution! I'll integrate alpine native lib.


Zip crash

Hi!
We are experiencing a crash after upgrading from 0.11.0(internal fork) to 0.13.0 in Zip operator.
We have created a demo project as a showcase, please take a look. It only contains a test case testExample.
Could you take a look @broadwaylamb?
OpenCombineTest.zip

The same code will not pass on Combine and will crash on OpenCombine.
A more simple case in Package form OpenCombineDemo.zip

The problem is no one is strongly ref the Zip.Inner, so it will dealloc at some point.
// Publishers.Zip.swift
public func receive<Downstream: Subscriber>(subscriber: Downstream) where
    UpstreamB.Failure == Downstream.Failure,
    Downstream.Input == (UpstreamA.Output, UpstreamB.Output)
{
    _ = Inner<Downstream>(downstream: subscriber, a, b)
}

Introduced by #222 and the question seems to be discussed at https://github.com/OpenCombine/OpenCombine/pull/109#discussion_r386874293
Could you help look at this? @MaxDesiatov


Decode display port traffic

https://github.com/jblance/mpp-solar/issues/224#issuecomment-1123166015

For 'investigative' purposes, on my display I'm presently showing 0.00 Amps, 13.1 Volts, error 9 and 0% SOC. Sorry I can't give you more meaningful data, the board is essentially just on the bench at the moment, it's not doing any actual work.

ScreenCapture9600.txt

Identify SOF and EOF

@EasilyBoredEngineer Could you help to identify the start byte and end byte of a display frame by timing? It's hard to guess. :-)

display port protocol:
http://www.jk-bms.com/en/Upload/2023-12-05/1556482191.pdf

# Offset  Content                                 Type     Unit    Remarks
#  0      Battery voltage                        UINT16    10mV
#  2      Battery current                         INT16    0.1A
#  4      Reserved                               UINT16    -
#  6      State of charge                        UINT16    %
#  8      Maximum pressure difference            UINT16    mV
# 10      MOSFET temperature                      INT16    ℃
# 12      Battery temperature                     INT16    ℃
# 14      System warning                         UINT16    -       0: no alarm, 1: alarm
# 16      Cell average voltage                   UINT16    mV
# 18      Balanced switch state                  UINT16    -       0: close, 1: open
# 20      Charging MOS status                    UINT16    -       0: close, 1: open
# 22      Discharging MOS status                 UINT16    -       0: close, 1: open
# 24      Cell voltages[24]                   24*UINT16    mV
# 72      Single unit over-discharge alarm       UINT16    -       0: no alarm, 1: alarm
# 74      Cell overcharge alarm                  UINT16    -       0: no alarm, 1: alarm
# 76      Overcurrent alarm                      UINT16    -       0: no alarm, 1: alarm
# 78      MOS over temperature alarm             UINT16    -       0: no alarm, 1: alarm
# 80      Battery over temperature alarm         UINT16    -       0: no alarm, 1: alarm
# 82      Short circuit alarm                    UINT16    -       0: no alarm, 1: alarm
# 84      Co-handling communication exceptions   UINT16    -       0: no alarm, 1: alarm
# 86      Balance line resistance is too large   UINT16    -       0: no alarm, 1: alarm
# 88      The number of strings does not match   UINT16    -       0: no alarm, 1: alarm

# Frame structure

0xA5 0x5A  # Frame header
0x5D       # Data length (fixed / always 93 bytes)
0x82       # Frame type (fixed, it's always the status frame)
0x10 0x00  # Address
... 90 bytes data ...
+ Checksum?

I would be happy about a traffic capture. I could provide some instructions how to sniff the traffic between the BMS and the display using an ESP + RS485 module.

Unfortunately, the display port and CAN port are both one-way, which means it can only receive BMS data but cannot send control instructions.

If you remove the RS485 chip, connect RO to B and DI to A, the RS485 function of the display port becomes a 5V level uart port. A=uart tx B= uart RX.

Today I tried to capture display data. According manual the protocol parameters are 2400bps, RS485, pins according https://github.com/syssi/esphome-jk-bms/blob/main/docs/display-port.md. It worked perfectly.
Captured data:
EXPORT3.hex.zip
Decoded data:
b'\xa5Z' -23206
b']\x82' 23938
b'\x10\x00' 4096
b'\nw' 2679
b'\xff\xf8' -8
b'\x00\x02' 2
b'\x008' 56
b'\x00\x01' 1
b'\x00\x18' 24
b'\x00\x16' 22
b'\x00\x01' 1
b'\r\x15' 3349
b'\x00\x01' 1
b'\x00\x01' 1
b'\x00\x01' 1
b'\r\x15' 3349
b'\r\x15' 3349
b'\r\x15' 3349
b'\r\x15' 3349
b'\r\x15' 3349
b'\r\x15' 3349
b'\r\x15' 3349
b'\r\x16' 3350
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0
b'\x00\x00' 0

Today I tried to capture display data.

I noticed that there are several data blocks that start with "A5 5A". I counted 27 such blocks.

A5 5A 03 80 01 00
A5 5A 5D 82 10 00 0A 72 00 00 00 03 00 63 00 01 00 1F 00 1D 00 01 0D 0F 00 01 00 01 00 01 0D 10 0D 0F 0D 0F 0D 0F 0D 0F 0D 0F 0D 10 0D 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
A5 5A 05 82 20 03 F8 00
A5 5A 05 82 20 13 07 E0
A5 5A 05 82 20 23 07 E0
A5 5A 05 82 20 33 07 E0
A5 5A 05 82 20 43 00 1F
A5 5A 05 82 20 53 07 E0
A5 5A 05 82 20 63 07 E0
A5 5A 05 82 20 73 07 E0
A5 5A 05 82 20 83 00 00
A5 5A 05 82 20 93 00 00
A5 5A 05 82 20 A3 00 00
A5 5A 05 82 20 B3 00 00
A5 5A 05 82 20 C3 00 00
A5 5A 05 82 20 D3 00 00
A5 5A 05 82 20 E3 00 00
A5 5A 05 82 20 F3 00 00
A5 5A 05 82 21 03 00 00
A5 5A 05 82 21 13 00 00
A5 5A 05 82 21 23 00 00
A5 5A 05 82 21 33 00 00
A5 5A 05 82 21 43 00 00
A5 5A 05 82 21 53 00 00
A5 5A 05 82 21 63 00 00
A5 5A 05 82 21 73 00 00
A5 5A 05 82 21 83 00 00
A5 5A 2B 82 13 00 00 05 0A D7 00 00 00 00 00 00 00 00 00 00 0D 10 0D 10 0D 0F 00 08 00 00 00 34 00 1D 00 01 00 1F 00 01 00 01 00 01 00 01

A5 5A 5D 82 10 00 0A 72 00 00 00 03 00 63 00 01 00 1F 00 1D 00 01 0D 0F 00 01 00 01 00 01 0D 10 0D 0F 0D 0F 0D 0F 0D 0F 0D 0F 0D 10 0D 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
       |  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
       data_len: 93 bytes

A5 5A 05 82 20 33 07 E0
       |  1  2  3  4  5
       data_len: 5

A5 5A 2B 82 13 00 00 05 0A D7 00 00 00 00 00 00 00 00 00 00 0D 10 0D 10 0D 0F 00 08 00 00 00 34 00 1D 00 01 00 1F 00 01 00 01 00 01 00 01
       |  1  2  3  4  5  6 7  8   9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
       data_len: 43 bytes

A5 5A 2B 82 13 00 00 05 0A D7 00 00 00 00 00 00 00 00 00 00 0D 10 0D 10 0D 0F 00 08 00 00 00 34 00 1D 00 01 00 1F 00 01 00 01 00 01 00 01
|  1  2  3  4  5  6 7  8   9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
data_len: 43 bytes

Is there a decryption of this block? I assume that with an offset of 0x02(byte 6,7 UINT 0.1Ah), Remain Capacity is located here.

Hmm.. I don't know. Do you have a JK-BMS and a display attached to capture some day and provide the screen content as reference? There is just the description of the address 0x1000 frame at the PDF document above. A description of address 0x1300 is missing.
@blacklopo Do you remember how many cell where attached to your test setup above?

A5 5A 5D 82 10 00 0A 72 00 00 00 03 00 63 00 01 00 1F 00 1D 00 01 0D 0F 00 01 00 01 00 01 0D 10 0D 0F 0D 0F 0D 0F 0D 0F 0D 0F 0D 10 0D 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
       |  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
       data_len: 93 bytes

A5 5A 05 82 20 33 07 E0
       |  1  2  3  4  5
       data_len: 5

A5 5A 2B 82 13 00 00 05 0A D7 00 00 00 00 00 00 00 00 00 00 0D 10 0D 10 0D 0F 00 08 00 00 00 34 00 1D 00 01 00 1F 00 01 00 01 00 01 00 01
       |  1  2  3  4  5  6 7  8   9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
       data_len: 43 bytes

Just wondering if those shorter datasets are a subset of the full 90 bytes, to support other minimalistic displays.
I havent digged into it, but is there 5 sequential usefull bytes at it's corresponding offset.
I have a JK BMS and Display. Can provide a capture of the oneway simplex RS232 signal (inside the Display), when I get it all connected.

I've implemented a simple decoder here: https://github.com/syssi/esphome-jk-bms/pull/572
Just to get an better idea of the payloads.

@michael9dk Cool! I would be happy about some more traffic examples including photos what the display is showing.

# Offset  Content                                 Type     Unit    Remarks
#  0      Battery voltage                        UINT16    10mV
#  2      Battery current                         INT16    0.1A
#  4      Reserved                               UINT16    -
#  6      State of charge                        UINT16    %
#  8      Maximum pressure difference            UINT16    mV
# 10      MOSFET temperature                      INT16    ℃
# 12      Battery temperature                     INT16    ℃
# 14      System warning                         UINT16    -       0: no alarm, 1: alarm
# 16      Cell average voltage                   UINT16    mV
# 18      Balanced switch state                  UINT16    -       0: close, 1: open
# 20      Charging MOS status                    UINT16    -       0: close, 1: open
# 22      Discharging MOS status                 UINT16    -       0: close, 1: open
# 24      Cell voltages[24]                   24*UINT16    mV
# 72      Single unit over-discharge alarm       UINT16    -       0: no alarm, 1: alarm
# 74      Cell overcharge alarm                  UINT16    -       0: no alarm, 1: alarm
# 76      Overcurrent alarm                      UINT16    -       0: no alarm, 1: alarm
# 78      MOS over temperature alarm             UINT16    -       0: no alarm, 1: alarm
# 80      Battery over temperature alarm         UINT16    -       0: no alarm, 1: alarm
# 82      Short circuit alarm                    UINT16    -       0: no alarm, 1: alarm
# 84      Co-handling communication exceptions   UINT16    -       0: no alarm, 1: alarm
# 86      Balance line resistance is too large   UINT16    -       0: no alarm, 1: alarm
# 88      The number of strings does not match   UINT16    -       0: no alarm, 1: alarm

80 includes alarm for Charge under-temperature protection. It triggers wether charging or not.

Thanks for your feedback! Do you use the decoder and could you provide some raw traffic?

I'm not using esphome/decoder.
Finally got the battery and bms mounted. Will make a raw capture when I switch from the 2" LCD Display to a custom board.

Resolved by https://github.com/syssi/esphome-jk-bms/pull/572


Fix use of MethodHandle on web methods which were accidentally static

Corrects a regression in #96 caught by tests in https://github.com/jenkinsci/jenkins/pull/2722. This code in the CVS plugin is a mistake, but was apparently tolerated before.
@reviewbybees esp. @i386

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.


#207: Calendars Page

Prototype
This implements /calendars route and closes #207

@Restuta what else need to be done here?

Conflicts and overall it’s not “production ready”, design is not great haven’t tested if it’s responsive, etc.


Can't change variant in command mode

I have macOS configured to change to dark mode at night (auto).
I've set set -g @rose_pine_variant 'dawn' in my tmux.conf.
I understand that you can't set variant to auto and have tmux autodetect the screen mode as you can in Ex. Wezterm.
I did however expect that I could change variant using command mode ( C-b : ) but It doesn't work for me.
How do I change it?

I mean, it COULD be done with environment variables. The thing is, the theme wasn't created with hot-reload between variants, so I would neeed to test out ways to make it reload itself :thinking:
You can maybe unset the option in you .tmux.conf and have a shell script that runs on shell startup the command ↓
tmux set -g @rose_pine_variant '<whatever variant'
tmux source ~/.tmux.conf

This sorta works :)


Remove bad depends_on which broke module destroy

It looks like the depends_on here was accidental and it broke the terraform destroy command for me.

@madmod what error did you get when the depends_on was in place? I've run it numerous times in the example without any errors on destroy.
How are you using the module? I wonder if the name of your module is aliasing with this modules internal module named nat-gateway.
The depends_on exists so that the route is created after the instance has been created so that traffic is only rerouted through the nat instance when it's actually up. So I'd like to keep it there if possible. Maybe just renaming the internal module from nat-gateway to nat-gateway-module-internal will help.


final release

@bwplotka , @simonpasquier @brancz @brian-brazil @juliusv @SuperQ @codesome @csmarchbanks

I tested the fix which is basically #5888.

you miss #6085?

added now

:+1:


TypeError: vars() argument must have dict attribute

When having an exception, the call to vars(value).items() fails with an exception in inspector.py at line 42:

Traceback (most recent call last):
File "/home/cx42/www/getfernand.com/api/env/lib64/python3.10/site-packages/tracerite/inspector.py", line 42, in extract_variables
for n, v in vars(value).items():
TypeError: vars() argument must have dict attribute

I presume this was on an object that has __slots__ (there are many of those in Sanic). That case at least is fixed as soon as we get that PR released.

Can you try the PR to see if it resolves the issue?
pip install "git+https://github.com/sanic-org/tracerite.git@inspector-vars#egg=tracerite"


Latest insomnia

Description
Auf dem Branch hier soll immer der aktuelle Stand von Insomnia sein (inklusive experimental features), ab und an kann man dann auf main mergen nach einem größeren PR.
Fixes # (issue reference, if applicable)
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.

[ ] Locally tested the according endpoints
[ ] Ran E2E-Tests

Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation

was sind denn hier für komische changes drin

Is iwie verbugged, hab n neuen Branch


feat add toggle button to force activate deactivate

Add a button in the navigation to active/desactive magic-json on current file.
It's based on my previous branch: feat/dg/add-toggle-button-to-force-activate-deactivate

Hello @damieng57
I merged your previous PR. Can you rebase so that we can have a clear view of what's changed?
Note that I migrated to bun, so there may be some conflicts on the package.json file, scripts updated and indentation is different.
Other than that, can you share a gif to see what this PR will provide?

I added your last changes and update features.gif

Wow, that looks really good. Thank you for your efforts @damieng57

v1.0.3 is now published


License?

Very interesting paper!
But I don't see any licensing information in this project, which restricts any/all potential applications.
Could you please add a license to the project?

Thanks for letting me know!
I added a MIT LICENSE to this repo.


block math render is strange

Issue Type: Bug
build in markdown math render

code
that is build-in render
that is MPE extension

VS Code version: Code - Insiders 1.65.0-insider (921264bfe3ffbbfe5ec8c4b08214b88e2148fa3e, 2022-02-04T05:16:29.546Z)
OS version: Windows_NT x64 10.0.22543
Restricted Mode: No

System Info

Item
Value

CPUs
11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz (16 x 2304)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: enabled_onvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
23.68GB (4.98GB free)

Process Argv
--crash-reporter-id 5e27f758-146f-47b2-bbc6-7cfdf6237a31

Screen Reader
no

VM
40%

Looks like KaTeX styles are not properly applied to those elements in your environment.
Could you check the DevTools:

When opening the Markdown preview, are KaTeX stylesheets and fonts loaded, according to the Network panel?

In the preview, are KaTeX styles applied, according to the Elements panel?

Anyway, I cannot repro your problem with:
block math is very strange

$$
a \equiv \frac{b}{b}
$$

Version: 1.65.0-insider (system setup)
Commit: 921264bfe3ffbbfe5ec8c4b08214b88e2148fa3e
Date: 2022-02-04T05:16:29.546Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19044

All installed extensions are disabled.

sorry for noise


unclear-gpl: value is a set while a list was expected

I run nix run -f https://github.com/jtojnar/nixpkgs-hammering/archive/master.tar.gz -c nixpkgs-hammer grex on https://github.com/NixOS/nixpkgs/pull/100173 and got the following error:
/tmp/tmp.XZSxdAtHoo
error: value is a set while a list was expected, at /nix/store/jpy86aabmfqrk4w8c2n2mcad4nvn4wgh-nixpkgs-hammer/overlays/unclear-gpl.nix:27:16

Thanks for reporting this.


feat: add music-player package to store

Deployed at: https://alva-issues-772.surge.sh

Deployed at: https://alva-site-issues-772.surge.sh


Install gnss-sdr into a Raspberry Pi 5

This is a step by step process for compiling and installing gnss-sdr into a Raspberry Pi 5

Please open a new PR from a new branch


Global Windows don't emit data on time

I have a GlobalWindow with a custom trigger (I leave windows open for a few seconds after I have enough data to close the window).
When I emit data into my data stream, the flink execution environment appears to halt after the test data is exhausted but before my GlobalWidow is triggered.
I tried changing my trigger to wait zero seconds on window full, but that just appears to have made my test racy where sometimes the global window triggers and calls apply (so the test passes) and sometimes the environment appears to halt first.
Is there a way for me to leave the execution environment running for a few seconds after all of my data is emitted?  Or is there a good way for me to test this?  So far my only solution has been to stop using flink-spector, swap to using env.fromCollection() in flink, and then pass a custom iterator where the iterator itself hangs before delivering the last value Thread.sleep(10_000) and then the last value is also untested.  That gives the window a chance to trigger and I always get the correct results (huzzah) but it's both hacky and stops me from leveraging flink-spector.
Any advice here is greatly appreciated.  Thanks.

Hi,
You've probably have some form of processing-time logic in your customer trigger. Which means you've encountered this issue #29. There's a pretty lengthy statement in there why I don't wan't to work with sleeps. But there has been some development on Flink which should make it possible to manipulate processing time in the future.
In the meantime I would suggest looking at TestHarnesses provided by Flink.
https://github.com/apache/flink/blob/8dfb9d00653271ea4adbeb752da8f62d7647b6d8/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/operators/windowing/ContinuousEventTimeTriggerTest.java
This is a test case using a TriggerTestHarness, providing a neat way to thoroughly test your trigger.
You can find test harnesses for almost everything in flink. Flinkspector can then be used to make lightweight integration tests to see if your pipeline works in a distributed fashion.
Hope this is useful.

@lofifnc understood, thank you!


Title of the EMSE paper seems to be missing

Please add "Sentiment Polarity Detection for Software Development" 😃

Thanks!


Export IOURef

The only exposed-module of mutable-containers is Data.Mutable, but Data.Mutable.URef defines and exports IOURef. As it is not used internally I assume it was intended to be exported to end-users for convenience.

Good call, thanks!


New zig package management vs git submodules?

This repo pulls in libxml2 as a git submodule. Is that fundamentally compatible with the new zig package manager, which prefers downloading git repos as a archive from the likes of github etc, defined in a .zon file? Is there a plan forward? :)

Doing this I believe requires changing this repo to be a fork of libxml2 instead of containing as a submodule.

https://github.com/the-argus/libxml2

@the-argus I did a build at https://github.com/actonlang/libxml2/blob/zig-build/build.zig if you're interested... :)

This is my Zig package manager version: https://github.com/mitchellh/zig-build-libxml2 I'll archive this repo eventually.


SWBD not available on T29SNA Tile ID

Hello,
I have a new issue on tile T29SNA concerning SWBD data.
According to logs of Maja, we need these tiles :
['w010n36', 'w010n37', 'w009n36', 'w009n37', 'w008n36', 'w008n37']
When I go to EarthExplorer and put the shapefile of T29SNA tile, the query returns only these SWBD tiles :  'w009n36', 'w009n37', 'w008n36', 'w008n37'
Furthermore, it seems that 'w010n36' 'w010n37' does not exist...
If you need more informations, don't hesitate.
Thanks a lot.
Nicolas

Hi Nicolas,
the SWBD authors did something bad (in my opinion) : when a tile is only water or only land, it is not provided. DTMCreation handles that. We create a new vector which is fully land or fully water, using an external dataset which tells us which is most probable.
So, even if you do not find the SWBD data, it should work.
Olivier

Hi Olivier,
Thanks for your answer.
Actually, it does not work, I tested on 19HCC Tile at Chile and we need w070s34 SWBD tile.
Here is the error from MAJA :
missing SWBD watr file :  w070s34
Traceback (most recent call last):
  File "/Start-MAJA/prepare_dtm/DTMCreation.py", line 334, in <module>
    creator.run(args.out, args.tempout)
  File "/Start-MAJA/prepare_dtm/DTMCreation.py", line 294, in run
    water_zipped = self.WaterZipped)
  File "/Start-MAJA/prepare_dtm/../prepare_dtm/tuilage_mnt_eau_S2.py", line 203, in run
    calcul_masque_eau_mnt, working_dir=working_dir)
  File "/Start-MAJA/prepare_dtm/../prepare_dtm/lib_mnt.py", line 531, in fusion_mnt
    land = TestLand(liste_centre_eau[i][0], liste_centre_eau[i][1])
  File "/Start-MAJA/prepare_dtm/../prepare_dtm/lib_mnt.py", line 57, in TestLand
    layer = dataSource.GetLayer()
AttributeError: 'NoneType' object has no attribute 'GetLayer'

Do you have an idea ?
Thank you
Nicolas

I think I have done something bad, which is assuming you start DTM_creation from the folder that contains the DTMCreation file...
That's why the file which tells if we are over a continent or an ocean is not found. I will correct that ASAP...


Facebookads connector

There are some issues now with the fcb connector, it won't get data.

The error from template power bi in scitylana.com.
first
Expression.Error: The name 'FacebookAds.Ads' wasn't recognized.  Make sure it's spelled correctly.
second
Expression.Error: The field 'name' of the record wasn't found.
Details:
has_error=TRUE
error_value=[Record]
error_reason=DataSource.Error
error_message=Web.Contents failed to get contents from 'https://graph.facebook.com/v6.0/me/adaccounts?access_token=EAAJlUhVTtKsBAFKosAWW0XISZAb2JSJaBy1RN4DZAadChVALvyuBmkWIQjnEVRVZCk9KB2SSOORejEYPXE1jtvOae4iNBtpW70pS28iS3HHySSFDuO42geQ1XOTEUofaE5usz2bpozOa5GehGCMyexkvQZBIpkAfMWfnLDAEzkOOkKyQi9xh&fields=id%2Cname&limit=1' (400): Bad Request

there is a new version of the facebook API, I just made the update of the FacebookPages.pq file:
Change this:
scopes = { 	"read_insights", "pages_manage_ads", "pages_manage_metadata", "pages_read_engagement", "pages_read_user_content", "pages_manage_posts", "pages_manage_engagement" };
;)


Choco is not installed on VM

Description
The first error suggests Choco could not be installed on the VM:
mp\chocolatey\chocoInstall
    azure-arm.vhd: Installing Chocolatey on the local machine
    azure-arm.vhd: Ensuring Chocolatey commands are on the path
    azure-arm.vhd: Ensuring chocolatey.nupkg is in the lib folder
==> azure-arm.vhd: New-Object : Exception calling ".ctor" with "3" argument(s): "End of Central Directory record could not be found."
==> azure-arm.vhd: At
==> azure-arm.vhd: C:\Windows\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell.Archive.psm1:934
==> azure-arm.vhd: char:23
==> azure-arm.vhd: + ... ipArchive = New-Object -TypeName System.IO.Compression.ZipArchive -Ar ...
==> azure-arm.vhd: +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> azure-arm.vhd:     + CategoryInfo          : InvalidOperation: (:) [New-Object], MethodInvocationException
==> azure-arm.vhd:     + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
==> azure-arm.vhd:
==> azure-arm.vhd: & : The term 'C:\Users\packer\AppData\Local\Temp\chocolatey\chocoInstall\tools\chocolateyInstall.ps1' is not
==> azure-arm.vhd: recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
==> azure-arm.vhd: a path was included, verify that the path is correct and try again.
==> azure-arm.vhd: At line:541 char:3
==> azure-arm.vhd: + & $chocoInstallPS1
==> azure-arm.vhd: +   ~~~~~~~~~~~~~~~~
==> azure-arm.vhd:     + CategoryInfo          : ObjectNotFound: (C:\Users\packer...ateyInstall.ps1:String) [], CommandNotFoundException
==> azure-arm.vhd:     + FullyQualifiedErrorId : CommandNotFoundException
==> azure-arm.vhd:
==> azure-arm.vhd: choco : The term 'choco' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
==> azure-arm.vhd: the spelling of the name, or if a path was included, verify that the path is correct and try again.
==> azure-arm.vhd: At C:\Windows\Temp\script-6486ee41-cc39-7f72-d29e-9d26efcc9284.ps1:24 char:1
==> azure-arm.vhd: + choco feature enable -n allowGlobalConfirmation
==> azure-arm.vhd: + ~~~~~
==> azure-arm.vhd:     + CategoryInfo          : ObjectNotFound: (choco:String) [], CommandNotFoundException
==> azure-arm.vhd:     + FullyQualifiedErrorId : CommandNotFoundException
==> azure-arm.vhd:
==> azure-arm.vhd: Import-Module : The specified module '\helpers\chocolateyInstaller.psm1' was not loaded because no valid module file
==> azure-arm.vhd: was found in any module directory.
==> azure-arm.vhd: At C:\Windows\Temp\script-6486ee41-cc39-7f72-d29e-9d26efcc9284.ps1:27 char:1
==> azure-arm.vhd: + Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm ...
==> azure-arm.vhd: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> azure-arm.vhd:     + CategoryInfo          : ResourceUnavailable: (\helpers\chocolateyInstaller.psm1:String) [Import-Module], FileNot
==> azure-arm.vhd:    FoundException
==> azure-arm.vhd:     + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
==> azure-arm.vhd:
==> azure-arm.vhd: Get-ToolsLocation : The term 'Get-ToolsLocation' is not recognized as the name of a cmdlet, function, script file, or
==> azure-arm.vhd: operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
==> azure-arm.vhd: again.
==> azure-arm.vhd: At C:\Windows\Temp\script-6486ee41-cc39-7f72-d29e-9d26efcc9284.ps1:28 char:1
==> azure-arm.vhd: + Get-ToolsLocation
==> azure-arm.vhd: + ~~~~~~~~~~~~~~~~~
==> azure-arm.vhd:     + CategoryInfo          : ObjectNotFound: (Get-ToolsLocation:String) [], CommandNotFoundException
==> azure-arm.vhd:     + FullyQualifiedErrorId : CommandNotFoundException

Later this is the final error:
Choco-Install : The term 'choco' is not recognized as the name of a cmdlet, function, script file, or operable
==> azure-arm.vhd: program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
==> azure-arm.vhd: At C:\Windows\Temp\script-6486ee41-685c-de14-5c79-9eb518ca61c4.ps1:39 char:1
==> azure-arm.vhd: + Choco-Install -PackageName docker-compose -ArgumentList "--version=$v ...
==> azure-arm.vhd: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> azure-arm.vhd:     + CategoryInfo          : ObjectNotFound: (choco:String) [Choco-Install], CommandNotFoundException
==> azure-arm.vhd:     + FullyQualifiedErrorId : CommandNotFoundException,Choco-Install

The whole error might relate to this error fix:
https://github.com/actions/runner-images/pull/7657
Platforms affected

[X] Azure DevOps
[ ] GitHub Actions - Standard Runners
[ ] GitHub Actions - Larger Runners

Runner images affected

[ ] Ubuntu 20.04
[ ] Ubuntu 22.04
[ ] macOS 11
[ ] macOS 12
[ ] macOS 13
[ ] Windows Server 2019
[X] Windows Server 2022

Image version and build link
Windows Server 2022 20230606.1
Is it regression?

Expected behavior
Creates a VHD in Azure.
Actual behavior
Fails to use Choco
Repro steps
git pull
git checkout win22/20230606.1
User service principal to create VHD in Azure.

Well, it's doesn't help much. The error you see may indicate that zip file that are extracting is corrupt which may be caused by internet connection issues during download just before. Did you try to re-run build? Do you get this error always or it was just a single occasion?

Hmm, I understand. It was a single occasion, I did not try a re-run, because it is not a release-marked tag. In pipelines it is more complex to do a rerun anyway.

Chocolatey is installed using official script: https://chocolatey.org/install.ps1
It downloads chocolatey.zip archive using Request-File cmdlet and then extracts it. Seems like it neither stops on error nor have logic to retry download. I don't think it's a good idea to build workaround in this repo because your problem is quite unique and rare. If it persists, I think it would be better to address your request to Chocolatey team.
Сonsidering the above I'm closing this issue. Feel free to reach out if you have more questions.

@vpolikarpov-akvelon isn't Chocolatey CLI already installed on the runner image? If so, why the need to attempt to install it again?


Changes to AndroidManifest.xml while running sbt as a repl requires reload

Workaround: type reload

not really a problem


Better test coverage for ranges

More tests the merrier, thanks!

More tests the merrier, thanks!


Implementation of Stream and Infinite?

Congrats for the nice work.
I see streamingLLM and InfiniteLLM are used in your experiments.
Have you developled your own implementation for stream and Infinite? The original streamingLLM is only made for decoing phrase and thus not suitable for prefilling. Are you has a prefilling version of implementation?
Thanks!

Yes, we implemented both methods using multi-stage attention with two groups of QKV inputs.
For more details, you can check inf_llm/attention/stream_llm.py(streamingLLM), inf_llm/attention/infinite_lm.py(infiniteLM) , and inf_llm/attention/dot_production_attention/torch_impl.py(Multi-Stage Attention).
To improve performance, we implemented multi-stage flash attention with Triton. You can test it with fattn:true in your configuration YAML file when using infinite-lm/stream-llm/inf-llm attention.


Cext 1784/ti mesh url update

Description

Adding support for Mesh URL in create and describe commands
https://jira.corp.adobe.com/browse/CEXT-1884
Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] I have signed the Adobe Open Source CLA.
[X] My code follows the code style of this project.
[X] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[X] I have read the CONTRIBUTING document.
[X] I have added tests to cover my changes.
[X] All new and existing tests passed.

@amolina-adobe my bad fixing it now


Custom infoWindow

Dear Masashi and All,
First of all, thank you indeed for this plugin and community, it is a real pleasure to use native Google maps from Cordova/Ionic.
There is only one thing that prevents me from using this plugin in production-ready mobile app: absence of custom infoWindow support. I know, I know, that this was asked thousand times and I know about canvas workaround but imho it is just too hacky and unnatural to generate images for this purpose.
Earlier it was mentioned that it is possible to use custom JS infoWindow with plugin however I couldn't find any good code example or gist implementing such approach. I've also tried to utilize infoBubble library (https://github.com/googlemaps/js-info-bubble) developed for GoogleMaps JS API but it doesn't seem to be compatible with plugin, at least I get the following error:
Error: undefined is not an object (evaluating 'object.prototype')
http://<IP_ADDRESS>:8100/js/infobubble.js:199:32
extend@http://<IP_ADDRESS>:8100/js/infobubble.js:203:11
InfoBubble@http://<IP_ADDRESS>:8100/js/infobubble.js:37:14
http://<IP_ADDRESS>:8100/js/app.js:152:46

Could you please advise me if there is any existing solution for my issue or any plans to implement it?
Thank you a lot in advance!

Current possible way is only this.
https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/v1.2.5/example/DemoApp/www/pages/customInfoWindow.html
As you may know, the infoWindow is drawn in the native side, but you guys want to write your code in JavaScript side.
So another possible way is that providing infoWindow as a picture (filepath or base64 encoded, something).
In that case, the plugin might able to display an image as infoWindow.
** just idea **
map.addMarker({
  position : ... ,
  infoWindowImage: "file://...../myInfoWnd.png"    // <-- Just idea
}, function(marker) {
    marker.showInfoWindow();
})

Hi Masashi,
Thank you a lot for DemoApp link, I saw it some time ago but wasn't sure about compatibility with master plugin version. If you say that it is Ok, then I will definitely give it a try!
Regarding filepath/base64 images as I said - it just looks too unnatural to me and I'm somewhat afraid of text length handling headache as both title and description snippet are required in my case. If there was some gist with pre-made text processing and general styling, then it would be much more popular solution probably.
Thanks a lot once again!

The link are just HTML and Javascript codes, so even with the current master branch, it should work.

@wf9a5m75 I tryed on Ionic 2 without Jquery, only with JS and it doesn't seem to work.
Do you know any other workaround?

This helps you? https://github.com/mapsplugin/cordova-plugin-googlemaps/issues/1061

https://github.com/mapsplugin/v2.0-demo/issues/5

From the v2-beta supports HTML infoWindow, you can customize the InfoWindow design (or create own one. See the InfoWindow.js)
var infoWindow = new plugin.google.maps.InfoWindow();

map.addMarker({
  position: {lat: 0, lng: 0},
  draggable: true,
  title: [
    'This is Html InfoWindow',
    '
',
    '<button onclick="javascript:alert(\'clicked!\');">click here</button>',
  ].join(""),
  infoWindow: infoWindow
});

I close this issue.


Stable Diffusion Turbo Support

This PR added following features  in the stable-diffusion example:

--sd-version turbo
--guidance-scale  for controlling guidance scale, which SD Turbo need to set it to 0 for the correct result.

you can try this by:
 cargo run --release --example stable-diffusion --features "cuda,cudnn" -- --prompt "A cinematic shot of a baby racoon wearing an intricate italian priest robe." --use-f16 --sd-version turbo --n-steps 1 --width 512 --height 512 --guidance-scale 0

Thanks for the PR, I made some small tweaks so that the default values for n_steps and guidance_scale are automatically inferred when using the turbo version so hopefully no need for the user to set these flags manually.


Add support for doxygen @copydoc tags

@copydoc tags can be used to save having to copy the documentation for 2 similar functions, Typical examples of this include c-v qualified member functions, PImpl style classes and to a lesser extent derived class constructors
It would be nice if hover documenttion could understand copydoc and then grab the documentation from the relevant function.
As per the spec these tags can be recursive e.g.
/// Gets a @c Foo object.
Foo getFoo();

/// @copydoc getFoo()
Foo oldFooGetter();

/// @copydoc oldFooGetter()
Foo ancientFooGetter();

In each of these situations, hovering over any of the functions should show the documentation Gets a @c Foo object.

Sounds cool and useful, probably https://reviews.llvm.org/D134130 would need to be merged first, currently clangd does not parse doxygen tags at all.


Need for a wait_for helper

Hi there,
When I'm working with docker container for example, I often need to wait that a container is ready (healthy) before processing any other action.
We can think of a helper like this :
/**
 * @param callable(): bool $callback
 * @param int $timeout Maximum number of seconds to wait before throwing a TimeoutException
 * @param int $interval Interval in second between calls to the $callback function
 * @throw TimeoutException
 */
function wait_for(callable $callback, int $timeout = 10, int $interval = 1): void;

If you think it's a good feature, I can try a PR

Or maybe it can return a boolean instead of throwing an Exception ?

Hello,
That could be cool ! I use this pattern too for waiting docker container, or for waiting HTTP service on certain port (+ payload if necessary) to be accessible.
Make this type of helper (docker, network…) as shared castor files in a specific repo when import functions from remote will be OK and merged should be cool :)

Good idea


[BEAM-9547] GroupBy: Add support for dtypes, ndim, filter, WontImplement fillna

This PR adds implementations and tests for GroupBy.{dtypes,ndim,filter} which are all pretty simple. I've also opted not to implement GroupBy.fillna and its aliases. As noted in the error explanation, the only method we could support is method=None, which is not functionally different from just running fillna() on the ungrouped dataset.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

retest this please

Run Python PreCommit


fix: typos

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

GitHub release
v1.0.1

Your semantic-release bot :package::rocket:


Fix sending a NUL on alt key up

Summary of the Pull Request
Make sure to set the scancode for the manual alt-up's we're sending. If you don't, then terminalInput in the conpty is going to treat that keypress as an actual NUL, and send that to the connected client.
References

regressed in #6421

PR Checklist

[x] Closes #6513
[x] I work here
[ ] Tests added/passed
[n/a] Requires documentation to be updated

Validation Steps Performed
Tested showkeys -a

Is this something we should be getting from the window message itself and passing down through the DirectKeyEvent, or is this something we must go backsies from the VK to get.

I suppose we could plumb it all the way through

@msftbot merge this in 10 minutes


The Winget package does not reflect what's here in source control

I just installed latest NS fresh on a new machine from Winget, version 1.9.15. I immediately noticed that the dark mode wasn't working, which is an issue that goes back to February. When I go into the imports folder, I notice that theme.nss still has deprecated, broken keywords.
theme
{
	name = "modern"
	dark = sys.dark
	background
	{
		color = default
		opacity = sys.is11 ? default : 90
		effect = default
	}
	image.align = 2
}

What's bizarre about this is that the git blame for this file shows it was fixed far earlier than that, back in version 1.9.10.
I'm getting the feeling that the downloaded packages do not contain the same code we're seeing here on GitHub. For security reasons, this gives me concerns, as it makes me wonder what I'm actually installing.
On a related note, sys.dark still appears in the documentation even though it no longer works.

Historically, winget has returned the wrong (older) version of applications in the past.  If the corresponding package manifest for an application is pointing to/installing the wrong version, calling it to the attention of the winget team directly (by way of GitHub issue in the winget repo) can be effective in resolving such an error.
Not to say that this is the case here -- just throwing it out there in case it might help.

@poa00 I just re-reinstalled on a new machine, and this time I installed NS directly from https://nilesoft.org/download/shell/1.9.15/setup.exe. Same result, not winget-specific.
@moudey Can we get some clarification on the state of the new user experience? Shipping with broken syntax in the install files and continuing to host deprecated documentation of the syntax on the site is giving me the sense that this is becoming abandonware.

Hi,
There are some issues that have been resolved in the next update coming soon.
The documentation needs to be rewritten due to the accumulated amendments and it takes time. I have been very busy for 3 months and there is not enough time for that, but I promise you it will be rewritten and restructured again.


Revert "Optimizes display performance of the Input render method"

This reverts commit 013ef7e7a9314404ce60dc7024577b8503b73c7b.

Assuming using a controlled Stardust Input worked for this use case, :accept: