More explicit documentation will help

The current documentation in the development version is very helpful with very nice examples, yet in many cases, it does not include all options allowed for a command.
For example, panel can take margins and options, and although those are documented here many questions remain.
For example can I control font color?
Adding reference to attributes by linking to a page such as this or a similar page will be helpful for someone to locate all attributes used.
Yet more importantly knowing the names of the parameters allowed for each class used, will help - especially for beginners.

Please feel free to make a PR to add this clarification.

OK @philippjfr ,
Since you were helpful, I will try and contribute. Yet I really do not know which list of attributes will be best. Here are examples:
https://www.w3.org/Style/CSS/all-properties#list
http://www.stylinwithcss.com/resources_css_properties.php
https://www.w3.org/TR/CSS/#css
Which one of those links is preferred and what attributes you do not support due to possible conflict. Knowing this will help.

Great thanks. I think the w3 links are the most canonical reference for html/css. I think there's no way to really reason about which ones will have an effect it'll depend on the type of object and other factors.

Ok @philippjfr ,
This first link is a bit overwhelming, and the last link it too detailed , Perhaps adding all of those will be best.
In any case the documentation should have a warning that some attributes will not work with some objects and situations, yet at least the data will be out there. I was looking for the documentation file for the customization, yet only found https://github.com/pyviz/panel/blob/master/doc/user_guide/index.rst
I did not find the source for the customization file where the links should be added.  In any case, I pan on some simple cosmetic fix rather than a full solution for documentation.
Hopefully you can help me out here so I can do the leg work.

I suppose as a non-notebook user this will be a bit of a pain for you since most of our docs are generated directly from notebooks, e.g.: https://github.com/pyviz/panel/blob/master/examples/user_guide/Customization.ipynb
If you suggest an edit I can add it some time this evening when my flight lands.

Sure Philipp,
Jupyter is a nice tool I used in the past, yet I rather you check the text anyway, so here are suggested minor fixes - in between <<>>:
Edit 1:
css_classes
The css_classes allows associating a CSS class with a component which allows referencing the component from a CSS style. CSS styles can be embedded in raw form or by referencing an external .css file by providing each to the panel extension using the raw_css and css_files arguments; both should be supplied as lists. Outside the notebook or if we want to add some CSS in an external module or library we can simply append to the pn.config.raw_css and pn.config.js_files config parameters.
<< For information on CSS, please visit the official Cascading Style Sheets
home page, yet note that some CSS elements may not be supported depending on use - although most styles should work. >>
To demonstrate this let us define a CSS class called widget-box which we will give a background and a nice border:
Edit 2:
style
Certain components, specifically markup related panes, expose a style parameter which allows defining CSS styles which apply to the HTML container of the Pane's contents, e.g. the Markdown pane. <<The example below shows a simple font change using the 'font-family' property of the style, yet many other attributes may be applicable from the following list. >>
In the future
The above is just a minor fix that will cover my little question, yet in the future you should consider writing properties for each interface you have. For example:
panel.pane.Markdown
Properties:
width - int - width of widget
height - int - height of widget
style - dict - dictionary containing css style properties and their values from following list
margin - tuple - defines space around the element in the format (top, right, bottom, and left)
background - define background color for the element using one of the following colors
And have a nice trip!


Default branch needs to show what's available

This is a pinned repo on the atsign-foundation org, but the present default branch (master) is essentially empty.
There's plenty going on in dev_env, but how are people supposed to know that?

@cpswan The master branch is updated with the latest published code.


[Bug]: Window doesnt appear

What happened?
I have an old pc, I install the last release and when I click on it nothing happens, but when I open the task manger I see the 4 background processes of vibe.exe. And I try to uninstall and install the old_cpu version and still when I click nothing happens
Steps to reproduce

step one...
step two...

What OS are you seeing the problem on?
Window
Relevant log output
C:\Users\Support\AppData\Local\vibe>[2024-06-17T10:54:57Z DEBUG vibe_desktop] Vibe App Running
[2024-06-17T10:54:57Z DEBUG vibe_desktop::setup] CPU Features
    {"avx":{"enabled":false,"support":true},"avx2":{"enabled":false,"support":false},"f16c":{"enabled":false,"support":false},"fma":{"enabled":false,"support":false}}
[2024-06-17T10:54:57Z DEBUG vibe_desktop::setup] COMMIT_HASH: 6c5ace63edd36807905fd906c26ec34fab1325ea

This is the log I get

Thanks for reporting!

I have an old pc, I install the last release and when I click on it nothing happens,

When you installed the regular exe of vibe, does vibe prompted an error message box and opened tutorial how to download the older exe? because it should, not sure if it was shown.
What os are you running on?

Thanks for reporting!

I have an old pc, I install the last release and when I click on it nothing happens,

When you installed the regular exe of vibe, does vibe prompted an error message box and opened tutorial how to download the older exe? because it should, not sure if it was shown.
What os are you running on?

I have same problem. Its not prompted any error. My os is custom win10. I try to install it in the compusters in my institution
that has custom win10.

Please try to latest version


fix(#2012): Adding minor padding to bottom of Scrollable

Before (the change)

After (the change)

Make sure that you've checked the boxes below before you submit the PR

[x] I have read and followed the setup steps
[x] I have created necessary unit tests
[x] I have tested the functionality in both React and Angular.

Steps needed to test
Create a modal using the actions slot, and include a form item in the content.

:tada: This PR is included in version 1.17.0-alpha.94 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 4.17.0-alpha.37 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 3.0.0-alpha.5 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Reports

Ok... Where is the coveralls test?

Merging this without coveralls blessing. Running coverage locally does show some missing coverage in reports and registers. We'll have to deal with this later on.


Argument 0 (NSNumber) of RCTUIManager.measure must not be null

I basically copied your example into a scrollview in a navigatorIOS component. It shows me this error. I guess it is the updatePosition function of your package which causes the error. Any suggestions? I am new to rn.
Greetings,
i7clock

Ok i looked at your updatePosition function and its pretty cool and def not the problem. I guess I rendered a loading view where the refs were not available yet. This caused the error.. closing this!

https://github.com/alinz/react-native-dropdown/issues/10
see my answer here, you're basically right @i7clock


text_style.dart copyWith() method does not include package parameter.

Steps to Reproduce

Create default text style in the package nested in the flutter application.
Define another style using .copyWith() method and custom front that is placed in the package folder.
Run the application and see how the font is not being applied.

**
Actual results:

Logs

[✓] Flutter (Channel beta, 2.5.0-5.2.pre, on macOS 11.5.2 20G95 darwin-x64, locale en-GB)
    • Flutter version 2.5.0-5.2.pre at /Users/Shared/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 19c61fed0d (2 weeks ago), 2021-08-18 17:10:31 -0700
    • Engine revision 7a4c4505f6
    • Dart version 2.14.0 (build 2.14.0-377.7.beta)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at /Users/juliadebecka/Library/Android/sdk
    • Platform android-30, build-tools 30.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.11.0

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.60.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.26.0

[✓] Connected device (2 available)
    • Julia’s iphone ♥ (mobile) • ios        • iOS 14.7 18G68
    • macOS (desktop)            • macos                     • darwin-x64 • macOS 11.5.2 20G95 darwin-x64

• No issues found!

I am able to reproduce the issue on the latest stable 2.2.3 and the master 2.6.0-1.0.pre.103 channel the package parameter is missing in the copyWith Constructor of Textstyle.

The package parameter is handled oddly, it doesn't appear in the merge, copyWith, apply, ==, hashCode methods, even though it appears to be an intrinsic part of the TextStyle - https://github.com/flutter/flutter/pull/12142
@mit-mit - maybe you can shed some light on this?

Maybe @szakarias knows?

I agree, the package parameter is an intrinsic part of the TextStyle class. This is clearly a bug.


Allow subdomains in custom dns search list

Addresses #829 , can specify subdomains.
Regex specifies : must start with alphanumeric, may have no more
than two consecutive hyphens, must not end or start with hyphen,
final word must be at least two apha characters.
Signed-off-by: Rob Gill<EMAIL_ADDRESS>

fantastic work guys!!


Use Exactness info in Catalog stats.

When we get stats info, we should not ignore the exactness flag.
This PR checks the flag before answer whether a stat exists.

The stats can be used to provide an estimation even when they are not exact.


Ignore case of repos url

Even though vim-plug clones repos correctly with lower case, when you change case of Plug 'repo' statement it fails.
Example:
Plug 'Shougo/neocomplete.vim'
:PlugInstall
Plug 'shougo/neocomplete.vim'
:PlugInstall
x neocomplete.vim:
    Invalid URI<EMAIL_ADDRESS>    Expected<EMAIL_ADDRESS>    PlugClean required.

Maybe lower case should be always used to avoid mismatches?

Correct me if I'm wrong, but as far as I know, there's no guarantee that a Git URL is case-insensitive. GitHub does seem to use case-insenstive URLs, but it's not always the case for other repositories.
# OK
git clone https://github.com/apache/hbase.git

# OK
git clone https://github.com/apache/HBASE.git

# OK
git clone git://git.apache.org/hbase.git

# NOT OK
git clone git://git.apache.org/HBASE.git
  Cloning into 'HBASE'...
  fatal: remote error: access denied or repository not exported: /HBASE.git

Which means vim-plug should not ignore case.

https://help.github.com/articles/error-repository-not-found/
According to this above actually it is case sensitive for github? I can't find any repo to test this. Normally I can clone with lower case without problem.

Well actually it doesn't matter whether if GitHub is case-insensitive or not, as vim-plug was not built just for GitHub although the default g:plug_url_format points to it as most plugins are maintained on GitHub. Here's another example of case sensitivity:
git clone git://git.postgresql.org/git/postgresql.git
git clone git://git.postgresql.org/GIT/postgresql.git


1199282 - ms.topic update

#sign-off Production 1199282

Hi @kgremban   please merge this PR when you can so that we can resolve the open issue (meta data update for 1199282). Thank you.

@barclayn can you help @cmcclister? I don't know what your merging process is like for MIMDocs anymore.

@billmath


Cannot conditionally render nodes under root template

Describe the bug
Not exactly sure how to word the title, some triage would be appreciated!
Currently, if performing an if/else statement in the root of a template! invocation, an unhandled exception occurs.
To Reproduce
Steps to reproduce the behavior:
use the following code:
use sycamore::{prelude::*, render};

fn main() {
    console_error_panic_hook::set_once();

    render(|| {
        let visibility = Signal::new(true);

        template! {
            button(on:click=cloned!((visibility) => move |_| visibility.set(!*visibility.get()))) {
                "Toggle Visibility"
            }
            (if *visibility.get() {
                template! {
                    h1 {
                        "I AM VISIBILE"
                    }
                }
            } else {
                template! {}
            })
        }
    });
}

Expected behavior
I expect the <h1> tag to be removed from the DOM without panicking nor needing a dummy wrapper node.
Environment

Sycamore: v0.6.0
Browser: Chromium Edge
OS: Windows 10

Additional context
The generated error is the following:
Also note that the error can be avoided by wrapping the if/else expression in a dummy <span> or <div>
Uncaught RuntimeError: unreachable
    at __rust_start_panic (index-fe88caf6e9aa8c54_bg.wasm:0x7b3e4)
    at rust_panic (index-fe88caf6e9aa8c54_bg.wasm:0x78ff0)
    at std::panicking::rust_panic_with_hook::h9852a65ac22b441a (index-fe88caf6e9aa8c54_bg.wasm:0x3d655)
    at std::panicking::begin_panic_handler::{{closure}}::hb262f7ea62636fdc (index-fe88caf6e9aa8c54_bg.wasm:0x54ee9)
    at std::sys_common::backtrace::__rust_end_short_backtrace::hbeb6eae20506157b (index-fe88caf6e9aa8c54_bg.wasm:0x7b0aa)
    at rust_begin_unwind (index-fe88caf6e9aa8c54_bg.wasm:0x74dc5)
    at std::panicking::begin_panic_fmt::h8370a52944002308 (index-fe88caf6e9aa8c54_bg.wasm:0x77cb9)
    at sycamore::utils::render::reconcile_fragments::h173454c6ccadfabc (index-fe88caf6e9aa8c54_bg.wasm:0x1a86)
    at sycamore::utils::render::insert_expression::h78c7671e519664a0 (index-fe88caf6e9aa8c54_bg.wasm:0x5025)
    at sycamore::utils::render::insert_expression::{{closure}}::h9cd3308a5537a912 (index-fe88caf6e9aa8c54_bg.wasm:0x20142)

Could you try adding console_error_panic_hook = "0.1.6" to your Cargo.toml and then putting std::panic::set_hook(Box::new(console_error_panic_hook::hook)); at the top of your your file? That will make panic messages pass through to the browser console, and you should be able to see more details.

I can replicate this in the Gitpod starter repo, and I'm getting this error above unreachable executed:
panicked at 'node 1 in existing nodes Vec is not a child of parent. node = DomNode(
    "No longer visible.",
)', /workspace/.cargo/registry/src/github.com-1ecc6299db9ec823/sycamore-0.6.0/src/utils/render.rs:240:17

This seems to be the problematic code.
    // Sanity check: make sure all nodes in a are children of parent.
    #[cfg(debug_assertions)]
    {
        for (i, node) in a.iter().enumerate() {
            if node.parent_node().as_ref() != Some(parent) {
                panic!(
                    "node {} in existing nodes Vec is not a child of parent. node = {:#?}",
                    i, node
                );
            }
        }
    }

I'm not familiar with this part of the code, so I'll defer to @lukechu10.

Should be fixed by #251
Will create a new release soon.

Fixed in v0.6.1


Define a Simple Data Model and OData Service with CDS

Tutorial URL: https://developers.sap.com/tutorials/odata-05-data-model-service.html
Please specify the step you are referring to step 12.
When I try ti run as java application:
"Service provisioning started
Build started
Build failed. See the console for more information."
Console:
3:45:19 PM (Provision) Service provisioning for module: "/srv"
3:45:19 PM (Provision) Service instance 'Products-Products-db-hdi-container7Swmqo9UTLTF9zkR' for resource 'Products-Products-db-hdi-container7Swmqo9UTLTF9zkR' already exists, no operation will be performed.
3:45:20 PM (Java Build) Build of "/Products/srv" failed. Request failed: error URI: /di/async-ext/workspace4cidftnwctsl4vc9/ad13c91a-b9bd-4312-afb6-d572047b0723

That's ok now. I run the build option on the srv folder and works.


[FEATURE]Edit LCS plate

Hi.
People report to me that the edition of the LCS of plates in the connections imported from OpenModel in the new version idea statica has been blocked.
This option is sometimes useful.

Hi, we are looking into this. I'll get back to you when I have the answer - whether this will be changed and when.

Hi @dataneodev,
In the next patch 22.1.4, this option will be re-enabled. Although to enable changing of LCS you will have to activate the developer mode. https://github.com/idea-statica/ideastatica-public/wiki/Developer-Tools-in-IDEA-StatiCa-Connection
Activating the developer mode will provide access to change these values when imported through API.

Cheers
Nathan


Object of type 'NameEmail' is not JSON serializable

Checks

[x] I added a descriptive title to this issue
[x] I have searched (google, github) for similar issues and couldn't find anything
[x] I have read and followed the docs and still think this is a bug

Bug
Output of python -c "import pydantic.utils; print(pydantic.utils.version_info())":
             pydantic version: 1.7.3
            pydantic compiled: True
                 install path: /app/env/lib/python3.8/site-packages/pydantic
               python version: 3.8.5 (default, Jul 28 2020, 12:59:40)  [GCC 9.3.0]
                     platform: Linux-5.8.0-43-generic-x86_64-with-glibc2.29
     optional deps. installed: ['typing-extensions', 'email-validator']

This issue was mentioned in #462, but was only solved for the case of SecretStr, NameEmail was left unsolved.

import pydantic

class MyModel(pydantic.BaseModel):
    email: pydantic.NameEmail

MyModel(email="foo <zzz@bar.com>").json()

I get:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pydantic/main.py", line 506, in pydantic.main.BaseModel.json
  File "/usr/lib/python3.8/json/__init__.py", line 234, in dumps
    return cls(
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "pydantic/json.py", line 65, in pydantic.json.pydantic_encoder
TypeError: Object of type 'NameEmail' is not JSON serializable

Thanks for reporting. Amazing this has never come up before.
Should be relatively simple to fix in pydantic/json.py, the only tricky thing is dealing with conditional imports.

@samuelcolvin hey I'm trying to fix this bug and I'm encountering the tricky conditional imports thing. Would it be easier to move NameEmail to pydantic/types.py like SecretStr?

Humm, I would prefer not to.
What is the problem? network.py shouldn't import json.py

I got it to work. @gjcarneiro @samuelcolvin my PR's ready. #2479


Device GT06 accurate does not block

I read, I tried everything.
My sms via command works (#stopoil#123456#)
I also tried custom commands:
cut oil
Enginer Stop
stop oil
Log:
2016-07-31 19:54:06 DEBUG: [F5D82BB8: 5023 > <IP_ADDRESS>] HEX:<PHONE_NUMBER>7d501a0d0a
2016-07-31 19:54:06 INFO: [F5D82BB8] id: 2, time: 2016-07-31 20:34:59, lat: -22.78418, lon: -43.54692, speed: 0.0, course: 0.0
2016-07-31 19:54:15 INFO: [F5D82BB8] command type: engineStop, id : 2 sent
2016-07-31 19:54:15 DEBUG: [F5D82BB8: 5023 > <IP_ADDRESS>] HEX: 787812800c0000000052656c61792c312300009dee0d0a

Nothing worked.

I think there are some GT06 version that require different format for commands.
See this pull request: https://github.com/tananaev/traccar/pull/2159

Okay, so there is no solution at the moment?
No custom command?

You can always send custom command. Format has to be correct though.

What formats can I use for this device?

You can find message format here:
https://www.traccar.org/protocols/


Event handler

This address #21, it implements an event dispatch middleware that will dispatch a pre-transaction as well as a post-transaction event.  This allows users to implement their own middleware as they need.

Great! Thanks for your contribution!


Cleaning up code errors, adding submit bug button on code status page

Tugboat has finished building the preview for this pull request!
Link:

https://pr136-3aorm2jdzavhjofh51y9ivrcfwrblgym.tugboat.qa

Dashboard:

https://dashboard.tugboat.qa/6019564614dc582df0c0b779


Return 2 on check failure.

Dropwizard doesn't allow for setting the return value and Nagios monitoring
expects a 2 for critical failure or 1 for a warning and healthcheck failures
shouldn't be warnings.

This change is

@uschi2000 is it possible to take a look at this?

This change would make it so that checks cannot return a 1, indicating a warning state.

Yeah, looks like this is DW issue rather a GJD one.

Review status: 0 of 1 files reviewed at latest revision, all discussions resolved, some commit checks failed.

Comments from Reviewable

Reviewed 1 of 1 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.

Comments from Reviewable

Closing since there's no movement.


Set ttl for private dns record created by PrivateEndpoint

What problem are you facing?
Hi, we want to use Crossplane for our Azure Infrastructure deployments but facing a problem a with setting the TTL for DNS records which are created by the PrivateEndpoint CRD.
Spec of the PrivateEndpoint looks like
apiVersion: network.azure.upbound.io/v1beta1
kind: PrivateEndpoint
metadata:
  annotations:
    crossplane.io/external-name: someprivateendpoint
  name: someprivateendpoint
spec:
  deletionPolicy: Delete
  forProvider:
    location: germanywestcentral
    privateDnsZoneGroup:
    - name: privatelink.blob.core.windows.net
      privateDnsZoneIds:
      - /subscriptions/<redacted>/resourceGroups/somerg/providers/Microsoft.Network/privateDnsZones/privatelink.blob.core.windows.net
      privateDnsZoneIdsRefs:
      - name: privatelink.blob.core.windows.net
    privateServiceConnection:
    - isManualConnection: false
      name: someprivateendpoint
      privateConnectionResourceId: /subscriptions/<redacted>/resourceGroups/somerg/providers/Microsoft.Storage/storageAccounts/someprivateendpoint
      subresourceNames:
      - blob
    resourceGroupName: somerg
    resourceGroupNameRef:
      name: somerg
    subnetId: /subscriptions/<redacted>/resourceGroups/somerg/providers/Microsoft.Network/virtualNetworks/aks-network/subnets/storage-account
    subnetIdRef:
      name: storage-account

Creation of the PrivateEndpoint works as expected. It also sets the correct record in the private DNS zone with the IP Address of the linked storage account. The problem is that the ttl is set to 10 (s) per default. We want it to be 300.
According to the Docs it does not seem possible to configure the ttl for that record?
We tried setting privateDNSZoneConfigs in the spec and set ttl for that record to 300 but it does not seem to be recognized.
When inspecting the resource via kubectl the ttl value is only available in the status: but not in the spec.
kubectl get privateendpoints.network.azure.upbound.io someprivateendpoint -oyaml
......
status:
  atProvider:
    ....
    privateDnsZoneConfigs:
    - .....
      recordSets:
      - fqdn: someprivateendpoint.privatelink.blob.core.windows.net
        ipAddresses:
        - <IP_ADDRESS>
        name: someprivateendpoint
        ttl: 10
        type: A
.....

Are we missing something or is that value not configurable at the moment?
How could Official Azure Provider help solve your problem?
Give an option in the PrivateEndpoint managed resource to set the TTL for the record it sets when using privateDNSZone

Hi @zvoove-tw, have you tried setting soaRecord parameters in the PrivateDNSZone.network resource?

Hi @turkenf , we dont use the PrivateDNSZone.network resource. The PrivateDNSZone is not managed by crossplane.
Also we dont want to adjust the soa minimumTTL we just want to be able to set a custom ttl for the a-record created by the privateEndpoint resource.

But as far as I understand from the doc, you should use the private_dns_zone resource in order to set the TTL.
Does the Azure console allow you to set the TTL when creating the Private Endpoint resource?

We have not used the Azure Portal but terraform. In terraform we just did it like this:
resource "azurerm_private_endpoint" "storage_account" {
  name                = local.storage_account_name
  location            = var.location
  resource_group_name = var.resource_group_name
  subnet_id           = var.storage_account_subnet_id

  private_service_connection {
    name                           = local.storage_account_name
    is_manual_connection           = false
    private_connection_resource_id = azurerm_storage_account.storage_account.id
    subresource_names              = ["blob"]
  }

  tags = {
    kubernetes_namespace = "somenamespace"
  }
}

resource "azurerm_private_dns_a_record" "storage_account" {
  name                = local.storage_account_name
  zone_name           = var.storage_account_dns_zone_name
  resource_group_name = var.resource_group_name
  ttl                 = 300
  records             = [azurerm_private_endpoint.storage_account.private_service_connection[0].private_ip_address]

}

After checking the Azure Portal it seems like in the portal setting the TTL is not supported as well, its possible to setup the integration but it seems to use just the minimumTTL that the soa defines.
So to mirror our settings from terraform we would need to disable the dns integration in PrivateEndpoint and create a separate PrivateDNSARecord?
That resource seems to support setting the ttl as expected. But how can we get the IP-Address of the PrivateEndpoint into the Resource without using a composition?

Can't pass the IP address directly?
apiVersion: network.azure.upbound.io/v1beta1
kind: PrivateDNSARecord
metadata:
  annotations:
    meta.upbound.io/example-id: network/v1beta1/privatednsarecord
  labels:
    testing.upbound.io/example-name: example
  name: example
spec:
  forProvider:
    records:
    - <IP_ADDRESS> #IP-Address of the PrivateEndpoint?
    resourceGroupNameSelector:
      matchLabels:
        testing.upbound.io/example-name: example
    ttl: 300
    zoneNameSelector:
      matchLabels:
        testing.upbound.io/example-name: example

Unfortunately that is not a viable solution.
The IP address gets taken from the pool of the subnet and is not known before we deploy the PrivateEndpoint.
We want to deploy both resources with the same release, requiring us to have some interpolation options. Something like:
apiVersion: network.azure.upbound.io/v1beta1
kind: PrivateDNSARecord
metadata:
  annotations:
    meta.upbound.io/example-id: network/v1beta1/privatednsarecord
  labels:
    testing.upbound.io/example-name: example
  name: example
spec:
  forProvider:
    records:
    - ${azurerm_private_endpoint.name_of_private_endpoint.private_service_connection[0].private_ip_address}
    resourceGroupNameSelector:
      matchLabels:
        testing.upbound.io/example-name: example
    ttl: 300
    zoneNameSelector:
      matchLabels:
        testing.upbound.io/example-name: example

Is there anything like this available with crossplane? (not using compositions?)

Is there anything like this available with crossplane? (not using compositions?)

Unfortunately, there is no way I am aware of this currently other than using composition.

We will have to refactor than to use compositions as thats a feature we will need.
Thanks for your help!


Add PHPDoc Support

I've added all PHPDoc support for manys files, feel free to tell me others file.

We already have a typed system and the package is only supported for PHP 8. and 8.1. I think adding PHPDoc is overkill.


Problems Accessing Data

Hey,
Thank you for this very interesting work!
I am having trouble accessing the data - after running:
aws s3api get-object --bucket madrylab-datamodels
--key cifar/data/test_margins_50pct.npy
--request-payer requester
test_margins_50pct.npy
I get:
An error occurred (AccessDenied) when calling the GetObject operation: Access Denied
Any ideas how to fix this?

Hi!
Thank you for your comment on our work!
I am not sure why you are seeing this error.
Did you run/setup aws configure before running above?

Thank you for your answer.
Thank you for your answer.
It turns out I had permissions issues. I fixed them and everything works now :)

Great! Glad it's working. Thanks for checking out our data!

How long does it take to download it? Do you know how to solve the issue running the command gives no reaction?

would u mind telling me how to fix it? I met a same question


Home Load preset automatically changed in Dual Solarbank setup?

System Health details
see below
Checklist

[X] I have enabled debug logging for my installation.
[X] I have filled out the issue template to the best of my ability.
[X] This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
[X] This issue is not a duplicate issue of any previous issues..

Describe the issue
With the new 1.1.0 release, without changing entities or the schedule, the Solarbank home load preset suddenly shows 200 W to be sent to the house although the schedule is set to 0W with charge Priority > 80% and MI80 inverter installed.
While SOC is below charge Prio, the App is showing 200 W to be sent to the house. After some time the integration also reaches the Api request limit and some entites go to unavailable.

Reproduction steps

Everything is initially set to the battery in the app (see schedule in image 1)
Suddenly I have the display in the app 200 watts into the house (image 2). Strangely enough, the settings in image 1 are retained. I get this because I have built an automation system that sends a message to my cell phone when the power is fed in.
The integration shows strange values at the same time. (image 3)
200 watts are also fed into the house instead of everything being fed into the battery as set.

Debug logs
none

Diagnostics dump
No response

This is most likely related to Dual Solarbank setup for Systems, eventually when a time interval moves to the next slot?
Needs to be investigated.

Actually the change entity is not modified but there was a bug for dual solarbank output sensor correction that may have caused problems.
Another fix was added to update the changeable schedule entities along each interval from the cached schedule. Since time progresses to next slot, they may change between device details refresh intervals and the fix will update the value sooner


grid alignment not working as expected

I would expect center: true to center the grid within the panel, but it isn't doing so.
Here's the code I am using:
`
root:
type: panel
layout: canvas
elements:
- type: panel
  size: { w: 300, h: 200 }

  canvas:
    top: 0
    center: true

  background: sprInventoryFrame
  layout: grid
  padding: 0
  grid:
    rows: 4
    row_height: 28
    row_spacing: 6
    columns: 6
    column_width: 28
    column_spacing: 6

  elements: @inventory.contents
    template:
    type: inventory_item_slot

`
And here's the result:

I think I can use the new flexpanel support in 2024.8 to address this... eventually. Currently I can't use it because I need to be able to define custom measure functions to handle dynamic sized text. I have an FR open for it here:
https://github.com/YoYoGames/GameMaker-Bugs/issues/7419


Incorrect VLA_Forbidden in enum.

Describe the bug
Variable length array forbidden is occur when specifying the array length using the enum value.
Erroneous code
enum e_example
{
    aaa,
    bbb,
    ccc,
    enum_len
};

int main(void)
{
    int array[enum_len]; // Error: VLA_FORBIDDEN
}

It also happens with const int values.

Alright so,
The goal of VLA forbidden is to prevent changing the variable length on the fly.
The code does not always have the information of what kind of variable this is (for instance here, these could be defined in a header and not available here.)
The best way to have a constant is to use capital letters only, as the norminette considers capital letter to be a constant and will let you defin an array this way.
have a good day!

Wow! It was a lack of my understanding of norminette.
Thank you for your response!


let GraphMojo create target directory

maven-graph-plugin crashes when it tries to build a graph for a submodule that does not yet contains a target directory. This seem to happen especially for modules of type 'pom'.

I agree that this feature is very welcome.

+1 for this feature

+1 for this old pull request.
I saw had this error, then read the docs and ran

mvn ... dependency:resolve then
mvn ... package

To ensure that both the dependencies were resolved, and the project built... But I still had to create several target directories for modules that would otherwise not have one, as @danielwegener pointed out.


How To pack an dacpac file from SSDT Project?

Hi, nice project.
We use this tool to pack and deploy packages in our company with tfs-build.
I just have a problem to add the dacpac files from an ssdt project into the nuget package. the generated dll is included. but how to deal with the generated dacpac file?
Tobias

Thanks!
NuGet itself doesn't have support for deploying additional files alongside the .dll. You could fake this up by using a .targets file that is injected into the consuming project's build. In their, you could inject an item with appropriate metadata to let MSBuild copy it to the output folder.

Does this help?

thanks for your answers.  dealing with target files is a little bit too complicated for the hole development team. so i tried some ideas and now preferrrig the following solution:

create an SSDT Project in a solution (Database1)
add the nuproj Project to solution (DacPackage1)
put a reference from DacPackage1 to Database1 (the sql server dll is packed and can be used later) and the build order for the solution is right
add an postBuild Event to Database1:

copy "$(TargetDir)*.dacpac" "$(SolutionDir)DacPackage1"

edit the nuproj file and add the Content:

<ItemGroup>
    <File Include="Database1.dacpac">
      <TargetPath>dacpac</TargetPath>
    </File>
  </ItemGroup>

Now i can add the package to another ssdt Project and get the dll. I can take the dacpac file from ..\packages\DacPackage1\dacpac\Database.dacpac.

It seems there's a long standing (but started around the same time as this) issue in the nuget area about this same thing, but there has yet to be any update provided over there. https://github.com/NuGet/Home/issues/545


Upgrading dependencies, especially to SIPSoceryMedia.Abstractions 1.2…

…, required for SIPSocery WebRTC examples to function properly.

Thank you. I added a new comment on https://github.com/sipsorcery-org/sipsorcery/discussions/919 about pushing the nupkg to nuget


Update BlockIssuerFeature

https://github.com/iotaledger/tips-draft/pull/11/commits/0dfe5788ed3b4a596bf94a9db932c47229119bf0?short_path=e59aa6b#diff-e59aa6be7b496f4aed7fb5358177213dc4e66dde764876c61559bdf4c242ecec

Closed by https://github.com/iotaledger/iota-sdk/pull/1234


reactive-streams-examples must also be published on release

Since reactive-streams-tck depends on it: http://repo1.maven.org/maven2/org/reactivestreams/reactive-streams-tck/1.0.0.RC2/reactive-streams-tck-1.0.0.RC2.pom
[info] Updating {file:/Users/viktorklang/Documents/workspace/akka/}akka-stream-tck-experimental...
[warn] 	module not found: org.reactivestreams#reactive-streams-examples;1.0.0.RC2
[warn] ==== local: tried
[warn]   /Users/viktorklang/.ivy2/local/org.reactivestreams/reactive-streams-examples/1.0.0.RC2/ivys/ivy.xml
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/org/reactivestreams/reactive-streams-examples/1.0.0.RC2/reactive-streams-examples-1.0.0.RC2.pom
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	::          UNRESOLVED DEPENDENCIES         ::
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	:: org.reactivestreams#reactive-streams-examples;1.0.0.RC2: not found
Ping @smaldini: This must be why there were issues resolving the new version?

@smaldini Would you be able to take https://github.com/reactive-streams/reactive-streams/pull/218 and publish 'reactive-streams-examples' for version 1.0.0.RC2? Let me know if you are unable or need any assistance :)

I suspect @smaldini might be on holiday— @rkuhn you have release-credentials, could you push the RC2 artifact of the reactive-streams-examples?

currently in meetings, will do it later today

Thanks @rkuhn, it's much appreciated

Does the TCK really need the examples? It seems to run fine without that dependency (at least for the Publisher tests)

@szeiger Yes, the TCK needs the examples (which also happens to be a great way to dogfood the examples)


Audio sample data

Hi
I want to use an audio file rather than sample data array. Please advise that how I can use the audio file or convert the audio file to like sample data.
I am trying to use the below code but its not working
public static Double[]  audioData(String wavePath)
    {
        Double[] data;
        byte[] wave;
        byte[] sR = new byte[4];
        System.IO.FileStream WaveFile = System.IO.File.OpenRead(wavePath);
        wave = new byte[WaveFile.Length];
        data = new Double[(wave.Length - 44) / 4];//shifting the headers out of the PCM data;
        WaveFile.Read(wave, 0, Convert.ToInt32(WaveFile.Length));//read the wave file into the wave variable
        /***********Converting and PCM accounting***************/
        for (int i = 0; i < data.Length - i * 4; i++)
        {
            data[i] = (BitConverter.ToInt32(wave, (1 + i) * 4)) / 65536.0;
            //65536.0.0=2^n,       n=bits per sample;
        }

        return data;
    }

Please provide kind of sample if possible
Thank you
Dhanaji

Hi @dhanajik, this question is related to #30.
Here's the code that shows how to do this from https://github.com/swharden/Spectrogram#read-data-from-a-wav-file
(double[] audio, int sampleRate) ReadWAV(string filePath, double multiplier = 16_000)
{
    using var afr = new NAudio.Wave.AudioFileReader(filePath);
    int sampleRate = afr.WaveFormat.SampleRate;
    int sampleCount = (int)(afr.Length / afr.WaveFormat.BitsPerSample / 8);
    int channelCount = afr.WaveFormat.Channels;
    var audio = new List<double>(sampleCount);
    var buffer = new float[sampleRate * channelCount];
    int samplesRead = 0;
    while ((samplesRead = afr.Read(buffer, 0, buffer.Length)) > 0)
        audio.AddRange(buffer.Take(samplesRead).Select(x => x * multiplier));
    return (audio.ToArray(), sampleRate);
}


403 response when fetching via Java/Clojure

Easily reproducible by going to https://repl.it/repls/SharpPepperyDesigner and hit the "Run" button.
Leads to an "IOException Server returned HTTP response code: 403 for URL<EMAIL_ADDRESS>Sorry for being light on details, let me know what you need to troubleshoot this.

It would be helpful to get a look at the request headers so we can reproduce the request locally and see what happens. 403 indicates a client error, so there's something about the request that the server doesn't like.
I get that repl.it is making the request for you, so the exact request headers might be hard to see. Could you try running slurp locally and see if you get the same result?

I do get the error locally as well, I just used repl.it so it is easier to reproduce for non Java/Clojure folks.
I’ll try to post the headers later
Sent from my iPhone

On 26.06.2018, at 17:19, Michael Jackson<EMAIL_ADDRESS>wrote:
It would be helpful to get a look at the request headers so we can reproduce the request locally and see what happens. 403 indicates a client error, so there's something about the request that the server doesn't like.
I get that repl.it is making the request for you, so the exact request headers might be hard to see. Could you try running slurp locally and see if you get the same result?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Thanks. Not 100% sure but this could be related to #107.

Tried the non-ssl url for easier inspecting of the headers:
Request:
GET<EMAIL_ADDRESS>HTTP/1.1
User-Agent: Java/1.8.0_171
Host: unpkg.com
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2

Results in a 403.

Looks like it is related to the user agent, this also returns a 403:
$ curl -A "Java/1.8.0_171"<EMAIL_ADDRESS>

Thanks for the help debugging this, @kommen. I will look further into this.

I believe this may be a duplicate of #107, where Safari is using a weird User-Agent string in the request when it is in "responsive design mode". I've disabled Cloudflare's "Browser Integrity Check" feature for now, and this issue appears to be resolved.
Can you please confirm, @kommen?

Just checked your repl.it demo again and it looks ok.

@mjackson yep, I it also works now for me. Thanks a bunch!


Refactor Promscale metrics and make them consistent

Description
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.
Merge requirements
Please take into account the following non-code changes that you may need to make with your PR:

[ ] CHANGELOG entry for user-facing changes
[ ] Updated the relevant documentation

@Harkishen-Singh Can you please update the description explaining what is the goal here and why we do it? It would help with reviewing the code

I'm gonna bow out of the review. I've reviewed the design doc and there are more than enough capable reviewers on this PR.


make audit terminology consistent

We have been a little inconsistent in the use of the term "audit" versus "control" or "control group" in audit mode. This will confuse customers, particularly those who are security-oriented, so I'd like to fix it. To wit:

A "control" is a condition you define about system correctness
A "control_group" is a list of one or more controls
An "audit" is an operation you run to test your "controls". Hence, "audit mode" is correctly named. However, it makes no sense to have "audits" fail. What we actually mean is that one or more controls failed, which caused the audit as a whole to fail. You also don't "run audits" -- you perform an audit (singular), which runs one or more controls.

I'll leave it to the team to decide whether the ivars, class names, etc. should be renamed. For example, an ivar named :audits makes no sense; what you really mean is :controls.
/cc @mcquin @jamesc

:+1: I think we can skip the naming of the internals for now. @tyler-ball has spent some time when writing these so that they are internally consistent.

I'm :+1: on your definitions and on the changes presented.  I think the internals should be changed to reflect this, but it isn't a high priority.

Thanks all, I'm merging


Skaffold system check

Checks to see if Skaffold is on system when the user tries to Deploy.

Some additional tips:
Meaningful commit message
The message should be descriptive of the problem (and potentially the fix as well). See previous commits in the repo for some examples. In this case, a possible message could be Checks to ensure Skaffold is on the PATH and shows error message if not
PR Description
Start the PR with fixes #[bug number here] on the first line, if there is an applicable issue. GitHub will then close the associated issue automatically when merging into master.
Add sufficient detail to the PR description to describe your solution. Also, screenshots are always helpful when there are any UI facing changes. In this case, a screenshot of the log message would be helpful.
Build Checks
As @ivanporty mentioned, you can run gradlew check locally to ensure that all of the checks pass, including unit tests. If they are not passing locally then they will likely not pass our Kokoro CI.
Unit Tests
Add unit tests whenever possible. In some cases it may not make sense, but the reasons should be discussed / called out. See some of our existing unit tests in this repo for helpful patterns (for example, we use the ContainerToolsRule test rule for our unit tests).

@ivanporty for review as well

@ZariaHoward turns out the windows test failures are due to the File#setExecutable..as tested on my windows vm. I'm not exactly sure why yet.

actually, it might be the mockkStatic

alternative to using mockkStatic:
in SkaffoldExecutorService#isSkaffoldAvailable, extract System.getenv("PATH") to a separate function so that it can be mocked. I.e.:
fun getSystemPath(): String = System.getenv("PATH")

Then in the test, remove all mockkStatic, and instead of mocking System.getenv, mock:
every { defaultSkaffoldExecutorService.getSystemPath() } answers { [whatever you want] }

looks good. commit the code updates?


OVS Provider not visible under Network Service Providers for guest network

ISSUE TYPE

Bug Report OVS Provider not visible under Network Service Providers for guest network

Improvement Request

Enhancement Request

Feature Idea

Documentation Report

Other

COMPONENT NAME

UI

CLOUDSTACK VERSION

4.12

CONFIGURATION

OS / ENVIRONMENT

RHEL 7.6
SUMMARY

Create a Zone with Management + Storage network with Physical Network 1 and Guest network in Physical Network 2 with Open vSwitch GRE for network isolation.
Open vSwitch is installed on both KVM Hosts and cloudbr0 is bridged to physical interface 1 (management + storage) and cloudbr1 is bridged physical interface 2 (guest)
After Zone creation, when navigated to Zone --> Physical Network 2 ---> Network Service Provider ---> Configure ---> OVS provider is missing
EXPECTED RESULTS

OVS should be listed under Network Service Provider and should be enabled

ACTUAL RESULTS

OVS network service provider is missing

![image](https://user-images.githubusercontent.com/3480900/72224860-0265a500-3590-11ea-9549-a3f920c503ef.png)

![image](https://user-images.githubusercontent.com/3480900/72224862-05f92c00-3590-11ea-989b-ffcd51d45dbb.png)

@shoaibjdev
I have a setup with GRE. Ovs is enabled by default.
(local) 🐵 > list physicalnetworks
{
  "count": 1,
  "physicalnetwork": [
    {
      "broadcastdomainrange": "ZONE",
      "id": "a00b2b4c-945a-41c9-bf62-454a49cefc47",
      "isolationmethods": "GRE",
      "name": "OVS",
      "state": "Enabled",
      "vlan": "2000-2100",
      "zoneid": "7ff7c5bd-c41f-40ca-ba31-3b7bde583d38"
    }
  ]
}

(local) 🐵 > list networkserviceproviders physicalnetworkid="a00b2b4c-945a-41c9-bf62-454a49cefc47" name=ovs
{
  "count": 1,
  "networkserviceprovider": [
    {
      "canenableindividualservice": true,
      "id": "c08f3e76-00c6-489d-9b37-f9cd7d304cc3",
      "name": "Ovs",
      "physicalnetworkid": "a00b2b4c-945a-41c9-bf62-454a49cefc47",
      "servicelist": [
        "Lb",
        "StaticNat",
        "PortForwarding"
      ],
      "state": "Enabled"
    }
  ]
}

@weizhouapache I can confirm from database, it's there but if you verify from ACS UI, it's not in the list of Network Providers for the Zone's physical network.
Kindly share screenshot of UI  if it's visible on your end.

Also the reason I raised it as GRE doesn't seem to work, and as it doesn't appear under UI so I doubt if there is something broken.
If you have only 1 KVM node and it's the node where Virtual Router is running, then instances will get IP from the VNI specified during setup.
But if you add 2nd KVM node, no matter what you do, it will never get an IP from Virtual Router.
If now I migrate virtual router to this new KVM node, instances will get the IPs.
So basically, OVS GRE tunnel is not working on ACS 4.12, I have asked @andrijapanicsb to advise if GRE is still in use on ACS or should we move away from it and trying some other option for OVS tunnel to work, awaiting his response from that thread.

@weizhouapache I can confirm from database, it's there but if you verify from ACS UI, it's not in the list of Network Providers for the Zone's physical network.
Kindly share screenshot of UI if it's visible on your end.

I confirm ovs is not visible in the list of network provider on UI.

Also the reason I raised it as GRE doesn't seem to work, and as it doesn't appear under UI so I doubt if there is something broken.
If you have only 1 KVM node and it's the node where Virtual Router is running, then instances will get IP from the VNI specified during setup.
But if you add 2nd KVM node, no matter what you do, it will never get an IP from Virtual Router.
If now I migrate virtual router to this new KVM node, instances will get the IPs.
So basically, OVS GRE tunnel is not working on ACS 4.12, I have asked @andrijapanicsb to advise if GRE is still in use on ACS or should we move away from it and trying some other option for OVS tunnel to work, awaiting his response from that thread.

@shoaibjdev do you use default network offering or new offering created by following instruction http://docs.cloudstack.apache.org/projects/archived-cloudstack-getting-started/en/latest/networking/ovs-plugin.html#network-offerings ?

@weizhouapache - Really appreciate your help and assistance on this. We have created the custom offering and tried with it as well, but Virtual routers didn't came up. So we went with default network offering.
Would you be kind enough, to direct us in the right direction as per best practices in production what is in general is adopted by customers running ACS in production as of today?
Our requirement for networking is to let the tenants create their own private networks running on multiple Hypervisor nodes  and all instances running on differents nodes should be able to reach each other as longs its under the same super CIDR they defined. And traffic from other tenants should not interfere with others.
We want to avoid using VLAN tags from the physical networks as it wouldn't make any sense for us to plug additional VLANs when we scale the hardware, and we do not want tenants to be part of the physical network ports.
So we decided to go with SDN solution and let tenants create their own networks identified by VNI's,  either VXLAN or GRE from OVS works very well and mature solution for vanilla KVM and OVS setup without ACS. But we see some limitation on ACS as OVS doesn't work with VPC which would have solved this scenario.
Challenge we have is just getting the OVS tunnel to work across Hypervisor hosts. Please advise how we can achieve this on ACS.

@shoaibjdev we use OVS. we dont got GRE run. maybe its broken. i dont know.

@shoaibjdev we use OVS. we dont got GRE run. maybe its broken. i dont know.

@svenvogel Thanks for the confirmation. Could you please advise how did you manage to handle to handle the traffic across hypervisor hosts, if not GRE?

@shoaibjdev are there some error logs in /var/log/cloudstack/agent/ovstunnel.log similar as following ?
2019-11-28 14:11:41,678 - Tunnel interface validated:['/usr/bin/ovs-vsctl', 'get', 'interface', '433982a7-cada-4855-a72b-4b30344f645d', 'options:remote_ip']
2019-11-28 14:11:41,678 - Executing:['/usr/bin/ovs-vsctl', 'get', 'interface', '433982a7-cada-4855-a72b-4b30344f645d', 'ofport']
2019-11-28 14:11:41,698 - Executing:['/usr/bin/ovs-vsctl', 'get', 'bridge', 'OVSTunnel2046', 'other_config:is-ovs-tun-network']
2019-11-28 14:11:41,704 - Executing:['/usr/bin/ovs-vsctl', 'get', 'bridge', 'OVSTunnel2046', 'other_config:is-ovs_vpc_distributed_vr_network']
2019-11-28 14:11:41,709 - The command exited with the error code: 1 (stderr output:ovs-vsctl: no key "is-ovs_vpc_distributed_vr_network" in Bridge record "OVSTunnel2046" column other_config
)
2019-11-28 14:11:41,709 - An unexpected error occured. Rolling back
2019-11-28 14:11:41,709 - Deleting GRE interface
2019-11-28 14:11:41,709 - Executing:['/usr/bin/ovs-vsctl', 'del-port', 'OVSTunnel2046', 't2046-4-3']
2019-11-28 14:12:22,157 - About to manually create the bridge:OVSTunnel2046

@shoaibjdev can you test latest master with Primate?

@shoaibjdev are you still working on this issue? As suggested implicitly, can you try a cli tool like cloudmonkey to find the provider and does that work?

@shoaibjdev are you still working on this issue? As suggested implicitly, can you try a cli tool like cloudmonkey to find the provider and does that work?

@shoaibjdev I'm closing this issue as it is not active. You can reopenif you wish.


Dark/Light Theme mode: Define keywords color / backgroundcolor depending on day/night mode?

Hello
thank you for creating release 2 of this plugin and sharing your great work!
Could you please think about offering support for dark/light (or day/night) themes and allow us to define colors depending on it?
Somethin like that:
{
    "text": "### …",
    "regex": {
        // this is a 'TODO Highligt' bug: Regex for "start of line": ^ does not work,
        // probably because it uses wrong Regex option 'multilne / single' line parsing
        "pattern": "(?<=(?:\\r\\n?|\\n)\\s*)(#{3}(:|\\s).*)(?=\\r\\n?|\\n)?"
    },

    // keep the backward compatibility
    "color": "red",
    "backgroundColor": "rgba(245, 39, 145, 0.09)",

    // The new dark/light mode
    "LightModeColor": {
      "color": "…",
      "backgroundColor": "…"
    },

    "DarkModeColor": {
      "color": "…",
      "backgroundColor": "…",
    }
},

Thanks a lot, kind regards,
Thomas

Is there any progress here? I just stumbled over the same problem. I've created my own colour themes for light and dark (mainly to move my settings.json customisations into a clean theme and so that I can quickly switch between light and dark theme). But the foreground colour is now fixed for one theme and hardly readable for the other. Can I include the TODO text colour in my theme or what options do I have now?

Chiming in here with an idea that might lead to a better one; I'd like to suggest exposing theming api specifiers so colouring can be defined by theme authors.


Need info on custom vertex structures

I 100% need information on custom vertex structures. I probably need info on how to use it with materials as well but I haven't made it that far yet.

After more hours of trying to figure this out, DECLARE_RUNTIMEMESH_CUSTOMVERTEX_TYPEINFO and DEFINE_RUNTIMEMESH_CUSTOMVERTEX_TYPEINFO macros under RuntimeMeshCore.h seems to be incomplete. For starters, it's missing the override for FRuntimeMeshVertexTypeInfo::CreateSection(bool bInNeedsPositionOnlyBuffer). Obviously I can write my own class/macro that inherits FRuntimeMeshVertexTypeInfo for my custom vertex type. I'm just concerned about running into more incomplete code. and I'm still not sure if I can use my custom data in materials.

What are you trying to accomplish?   The generic vertex that's built in can handle most possible combinations that the engine can support. With that said there is an issue with the macros for it and defining them in your own module, so you'd have to set that macro within the RMC itself for right now.  Defining completely custom vertex right now is kind of messy due to the structure of what's needed.
I might do a quick round of fixes for RMCv2 here soon, but RMCv3 is finally moving along pretty quickly, and basically everything gets revamped and drastically improved there.

What I am looking to do is to setup custom vertex data that i can use in my materials. I'd have to use the custom material shader node to get access to the extra data in the vertex. I want to use the data to control blending of material functions. I do realize that I probably could use the extra sets of UV coords but I'm trying my best to avoid jankiness.

I've only started digging into the core of RMC. I'll try see what it takes to get a working custom vertex structure by the end of the week and let you know what my findings are. Hopefully that will help point you in the right direction as far as implementing something that is clean and stable. I might even try my hand at forking/implementing and submitting a pull request if I have the time.

I'm not sure you can really pass extra components through quite like that, internally the vertex factory registers all the components and their offset from begging of stride and data type  and size. There's options for position, normal, tangent, color and 1-8 UV channels,   While you have the option of changing data types for each of those I haven't seen any options for other channels, Now it would be interesting if it's possible as I've had reasons for dual color channels and other things. I've just never directly looked into that due to having higher priorities on the RMC and well other projects.
If you find anything out, I'd definitely be interested but I will go ahead and warn you there's a complete overhaul to the RMC in the works right now and that entire vertex structure was the first thing to be almost completely rewritten.  It's now cleaner and less buggy with some compilers the previous one had issues with but it's not usable with the old RMC.

Also, I'm in the Unreal Slackers discord ( http://unrealslackers.org/ )
It's generally a faster way to contact me.

I did an experiment a few years back and I was able to get custom data to the material using the Custom Material Expression node but i am pretty sure I had to define the extra data location and stride now that i think about it. I didn't do much with the project and wish I still had it. I basically rewrote the entirety of CMC to do it. Do you have a time frame for RMCv3? It's a good thing I'm not too far along into mesh generation with my project.
Just joined the discord.

Hello,
All existing issues for RMCv2 are being closed as RMCv2 is no longer being supported.  RMCv3 is in beta here : https://github.com/Koderz/RuntimeMeshComponent/tree/Version3Dev
If you encounter this or any new issues in v3 please feel free to open a new issue!
Thanks!
-Koderz


[IOTDB-3528] Filter DataNode which may not be ready in ConfigNode

6539

 Quality gate: Failed
3 Issues

 2 Code issues
 1 Anti-patterns

Details

 Quality gate: Failed
3 Issues

 2 Code issues
 1 Anti-patterns

Details


Create branching story for managing multiple versions of translator (e.g. 1.3, 1.4, 1.5)

Proposed is prefixing translator version to the branch name:
e.g v13-develop, v13-master
Snapshots of the translator will be on the develop branch while master will have the current release for each major version.

Obsoleted by #551


Fatal signal 11 (SIGSEGV), code 1, fault addr 0x746f600000 in tid 24864 (1.ui) using Widgetspans

My application crashes. Think it's on fast scrolling or backnavigation.
Steps to Reproduce
I can't reproduce it. Because the error message provide no information for me, to know where i have to start to reproduce. Therefor a simple example isn't possible.
Sorry that i can't provide more information.
Logs

F/libc    (24818): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x746f600000 in tid 24864 (1.ui)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'HUAWEI/WAS-LX1A/HWWAS-H:8.0.0/HUAWEIWAS-LX1A/390(C432):user/release-keys'
Revision: '0'
ABI: 'arm64'
pid: 24818, tid: 24864, name: 1.ui  >>> com.deskmodder <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x746f600000
    x0<PHONE_NUMBER>20cfb0  x1<PHONE_NUMBER>20cef0  x2<PHONE_NUMBER>20d0c8  x3<PHONE_NUMBER>00001c
    x4<PHONE_NUMBER>000179  x5   000000746b57c000  x6<PHONE_NUMBER>06f924  x7<PHONE_NUMBER>06f943
    x8<PHONE_NUMBER>000001  x9   000000746f4fd000  x10<PHONE_NUMBER>07f6bc  x11<PHONE_NUMBER>06f9c3
    x12<PHONE_NUMBER>06f8f4  x13<PHONE_NUMBER>06f923  x14<PHONE_NUMBER>000000  x15<PHONE_NUMBER>000017
    x16<PHONE_NUMBER>d31cb8  x17<PHONE_NUMBER>ccf948  x18<PHONE_NUMBER>000182  x19<PHONE_NUMBER>00000b
    x20<PHONE_NUMBER>081800  x21  000000746b4420c0  x22<PHONE_NUMBER>aa0000  x23  000000746b441f00
    x24<PHONE_NUMBER>000000  x25<PHONE_NUMBER>000001  x26  000000746b45bc90  x27<PHONE_NUMBER>000001
    x28<PHONE_NUMBER>86a840  x29  000000746b570158  x30<PHONE_NUMBER>9fb0f8
    sp<PHONE_NUMBER>20caf0  pc<PHONE_NUMBER>9fb0c0  pstate<PHONE_NUMBER>000000
backtrace:
    #00 pc<PHONE_NUMBER>7eb0c0  /data/app/com.deskmodder-b2224PpiHWMvUtThckrvJg==/lib/arm64/libflutter.so (offset 0x5e0000)
    #01 pc<PHONE_NUMBER>61753c  /data/app/com.deskmodder-b2224PpiHWMvUtThckrvJg==/lib/arm64/libflutter.so (offset 0x5e0000)
    #02 pc<PHONE_NUMBER>93c2bc  /data/app/com.deskmodder-b2224PpiHWMvUtThckrvJg==/lib/arm64/libflutter.so (offset 0x5e0000)
    #03 pc<PHONE_NUMBER>00480c  /data/app/com.deskmodder-b2224PpiHWMvUtThckrvJg==/lib/arm64/libapp.so (offset 0x1000) (_kDartVmSnapshotInstructions+14348)

info - Avoid using `forEach` with a function literal - lib\helper\css_style_parser.dart:23:11 - avoid_function_literals_in_foreach_calls
info - Unused import: 'package:deskmodder/htmlnativewidgets/polls/single_poll_form.dart' - lib\helper\html_parser_inline.dart:8:8 - unused_import
info - The method '_parseDivElement' isn't used - lib\helper\html_parser_inline.dart:435:14 - unused_element

[√] Flutter (Channel stable, v1.7.8+hotfix.3, on Microsoft Windows [Version 10.0.18362.207], locale de-DE)
    • Flutter version 1.7.8+hotfix.3 at C:\Users\Tim\Flutter\src\flutter
    • Framework revision b712a172f9 (17 hours ago), 2019-07-09 13:14:38 -0700
    • Engine revision 54ad777fd2
    • Dart version 2.4.0

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at C:\Users\Tim\AppData\Local\Android\Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = C:\Users\Tim\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[√] Android Studio (version 3.4)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 37.0.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[√] VS Code (version 1.36.1)
    • VS Code at C:\Users\Tim\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.2.0

[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

Getting another error message on navigation
F/libc    (18308): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x7443aa0000 in tid 18353 (1.ui)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'HUAWEI/WAS-LX1A/HWWAS-H:8.0.0/HUAWEIWAS-LX1A/390(C432):user/release-keys'
Revision: '0'
ABI: 'arm64'
pid: 18308, tid: 18353, name: 1.ui  >>> com.deskmodder <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7443aa0000
    x0<PHONE_NUMBER>aa0000  x1   000000746d4ab4f0  x2<PHONE_NUMBER>000000  x3   000000002cd549f6
    x4<PHONE_NUMBER>000000  x5   000000746d4ab548  x6<PHONE_NUMBER>6b5540  x7<PHONE_NUMBER>00000a
    x8<PHONE_NUMBER>000900  x9<PHONE_NUMBER>088c3d  x10<PHONE_NUMBER>000005  x11<PHONE_NUMBER>000001
    x12  000000003f800000  x13<PHONE_NUMBER>000000  x14  000000003f800000  x15  3f80000000000000
    x16<PHONE_NUMBER>d638e0  x17<PHONE_NUMBER>c845b0  x18<PHONE_NUMBER>00000c  x19  000000746d4ab550
    x20  000000002cd549f6  x21<PHONE_NUMBER>000c83  x22<PHONE_NUMBER>000c82  x23<PHONE_NUMBER>fe1ca0
    x24  000000746d4ab4f0  x25<PHONE_NUMBER>9cb210  x26<PHONE_NUMBER>726600  x27<PHONE_NUMBER>000900
    x28<PHONE_NUMBER>000c82  x29  000000746d4c75c0  x30<PHONE_NUMBER>8ffc60
    sp<PHONE_NUMBER>725ea0  pc<PHONE_NUMBER>c16604  pstate<PHONE_NUMBER>000000
backtrace:
    #00 pc<PHONE_NUMBER>afa604  /data/app/com.deskmodder-TJ3GTNSwPuqtAhbu18j3Uw==/lib/arm64/libflutter.so (offset 0x5e0000)
    #01 pc<PHONE_NUMBER>7e3c5c  /data/app/com.deskmodder-TJ3GTNSwPuqtAhbu18j3Uw==/lib/arm64/libflutter.so (offset 0x5e0000)
    #02 pc<PHONE_NUMBER>7e2148  /data/app/com.deskmodder-TJ3GTNSwPuqtAhbu18j3Uw==/lib/arm64/libflutter.so (offset 0x5e0000)
    #03 pc<PHONE_NUMBER>7e1ae4  /data/app/com.deskmodder-TJ3GTNSwPuqtAhbu18j3Uw==/lib/arm64/libflutter.so (offset 0x5e0000)
    #04 pc<PHONE_NUMBER>7eb9cc  /data/app/com.deskmodder-TJ3GTNSwPuqtAhbu18j3Uw==/lib/arm64/libflutter.so (offset 0x5e0000)
    #05 pc<PHONE_NUMBER>61753c  /data/app/com.deskmodder-TJ3GTNSwPuqtAhbu18j3Uw==/lib/arm64/libflutter.so (offset 0x5e0000)
    #06 pc<PHONE_NUMBER>93c2bc  /data/app/com.deskmodder-TJ3GTNSwPuqtAhbu18j3Uw==/lib/arm64/libflutter.so (offset 0x5e0000)
    #07 pc<PHONE_NUMBER>00480c  /data/app/com.deskmodder-TJ3GTNSwPuqtAhbu18j3Uw==/lib/arm64/libapp.so (offset 0x1000) (_kDartVmSnapshotInstructions+14348)

After a lot of investigation, i'm sure that the reason is not scrolling or navigation, but using Widgetspans cause this error.

bump this. The same crashing issue on an Android device.
I have a long ListView containing a lot of WidgetSpans (~50 maybe) mixed with TextSpans. They belong to different Row parents.
I think it doesn't matter if I scroll the ListView faster or slower. It will crash randomly if some WidgetSpans are going to be shown. Any of them may fail.
Crashing logs:
F/libc    ( 9794): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x800000608dcfc0 in tid 9811 (1.ui)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/zerofltezc/zerofltechn:5.0.2/LRX22G/G9200ZCU1AOFE:user/release-keys'
Revision: '10'
ABI: 'arm64'
pid: 9794, tid: 9811, name: 1.ui  >>> ############# <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x800000608dcfc0
    x0<PHONE_NUMBER>8dcfc0  x1   0000007f7e9fd970  x2   0000007f837de000  x3<PHONE_NUMBER>0000c8
    x4<PHONE_NUMBER>000000  x5<PHONE_NUMBER>000002  x6   0000007f79f02ae8  x7<PHONE_NUMBER>000003
    x8<PHONE_NUMBER>000005  x9<PHONE_NUMBER>00000c  x10<PHONE_NUMBER>000004  x11<PHONE_NUMBER>000004
    x12<PHONE_NUMBER>000002  x13  0000007f608e8d30  x14  0000007f837ec000  x15  000000007cd7c160
    x16  0000007f837de128  x17  0000007f837407b4  x18  0000007f837ef7f8  x19  0000007f6060c998
    x20  0000007f6060c9a0  x21  0000007f79fa3000  x22<PHONE_NUMBER>000002  x23  0000007f6060c940
    x24  0000007f6033b1c0  x25  0000007f6033b400  x26<PHONE_NUMBER>000003  x27  0000007f60361360
    x28<PHONE_NUMBER>000002  x29<PHONE_NUMBER>000003  x30  0000007f6c3c3254
    sp   0000007f7e9fd680  pc   0000007f6c3c32a4  pstate<PHONE_NUMBER>000000
backtrace:
    #00 pc<PHONE_NUMBER>2702a4  /data/app/##############/lib/arm64/libflutter.so
    #01 pc<PHONE_NUMBER>270250  /data/app/##############/lib/arm64/libflutter.so
    #02 pc<PHONE_NUMBER>27bfec  /data/app/##############/lib/arm64/libflutter.so
    #03 pc<PHONE_NUMBER>020ce8  /data/app/##############/lib/arm64/libflutter.so
    #04 pc<PHONE_NUMBER>426e00  /data/app/##############/lib/arm64/libflutter.so
    #05 pc<PHONE_NUMBER>0019dc  <unknown>
Tombstone written to: /data/tombstones/tombstone_03

######### Replaced the bundle name
flutter doctor -v output:
[✓] Flutter (Channel unknown, v1.8.2-pre.37, on Mac OS X 10.14.5 18F132, locale zh-Hans-CN)
    • Flutter version 1.8.2-pre.37 at /Users/li9s/github/flutter
    • Framework revision 36c81bca92 (4 days ago), 2019-07-26 15:50:35 +0800
    • Engine revision d8c9b1021b
    • Dart version 2.5.0 (build 2.5.0-dev.1.0 a2aec5eb06)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
    • Android SDK at /Users/li9s/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.0
    • Java binary at: /Applications/Dev/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
    • Xcode at /Applications/Dev/Xcode.app/Contents/Developer
    • Xcode 10.3, Build version 10G8
    • CocoaPods version 1.7.1

[✓] Android Studio (version 3.4)
    • Android Studio at /Applications/Dev/Android Studio.app/Contents
    • Flutter plugin version 36.0.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] IntelliJ IDEA Ultimate Edition (version 2019.1.3)
    • IntelliJ at /Applications/Dev/IntelliJ IDEA.app
    • Flutter plugin version 37.1.3
    • Dart plugin version 191.7830

[✓] Connected device (1 available)
    • SM G9200 • 06157df6acce492f • android-arm64 • Android 5.0.2 (API 21)

@GaryQian could you please have a look at this issue?
If repro is a must I can manage to make a minimal test case but it may take some time.
It won't be a blocker for me to remove those WidgetSpans but it will increase a lot of user experience if it is working.
Thank you for making this awesome feature possible.

I am actively investigating this. See https://github.com/flutter/flutter/issues/36176 for the other thread on this. A repro would be very helpful, In particular, a reliable repro on Android would be the most useful in where I am with the issue. The iOS repro I have seems to crash unpredictably all over the stack, making it rather difficult to track down.

This is the repro project:
https://github.com/rockingdice/flutter_span_widget_issue
Please accept my invitation to clone this repo.
It contains a lot of texts which I think may be helpful to reproduce this issue, so I keep them as they are.
You will see a long list view after the app is running, it behaves normally.
Try to uncomment the lines 514 to 515 from the file 'lib/tag_parser.dart':
//    _curTexts
//        .add(WidgetSpan(child: SizedBox(width: 16.0, height: 16.0, child: Icon(Icons.text_rotation_angleup)), baseline: TextBaseline.alphabetic));

Save the file which will trigger the hot reload, and you will probably get the crashing. If not, please try to scroll the list view, it will eventually crash.

Thanks a lot for the repro! I was able to crash it.

@GaryQian Glad to help!

This should be fixed by https://github.com/flutter/engine/pull/10295 :)
Thanks for the repro again, very helpful!


NonNullable bloating the typings file

Issue
I'm a gentledev I:

[x] fully read the README recently
[x] searched for existing issues
[x] checked I'm up to date with the latest version of the project

Expected behavior
There should not be any NonNullable<> wrappers around types that do not include nullable possibilities to begin with.
NonNullable<number>
NonNullable<string>
NonNullable<{ key: NonNullable<'value'> }>

do not make any practical sense, and just add up enormous amount of visual clutter in generated code, not to mention the bloated file size.
Actual behavior
Contrary of the above
Steps to reproduce the behavior
Generate typings against virtually any OpenAPI out there.

@kostia1st feel free to create a PR, it should sit around there: https://github.com/nfroidure/schema2dts/blob/main/src/index.ts#L1062C44-L1062C57

@kostia1st I finally gave it a lil try, feel free to review: https://github.com/nfroidure/schema2dts/pull/34

That looks great!

Just published the v6 then.


Image Not Rendered in PDF

I cannot get images to render when using the 'print' function on an internal instance of GitPitch.
I am running my own instance of GitPitch connected to an internal GitLab instance. Everything works well until I try to print / save-to-pdf. I have a single slide that contains an image ( png referenced by a local path to the related repository ). When I view the presentation through GitPitch, the image shows up as expected. When I try to print it to pdf, everything gets saved out except the image gets replaced by the question mark placeholder. The server does not indicate that anything encountered any issues. I have put the image both as an embedded image and used it as a logo through yaml and have encountered the problem in either case

Hi @tjc1575
The GitPitch server has an external dependency on the decktape library. This external library is used by the GitPitch server to convert slideshows to PDF. If you have not already installed and configured this dependency on your local server then you will need to do the following:

Install decktape on your local server
Update the gitpitch.decktape.home property in your conf/application.conf

The installation instructions are clearly detailed in the decktape README. As you will see, it's a very simple process.
You can quickly test your decktape installation by running the following command line:
cd path/to/decktape

bin/phantomjs decktape.js https://gitpitch.com/pitchme/slideshow/github/gitpitch/gitpitch/master test.pdf

You should end up with a PDF document called test.pdf that contains the contents of a simple Hello, World! presentation that includes images. Note, this command line assumes that the phantomjs binary is in the bin directory alongside the decktape.js library. If you local setup is slightly different from this layout just update the command line to match your local env.
Once you have decktape installed you then need to update the gitpitch.decktape.home property in the GitPitch server configuration file. That file can be found here:
conf/application.conf

And here is the section of that file that you will need to update:
# GitPitch Custom Configuration
gitpitch {

  hostname = "localhost:9000"

  https = false

  storage {
    home = "/tmp/gitpitch/swap"
  }

  decktape {
    home = "../decktape"
  }
.
.
.

Simply update the path for decktape.home to the path to your decktape installation on your local server.
Once you have decktape installed and you have made the necessary change to your configuration you can build and deploy your local GitPitch server one more time. You should then be able to print. Let me know how it goes.

Thanks for the reply @gitpitch
I had already figured out the decktape dependency and updated the relevant path in the configuration file. I just ran the test phantomjs command you listed and it properly created the pdf including the images.
When I try to print from GitPitch it still doesn't work though. It saves out the rest of the presentation. It just doesn't include the actual images.
Something that may be related: after going through the steps to print out the presentation the last time around I was getting an issue with resolving the url. The image wasn't showing up in GitPitch ( because it couldn't resolve the address ) and the printing of course failed. Once I logged into the GitLab instance in a different window it started resolving again.
Might the issue have something to do with the URL not resolving correctly when it is trying to print out the presentation?

@tjc1575 before we dig in any deeper can I just ask you to confirm that the repository where your slideshow presentation is contained is a public repo on your local GitLab server?

@gitpitch it was not, no. I had the repository as internal. Does it have to be public? The api token that was provided to GitPitch is from a user that has access to the repository.
I went and made the repository public for testing. I am getting the same results. The image will appear for the GitPitch viewer but is missing in the pdf.

@tjc1575 GitPitch only works with public repositories so this is a required step regardless of what GP server you are pointing at.
Based on your feedback where you are (1) seeing expected results in the browser but (2) not seeing expected results in the PDF I thought (and still think) the issue may have to do with access.
Are you logged in to GitLab within your browser where you are viewing the presentation? If so, can you try logging out of GitLab in the browser where you are testing/viewing your presenation (or trying another browser where you are not logged into GitLab) and let me know if you can still see your images in the browser?
When decktape executes it is executing in a isolated context and  will definitely not be operating with any GitLab credentials/cookies in the session.
Once you let me know what you see after performing the test described above we can work out how best to approach the issue.

@tjc1575 here is a quick test you can run that will also provide useful info to help us debug here. Can you please try the following to test/verify that public assets are available for download on the GitLab raw data API for your local GitLab server:
curl https://server/username/project/raw/branch/assets/image.jpg > image.jpg

Where:

https or http depending on your local GitLab server setup
server is the IP or hostname for your local GitLab server
username is the GitLab username associated with your public test repo
project is the GitLab project name associated with your public test repo
branch is the GitLab repo branch where your test presentation lives
assets is the repo directory where your test presentation image lives
image.jpg is the name of your test presentation image file

Note, branch could be master or the name of a feature branch if you are using one of those.
We are using curl here so we can test outside of the browser. The curl call should either succeed in which case you will end up with a local copy of your image file. Or it will fail. And if it fails, we will want to understand (1) how it fails (what error code?) and then ultimately (2) why it fails.

@gitpitch okay, so I ran a few tests. I opened up a private browser window to ensure that there was no credentials / cookies bleed over. The GitPitch presentation was able to show the image; the printed pdf still did not show the image.
I ran the curl command and was able to download the image correctly.
One thing of note came up when trying to print the pdf. The first time I clicked print in the private window I saw the following error message:
Loading page finished with status: success Reveal JS DeckTape plugin activated +- Unable to load resource from URL: http://source.chisystems.com/ice/ice/raw/master/assets/logo.png |_ Error code: 3 |_ Description: Host source.chisystems.com not found Printing slide #/0      (1/1) ... Printed 1 slides
I don't know why there would be any name resolution errors though. I have an internal DNS server going and am not seeing any problems with it ( and the GitPitch presentation view can resolve it just fine ). It only happened once. I opened up a new private window and tried the same steps again and did not see the error.

Hi @tjc1575
I can see from the decktape output that you are using the master branch for testing your presentation. PDF generation by the GitPitch server is subject to the following caching policy. So the reason you see that error from decktape only the first time is because the PDF for a presentation on the master branch is cached for up to 20 minutes. It is not regenerated every time you click Print and this is why I believe you do not see this error every time you click Print.
For your testing purposes I suggest using and testing against a feature branch so a new PDF will be generated by your server every 20 seconds.
So I think based on the error message from decktape this DNS issue is the root cause of your problem and I believe you will see this same error message every single time you cause your local GitPitch server to generate a new PDF for your presentation. Again if you switch your testing to a feature branch you can quickly verify this.
There is one more test you could run that would prove this definitively. Change the hostname configuration in the conf/application.conf file to use the IP address that corresponds to source.chisystems.com. I suspect your current configuration looks as follows:
gitpitch {
  hostname = "source.chisystems.com"

Then restart your server and see if you can view and also print your presentation. If you can you will have near definitive proof that the issue is local DNS related.

@gitpitch Yep, that fixed it. I was trying with a feature branch yesterday and don't remember seeing the resolution error, but I must have missed it. Just to clarify, the issue was actually with the GP setup. I had to change the site, apibase, and rawbase, configuration values to use the IP rather than the host name.
Any idea why it can't resolve the host?  ( All other systems, including the normal GitPitch presentation when not using print, can resolve the host )

@tjc1575 good to hear that it is now working for you. That change you made to the GP config really only changes the URLs that point at GitLab files. So instead of using a hostname those URLs would be constructed using IP addreses.
Those URLs are then used to load and render presentation content in your browser. And those same URLs are also used by decktape to embed the presentation content (in this case, image content) in the generated PDF.
Perhaps decktape is using these URLs in a custom way to load the corresponding data and that custom handling is failing somehow on name resolution. I'll ping the decktape guys and see if they can shed any further light on this.

@gitpitch okay, thanks for your help. The IP address is stable so this is a suitable work around for now. I'm closing the issue since this is really either an issue with my own local DNS ( which I don't think is the case since it works otherwise ) or an issue with name resolution in decktape.

Ok @tjc1575 I'll update this thread if I hear anything conclusive from the decktape folks.


ZSH new tab same directory

[Enter feedback here]
It's not working with ZSH.
https://learn.microsoft.com/en-us/windows/terminal/tutorials/new-tab-same-directory#zsh

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

ID: 439baddf-3ec9-a46e-1b6e-3ec47cbd1d4c
Version Independent ID: 439baddf-3ec9-a46e-1b6e-3ec47cbd1d4c
Content: Opening a tab/pane in the same directory
Content Source: TerminalDocs/tutorials/new-tab-same-directory.md
Product: dev-environment
Technology: windows-terminal
GitHub Login: @zadjii-msft
Microsoft Alias: migrie

Can you give us some additional info? How all do you have zsh and the Terminal configured? Which versions (of each)?

ZSH version : zsh 5.8.1 (x86_64-ubuntu-linux-gnu)
Windows terminal version: 1.18.3181.0
The command prompt is working exactly as intended, I have used the following commands to configure the command prompt as shown in the documentation.
set PROMPT=$e]9;9;$P$e\%PROMPT%
setx PROMPT "%PROMPT%"

However the duplicate tab functionality doesn't preserve the current directory in WSL ZSH.
I configured the ZSH by adding the following lines in the .zshrc file.
keep_current_path() {
  printf "\e]9;9;%s\e\\" "$(wslpath -w "$PWD")"
}
precmd_functions+=(keep_current_path)

Here is a video, showing the behavior of the terminal.
https://github.com/MicrosoftDocs/terminal/assets/72978371/e58a6e61-f781-43c0-b34b-b28c323580b8

@zadjii-msft
I have also found that there is another profile named ubuntu which is disabled for the dropdown menu. If we enable it, open a new tab using that profile and duplicate the tab, it preserves the directory!
https://github.com/MicrosoftDocs/terminal/assets/72978371/dac01dac-57ec-4519-8328-3419f242c547

Thanks! That profile is not compatible with starting directories.
You can find more info here


storagecontrol: folder samples cleanup

After BucketName helper is out of experimental namespace, cleanup storage_control_folder_samples.cc to use it. Additionally, we should add a similar helper for FolderName and utilize that as well.

Same goes for the managed folder samples.


Default Response isn't supported

Hi,
If i have the following, which is taken from https://swagger.io/docs/specification/describing-responses/:
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
        # Definition of all error statuses
        default:
          description: Unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'

If we send a response, with response code 500 for example, oas-tools is giving the following error:
[
  {
    "message": "Wrong response code: 500"
  }
]

Any fixes?
Thanks,
Jas

Looking at your code at:
https://github.com/isa-group/oas-tools/blob/fa7f553e3a9d37e44e33c4588671f1bb73427459/src/middleware/oas-router.js#L58
It looks like unless it's an exact match of a response code in my openapi.yaml file, we'll always get that error. This isn't in line with the openapi spec.
We should be able to use 'default', and things like '5xx' or '4xx'. Your code doesn't allow for any option.
Thanks,
Jas


add assetRegistry.filter method

Add filter method to return list of assets by any filters defined within callback by user.

Nice design.  This is even more powerful. Cheers.


Nuke gitpod

Github has codespaces now

Gitpod opens with a fully configured environment. We would need settings similar to these for Codespaces: https://github.com/ariakit/ariakit/blob/8b3d0d66381204131df81843b5559d7253283e52/.gitpod.yml


Update toc.yml

#sign-off

@inward-eye: I'm sorry - only the author of this article, @, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

#reviewer @Blesson John

#sign-off


Arrow Extension - should beRight lambda expression support

To test the returned value of an Either I am using:
val either = passwordColumn.loadType(com.google.gson.JsonPrimitive("73^pickles"))
either.shouldBeRight()
val password = (either as Either.Right<Password?>).b
password.shouldNotBe(null)
password!!.hashedPassword.shouldNotBe(null)
password.useExistingValue.shouldBe(false)

It would be nicer to be able to use lambda expression support, such as:
passwordColumn.loadType(com.google.gson.JsonPrimitive("73^pickles")).shouldBeRight {
	it.shouldNotBe(null)
	it!!.hashedPassword.shouldNotBe(null)
	it.useExistingValue.shouldBe(false)
}

Note: passwordColumn.loadType(...) returns Either<ValidationError, Password?>.

We should add the lambda version for now ?

Partial implementation added via #834

Can this be closed?

Yep
On Tue, 25 Jun 2019 at 13:54, Leonardo Colman Lopes <
<EMAIL_ADDRESS>wrote:

Can this be closed?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/kotlintest/kotlintest/issues/612?email_source=notifications&email_token=AAFVSGSJYP3RR6ZHTJ777CDP4JSV7A5CNFSM4GSR4JN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYRHTNI#issuecomment-505575861,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAFVSGWKAVRNR7RYFJW3WETP4JSV7ANCNFSM4GSR4JNQ
.


PR for #4028 - Stroom User Logging on Query with in Dictionary term

Fixes #4028

Waiting on v6 of event-logging lib with the latest xml schema so we can use IN clause.


Wrong return value when using getFeeHistory API

Description
(Similar but more general than #4231)
When we execute getFeeHistory API, it seems that Besu returns a wrong value if the requested number of blocks exceeds that of available blocks.
Steps to Reproduce (Bug)

Download the following file and untar it:
test_fee_history.tar.gz
Execute Besu binary with the following flags:
besu --data-path test_fee_history/data-besu --genesis-file test_fee_history/besu.json --rpc-http-port 8549 --rpc-http-enabled --rpc-http-api ETH --network-id 15 --discovery-enabled false
Execute the test case file: node test1.js

Expected behavior:
All other client implementations return the following result:

{
  oldestBlock: '0x0',
  reward: [ [ '0x0' ], [ '0x0' ], [ '0x0' ], [ '0x0' ], [ '0x0' ], [ '0x0' ] ],
  baseFeePerGas: [
    '0x0',
    '0x3b9aca00',
    '0x342770c0',
    '0x2da282a8',
    '0x27ee3253',
    '0x22f06c09',
    '0x1e925e88'
  ],
  gasUsedRatio: [ 0, 0, 0, 0, 0, 0 ]
}

Actual behavior:
Only Besu returns the following result:

{
  oldestBlock: '0x0',
  baseFeePerGas: [
    '0x0',        '0x3b9aca00',
    '0x342770c0', '0x2da282a8',
    '0x27ee3253', '0x22f06c09',
    '0x1e925e88', '0x1ac012b7',
    '0x17681061', '0x147b0e55',
    '0x1e925e88'
  ],
  gasUsedRatio: [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.0013010214939282877 ],
  reward: [
    [ '0x0' ],
    [ '0x0' ],
    [ '0x0' ],
    [ '0x0' ],
    [ '0x0' ],
    [ '0x0' ],
    [ '0x0' ],
    [ '0x0' ],
    [ '0x0' ],
    [ '0x1158ae3ab' ]
  ]
}

Frequency:
Always
Versions (Add all that apply)

Software version: besu/v22.4.4/linux-x86_64/openjdk-java-16
OS Name & Version: Ubuntu 20.04.4 LTS
Node.js / web3.js Versions: v16.15.0 / v1.7.3

Closing it since it is a duplicate of #4231.


Expose new endpoint for custom-environment task collection

This is fully preliminary, as the feature is not yet ready in fractal-server.
PR:

https://github.com/fractal-analytics-platform/fractal-server/pull/1587

When ready, we'll also have to add a warning message:

Collecting tasks with a custom Python environment will use that environment for running the tasks. Be careful about changing this environment, as that may break existing workflows.
It is recommended to use custom Python environments only during task development or when something needed for your environment building isn't supported in Fractal server yet. Collect the task with regular Fractal task collection for production setups.

This is taking shape in https://github.com/fractal-analytics-platform/fractal-server/pull/1607, to be soon included in a (pre-)release. Note that it's a first version, and things may change in the future (especially related to the package_root/package_name interface).

In the "tasks" page (for v2 only), we should include a new tab (next to `PyPI, Local, Single task), with name TBD (let's start with "Custom Python env", but maybe we can find a better one).

When selecting this tab, we should display the following warning message (either fully, or in a way that can be opened/collapsed):

Collecting tasks with a custom Python environment will use that environment for running the tasks. Be careful about changing this environment, as that may break existing workflows.
It is recommended to use custom Python environments only during task development or when something needed for your environment building isn't supported in Fractal server yet. Collect the task with regular Fractal task collection for production setups.

The form will include the following fields.
Request-body property: python_interpreter
Type: required string (this will be possibly long, since it's an absolute path)
Displayed name: Python Intepreter
Help message: Absolute path to the Python interpreter to be used for running tasks.
Request-body property: source:
Type: Required string (not necessarily very long)
Displayed name: Source
Help message: A common label identifying this package.
Request-body property: manifest
Type: The request-body property is an object, but here we should let the user upload or drag'n'drop an on-disk JSON file. This is required.
Displayed name: Manifest
Help message: Manifest of a Fractal task package (this is typically the content of __FRACTAL_MANIFEST__.json).
Request-body property: version
Type: Optional string
Displayed name: Version
Help message: Optional version of tasks to be collected.
Request-body property: package_name
Type: Optional string
Displayed name: Package Name
Help message: Name of the package, as used in import <package_name>; this is then used to extract the package directory (package_root) via pip show <package_name>.
Request-body property: package_root
Type: Optional string (potentially long, since it's an absolute path)
Displayed name: Package Folder
Help message: The folder where the package is installed. If not provided, it will be extracted via pip show (requires package_name to be set).

The button Collect will then make an API call to /api/v2/task/collect/custom/ (precise URL TBD). This backend endpoint processes things directly (that is, it doesn't run any background task), and returns after completion. Since it doesn't return immediately, perhaps we should handle it as we do for "slow" endpoints elsewhere in fractal-web (e.g. with a spinner?).
Success is a 201 response, while there are also a few known 422 branches.
After the endpoint returns, and in case it was successful, the task list in the DB has been updated. If we have an internal logic in the tasks page to decide when to refresh the task-list via an API call, then a successful response of this endpoint should trigger this logic.

For the source help message, let's include an example. e.g.:
Help message: A common label identifying this package. For example: pip_remote:fractal_tasks_core:1.1.0:fractal-tasks:py39:cellpose_segmentation
(how is the Python now formatted in the new source strings with required Python?)
For manifest, let's use the same approach as on the sandbox page when providing a manifest
A question here for @tcompa : How does the manifest specify the path to the relevant executables per task? Given that it's now not anymore in the folder with the package, but provided separately here and the functions are just available in the environment. Is this via package_root? If so, doesn't this need to be a required property? Or can it be package_root or package_name?

[BACKEND-RELATED DISCUSSION]

For the source help message, let's include an example. e.g.:
Help message: A common label identifying this package. For example: pip_remote:fractal_tasks_core:1.1.0:fractal-tasks:py39:cellpose_segmentation

In my view, these are user's tasks, rather than common tasks - meaning that they are not meant to adopt a standard source syntax. This means that if the user username triggers collection of mypackage and sets source to xxxxx, then source of their cellpose_segmentation task (in the current version) would look like username:xxxxx:cellpose_segmentation
The main goals of making a task common are:

Portability across instances -> not relevant for custom Python environments
Task-list sorting, where tasks from the same package are displayed together -> I'd need to review this, but I guess we could introduce some fail-safe version of it also for users' tasks.
Different access control e.g. for editing tasks -> I don't think this applies to the current case, where I expect the task owner to be the user who ran the collection.

That said, we can still make a suggestion for a source that is close to the common-tasks one, e.g. for package mypackage we would suggest mypackage:1.1.0 (although writing the version in a free-text attribute is risky if we don't enforce a strict rule on the allowed syntax, since a user could mark the task as version="2.0.0" and then set the source to `mypackage:1.0.0").

[BACKEND RELATED DISCUSSION]

A question here for @tcompa : How does the manifest specify the path to the relevant executables per task? Given that it's now not anymore in the folder with the package, but provided separately here and the functions are just available in the environment. Is this via package_root? If so, doesn't this need to be a required property? Or can it be package_root or package_name?

The package is meant to be available within the python interpreter that the user provides, and then we can discover its path automatically (given the python interpreter and the package name). This option 4C that we opted for in https://github.com/fractal-analytics-platform/fractal-server/issues/1581#issuecomment-2191499630. The fallback is 4A, where the user provides package_root explicitly.
The manifest structure is the same as it is in any other package, with relative module paths as in
      "executable_non_parallel": "tasks/cellvoyager_to_ome_zarr_init.py",
      "executable_parallel": "tasks/cellvoyager_to_ome_zarr_compute.py",

The new endpoint is now available as of fractal-server=2.3.0a0.


Search albums by artist

The current search album integration doesn't support the "artist" filter.

https://github.com/smartgic/mycroft-sonos-controller-skill/commit/e90ed62ae227db2be57cc24109fc965919a13e33
More testing is required.

Tested on Music Library, Spotify and Deezer.


Update sqlbindcol-function.md

Please change
for (i ; ; i++)
to
for (int i=0 ; ; i++)

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

@DanielAdeniji As with PR #3886, I am Rejecting this public PR #3885, because better PR #3887 already makes this same change.
We must avoid Merge Conflicts, and we must put all the changes to one article in the same one Pull Request.
But the good change suggested by this PR #3885 is going into the live article, just through 3887 instead of through this 3885.
Thank you.
I am now permanently Closing this PR 3885, without Merge.


Removing the use of the ioutil package And Fix CVE-2021-42576

Description

Fix formation security vulnerability in CVE-2021-42576.
The current minimum version of dapr is golang 1.18, which is no longer compatible with the previous version and can remove the marked deprecated functions.

Issue reference
Checklist

[x] Code compiles correctly
[ ] Created/updated tests
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

I'll take a look at this PR today. What is the impact of this CVE?

FWIW we still do not know what impact this actually has on Dapr.

go mod why github.com/microcosm-cc/bluemonday
# github.com/microcosm-cc/bluemonday
github.com/dapr/components-contrib/middleware/http/oauth2
github.com/fasthttp-contrib/sessions
github.com/fasthttp-contrib/sessions.test
github.com/kataras/go-serializer
gopkg.in/kataras/go-serializer.v0/markdown
github.com/microcosm-cc/bluemonday

Likely the CVE impact is limited to the OAuth2 middleware (if present at all)