[question]: Why release as a package?

Question description
The reason behind shadcn is to have ownership of the code and make all components lives in your project, so just wondering the decision to make this as a package instead of copy/paste component? also need to be highlighted that this package uses additional dependencies like react-easy-sort.
It will also have a duplicate components code since it also bundles the components like button, popover etc... another thing is it breaks the pattern of composable components because of the abstraction, thats why we have this css props all over.
We can have an inspiration from shadcn vue tags-input
It could be nice to have a cli command instead, to properly align to the theming from shadcn specially when not using cssVariables

Thank you for your thoughtful questions about my tag input component. You've raised some valid points that I've been considering:

While shadcn's copy/paste approach works well for simpler components, my tag input has grown significantly in complexity and features. Packaging it allows for easier maintenance and updates across projects. This decision was made quite a while before the new shadcn cli
I plan to remove the react-easy-sort dependency with my own implementation in the near future to reduce external dependencies.
I acknowledge the concern about bundled component duplication. With the new shadcn cli, i plan on configuring an option to allow others who want control of the code to just be able to copy it over via the cli
I'm revisiting the component's API to see if I can make it more composable while maintaining its advanced features.
My component offers significantly more features and complexity than the shadcn Vue tags input, which is why I opted for a package approach. However, I'm continuously working on optimizing and possibly simplifying where I can without losing functionality.


Reusable components supplementary chapter

I create a supplementary chapter that shows interested students how to take the commonalities in Animal, Employee, and Location components and create a reusable component named DetailView which can be use to represent any object in the system.

👍


Creation of template pages

Creating a first usable Website.

This has been completed and reviewed in the Sprint Review of Sprint 1.


When searching, first item in list of filtered results is selected

Instead of filtering the rendered list when searching, I'd like to select the 1st result.  I love this because I can still traverse a list using the keyboard.  Is this possible with cmdk?

I can type "1"
Press down
Select 1:30pm

Maybe if Command.Group had the ability to accept a key for the Command.Item that should be focused/selected in the list?  Then when you press enter, it selects it as the input value.

I was looking for that too!


[bug] exceptions-filepath scan flag is incorrect

This can be looked at in 1 of 2 ways, either orca-cli has an issue or this Action has an issue, but either way there is an issue with how the exceptions_filepath is handled within this GitHub Action.
Using the provided action, you should be able to set the exceptions_filepath input for a job like so, noting it uses an _ for the word separator like elsewhere in the action:
jobs:
  orca-fs-scan:
    name: Orca fs Scan
    runs-on: ubuntu-latest
    env:
      PROJECT_KEY: <project key> # Set the desired project to run the cli scanning with
    steps:
      # Checkout your repository under $GITHUB_WORKSPACE, so your job can access it
      - name: Checkout Repository
        uses: actions/checkout@v3

      - name: Run Orca FS Scan
        uses: orcasecurity/shiftleft-fs-action@v1
        with:
          api_token: ${{ secrets.ORCA_SECURITY_API_TOKEN }}
          project_key: ${{ env.PROJECT_KEY }}
          exceptions_filepath: orca-exceptions.yaml

However GitHub warns that exceptions_filepath is not a valid input and you must use exceptions-filepath:

The run continues and it appears that the Action will just ignore this warning as you can see the with contains the correct input variable and it is passed through to the docker environment correctly as well:

However ultimately it is not used in the orca-cli scan command as I assume the value is not passed through:

If you update to use exceptions-filepath the warning disappears but the input variable is obviously incorrect:

As the input variable does not match and fulfil the set_fs_scan_flags function inside entrypoint.sh  it is not passed to the scan command at all. File link is HERE:
function set_fs_scan_flags() {
  SCAN_FLAGS=()
  if [ "${INPUT_PATH}" ]; then
    SCAN_FLAGS+=("${INPUT_PATH}")
  fi
  if [ "${INPUT_DISABLE_SECRET}" = "true" ]; then
    SCAN_FLAGS+=(--disable-secret)
  fi
  if [ "${INPUT_EXCEPTIONS_FILEPATH}" ]; then
    SCAN_FLAGS+=(--exceptions-filepath "${INPUT_EXCEPTIONS-FILEPATH}")
  fi
...

Thanks team!

Pinging @sagic-orca only because you seem be the last one to touch this repo a few times 😅

Based on the screenshots, it seems that the issue arose while using shiftleft-container-image-action and not shiftleft-fs-action...
We will address it soon

Based on the screenshots, the issue occurred while using shiftleft-container-image-action. shiftleft-fs-action works as expected.
We appreciate your report on the issue with shiftleft-container-image-action and will address it soon.


Dictionary not found or defined (mmcif_pdbx)

I built and installed mkdssp from tag v4.0.0. When I run it however, I get the following error message:
$ mkdssp -v /srv/data/pdb/all/pdb1q5a.ent.gz /srv/data/dssp/1q5a.dssp

Error trying to load file "/srv/data/pdb/all/pdb1q5a.ent.gz"
Dictionary not found or defined (mmcif_pdbx)

The manual entry from mkdssp doesn't say anything about a dictionary.  There is a file present though: rsrc/mmcif_pdbx.dic But I can't find any way to use it.

Hi Coos,
The error message you get indicates you do not have the latest version
of libcifpp. The dictionary is called mmcif_pdbx_v50.
The location of this dictionary depends on the configuration you choose.
If you have installed mrc, libcifpp and dssp used to use resources to
store the dictionary files. I've changed that, since a couple of days
using resources (and thus mrc) is optional and not turned on by default.
If you do not use resources (new code, or using --disable-resources as
argument to the configure scripts) a version of mmcif_pdbx_v50 is
supposed to be installed in /usr/share/libcifpp or /usr/local/share/libcifpp
There is a script you can call from a cron job that updates and installs
a fresh version of the mmcif dictionary. The script can be found in the
tools directory of libcifpp.
So, could you please pull a fresh copy of libcifpp and
configure/make/make install. Then update dssp in the same way and the
error message should be gone.
I hope.
regards, -maarten
Op 18-01-2021 om 15:39 schreef cbaakman:

I built and installed mkdssp from tag v4.0.0. When I run it however, I
get the following error message:
|$ mkdssp -v /srv/data/pdb/all/pdb1q5a.ent.gz /srv/data/dssp/1q5a.dssp
Error trying to load file "/srv/data/pdb/all/pdb1q5a.ent.gz"
Dictionary not found or defined (mmcif_pdbx) |
The manual entry from mkdssp doesn't say anything about a dictionary.
There is a file present though: rsrc/mmcif_pdbx.dic But I can't find
any way to use it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/PDB-REDO/dssp/issues/3, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADNA47CIIFPHWLYYB6XQTHDS2RB3RANCNFSM4WHMYQJQ.

--
Maarten L. Hekkelman
http://www.hekkelman.com/

Hi Coos,
The error message you get indicates you do not have the latest version
of libcifpp. The dictionary is called mmcif_pdbx_v50.
The location of this dictionary depends on the configuration you choose.
If you have installed mrc, libcifpp and dssp used to use resources to
store the dictionary files. I've changed that, since a couple of days
using resources (and thus mrc) is optional and not turned on by default.
If you do not use resources (new code, or using --disable-resources as
argument to the configure scripts) a version of mmcif_pdbx_v50 is
supposed to be installed in /usr/share/libcifpp or /usr/local/share/libcifpp
There is a script you can call from a cron job that updates and installs
a fresh version of the mmcif dictionary. The script can be found in the
tools directory of libcifpp.
So, could you please pull a fresh copy of libcifpp and
configure/make/make install. Then update dssp in the same way and the
error message should be gone.
I hope.
regards, -maarten
Op 18-01-2021 om 15:39 schreef cbaakman:

I built and installed mkdssp from tag v4.0.0. When I run it however, I
get the following error message:
|$ mkdssp -v /srv/data/pdb/all/pdb1q5a.ent.gz /srv/data/dssp/1q5a.dssp
Error trying to load file "/srv/data/pdb/all/pdb1q5a.ent.gz"
Dictionary not found or defined (mmcif_pdbx) |
The manual entry from mkdssp doesn't say anything about a dictionary.
There is a file present though: rsrc/mmcif_pdbx.dic But I can't find
any way to use it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/PDB-REDO/dssp/issues/3, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADNA47CIIFPHWLYYB6XQTHDS2RB3RANCNFSM4WHMYQJQ.

--
Maarten L. Hekkelman
http://www.hekkelman.com/

I did what you asked and now the error is gone. I need to know however: do I need to run the 'update-dictionary-script' every time I update my dssp files from now on?

I did what you asked and now the error is gone. I need to know however: do I need to run the 'update-dictionary-script' every time I update my dssp files from now on?

The update script is only needed once in a while. In fact, only when
files containing new features arrive (with new categories e.g.) and
that's only in newer mmCIF files.
So, if you only use PDB you won't need to update the dictionary. If you
however process new mmCIF files, it might be needed to update the
dictionary once in a while.
The libcif that comes with Debian (as of bullseye) runs the update once
a week if you enable this service.
regards, -maarten
Op 18-01-2021 om 16:40 schreef cbaakman:

I did what you asked and now the error is gone. I need to know
however: do I need to run the 'update-dictionary-script' every time I
update my dssp files from now on?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/PDB-REDO/dssp/issues/3#issuecomment-762326452, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ADNA47A74KD7UZ7XTQVJRADS2RJADANCNFSM4WHMYQJQ.

--
Maarten L. Hekkelman
http://www.hekkelman.com/

The update script is only needed once in a while. In fact, only when
files containing new features arrive (with new categories e.g.) and
that's only in newer mmCIF files.
So, if you only use PDB you won't need to update the dictionary. If you
however process new mmCIF files, it might be needed to update the
dictionary once in a while.
The libcif that comes with Debian (as of bullseye) runs the update once
a week if you enable this service.
regards, -maarten
Op 18-01-2021 om 16:40 schreef cbaakman:

I did what you asked and now the error is gone. I need to know
however: do I need to run the 'update-dictionary-script' every time I
update my dssp files from now on?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/PDB-REDO/dssp/issues/3#issuecomment-762326452, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ADNA47A74KD7UZ7XTQVJRADS2RJADANCNFSM4WHMYQJQ.

--
Maarten L. Hekkelman
http://www.hekkelman.com/


Role permission

How to create new role permission?

Yes, I would like to know too and also how did you add another properties (lastname, phone, ..)
Thanks

Hey there, for Role or Permissions you should check the Spatie Permission package or default Laravel Gate system.
If you want to add more field in registration form you can check this article : Laravel Customize


[Enhancement] support calculate more kind of expression statistic

Why I'm doing:
Failed to derive column stats for complex expression.
What I'm doing:

Support week, days_add, days_sub, concat, left, right function inExpressionStatisticCalculator.
Support dervie stats from input col stats for CallOperator referencing only one column.
fix getColumnRefs(List<ColumnRefOperator> columns) return result contains lambda col in LambdaFunctionOperator

Fixes #issue
What type of PR is this:

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Does this PR entail a change in behavior?

[ ] Yes, this PR will result in a change in behavior.
[x] No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

[ ] Interface/UI changes: syntax, type conversion, expression evaluation, display information
[ ] Parameter changes: default values, similar parameters but with different default values
[ ] Policy changes: use new policy to replace old one, functionality automatically enabled
[ ] Feature removed
[ ] Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

[x] I have added test cases for my bug fix or my new feature
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

[ ] This is a backport pr

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[ ] 3.3
[ ] 3.2
[ ] 3.1
[ ] 3.0
[ ] 2.5

@mergify backport branch-3.3 branch-3.2


Advanced Sign (still) does not support credit card buys correctly

Issue #26 mostly fixed the problem, but there's still a minor bug:

Place an advanced sign
Set up a vending block to buy items
Add a credit card
Close the GUI
Open the GUI
Close the GUI
The sign now reads "Out Of Coins!"

(In other words, opening the GUI and not changing anything causes it to think it's out of coins)

This issue should be resolved with 1.7.x-1.6.38 release.


svgr/webpack@6 is incompatible with webpack@4 due to usage of this.getOptions webpack method

The subject
svgr/webpack@6 is incompatible with webpack@4 due to usage of this.getOptions added in webpack@5
Last working version
Worked up to version: svgr/webpack@5
Stopped working in version: svgr/webpack@6
To Reproduce
Try to run @svgr/webpack@6 with webpack@4.

clone the example repo
npm i
npm run start

Expected behavior
@svgr/webpack loader usage should not to cause crash in build made with webpack@4.
Link to repl or repo
The example repo
Run npx envinfo --system --binaries --npmPackages @svgr/core,@svgr/cli,@svgr/webpack,@svgr/rollup --markdown --clipboard
## System:
 - OS: Linux 5.10 Manjaro Linux
 - CPU: (8) x64 Intel(R) Xeon(R) CPU E3-1505M v6 @ 3.00GHz
 - Memory: 2.31 GB / 15.35 GB
 - Container: Yes
 - Shell: 5.1.12 - /bin/bash
## Binaries:
 - Node: 14.18.2 - ~/.nvm/versions/node/v14.18.2/bin/node
 - Yarn: 1.22.17 - ~/.nvm/versions/node/v14.18.2/bin/yarn
 - npm: 6.14.15 - ~/.nvm/versions/node/v14.18.2/bin/npm
## npmPackages:
 - @svgr/webpack: ^6.2.0 => 6.2.0

@svgr/webpack loader usage should not to cause crash in build made with webpack@4.

In fact it should: https://react-svgr.com/docs/migrate/#webpack
We are moving forward, not backward. If you use webpack 4, then you should stick to SVGR v5.

@gregberge can this be listed in the breaking changes for v6? Totally understand not sticking to old standards, but it would have saved some time for me today to know ahead of time that we wouldn't be able to upgrade yet.

@smckinney1 I mentioned the migration guide in the release note.

Just hit this myself.

I created a PR to add this to the changelog file:
https://github.com/gregberge/svgr/pull/923


Problems with Official WhatsApp App after using this Library

Hi,
I've been having a weird problem. I created a software with this library and after couple weeks my Whatsapp app(the official android app) started to stop working sometimes; it send messages but doesnt show that it was received and it does not receive any message at all, its like the cellphone was offline and after some hours it just start working again.
ps: the software i created keep its whatsapp session online constantly or keep trying to restore it constantly too.
Does anyone had this problem or can help me figure out what may be the cause of it?
Tks

Ps: Just got this error again today(after almost 12 days without). Just letting you guys know :)

Does anyone have a clue? This problem happens very often.

Ps: Just got this error again today(after almost 12 days without, i added Mutexes in these days and removed all conn.Read() calls ). Just letting you guys know :)

I dont follow you, please can you explain, what is the mutexs?

@SchulteMK any insight!

@x00b if I have a bot that will respond to the WhatsApp chat user, do you mean by mutexes we send the messages one by one to the users? which means if I have 5 chats at the same time I need to send ONE message to the device!
What is the best method to sort this out?
I am thinking of insert all action to MYSQL database and call them one by one via workers base on the receiver phone number!
and add 1 to 5-sec time frame between each message!
is it the idea?

The mutexes actually didn't help much with the official app crashes, it seems. I used mutexes to send only one message at a time (per device).

I can not see this relevant to the api any how. I believe thus may related to the device it self...
I have same problem sometimes with the whatsapp web..
My advice, try to connect your device to the charger all the time and test...

I've noticed that the "regular" way of retrieving messages will not mark them as read on the app, could it be related? Is there a way to mark messages as read? I've seen that when a connection is established, you'll receive ALL unread messages, which could potentially make a phone crash if they're just too many.

Not related, that is how chrome works, it load all messages..
I can not see device problem related to the api. But sending a lot of
messages to multiple people at the same time, well, human can not do that.
So i believe it is type of protection, or we have to study the broadcast
time frame between each message.
I can not find any relation to the api.
Regard
On Fri, 24 Jul 2020, 1:51 am Sinuhé Coronel<EMAIL_ADDRESS>wrote:

I've noticed that the "regular" way of retrieving messages will not mark
them as read on the app, could it be related? Is there a way to mark
messages as read? I've seen that when a connection is established, you'll
receive ALL unread messages, which could potentially make a phone crash if
they're just too many.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Rhymen/go-whatsapp/issues/278#issuecomment-663269644,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABDLT22GYEB3DR2ALICD6R3R5C5FHANCNFSM4KKX4EUQ
.

@gabstv did you try to install WhatsApp business, this app ment to answer users at same time... There is an auto answer..

Not related, that is how chrome works, it load all messages..

Afaik It doesn't work like that. It requests all messages when you open a chat, and slowly requests more as you scroll back. Upon successful connection, go-whatsapp will receive all unread messages. If you open WhatsApp on the mobile, open all chats to mark them as read, and you re-connect go-whatsapp it will not receive new message events until new messages come in.
I really think that's the problem.

Even though, the problem happened way after first run of the api.
It is device related echo..
Download WhatsApp business...
On Fri, 24 Jul 2020, 11:37 pm Sinuhé Coronel<EMAIL_ADDRESS>wrote:

Not related, that is how chrome works, it load all messages..
Afaik It doesn't work like that. It requests all messages when you open a
chat, and slowly requests more as you scroll back. Upon successful
connection, go-whatsapp will receive all unread messages. If you open
WhatsApp on the mobile, open all chats to mark them as read, and you
re-connect go-whatsapp it will not receive new message events until new
messages come in.
I really think that's the problem.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Rhymen/go-whatsapp/issues/278#issuecomment-663723767,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABDLT27XQ7WP7JGJNBETRZTR5HWIFANCNFSM4KKX4EUQ
.

It crashes often even with Whatsapp Business. It may be related to encoding? Maybe some users are sending invalid texts like backslashes. When the app receives the packet, it tries to parse it as is and crashes. I'll try to reproduce the issue in a more controlled scenario.

Now it makes sense if the user sends invalid characters.
Why don't you log each sent message to Unicode text file, with DateTime!
I think it is kind of hard since you don't know when this happened!
If the Whatsapp app stops its self form responding, then it is hard to know when and why this happened.
I am working on a project which will serve hundreds of numbers, so I am super interested in this!
We need a robust log scenario to spot out the problem.
I would like to add you to a private chat, who'd you ping me
<EMAIL_ADDRESS>


Download button does not work from Download cart for DAI

Nothing happens...

after this is fixed, check #235

This is been resolved and pushed to dai server


test : 100% Coverage pkg/test & pkg/step

Fix : https://github.com/kyverno/chainsaw/issues/337
Fix : https://github.com/kyverno/chainsaw/issues/336

@eddycharly codecov report failed here


how to improve performance when draw 100 lineString that It consists of about 500 thousand points

use webGL, but found only webGLPointLayer support points not lineString。
thanks for your reminder

OpenLayers should work fine in the scenario you're mentioning, with the standard renderer. See e.g. https://openlayers.org/en/latest/examples/fractal.html, and move the slider all the way to the right to render a linestring with > 700k points.
Maybe you can share some code and your example data?

OpenLayers should work fine in the scenario you're mentioning, with the standard renderer. See e.g. https://openlayers.org/en/latest/examples/fractal.html, and move the slider all the way to the right to render a linestring with > 700k points.
Maybe you can share some code and your example data?

thank you very much. below is my code
await Promise.allSettled(
  //many request
  nodeIds.map(item => {
      let nodes = item.nodes
      //nodes include start and end，call the backend get all points on the line
      return getRouterResultsFn(nodes);
  })
).then((results) => {
  results.forEach(r => {
    features.push(r.value);//r.value is function getRouterResultsFn returns line_feature
  })
  //waiting for all request response, put all features at once，then render
  linesLayer.getSource().addFeatures([...features]);
})

function getRouterResultsFn (nodes) {
  return axios.getPathPoints(nodes).then(res => {
      let line_geom= new ol.geom.LineString(paths);
      line_feature.setGeometry(line_geom)
      line_feature.setStyle(lineArrowStyle);
      return line_feature
    }
    return null
  }).catch(() => {
    return null
  })
}

feature type is lineString

feature = new ol.geom.LineString(paths);

feature style is complicated，arrows on the map road, increase or decrease according to the map zoom level

function lineArrowStyle(feature, res) {
    let styles = [
      new ol.style.Style({
          troke: new ol.style.Stroke({
          color: 'rgba(106,221,165,0.65)',
          width: 8
       }),
        zIndex: 1
      })
    ];
    let trackLine = feature.getGeometry()
    let length = trackLine.getLength();
    let stpes = 50;
    let geo_steps = stpes * res;
    let arrowsNum = Math.floor(length / geo_steps);
    let tree = new RBush();
    trackLine.forEachSegment(function (start, end) {
        var dx = end[0] - start[0];
        var dy = end[1] - start[1];
        let rotation = Math.atan2(dy, dx);
        let geom = new ol.geom.LineString([start, end]);
        let extent = geom.getExtent();
        var item = {
            minX: extent[0],
            minY: extent[1],
            maxX: extent[2],
            maxY: extent[3],
            geom: geom,
            rotation: rotation
        };
        tree.insert(item);
    });

    for (let i = 1; i < arrowsNum; i++) {
        let arraw_coor = trackLine.getCoordinateAt(i * 1.0 / arrowsNum);
        let tol = 0.0001;
        let arraw_coor_buffer = [arraw_coor[0] - tol, arraw_coor[1] - tol, arraw_coor[0] + tol, arraw_coor[1] + tol];
        var treeSearch = tree.search({
            minX: arraw_coor_buffer[0],
            minY: arraw_coor_buffer[1],
            maxX: arraw_coor_buffer[2],
            maxY: arraw_coor_buffer[3]
        });
        let arrow_rotation;
        if (treeSearch.length == 1)
            arrow_rotation = treeSearch[0].rotation;
        else if (treeSearch.length > 1) {
            let results = treeSearch.filter(function (item) {
                let _tol = 1/10000000;
                if (item.geom.intersectsExtent([arraw_coor[0] - _tol, arraw_coor[1] - _tol, arraw_coor[0] + _tol, arraw_coor[1] + _tol]))
                    return true;
            })
            if (results.length > 0)
                arrow_rotation = results[0].rotation;
        }
        styles.push(new ol.style.Style({
            geometry: new ol.geom.Point(arraw_coor),
            image: new ol.style.Icon({
                src: require('@/assets/images/actionControl/pathArrow.svg'),//icon addr
                anchor: [0.75, 0.5],
                rotateWithView: false,
                rotation: -arrow_rotation
            }),
            zIndex: 2
        }));
    }
    return styles;
}

Probably less than a few hundred thousand points, maybe millions when there are many lines to render，it is very laggy now，
I don't found the reason.
thanks for your reminder

It looks like most of the time is spent in the style function. You can verify that by removing the style from the layer. You should see everything rendering smoothly then.
To optimize the style function, the easiest thing to do is only create an Icon style once, and not create a new icon for every arrow. There is a setRotation() method on the icon to set the correct rotation for each arrow. Even better, also create the arrow Style only once, using the setGeometry() method to set the current point for the arrow.
Next, simplify how you calculate the arrow points. Use the LineString's getCoordinateAt() method instead of building an RTree, and don't calculate that with every style function call. Instead, do it once when you load the features.
With these changes, you should be fine and get smooth rendering.

It looks like most of the time is spent in the style function. You can verify that by temporarily removing the style from the layer. You should see everything rendering smoothly then.
To optimize the style function, the easiest thing to do is only create an Icon style once, and not create a new icon for every arrow. There is a setRotation() method on the icon to set the correct rotation for each arrow. Even better, also create the arrow Style only once, using the setGeometry() method to set the current point for the arrow.
Next, simplify how you calculate the arrow points. Use the LineString's getCoordinateAt() method instead of building an RTree, and don't calculate that with every style function call. Instead, do it once when you load the features.
With these changes, you should be fine and get smooth rendering.

thank you very much
when i remove the arrow style，the page is smoothly。


Update http4s-circe, http4s-client, ... to 0.20.2

Updates

org.http4s:http4s-circe
org.http4s:http4s-client
org.http4s:http4s-dsl

from 0.20.1 to 0.20.2.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention @ChristopherDavenport in the comments below.
Have a nice day!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [{ groupId = "org.http4s" }]

labels: semver-patch

Not necessary #8


[Bug]: reCaptcha validation not working

What happened?
I am trying to set up the reCaptcha component on my register page. I added it between the  tags but I can currently create a profile without even verifying the captcha. I saw in the documentation(https://tastyigniter.com/docs/extensions/frontend) the extra step that needs to be done by adding recaptcha to my rules but it doesn't specify where and I am not quite sure if the rule is not added automatically. Any help would be appreciated.
I am attaching the link to the issue I have opened in the Frontend Extension repo as well(https://github.com/tastyigniter/ti-ext-frontend/issues/12)
What did you expect to happen?
I shouldn't be able to create a profile without verifying the captcha
Version
3.x
What browser are you seeing the problem on?
No response
Relevant log output
No response

This issue will be closed and archived in 3 days, as there has been no activity in the last 60 days. If this issue is still relevant or you would like to see it actioned, please respond and we will re-open this issue. If this issue is critical to your business, consider the Dedicated Support Service where a Service Level Agreement is offered.


Add missing Semigroup instances

This fixes compile errors on GHC 8.4.

Looks good. Works on GHC 8.0.2 as well. Thanks.


Fix #226, Add Instructions on How to Squash and Amend Commits

Checklist (Please check before submitting)

[x] I reviewed the Contributing Guide.
[x] I signed and emailed the appropriate Contributor License agreement to<EMAIL_ADDRESS>and copied<EMAIL_ADDRESS>
Describe the contribution
Fixes #226

Added How to Squash Commits.
Added How to Amend Commits.
Added that users may use the format Fix #XYZ, LONG_DESCRIPTION for commit messages if necessary.
Added to create a commit message per topic and provided an example.
Added reference to https://chris.beams.io/posts/git-commit/

Expected behavior changes
Users should know how to squash and amend commits.
Contributor Info - All information REQUIRED for consideration of pull request
Ariel Adams, ASRC Federal

CCB:2021-04-07 APPROVED

Add reference to https://chris.beams.io/posts/git-commit/

CCB:2021-04-07 APPROVED

Add reference to https://chris.beams.io/posts/git-commit/

Added reference under sections Ready to Add Your Code? and Once a Pull Request Ready for Review


[GEMXD-18] Disallow LOB/UDT in keys and indexes

Changes proposed in this pull request
Explicitly check for LOB/XML/UDT columns for primary/unique keys and indexed columns since CLOBs have now been made orderable but we cannot still support those columns as keys due to various complications as mentioned in GEMXD-18
These columns are allowed as part of partitioning.
Patch testing
Added a unit test CreateTableTest.testLOBUDTKey_GEMXD18 to check for failure/success with various combinations.
Running store precheckin.
Other PRs
N/A

Closing this PR since these changes will be picked up as part of unified partitioner changes https://github.com/SnappyDataInc/snappydata/pull/210


cl-user should be default package for completions

If no in-package form has been seen, code completion should assume cl-user.

Fixed


[App Service] az webapp log tail: Fix #27189 catch exception when scm connection is lost

Related command

az webapp log tail
Description

While log streaming for a web app, if the connection to the scm logstream endpoint is lost, we currently don't catch the exception properly. This results in the user seeing this error:
cli.azure.cli.command_modules.appservice.custom: 2023-08-23T15:39:34 No new trace in the past 1 min(s).
cli.azure.cli.command_modules.appservice.custom: 2023-08-23T15:40:34 No new trace in the past 2 min(s).
cli.azure.cli.command_modules.appservice.custom: 2023-08-23T15:41:34 No new trace in the past 3 min(s).
cli.azure.cli.command_modules.appservice.custom: 2023-08-23T15:42:34 No new trace in the past 4 min(s).
Exception in thread Thread-1 (_get_log):
Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 761, in _update_chunk_length
ValueError: invalid literal for int() with base 16: b''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 444, in _error_catcher
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 828, in read_chunked
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 765, in _update_chunk_length
urllib3.exceptions.InvalidChunkLength: InvalidChunkLength(got length b'', 0 bytes read)

Wrapping the log stream in a try block to catch any exceptions during logstream.

Testing Guide

While az webapp log tail, if we lose connection to the scm site (eg. the site is restarted)
History Notes

[App Service] az webapp log tail: Fix #27189 catch exception when scm connection is lost

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

[x] I adhere to the Error Handling Guidelines.

App Service

Please fix CI issues.

CI test failure is unrelated to this change. Can you please review the PR @zhoxing-ms

@sarsharma This is a know issue, this CI issue has been fixed by container app team, I will try to re-run the pipeline for you


Add MySQL Flex API Version 2021-12-01-preview

MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Changelog
Add a changelog entry for this PR by answering the following questions:

What's the purpose of the update?

[ ] new service onboarding
[x] new API version
[ ] update existing version for new feature
[ ] update existing version to fix swagger quality issue in s360
[ ] Other, please clarify

When are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month.  June
When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month. June
If updating an existing version, please select the specific language SDKs and CLIs that must be refreshed after the swagger is published.

[x] SDK of .NET (need service team to ensure code readiness)
[x] SDK of Python
[x] SDK of Java
[x] SDK of Js
[x] SDK of Go
[ ] PowerShell
[ ] CLI
[ ] Terraform
[ ] No refresh required for updates in this PR

Contribution checklist:

[ ] I commit to follow the Breaking Change Policy of "no breaking changes"
[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

Applicability: :warning:
If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

Change to data plane APIs
Adding new properties
All removals

Otherwise your PR may be subject to ARM review requirements. Complete the following:

[x] Check this box if any of the following appy to the PR so that the label "ARMReview" and "WaitForARMFeedback" will be added by bot to kick off ARM API Review.  Missing to check this box in the following scenario may result in delays to the ARM manifest review and deployment.

Adding a new service
Adding new API(s)
Adding a new API version
-[ ] To review changes efficiently, ensure you are using OpenAPIHub to initialize the PR for adding a new version. More details, refer to the wiki.

[x] Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If any of the following scenarios apply to the PR, request approval from the Breaking Change Review Board as defined in the Breaking Change Policy.

[ ] Removing API(s) in a stable version
[ ] Removing properties in a stable version
[ ] Removing API version(s) in a stable version
[ ] Updating API in a stable or public preview version with Breaking Change Validation errors
[ ] Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
Please follow the link to find more details on PR review process.

Hi @lirenhe , can you please help review this PR?
We added a new API version for flexible MySQL service. Thank you

Hi @lirenhe , can you please help review this PR? We added a new API version for flexible MySQL service. Thank you

This PR requires ARM team for review.  Could you work with them on that? Thanks

updated python configuration

Hi @msyyc , thanks for your help. Could you please help merge this PR?

This PR is not ready to merge yet. Please work with ARM team to get it reviewed.  Thanks

Hi @msyyc , thanks for your help. Could you please help merge this PR?

This PR is not ready to merge yet. Please work with ARM team to get it reviewed. Thanks

Thank you @lirenhe , @msyyc Is there anything left we need to modify? Or who else should we ask for review? Thanks.

Hi @zehao-ms Python approved for the PR. But as https://github.com/Azure/azure-rest-api-specs/pull/19217#issuecomment-1143074945 said, it needs ARM review before merge

@zehao-ms I see a lot of comments saying it's copied from previous version, but in the change I don't see the reference for the previous version. Can you make sure you put the previous version in the first commit so we can use it view the diff?
This is explained in detail here (If using Open API which is recommended) https://dev.azure.com/azure-sdk/internal/_wiki/wikis/internal.wiki/208/OpenAPI-Hub-Adding-new-API-version or here(For manual process) : https://dev.azure.com/azure-sdk/internal/_wiki/wikis/internal.wiki/83/Manual-Process-Adding-new-API-version

Open a new PR by openAI hub:
https://github.com/Azure/azure-rest-api-specs/pull/19454


Error when running on Catalina

Thanks for this awesome Alfred plugin! Just a heads up, on Catalina, using the scripts fail (I am guessing this is due to the executables not being signed).
The workaround I found is to open Alfred and right click the extension, choosing to view it in Finder. Then, go to the three executables (create, search, link) under cmd and right click each one and choose to run, accepting the warning. Afterwards, it seems to work fine, but would be awesome if this may be signed by default.
Thanks!

Hi. I'd be happy to do that but I don't experience this error (presumably because I create the executables myself). Do you have any idea how to sign executables for Catalina? I'm afraid I don't. If it involves paying for an Apple developer license, I can't justify doing that for a free plug-in I'm providing the community and may have to just provide instructions for doing what you did in the README.md.

I unfortunately don't have experience with this either - but I did notice on the QLStephen issue tracker that people said it doesn't actually require a developer license to notarize it - they link to this Apple docs page about it.

I read through your links and came to this:
https://github.com/anthonygelibert/QLColorCode/issues/51#issuecomment-541235470
Looks like it still requires a developer account.  They need an easier way for users to accept using plug-ins they are knowingly downloading from a third-party.

I don't see this as a big issue. I also had to "allow" the "app" and all I had to do is open the System Settings -> Security & Privacy -> General -> Allow.
Much like some of the other unsigned apps, it shows up here.

That's a relief to hear. I was hoping it would be that easy. I feel especially challenged in testing this because I don't receive this error as the author of the executables so I would have to jump through some hoops to reproduce it.

@drgrib might be worth adding this to the README, I did the same thing as @blah43534. But many people might not know they need to go allow the unsigned app

Added:
https://github.com/drgrib/alfred-bear/blob/master/README.md#authorize

For me, the simplest solution was to rebuild the executables myself.

right click the Bear by dfgrib workflow and select "Open in Terminal"
cd cmd/create, and you will find create and main.go
rm create to remove the existing executable file
go build -o create main.go, and you will have a new executable file
repeat 2-4 for csearch, link, search and setcursor

The issue is that Apples Gatekeeper restricts the apps to be executed if you're not the developer/builder and you have installed this from an 'unidentiefied developer'.
The reason why it works on @drgrib 's machine is because he's the author. That's also why it works when you compile the code yourself (as @aaazzz did).
I made a PR to add some additional installation-instructions, to overcome this issue. Meanwhile, if that is not merged yet, the fix is:

Go to 'Workflows' section in Alfred Preferences
Right click on 'Bear' by drgrib and select 'Open in Terminal'
Copy this code and execute it xattr -rd com.apple.quarantine cmd

This will remove the quarantine attribute from the executables and allows them to be executed. This fixes the 'Permission Denied' errors.

I think this is resolved. Let me know if not.


is need to provide other position of tabbar  like' left' ro 'right' for develop pad

in order to develop better for pad ,can provide more tabbarposition like ‘left’ or ‘right’ in TabNavigator，

Is this a common pattern on the ipad?

Usually on Ipad menu put in the sidebar like on screenshot. Screens change, but tabbar stands on the same position without transition. So possibility to change tabbar position to left/right would be very convenient.
If you know how to make this tabbar on Ipad in another why it would be great info.

That looks like a split view with a UITableView on the left and a normal view on the right, Tab Bars on iOS are always on the bottom.  You could make this effect in your own app by switching to a drawer layout or custom view perhaps when the orientation changes.

Pinging OP @bestlbw since this issue has not been active for a while, and it's related to an old version of the lib.
Please let me know if you want this to remain open; if I get no answer in the next 7 days I will close it.
Moreover I think, as @SteffeyDev says, that you are trying to use a tabbar for something it is not designed for.

Hi there @bestlbw ,
In an effort to cleanup this project and prioritize a bit, since this issue had no follow up since my last comment I'm going to close it.
If you are still having the issue with the latest version (especially if it's a bug report) please check the current open issues, and if you can't find a duplicate, open a new one that uses the new Issue Template to provide some more details to help us solve it.

Thanks!


Failed prop type onRequestClose in Modal

The component Modal in DevscreensButton needs the prop onRequestClose, it goes a warning message

This is a dupe of https://github.com/infinitered/ignite/pull/892.  Thanks for filing.  I haven't gotten around to reviewing it yet.  =)


WIP: Add NFTViewV2 to MetadataViews contract

Closes: #123
Description

Added a new NFTViewV2 struct in order to include additional optional fields
Added a 'medias' field to NFTViewV2

For contributor use:

[x] Targeted PR against master branch
[x] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[x] Code follows the standards mentioned here.
[x] Updated relevant documentation
[x] Re-reviewed Files changed in the Github PR explorer
[] Added appropriate labels

[] Update the version in package.json when there is a change in the smart contracts

I haven't added any tests yet as this is still a draft PR.
There could be other fields we want to add to NFTViewV2.

I'm starting to think that maybe it isn't a good idea at this point to introduce a new NFTView. I think it might be better for now to just define this view within a script, and have it contain the normal NFTView and the medias view and just return that. I don't want to add second versions of things too prematurely in case there are other things in the future people want to add.

Yeah I completely agree, could close this PR but leave the issue open so it could be considered in the future when there are enough changes that would make sense to introduce a V2.

good suggestion. I'll close this


If you try to stop proxying when not proxying app will crash

remoteProxyInstance will be null here. https://github.com/uProxy/uproxy/blob/3d4ef6d25b2b908004222602d9c1fc70277a769b/src/generic_core/core.ts#L350
This should never happen.
Question: Do we want it to crash so that we'll catch it easily or we'd rather avoid it?

The exception catching there is doing nothing for us, we should remove it, and we should make sure it never happens. If we do expect it happen, then again we should remove the thrown exception and just return early.

we're not catching exception, did you mean the error message? I think we can leave that, it prints in nice red color and it's noticeable.
So close this bug?

The exception throwing does nothing I mean. Updated my comment an will now remove this and your comment to reset bug state to something more understandable. :)

I think we should just add a return statement below the error trace on https://github.com/uProxy/uproxy/blob/3d4ef6d25b2b908004222602d9c1fc70277a769b/src/generic_core/core.ts#L348


How to Redirecting to outside page on invalidate()

Hi,
In my application I am creating a custom authenticator and I wanted to go to a page outside the ember app in the invalidate() method. Our ember application is a module that connects to the main java application and the user login is handled in the main app. To simulate the user session in ember, the two apps communicate via tokens and use simple auth to create a session in ember. So when the user clicks logout in ember app, I need to kill ember session and redirect the user to a page (login page) in the main application and kill the user session in the main app as well.
Is there a way we can accomplish this without using the login route in the ember app to route in case there is no session?

You can use the ApplicationRouteMixin's sessionInvalidated callback to react to the session being invalidated and redirect the user anywhere via window.location.href = '…'.


Updating Already added bank details causing the account to be inactive

When a user has added a bank account in mango pay it may so happen that there could be some typing mistake with name etc. So we are allowing user tp edit the bank details. We are using PHP SDK and when using the UpdateBankAccount function of the users object it is not updating the details rather making the bank account active does that mean we cannot update the bank details once added or this is a BUG. The Active attribute of bank object can only be set to False. if set o true will end up in error.

Hi @piyushfreeads,
I would double check with MangoPay support, but from my understanding, you can't update a bank account object, and this is not a limitation of the PHP SDK.
According to the MangoPay API Doc, ( https://docs.mangopay.com/endpoints/v2.01/bank-accounts#e24_the-bankaccount-object ) you can only create, list, view, desactivate a bank account object.
The problem here is that the PHP SDK method name UpdateBankAccount is miss leading, because what this method do is calling the bank account desactivate URL ( https://docs.mangopay.com/endpoints/v2.01/bank-accounts#e306_deactivate-a-bank-account ). We have the same issue when it's come to registered cards.

Hello @piyushfreeads,
You can't update a bankAccount. You need to deactivate the old one and submit a new one with the new data.
hello @H4wKs, thank you for the feedback. We will update it soon.

Thanks for update.


Accessors for custom compression modes

Description
Enables accessors for custom compression modes.
Issues Resolved
#88
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

I've added a test for the getters, however lmk if I should remove it. I think, in general, we don't need to test the getters/accessors.

@sarthakaggarwal97 sure, what is the practical reason of exposing these properties?

I don't see any risks in exposing the compression modes via getters. Please lmk if you see any concerns.

There are few issues here:

this plugin does not publish any artifacts (at least not supposed to) besides ZIP distribution
the exposed API should be something likepublic CompressionMode getCompressionMode() {
    return mode == ZSTD_NO_DICT ? zstdNoDictCompressionMode : zstdCompressionMode;
}

@reta yes, if we want to just fetch the compression mode, we should use the API you suggested.
I've updated the PR to now return a map of compression modes against the respective Mode.


Does This Have an Opacity Option?

Does this plugin have an option to adjust the opacity of an image with transparency? I see the colorBlend option kind of has this except you have to specify a solid color to mix with rather than a pure transparency. Thanks!

My client uses their CMS to build HTML emails for copy/pasting into their email marketing program. Since many email clients don't support modern CSS I use an opacity filter (CE Image in EE currently) to generate a transparent image.

Myeah, I guess that depends on what you compare it with. The color blend effect doesn't really try to emulate any specific color blend, it's just... a color blend. ;)

Fair enough :D I ended up using the watermark feature to get the look I was going for.

Heyo,
I just ran into another HTML Email-specific need: rounded corners. Since a lot of email clients don't support border-radius I need to cut the image corners manually.
Just a feature request, no desperate need for this to be resolved soon. Thanks!

@kgrote If the amount of transformations is limited, maybe use a service like Cloudinary to pass through your email images. Cloudinary can easily change opacity (and quite a lot of other things), and it's (up to a certain point) free. We're using it for some of our clients for the exact same reason.

Imager X adds an opacity effect.


[WIP] Continue hydrating with PPT

This pull request allows us to fix issues with pipelines after hydrating the project with the PPT.

Change Description

[ ] My PR includes a link to the issue that I am addressing

Solution Description

Code Quality

[ ] I have read the Contribution Guide
[ ] My code follows the code style of this project
[ ] My code builds (or compiles) cleanly without any errors or warnings
[ ] My code contains relevant comments and necessary documentation

Project-Specific Pull Request Checklists

Bug Fix Checklist

[ ] My fix includes a new test that breaks as a result of the bug (if possible)
[ ] My change includes a breaking change

[ ] My change includes backwards compatibility and deprecation warnings (if possible)

New Feature Checklist

[ ] I have added or updated the docstrings associated with my feature using the NumPy docstring format
[ ] I have updated the tutorial to highlight my new feature (if appropriate)
[ ] I have added unit/End-to-End (E2E) test cases to cover my new feature
[ ] My change includes a breaking change

[ ] My change includes backwards compatibility and deprecation warnings (if possible)

Documentation Change Checklist

[ ] Any updated docstrings use the NumPy docstring format

Build/CI Change Checklist

[ ] If required or optional dependencies have changed (including version numbers), I have updated the README to reflect this
[ ] If this is a new CI setup, I have added the associated badge to the README

Other Change Checklist

[ ] Any new or updated docstrings use the NumPy docstring format.
[ ] I have updated the tutorial to highlight my new feature (if appropriate)
[ ] I have added unit/End-to-End (E2E) test cases to cover any changes
[ ] My change includes a breaking change

[ ] My change includes backwards compatibility and deprecation warnings (if possible)

Welcome to Codecov :tada:
Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.
Thanks for integrating Codecov - We've got you covered :open_umbrella:


Decide whether to continue to create props to get imported shadcn classes to pass eslint or correctly configure eslint to ignore that problem in those files.

I was just watching the UX+Dev meeting recording where this was talked about from a couple weeks back. I wouldn't bother to reconfigure eslint for these ShadCN copied components. Simply add an ignore-this-file-comment to the top of any file when copied in. e.g. /* eslint-disable */. That way the file can be copied as is and not modified to fit our system.

I believe it is relatively easy (at least it should be) to configure eslint to not report certain errors for any files in that folder. Probably less of a hassle in the long run than having to add a disable comment into each file. (Might already be done now.)

Right, if they all in one folder you can add that folder to the .eslintignore file. That would be a better solution.


 I'm blocking this on Assess impact of updating HsapDv and MmusDv.

Addressing in #884


如何自定义添加菜单及其对应的页面

Expected behavior
MENU菜单增加一个reading菜单，点击后跳转到一个html，能够罗列出指定category下的所有文章
Actual behavior
不知道该如何实现
Steps to reproduce the behavior
Link to demo site with this issue: N/A
Link to source code to generate this site: N/A
NexT Information
NexT Version:
[ ] Master
[x] Latest Release
[ ] Old version -

NexT Scheme:
[ ] All schemes
[x] Muse
[ ] Mist
[ ] Pisces

Other Information

Menu may add via config.yml in Next theme.
How to add page - write in readme.

@ivan-nginx I want to use my custom template(like categorie.swig) in a newly added page and get posts in a specified categories. The way you mentioned can only suppoort add a markdown page (hexo new page xxx)and I can only use the markdown syntax which will not support any logical code.

@KaimingWan Hm? U say pages not support any logical code, but posts support? Can u give some examples? Logical code like what?

@ivan-nginx Like the code in file categories.swig which using the swig template engine.
`

<{% if theme.seo %}h2{% else %}h1{% endif %}>{#
#}{{ page.category }}{#
#}{{  __('title.category')  }}
</{% if theme.seo %}h2{% else %}h1{% endif %}>

{% for post in page.posts %}
  {{ post_template.render(post) }}
{% endfor %}

`

@KaimingWan and? U may add this code to page.swig, not?  What is your target, what u want do?

what i want to do:

add a reading menu in the index（finished）
when touch the reading menu,i will go to a page which is created by command 'hexo new page reading'（finished）
the page named reading.md will show me all posts in category 'mycategory' for example.（not finished）

i want to use swig syntax in markdown file reading.md to solve the problem.

@KaimingWan so? Edit page.swig file as u want.
    {#################}
    {### PAGE BODY ###}
    {#################}

      {# tagcloud page support #}
      {% if page.type === "tags" %}

              {{ _p('counter.tag_cloud', site.tags.length) }}

            {{ tagcloud({min_font: 12, max_font: 30, amount: 200, color: true, start_color: '#ccc', end_color: '#111'}) }}

      {% elif page.type === 'categories' %}

              {{ _p('counter.categories', site.categories.length) }}

            {{ list_categories() }}

      {% else %}
        {{ page.content }}
      {% endif %}

    {#####################}
    {### END PAGE BODY ###}
    {#####################}

This is page body. What u want? Show selected category? File category.swig extract post from category:

        {{ page.category }}
        {{  __('title.category')  }}

    {% for post in page.posts %}
      {{ post_template.render(post) }}
    {% endfor %}

U can take code from category.swig, insert him into page.swig and do custom additions.
About page.category and other variables u can read on Hexo Docs.

@ivan-nginx thanks. I will try  to change the page.swig later and verify what you said.

@ivan-nginx  hello, I can use list_categories() in page.swig to get all categories in my custom page. But how can I get a specified categories such as a category called 'book' ? does any API support this or I have to change the source code of hexo to support this feature?

does any API support this

No, as i know.

or I have to change the source code of hexo to support this feature

Yes.

@KaimingWan I think my recent post can solve your problem about adding category pages as menu and change the layout to the same as the home page.
You can visit: http://kris2d.info/posts/b706980b/

Doesn't liat_categories() support filter specified categories?
Is there any solution of this situation? What have you done @KaimingWan ?
I also want a category page that only including what I want.

@KaimingWan 老哥，问题解决了吗


chore(deps): update terraform terraform-ibm-modules/landing-zone-vpc/ibm to v7.4.0

This PR contains the following updates:

Package
Type
Update
Change

terraform-ibm-modules/landing-zone-vpc/ibm (source)
module
minor
7.3.2 -> 7.4.0

Release Notes

terraform-ibm-modules/terraform-ibm-landing-zone-vpc (terraform-ibm-modules/landing-zone-vpc/ibm)
v7.4.0
Compare Source
Features

subnet CRN now added to the subnet_detail_list output (#587) (518204d)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

/run pipeline

/run pipeline

Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠ Warning: custom changes will be lost.

:tada: This PR is included in version 3.5.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


picture size

Hi everybody,
when i added yesterday a picture plugin to a page(following the cms-installer instructions), i realized there is not any configs of the size of the added picture to be set. if the pic is bigger than the width of the page, it will surpass it and the result page looks ugly.
What i did to solve this problem is to rewrite "picture.html" in the cms/plugins and added width="100%" in the "img" tag, this makes it to respect its parent element's layout by default.
There is anyway to make it simple, or some elegant solution to control a rendered image size instead of put some global css in somewhere?

If you use Bootstrap-3.x.x as your CSS grid system, have a look at djangocms-cascade. This handles the image and picture sizes according to the current column width.
Disclaimer: I am the author of that library, hence biased.

@jrief Thanks for the reply. i would give a try!

@kkx alternatively have a look at cmsplugin_filer which has support for thumbnails and fixed image sizes (with less options than cascade but not specific for bootstrap)

Closing this as strictly not-related to django CMS core


fs/tmpfs: Fix the memory corruption when reallocate tmpfs_directory_s

Summary
since it's hard to adjust all childern to point back the new parent
location. Let's allocate the dynamical part(e.g. tdo_entry) separately
and remove the back pointer. Other minor change include:

fs/tmpfs: Remove the temporary strdup in all place
fs/tmpfs: Account the filename in the allocation block

Impact
Fix the memory corruption and optimize the memroy usage
Testing
create more than 8 file in the same dirctory, ASAN report the memory corruption without the patch.

Ping @acassis

Sorry, I missed it. It is ok!


Allow empty parentSelector

This patch builds on #218, which supersedes, because it wasn't handling all the cases.
This fixes #239, angular-ui/ui-router#2260 and #179 by appending the bar to the body tag when the specified selector (if any) is not available. The check happens when start() is invoked, so as soon as the selector is ready it will be used, without involving $timeout or such things.

When this fix is merged into master?? I need this fix for my issue: angular-ui/ui-router#2260

I have resolved the issue caused by the parentSelector implementation in pull 272.  Feel free to pull from me.

merged in #272

Honestly, I don't think #272 actually resolves the issue this PR is about.
This PR replaces find usage with querySelector, which makes the selector more usable, and it uses body as a fallback selector.
Besides that has no tests so there is no way to know... :p

@stefanotorresi querySelector doesn't have great support in older IEs, which I still have an obligation to support.

Correct me if I'm wrong, but querySelector browser compatibility goes as far as Angular's.

@chieffancypants, out of curiosity how far back are you having to support?  My company just recently moved from IE8 to current (adding Chrome & FF) ... finally.

@stefanotorresi Yes, technically, but with work, you can get the 1.2 branch to work with IE8, which is what I've been doing.    This should change very soon though, since MS has dropped support for it.  My customers are all large enterprises, so they inevitably refuse to upgrade even when there is significant pressure to do so.

@chieffancypants all right then, I'll update the PR right away to make it more old-browser friendly :)

@chieffancypants approve?


Changing the upstream destination in a filter

Title: Changing the upstream destination in a filter
Description:
I have requests coming into an Envoy gateway (set up via Istio on Kubernetes). I'd like to write a filter to...

Inspect the host or :authority headers and do some arbitrary business logic (do push-ups, make a charitable donation, [...], you name it - anything that's not a built-in Envoy feature yet).
Rewrite the host and :authority headers to point at a different Kubernetes service than the original destination.
Have Envoy's route the request to the rewritten Kubernetes service, rather than to the original.

I've performed that experiment using an ExternalProcessor filter. I've configured its mutation_rules to set allow_all_routing: true. I've injected that filter (using Istio) as follows:
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
  name: respect-external-filter
  namespace: istio-system
spec:
  configPatches:
    - applyTo: EXTENSION_CONFIG
      patch:
        operation: ADD
        value:
          name: my-cool-external-filter
          typed_config:
            "@type": type.googleapis.com/envoy.extensions.filters.http.ext_proc.v3.ExternalProcessor
            failure_mode_allow: false
            async_mode: false
            request_attributes:
              - user
            response_attributes:
              - server
            # Need to set 'allow_all_routing' so that we can modify the
            # 'host'/':authority' headers.
            # https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/common/mutation_rules/v3/mutation_rules.proto
            mutation_rules:
              allow_all_routing: true
            # Only process request headers.
            processing_mode:
              request_header_mode: "SEND"
              response_header_mode: "SKIP"
              request_body_mode: "NONE"
              response_body_mode: "NONE"
              request_trailer_mode: "SKIP"
              response_trailer_mode: "SKIP"
            grpc_service:
              envoy_grpc:
                cluster_name: "outbound|18080||my-cool-external-filter.default.svc.cluster.local"
    - applyTo: HTTP_FILTER
      match:
        listener:
          filterChain:
            filter:
              name: envoy.filters.network.http_connection_manager
              subFilter:
                name: envoy.filters.http.router
      patch:
        operation: INSERT_BEFORE
        value:
          name: my-cool-external-filter # This must match the name above
          config_discovery:
            config_source:
              ads: {}
            type_urls:
              [
                "type.googleapis.com/envoy.extensions.filters.http.ext_proc.v3.ExternalProcessor",
              ]
  workloadSelector:
    labels:
      app: my-gateway

In the logs I can see that Envoy successfully reaches the external processor, and applies the header changes. However, it does NOT change where the request is routed:
2022-11-09T05:23:49.242829Z     debug   envoy ext_proc  Sending headers message
2022-11-09T05:23:49.243730Z     debug   envoy router    [C0][S14754424785057215411] upstream headers complete: end_stream=false
2022-11-09T05:23:49.243766Z     debug   envoy ext_proc  Received request headers response
2022-11-09T05:23:49.243774Z     debug   envoy ext_proc  applying headers response. body mode = NONE
2022-11-09T05:23:49.243785Z     debug   envoy ext_proc  Continuing processing
2022-11-09T05:23:49.243801Z     debug   envoy router    [C118][S15149972645723439778] cluster 'outbound|50051|my-istio-subset|my-original-service.default.svc.cluster.local' match for URL '/mygrpc.HelloWorld/SayHello'
2022-11-09T05:23:49.243838Z     debug   envoy router    [C118][S15149972645723439778] router decoding headers:
':method', 'POST'
':scheme', 'http'
':path', '/mygrpc.HelloWorld/SayHello'
':authority', 'my-rewritten-service.default'
'content-type', 'application/grpc'
'user-agent', 'grpcurl/v1.8.6 grpc-go/1.44.1-dev'
'te', 'trailers'
'x-forwarded-proto', 'http'
'x-request-id', 'e8b5a2bf-e9e4-4263-a3d8-15a0e0843f2b'
'x-envoy-attempt-count', '1'
'x-b3-traceid', '7f4f883773347c029df0aef2af4012ad'
'x-b3-spanid', '9df0aef2af4012ad'
'x-b3-sampled', '0'
'x-forwarded-for', '<IP_ADDRESS>'
'x-envoy-internal', 'true'
'x-envoy-peer-metadata', '[...removed for brevity...]'
'x-envoy-peer-metadata-id', 'router~<IP_ADDRESS>~my-gateway-98f7d5cb5-9sbsj.default~default.svc.cluster.local'
'x-envoy-decorator-operation', 'my-original-service.default.svc.cluster.local:50051/*'

2022-11-09T05:23:49.243861Z     debug   envoy router    [C118][S15149972645723439778] pool ready
2022-11-09T05:23:49.248309Z     debug   envoy router    [C118][S15149972645723439778] upstream headers complete: end_stream=true
2022-11-09T05:23:49.266867Z     debug   envoy ext_proc  onDestroy
2022-11-09T05:23:49.266881Z     debug   envoy ext_proc  Calling close on stream
2022-11-09T05:23:49.266884Z     debug   envoy ext_proc  Closing gRPC stream
2022-11-09T05:23:49.266906Z     debug   envoy router    [C0][S14754424785057215411] resetting pool request
2022-11-09T05:23:49.283066Z     debug   envoy ext_proc  onDestroy
2022-11-09T05:23:49.283083Z     debug   envoy ext_proc  Calling close on stream
2022-11-09T05:23:49.283085Z     debug   envoy ext_proc  Closing gRPC stream

In this experiment I would expect Envoy to route the request to my-rewritten-service.default (the updated :authority), but I see the request going to my-original-service.default instead.
I suppose that I don't understand when and how Envoy makes its routing decision. Why does the router, which comes after my filter, not obey the header change?
In particular, when and how does Envoy make the decision about the destination cluster? This log line...
2022-11-09T05:23:49.243801Z     debug   envoy router    [C118][S15149972645723439778] cluster 'outbound|50051|my-istio-subset|my-original-service.default.svc.cluster.local' match for URL '/mygrpc.HelloWorld/SayHello'

... shows that Envoy uses the original destination cluster even after my filter is applied. So is the cluster chosen before my filter runs?
The bigger question is: is a filter a reasonable place to try and change the upstream destination of a request?

cc @gbrail @pradeepcrao

Routes are cached in Envoy, and must be explicitly reset by a filter to re-compute if the route matching changes. So the cluster is chosen the first time a route is requested, and I would guess ext_proc does not clear the route.
If you just want to route to IP:PORT, ORIGINAL_DST can also accept a filter override via a filter state. But that does not support EDS/VIP resolution by Envoy.

Yes -- routes are cached in Envoy, and ext_proc does not invalidate the cache by default... but you can ensure that it does by setting the "clear_route_cache" field on the header or body response from your external processing server to the proxy. Most people who have encountered this issue have found that this does the trick, and furthermore I recall that ext_authz uses the same process.

https://github.com/envoyproxy/envoy/blob/main/api/envoy/service/ext_proc/v3/external_processor.proto#L276

That was it! 🎉
Thank you all for the help! Much appreciated!


Fix windows RBE opt build

Currently broken on master with error cl : Command line error D8021 : invalid numeric argument '/Wframe-larger-than=16384'

Known failures:
https://github.com/grpc/grpc/issues/20472
https://github.com/grpc/grpc/issues/20502


Bug 1735635: Use Python 3.7 to ensure wheel usage

Currently, CI is trying to build the cryptography package
(needed by docker-compose) from scratch. It's failing due to
the Rust compiler being missing.
However, we don't need to compile cryptography if we use the
prebuilt "wheel", which was being ignored because the wheel
package wasn't installed.

Hey, sorry, didn't assign you as a reviewer yet because I was still testing against CircleCI to make it build.
Just in case you reviewed an old "testing" approach, I've reflagged you for review.
It should be good now.


Feature/set acl

Description
Fixes #
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
Checklist

[X] I have followed Sample Format Guide
[X] pom.xml parent set to latest shared-configuration
[X] Appropriate changes to README are included in PR
[ ] These samples need a new API enabled in testing projects to pass (let us know which ones)
[ ] These samples need a new/updated env vars in testing projects set to pass (let us know which ones)
[X] Tests pass:   mvn clean verify required
[X] Lint  passes: mvn -P lint checkstyle:check required
[ ] Static Analysis:  mvn -P lint clean compile pmd:cpd-check spotbugs:check advisory only
[ ] This sample adds a new sample directory, and I updated the CODEOWNERS file with the codeowners for this sample
[ ] This sample adds a new Product API, and I updated the Blunderbuss issue/PR auto-assigner with the codeowners for this sample
[X] Please merge this PR for me once it is approved

Closing this PR as this sample is deprioritized


[WIP] Use std::array in Point

Default initialization should be cleaner and the data should be private.

Did you actually try on CUDA? I don't think this will work without C++17.

No, I only tried on my laptop, yet.

I guess this as close as it gets for having an aggregate-initializer like behavior and default value initialization.

I thought this PR was undecided?

Where do you see that? Damien asked for a change in the constructor and the constructor has been changed

I think @dalg24 had some reservations about merging this one in.

Then he should have spelled it on the PR. How I am supposed to know.


eigen_stl_containers: 0.1.8-0 in 'jade/distribution.yaml' [bloom]

Increasing version of package(s) in repository eigen_stl_containers to 0.1.8-0:

upstream repository: https://github.com/ros/eigen_stl_containers
release repository: https://github.com/ros-gbp/eigen_stl_containers-release.git
distro file: jade/distribution.yaml
bloom version: 0.5.24
previous version for package: 0.1.6-0

eigen_stl_containers
* Fix it up so we can correctly find Eigen everywhere.
* Contributors: Chris Lalancette, Kei Okada

holding while kinetic builds


InsetClip doesn't work on Visuals created from UIElement

If you change all the _mainVisual references to _root under ScaleToggle_Click (file), the clip no longer works.
I just found that this might have something to do with this issue I raised. If I specifically set the Size of the _root, it works again.
private void InsetClipToggle_Click(object sender, RoutedEventArgs e)
{
    // To fix the clipping, we need to size the Visual
    _root.Size = new Vector2((float)TopGrid.ActualWidth, (float)TopGrid.ActualHeight);

    // Toggle visual between having no clip and a clip that squares the visual
    if (_root.Clip == null)
    {
        InsetClip iClip = _compositor.CreateInsetClip();
        iClip.LeftInset = (RectangleWidth - RectangleHeight) / 2;
        iClip.RightInset = iClip.LeftInset;
        _root.Clip = iClip;
    }
    else
    {
        _root.Clip = null;
    }
}

yes a clip needs a size, and by design size isn't passed from the UElement, but you can pass that in and set it.


📰Poster - Deep Biaffine Attention for Neural Dependency Parsing

AMC Seminar Sign Up

Link to previous seminar meeting minutes comments issue:

#389
1. Oral / Poster Selection

Select one of the following selections for Oral or Poster:

Oral should be prepared for 15 - 30 minutes, and no more than 45 minutes, including Q/A.
Posters should be prepared for 5 - 10 minutes, and no more than 15 minutes, including Q/A.

[ ] 🗣 Oral (15 MIN)
[x] 📰 Poster (5 MIN)

2. Paper Information

Please fill the follow table and provide all the information as many as possible, for sharing with others better. (delete the rows that you did not fill)

Paper
Information

Name
Deep Biaffine Attention for Neural Dependency Parsing

Recommendation
for NLP task

Prior Knowledge
NLP, dependency tree

Year
2016

Arxiv
https://arxiv.org/abs/1611.01734

3. After Party 🍻

Everyone will be welcome. You can join or not join as you want (not required by the AMC), and change your mind at any time.

After Party will be started right after all the meeting agenda had been fulfilled.
We will find a bar and drink beers and talk whatever we want. (we can expect that it will be related to meeting topics of the day)
The bill will be paid AA

[ ] 🍻 YES! I'll definitely join the After Party!
[x] 🤔 Maybe. I'd like to decide later.
[ ] 🛌 No, I'm afraid not this time.

4. New Friend

Whether you have a new friend comes with you to the club.

[ ] 👥 I'll bring a new friend
[x] 👤 There's no new friend from me

Please fill the following table for the new friend sign up(if any), or delete it.

Referrer
Newcomer
Bio

@member
@NEWCOMER
ONE_SENTENCE_BIOGRAPHY

Artificial Intelligence & Machine Learning CLUB, 2018 - 2019 AI ML Club - AMC Member Manual

Here is a little conflict that should be resolved.
BTW, welcome back!


Add projectId field for Note

This small PR adds projectId field for Note class.

Looks good! :smile:

Thanks for fast review! :smiley:
Will merge it together with the main PR to not break dev.


Revise email text to remove 'recently'

To accommodate older papers that may get added to the WB bibliography, we'll remove the word 'recently' from our email to be more accurate.
We'll then see how older papers are processed in our pipeline.

looks good, checked in outreach. Closing


mock-socket configuration issue ?

Hello,
I working on an Angular projet.
I'm trying to use a real websocket for my production code and the mock-socket for my cypress tests.
Here how I start the websocket in production (using sockjs-client & stompjs librairies)

Now maybe I'm mistaken, but I was expected that with this code in cypress, the server would be mocked and the production websocket code would work:

When launching cypress the websocket does not succeed to get a connection.
Where am I wrong ?

Is the native WebSocket get called? You can check it by running the cypress in server mode. I'm not sure how the sockjs and stompjs are working.
If so you can try mocking the WebSocket using the cy.stub:
import { WebSocket } from "mock-socket";
...
onBeforeLoad: () => {
  ...
  cy.stub(win, "WebSocket", (url) => new WebSocket(url));
},


Switch to using actions/setup-java@v2

Yea. I got that right for the docs but my understanding of the situation 5h ago wasn't as good.


video-editing: Add guide on video editing

The purpose of this is to give volunteers who want to process
workshop videos a clear starting point.
Review: Basic check.  It can probably also use a more detailed
check, too, but that can be incremental.

@essihe, any thoughts on this?

Thanks for the write-up!


Create gradle task to test all db profiles

Done https://github.com/hibernate/hibernate-reactive/pull/218

Excellent, finally -)


restrict size of calculator window

I would like to work on this issue if possible

Then it is assigned to you start working on it


Documentation Notification DB

Description
Documentation Notification DB
Type of change

Documentation update

Testing steps
N/A
Checklist

[ ] make before_commit passes
[ ] updated documentation wherever necessary
[ ] added or modified tests if necessary
[ ] updated schemas and validators in insights-data-schemas in case of input/output change

Codecov Report
Base: 60.43% // Head: 60.43% // No change to project coverage :thumbsup:

Coverage data is based on head (8c6d484) compared to base (1634a48).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #966   +/-   ##
=======================================
  Coverage   60.43%   60.43%
=======================================
  Files          23       23
  Lines        3228     3228
=======================================
  Hits         1951     1951
  Misses       1056     1056
  Partials      221      221

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


SummedOp.add is slow due to linear search and some bugs related to coefficients

What is the expected enhancement?
SummedOp.add(other) takes O(n) time where n is the size of oplist.
It is because other is compared with oplist in the following line.
https://github.com/Qiskit/qiskit-aqua/blob/e269aa41ce9f749927415e422f795de4b417c1c1/qiskit/aqua/operators/list_ops/summed_op.py#L66
If we take a sum of n operators, it takes O(n^2) time in total.
I think we need a fast path to avoid the linear search.
I attach a small code to check the performance. I observed that most of time is consumed for the equality check of operators.
import random

from qiskit.aqua.operators import (X, Y, Z, I)

random.seed(1234)
paulis = []
for _ in range(2000):
    pauliop = 1
    for eachop in random.choices([I, X, Y, Z], k=20):
        pauliop ^= eachop
    paulis.append(pauliop)
sum_op = sum(paulis)

The call graph generated with cProfile and gprof2dot is as follows.

Bug
I also found an inconsistent behavior depending on arguments. See https://github.com/Qiskit/qiskit-aqua/issues/979#issuecomment-629987691

If the same operator is not allowed in oplist, set may be better than list for oplist.

From what I can tell the code for add has this, which would lead to equality checks, I do not believe it is anything to do with preventing/disallowing same operators in list.
    def add(self, other: OperatorBase) -> OperatorBase:
        if self == other:
            return self.mul(2.0)
        elif isinstance(other, SummedOp):
        ...

Yes, SummedOp.add(op) behaves as follows.

if op is same os self, it multiplies self by 2.
if op is SmmedOp, it returns a SummedOp by concatenating self.oplist and op.oplist.
if op is another type of operator, it checks whether op is already included in self.oplist or not. If so, it adds op to self.oplist[index] where self.oplist[index] == op. Otherwise, it returns a SummedOp by appending op to self.oplist.

I found a bug related to these behaviors.
If we add a primitive operator, it summed up the same operator thanks to linear search (case 3), i.e., 2.0 * XX.
But, it allows duplicate operators XX (case 2), i.e., XX appears twice.
The behaviors should be consistent.
from qiskit.aqua.operators import (X, Y, Z, I)

op1 = (X ^ X) + (I ^ I)
op2 = X ^ X
op3 = op1 + op2
print('test1', op3, '\n')

op1 = (X ^ X) + (I ^ I)
op2 = (X ^ X) + (Z ^ Z)
op3 = op1 + op2
print('test2', op3, '\n')

output:
test1 SummedOp(
[2.0 * XX,
II])

test2 SummedOp(
[XX,
II,
XX,
ZZ])

I come up with an idea similar to sympy.
SummedOp.add(op) just concatenate op to self.op. We also make a new API simplify to merge duplicate operators.

In the prior WeightPauliOperator I will note that it had a simplify() too. Would combine paulis and remove any with zero coeff.

If SummedOp must be simplified all time, we should fix the case 2 (not simplified).
If simplification is not always necessary, simplify can be optional.
I'm wondering when simplification is necessary. Does any part of the operator flow require operators to be simplified?

I would think when it came to computing an expectation value, if the operator was not grouped (the default) then it should be at least simplified at that point. At other times I would think it should be optional. In the prior WeightedPauliOperator it was simplified at construction and also (self and other) for equality comparison. If the opflow equals detects equality correctly, such as in your above example where they are the same but have differing internal representation, then it would seem that simplify ought in general to be left optional.

Thank you for your information. I try to separate simplify as an optional method and check unit tests related to expectation value.

@woodsp-ibm I found another bug of SummedOp.add. I will fix it with my change.
from qiskit.aqua.operators import (X, Y, Z, I, SummedOp)

op = SummedOp([X^X, I^I], 2)
print(op, '\n')
op += X ^ X
print(op, '\n')

Output:
2 * SummedOp(
[XX,
II])

2 * SummedOp(
[2.0 * XX,  # NG: 2 * 2 XX = 4 XX != 3 XX
II])

I found another bug when self == other because add does not care self.coeff.
Example:
from qiskit.aqua.operators import (X, Y, Z, I, SummedOp)

op = SummedOp([X ^ X, I ^ I], 2)
print(op, '\n')
op += (X ^ X) + (I ^ I)
print(op, '\n')

2 * SummedOp(
[XX,
II])

4.0 * SummedOp(  # NG: 4.0 should be 3.0
[XX,
II])


Add additional Crowdsec bouncers (Caddy, nginx, HaProxy)

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

[X ] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
[ X] I have searched the existing issues, open and closed, and I'm convinced that mine is new.
[ X] When the request is meant for an existing plugin, I've added its name to the title.

Is your feature request related to a problem? Please describe.
OPNsense currently only supports the crowdsec-firewall-bouncer remediation component (bouncer).  This works great for blocking direct traffic to the firewall but does not allow Layer 7 blocking.  For example, I use Cloudflare proxy and my WAN only accepts inbound from the Cloudflare IP ranges (https://www.cloudflare.com/ips/).  That's all the firewall sees so it can't block by the proxy protocol or x-forwarded-for header that caddy, nginx, and haproxy would see.
Describe the solution you'd like
I would like to see these additional bouncers added as installation candidates in OPNsense.
Describe alternatives you've considered
I have considered moving nginx off of my OPNsense box and running it in linux just to have this functionality but would ideally like to keep it where it's at.
I could also set up Crowdsec and the Bouncers on each one of my services but would prefer to have it right on the reverse proxy.
I have also looked into used the Crowdsec Blocklist Mirror bouncer but nginx does not allow the use of a file location in the IP ACL section and I would need to manually change the formatting to meet nginx requirements.
Additional context
Crowdsec resources for the mentioned bouncers:
Caddy Bouncer - https://app.crowdsec.net/hub/author/hslatman/remediation-components/caddy-crowdsec-bouncer
nginx Bouncer - https://docs.crowdsec.net/u/bouncers/nginx
Haproxy Bouncer - https://docs.crowdsec.net/u/bouncers/haproxy

Just to spin the issue further, shouldn't the most front end reverse proxy be responsible to block the bad actors?
In this case, Cloudflare should sanitize the traffic before they send it to you?
E.g., Cloudflare crowdsec bouncer?
https://docs.crowdsec.net/u/bouncers/cloudflare/

It should, but, the initial Crowdsec Cloudflare Bouncer does not work in "Free mode", and it would appear the Go script they use to update the Cloudflare's API is brutal chatty AND Cloudflare "Free mode" gives you a runway of 1 millimeter it would seem for API credits
There is a Worker bouncer, a 2nd form of Crowdsec Cloudflare Bouncer but I have not figure out how to attempt deployment yet, and it doesn't seem it would work for a "Free mode" account anyway.
Wanting to try to write my own integration via Python and pray...
In related, getting metrics from the OPNSense Bouncer would be a great upgrade!


Why watching for files manually when we can just start the deno server with --watch?

Maybe they added this feature later I don't know but it should be better since it's native (i guess). Can't this plugin just send an event to the browser when the server starts instead of watching files and dealing with refreshing the server as well
What do you think about it?

I have the same purpose actually, I'm working on my jsx front-end code (which is ssr rendered) but for some strange reason when editing a component props, removing it from the dom etc... the updates won't have any effect even after manually reloading the page.
With the --watch flag though the rendered html is updated and so the browser shows me the new updated components.
Maybe we have something set up differently I'm not sure.
Anyway I have a simple project for now so I'll just stick with the --watch flag (I also added the --no-check flag to make the server restart way faster!)
Thanks for your great module anyway! Really useful!


[v2.8] bump bci-micro to <IP_ADDRESS>

Issue:
This is a 2.8 backport of: https://github.com/rancher/rancher/pull/46082
Problem

Solution

Testing

Engineering Testing
Manual Testing

Automated Testing

Test types added/modified:

Unit
Integration (Go Framework)
Integration (v2prov Framework)
Validation (Go Framework)
Other - Explain: EXPLAIN
None
REMOVE NOT APPLICABLE BULLET POINTS ABOVE

If "None" - Reason: EXPLAIN THE REASON

If "None" - GH Issue/PR: LINK TO GH ISSUE/PR TO ADD TESTS

Summary: TODO
QA Testing Considerations

Regressions Considerations

TODO
Existing / newly added automated tests that provide evidence there are no regressions:

TODO

Forgot I created these drafts before/during freeze - replaced by https://github.com/rancher/rancher/pull/47284


LSQuery/LSQueryAll functions are not sorted and have no option to do so

The @timestamp field is already hard-coded in the query building for the user-specified time range. Seems reasonable to add an option to sort by @timestamp field by default, or (ideally) sort by a user-specified field.

Any response to this?

Still seeing this behaviour with the new ESQuery / ESQueryAll. Still frustrating and unintuitive. Any response to this?

Can you show the ESQuery you are using? The esdaily function returns an "indexer":  esdaily (timeField string, indexRoot string, layout string) ESIndexer. So you should be able to set the timeField to anything.

Certainly:
macro log_based_alert_macro {
  # skip the bosun dashboard
  log = true
  # only send log alerts this often
  maxLogFrequency = 1h
  # never go unknown (no way to 'close'?)
  ignoreUnknown = true

  template = generic_alert_template

  $index = esls("rsyslog")
  crit = max(escount($index, "host,unit", $crit_query, "5m", "5m", "")) > 0
  warn = max(escount($index, "host,unit", $warn_query, "5m", "5m", "")) > 0

  critNotification = $notification_list
  warnNotification = $notification_list
}
alert all_errors {
  $crit_query = esand(esquery("severity", "err"), esquery("message", '''<snip>''))
  $warn_query = esand(esquery("severity", "warning"), esquery("message", '''<snip>'''))

  $notification_list = alerts_slack,alerts_email

  macro = log_based_alert_macro
}

and in the template:
<snip>
    {{ $index := (.Eval .Alert.Vars.index) }}
    {{ $filter_err := (.Eval .Alert.Vars.crit_query) }}
    {{ range $v := .ESQuery $index $filter_err "5m" "0m" 25 }}
      {{ $timestampStr := index $v "@timestamp" }}
      {{ $timestampNoTZ := replace $timestampStr "+00:00" "" -1 }}
      {{ $timestamp := replace $timestampNoTZ "T" " " -1 }}

        {{ $timestamp }}
        {{ $v.unit }}
        {{ $v.severity }}
        {{ $v.message }}

    {{ end }}
<snip>

Hope this helps! (please ask if you'd like more, or if you'd like to know what got <snip>'d.

I do get the expected limit of 25 results returned from the correct index, but the result rows themselves (when iterated) are in what seems like a random order.

Right, so you are currently using esls for the index at $index = esls("rsyslog"):

esls(indexRoot string) ESIndexer
esls is a shortcut for esdaily("@timestamp", indexRoot+"-", "2006.01.02") and is for the default daily format that logstash creates.

So instead you can use:

esdaily (timeField string, indexRoot string, layout string) ESIndexer
esdaily is for elastic indexes that have a date name for each day. Based on the timeframe of the enclosing es function (i.e. esstat and escount) to generate which indexes should be included in the query. It gets all indexes and won't include indices that don't exist. The layout specifer uses's Go's time specification format. The timeField is the name of the field in elastic that contains timestamps for the documents.

Oh, I see. This isn't about which field, but rather sorting in the template. I misunderstood.

Yup that's correct. The indexes look good, it always uses the right one. I think a sort clause needs to be added to the underlying ES query(?), but I'm not sure where to make that modification.
For us, if we have multiple lines (e.g. a stacktrace) they end up all out-of-order (and this happens over several seconds, not just a limit of the millisecond resolution that ES uses for timestamps.)

Okay I will think on that. Currently the ESQuery functions are returning a slice of interface. Ideally that could just be passed to a sort filter in the template.
But no generics, so will need to figure out how to do that. Since normally in Go you would make different sortable types.

In fact, I would actually prefer a sort in Go (vs in the underlying ES query) since ES only sorts with millisecond precision even though our timestamps have microsecond resolution.
I think in our case, all our fields come out as strings and lexicographical sorting would be fine. But I understand that a generic sort would be useful in templates for other reasons.


[#162381976] Remove DataDog part 1: Remove all monitors

What
In order to remove DataDog without causing loads of noise this runs a
DataDog terraform destroy to remove all the monitors ahead of upcoming
changes to remove the agents etc that generate the metrics.
This also removes the config step to genetate the list of job_instances
that's only used in the datadog terraform apply task.
How to review
I've tested this in my dev environment, so code review is probably enough.
Who can review
Not me.

LGTM


ClassAttributesSeparationFixer - Add trait_import support

closes #5490

Coverage increased (+0.0004%) to 91.56% when pulling c94ac2849dd054f7045425b1d03a7b15c854345a on SpacePossum:2_19_class_attribute_trait_import_support into 5ad0853148d9cc0e88686894dda72490e48a28ff on FriendsOfPHP:2.19.

Thank you @SpacePossum.


[doc]: SHFB problems building multi-target

Now that we're multi-targeting a bunch of libraries, the SHFB (Sandcastle Help File Builder) is failing.

Tracking in #1206


Reinvent22/section3

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

closing for 381


Setup a local instance of the Supabase backend for backend development purposes.

As a development team, we need to have a local instance of the Supabase backend set up so we can work on the backend code without affecting the production environment. This will allow us to test new features, make changes, and debug issues in a controlled environment before deploying to production.

We are going to leave this for the second part of the sprint.

This documentation could be helpful for this issue.
https://supabase.com/docs/guides/functions/local-development#running-edge-functions-locally

When trying to start the local instance of Supabase by running "supabase start" command, the following error occurs:
Error: ERROR: must be a member of role "supabase_admin" (SQLSTATE 42501)
This is because tables created through the Supabase dashboard are owned by the "supabase_admin" role, while the migration scripts executed through the CLI are under the "postgres" role.
Previously, this issue could be resolved by changing the user to a superuser in PostgreSQL using either of the following commands:
GRANT supabase_admin TO postgres;
ALTER ROLE postgres with SUPERUSER;
However, Supabase has recently updated its policies, and the suggested solution in the documentation is to reassign the owner of those tables to the "postgres" role. This was attempted by executing the following commands in the SQL editor for each table, but it did not work:
ALTER TABLE roles OWNER TO postgres;
ALTER TABLE rooms OWNER TO postgres;
ALTER TABLE "rooms-data" OWNER TO postgres;
ALTER TABLE "rooms-permission" OWNER TO postgres;
ALTER TABLE "users-data" OWNER TO postgres;
ALTER TABLE "message-chat" OWNER TO postgres;
References:
Supabase documentation:
Supabase discussion on policy changes:


require local file throw cannot find module

And I use  pkg -t node7-win-x86 --debug  --out-dir D:/20170605 .

And dest folder is  my source code

process.cwd() obviously can not contain C:\snapshot component. Please console.log(configFile) before require.

ok  thank you ~ and I can package my project but I try your example

and  when I input http://localhost:8080/views/index.html

and in my project , I need input html in browser

Please check if a project works without pkg first. It is not intended to work that way.

try http://localhost:8080/index.html


Update normalize.css to ver 5.0

I would re-file this against upstream twbs/bootstrap, as this is just the SASS port of Bootstrap, under the v4-dev branch because v3 is no longer maintained.

But on our project we use this bundle with bootstrap v3 and we want to use normalize v5 in this  too.

This repo is an automated conversion from upstream and does not accept CSS fixes, see README.


Realm filter based on RealmOptional property : 'Property 'rid' not found in object of type 'User''

Goals
After I updated my project to swift 4.2 and also updated the realm pod, the query what is worked before always crash. The crash is happens with xCode 10.1, with xCode 9.4.1 worked.
I declared the  'rid' RealOptional property in my realm model:
class User:Object {
@objc dynamic var deletedAt : Date?
@objc dynamic var markedForDeletion : Bool = false
@objc dynamic var createdAt : NSDate = NSDate()
@objc dynamic var updatedAt : NSDate?
let rid = RealmOptional()
}
Expected Results
I did the following query:
var user: User! = realm.objects(User.self).filter("rid == %@", signInItem.userItem.uniqueId).first
Actual Results
Terminating app due to uncaught exception 'Invalid property name', reason: 'Property 'rid' not found in object of type 'User''
Steps to Reproduce
This started to happen when I updated the project to swift 4.2, and also updated the realm pod.
Code Sample

Version of Realm and Tooling

Realm framework version: ?
Realm Object Server version: ?
Xcode version: ?
iOS/OSX version: ?
Dependency manager + version: ?

I have the same issue


http status code checks in registry/session_v2.go too narrow

Checks that are too narrow are not compliant with the V2 specification. All 2xx and 3xx responses should generally be treated as successful. The body should only be decoded as an error body on 4xx and 5xx responses. These narrow checks will prevent future protocol evolution if a different error code is used in particular cases. It will also cause issues with proxies that may rewrite responses based on certain behavior.
A salient example may be returning a 304 instead of a 202 when putting a manifest. The method should only be concerned that the content safely made it, with a success http code. Whether it is a 202 or 304 or 307 (won't actually be propagated with go http client) doesn't really matter.
This does not apply when the method requires data to be returned but the error must be handled differently.
Please see the following for more information: https://github.com/docker/distribution/blob/master/doc/SPEC.md#errors-1

After some analysis, based on the response data required in each request, the cases in which we can accept alternate http codes are small. I'll have a PR for this shortly that opens it up a bit.


SOLR-17186: Streaming query breaks if token contains backtick

https://issues.apache.org/jira/browse/SOLR-17186

Description
StreamExpressionParser today replaces ` with " indiscriminately which can break queries where the tokens themselves contain backtick.
Solution
Allow for backticks to be escaped in the streaming query and only replace non-escaped backticks with "
Checklist
Please review the following and check all that apply:

[+ ] I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
[ +] I have created a Jira issue and added the issue ID to my pull request title.
[ +] I have given Solr maintainers access to contribute to my PR branch. (optional but recommended)
[ +] I have developed this patch against the main branch.
[ +] I have run ./gradlew check.
[ +] I have added tests for my changes.
[ ] I have added documentation for the Reference Guide

Looking good...    I see additional fix...   I am running the tests...  Let me know when you feel it's "done done" ;-).   and if the tests pass I'll commit.

And thanks for taking time to review this Eric!