Add service flag to 'up' section

Was looking for a way to specify a service for railway up and had to go digging in the cli code to find the --service flag added in https://github.com/railwayapp/cli/pull/208/
Cheers 😄

Thanks for adding this, @zacwebb. This is great!


Add a Clear method that clears all nodes into a freelist.

Note:  this is inspired entirely by https://github.com/google/btree/pull/20


NoSuchFieldError

The library seems to have become broken since the last time I used it. I have no idea what has changed. Whenever I show the HUD it crashes the app.
To reproduce, all I have to do is the following:

Create a new project with an empty activity (API 16).
Include the compile tag as described in the Gradle section the readme.
In MainActivity onCreate(), show a Loading HUD as described in the first example of the Usage section in the readme.

The result is this error:
java.lang.NoSuchFieldError: No field container of type I in class Lcom/kaopiz/kprogresshud/R$id; or its superclasses (declaration of 'com.kaopiz.kprogresshud.R$id' appears in /data/app/com.rspsystems.hudtest3-1/split_lib_slice_5_apk.apk)                                                                            at com.kaopiz.kprogresshud.KProgressHUD$ProgressDialog.initViews(KProgressHUD.java:292)                                                                            at com.kaopiz.kprogresshud.KProgressHUD$ProgressDialog.onCreate(KProgressHUD.java:281)                                                                            at android.app.Dialog.dispatchOnCreate(Dialog.java:514)                                                                            at android.app.Dialog.show(Dialog.java:380)                                                                            at com.kaopiz.kprogresshud.KProgressHUD.show(KProgressHUD.java:233)
(The rest of the strack trace is left out to reduce clutter)
This even happens in an old project I had no problems with half a year ago. Only thing I can think of that has changed since then, is that Android Studio forced me to update gradle from 2.3.0-Beta1 to 2.3.3.

That's weird. I did as you said but seem like it worked just fine.
This is my configuration:
apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "26.0.0"
    defaultConfig {
        applicationId "com.kradragon.sampleapp"
        minSdkVersion 15
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    testCompile 'junit:junit:4.12'
    compile 'com.kaopiz:kprogresshud:1.0.5'
}

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

Using the exact same config (except the application id) I still get the crash. I've tested it on an android 7 device and an android 6 emulator.
Here is my activity:
package com.test.hudtest6;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.kaopiz.kprogresshud.KProgressHUD;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        KProgressHUD.create(MainActivity.this)
                .setStyle(KProgressHUD.Style.SPIN_INDETERMINATE)
                .setLabel("Please wait")
                .setDetailsLabel("Downloading data")
                .setCancellable(true)
                .setAnimationSpeed(2)
                .setDimAmount(0.5f)
                .show();
    }
}

And my manifest file:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.test.hudtest6">

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
    <activity android:name=".MainActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

</manifest>```

I have uploaded a newer version with some changes. Built with upgraded gradle and build tools.
You can try again to see if it helps.
compile 'com.kaopiz:kprogresshud:1.1.0'

That seems to have fixed the problem. Thank you very much!


Problemn in configuration Pool - @cap-js/postgres

In a follow file:
lib -> PostgresService.js
In the file above I having a problem with timeout millis in a pools config. So, when I try to deploy to any database Postgress, it has show timed out error.

This error occurr when I try to pass the config in Pool, doesn't work correctly because in the config in PostgresService.js has a fix config.

If you see in the picture above, the problem is origin in fix values.
Is it possible to config when the parameters: acquireTimeoutMillis and destroyTimeoutMillis is null in the custom config, fix value 1000?
Regards

Hi @YoshiakiToma,
please note that this is the repository for the CAP Documentation (Capire). Please file your incident in https://github.com/cap-js/cds-dbs and you're very welcome to provide a pull request which fixes this problem. Right now it seems we do not even make use of the Pool but instead we just instantiate a pg Client.
Best Regards
Gregor

Thanks @gregorwolf , I'm going to open a PR with Fix for this problm.


Update 03-00-geo-bim-tutorial.ipynb

Hi kris!
thanks for your additions. There seems to be a problem with the json. I cannot open the notebook.
Also there is conflict with the add_geoSPARQLTutorial branch.

If you like to work in your own repo, Please fork from the most recent commit of the branch; do your changes; push and start a new pull request.

If you like to work in the linkedbuildingdata/SummerSchoolOfLDAC repo please push your changes directly there

Best
Georg

outdated
closed()


implement BIP173 - SegWit

We need sooner rather than later to implement BIP173 (native SegWit addresses) as well as support for SegWit transactions (native and nested in P2SH). Does bitcoin-php or secpk256k1 php need changes for these purposes also?

Hi, bitcoin-lib-php isn't maintained anymore, but both BIP173 and segwit transactions are supported in https://github.com/Bit-Wasp/bitcoin-php

Oh, thanks for the heads up. So basically bitcoin-php includes and maintains everything in bitcoin-lib-php and secp256k1-php, so I can only use that?

Yep, it covers everything (tho the API is a bit different), and is the only one of the two libs that can use the extension secp256k1-php. The examples should hopefully be enough if you need to switch, or just poke me in an issue

Adding some examples for the different address types: https://github.com/Bit-Wasp/bitcoin-php/pull/536

We're all good here. Thanks @afk11


Evaluation of the cluster quality with indicators

Supposing to start from an unlabeled dataset featured by N features, I want to perform a clustering. I don't have a testing sample (labels) and ground truth is not available. I don't see a tool for evaluating the clustering quality, for instance to provide silhouette coefficients.
Is there a way to perform this kind of analysis?

Hey @cammarano, yeah so far all the clustering metrics and reports require the ground-truth. I would love to implement something like a silhouette score some day.


Fixed tests for staticmethod

This is intended to fix the staticmethod tests when binding=True (https://github.com/cython/cython/pull/2864). One of the tests will fail if run against the current master so it should only be applied to the enable_binding branch
The upshot is that Cython was previously doing the wrong thing for Python 2. The test
def f_plus(a):
    return a + 1

class class1:
    plus1 = f_plus

should fail with a TypeError for Python 2. The test now compares against pure Python behaviour. It doesn't (currently) test with binding=False - I can add this test if useful.

Thanks!


Updated cmake template, cmakelists with additional QA flags

libgpr depends on protobuf and libMath, which grpc_plugin_support depends on protobuf. Can be specifically reproduced by building the project with LDFLAGS='-Wl,--as-needed'

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok to test.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok to test.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok to test.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok to test.

Hi,
Can someone please help me understand why the basic/portability tests are failing? I don't see anything useful in build logs

That's a Jenkins flake - no biggies.

Please don't merge this just yet. I'm adding changes to build .pc files for grpc (and probably moving some libraries from find_package to pkgconfig's pkg_check_modules )

Hi,
I've added the changes required for pkg-config support in CMakeLists.txt
Please let me know if the PR is acceptable of if I need to change my approach.

Hey @nicolasnoble
Could someone please take a look at this and let me know if the PR is acceptable or can be merged?

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Is this PR still relevant?

I'm not sure. The PR was idle for a long time and I haven't updated it since. However, if there is still interest, I can redo the patch with review recommendations.

@ambasta  to be honest, I don't quite understand the purpose of the PR, can you please clarify?

I don't remember entirely anymore. It had to do with linking/compilation issues when passing -Wl,--as-needed flags
Additionally, had made changes towards easier packaging for linux distributions. Closing this PR for now unless there's interest in reworking this patch.


Feature Request: Ignore specified object's attributes in XML Builder or ignore functions

I need to serialize only part of JSON object to XML. The other attributes are metadata I need for processing.
I thought I could do that by hiding attributes in function, but the function is also serialized to xml using .toString() (I have doubts about usefulness of this behavior)
This is what I'd like to achieve:
const builder = new xml2js.Builder({
    rootName: 'Something',
    ignoreAttrs = ['type']
});

const serializedObject = {
    attr1: '1',
    attr2: '2',
    type: 'metadataType',

    type2: function(){
        return 'metadataType'
    }
};

Expected:
<Something>
    <attr1>1</attr1>
    <attr2>2</attr2>
</Something>

Actual:
<Something>
    <attr1>1</attr1>
    <attr2>2</attr2>
    <type>metadataType</type>
    <type2>function (){
        return 'metadataType'
    }</type2>
</Something>

Alternatively, processor functions for builder would be nice.

any news on this?


Fix #173735

I fixed this issue referred to this pull request. #170706
If this is in order, please consider merging this pull request.
Closes #173735

@pr-yemibedu icrosoft-github-policy-service agree

maski07:main

Thank you for merging the PR!

Sorry, I made a mistake.

Thank you for approving!


Debug menu should allow endpoint switching

PMs and QA often need to test things on the production server, and the way the project is currently set up, they can only do that on TestFlight builds. They should be able to switch a Hockey/sprint build over to the production endpoint temporarily, without needing a developer to produce a special one-off build.

I've done this in {CLIENT REDACTED}. Whoever takes this on (probably me) should ping me.


Support module aliasing for PIF gen with xcode build system in SwiftPM

When —arch has more than 1 arg, swift build triggers Xcode build system, e.g. swift build —arch x86_64 —arch arm64. Module aliasing needs to be supported with PIF gen in such scenario.
Resolves rdar://87363580

@swift-ci smoke test

@swift-ci smoke test linux

@swift-ci smoke test macOS

@swift-ci smoke test macOS

@swift-ci smoke test macOS

@swift-ci please smoke test macOS


Info - Format only changed lines with Git & File history

Hello, I've been using your config setup IDE with my custom changes and I loved it.
a) However, I am finding it a little challenging to setup the format on save to only format changed lines (tracked using git) and if it's not git initialized repo, we can format the whole open file.
b) More detailed git file history to check previous commits to a particular open file.
Can anyone please help me with this?

Hi @Shubham29012001 Thank you for opening this issue however it would recommend you open the issue with https://github.com/lazyvim/lazyvim or https://github.com/stevearc/conform.nvim


Including this causes errors with vapor fetch, pointing to crypto.git

I just added this to my Package.swift and did a vapor clean; vapor fetch and got the following.
Charlies-Air:GotYourBackServer charlie$ vapor clean
Cleaning [Done]
Charlies-Air:GotYourBackServer charlie$ vapor fetch
No Packages folder, fetch may take a while...
Fetching Dependencies [Failed]
Error: /usr/bin/git clone --recursive --depth 10 https://github.com/vapor/Crypto.git /Users/charlie/GotYourBackServer/Packages/Crypto.git
fatal: destination path '/Users/charlie/GotYourBackServer/Packages/Crypto.git' already exists and is not an empty directory.

swift-package: error: Failed to clone https://github.com/vapor/Crypto.git to /Users/charlie/GotYourBackServer/Packages/Crypto.git

Any thoughts on how to resolve this?

This is fixed is 0.1.1. Just be sure to clean first.


Add missing space

@versat : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Stream Alerts: Enforce sensible length limits on Name and Message

This adds maxlengths of 25 and 255 on the donor name and donation message respectively.
In case of inspect element abuse, anything longer than this gets truncated by the backend.
The limits were chosen like this:

Maximum length for Twitch usernames is 25 characters
Streamlabs' native tipping page has a maximum configurable message length of 255 characters

Apparently this causes some inconsistent bugs, I'll have to do more testing

I applied some dark magic, by doing the same thing at a later point and spinning three times in a circle. That somehow seems to have fixed this bug.

Codecov Report

Merging #285 (7a5b5ac) into master (baf3b76) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 7a5b5ac differs from pull request most recent head 290955b. Consider uploading reports for the commit 290955b to get more accurate results

@@           Coverage Diff           @@
##           master     #285   +/-   ##
=======================================
  Coverage   30.12%   30.12%
=======================================
  Files          31       31
  Lines        2330     2330
=======================================
  Hits          702      702
  Misses       1628     1628

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update baf3b76...290955b. Read the comment docs.


Missing comma

Description
Missing comma in text
(Optional:) Please add any files, screenshots, or other information here.
No response
(Required) What is this issue most closely related to? Select one.
Choose One
Internal issue ID
09557184-ebcb-4138-9ba0-82dfdb705a0f
Paper URL
https://arxiv.org/html/2312.10997v5
Browser
Chrome/<IP_ADDRESS>
Device Type
Desktop

Please contact the authors directly for content corrections.


Show overall progress

It would be cool once tasks are marked as completed it could keep track via some kind of @progress marker. Something like:
@progress: 2 of 4 completed (50%)

front end booking form:
☐ use more customisable datepicker for frontend
    ☐ disable dates which cannot be selected (before min bookable date)
✔ automatically edit the return details when editing the singles @done(2017-02-21 13:25)
✔ add "Your tickets expire on <date>" at end of the tickets stage @done(2017-02-21 13:43)

I'm not sure this would be the right format; i think it would make more sense to attach the number to the project, but even then it requires some additional dependencies. Like what about nested projects? And nested tasks? I'll keep this open, but i'm not sure what the right solution is here!
Any thoughts?

Well my initial thoughts are it's intended for the overall progress of all the tasks in the file, regardless of the position of the @progress block or how many subtasks there are (it would make sense if it stays at the top, for that reason).
If you wanted to make it more complex, then you could support multiple progress areas wherever there is multiple @progress blocks it will only count the progress for tasks below that blow upto the next @progress (if found, or else the end of the document). If you did that, it would make sense to have a @totalprogress one at the very top, too.
I think as proof of concept just keep it simple initially with the first option. It would be pretty cool to have, no?

Or maybe control how it counts by some special characters : and = and > like:
@progress= outputs the overall progress for all tasks, regardless of position in document.
@progress: outputs progress for the current block (upto the next `@progress:` or `@progress>` marker)
@progress> outputs progress for all the belows below, ignoring @progress blocks.

Maybe not too intuitive though.

There is also a general progress field in the status bar at the bottom of the editor. Maybe that could use some love? Would that cover your use-case?

Yeah that'll be good too

I don't really think adding a special line like this makes a lot of sense since it's pretty divergent from how these are usually organized. I could potentially see this being integrated via dynamic styles (so it doesn't end up in the actual output plaintext file) by injecting the count into the view right after the project name itself, maybe adding a formatting setting so it can be customized to your liking.
I could also see bolstering the status bar display to show total completion, plus your current project and its completion state as well. That feels a little more clear, but I'll take a look at what this might look like and let's see which solves for your use case!


BACKLOG-14204: Adds output publicPath for webpack libraries config

JIRA

https://jira.jahia.org/browse/BACKLOG-14204
Description

Fixes font loading issue where fonts were not being loaded at the correct URL
Moonstone font is now being loaded correctly across Jahia application

I've update the PR to make the original public-path setup work : https://github.com/Jahia/app-shell/blob/0fea3ce8a4bfe363eea8c9a036829b6d8bee2f53/src/javascript/jahia.js#L3
Harmony imports are hoisted at top of the module, so moonstone import was executed before the p prop was set. require() are instead kept in the flow, and executed after the public path is set


Arrowheads need some work

A BlArrowheadCircle produces a square, even though it has an EllipseGeometry. Giving it a BlCircleGeometry seems to fix this.
A BlArrowheadRectangle produces an extremely tiny rectangle. It doesn't have a scale method, so currently to get a square arrowhead, the best thing to use is a BlArrowheadCircle with a scale. :)

Fixed the mentioned issues. Let us know if there are more fixes/enhancements you require


adding csmv.qc.ca

@chicoprader First stage of verification passed, official domain is cssmv.gouv.qc.ca as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision. Proof of domain ownership: https://cssmv.gouv.qc.ca/la-csmv/compte-de-taxe/

@chicoprader Regrettably, I have to close the request without merging, because this organization is a training center, not a college, nor a university. Please ensure that you are familiar with this repository rules located at the bottom of this page.
Please apply for an appropriate licensing option (which may also be free) at https://www.jetbrains.com/community/education/#courses.
Thank you for your understanding!


Touch events seem to fire twice

Hello, I'm using ComfyUI on mobile, and when I installed your custom node, the UI started to behave a little weird. The control panel is resetting it's position after I show or hide the keyboard, besides that, when I try to click some buttons on it, they're being pressed twice. It's not always consistent, sometimes it's enough to just move this panel around to fix it for one touch, but next touches will be registered twice again.

Hello, I'm using ComfyUI on mobile, and when I installed your custom node, the UI started to behave a little weird. The control panel is resetting it's position after I show or hide the keyboard, besides that, when I try to click some buttons on it, they're being pressed twice. It's not always consistent, sometimes it's enough to just move this panel around to fix it for one touch, but next touches will be registered twice again.

I'm seeing this behavior as well.

I'm experiencing this as well, on a Tablet running Windows 11, regardless of whether i'm using touch controls or a stylus. Ended up deleting the touch script itself, which didn't seem to break anything. Fixed the issue for me, but that's probably not the ideal solution.

Touch events is removed as it should be semi-natively supported in ComfyUI now


Find prefixes from prefix.cc in DCTAP

At this moment DCTAP conversion is based on a fixed set of prefix declarations which can be injected through a config file.
At suggested by @jonassmedegaard the usability could be improved by retrieving the prefix declarations from http://prefix.cc or by using a cached version of those prefix declarations.

My conversion of a DCTAP failed on prefixes, so I decided to pre-expand the prefixes before running rudof. Then I got this:
Error: PrefixMap error: Prefix 'http' not found in PrefixMap 'prefix dc: <http://purl.org/dc/elements/1.1/>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix : <http://example.org/>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
' at line: 3, field: http://purl.org/dc/terms/type

It is going to be very hard to have all of the prefixes that people might use in a DCTAP. We have recognized that there needs to be a way to have a file of the prefixes used, but we haven't yet figured that out. Meanwhile, adding http and https to the prefixMap would allow us to experiment with rudof.

To me this looks like a parsing bug in Rudof:
The failing RDF statement at line 3 - prefix : <http://example.org/> does not have prefix prefix, it has no prefix.
Therefore your comment, @kcoyle, seems independent from the error message above your comment - if I understand you correctly.

I assumed that the reference to line 3 was line 3 of the dctap. The first three lines of that are:
shapeID,propertyLabel,propertyID,valueNodeType,valueDatatype,valueShape,valueConstraint,valueConstraintType,note
,,,,,,,,
ScholarlyResource,Type,http://purl.org/dc/terms/type,IRI,,,http://purl.org/coar/resource_type/,IRIstem,"Resource type, using the COAR Resorce Types vocabulary."
The config file cannot have http://purl.org/dc/terms/type in it. "/type" is an actual property, beyond the prefix, so that wouldn't be in the prefix file. It also seems that the set of prefixes being used is what was echo'd on the error message. I note that there is a larger prefix file (probably using prefixCC) here but it doesn't seem to be implemented yet. In any case, it does seem that one should allow full IRIs with http or https.

Ah, with that additional background information - and noticing the last line of the error message - I agree with your interpretation of it.  Sorry for my confusion before.
I don't follow your remark that http://purl.org/dc/terms/type cannot be the config file - a lookup at https://prefix.cc indicates that it is used with the CURIE dc:type.
Yes, I agree with you that full IRIs are legal values for PropertyID, as described in the DCTAP primer

My conversion of a DCTAP failed on prefixes, so I decided to pre-expand the prefixes before running rudof. Then I got this:
Error: PrefixMap error: Prefix 'http' not found in PrefixMap 'prefix dc: <http://purl.org/dc/elements/1.1/>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix : <http://example.org/>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
' at line: 3, field: http://purl.org/dc/terms/type

Indeed, that looks like a bug in the parser that thinks that http:  is the start of a curie like xsd:string. Could you send me a simplified snippet of the DCTAP file that you are using so I can reproduce the error?

It is going to be very hard to have all of the prefixes that people might use in a DCTAP. We have recognized that there needs to be a way to have a file of the prefixes used, but we haven't yet figured that out. Meanwhile, adding http and https to the prefixMap would allow us to experiment with rudof.

Indeed, currently rudof takes as input a config file which can contain a list of prefix declarations. That config file can be changed and customized by the users.
Another possibility is that rudof uses also the default prefix declarations which can be downloaded from prefix.cc. We started to implement this option, but it is not finished yet.
I keep this issue open as a reminded of that possibility, but I will definitely open a new issue if I can reproduce the error with the http: prefix.


Switch print statements to use rust logger

Currently debug info is all printed to stdout using the println! macro. This is simple but misses some utility like logging the times and sources of messages. Switching to use the log crate and loggining macros should be pretty easy.

Fixed in #13


WIP: flatten allOf models

Primarily, this is an attempt to get further on #599.
What the solution has ended up looking like is [flattening/merging/composing] the allOf schema properties into the child models - there is no longer a use of #[serde(flatten)].
For starters, I'd say this provides a neater API to the end user - more resemblant of what we see in Bicep and easier to reason about.
It also removes some ambiguities in the models, where a property could be defined multiple times in the created models. For an example of this, see https://github.com/Azure/azure-sdk-for-rust/pull/1524#issuecomment-1867881285

Example where generated model is previously ambiguous:
Deserializing:
Whilst deserializing this response into a Rust model is successful, it's ambiguous where the provisioningState would end up:
#[cfg(feature = "package-2020-03-20")]
#[test]
fn test_cluster_get() -> anyhow::Result<()> {
    use anyhow::{bail, ensure};
    use azure_mgmt_vmware::package_2020_03_20::models::*;
    // copied from specification\vmware\resource-manager\Microsoft.AVS\stable\2023-03-01\examples\Clusters_Get.json
    let json = br#"
    {
        "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1",
        "name": "cluster1",
        "sku": {
          "name": "AV20"
        },
        "properties": {
          "clusterSize": 4,
          "hosts": [
            "fakehost22.nyc1.kubernetes.center",
            "fakehost23.nyc1.kubernetes.center",
            "fakehost24.nyc1.kubernetes.center",
            "fakehost25.nyc1.kubernetes.center"
          ],
          "provisioningState": "Succeeded"
        },
        "type": "Microsoft.AVS/privateClouds/clusters"
      }
      "#;

    let cluster: Cluster = serde_json::from_slice(json)?;
    println!("{:#?}", cluster);
    Ok(())
}

Cluster {
    resource: Resource {
        id: Some(
            "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1",
        ),
        name: Some(
            "cluster1",
        ),
        type_: Some(
            "Microsoft.AVS/privateClouds/clusters",
        ),
    },
    sku: Sku {
        name: "AV20",
    },
    properties: ClusterProperties {
        management_cluster: ManagementCluster {
            cluster_update_properties: ClusterUpdateProperties {
                cluster_size: Some(
                    4,
                ),
            },
            provisioning_state: None,
            cluster_id: None,
            hosts: [
                "fakehost22.nyc1.kubernetes.center",
                "fakehost23.nyc1.kubernetes.center",
                "fakehost24.nyc1.kubernetes.center",
                "fakehost25.nyc1.kubernetes.center",
            ],
        },
        provisioning_state: Some(
            Succeeded,
        ),
    },
}

Serializing:
#[cfg(feature = "package-2020-03-20")]
#[test]
fn serialize_cluster() -> anyhow::Result<()> {
    use anyhow::{bail, ensure};
    use azure_mgmt_vmware::package_2020_03_20::models::*;

    let cluster = Cluster {
        resource: Resource {
            id: Some(
                "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1".to_string(),
            ),
            name: Some(
                "cluster1".to_string(),
            ),
            type_: Some(
                "Microsoft.AVS/privateClouds/clusters".to_string(),
            ),
        },
        sku: Sku {
            name: "AV20".to_string(),
        },
        properties: ClusterProperties {
            management_cluster: ManagementCluster {
                cluster_update_properties: ClusterUpdateProperties {
                    cluster_size: Some(
                        4,
                    ),
                },
                provisioning_state: Some(ClusterProvisioningState::Updating),
                cluster_id: None,
                hosts: vec![
                    "fakehost22.nyc1.kubernetes.center".to_string(),
                    "fakehost23.nyc1.kubernetes.center".to_string(),
                    "fakehost24.nyc1.kubernetes.center".to_string(),
                    "fakehost25.nyc1.kubernetes.center".to_string(),
                ],
            },
            provisioning_state: Some(
                ClusterProvisioningState::Succeeded,
            ),
        },
    };

    let json = serde_json::to_string_pretty(&cluster)?;
    println!("{}", json);
    Ok(())
}

This means we end up with two provisioningState properties within the serialized result.
{
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1",
  "name": "cluster1",
  "type": "Microsoft.AVS/privateClouds/clusters",
  "sku": {
    "name": "AV20"
  },
  "properties": {
    "clusterSize": 4,
    "provisioningState": "Updating",
    "hosts": [
      "fakehost22.nyc1.kubernetes.center",
      "fakehost23.nyc1.kubernetes.center",
      "fakehost24.nyc1.kubernetes.center",
      "fakehost25.nyc1.kubernetes.center"
    ],
    "provisioningState": "Succeeded"
  }
}

Now, the example I've used in https://github.com/Azure/azure-sdk-for-rust/pull/1524#issuecomment-1867881285
serializes as:
#[cfg(feature = "package-2020-03-20")]
#[test]
fn serialize_cluster() -> anyhow::Result<()> {
    use azure_mgmt_vmware::package_2020_03_20::models::*;

    let cluster = Cluster {
        id: Some(
            "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1".to_string(),
        ),
        name: Some(
            "cluster1".to_string(),
        ),
        type_: Some(
            "Microsoft.AVS/privateClouds/clusters".to_string(),
        ),
        sku: Sku {
            name: "AV20".to_string(),
        },
        properties: ClusterProperties {
            cluster_size: 4,
            provisioning_state: Some(ClusterProvisioningState::Updating),
            cluster_id: None,
            hosts: vec![
                "fakehost22.nyc1.kubernetes.center".to_string(),
                "fakehost23.nyc1.kubernetes.center".to_string(),
                "fakehost24.nyc1.kubernetes.center".to_string(),
                "fakehost25.nyc1.kubernetes.center".to_string(),
            ],
        },
    };

    let json = serde_json::to_string_pretty(&cluster)?;
    println!("{}", json);
    Ok(())
}

into
{
  "sku": {
    "name": "AV20"
  },
  "properties": {
    "provisioningState": "Updating",
    "hosts": [
      "fakehost22.nyc1.kubernetes.center",
      "fakehost23.nyc1.kubernetes.center",
      "fakehost24.nyc1.kubernetes.center",
      "fakehost25.nyc1.kubernetes.center"
    ],
    "clusterSize": 4
  },
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1",
  "name": "cluster1",
  "type": "Microsoft.AVS/privateClouds/clusters"
}

deserializes as:
#[cfg(feature = "package-2020-03-20")]
#[test]
fn test_cluster_get() -> anyhow::Result<()> {
    use anyhow::ensure;
    use azure_mgmt_vmware::package_2020_03_20::models::*;
    // copied from specification\vmware\resource-manager\Microsoft.AVS\stable\2023-03-01\examples\Clusters_Get.json
    let json = br#"
    {
        "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1",
        "name": "cluster1",
        "sku": {
          "name": "AV20"
        },
        "properties": {
          "clusterSize": 4,
          "hosts": [
            "fakehost22.nyc1.kubernetes.center",
            "fakehost23.nyc1.kubernetes.center",
            "fakehost24.nyc1.kubernetes.center",
            "fakehost25.nyc1.kubernetes.center"
          ],
          "provisioningState": "Succeeded"
        },
        "type": "Microsoft.AVS/privateClouds/clusters"
      }
      "#;

    let cluster: Cluster = serde_json::from_slice(json)?;
    println!("{:#?}", cluster);
    ensure!(cluster.name == Some("cluster1".to_string()));
    ensure!(cluster.sku.name == "AV20".to_string());
    ensure!(cluster.properties.cluster_size == 4);
    ensure!(cluster.properties.hosts.len() == 4);
    ensure!(cluster.properties.provisioning_state == Some(ClusterProvisioningState::Succeeded));
    Ok(())
}

Example where generated model is previously ambiguous
Using azure-rest-api-specs/specification/vmware/resource-manager/Microsoft.AVS/stable/2020-03-20/vmware.json - note this is an older tag than the latest, but sufficient as an example

Hi @krishanjmistry, I appreciate using the vmware spec as the example, since that I the one I manage. Having duplicate entries in the spec like this is an error. I am not sure it is something that we should support. In this particular case, I fixed it in the next version 2021-06-01.

For starters, I'd say this provides a neater API to the end user - more resemblant of what we see in Bicep and easier to reason about.

I think there is room for improvement here. I think there are some advantages of keeping the structs to match the definitions. There think there may be ways to improve the API to the end user. For #601, I brought up using the builder pattern. @demoray, then mentioned:

I think having a middle ground of providing something akin to the setters! macro would be sufficient for many (most?) uses.

I'm hoping there is a way to improve the API without changing the structures.

@cataggar, thanks for taking a look.

Hi @krishanjmistry, I appreciate using the vmware spec as the example, since that I the one I manage. Having duplicate entries in the spec like this is an error. I am not sure it is something that we should support. In this particular case, I fixed it in the next version 2021-06-01.

I did notice that I was picking on an old tag! More generally, the main thing that I believe would influence whether we support this case is how prevalent this is in the existing specs. I think it's worth noting that I don't think such a thing could be described in TypeSpec (which I believe is where the specs are heading).
Likewise, I also don't think the scenario in #599 could be described in TypeSpec. In TypeSpec, it seems a property can either be defined required or optional in its base model. In other words, it should be possible to inherit the required properties, but not overwrite them.

I think there is room for improvement here. I think there are some advantages of keeping the structs to match the definitions. There are ways to improve the API to the end user without changing the structs.

My main concern here would be, in the case of if we do want to support a scenario like #599 - the models won't reflect what gets [de]serialized. I do like the suggestion of a builder pattern/setters! macro.
It seems there's two questions, on both I'll try and get some stats:

how prevalent are duplicated properties in models that include allOf?
how prevalent is the issue in #599, where a required property is not set in the base class?

Answering the questions I left at the end of the last comment.

how prevalent are duplicated properties in models that include allOf?

39 resource manager crates have schemas where the property is defined in both the schema, and the allOf it takes.
Among those 39 resource manager crates, there's 435 cases in total.
Here's a CSV containing all the places: all_of_issues.csv

how prevalent is it that a property is mentioned to be required outside of the base class?

46 resource manager crates
4 data plane crates
1193 cases across both sets of crates
Here's a CSV containing all the places: required_issues.csv

FWIW - and I don't know if/how this factors in - but for context, all the other language code generators have traditionally treated the first allOf as derivation (if that even applies in this case) and any subsequent allOfs as flattened members. Also worth keeping in mind when we start supporting a TypeSpec-compiled object model.

main branch has been moved to legacy. Closing draft PRs to main and moving open PRs to legacy where further triage will be necessary.


writes after a directory metadata split potentially cause corruption

Failing test for this added in 2eb79a1..00b429a .

Fixed in b35fcad .

Unfortunately b35fcad is not a complete fix; re-opening.

Tests complete and pass for 512-byte-sized blocks in e17e3be037d4d7fd23fbc30385812b5cfaaa53e7, so I'll call that good for now and open a more descriptive issue if (when?) further disasters occur.


Refactor data exchange to use runtime variables

We could do that, instead of writing and reading attributes to/from a database whose statefulness seems a bit shaky. Not sure if it's urgent. A downside would be losing the info in case of a sandbox crash/restart.

Sometimes attribute ceilings are not properly stored in MacroSheet. Are we running into trouble with all the runtime writing into character sheets?

Actually, not a good idea given sandbox restarts, and since there has actually never been a problem with the statefulness of the database.


operator kubecost-operator (v2.4.11)

Don't run this again. CSV has no directives. Highest version in channel wins, and this version disappears.


Is it possible to provide a custom openEditorDelegate?

In my hunt around monaco-related code in the vscode repo, I found this intriguing setOpenEditorDelegate method. Is it possible somehow to provide my own openEditorDelegate function?
For context, I need to implement custom behavior in my app when a user clicks the title in a Peek panel or clicks a reference in the results of a "Find References" command. If I could override the default behavior (which seems to throw an error for me) it would be great.
Thanks!

You could create the editor and pass as the last argument an object containing a custom implementation of an editorService that respects IEditorService  perhaps inspired by the SimpleEditorService . This is where we set it up

Thanks, this seems like a potentially good option. I notice that if I steal most of the SimpleEditorService code, I'd also have to have access to SimpleModel, SimpleEditor, TPromise, etc. As far as I can tell, those aren't accessible from the monaco-editor pacakge, correct? So I would need to reimplement those things as well most likely?


Add conversion to OpenFaaS Docker images.

Add instructions on how to build OpenFaaS Docker images compatible with the Apollo platform.

@FedorSmirnov89


KeyboardAvoidingView: return KeyboardFrame height directly when botto…

KeyboardAvoidingView didn't handle a specific situation. On Android, when a user selects the input method from ENG to Google Voice, the text input area would be covered by Google Voice view.

Basically, relativeKeyboardHeight is assuming that onKeyboardChange event is triggered from normal state to the virtual keyboard state. However, there's a situation that user changes the input method to Google Voice over from English input. It would be miscalculated by relativeKeyboardHeight function and results in a wrong padding Bottom.
My suggestion is that adding a statement in relativeKeyboardHeight to determine if the View is already padded at the Bottom. If it's, return the keyboard.height directly.

@nicklockwood and @davidaurelio, could you review my commit?

@EllisShen - have you tested this on iOS to ensure it doesn't break anything?

@brentvatne, actually I haven't test it on iOS. I will let you know my verification result asap.

Ping us when you've tested on iOS.

Adding needs-revision because of missing Test Plan. See:
https://github.com/facebook/react-native/blob/master/.github/PULL_REQUEST_TEMPLATE.md

Hey, I think this pull request has been abandoned so I am going to close it. If you are still interested in working on this please feel free to reopen it!


Add option to build a single dynamic library containing all swift-syntax modules

My previous approach of building each product as a dynamic library did not work because SwiftPM includes symbols from all dependencies in each .dll. Because of this, we ended up with duplicate symbols for each type in eg. SwiftSyntax at runtime.
Build a single .dll with all required products instead to avoid that issue.
To enforce that this is an internal target that should not be relied upon, only enable it when an environment variable is set.

@swift-ci Please test

I wonder how autolink works in this case. I.e. I assume SwiftParser.swiftmodule has a single module link name. But for example, SwiftParser belongs to 2 products. Does import SwiftParser causes -lSwiftParser or -l_SwiftSyntaxDynamic?

@swift-ci Please test

@swift-ci Please test


ps3netserv failed to start on install

I am running on Debian 11 on an x64 system. I tried setting up ps3netserv via the install script however the smb share is not created and cockpit says "Failed to start" for ps3netsrv.
The folders were created and symlinks properly setup, however the service is not working.
I have mister, xbox 360, ps2, and standard smb shares working properly.
This is the result of checking the service in the retronas ui
systemctl --no-pager --full status ps3netsrv
● ps3netsrv.service - ps3netsrv for PlayStation3 with CFW/HEN and webMAN-MOD
Loaded: loaded (/lib/systemd/system/ps3netsrv.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2022-05-05 22:10:19 CDT; 5min ago
Process: 148928 ExecStart=/opt/retronas/bin/ps3netsrv /mnt/data-ext4/ps3/ps3netsrv (code=exited, status=203/EXEC)
Main PID: 148928 (code=exited, status=203/EXEC)
CPU: 2ms
May 05 22:10:19 retronas systemd[1]: ps3netsrv.service: Scheduled restart job, restart counter is at 10.
May 05 22:10:19 retronas systemd[1]: Stopped ps3netsrv for PlayStation3 with CFW/HEN and webMAN-MOD.
May 05 22:10:19 retronas systemd[1]: ps3netsrv.service: Start request repeated too quickly.
May 05 22:10:19 retronas systemd[1]: ps3netsrv.service: Failed with result 'exit-code'.
May 05 22:10:19 retronas systemd[1]: Failed to start ps3netsrv for PlayStation3 with CFW/HEN and webMAN-MOD.

I have the same problem and i seen problems in the log :
TASK [ps3netsrv - Install from source code] ****************************************************************************
task path: /opt/retronas/ansible/install_ps3netsrv.yml:76
changed: [localhost] => {"changed": true, "cmd": "/opt/retronas/scripts/install_ps3netsrv.sh 2>&1 | tee /opt/retronas/log/install_ps3netsrv.log", "delta": "0:00:01.422024", "end": "2022-05-06 20:38:38.647170", "rc": 0, "start": "2022-05-06 20:38:37.225146", "stderr": "", "stderr_lines": [], "stdout": "Configuring build directories...\nDownloading ps3netsrv source code...\n\n\n--2022-05-06 20:38:37--  https://github.com/\nResolving github.com (github.com)... <IP_ADDRESS>\nConnecting to github.com (github.com)|<IP_ADDRESS>|:443... connected.\nHTTP request sent, awaiting response... 200 OK\nLength: unspecified [text/html]\nSaving to: 'index.html'\n\n     0K .......... .......... .......... .......... .......... 1.18M\n    50K .......... .......... .......... .......... .......... 2.38M\n   100K .......... .......... .......... .......... .......... 7.21M\n   150K .......... .......... .......... .......... .......... 3.71M\n   200K ....                                                   8.04T=0.08s\n\n2022-05-06 20:38:37 (2.43 MB/s) - 'index.html' saved [209221]\n\nunzip:  cannot find or open ps3netsrv*.zip, ps3netsrv*.zip.zip or ps3netsrv*.zip.ZIP.\n\nNo zipfiles found.\n/opt/retronas/scripts/install_ps3netsrv.sh: line 22: cd: ps3netsrv*/ps3netsrv: No such file or directory\n\nERROR: Neither directory contains a build file meson.build.\nninja: Entering directory buildrelease'\nninja: error: loading 'build.ninja': No such file or directory\nMoving binary to RetroNAS bin dir...\nmv: cannot stat 'buildrelease/ps3netsrv': No such file or directory\nCleaning up...\nAll done!", "stdout_lines": ["Configuring build directories...", "Downloading ps3netsrv source code...", "", "", "--2022-05-06 20:38:37--  https://github.com/", "Resolving github.com (github.com)... <IP_ADDRESS>", "Connecting to github.com (github.com)|<IP_ADDRESS>|:443... connected.", "HTTP request sent, awaiting response... 200 OK", "Length: unspecified [text/html]", "Saving to: 'index.html'", "", "     0K .......... .......... .......... .......... .......... 1.18M", "    50K .......... .......... .......... .......... .......... 2.38M", "   100K .......... .......... .......... .......... .......... 7.21M", "   150K .......... .......... .......... .......... .......... 3.71M", "   200K ....                                                   8.04T=0.08s", "", "2022-05-06 20:38:37 (2.43 MB/s) - 'index.html' saved [209221]", "", "unzip:  cannot find or open ps3netsrv*.zip, ps3netsrv*.zip.zip or ps3netsrv*.zip.ZIP.", "", "No zipfiles found.", "/opt/retronas/scripts/install_ps3netsrv.sh: line 22: cd: ps3netsrv*/ps3netsrv: No such file or directory", "", "ERROR: Neither directory contains a build file meson.build.", "ninja: Entering directory buildrelease'", "ninja: error: loading 'build.ninja': No such file or directory", "Moving binary to RetroNAS bin dir...", "mv: cannot stat 'buildrelease/ps3netsrv': No such file or directory", "Cleaning up...", "All done!"]}

looks like the download is failing on newer versions, thanks for the repo.

should be fixed with a reinstall, the downloads were failing due to some change on the github side.
Please give it a go and let me know.

Just checked and confirming this is  resolved. Thank you very much!


MintedValue shouldn't be allowed to be compared for security reasons

When comparing Values with the == operator, the behaviour is correct since the internal representation is aiken/dict which has ordering invariant in place and additionally the Value has an invariant that 0 amount asset can't be in the dict.
However, comparing MintedValue poses a threat of vulnerability. Then e.g. comparing transaction.mint to some expected value that's converted to MintedValue using the to_minted_value can cause a problem.
Since the MintedValue doesn't have any invariants and can change over time as Ledger specifies it's items. Also, 0 lovelaces entry can be there.
Because of this, I'm proposing to not allow comparison of MintedValue types with the == operator. T
I think the easiest solution would be to remove the to_minted_value function and since the MintedValue type is opaque it would resolve this.

Actually, this should be fine. What shouldn't be allowed is to construct MintedValue.
Possibly constructing one from Value might be allow for testing purpose but then, we should enforce the invariant at that point to make comparison safe. That's arguably a bug that it doesn't happen now.

I think we won't need MintedValue anymore anyways once PlutusV3 drops. I think the zero ADA thing will go away?


[Feature?]: Broaden out event replaying for commonly used input field pattern

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Summary 💡
On the SSR'd page from solid-js there is a short JS snippet which writes all events into a global object. These are later replayed once the page has hydrated. The reason for doing this, I assume, is that user input given while the page is loading isn't lost.
However, it doesn't seem like that works correctly with a very commonly used input field pattern.
Examples 🌈
According to me this is a very common pattern to do when having an input field that's synced with a signal value.
It seems like that having value={name()} empties the input field before the input events are replayed as the page hydrates - or something else is happening, that leads to the user input to be cleared as the page loads.
My expected behavior is that text entered before the page is hydrated is retained and written to the signal.
function MyComponent() {
  const [name, setName] = createSignal("");

  return (
    <>
      Enter your name
      <input
        id="name"
        placeholder="name"
        value={name()}
        onInput={(e) => setName(e.currentTarget.value)}
      />

Signal value is {JSON.stringify(name())}

    </>
  );
}

Motivation 🔦
Give great UX to my users

Current workaround example that works:
<input
  id={label_id}
  type="text"
  ref={element => {
    const { value } = element;
    if (value) {
      // user typed text on SSR'd page while JS was loading
      props.setConfig("general", "merchant", value);
    }
    createEffect(() => (element.value = props.config.general.merchant));
  }}
  onInput={e => props.setConfig("general", "merchant", e.currentTarget.value)}
/>

Interesting.. I think I've seen this but didn't click on me what was going on. This isn't a Start issue but a dom expressions issue. I will move it to Solid repo.


systest: add test that forces smeshers to cast neutral votes

closes: https://github.com/spacemeshos/go-spacemesh/issues/3159

bors try

bors merge

bors try

bors try

bors merge

bors try

bors merge


Safari/iOS not interpreting inline-webworkers correctly.

Operating System: macOS 10.14.6 (18G103)
Node Version: 10.15.1+
NPM Version: 6.14.5
webpack Version: 4.43.0
worker-loader Version: 2.0.0

Expected Behavior
For inline: true to load static Webworker from source URI https://our.url.com/[id].worker.js instead of blob://embed.url.com/[id].worker.js.
Actual Behavior
We're seeing something in both Prod/Dev with how the inline functionality behaves:

The case here being that embedded instances of our app dont go back "home" as it were, but instead look at the parent pages URL and, not finding our webworker (on a different domain) it just ends up erring out.
Code
Webpack config:
output: {
    pathinfo: false,
    filename: 'app.js',
    path: __dirname + '/public',
    chunkFilename: '[id].worker.js'
},
rules: [
    {
        test: /\.worker\.js$/,
        use: [{
            loader: 'worker-loader',
            options: {
                inline: true,
                publicPath: '//our.url.com',
                fallback: false
            }
        }]
    }
]

Imports: (a timer)
import SessionWatcherWorker from './session-manager.worker.js'
const worker = new SessionWatcherWorker()

How Do We Reproduce?
Use config above and embed on a site that is not the origin of the script on iOS/Safari (e.g. use a node server which points to an index.html which uses a script/iframe embed of another local site which actually compiles the webpack/worker-loader)
I'll put together one momentarily and add a new comment on this thread with the project ...

Do you read https://github.com/webpack-contrib/worker-loader#cross-origin-policy and https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src ? Can't reproduce locally

You have invalid url, I will look

Sorry I fell asleep before I could get a demo project together. I'll put one together within 24hrs.
When you say i have an invalid URL do you mean this protocolless format is invalid: publicPath: '//our.url.com',? does it need to be https://our.url.com?

publicPath and inline should, not work together, no sense to use publucPath when you inline

Duplicate https://github.com/webpack-contrib/worker-loader/issues/211


Having yo query private registries, not just the NPM registry

For our internal code base, we have a private repository for hosting private packages and as a proxy for retrieving/caching public packages. I discovered after publishing a generator to this private repository, that yo does not search the repository, even if the npm config or .npmrc file indicates the private repository.
Is there a way to get yo use a different URL when discovering generators?

Try master, the package-json was bumped to support private scoped modules. Planning to do a new release this weekend.
https://github.com/sindresorhus/package-json/compare/v2.0.0...v2.2.0

That would be helpful for private packages hosted in NPM. Unfortunately, we put our private packages in our own registry, not in the NPM registry. After installing master, I see that the registry in my npm config is still not queried.

@DullReferenceException It should in theory, as it reads your scoped auth token, but I had no way of actually testing that. Open an issue on https://github.com/sindresorhus/package-json


Can you tell me the environment required to run the code？

environment required

For training the model, you can check the Prerequisites part in README. For the online demo, we are receiving many issues regarding deployment environment. We are working on getting a stable library version.


Unify the "Create Account" UX

The term "Create account" is not the most accurate in this scenario. This is because accounts are not created by the user, they already exist. Additionally, the terminology and UX is not consistent across Connect and the Web Wallet.
Per SIP-005

All accounts for all possible addresses are said to exist, but nearly all of them are "empty" -- they have a nonce value of 0, and their asset mappings contain no entries. The state for an account is lazily materialized once the Stacks peer network processes a transaction that funds it. That is, the account state is materialized only once a transaction's state-transition inserts an entry into an account's assets mapping for some (possibly zero) quantity of some asset. Even if the account depletes all asset holdings, it remains materialized. Materialized accounts are distinguished from empty accounts in that the former are all represented in a leader's commitment to its materialized view of the blockchain state

Note

On the UI level, this looks to be an additional state, not applicable in the API: a non-materialized account that has never been transacted with.

Proposals

Add another account -> refers to an account that has already been created but not present in the account's list. This is the same term used by Google and Notion.
Reveal another account
Generate another account

Current state

Here's an update on the designs:
Proposed changes

The new term for a new account is Show another account.
On the Accounts list, the new account link is now the last option with similar design to the rest of the account items. This change applies to the Switch account screen is the Web wallet and through the Connect flow.
We are removing the "Create an account" link from the Wallet's menu dropdown. In order to show an account, Users should go to Switch account first.
Changes are reflected in the wallet flow and the connect auth flow.

Figma


[test] require either mdns or avahi

This commit relax the requirement of mDNS so that it's OK when either mdns or avahi is present.

@bukepo , the border router build checks are failing. Can you help take a look?

@bukepo , the border router build checks are failing. Can you help take a look?

fixed, there's no netstat or lsof on our docker image. found an alternative way by looking at /proc to verify the service is up or down.


Start-Process: ... The parameter is incorrect.

Describe the bug
The script can't elevate itself. Start-Process : This command cannot be run due to the error: The parameter is incorrect.
To Reproduce
Steps to reproduce the behavior:

Open Windows PowerShell
Type irm https://christitus.com/win | iex
Execute the command.
See error

Expected behavior
Start-Process : This command cannot be run due to the error: The parameter is incorrect.
At line:68 char:5
+     Start-Process $processCmd -ArgumentList "$powershellcmd -Executio ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Start-Process], InvalidOperationException
    + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand

Screenshots

Additional context
OS: Windows 10 1709
Arch: AMD64

@MessiInter, you will have to open the PowerShell window as admin then. Also, are you still using the Fall Creators Update (1709) in 2024?


Start and stop button do not appear

Hello,
Setup:

k8s cluster

Client Version: v1.28.14
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.15

kubevirt

targetKubeVirtVersion: v1.4.0

rancher v2.10
kubevirt dash board extension (1.1.0, 1.2.0)

Issue:
I can not see the start and stop buttons related to VMs
I do not see any relevant error, everything seems to work because it appears the kubevirt section on the left when I install the extension, the only problem is the buttons
I tried both kubevirt dashboard extension versions, same issue
Regards

Can you please provide the VM resource manifest you're using? The ability to start/stop the VM depends on whether spec.running is defined vs spec.runStrategy is defined. See runStrategy for more details. There is also a Run Strategy column in the Virtual machines list.

This is what I see but If I do what it says, i.e use spec.runStrategy: Always instead of spec.running true, I can not see the start and stop buttons

I see that the spec.running has been deprecated in KubeVirt v1.4. That's why you're seeiing the warning. The latest version of kubevirt extension is targeted against the KubeVirt 1.3.1 (Chart available in this repository). We are going to rebase against newer version eventually which will require to adjust the extension to stop using spec.running to start/stop the VM.
When this is done, the actions on the VM will be available when the spec.runStrategy is set to 'Manual'.


Help, run_gui.ps1 error

My friend has found a fix for this, I have listed the steps on another page: https://github.com/mattyamonaca/layerdivider/issues/48


script loader

This is WIP for https://github.com/BabylonJS/BabylonNative/issues/219 and https://github.com/BabylonJS/BabylonNative/issues/214 because PG needs a way to load .js
Using polyfills as loading JS use DOM.
Once this PR is ine, I'll do a PR in bjs to override BABYLON.Tools.GetAbsoluteUrl and BABYLON.Tools.LoadScript from nativeengine init as it seems the best way to do it after talking to @sebavan .
the NativeScript polyfill uses the ScriptLoader. I'm running into 1 c++ issue:
I need to call onSuccess and onError JS function to loadScript. I tried many things with lamba, std::move, std::unique,... to push to Napi::FunctionReference to that function without success. I used a new/delete.  https://github.com/BabylonJS/BabylonNative/pull/274/files#diff-827872a1f803d4a7fc75b6c63e938a2cR42

Once this PR is ine, I'll do a PR in bjs to override BABYLON.Tools.GetAbsoluteUrl and BABYLON.Tools.LoadScript from nativeengine init as it seems the best way to do it after talking to @sebavan .

This isn't going to work. Overriding is fine for legacy js files, but it doesn't work with ES6 modules. We will have to come up with a different way. See #268.

I will replace this plugin with JS code in bjs. Closing.


Use default template for fabric8-online-docs PR builds

See https://github.com/fabric8io/fabric8-online-docs/pull/442

@jmelis @riuvshin I'd merge but we also need to delete the old job. can one of you delete the old job & merge? Thanks!

[test]


contrib: avoid building unnecessary vpp targets

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

looks like this needs a couple of fixes (putting back the py hack, maybe removing the now unused CMAKE_ENABLE_TESTING cmake var

Interesting, that was working fine locally. Probably some caching issue.

overall, looks great - what i would have done when i updated if i had known how

Only got to this solution after fiddling with and retrying locally all options we chatted about. Should've thought about it but I somehow missed it ...

/retest

Awesome!! Thank you @phlax, you did all of the heavy lifting! ;-)


selection language #element selector and compatibility with Jmol syntax _element

NGL offers a selection language similar to RasMol's. It introduces also a # selector for elements such as in #C for selecting all carbon atoms.
Jmol has such a capability (see Jmol reference under chemical element) but uses the underscore instead (_C), the #symbol being used for comments in rasmol scripts.
Would it seemed desirable to accept Jmol's syntax for elements?

Yes and it should have been _ from the beginning. Added _ and going to remove # after a grace period. See commit ba871f569794019bac938984325af2b635e636fc.


Make R dependency optional

It literally took ma hours to install R dependencies. We should make them optional and reimplement in Python whatever can be implemented in Python

yes, that is what this #40 starts to do. wdyt?
it allows to use the Python implemented estimators without loading anything R-related

OK, perfect ! For project monitoring, it is important to open issues first and then PRs.

some example of how it is handled in nilearn https://github.com/nilearn/nilearn/blob/main/nilearn/plotting/tests/test_surf_plotting.py#L258
(optional import, then import error if not loaded, and optional tests if not loaded)


Script aml-compute-setup.sh does not install correct dependency for typing_extensions library

Creating a brand new AML compute instance and running the aml-compute-setup.sh script from this repository seems to successfully install msticpy.py
However, upon trying to import the library the following error is generated:

Python 3.8.1 (default, Jan  8 2020, 22:29:32)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.

import msticpy
Traceback (most recent call last):
File "", line 1, in
File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/msticpy/init.py", line 34, in
from .nbtools.nbinit import init_notebook, current_providers
File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/msticpy/nbtools/init.py", line 20, in
from . import nbdisplay
File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/msticpy/nbtools/nbdisplay.py", line 11, in
from bokeh.io import output_notebook
File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/bokeh/io/init.py", line 24, in
from .doc import curdoc
File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/bokeh/io/doc.py", line 29, in
from .state import curstate
File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/bokeh/io/state.py", line 53, in
from ..document import Document
File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/bokeh/document/init.py", line 50, in
from .document import DEFAULT_TITLE ; DEFAULT_TITLE
File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/bokeh/document/document.py", line 56, in
from ..core.json_encoder import serialize_json
File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/bokeh/core/json_encoder.py", line 75, in
from ..util.serialization import (
File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/bokeh/util/serialization.py", line 51, in
from typing_extensions import Literal, TypedDict, TypeGuard
ImportError: cannot import name 'TypeGuard' from 'typing_extensions' (/anaconda/envs/azureml_py38/lib/python3.8/site-packages/typing_extensions.py)

Further inspection indicates the "TypeGuard" function isn't available in the version of installed typing_extensions library. Log of script output indicates typing_extensions-<IP_ADDRESS> was to be installed, but a listing of current modules via pip shows typing-extensions-<IP_ADDRESS>

I think that this may have been an issue with Bokeh.
https://github.com/holoviz/panel/issues/2754
Seems you might have been unlucky enough to be trying this out with the published release having this bug in it.

I was able to re-create this just this week, working on our finalized Notebooks environment.
According to this page: https://docs.microsoft.com/en-us/azure/sentinel/notebook-get-started
if we get the message "Runtime dependency of PyGObject is missing" the solution is documented here: https://github.com/Azure/Azure-Sentinel-Notebooks/wiki/"Runtime-dependency-of-PyGObject-is-missing"-error

!conda install --yes -c conda-forge pygobject

Ran that and it seemed to resolve the Pygobject issue, but then broke typing-extensions, which I fixed by upgrading:

%pip install --upgrade typing-extensions

It seems to work right now? There's definitely some incongruousness still, may help to engage with the MSAL team and make sure they understand their upstream provider properly.

I'll fix the script to add this.
I also have an update to the parts that install PyGObject and Libsecret.

A bit of background.
Seems that Bokeh updated their code to use a class from typing extensions 3.10+ but never added this to their setup.py as a dependency.
It works without this in Python 3.10 but not earlier Python versions that don't have version 3.10 of typing extensions installed.

From msticpy 2.0  typing-extensions 4.2 and greater is a requirement and will be installed with msticpy, if it isn't already there, so there should be no need for this in the compute setup script.


Issues with large playlists

Hi,
I have very long playlists with 2000+ songs.
It still submits the listen to listenbrainz after the track has finished.
But the "listening now" function does not work.
I get this error regardless of if the plugin is enabled or not:
[2023-12-09 18:03:21.769 +13:00] [ERR] [194] Jellyfin.Server.Middleware.ExceptionMiddleware: Error processing request. URL "POST" "/Sessions/Playing".
Error: SQLitePCL.pretty.SQLiteException: Expression tree is too large (maximum depth 1000)

Obviously I could change the SQLite settings to accept this (which I wont do because that is a bad idea).
I noticed that I could still query the api at /Sessions and still displays the the correct NowPlayingItem

Hi, maybe that error prevents the server from emitting the playback start event?
If the event is emitted, then the plugin should react on it - you should see Picking up playback start event for item ... in the log when that happens.
If the events are picked up by the plugin, then there must be an error somewhere in the logs that prevented sending a now_playing listen. Otherwise there are no playback start events emitted, so the plugin doesn't know something has started playing.

Obviously I could change the SQLite settings to accept this (which I wont do because that is a bad idea).

While you are right, you can do so temporarily to see if it's the root cause or not - increasing the limit will either fix the issue or at least will eliminate this variable.

Closing due to inactivity.


add task for adding repository keys via file

Signed-off-by: Bernd Mueller<EMAIL_ADDRESS>

Replaced by #294.


NIFI-8084: add keyboard functionality and aria labels to checkboxes

Thank you for submitting a contribution to Apache NiFi.
Please provide a short description of the PR here:
This PR adds keyboard functionality and aria labelling to checkboxes in NiFi.
Testing
Build NiFi and click on a checkbox (for example, inside the Configure Processor's Settings tab). You should be able to check/uncheck the checkbox with your space bar. If you inspect the div.nf-checkbox element, you'll see the aria-checked value toggle true/false. The checkbox should be added to the tab order of the page, and each checkbox now has a focus style matching the default stylings of supported browsers.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[ ] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?

[ ] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[ ] Has your PR been rebased against the latest commit within the target branch (typically main)?

[ ] Is your initial contribution a single, squashed commit? Additional commits in response to PR reviewer feedback should be made on this branch and pushed to allow change tracking. Do not squash or use --force when pushing to allow for clean monitoring of changes.

For code changes:

[ ] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
[ ] Have you written or updated unit tests to verify your changes?
[ ] Have you verified that the full build is successful on JDK 8?
[ ] Have you verified that the full build is successful on JDK 11?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
[ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
[ ] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

[ ] Have you ensured that format looks appropriate for the output in which it is rendered?

Note:
Please ensure that once the PR is submitted, you check GitHub Actions CI for build issues and submit an update to your PR as soon as possible.

I'm having trouble verifying this one. I tried clicking on the Processor Name label in the Configure Processor dialog. Then pressed tab, hoping it would select the 'Enabled' checkbox. But it didn't. Tried tab-ing around but with no luck. Then I tried clicking on the checkbox. This unchecked the checkbox. Then tried spacebar and return to try to change the value of the checkbox but without any success.

I'm having trouble verifying this one. I tried clicking on the Processor Name label in the Configure Processor dialog. Then pressed tab, hoping it would select the 'Enabled' checkbox. But it didn't. Tried tab-ing around but with no luck. Then I tried clicking on the checkbox. This unchecked the checkbox. Then tried spacebar and return to try to change the value of the checkbox but without any success.


[HOLD] CLOUDP-266544: Independent dbuser rebased

Rebased version of #1769 on top of #1812
All Submissions:

[X] Have you signed our CLA?

Closing this one and keeping https://github.com/mongodb/mongodb-atlas-kubernetes/pull/1769
Comments were addressed in the other PR


python312Packages.rioxarray: 0.15.7 -> 0.17.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python312Packages.rioxarray is: geospatial xarray extension powered by rasterio
meta.homepage for python312Packages.rioxarray is: https://corteva.github.io/rioxarray/
meta.changelog for python312Packages.rioxarray is: https://github.com/corteva/rioxarray/releases/tag/0.17.0
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.17.0 with grep in /nix/store/xqb5hfmqbq8nc9kz1bsvdjp1m1xw4p64-python3.12-rioxarray-0.17.0
found 0.17.0 in filename of file in /nix/store/xqb5hfmqbq8nc9kz1bsvdjp1m1xw4p64-python3.12-rioxarray-0.17.0

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

5 total rebuild path(s)

5 package rebuild(s)

First fifty rebuilds by attrpath

python311Packages.rio-tiler
python311Packages.rioxarray
python312Packages.rio-tiler
python312Packages.rioxarray

Instructions to test this update (click to expand)

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

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

Or:
nix build github:r-ryantm/nixpkgs/16963eb543f5fcfb630468bc55391aee485699bc#python312Packages.rioxarray

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/xqb5hfmqbq8nc9kz1bsvdjp1m1xw4p64-python3.12-rioxarray-0.17.0
ls -la /nix/store/xqb5hfmqbq8nc9kz1bsvdjp1m1xw4p64-python3.12-rioxarray-0.17.0/bin

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

4 packages failed to build:

python311Packages.rio-tiler
python311Packages.rio-tiler.dist
python312Packages.rio-tiler
python312Packages.rio-tiler.dist

4 packages built:

python311Packages.rioxarray
python311Packages.rioxarray.dist
python312Packages.rioxarray
python312Packages.rioxarray.dist

Maintainer pings
cc @autra @imincik @l0b0 @nh2 @nialov @sikmir @willcohen for testing.

python3.11-rio-tiler>             with pytest.raises(rioxarray.exceptions.OneDimensionalRaster) as error:
python3.11-rio-tiler>                 dst.tile(tile.x, tile.y, zoom, auto_expand=False)
python3.11-rio-tiler> >           assert (
python3.11-rio-tiler>                 str(error.value)
python3.11-rio-tiler>                 == "At least one of the clipped raster x,y coordinates has only one point."
python3.11-rio-tiler>             )
python3.11-rio-tiler> E           AssertionError: assert 'At least one...e this error.' == 'At least one...ly one point.'
python3.11-rio-tiler> E
python3.11-rio-tiler> E             Skipping 59 identical leading characters in diff, use -v to show
python3.11-rio-tiler> E             -  one point.
python3.11-rio-tiler> E             +  one point.. Set allow_one_dimensional_raster=True to disable this error.
python3.11-rio-tiler> tests/test_io_xarray.py:57: AssertionError
...
       > FAILED tests/test_io_xarray.py::test_xarray_reader - AssertionError: assert 'At least one...e this error.' == 'At least one...ly...
       > ================= 1 failed, 267 passed, 13 warnings in 30.23s ==================

Result of nixpkgs-review pr 328941 run on x86_64-linux 1

8 packages built:

python311Packages.rio-tiler
python311Packages.rio-tiler.dist
python311Packages.rioxarray
python311Packages.rioxarray.dist
python312Packages.rio-tiler
python312Packages.rio-tiler.dist
python312Packages.rioxarray
python312Packages.rioxarray.dist

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

8 packages built:

python311Packages.rio-tiler
python311Packages.rio-tiler.dist
python311Packages.rioxarray
python311Packages.rioxarray.dist
python312Packages.rio-tiler
python312Packages.rio-tiler.dist
python312Packages.rioxarray
python312Packages.rioxarray.dist


SA1118 Does Not Allow Collection Initalisers

I am using the StyleCop.Analyzers NuGet package version 1.0.2.
The following is flagged as an error:
var x = new SomeCustomClass(
    "value1",
    "value2",
    1,
    2,
    new[] // This breaks SA1118
    {
        new SomeOtherCustomClass("item1"),
        new SomeOtherCustomClass("item2"),
        new SomeOtherCustomClass("item3"),
        new SomeOtherCustomClass("item4"),
        new SomeOtherCustomClass("item5"),
    },
    5);

Given StyleCop allows anonymous objects to span multiple lines due to indentation (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/pull/2650), it should also allow collections. I'm not sure if this is a bug or a missing feature.

Seconded! Don't understand why object initializers are allowed but not array initializers

I'm hitting the same issue. Trying to figure out what needs to be done here. Is it just following this commit and basically just adding SyntaxKind.ArrayCreationExpression to ArgumentExceptionSyntaxKinds?

I agree that this is pretty much equivalent to the case addressed by the commit that @bddckr linked.

Is there any update?


Is it necessary to add configurations in haproxy.conf?

I do not understand this:
<yourdomain.com>: IP address / hostname of open-balena-haproxy
api.<yourdomain.com>: IP address / hostname of open-balena-haproxy
registry.<yourdomain.com>: IP address / hostname of open-balena-haproxy
vpn.<yourdomain.com>: IP address / hostname of open-balena-haproxy
s3.<yourdomain.com>: IP address / hostname of open-balena-haproxy
tunnel.<yourdomain.com>: IP address / hostname of open-balena-haproxy
admin.<yourdomain.com>: IP address / hostname of open-balena-ui, or open-balena-admin-haproxy if using K8S ingress
dashboard.<yourdomain.com>: IP address / hostname of open-balena-ui, or open-balena-admin-haproxy if using K8S ingress
postgrest.<yourdomain.com>: IP address / hostname of open-balena-postgrest, or open-balena-admin-haproxy if using K8S ingress
remote.<yourdomain.com>: IP address / hostname of open-balena-remote, or open-balena-admin-haproxy if using K8S ingress
Do I have to add configurations to open-balena's haproxy.conf? If so, can you give me the complete haproxy.conf file?
If I enter admin. it results in error 503
Regards
Matias

No, you just need to set your dns settings on your hosting provider to point to those ip address / hostnames, which need to be publicly exposed.

@dcaputo-harmoni as this:

results:

@dcaputo-harmoni logs of openbalena-admin-postgrest-1 servuce;
28/Nov/2023:19:10:43 +0000: Attempting to reconnect to the database in 32 seconds...
28/Nov/2023:19:11:15 +0000: {"details":"invalid integer value "xxxxxx@db.abcde.online:5432" for connection option "port"\n","code":"","message":"Database connection error. Retrying the connection."}
Regards

Just to confirm - there should be two haproxy instances in your environment, one for open-balena and one for open-balena-admin.  The admin related domain names (admin, dashboard, postgrest, remote) should all be pointing to the open-balena-admin haproxy instance's public IP address / fqdn.

@dcaputo-harmoni  I only have 1 instance of haproxy according to this:

@dcaputo-harmoni
The service.yml file had the network defined twice and I had to modify it because I got an error:
version: "2.0"
services:
ui:
#docker exec -it y ejecutar  npx update-browserslist-db@latest
extends:
file: ./common.yml
service: component
image: harmonidcaputo/open-balena-ui:${OPENBALENA_UI_VERSION_TAG}
depends_on:
- postgrest
- remote
environment:
PORT: 8080
OPEN_BALENA_JWT_SECRET: ${OPENBALENA_JWT_SECRET}
OPEN_BALENA_S3_URL: https://s3.${OPENBALENA_HOST_NAME}
OPEN_BALENA_S3_ACCESS_KEY: ${OPENBALENA_S3_ACCESS_KEY}
OPEN_BALENA_S3_SECRET_KEY: ${OPENBALENA_S3_SECRET_KEY}
REACT_APP_OPEN_BALENA_UI_URL: http://admin.${OPENBALENA_HOST_NAME}:8080
REACT_APP_OPEN_BALENA_POSTGREST_URL: http://postgrest.${OPENBALENA_HOST_NAME}:8000
REACT_APP_OPEN_BALENA_REMOTE_URL: http://remote.${OPENBALENA_HOST_NAME}:10000
REACT_APP_OPEN_BALENA_API_URL: https://api.${OPENBALENA_HOST_NAME}
REACT_APP_OPEN_BALENA_API_VERSION: ${OPENBALENA_API_VERSION_TAG}
ports:
- "8080:8080"
networks:
openbalena_default:
aliases:
- admin.${OPENBALENA_HOST_NAME}
remote:
extends:
file: ./common.yml
service: component
image: harmonidcaputo/open-balena-remote:${OPENBALENA_REMOTE_VERSION_TAG}
environment:
BALENARC_BALENA_URL: ${OPENBALENA_HOST_NAME}
HOST_MODE: ${OPENBALENA_ADMIN_HOST_MODE}
ports:
- "10000:10000"
- "10001:10001"
- "10002:10002"
- "10003:10003"
- "10004:10004"
- "10005:10005"
- "10006:10006"
- "10007:10007"
- "10008:10008"
- "10009:10009"
networks:
openbalena_default:
aliases:
- remote.${OPENBALENA_HOST_NAME}
postgrest:
extends:
file: ./common.yml
service: component
image: harmonidcaputo/open-balena-postgrest:${OPENBALENA_POSTGREST_VERSION_TAG}
environment:
PGRST_DB_URI: postgres://${OPENBALENA_DB_USERNAME}:${OPENBALENA_DB_PASSWORD}@db.${OPENBALENA_HOST_NAME}:${OPENBALENA_DB_PORT}/resin
PGRST_JWT_SECRET: ${OPENBALENA_JWT_SECRET}
ports:
- "8000:8000"
networks:
openbalena_default:
aliases:
- postgrest.${OPENBALENA_HOST_NAME}
networks:
openbalena_default:
external: true
Also in the compose file change "docker-compose" to "docker compose" (remove the -)
It is the only thing that changes after doing the git clone of the repository
Openbalena and openbalena admin are on the same server

If you aren't using a second haproxy instance, you will need to either reconfigure your existing haproxy instance to route to those containers based on the hostnames (i.e. remote.xyc.com goes to the open-balena-remote container) or make sure the open-balena-admin services each have their own public IP, and point the hostnames at those IP addresses.

@dcaputo-harmoni
That's what I said at the beginning, and why don't I have another instance of haproxy?
Can you give me the new updated haproxy.cfg file please?...or add it to the repository

@dcaputo-harmoni
or the other thing is that you add the haproxy service to docker compose.....so that everything works well, and there are no errors with other users of the openbalena community

@dcaputo-harmoni
For me the unclear step to run openbalena-admin according to the readme is the definition of the domains:
<yourdomain.com>: IP address / hostname of open-balena-haproxy
api.<yourdomain.com>: IP address / hostname of open-balena-haproxy
registry.<yourdomain.com>: IP address / hostname of open-balena-haproxy
vpn.<yourdomain.com>: IP address / hostname of open-balena-haproxy
s3.<yourdomain.com>: IP address / hostname of open-balena-haproxy
tunnel.<yourdomain.com>: IP address / hostname of open-balena-haproxy
admin.<yourdomain.com>: IP address / hostname of open-balena-ui, or open-balena-admin-haproxy if using K8S ingress
dashboard.<yourdomain.com>: IP address / hostname of open-balena-ui, or open-balena-admin-haproxy if using K8S ingress
postgrest.<yourdomain.com>: IP address / hostname of open-balena-postgrest, or open-balena-admin-haproxy if using K8S ingress
remote.<yourdomain.com>: IP address / hostname of open-balena-remote, or open-balena-admin-haproxy if using K8S ingress
what I understand about that is to add the dns of each subdomain in my case in cloudflare and then run
open-balena-admin/scripts/quickstart -j [OPENBALENA_JWT_SECRET] -v [OPENBALENA_API_VERSION_TAG]
and
open-balena/scripts/compose up -d
If you have to modify haproxy.cfg of open-balena, a generic way that I would do would be to have the complete harpoxy.cfg in the repository (open-balena + open-balena-admin) to replace the haproxy.cfg and everything works.
With the changes indicated above that I made it still doesn't work, and I ask you because I honestly don't know what I need to add for everything to work well.
Do you speak Spanish?

I'm sorry but I'm not able to support the docker-compose environment, we are using it in k8s and it works fine with the helm scripts.  I know that others who have posted here have got it working with docker-compose so perhaps they can help you.

@dcaputo-harmoni
Can you give me the detailed step by step to execute everything using helm?

@dcaputo-harmoni
From what I see, is it changing everything or not? In that case, I prefer not to touch what already works.
Who has implemented it with docker compose?


add partOf in associated resources

example on http://library.bdrc.io/search?r=bdr:W22084_S0013

Which template is used behind search?r=  ?

it's workAllAssociations

There should be workPartOf as well, don't you think ?

sure


active coders contributors here

I'm going to need all active coders to be added to this repos so I can assign them issues. For example, I need to assign Olga to #25

There seem to be a couple of email addresses in the GitHub-username column.

all invited

There seem to be a couple of email addresses in the GitHub-username column.

Okay, I'll see if I can sort that out.
thanks!

Is it the case that @johnaell has been invited but not accepted?

Okay. Could you please do so?
Or give me admin privliges such that I can invite people, resend invites etc.

Your admin now.

@xrotwang ich danke dir 🙏


Assertions in hardware

This PR adds a function named assertion which allows to define hardware-level ("run-time") assertions. Failed assertion will fail a test.
TODO:

[ ] Write a test
[ ] Add docstrings
[ ] Handle assertions in regression tests too
[ ] Assertions with source locations (to help easily find the failed assertion)

Maybe move the gp to gen_params and other naming changes to separate PR?

Maybe move the gp to gen_params and other naming changes to separate PR?

These are crucial for this to work, but you're right, this PR would be easier to review this way.

Now I see that we should probably move DependencyManager to transactron, as assertions aren't something coreblocks specific and they need the manager.

No, they're not, but they should be syntactically simple to use, and currently the easiest way to do so is to use GenParams.


[DX] PR Change the way that compiling looks like

I added the configuration changes to improve the way that the compiling looks for webpack and rspack.
📷 RSPACK

Before:

After:

Feel free to try the changes, and let me know if you need anything else, or if there is something that you don't like 💓💓
(This PR is linked to https://github.com/jherr/create-mf-app/issues/68)
Additional thing
I also added this line inside module.exports.devServer:
watchFiles: [path.resolve(__dirname, 'src')],

`
It solves a bug/issue regarding remote mfes not having HMR.
I found I problem where using your create-mf-app library for creating a host and a remote app. Then changes in the remote or the host will have HMR (Hot Module Replacemente) in the host, but not in the remote. Like in this image:

You can use the code of this mini sample to try to check it if you want: https://github.com/CosmeValera/ReactProjects/tree/master/micro-fes/micro-fe-basic-sample-of-host-and-remote-linked
or if you want we can talk about it somewhere else, in another PR/Issue, but yes, basically that line fixes this problem of the remote not having HMR. I found this code snippet researching for having hmr with webpack, however it seems that it makes the program slightly slower, not that I notice it at all, but maybe it could cause problem in some scenario.

⚠ Not related ISSUES ⚠
I also found 2 things.

react-esm does not have rspack config file. So for what I understand whenever you pick react-esm and rspack it picks webpack anyway. I don't know if this behaviour is intended in the sense that rspack is not compatible with react-esm, but if it was an oversight, I feel that the rspack file for react-sm must be very similar as the one for react.
When executing any script in a rspack repo, an error regarding not understanding 'NODE_ENV' would arise in my terminal, maybe i did something wrong, I don't know anything about rspack :_(, I just did npm i && npm start.

I'm happy about you giving me more feedback, I'm open to keep helping the repo with what I can 💓💓

Let's see if we can pull in @ScriptedAlchemy to give us some additional insights into rspack behaviors.

In my case what I did to try the rspack versions was to remove the NODE_ENV part in the scripts in the package.json.
In this case I consider that the goal of the PR is fully addressed with the code given. What I added in the comment starting with ⚠ Not related ISSUES ⚠ was matters for other issues/PRs. You can already test out the webpack and rspack apps 😊👍

Let's see if we can pull in @ScriptedAlchemy to give us some additional insights into rspack behaviors.

It was my fault for being messy and talking about rspack here. But I would prefer to touch the rspack issues in another place, and maintain this PR just for the compiling idea. I created this issue for the rspack problem that I mentioned: https://github.com/jherr/create-mf-app/issues/70

🧠 What changed:
In these last commits I extracted the method printCompilationMessage to another file which I have added in templates/compiler/compilation.config.ts.
And in src/index.ts I added the code to have a dynamic import of the compilation.config.js file:
const copyCompilationConfig = (projectName: string) => {
  const sourcePath = path.join(__dirname, '../templates/compiler/compilation.config.js')
  const destinationPath = path.join(projectName, 'compilation.config.js')

  fs.copyFileSync(sourcePath, destinationPath)
}

📷 Folder structure
1. create-mf-app project

templates/compiler/compilation.config.ts
2. host project

compilation.config.js

ping


6502 addressing modes

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@2219f93). Click here to learn what that means.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             master        #1   +/-   ##
==========================================
  Coverage          ?   100.00%
==========================================
  Files             ?         6
  Lines             ?        27
  Branches          ?         3
==========================================
  Hits              ?        27
  Misses            ?         0
  Partials          ?         0

Impacted Files
Coverage Δ

src/6502/cpu.js
100.00% <100.00%> (ø)

src/6502/instructions/addressings/abs.js
100.00% <100.00%> (ø)

src/6502/instructions/addressings/immediate.js
100.00% <100.00%> (ø)

src/6502/instructions/addressings/indirect.js
100.00% <100.00%> (ø)

src/6502/instructions/addressings/relative.js
100.00% <100.00%> (ø)

src/6502/instructions/addressings/zero-page.js
100.00% <100.00%> (ø)

... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2219f93...7f475b5. Read the comment docs.


[FEATURE] Design for View Questions [How it works]

Description
@ykdojo Any design for the View questions section? Please purpose some designs for that page so that we can take it forward. I think this section will be more interesting and more complicated too because it will contain the question, category, hints, scratchpad, and discussion section where users will get to know the other's opinions and strategic thinking for the specific question.

Okay, I'll look into that issue.


Create .DEREK.yml as per faas-cli

Create .DEREK.yml as per faas-cli repo

This enables Derek to work here

/close


Getting the same any time you try to overload class RailsAdmin::MainController.
I suppose some methods are not present the moment you call the overload - caused by the meta programming essence of the project. The overloading must be failing to get the injected methods and breaks on build.
No prrof but that's what tells my intuition.


Update README.md

Fixes Jira link and clarifies this will only work for Jira Server (unless the person certifies its solution on the Atlassian marketplace).

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Multiple Entries

Can you please add the feature for having multiple text entries thank you :D

Where do you want multiple text entries appear :)?


Assignment completion<EMAIL_ADDRESS>

@akashshinde44comp Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.


PyQuil changes for Forest 2.0 and QCS

Hi everyone,
Rigetti recently announced the Quantum Cloud Services platform (https://www.rigetti.com/qcs) see also: https://medium.com/rigetti/introducing-rigetti-quantum-cloud-services-c6005729768c
This is a complete overhaul of the QPU access model that puts developers much closer to the metal. As such, there's a whole set of changes included in this commit that enable the new improvements. Feel free to nose around at the new code or hang tight for more goodies and documentation coming soon.

Looking nice, going to try and fix the flake8 stuff now

@mpharrigan before merging, let's be sure to update the pip install commands to refer to pypi

🎉


Local invoking doesn't work

Hi,
Im trying to run default script eg serverless invoke local -f version-info but im getting error

{
"errorMessage": "Unable to start Chrome. If you have the DEBUG env variable set,there will be more in the logs.",
"errorType": "Error"
}

Node 6.14, macOS 10.13
Part of most important (i think) log

@serverless-chrome/lambda: Error trying to spawn chrome: TypeError: Cannot read property 'toString' of undefined
at Launcher. (.build/.webpack/service/src/handlers/webpack:/node_modules/chrome-launcher/dist/chrome-launcher.js:170:1)
...
Error occured in serverless-plugin-chrome wrapper when trying to ensure Chrome for default() handler. { flags: [ '--window-size=1280,1696', '--hide-scrollbars' ],
chromePath: '/var/task/headless-chromium' } Error: Unable to start Chrome. If you have the DEBUG env variable set,there will be more in the logs.

Also this is invalid directory /var/task/headless-chromium
Thanks

Possible duplicate of #89