[Component] Text introduction

Text introduction
Tracking the design and development lifecycle of the text introduction component.
A text introduction is a combination of smaller components and includes:

Heading 1
Lead Paragraph
Paragraph (optional)
Link (optional)

Related links:

Design System (Documentation): https://cfpb.github.io/design-system/patterns/text-introductions#standard-text-introduction
Design System (Codebase): https://github.com/cfpb/design-system

HTML

Effort level: Small
Definition of ready
Checklist

[X] The component has an identified use case (one of the 3 options below)
[X] The current state of the component has been identified (one of the 3 options below)
[X] The task is broken into steps

Definition of ready questionnaire:
Identify the use case:

[X] Small business lending filing platform

Complete user profile page: Introductory text

[ ] Metro 2 tool
[ ] No identified project need but does exist in the CFPB Design System

Identify the current state:

[X] The component already exist in the CFPB Design System

Build an exact React translation of the CFPB Design System component
Build the component in Figma (if it is not already included in the CFPB Design System template)

[ ] The component does not exist in the CFPB Design System but does exist on cf.gov

Conduct a design audit of any component variations that exist on our website (if applicable)
Determine final design
Build the component in Figma (if it is not already included in the CFPB Design System template)
Add the component to UI component library
Incorporate the component into the CFPB Design System or alert the CFPB Design System maintainers that this component will need to be added.

[ ] The component does not exist in the CFPB Design System or on cf.gov (but has an identified use case and is being tracked as part of the SBL or M2 work)

Design the component as a part of the SBL or Metro 2 project work
Build the component in Figma (if it is not already included in the CFPB Design System template)
Add the component to UI component library
Incorporate the component into the CFPB Design System or alert the CFPB Design System maintainers that this component will need to be added.

Indicate which types we will include in the React component library.
Types

[X] Text introduction

Definition of done
Component is fully functional

[ ] Visual regression testing has been conducted
[ ] All interactive states are accounted for and incorporated
[ ] The component is successfully integrated into the Small business lending filing platform (or prototype) or other CFPB  web app

Accessibility checks have been completed

[ ] Component is keyboard-friendly (navigable with tab, space, enter, arrow keys, etc.)
[ ] Component is screen reader friendly
[ ] Component does not introduce new errors or warnings in WAVE

For existing Design System components:

[ ] React component visually and functionally matches the CFPB Design System component
[ ] Visual regression testing has been conducted and component has passed all tests
[ ] Manual visual review has been conducted and component has passed this review
[ ] Storybook page includes all types and variations of the component that are included in the CFPB Design System

For new components:

[ ] The CFPB Design System maintainers have been alerted that there is a new component that must be added to the system OR
[ ] We have added the new components to the CFPB Design System
[ ] Documentation has been written and is included in Storybook and/or the CFPB Design System

Final sign off

[ ] The component has been reviewed and approved by UI, UX, and FEWD

@meissadia
Pulling this out of the PR for visibility.
Existing implementation of component parts:
Heading 1

Top-margin: 0 px (all screen widths)
Bottom-margin: 15px (all screen widths)
Drops to H2 at mobile

Lead paragraph

Top-margin: 30 px (all screen widths)
Bottom-margin: 18.33px (desktop)
Drops to custom H4 - Regular weight at mobile
Bottom-margin: 15px (mobile)
When it is the last element: 0px bottom-margin
Sometimes implemented as a div and sometimes as a  class (styled with  class in DS and both  class and  on the website depending on the instance)

Paragraph

Top-margin: 0px (all screen widths)
Bottom-margin: 15px (all screen widths)
No style change at mobile
When  is the last element bottom-margin: 0px

Cf.gov/DSR

Block class applied to the wrapper element that encases the TextIntroduction's elements (h1, p.lead-paragraph, p, .list-link)
Top-margin: 60px (all screen widths)
block_flush-top class (cf.gov) isFlushTop property (React) - Removes top-margin
45px space above H1 comes from (.u-layout-grid_main) and does not come from the text introduction's elements.


Feature request: Make colons optional in GDScript

I'd prefer skipping the end of line ":" on functions and control structures if / for /while and so on.
I think it looks neater and saves a lazy key stroke :)

I don't think it's possible, nor desirable, but I'll let parser experts answer with some technical details.

No, I don't think it's possible.. also not really worth it..
On May 31, 2017 3:26 AM, "Rémi Verschelde"<EMAIL_ADDRESS>wrote:

I don't think it's possible, nor desirable, but I'll let parser experts
answer with some technical details.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/9006#issuecomment-305096144,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-Z21GJklUvJxBWwsRhJPfmXffLlIRHks5r_QgTgaJpZM4NrNKo
.

Closing then, it won't happen, sorry.


[DO NOT MERGE] testing flakiness

Description
Changes proposed in this pull request:

...
...
...

Related issue(s)

No longer needed


co-simulation with apollov7 by this repo

Hello, now I have successfully started all the services of your repo. Next, I need to conduct co-simulation with apollov7. So what version of lgsvl should I use, what Settings should I use? What service should we have at apollo?
THANK YOU!

Hi,
I don't think anything changed beside having to point LGSVL client to this local cloud. You should consider following LGSVL's official documentation about setting up LGSVL with Apollo.

Hi, I don't think anything changed beside having to point LGSVL client to this local cloud. You should consider following LGSVL's official documentation about setting up LGSVL with Apollo.

thank you,but Many of the content/plugins are no longer available from the official website when I started the simulator

Back then I collected and downloaded a lot of assets, can you take a look at if you can find what you need in my collected assets?

Closing this issue due to inactivity. Please reopen if you need further discussion.


rename test-resources manifest directory

The test-resources name is a misnomer, since these manifests are no longer solely used for testing.

/assign @nan-yu

These resources are definitely for testing only, but they're not hack either.
They're required resources for Config Sync to functionally work.
What about renaming 00-namespace.yaml to cs-namespaces.yaml and moving it along with resourcegroup-manifest.yaml to the manifests folder directly? They should also be included in manifests/base/kustomization.yaml.

They aren't testing only, they are used to build the multirepo manifests for OSS Config Sync installation. They also should not be added to manifests/base/kustomization.yaml since they are not used in ACM operator installation.
I'm fine with moving them directly to the manifests folder directly - However these are still kind of special resources since they are used to make Config Sync installable (e.g. in tests and in OSS) but not included in what we publish for ACM operator.

They aren't testing only, they are used to build the multirepo manifests for OSS Config Sync installation.

Sorry for the confusion. I meant “These resources are definitely for NOT testing only, but they're not hack either.”

They also should not be added to manifests/base/kustomization.yaml since they are not used in ACM operator installation.
I'm fine with moving them to the manifests folder directly - However these are still kind of special resources since they are used to make Config Sync installable (e.g. in tests and in OSS) but not included in what we publish for ACM operator.

That's right. They can't be in the base layer. It makes sense for them to be in the oss overlay, but not the operator overlay.

What about renaming 00-namespace.yaml to cs-namespaces.yaml and moving it along with resourcegroup-manifest.yaml to the manifests folder directly?

I think conceptually it's reasonable to keep these in their own directory since they are special resources. The directory structure also seems to be designed around the old make targets, since they copy all files from the top level manifests/ directory. I could work around this but I think it would be more straightforward to hold off on a flattening refactor until the old make targets are retired/removed (this will be done shortly after the monorepo migration is complete). Do you have a subdirectory name that you prefer to hack?

What about renaming 00-namespace.yaml to cs-namespaces.yaml and moving it along with resourcegroup-manifest.yaml to the manifests folder directly?

I think conceptually it's reasonable to keep these in their own directory since they are special resources. The directory structure also seems to be designed around the old make targets, since they copy all files from the top level manifests/ directory. I could work around this but I think it would be more straightforward to hold off on a flattening refactor until the old make targets are retired/removed (this will be done shortly after the monorepo migration is complete). Do you have a subdirectory name that you prefer to hack?

I see. I'm okay with the separate directory, but still think it is not a hack, what about standalone, dependencies, or cs-components? standalone indicates these resources are needed for the standalone Config Sync installation. dependencies and cs-components mean that these resources are needed by Config Sync?

@nan-yu Actually now with the monorepo migration work done and the old make targets removed, I think we have a bit more flexibility now. I moved the namespaces file up to the manifests dir and renamed it cs-namespaces.yaml as you suggested. For the RG manifest I created a new third_party directory. WDYT?

Nan Yu Actually now with the monorepo migration work done and the old make targets removed, I think we have a bit more flexibility now. I moved the namespaces file up to the manifests dir and renamed it cs-namespaces.yaml as you suggested. For the RG manifest I created a new third_party directory. WDYT?

I like it.


New regional analysis display

More additions to the new regional analysis interface. It needs a few things still but wanted to get this up there so that review can be done on what's here so far.
Still needed:

Automated tests, will look at tomorrow
Entering the regional analysis mode is currently causing a page refresh, need to fix that
Styling is needed, there are some spurious scrollbars and missing padding.

Current coverage is 53.13% (diff: 40.00%)

Merging #212 into dev will decrease coverage by 0.37%

@@                dev       #212   diff @@
==========================================
  Files           166        167     +1
  Lines          3500       3508     +8
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits           1873       1864     -9
- Misses         1627       1644    +17
  Partials          0          0

Powered by Codecov. Last update 332d06a...cc0849b

This should be ready to go.

Rebased and merged.


npm run build fail

i got no idea just copy all in Vue_Full_Project to a seperate folder and npm run dev work  but after wanna build test on hosting it give me error like this.
$ npm run build

><EMAIL_ADDRESS>build C:\wamp64\www\vue-admin
> node build/build.js

- building for production...C:\wamp64\www\vue-admin\node_modules\optimize-css-assets-webpack-plugin\node_modules\last-call-webpack-plugin\src\index.js:170
    compiler.hooks.compilation.tap(
                   ^

TypeError: Cannot read property 'compilation' of undefined
    at OptimizeCssAssetsWebpackPlugin.apply (C:\wamp64\www\vue-admin\node_modules\optimize-css-assets-webpack-plugin\node_modules\last-call-webpack-plugin\src\index.js:170:20)
    at Compiler.apply (C:\wamp64\www\vue-admin\node_modules\tapable\lib\Tapable.js:375:16)
    at webpack (C:\wamp64\www\vue-admin\node_modules\webpack\lib\webpack.js:33:19)
    at err (C:\wamp64\www\vue-admin\build\build.js:19:3)
    at next (C:\wamp64\www\vue-admin\node_modules\rimraf\rimraf.js:75:7)
    at CB (C:\wamp64\www\vue-admin\node_modules\rimraf\rimraf.js:111:9)
    at C:\wamp64\www\vue-admin\node_modules\rimraf\rimraf.js:137:14
    at FSReqWrap.oncomplete (fs.js:166:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>build: `node build/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      C:\Users\Camfone\AppData\Roaming\npm-cache\_logs\2018-05-12T05_44_11_862Z-debug.log

this is my config
'use strict'
// Template version: 1.3.1
// see http://vuejs-templates.github.io/webpack for documentation.

const path = require('path')

module.exports = {
  dev: {

    // Paths
    assetsSubDirectory: 'static',
    assetsPublicPath: '/',
    proxyTable: {},

    // Various Dev Server settings
    host: 'localhost', // can be overwritten by process.env.HOST
    port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
    autoOpenBrowser: true,
    errorOverlay: true,
    notifyOnErrors: true,
    poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-

    // Use Eslint Loader?
    // If true, your code will be linted during bundling and
    // linting errors and warnings will be shown in the console.
    useEslint: true,
    // If true, eslint errors and warnings will also be shown in the error overlay
    // in the browser.
    showEslintErrorsInOverlay: true,

    /**
     * Source Maps
     */

    // https://webpack.js.org/configuration/devtool/#development
    devtool: 'cheap-module-eval-source-map',

    // If you have problems debugging vue-files in devtools,
    // set this to false - it *may* help
    // https://vue-loader.vuejs.org/en/options.html#cachebusting
    cacheBusting: true,

    cssSourceMap: true
  },

  build: {
    // Template for index.html
    index: path.resolve(__dirname, '../dist/index.html'),

    // Paths
    assetsRoot: path.resolve(__dirname, '../dist'),
    assetsSubDirectory: 'static',
    assetsPublicPath: '/',

    /**
     * Source Maps
     */

    productionSourceMap: true,
    // https://webpack.js.org/configuration/devtool/#production
    devtool: '#source-map',

    // Gzip off by default as many popular static hosts such as
    // Surge or Netlify already gzip all static assets for you.
    // Before setting to `true`, make sure to:
    // npm install --save-dev compression-webpack-plugin
    productionGzip: false,
    productionGzipExtensions: ['js', 'css'],

    // Run the build command with an extra argument to
    // View the bundle analyzer report after build finishes:
    // `npm run build --report`
    // Set to `true` or `false` to always turn it on or off
    bundleAnalyzerReport: process.env.npm_config_report
  }
}

Help please Thank in advanced

@mrholek i found solution because your package json is webpack v3x while u set "optimize-css-assets-webpack-plugin": "^4.0.1" because it for webpack v4 only please kindly fix in your package "optimize-css-assets-webpack-plugin": "^3.2.0", Thank for your awesome work.


Membrane keyboad not debounced

I have this setup and  the hardware all seems to work but I cannot enter single digit times - Whenever i touch a key I get 11.1 or 33.3 or 66.6 etc. I read some bits about debouncing keys to allow a 250ms delay but I am not skliled enough to implement this.
I am a novice to this but see in your code there is a "TODO: add event listener for keypad" Is this what is required or is there another later .ino which fixes this.  Many thanks. Alan

The Timerino was evolved and the github project is out of date.
If you send me your email address i send new code and hardware setup.
@.***
Il giorno gio 26 gen 2023 alle ore 16:32 alanbradford <
@.***> ha scritto:

I have this setup and the hardware all seems to work but I cannot enter
single digit times - Whenever i touch a key I get 11.1 or 33.3 or 66.6 etc.
I read some bits about debouncing keys to allow a 250ms delay but I am not
skliled enough to implement this.
I am a novice to this but see in your code there is a "TODO: add event
listener for keypad" Is this what is required or is there another later
.ino which fixes this. Many thanks. Alan
—
Reply to this email directly, view it on GitHub
https://github.com/ciromattia/timerino/issues/3, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABJ557HKSFXDPH5ARDUEG5DWUKKIXANCNFSM6AAAAAAUHUKZQ4
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Thanks<EMAIL_ADDRESS>

@.***
Thanks!
Alan Bradford

On 26 Jan 2023, at 17:04, DanieleLucarelli @.***> wrote:

The Timerino was evolved and the github project is out of date.
If you send me your email address i send new code and hardware setup.
@.***
Il giorno gio 26 gen 2023 alle ore 16:32 alanbradford <
@.***> ha scritto:

I have this setup and the hardware all seems to work but I cannot enter
single digit times - Whenever i touch a key I get 11.1 or 33.3 or 66.6 etc.
I read some bits about debouncing keys to allow a 250ms delay but I am not
skliled enough to implement this.
I am a novice to this but see in your code there is a "TODO: add event
listener for keypad" Is this what is required or is there another later
.ino which fixes this. Many thanks. Alan
—
Reply to this email directly, view it on GitHub
https://github.com/ciromattia/timerino/issues/3, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABJ557HKSFXDPH5ARDUEG5DWUKKIXANCNFSM6AAAAAAUHUKZQ4
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.

Thanks!
Alan Bradford

On 26 Jan 2023, at 17:04, DanieleLucarelli @.***> wrote:

The Timerino was evolved and the github project is out of date.
If you send me your email address i send new code and hardware setup.
@.***
Il giorno gio 26 gen 2023 alle ore 16:32 alanbradford <
@.***> ha scritto:

I have this setup and the hardware all seems to work but I cannot enter
single digit times - Whenever i touch a key I get 11.1 or 33.3 or 66.6
etc.
I read some bits about debouncing keys to allow a 250ms delay but I am
not
skliled enough to implement this.
I am a novice to this but see in your code there is a "TODO: add event
listener for keypad" Is this what is required or is there another later
.ino which fixes this. Many thanks. Alan
—
Reply to this email directly, view it on GitHub
https://github.com/ciromattia/timerino/issues/3, or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ABJ557HKSFXDPH5ARDUEG5DWUKKIXANCNFSM6AAAAAAUHUKZQ4

.
You are receiving this because you are subscribed to this
thread.Message
ID: @.***>

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.

—
Reply to this email directly, view it on GitHub
https://github.com/ciromattia/timerino/issues/3#issuecomment-1405299245,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABJ557BLNGGGQ2IXDHA6YQLWUKTMTANCNFSM6AAAAAAUHUKZQ4
.
You are receiving this because you commented.Message ID:
@.***>

Hi, i saw that Timerino is evolved to ver. 3.01 with the work of Alessio
Bortoletto.
Here: https://alessiobortoletto.wixsite.com/alessiobortoletto/projects-2
you find everything.
Il giorno gio 26 gen 2023 alle ore 17:34 alanbradford <
@.***> ha scritto:

Thanks! @.***
—
Reply to this email directly, view it on GitHub
https://github.com/ciromattia/timerino/issues/3#issuecomment-1405276873,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABJ557FA3P72JDW3D4TZMMDWUKRP3ANCNFSM6AAAAAAUHUKZQ4
.
You are receiving this because you commented.Message ID:
@.***>

Thanks you very much!
Alan Bradford
@.***

On 27 Jan 2023, at 10:29, DanieleLucarelli @.***> wrote:
Hi, i saw that Timerino is evolved to ver. 3.01 with the work of Alessio
Bortoletto.
Here: https://alessiobortoletto.wixsite.com/alessiobortoletto/projects-2
you find everything.
Il giorno gio 26 gen 2023 alle ore 17:34 alanbradford <
@.***> ha scritto:

Thanks! @.***
—
Reply to this email directly, view it on GitHub
https://github.com/ciromattia/timerino/issues/3#issuecomment-1405276873,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABJ557FA3P72JDW3D4TZMMDWUKRP3ANCNFSM6AAAAAAUHUKZQ4
.
You are receiving this because you commented.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub https://github.com/ciromattia/timerino/issues/3#issuecomment-1406243036, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5PMZBJYO5CAWBWBRGOWHXDWUOIO3ANCNFSM6AAAAAAUHUKZQ4.
You are receiving this because you authored the thread.


align with Ember's HistoryLocation property _previousURL

fix for issue #104

Upon review, I'm not really clear why router-scroll needs to implement a custom location type -- it looks like the original intent was to allow back button'ing for nested routes, but I can see that @bcardarella merged the same functionality into Ember back around 2.12:
https://github.com/emberjs/ember.js/commit/6ab3170c64a1e5fc97166150b300832e29333deb#diff-dfe062cc6857a1454f76d9e28bda3400
Can we remove the custom location type entirely?

That was the intent of the commit into Ember. But you should do a
deprecation release then major version bump IMO
On Sat, Apr 21, 2018 at 9:24 PM Josh<EMAIL_ADDRESS>wrote:

Upon review, I'm not really clear why router-scroll needs to implement a
custom location type -- it looks like the original intent was to allow back
button'ing for nested routes, but I can see that @bcardarella
https://github.com/bcardarella merged the same functionality into Ember
back around 2.12:
emberjs/ember.js@6ab3170#diff-dfe062cc6857a1454f76d9e28bda3400
https://github.com/emberjs/ember.js/commit/6ab3170c64a1e5fc97166150b300832e29333deb#diff-dfe062cc6857a1454f76d9e28bda3400
Can we remove the custom location type entirely?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dollarshaveclub/ember-router-scroll/pull/130#issuecomment-383347301,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABIXAuypqahxgSBFrT9KhEfnHZiiMLeks5tq9vogaJpZM4Terwt
.

--

Brian Cardarella
CEO of DockYard
Visit us: http://dockyard.com
Call us: (855) DOCK-YRD
Follow me on Twitter: http://twitter.com/bcardarella
Follow us on Twitter: http://twitter.com/DockYard

@joshkg have you tried without the custom location type? I'm not sure how all that works.

@bcardarella Agreed, that's a significant change.
@rwwagner90 In working on this particular bug, I did try removing custom location type and all seemed to be working, but that can be another PR. If we can get this one in, it will at least solve the immediate issue with the browser back after reload.

Merged, thanks @joshkg! Please follow up with whatever other changes we need to remove the custom location type.

@rwwagner90 Great, thanks! Will dig into the change for removing custom location type this week.


Need a function to decode a single pixel

Thanks for this excellent library!
In a graphics development / debugging application (https://github.com/electronicarts/gigi/) we have a feature where a user can click on a pixel of an image being shown in a debug context, and the UI will show the value of the pixel.
This is done by reading back the resource and displaying the values under the pixel.
This works fine for uncompressed formats, but for compressed formats, it's decompressing the entire texture.
It would be really nice if there was an interface where you could ask for a single pixel, and it could internally do the minimal amount of work needed to get the value - like maybe decoding the single block containing that pixel.
I found this library which can help, but it doesn't support BC6, and it would be nice to use your library, as I'm using it to load and save dds images.
https://github.com/richgel999/bc7enc
Thank you!

You could pretty easily do the decompression of a single block with the existing library. You just need to fix up the pixels pointer and tell the library to decompression a 4x4 image.

Good point.  I have something working that I'll share or maybe make a pull request for, once I finish testing.

This needs to support mips and isn't pull request ready as is, but might be useful for other people to follow along with.
I'll update this (and again, maybe a pull request), when it has mip support.
static bool DecodeBCnPixel(ID3D12Resource* readbackResource, D3D12_RESOURCE_DESC resourceOriginalDesc, int width, int height, int depth, int x, int y, int z, std::vector<unsigned char>& pixel, DXGI_FORMAT& pixelFormat)
    {
        // Calculate where the block is that we care about, so we can decompress just a single block
        size_t blockOffset = 0;
        size_t blockSize = 0;
        {
            size_t rowPitch = 0;
            size_t slicePitch = 0;
            HRESULT hr = DirectX::ComputePitch(resourceOriginalDesc.Format, width, height, rowPitch, slicePitch);
            if (FAILED(hr))
                return false;

            blockSize = DirectX::BytesPerBlock(resourceOriginalDesc.Format);
            size_t blockRowSize = rowPitch;
            size_t blockOffsetX = x / 4;
            size_t blockOffsetY = y / 4;
            blockOffset = z * slicePitch + blockOffsetY * blockRowSize + blockOffsetX * blockSize;
        }

        // set up compressed image data
        DirectX::Image compressedImages;
        compressedImages.width = 4;
        compressedImages.height = 4;
        compressedImages.format = resourceOriginalDesc.Format;
        HRESULT hr = DirectX::ComputePitch(compressedImages.format, compressedImages.width, compressedImages.height, compressedImages.rowPitch, compressedImages.slicePitch);
        if (FAILED(hr))
            return false;

        // Map the block we care about
        D3D12_RANGE readRange;
        readRange.Begin = blockOffset;
        readRange.End = blockOffset + blockSize;
        uint8_t* readbackData = nullptr;
        hr = readbackResource->Map(0, &readRange, (void**)&readbackData);
        if (FAILED(hr))
            return false;

        // Decompress the block
        compressedImages.pixels = &readbackData[blockOffset];
        DirectX::ScratchImage decompressedImages;
        hr = DirectX::Decompress(compressedImages, DXGI_FORMAT_UNKNOWN, decompressedImages);

        // Unmap
        D3D12_RANGE writeRange;
        writeRange.Begin = 1;
        writeRange.End = 0;
        readbackResource->Unmap(0, &writeRange);
        if (FAILED(hr))
            return false;

        // Copy the specific pixel we care about and return success
        const DirectX::Image* decompressedImage = decompressedImages.GetImage(0, 0, 0);
        pixelFormat = decompressedImages.GetMetadata().format;
        size_t pixelBytes = DirectX::BitsPerPixel(pixelFormat) / 8;
        pixel.resize(pixelBytes);
        memcpy(pixel.data(), &decompressedImage->pixels[(y % 4) * decompressedImage->rowPitch + (x % 4) * pixelBytes], pixelBytes);
        return true;
    }

Here's a version that takes mips into account and seems to work for me.
It would be nice if there were a function like this in the API, that would give you a specific pixel value, or perhaps a rectangle of pixel values if people would get use out of that.
    static bool DecodeBCnPixel(ID3D12Device2* device, ID3D12Resource* readbackResource, D3D12_RESOURCE_DESC resourceOriginalDesc, int width, int height, int depth, int x, int y, int z, int mipIndex, std::vector<unsigned char>& pixel, DXGI_FORMAT& pixelFormat)
    {
        // Calculate the subresource that we care about
        z = std::max(0, std::min(depth - 1, z));
        bool is3D = (resourceOriginalDesc.Dimension == D3D12_RESOURCE_DIMENSION_TEXTURE3D);
        unsigned int subresourceIndex = D3D12CalcSubresource(mipIndex, is3D ? 0 : z, 0, resourceOriginalDesc.MipLevels, is3D ? 1 : depth);

        // Get information about the subresources
        unsigned int numSubResources = is3D
            ? resourceOriginalDesc.MipLevels
            : resourceOriginalDesc.MipLevels * resourceOriginalDesc.DepthOrArraySize;
        std::vector<unsigned char> layoutsMem((sizeof(D3D12_PLACED_SUBRESOURCE_FOOTPRINT) + sizeof(UINT) + sizeof(UINT64)) * numSubResources);
        std::vector<unsigned int> numRows(numSubResources);
        D3D12_PLACED_SUBRESOURCE_FOOTPRINT* layouts = (D3D12_PLACED_SUBRESOURCE_FOOTPRINT*)layoutsMem.data();
        device->GetCopyableFootprints(&resourceOriginalDesc, 0, numSubResources, 0, layouts, numRows.data(), nullptr, nullptr);

        // Ensure params are in range
        const D3D12_PLACED_SUBRESOURCE_FOOTPRINT& layout = layouts[subresourceIndex];
        x = std::max<UINT>(0, std::min<UINT>(layout.Footprint.Width - 1, x));
        y = std::max<UINT>(0, std::min<UINT>(layout.Footprint.Height - 1, y));
        if (is3D)
            z = std::max<UINT>(0, std::min<UINT>(layout.Footprint.Depth - 1, z));
        else
            z = 0;

        // Calculate where the block is that we care about, so we can decompress just a single block
        size_t blockOffset = 0;
        size_t blockSize = 0;
        {
            size_t rowPitch = layout.Footprint.RowPitch;
            size_t slicePitch = layout.Footprint.RowPitch * numRows[subresourceIndex];

            blockSize = DirectX::BytesPerBlock(resourceOriginalDesc.Format);
            size_t blockRowSize = rowPitch;
            size_t blockOffsetX = x / 4;
            size_t blockOffsetY = y / 4;
            blockOffset = layout.Offset + z * slicePitch + blockOffsetY * blockRowSize + blockOffsetX * blockSize;
        }

        // set up compressed image data
        DirectX::Image compressedImages;
        compressedImages.width = 4;
        compressedImages.height = 4;
        compressedImages.format = resourceOriginalDesc.Format;
        HRESULT hr = DirectX::ComputePitch(compressedImages.format, compressedImages.width, compressedImages.height, compressedImages.rowPitch, compressedImages.slicePitch);
        if (FAILED(hr))
            return false;

        // Map the block we care about
        D3D12_RANGE readRange;
        readRange.Begin = blockOffset;
        readRange.End = blockOffset + blockSize;
        uint8_t* readbackData = nullptr;
        hr = readbackResource->Map(0, &readRange, (void**)&readbackData);
        if (FAILED(hr))
            return false;

        // Decompress the block
        compressedImages.pixels = &readbackData[blockOffset];
        DirectX::ScratchImage decompressedImages;
        hr = DirectX::Decompress(compressedImages, DXGI_FORMAT_UNKNOWN, decompressedImages);

        // Unmap
        D3D12_RANGE writeRange;
        writeRange.Begin = 1;
        writeRange.End = 0;
        readbackResource->Unmap(0, &writeRange);
        if (FAILED(hr))
            return false;

        // Copy the specific pixel we care about and return success
        const DirectX::Image* decompressedImage = decompressedImages.GetImage(0, 0, 0);
        pixelFormat = decompressedImages.GetMetadata().format;
        size_t pixelBytes = DirectX::BitsPerPixel(pixelFormat) / 8;
        pixel.resize(pixelBytes);
        memcpy(pixel.data(), &decompressedImage->pixels[(y % 4) * decompressedImage->rowPitch + (x % 4) * pixelBytes], pixelBytes);
        return true;
    }


feat(data/equiv/perm): create perm.lean and signatures of permutations

Also definition of mu2, the group with two elements 1 and -1 and are_conj relation on elements of a group.
TO CONTRIBUTORS:
Make sure you have:

[x] reviewed and applied the coding style: coding, naming
[x] make sure definitions and lemmas are put in the right files
[x] make sure definitions and lemmas are not redundant

For reviewers: code review check list

I didn't take a deep look yet. But what about moving mu2 (which is isomorphic to bool) and equiv.perm to group_theory?

Would units ℤ be better then mu2?

Closing this because I think I've found a much simpler method.

@dorhinj I added some theorems about units Z and a neg function to make this a reasonable option in 1b93719 .

I've swapped to using units ℤ instead of mu2. I've also changed the definition of sign, so hopefully it should be faster. The old definition was based on
def sign_aux {n : ℕ} (a : perm (fin n)) : units ℤ :=
(fin_pairs_lt n).prod (λ x, if a x.1 ≤ a x.2 then -1 else 1)

The new definition is based on
def sign_aux2 : list α → perm α → units ℤ
| []     f := 1
| (x::l) f := if f x = x then sign_aux2 l f else -sign_aux2 l (swap x (f x) * f)

The first definition still exists, but only for proof purposes. The new definition is closer to linear time, whereas the old one was more like n^2 time. The new definition also does not rely on equiv_fin, which should make it faster. The file is still around the same length with the faster definition.

Looks like travis failed for no particular reason.


potential issue with pairing observation, missing hours pair

when I am running and develop MONET code. I print out the pairdf_all and pairdf and find there is a potential paring issue.
so I have observation from AirNow (08/01 0am to 08/31 23pm). and 2 model runs from CMAQ AQM (08/15 1am to 08/31 23pm).
if print out 'pairdf_all' it start at 08/15 1am. and print out 'pairdf' for 1st start at '08/15 13pm'
and 'pairdf' for 2nd model  start at '08/15 1am'.  I am sure both model start save time at (08/15 1am)
further debugging suggest that there are missing observation between '08/15 2am - 11am for AirNow'.
But why MONET drop paired observation for 1st model, but keep 1am observation for the 2nd model?
if request, I can provide more details in a slide. Thanks!

Did you check them before the NaN dropping?
https://github.com/NOAA-CSL/MELODIES-MONET/blob/067ef1e8df38d9239fb7411c20ff856be1de6203/melodies_monet/driver.py#L1201-L1206
(and before any selection by time or domain)
Feel free to provide the slide for more info.

thanks @zmoon I checked the pairdf_all has all time and domain with nan values, and after dropping nan 'pairdf' has no observation at 1am. even though it should.
I will send the slide later this week.

Also if you share your control file location I could investigate as well.

Control file in folder: /home/btang6/python
And I use ‘job_script_XnodeXcores.sh’ which should read 'Compare_3cmaq_airnow_AGU2023.yaml’ when I try to read 3 models.
Change starttime to 08/15/2024 13pm solve the problem, but if you set start time as 08/15/2023 1am, you will see different model have different pairdf start time if print out. While pairdf_all remain the same.
On Jan 24, 2024, at 12:20 AM, Zachary Moon @.***> wrote:
Also if you share your control file location I could investigate as well.
—
Reply to this email directly, view it on GitHubhttps://github.com/NOAA-CSL/MELODIES-MONET/issues/238#issuecomment-1907397267, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMGOO66M3EN7TXFDCDAIC63YQCK2PAVCNFSM6AAAAABCF3RWGOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBXGM4TOMRWG4.
You are receiving this because you authored the thread.Message ID: @.***>

Thanks for sharing that. Which variable (O3, PM2.5, ...) is this for? Is it the same for other variables?

I only check pm2.5.
Sent from my iPhone
On Jan 30, 2024, at 2:25 PM, Zachary Moon @.***> wrote:

Thanks for sharing that. Which variable (O3, PM2.5, ...) is this for? Is it the same for other variables?
—
Reply to this email directly, view it on GitHubhttps://github.com/NOAA-CSL/MELODIES-MONET/issues/238#issuecomment-1917736111, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMGOO675D7XEA6FXGYK7O6DYRFCLRAVCNFSM6AAAAABCF3RWGOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJXG4ZTMMJRGE.
You are receiving this because you authored the thread.Message ID: @.***>

I checked all AQM runs.
if model output start at 13pm, 'time' variable start at 12pm, 'time_iso' is 13pm. NO PROBLEM!
if model output start at 1am, 'time' variable start at 12pm, 'time_iso' is 1 meaning 13pm. That is the problem.
This happened in all model runs output at 1am. and could be some thing happen when output the model results. not post-processing step.

@btang1 @zmoon is this resolved now?

@zmoon @bbakernoaa I have a branch in my home GitHub that can print out different model numbers, when this problem happen. just give a waring to user that the size do not match.
my branch is here:https://github.com/btang1/MELODIES-MONET/tree/PairOBS
and the result is here: https://docs.google.com/presentation/d/15GxUcM139Dns4K4VPmUexPdMMcdwJe9l/edit?usp=share_link&ouid=117233739375959098251&rtpof=true&sd=true

@btang1 I think we can close this since we have #245


Escape expected output in ImportedProjectsSdkImportsAreInPreprocessedOutput

Fixes #2932

The remaining CI jobs seem to be dangling ... zombie jobs from before the old build logic. Triggered a deletion of the master jobs, hopefully that will remove them.

@dotnet-bot test this please

@dotnet-bot test ci please

@dotnet-bot test ci please

the master branch generator job doesn't seem to exist, and no master branch jobs exist. All of the CIs into master are just dangling :(


Error on start server

First run json-server –watch MY_URL/db.json success.
Restart computer and run json-server –watch MY_URL/db.json got:
  \{^_^}/ hi!

  Loading –watch
/usr/local/lib/node_modules/json-server/lib/cli/utils/load.js:39
    throw new Error(`Unsupported source ${source}`);
    ^

Error: Unsupported source –watch
    at module.exports (/usr/local/lib/node_modules/json-server/lib/cli/utils/load.js:39:11)
    at start (/usr/local/lib/node_modules/json-server/lib/cli/run.js:125:5)
    at module.exports (/usr/local/lib/node_modules/json-server/lib/cli/run.js:162:3)
    at module.exports (/usr/local/lib/node_modules/json-server/lib/cli/index.js:81:3)
    at Object.<anonymous> (/usr/local/lib/node_modules/json-server/lib/cli/bin.js:3:14)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)

db.json is a json with right format.
Do not know why I have this error

Hi @shic I'm not sure -watch is recognized as an option, I would suggest trying with --watch

@shic After the computer restart -watch seems to be useless. This following code should work
json-server MY_URL/db.json

@shic After the computer restart -watch seems to be useless. This following code should work json-server MY_URL/db.json
@typicode i used -watch and it worked 0_o the first time...

AFTER doing --watch it's not working either

The following command worked for me: json-server --watch db.json

am having this same issue


typo: graphrbac

otherwsie -> otherwise
Objectit -> Object
Reqired -> Required

Automation for azure-sdk-for-js

Can one of the admins verify this patch?

Automation for azure-sdk-for-python

Automation for azure-sdk-for-node

Automation for azure-sdk-for-go

Automation for azure-sdk-for-java


Rails 5 support

Please consider removing the Rails 5 restriction from the gemspec, so folks who want to live on the bleeding edge, like me, can use delayed_job in our projects.
I tried removing the restriction, and things seem to work fine for me.
https://github.com/pwnall/delayed_job_active_record/tree/rails5
Thank you for delayed_job! :heart:

We won't be removing the upper limit on the release gem, although I am considering creating an edge branch that you could track to if you want to live dangerously.

+1

I would just like to add that with the release of Rails 5.0.0.beta1 just days ago, many users (myself included) are seeking to upgrade their current Rails 4.2 apps to ensure forward-compatibility with this new version of Rails and to make use of its new features and capabilities. This is difficult to do visavis  delayed_job with AR until this change is made.

Please note I have submitted PR #118 which enables compatibility with Rails 5.0.x and runs it against the provided battery of CI tests, confirming that all integration tests pass with this newest version of Rails.
I would therefore propose that this gem is ready for release with Rails 5.0.x interoperability supported.

+1

@albus522 Thanks for merging! Any chance of pushing out a new release to encourage testing of Rails 5 since it's now in beta?

Right now there are still deprecation warnings, so not ready for a release. Also not likely to cut an official release until there is at least an rc version of rails. In the meantime you can use bundler's git handling http://bundler.io/git.html

@albus522 I can submit a patch for the one remaining deprecation warning tonight. Should be really simple. Unfortunately there wasn't a backwards-compatible replacement IIRC.

Yeah. We can't just remove the offending code. It should work across the board.

Hi @albus522, just a gentle ping as I haven't heard back to my most recent comment.

Things in rails are not considered stable until at least an RC. If we enable rails 5 support and then something breaks there is no way to change the version dependencies after the fact. We have decided to take the cautious approach because we have been bitten by lax dependency requirements too often.

Ah. To me, if something breaks,  no one has a right to complain (especially to you) as they they gave that right up when choosing to use a pre-release gem (especially such an integral one). But I understand your predicament.. Something being common sense is no guarantee people will adhere to it.
I guess I'll hold off on nagging you until an RC then. :-)
Thanks again for all your help!

@mvastola @albus522  Any news on this? Rails 5 is at the RC1 stage now.
Thanks!

@rhymes I admit I had totally forgotten about this. @albus522's stated motive in waiting for an RC before pushing a new version of delayed_job was making sure that the Rails 5 code base didn't change such that delayed_job's compatibility with Rails 5 would be broken after a Rails 5-compatible delayed_job had been officially released.
So -- barring a misunderstanding on my part of @albus522's plan -- presumably this gem is good for a release now, assuming its CI tests are passing against the Rails 5 RC (and perhaps Edge Rails for good measure).
I don't have time to do this now, but running the tests should be fairly straightforward if anyone else wants to give it a go.
If any errors/bugs crop up, feel free to let me know and I'm happy to submit a PR if no one beats me to it!

So, rails 5 is out now.... any timeline?

FWIW, all the latest CI checks on delayed_job and delayed_job_active_record are passing when it comes to gem 'rails', '~> 5.0.x' and compatible ruby engines.

It has for a month and a half.

On Jul 5, 2016, at 6:12 PM, Mike Vastola<EMAIL_ADDRESS>wrote:
FWIW, all the latest CI checks on delayed_job and delayed_job_active_record are passing when it comes to gem 'rails', '~> 5.0.x' and compatible ruby engines.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

https://rubygems.org/gems/delayed_job_active_record
Sent from my iPhone

On Jul 5, 2016, at 6:12 PM, Mike Vastola<EMAIL_ADDRESS>wrote:
FWIW, all the latest CI checks on delayed_job and delayed_job_active_record are passing when it comes to gem 'rails', '~> 5.0.x' and compatible ruby engines.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
lograge was resolved to 0.11.2, which depends on
actionpack (>= 4)
rails (= 6.1.0) was resolved to 6.1.0, which depends on
  actionpack (= 6.1.0)

Please anyone help me how to resolve it


BitDefender false positive

As of today, BitDefender identifies app-2.0.0\resources\championify_elevate.exe as Trojan.GenericKD.3974242. I've submitted a request and will update once I hear back from them.

Thanks, however this has been patched already. Championify isn't distributed with it anymore. https://github.com/dustinblackman/Championify/issues/239


Someone undid my pull request so i gotta do this again

Leather engine isnt a fork of kade engine

All checks pass! Good.


Add Travis CI integration for unit tests

It would be beneficial to add Travis CI integration for the unit tests.

We now have CircleCi since a few years back ;)


Some Problems and Sugestion For Esteem Surfer

I am one a user of esteem, in my post, I would like to convey some of the obstacles (problems) that I found in using esteem surfer during I using surfer esteem recent.
Issues I Found in Esteem Surfer version 1.0.1
1) Must Perform Installation Process Everytime Login
As I know, usually every application that has been installed in laptop or computer, enough once doing a process of installation. After that, we can run the application by clicking on the icon of the app that is on the desktop. The problem can be seen in the following pictures and videos
https://cdn.steemitimages.com/DQmc4AYFAxZKSSgKruCjJfwZSooKViC9ENaZN7Duu1vCUjf/.png
***
https://youtu.be/-MKZMYKMuPw
Every time log in esteem surfers always appears like that. This means that the surfer esteem app on my laptop is not permanently installed. I have to do and go through the installation process again every login.
2) Cannot Favoriting One User With Using Favorite Menu
To easily bookmark one of the other users I have idolized so it's easy for me to find it, in this case, I use the favorite menu in the surfer's esteem on my laptop, but the surfer esteem which installed on my laptop as such as there are few constraints so I cannot to favoriting one or more other users I idolized.  Regarding this second issue, you can look at the following video.
https://youtu.be/W3tPHd-_xP8
3)Fetcherorr Request to https://api.steemit.com
Whereas esteem surfer or mobile esteem that I use, the setting  is correct in server menu - https://api.steemit.com. For more details can be seen from the following video.
https://youtu.be/7rVbp0BodqE
Suggestion
To the problems or constraints of the esteem surfer, I find this needs a solution to fix bugs from the esteem application. For the first problem, I suggest that the esteem application should be fixed although it is still in beta format, at least it could be like a portable app. That is, just once install direct permanent. For the second login and then no longer need to wait for the application installation process.
For the second and third problems, I hope there is a solution, so all the features available in the esteem can used by all users perfectly.
I think this is the first thing I can say about the esteem issues if I find any obstacles or other problems, I will immediately report to make the esteem more perfect, and become the mainstay application that wished by all steemit users as the priority application.
Note:
I'm using a Dell Inspiron 11-3162 laptop with a Windows 10 Pro-64 bit as the operation system
Much Love
Thanks For Your Time
The Best Regards, @ijoel
***
 Stop spam, scam, and phishing on my blog

should be fixed by now, please create new issue if you find something is not working. Thank you!


HLS stream on iOS error 3016

Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
2.5.8
Can you reproduce the issue with our latest release version?
My understanding is that 2.5.8 is latest
Can you reproduce the issue with the latest code from master?

Custom
If custom app, can you reproduce the issue using our demo app?
No. I am running my own webserver on a private network.
What browser and OS are you using?
iOS 12.3.1 Safari
For embedded devices (smart TVs, etc.), what model and firmware version are you using?
na
What are the manifest and license server URIs?

What did you do?

I am attempting to play back an audio only hls stream. This stream plays back on Chrome under Windows 10
What did you expect to happen?
Playback to happen
What actually happened?

The master play list is downloaded. The next playlist is not downloaded. No media segment files are downloaded.
An error code 3016 is thrown. In the data array element zero the value 4 is reported.
It is as if the playback is not even attempted.

This issue can also be seen by visiting the following url in Safari on iOS:
https://rdglge.github.io/shaka-demo/

Here are the docs for error code 3016: https://shaka-player-demo.appspot.com/docs/api/shaka.util.Error.html#value:3016
The docs currently state:

Name
Value
Type
Description

VIDEO_ERROR
3016
number
The video element reported an error.  error.data[0] is a MediaError code from the video element.   On Edge & IE, error.data[1] is a Microsoft extended error code in hex.  On Chrome, error.data[2] is a string with details on the error.

This is typically a decoder error, but could be some other internal error thrown by the browser.  This error is always fatal to playback, and can't be recovered.  In our experience, some content that plays elsewhere will be rejected by Apple's hardware decoders.
We also have an entry in our FAQ about this: https://shaka-player-demo.appspot.com/docs/api/tutorial-faq.html
The entry currently says:

Q: I am getting decoder errors or VIDEO_ERROR or error code 3016.
A: This error is given to us when the browser can't play the content.  This
is out of our control and is usually caused by bad content.  On Chrome you can
check chrome://media-internals for more info (see https://github.com/google/shaka-player/issues/489#issuecomment-240466224)

Does this help?

I don't see how it is a decoder issue when no segment files have been downloaded. Have you tried https://rdglge.github.io/shaka-demo/ in Safari on iOS?
The docs you quote don't mention Safari.
After receiving this error, I have tried the stream by passing the playlist to an html5 standard audio tag. Safari on iOS plays the stream successfully.

Since this is iOS, it may not be a decoder error.  But on iOS, we have to hand playback off to the browser by setting the src attribute of the media element to the master playlist URL you passed to load().  Error 3016 means "the browser threw an error from the video element", which is typically a decoder error on MediaSource-supporting browsers, but could be any playback error from the browser.  With Apple's native HLS, it's hard to say what triggered it.
But I'm not sure you'd see segment files downloaded with native HLS playback.  That would all be handled inside the browser, rather than segments being requested by Shaka Player.

@rdglge Try to remove the AUDIO attribute from your master.m3u8 playlist. Just keep this:
#EXT-X-STREAM-INF:BANDWIDTH=128000,CODECS="mp4a.40.2"
The AUDIO attribute shouldn't be present in your master as it does not include another audio playlist that the group id in AUDIO attribute would refer to.

@BucherTomas I tried your suggestion.
The stream plays back now. I no longer see the 3016 error.
It looks like the problem was in the master playlist.
For the record, the Network tab of the web inspector does show the media segment files being transferred.
In the ideal case the error message from shaka would indicate the problem was in the master playlist.
I will close this because the media plays back now.

In the ideal case the error message from shaka would indicate the problem was in the master playlist.

If there were any way to differentiate, then we would.  But the error from the browser is extremely generic, and since we are not handling the playlist ourselves, there is no way for us to know.


Add Bitcoin block timing information to the explorer

A common series of questions is driven by the fact that not everyone understands the link between Stacks and Bitcoin. To illustrate why, perhaps, a Stacks block hasn't come through in a while, I send folks to https://mempool.space/.
I think it'd be a better experience if folks could just see pertinent Bitcoin block timing information right in the Stacks explorer. This needs to be surfaced where people are looking , generally at a pending transaction or the main page. This will still be relevant in Nakamoto because while maybe there will be less waiting around for the Bitcoin block for Stacks transactions, the sBTC deposit and withdrawals are secured when the transactions are settled to Bitcoin, knowing about when that may happen will be very useful. Perhaps there is an API that makes this easy too: https://mempool.space/docs/api/rest
Anyway, it would prevent a lot of panic and if well designed, could visually teach/ illustrate the deep link to Bitcoin. Thanks!

Explorer already shows this info on pending transactions, e.g. see https://explorer.hiro.so/txid/0xea084b135b0866b33d8709a6b4fbc20752967aba76fc191db591f0fc2c429ee8?chain=mainnet (if it confirms by the time you see this, just open any other pending transaction)
@cuevasm is this what you had in mind?

I think something is needed in the main view of pending transactions, this is where people go looking for 'is the chain halted?!'. I think a UI tweak can make this a lot more obvious is needed, less my opinion and more that this is the most common thing I have to point out so I have to assume people are not getting or understanding the information as it's currently provided

Hi @cuevasm, we are working on a new block's view and we have plans for a better way to display tx status, which as you mention is one of the most important things to show on the Explorer.


spelling mistake premission instead of permission

spelling mistake premission instead of permission

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

ID: 89e13d87-ad6b-accc-6cbd-de6fad4435d4
Version Independent ID: 654c5cec-2946-87fa-8b33-a82ffd4f3758
Content: Restore SQL Server databases on an Azure VM - Azure Backup
Content Source: articles/backup/restore-sql-database-azure-vm.md
Service: backup
GitHub Login: @AbhishekMallick-MS
Microsoft Alias: v-abhmallick

@jockmcgonzo Thanks for your comment! We will review and provide an update as appropriate.

@jockmcgonzo We have verified and updated the document as required. The update will go live in less than 24 hours. Thanks again!


STORM-3715: Add Caching to HDFS BlobStore

What is the purpose of the change
Adding some cache might help lower the frequency of hdfs calls by the HdfsBlobStore while reporting replicationCount and meta for permission checks.
How was the change tested
Manually tested the changes.

Not sure what happened to github. I clicked on squash-and-merge button as usual. But the history has
commit 873bb8820605eb7e3be7c9c9033536edebf7ea11
Merge: fe2f7102e abd27a67a
Author: Meng (Ethan) Li<EMAIL_ADDRESS>Date:   Sun Nov 15 23:05:37 2020 -0600

    STORM-3715: Add Caching to HDFS BlobStore (#3351)

commit abd27a67aafed707f2804ecdec549483e39bcdd9
Author: Kishor Patil<EMAIL_ADDRESS>Date:   Wed Nov 11 17:42:41 2020 -0500

    STORM-3715: Add Caching to HDFS BlobStore

It should only have one entry and Kishor is the only Author.


Extensions on latest zenStack

When i run generate the next error happens, it's important to notice that I need those extensions, Does ZenStack not support prisma extensions?
$ zenstack generate
Validation errors:
line 10: Could not resolve reference to ReferenceTarget named 'pg_trgm'. [pg_trgm]
line 10: Could not resolve reference to FunctionDecl named 'postgis'. [postgis]
line 10: Could not resolve reference to FunctionDecl named 'uuid_ossp'. [uuid_ossp]

Hi @Jonatthu , thanks for bringing it up. Extensions are not supported yet but it's only on the ZModel syntax level. Need to support the grammar and then pass it down to Prisma schema.
I understand this is blocking for you, and we should be able to add it in the next release (early next week). Will it work for you?
Do you mind share the exact Prisma snippet that declares the extensions? Just want to make sure it work seamlessly.

@ymc9 That's excellent news! I will be looking forward to it

enerator client {
    provider        = "prisma-client-js"
    previewFeatures = ["fullTextIndex", "fullTextSearch", "multiSchema", "postgresqlExtensions"]
}

datasource db {
    provider   = "postgresql"
    url        = env("SUPABASE_DATABASE_URL")
    directUrl  = env("SUPABASE_DATABASE_DIRECT_URL")
    extensions = [pg_trgm, postgis(version: "3.3.2"), uuid_ossp(map: "uuid-ossp", schema: "extensions")]
    schemas    = ["auth", "public"]
}

Awesome. Thank you! Stay tuned to the release notes 😄.

Hi @Jonatthu , the latest 1.0.1 release supports extensions syntax now.


chore: add data-test-id to save button placeholders for integrity

The type of this PR is: Chore
Description
Just adding some data-test-ids which hopefully will help to fix failing integrity specs. Save buttons became query renderers recently and apparently integrity presses on them too fast - query renderers are still loading data. I plan to use saveButtonPlaceholder test id with waitUntil to confirm that query renderer is finished loading data and only after then press on save buttons.

Cool! So with date-test-id attributes - that's something Integrity can wait on (until they appear/disappear) in a first-class way? That makes sense to me!


Invalid quick start links for dfx 0.9.3

Environment:
node - v16.19.0
dfx - 0.9.3
Command used to install dfx:
DFX_VERSION=0.9.3 sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"
After creating new project I get the following links to get started.
`$ dfx new hello
To learn more before you start coding, see the documentation available online:

Quick Start: https://sdk.dfinity.org/docs/quickstart/quickstart-intro.html
SDK Developer Tools: https://sdk.dfinity.org/docs/developers-guide/sdk-guide.html
Motoko Language Guide: https://sdk.dfinity.org/docs/language-guide/motoko.html
Motoko Quick Reference: https://sdk.dfinity.org/docs/language-guide/language-manual.html`

None of the mentioned links are working and end up in page not found error.

Am i missing something here ? or May be we should update the doc links.

dfx 0.9.3 is extremely outdated (released 15 months ago). Please use a version that is (somewhat) current

Thank you @sesi200 , The tutorial i am following must be pretty old.


[Feature request] hide cursor on scroll

Nice plugin :+1:
It would be perfect if you could add the functionality for the cursor to hide when scrolling. This would make the scrolling experience more enjoyable.

I'll definitely try and implement this asap! :)

Hi @L2AsHdz !
I just tried implementing this in the latest commit: baaaf0043165c9c5f01ebdec70ec4aaf64f909c8. Just make sure you have termguicolors enabled in your nvim config and set the hide_cursor option.
require('cinnamon').setup {
  hide_cursor = true,
}

I hope this works for you, please let me know how it goes!

Great! Thanks for taking the time to implement it.
I'll try it out and let you know how it goes. :+1:

That's great to hear :) . It was no problem!


[Starting from Chapter 8] Unit tests fail with "Working outside of application context" RuntimeError

OS: Windows 11 22H2
Python: v3.11.0
Flask: v2.2.2
Running unit tests in tests.py provided in Chapter 8 will fail with the following error:
RuntimeError: Working outside of application context.

This typically means that you attempted to use functionality that needed
the current application. To solve this, set up an application context
with app.app_context(). See the documentation for more information.

Full log:
tests_log.txt
The solution is to precede test code that uses app and db objects with the with app.app_context(): block, for example:
 class UserModelCase(unittest.TestCase):
     def setUp(self):
-        app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite://"
-        db.create_all()
+        with app.app_context():
+            app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite://"
+            db.create_all()

     def tearDown(self):
-        db.session.remove()
-        db.drop_all()
+        with app.app_context():
+            db.session.remove()
+            db.drop_all()

Ah yes, this is due to a background incompatible change introduced in the latest release of Flask-SQLAlchemy. I will update the code and the tutorial to reflect this. Thanks.

Also, I have noticed, running tests drops existing tables in existing app.db database, and flask db upgrade doesn't restore them
You have to delete app.db and rerun flask db upgrade to create a new empty database
No idea how to work around that, maybe don't db.drop_all() on tearDown?

The code in this repository and chapter 8 of the tutorial have been updated to work with Flask-SQLAlchemy 3.x.

Thank you, the tests now execute and pass, but they will still drop existing tables in database after execution

I have addressed the problem with the tables as well.

Fix confirmed!
Thank you for maintaining this project! It's a really good resource


I wish /docs/user-guide/deployments/ Had an example of a fully customized deployment so I could see what all the options are

I wish /docs/user-guide/deployments/ Had an example of a fully customized deployment so I could see what all the options are

nginx-deployment.yaml is an example that's fairly fleshed out.  We also have an interactive deployment here: https://kubernetes.io/docs/tutorials/kubernetes-basics/deploy-intro/


Support randomly distributed delays for responses

This expands on the existing fixed delay functionality by providing a
more general feature to draw values from a random distribution.
This allows teams to simulate long tails in delays from downstream
systems, a common scenario in load and resiliency tests.
I've provided a log normal implementation out of the box, which gives a
pretty good long tail distribution for modeling delays. It also has the
nice benefit of being able to specify the 50th percentile which is a
commonly tracked metric.
Here is an example priming using the log normal delay:
{
    "request": {
            "method": "GET",
            "url": "/some/thing"
    },
    "response": {
            "status": 200,
            "body": "Hello world!",
            "headers": {
                    "Content-Type": "text/plain"
            },
            "delayDistribution": {
                    "type": "lognormal",
                    "median": 80,
                    "sigma": 0.4
            }

    }
}

This example can be viewed visually at wolfram alpha:
https://www.wolframalpha.com/input/?i=lognormaldistribution(log(90)%2C+0.4)
New distributions can be added by implementing DelayDistribution and
adding it to the @JsonTypeInfo in the interface.

Just some background, this is a 2.0 implementation of behaviour I wrote for a custom fork of an old version of wiremock, used to load test a relatively large set of backend microservices at 5-10k tps, and specific failure scenarios. I've been meaning to try and get this in upstream so we can get people on 2.0 when it comes out.

James - this is awesome, I've been meaning to add this feature for a very long time!
Would you mind adding a small section to the docs explaining how to use this?
Thanks,
Tom

Hi Tom, I've added documentation, feel free to edit it as you wish.
Although doing the docs made me realize I should probably add this to the global config as well, just like fixed delay. And it may be worth adding a couple more distributions (at least fixed) for illustrative purposes. I'll try to work on that later.

Thanks again, I'll merge what you've done.
I was thinking I'd add a uniform distribution at least. I've heard that Weibull distributions are good models for some situations, so that might be worth considering also.

Weibull would be good, you can probably model longer tails better than a lognormal. The main reason we ended up using lognormal is the nice property that one of its parameters is the 50th percentile, easy to gather from existing metrics. Then just a single parameter needs to be tuned.


Re-work determine best networking

Deploy preview for calico ready!
Built with commit 74b81a9fbce4ea0cedfa41f2de2f5121ae5f5060
https://deploy-preview-3670--calico.netlify.app

Deploy preview for calico ready!
Built with commit cd797c4eca70fedc89394250211a99ff8c6945d6
https://deploy-preview-3670--calico.netlify.app

^ Approval for technical content, @bmckercher123 should review from a documentation perspective.


Add support for alternative names

This adds support for alternative names in certificate as discussed in #12.
The first domain in the list becomes base domain. All other domains added to "Alternative Name" field of certificate. Alternative names are symlinked to a base domain certificate.

Added param to fix #14  and #15.

I'm going to test this as soon as I can.
@JrCs, Have you taken a look at the pull request?

@dmp1ce yes, it's ok you can merge it.
But only the first commit b5ada06, as i already fix the change in the simp_le API.


Testing a trained policy

Hello,
Thank you for the great work! I successfully trained the quadrotor using the provided interface, and the training process went smoothly. I was wondering if it is possible to test the trained policy in a simulation environment instead of deploying it directly on a real drone. Is there any implementation for that?

Thanks @jonas-eschmann  for the great work!
I would also like to know how to test the trained policies in simulation before deploying on actual drones.
Thanks.

Hi @Fatimah-Alahmed and @mzahana,
can you be a bit more specific? In general, it is trained in simulation so you can watch the trained policies as e.g. described here.
For PX4 I used to test it with the HITL cf. here:
https://github.com/rl-tools/px4
but there might be some issues as described here:
https://github.com/rl-tools/rl-tools/issues/11
I hope I'll find some time soon to test it and make it work with the latest version of RLtools again (v2)


Import error when using package imports in vite.config.js

Describe the bug
When I use package imports in vite.config.js,  Vite fails to load the configuration file and displays the following error:
failed to load config from .../vite.config.js
error when starting dev server:
TypeError [ERR_PACKAGE_IMPORT_NOT_DEFINED]: Package import specifier "#src/utils.js" is not defined imported from .../node_modules/.vite-temp/vite.config.ts.timestamp-1733215455982-e048dc6e2c576.mjs

This used to work in v5. My best guess is that it is caused by https://github.com/vitejs/vite/pull/18509.
Reproduction
https://stackblitz.com/edit/stackblitz-starters-aszvug?file=package.json
Steps to reproduce
pnpm install
npx vite

System Info
  System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    vite: ^6.0.2 => 6.0.2

Used Package Manager
pnpm
Logs
No response
Validations

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

Looks like any files placed in node_modules can't access subpath imports from the root package.json, which is strange and I don't see it particularly documented in node. Anyways I guess we have to resolve subpath imports as well to fix this.

Spec wise, probably Node bans this since LOOKUP_PACKAGE_SCOPE cuts off early for files under node_modules. I'm reading PACKAGE_IMPORTS_RESOLVE and LOOKUP_PACKAGE_SCOPE in https://nodejs.org/docs/v22.12.0/api/esm.html#resolution-algorithm-specification.


Antal - Covasna is not a city

ENVIROMENT: ui.validator
URL: Antal-Validator UI
Desktop:
OS: MacOS
Browser: Chrome

STEPS TO REPRODUCE:

Click on "Companii"
Click in the "Cauta aici..." search bar.
Write "Antal"
Click on "Vizualizeaza joburi"
Scroll-down to "Reprezentant medical – Zona Transilvania"

EXPECTED RESULTS:
The job description of the position "Reprezentant medical – Zona Transilvania" is located in Covasna county

ACTUAL RESULTS:
The link does not correspond to the "Reprezentant medical – Zona Transilvania" is located in City Covasna, County Covasna. !!Covasna is not a city!!

Există și localitatea Covasna link


Switch TFLM CI to use clang+bazel

@tensorflow/micro
Using clang instead of gcc with bazel will mirror the internal checks and reduce the likelihood of internal changes breaking the github TFLM CI (e.g. https://github.com/tensorflow/tensorflow/issues/46415).
It will also allow showing the results of the sanitizer builds externally as well.

Corresponding internal issue: http://b/177672856

Corresponding internal issue: http://b/177672856


Fix api calls

Please also modify the test config in "examples"

There is no examples dir anymore

Need to add type parameter in createStream() method. There are two possible values for stream type: timeseries and default


Using jupysql magic %sql in databricks

I have been using the sql magic %sql using jupysql module a lot in my local computer.
Nowadays, I am starting to use the databricks and porting all my jupyter notebooks to databricks.
The databricks already have their implementation of %sql and thus, this magic from jupySQL may not work.
Is there any way if can use both %sql from databricks and from jupysql?
Such as can use some alias of %sql such as %sqljupy?

Ah, I never thought about this.
I added %jupysql/%%jupysql as an alias, but I'm unsure if this will work, because running %load_ext sql might overwrite databricks %sql/%%sql.
please check if this works on databricks by installing it from the dev branch:
pip uninstall jupysql
pip install git+https://github.com/ploomber/jupysql@alias

%load_ext sql

And then see if %sql runs the databricks magic, and %jupysql runs jupysql's magic.
If this doesn't work, we'll have to allow loading the magics with something like %load_ext jupysql

@bhishanpdl Is there something that the databricks %sql client provides that jupysql isn't?

@idomic I do not want to break the existing functionality and use the third-party functionality as an alias so we can get the best of both world.
Also, %sql from databricks gives pyspark dataframe, however jupysql %sql gives pandas dataframe.
Sometimes we need to work with pyspark dataframe and %sql from databricks is useful.

@edublancas  The suggestion worked.  (confirmed: 2023 Feb 01)
I have a follow up question: Will the branch will be available in the future, or the feature will be incorporated into the new version?
This is great addition, we can do SQL queries using both databricks %sql and jupysql's %jupysql.
I did following things:
#pip uninstall jupysql
pip install git+https://github.com/ploomber/jupysql@alias

%jupysql sqlite://

df = pd.DataFrame({'A': [10,20,30], 'B': list('abc')})

%jupysql --persist df

%jupysql SELECT * FROM df limit 2;

I have a follow up question: Will the branch will be available in the future, or the feature will be incorporated into the new version?

yes, it will!
thanks for confirming, I'll run a few extra tests on my end and will release this, will be on pip in the next few days!

@bhishanpdl if you're up for it, we'll probably need a short tutorial on running queries via both databricks %sql and jupysql's %jupysql.

@idomic  I figured out how to work with both databricks  %sql and jupysql's %jupysql.  I will think about sending a PR with a databricks notebook how to use both SQL magics.

we just merged and released this in version  0.5.4!


Update README.md

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

[x] N
[ ] Y

Pull Request Test Coverage Report for Build<PHONE_NUMBER>1
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 31.734%

Totals

Change from base Build<PHONE_NUMBER>3:
0.0%

Covered Lines:
5488

Relevant Lines:
17294

💛  - Coveralls


Any plan for implementing disk margins?

This technique is much more robust than gain & phase margins.
https://arxiv.org/pdf/2003.04771.pdf
https://www.youtube.com/watch?v=XazdN6eZF80&list=PLn8PRpmsu08qFLMfgTEzR8DxOPE7fBiin&index=2&ab_channel=MATLAB

I'm not aware of any plans along these lines, but it would be great if you wanted to submit some code implementing this functionality.  Information on how to contribute is here.

I wish I could do it, currently I am not familiar enough with the algorithm. FTTB, one can find an implementation here (in julia)
https://github.com/JuliaControl/RobustAndOptimalControl.jl/blob/master/src/diskmargin.jl

We do compute what this paper calls the S-based disk margin in stability_margins; it's called "Stability margin" in our docs.
Slycot already has a function to compute the transfer function matrix L-infinity norm (which is the H-infinity norm for stable systems), so the hard part to implement disk-margins is done.

See also the published form of the disk margin paper, and Matlab's diskmargin command.  One of the paper's authors, the late Andrew Packard, was an author of Matlab's Robust Control Toolbox.
The SISO disk margins are straightforward, and I've got prototype code to find the disk margin, and the associated destabilising complex perturbation and destabilising LTI system.
The MIMO version of disk margins needs structured singular values, or at least I'm pretty sure it does.  SLICOT has AB13MD, which computes an upper bound on structure singular values, and if we want MIMO disk margins, I guess we'd start there.  For now, one can get conservative upper bounds on (two of) these using linfnorm on the sensitivity and complementary sensitivity transfer functions.


Allow Custom Repos

Description
This commit allows a user to specify other repos to use, for example you
can get the old repo back with these attributes:
default['chef-apt-docker']['docker-legacy']['components'] = %w(main)
default['chef-apt-docker']['docker-legacy']['uri'] =
'https://apt.dockerproject.org/repo'
default['chef-apt-docker']['docker-legacy']['keyserver'] = 'pgp.mit.edu'
default['chef-apt-docker']['docker-legacy']['key'] =
'58118E89F3A912897C070ADBF76221572C52609D'
default['chef-apt-docker']['docker-legacy']['enabled'] = true
default['chef-apt-docker']['docker-legacy']['distribution'] =
'ubuntu-trusty'
default['chef-apt-docker']['docker-stable']['enabled'] = false
default['chef-apt-docker']['repos'] = %w(
  docker-stable
  docker-edge
  docker-test
  docker-legacy
)

Issues Resolved
Check List

[x] All tests pass. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD
[x] New functionality includes testing.
[x] New functionality has been documented in the README if applicable
[x] All commits have been signed for the Developer Certificate of Origin. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD

any reason on why not just overwrite the docker-edge repo? the older legacy repo you are referring to is the edge releases.

Yeah that makes sense, didn't think about just overwriting the attribute.


Shopping Cart (RF05) - Implement view restriction for shopping cart - (issue-20)

Description:
Apply a business rule that requires authentication for the user to view the shopping cart. If the user is not logged in, display a message requesting login/registration. This restriction will be applied exclusively to the cart view page, with no impact on the display of product details.

Shopping Cart (RF05) - Implement view restriction for shopping cart - (issue-20)
Description:
This issue implements the auth user context in the product cart.
Status:
Implemented the business rule that only allows authenticated users access to the shopping cart
Main features:

Added user authentication state management
Integrated username display in navbar
Protected cart access for authenticated users only
Enhanced AuthContext with username persistence
Improved cart page authentication flow

Related commit: [50c7cad5d034cc13f16b8e400cddc545dd705f32]


How to pass dynamic value into partials params?

I need to pass some dynamic value into handlebars partials via params, but a phpstorm's linter highlights my code in red.
Use Handlebars, Symphony. I tried to transform a value to a string, but it doesn't work.
{{> ../partials/card/mobile/warranty_lazy_load.hbs
    image = item.image
    <!-- see code below -->
    src = '/imgtmb/89x130/res/content/sanepidem/' + item.id + '/' + item.name + '.jpg'
}}

I want to pass a value consist of static and dynamic elements. How to do it?

maybe add a concat helper that ... concatenates all params into one string
{{> warranty_lazy_load src=(concat '/img/89x130/foo/' item.id '/' item.name '.jpg) }}

I would even create a custom helper for this use-case. Something like
{{> warranty_lazy_load src=(itemImageUrl item.id item.name) }}

or

{{> warranty_lazy_load src=(itemImageUrl item item) }}

and compute the URL in the itemImageUrl helper


Prevent Negative values

This is probably validation in general, but here is one example:

fixed by PR #394


ala

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

Please ignore, my mistake!


Help running on Ubuntu 32

Ubuntu 16.04 LTS - i686
https://github.com/jacobmarshall/pokevision-cli/releases/download/1.0.6-rc.1/linux-386.tar.gz
Placed file in /usr/local/bin.
jb@myhost:~$ pokevision -v
2016/07/27 15:14:45 OS does not support terminal-notifier
pokevision version 1.0.6-rc.1
jb@myhost:~$ 2016/07/27 15:14:45 OS does not support terminal-notifier
jb@myhost:~$ pokevision watch --lat=34.00846023931052 --lon=-118.49802017211914 --name=Beach
2016/07/27 15:15:26 OS does not support terminal-notifier
2016/07/27 15:15:26 OS does not support terminal-notifier
2016/07/27 15:15:26 notifying bugsnag: open : no such file or directory
2016/07/27 15:15:26 open : no such file or directory

Cheers @jbazalar, I've not yet tested the Linux build of 1.0.6-rc.1.
As of right now, the only difference between 1.0.5 and 1.0.6-rc.1 is desktop notifications, so you should be all good using 1.0.5 for now.
Expect this to be fixed by the next release candidate.

Ah okay, let me try version 1.0.5.

@jacobmarshall 1.0.5 worked as expected. Thank you.


SimpleSchema.setDefaultMessages is undocumented

How many coders must have died on their journey to setting the default messages :O

yes, came to the issues page looking for an example of its usage.

figured out from looking here https://github.com/aldeed/node-simple-schema/issues/35 that the following works:
SimpleSchema.setDefaultMessages
  messages:
    en:
      "too_long": "length is too long"

Then returning the string "too_long" from a custom function. The main part that is not intuitive is that the messages.en wrapper is necessary.

I gotta say though I don't find a lot of benefit to abstracting away the messages.  I suppose it does encourage internationalization, but that's far from my mind for most of the development process. It would be useful, especially in the apparent absence of much documentation surrounding setDefaultMessages, to have a clear simple way to return a string as a validation message. I.e. a custom function couple simply return "there is an error" and that would be displayed. Is there already a way to do this?

For me the problem was translating the messages used by the built-in validation methods. With hard-coded messages in the built-in validation methods it would be impossible to translate it.

Thanks!


fix(tools): account for custom componentsSubpath in router

What I did

Account for the options.componentSubpath in dev-server router.
Refactored dev server router to clarify intent.
Added configuration option options.docsComponentSubpath to allow docs to have a independant subpath to allow configuration of where components get copied into by the 11ty demo plugin.

TODO:

[x] Add comments to document the redirects inline
[ ] Add changeset

Reference: https://github.com/RedHat-UX/red-hat-design-system/issues/885
Testing Instructions

Notes to Reviewers

Built this branch & copied the tools/pfe-tools/dev-server/config.js into my rhds main branch & seeing the dev server working now

The changes so far break the docs.  When componentSubpath is set to elements either as the default or via .pfe.config.json The value of componentSubpath  is used to copy demo files into _site/elements/element/demo/index.html.  The files end up in elements dir instead of components dir as specified in the docs url structure.  Still working my way through this issue and potential fixes however,  I'm starting to wonder if it makes sense to separate out config for the devServer and docs sites.
componentSubpath:  "elements",
docsComponentSubpath:  "components"

@brianferry I'm getting build errors when trying to link @patternfly/pfe-tools.  I'm probably not linking it correctly.  Can you try again?
➜  mpotter-mac as michael  red-hat-design-system (main) ✗
   npm run build

><EMAIL_ADDRESS>build
> wireit

🏃 [bundle] Running command "node scripts/bundle.js"
🏃 [analyze] Running command "cem analyze"
🏃 [compile] Running command "ttsc"
file:///Users/michael/Projects/red-hat-design-system/node_modules/@patternfly/pfe-tools/custom-elements-manifest/lib/Manifest.js:5
import { deslugify } from<EMAIL_ADDRESS>         ^^^^^^^^^
SyntaxError: The requested module<EMAIL_ADDRESS>does not provide an export named 'deslugify'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:189:5)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
    at async importModuleDynamicallyWrapper (node:internal/vm/module:438:15)
    at async importConfig (/Users/michael/Projects/red-hat-design-system/node_modules/@web/config-loader/src/importConfig.js:28:20)
    at async getUserConfig (file:///Users/michael/Projects/red-hat-design-system/node_modules/@custom-elements-manifest/analyzer/src/utils/cli.js:41:18)
    at async file:///Users/michael/Projects/red-hat-design-system/node_modules/@custom-elements-manifest/analyzer/index.js:34:24
^C💀 [analyze] Killed
💀 [compile] Killed
💀 [bundle] Killed

Notes from Office hours discussion on this topic.
Intent is to have dev-server and docs site URLs to line up so port number or full your could easily be swapped.  The configuration isn't specific to project folder names only to the end points in the URL structure and is set by a docs specific nature.  The dev server should adapt to that configuration, not be independent of it.
The changes on this PR will need adjusted to match to this intent.
Example
localhost:8000/components/**
localhost:8080/components/**
patternflyelements.com/components/**

@bennypowers let me know if the latest changes align now with the intent.  From my understanding now I believe they do.

Needs a changeset

@zeroedin copied the config to my cpelements repo & the demos are working for me again 🥳


Can I use referring_swin_base.yaml to reproduce RefCOCO, RefCOCO+, RefCOCOg results in the paper?

by only modifying DATASETS.TRAIN and DATASETS.TEST
referring_swin_base.yaml

Yes you can.

I tried doing this and get the following results:
ReLA (paper)              | 73.82 | 76.48 | 70.18 | 66.04 | 71.02 | 57.65 | 65.00 | 65.97 | 62.70
ReLA (reproduction)  | 73.29 | 76.06 | 69.56 | 64.65 | 70.27 | 56.70 | 63.57 | 65.06 | 60.76
which is quite a bit lower than the results published in the paper.
Just curious, from your experience, how stable are the results? Does they have large variance?

by only modifying DATASETS.TRAIN and DATASETS.TEST
referring_swin_base.yaml

hi there, i also want to reproduce the three datasets .
I will appreciate it if you can tell me how to modify the yaml in details

Hello，do you know how to reproduce the three datasets now? I don't know either. @Yeemkt

Hello，I am sorry to bother you. I have just modified DATASETS.TRAIN and DATASETS.TEST in referring_R50.yaml, but the results is a little bad.Could you please tell me what changes you have made?

Hello，I am sorry to bother you. I have just modified DATASETS.TRAIN and DATASETS.TEST in referring_R50.yaml, but the results is a little bad.Could you please tell me what changes you have made？ @yxchng @ntuLC @Yeemkt

Hi,

Are you using the provided R50 checkpoint for evaluating refcoco+? The provided checkpoints are trained on grefcoco only, so they are also only applicable for evaluation on gRefCOCO.
The RES results reported in the paper are based on Swin-Base, so they are not comparable with results based on ResNet backbones.


Replaced pswish's incomplete tic tac toe implementation with finished one

… one

Nice work! I am interested in knowing the rust resource you used when you started learning rust. Cheers!

I used Exercism for practice exercises and the Rust docs and Rust By Example for reading. I also watched Youtube videos from channels including Let's Get Rusty, No Boilerplate, and Low Level Learning.

Also Logan Smith on Youtube. I just watched a video of his about how Rust handles function types and it was really interesting.


Outdated docs for Google Ads integration

The docs state:
"Once the account is created, click the "Tools" button from the top and then click the "API Center" menu.
When the API Center page opens up, copy the "Developer token" go back to SerpBear's Google Ads Integration Settings panel, and insert it in the Developer token field."
...but there is no such thing.

You have to create 2 AdWords accounts. One of them is a developer account. You can access the "API Center" inside the developer account area. Check the documentation again to learn how to create a developer account.

I guess that presumes the first account is a developer account?

That wasn't quite so clear for me.

Yes, the first one is the developer account. You are probably logged in inside the Test account. You can switch the accounts, by clicking your profile image from the top right corner of the screen. Once you log in to your developer account, you should be able to access the "Tools and Settings" menu from the top right corner of the screen.

So far I only have a single account - the one I had before. No worries.
But I guess it would be good to add this to the documentation.

@tcurdt it's in the admin section now, not tools. The rest of the instructions seem to be correct, I was just able to get hooked up. But there are a few extra steps like creating the token. Also, when you click the button to create the test account it's gunna look the same as the manager account but you'll notice "test account" in red in the top corner. Just go with the flow.

Heads-up: it works. Though it's very, very confusing for anyone not handling adwords accounts on a daily base to understand the account structure and all their detailed feature differences. It boils down to having a manager account in the first place, as described in the docs and then opening a test accound (which can go sideways, if one opens another manager account instead by mistake). It took me a few accounts to get it right, despite the correct link in the docs. No idea why I ended up with multiple manager accounts at first. However - having one manager account and one dev account cuts it. Works as described.

Google is such a mess. Thanks for the help. But I think I just let it be.


Updated thirdparty/zap/repo to head of tracking branch

Updated thirdparty/zap/repo to head of tracking branch to get access to new helper functions in Zap (specifically {{#if_compare ...}})

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

@jsloth please sign the CLA


Invalid SQL Statement in ValidateDatabase

This error occurred in the latest and a previous version.
line 1112, in
for row in cursor:
RuntimeError: An invalid SQL statement was used. [SELECT MapUnit FROM DescriptionOfMapUnits ORDER BY HierarchyKey]
my change to code stopped the error-- added HierarchyKey to table list of with Search Cursor line:
open search cursor on DMU sorted by HKey
sql = (None, 'ORDER BY HierarchyKey')
###with arcpy.da.SearchCursor('DescriptionOfMapUnits',('MapUnit'),None,None,False,sql) as cursor:
with arcpy.da.SearchCursor('DescriptionOfMapUnits',('MapUnit','HierarchyKey'),None,None,False,sql) as cursor:

Hi Linda,
I just looked at this and was able to create a SearchCursor sorted on HierarchyKey without also listing that field in the field names parameter; as the original code shows. It doesn't break anything later on to include your fix, but I am interested in why it fails for you and not for me. Can you tell me more? Format of the database? Are you using aliases? All the required fields are in the table? Any other guess about how your table might be different from what we used to debug the tool?

Thanks, Linda.
That is odd. I have no clue. Could you send me the gdb?
To answer your last question, it's more or less moot because I don't get the error with the code as it is. In adding another field to be retrieved by the SearchCursor, it's just some extra values in the cursor that aren't ever retrieved.
Case doesn't matter as far as retrieving fields in the search cursor goes but in other parts of the code, it could. That does have to be considered.

Did you ever send me a gdb?
In the meantime, or instead, your choice, could you try this in ArcMap?

Add a DescriptionOfMapUnits table
open the python interactive window
type in these commands:

>>> sql = (None, 'ORDER BY HierarchyKey')
>>> rows = arcpy.da.SearchCursor("DescriptionOfMapUnits", 'MapUnit', None None, False, sql)
>>> for row in rows: print(row)

with the very simple DMU I have, I get
(None,)
(u'Da',)
(u'Dt',)
(u'Ddr',)
(None,)
(u'Swlc',)

Now, type these commands:
>>> sql = (None, 'ORDER BY Name')
>>> rows = arcpy.da.SearchCursor("DescriptionOfMapUnits", 'MapUnit', None, None, False, sql)
>>> for row in rows: print(row)

and my result is
(u'Da',)
(u'Ddr',)
(None,)
(u'Swlc',)
(None,)
(u'Dt',)

The sort order is different (and correct according to when I do the same sorts in the table view) but you see that I don't specify the sorting field in the fields parameter when setting the SearchCursor. Do you get similar results?


networking.k8s.io/v1 for v1.22

When creating a v1.22 K8S version, the test app yaml is out of date
Warning: extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress

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

ID: e4a217cd-8949-e9b8-d8c5-a0f864b10237
Version Independent ID: e38769a3-04f6-c695-da48-8d0598a06bb9
Content: Tutorial: Enable the Ingress Controller add-on for a new AKS cluster with a new Azure Application Gateway
Content Source: articles/application-gateway/tutorial-ingress-controller-add-on-new.md
Service: application-gateway
GitHub Login: @Caya
Microsoft Alias: caya

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: aspnetapp
  annotations:
    kubernetes.io/ingress.class: azure/application-gateway
spec:
  rules:
  - http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: aspnetapp
            port:
              number: 80

Hello @gerhardcit,
Thank you for your feedback! We have assigned this issue to the author to review further and take the next course of action.

#reassign:halkazwini

@gerhardcit
Thank you for your feedback! The yaml file is already updated.

#please-close


feat(test-tooling): add Stellar test ledger

Add a Stellar test ledger class that can be used in integration tests to start and stop a Stellar test network based on the Stellar quickstart docker image: https://github.com/stellar/quickstart

Includes the following services for fetching ledger state, executing classic transactions and also soroban smart contracts transactions.

Stellar Core
Horizon API
Soroban RPC
Friendbot

Fixes #3239
Pull Request Requirements

[x] Rebased onto upstream/main branch and squashed into single commit to help maintainers review it more efficient and to avoid spaghetti git commit graphs that obfuscate which commit did exactly what change, when and, why.
[x] Have git sign off at the end of commit message to avoid being marked red. You can add -s flag when using git commit command. You may refer to this link for more information.
[x] Follow the Commit Linting specification. You may refer to this link for more information.

Character Limit

[x] Pull Request Title and Commit Subject must not exceed 72 characters (including spaces and special characters).
[x] Commit Message per line must not exceed 80 characters (including spaces and special characters).

A Must Read for Beginners
For rebasing and squashing, here's a must read guide for beginners.

A bit late to the game, but came here to thank you @fazzatti ! Great contribution!


Update MapGenVillageMixin from core:invalid

Located in: core:invalid
Part of: structure
This is part of the upgrade process for Sponge and is likely involving some work and investigation.
Advice and tips include:

Sometimes things are just a simple method name change
Might be a new class or field
Understanding what the original intention of the target code had
Analyzing whether the functionality achieved by the target class/mixin still exists
Understanding the new functionality in the new Minecraft version that requires rewriting for the functionality
The SpongeAPI usage could very well have gone missing out the window if functionality was deemed unnecessary for release

Closed in https://github.com/SpongePowered/SpongeCommon/commit/d7c830e022b66da3d5fef6753f79566363cc3c1c


Send to route rpc #188

This commit adds a RPC command to send a payment through a user defined route
Addresses #188
Related work:  #219, @cfromknecht's branch swapz

At the moment SendToRoute DOES NOT WORK with the output of QueryRoutes for 2 reasons:

QueryRoutes returns hops with time lock delta of 9. But htlcswitch/link.go checks for a time lock delta of 144.
QueryRoutes returns a fee in satoshi. hltcswitch/link.go checks fee in millisatoshi. When I try to send a 2-hop payment of 1000 satoshi, a fee of 1001 millisatoshi is expected but the output from QueryRoute converts the fee to 1000 millisatoshi, which makes the fee insufficient.

Tests in lnd_test are written with the issues above in mind. But it would be ideal if the output of QueryRoutes can be used as an input for SendToRoute.
This is my first PR, feedback welcomed.
Thanks to @afederigo and @cfromknecht for the heavy lifting :)

QueryRoutes returns hops with time lock delta of 9. But htlcswitch/link.go checks for a time lock delta of 144.

A timelock delta of 9 is the default value for the final hop assuming that they don't specify anything in the invoice. Our default policy is to use a value of 144, hence the check in link.go (which isn't hard coded but part of the current policy and can be changed on a per-channel basis). So seems like the solution here is to take a final_cltv_value along with queryroutes.

QueryRoutes returns a fee in satoshi. hltcswitch/link.go checks fee in millisatoshi. When I try to send a 2-hop payment of 1000 satoshi, a fee of 1001 millisatoshi is expected but the output from QueryRoute converts the fee to 1000 millisatoshi, which makes the fee insufficient.

Yep, so queryroutes should be modified to return everything in mSAT.

@Roasbeef  Thanks for your feedback! It's very informative 👍
But can you clarify what needs to be done here.

So seems like the solution here is to take a final_cltv_value along with queryroutes.

Should queryroutes be modified to take a final_cltv_delta ?

Should queryroutes be modified to take a final_cltv_delta ?

Yeah, so it would be an optional argument. There's an "assumed" default of 9 blocks within the network. In scenarios where the use case is to pipe the result through sendtoroute, then the user would know what the final_cltv_delta value should be.

Feedback addressed. Please re-review :)

#1081 has been merged now. This needs a rebase now.

@Roasbeef Before rebasing this PR,  should I create a separate PR for the commits which modifies queryroutes to take final_cltv_delta as an optional param?

@t4sk nah I think the commit structure is fine as is.

Friendly ping on rebase 🤗

@Roasbeef Rebasing rpcserver.go has been giving me a headache. Do you mind if I delete some commits and rework them?

Thanks so much for getting this started! I've added some minor style related commits on top, and committed it as e4e8b86137a43b21ac169f0f13de3a504ab87b30.


Rank Ordering of Inputs in UI Rendering

Inputs should be rendered in the order defined in user code for readability. This requires the introduction of a rank field.

+1 Would be awesome if we could do this or be able to have all the required inputs show up before the optional ones.

+1 too. It's fine to me even if we can specify the order in the inputs as another parameter.

CC @schottra

+1 really love to see this feature

+1 really love to see this feature

Done

Done

@EngHabu How can we enable this feature?

@EngHabu How can we enable this feature?


Django example

It would we nice, if we have a django example just like the flask example in documentaion

This would be super great!